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

Loading…
Cancel
Save