Browse Source

购物车

dev_des
1054425342@qq.com 1 month ago
parent
commit
9a49278cde
  1. 15
      subPackages/user/gwc.vue

15
subPackages/user/gwc.vue

@ -12,8 +12,8 @@
<view class="selectBox flex-around" v-else @click="changeSelect(goodItem)">
<img src="https://static.ticket.sz-trip.com/cgc/images/order/dui.png" />
</view>
<image :src="showImg(goodItem.specUrl)" mode="aspectFill"
@click="goDetails(goodItem.goodsId)"></image>
<image :src="showImg(goodItem.specUrl)" mode="aspectFill" @click="goDetails(goodItem.goodsId)">
</image>
<view class="contentBox">
<view class="title text-overflow">{{ goodItem.goodsName }}</view>
<view class="subTitle text-overflow">{{
@ -154,7 +154,7 @@
cartId: item.id,
quantity: item.quantity,
},
"/framework/cart/updateQuantity","DES"
"/framework/cart/updateQuantity", "DES"
)
.then(function(res) {
if (res) {
@ -185,7 +185,7 @@
//
goShopping() {
uni.switchTab({
url: "/pages/index/timeShopBank",
url: "/pages/index/index",
});
},
//
@ -209,9 +209,9 @@
if (res.confirm) {
this.Post({
s_id: id,
method: 'delete'
},
`/framework/cart/remove/${id}`,
"DES"
)
.then((res) => {
@ -247,8 +247,9 @@
});
this.Post({
s_id: ids.toString(),
method: 'delete'
},
"/api/shopping/delShopping",
`/framework/cart/remove/${ids.toString()}`,
"DES"
)
.then((res) => {
@ -297,7 +298,7 @@
if (res.confirm) {
this.Post({
s_id: ids.toString(),
method:'delete'
method: 'delete'
},
`/framework/cart/remove/${ids.toString()}`,
"DES"

Loading…
Cancel
Save