Browse Source

购物车

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

11
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">{{
@ -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) => {

Loading…
Cancel
Save