优化会员,商品,下单
This commit is contained in:
@@ -281,8 +281,6 @@
|
||||
paymentmethod.payType = e.payType;
|
||||
}
|
||||
|
||||
|
||||
|
||||
// 提交订单
|
||||
const orderdetail = async () => {
|
||||
let res = await storeMemberpay.actionscreateOrder({
|
||||
|
||||
@@ -19,9 +19,15 @@
|
||||
</view>
|
||||
<view class="info">
|
||||
<view class="name"> {{ item.name }} </view>
|
||||
<view class="select-sku-wrap" v-if="item.skuList">
|
||||
<view class="select-sku-wrap" v-if="item.type == 'sku'">
|
||||
<text v-for="i in item.skuList" :key="i.id">
|
||||
{{item.id == i.productId && item.skuId == i.id ? i.specInfo :""}}
|
||||
{{item.cartListinfo.sku_id == i.id? i.name:"" }}
|
||||
</text>
|
||||
</view>
|
||||
<view class="select-sku-wrap" v-if="item.type == 'package'">
|
||||
<view>{{dataprocessing(item.cartListinfo).title}}</view>
|
||||
<text v-for="i in dataprocessing(item.cartListinfo).goods" :key="i.id">
|
||||
{{i.proName }}
|
||||
</text>
|
||||
</view>
|
||||
<view class="price-wrap" style="padding-top: 0;">
|
||||
@@ -93,6 +99,7 @@
|
||||
type: Boolean
|
||||
},
|
||||
});
|
||||
|
||||
const shopInfo = uni.cache.get('shopInfo')
|
||||
|
||||
// 定义 ifcartNumber 计算属性方法
|
||||
@@ -138,6 +145,12 @@
|
||||
})
|
||||
}
|
||||
|
||||
const dataprocessing = computed(() => {
|
||||
return (item) => {
|
||||
return JSON.parse(item.pro_group_info);
|
||||
};
|
||||
})
|
||||
|
||||
// 封装加法函数
|
||||
const calculateValue = (cartNumber, i, step = 1) => {
|
||||
if (i == '+') {
|
||||
|
||||
Reference in New Issue
Block a user