forked from natuka/web.puabadge.com
冰箱贴
This commit is contained in:
1 parent
927d0da6f3
commit
19826cd8f6
4 files changed
+55
-26
No files matched your search
+21
-12
@@ -50,8 +50,9 @@
|
||||
</div>
|
||||
<div class="info-section">
|
||||
<div class="info-item">
|
||||
<div class="info-title" v-if="orderStat.type_id == 1">{{ prodId == 7 ? '人物立体徽章' : '宠物立体徽章' }}</div>
|
||||
<div class="info-title" v-if="orderStat.type_id == 2">{{ prodId == 7 ? '人物浮雕相框' : '宠物浮雕相框' }}</div>
|
||||
<div class="info-title" v-if="typeId == 1">{{ prodId == 7 ? '人物立体徽章' : '宠物立体徽章' }}</div>
|
||||
<div class="info-title" v-if="typeId == 2">{{ prodId == 7 ? '人物浮雕相框' : '宠物浮雕相框' }}</div>
|
||||
<div class="info-title" v-if="typeId == 3">{{ prodId == 7 ? '人物3D冰箱贴' : '宠物3D冰箱贴' }}</div>
|
||||
<div class="info-content">产品类型</div>
|
||||
</div>
|
||||
<div class="info-item">
|
||||
@@ -64,10 +65,10 @@
|
||||
</div>
|
||||
</div>
|
||||
<div class="shape-body">
|
||||
<!-- <div class="shape-type">
|
||||
<div class="shape-type-item" :class="{ 'shape-active': item.id == typeId }" v-for="item in typesList" :key="item.id" @click="typeChange(item.id)">{{item.name}}</div>
|
||||
</div> -->
|
||||
<div class="shape-box" v-if="imageUrl">
|
||||
<div class="shape-type" v-if="imageUrl && typeId == 3">
|
||||
<div class="shape-type-item" :class="{ 'shape-active': item.id == shapeId }" v-for="item in shapeList" :key="item.id" @click="shapeChange(item)">{{item.name}}</div>
|
||||
</div>
|
||||
<div class="shape-box" v-if="imageUrl && typeId != 3">
|
||||
<block v-for="item in shapeList" :key="item.id">
|
||||
<div class="shape-item" @click="shapeChange(item)">
|
||||
<div class="shape-item-list">
|
||||
@@ -204,7 +205,8 @@ function sureReload() {
|
||||
const params = {
|
||||
pid: pid.value,
|
||||
group: group.value,
|
||||
prod_id: prodId.value
|
||||
prod_id: prodId.value,
|
||||
type_id: typeId.value
|
||||
}
|
||||
badgeApi.putModeling(params).then((res: any) => {
|
||||
console.log('putModeling', res)
|
||||
@@ -272,7 +274,8 @@ function getCompareImage() {
|
||||
badgeApi.getCompareImage({
|
||||
pid: pid.value,
|
||||
group: group.value,
|
||||
prod_id: prodId.value
|
||||
prod_id: prodId.value,
|
||||
type_id: typeId.value
|
||||
}).then((res: any) => {
|
||||
console.log('getCompareImage', res)
|
||||
compareList.value = res
|
||||
@@ -361,10 +364,14 @@ const loading = ref(false)
|
||||
const confirm = () => {
|
||||
if (loading.value) return
|
||||
console.log('confirm')
|
||||
// if (payAmount.value <= 0) {
|
||||
// showToast('请先选择下单数量')
|
||||
// return
|
||||
// }
|
||||
if (payAmount.value <= 0) {
|
||||
showToast('请先选择下单数量')
|
||||
return
|
||||
}
|
||||
if (typeId.value == 2 && (shapeText.value == '' || !shapeText.value.trim())) {
|
||||
showToast('请输入自定义文本')
|
||||
return
|
||||
}
|
||||
if (orderStat.value.use_type == 2 && !contact_name.value) {
|
||||
showToast('请先填写收货人信息')
|
||||
return
|
||||
@@ -739,10 +746,12 @@ const getTrialCode = () => {
|
||||
}
|
||||
|
||||
const orderStat = ref({})
|
||||
const typeId = ref(0)
|
||||
const getOrderStat = () => {
|
||||
badgeApi.getOrderStat({}).then((res: any) => {
|
||||
console.log('getOrderStat', res)
|
||||
orderStat.value = res
|
||||
typeId.value = res.type_id
|
||||
getSizeList()
|
||||
})
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user