优化会员,商品,下单

This commit is contained in:
wwz
2025-03-15 12:03:34 +08:00
parent e6ca187e5a
commit fc957feb72
19 changed files with 484 additions and 978 deletions

View File

@@ -281,8 +281,6 @@
paymentmethod.payType = e.payType;
}
// 提交订单
const orderdetail = async () => {
let res = await storeMemberpay.actionscreateOrder({

View File

@@ -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 == '+') {