|
@@ -2,7 +2,10 @@
|
|
|
<view class="container product clearfix">
|
|
|
<view class="superv-header" v-if="!isEmpty">
|
|
|
<view class="superv-header-click">
|
|
|
- <view class="oltext">共<text class="red">{{ totalRecord }}</text>件商品</view>
|
|
|
+ <view class="oltext"
|
|
|
+ >共<text class="red">{{ totalRecord }}</text
|
|
|
+ >件商品</view
|
|
|
+ >
|
|
|
<view class="ortext" @click="showPopup(0)" v-if="!popupShow">编辑</view>
|
|
|
<view class="ortext" @click="hidePopup(0)" v-else>完成</view>
|
|
|
</view>
|
|
@@ -18,7 +21,7 @@
|
|
|
<text class="error-text">暂无收藏商品~</text>
|
|
|
</view>
|
|
|
<!-- 列表 -->
|
|
|
- <view class="tui-cart-cell tui-mtop" v-for="(pros, index) in productList" :key="index" @click.stop="navToDetailPage(pros.productId)">
|
|
|
+ <view class="tui-cart-cell tui-mtop" v-for="(pros, index) in productList" :key="index">
|
|
|
<view class="tui-goods-item">
|
|
|
<view class="tui-goods-main">
|
|
|
<view class="tui-goods-checkBox" v-if="popupShow">
|
|
@@ -29,8 +32,14 @@
|
|
|
>
|
|
|
</view>
|
|
|
</view>
|
|
|
- <view class="tui-goods-image"> <image :src="pros.image" class="tui-goods-img" /> </view>
|
|
|
- <view class="tui-goods-info" :style="{ width: popupShow ? '420rpx' : '528rpx' }">
|
|
|
+ <view class="tui-goods-image" @click.stop="navToDetailPage(pros.productId)"
|
|
|
+ ><image :src="pros.image" class="tui-goods-img" />
|
|
|
+ </view>
|
|
|
+ <view
|
|
|
+ class="tui-goods-info"
|
|
|
+ :style="{ width: popupShow ? '420rpx' : '528rpx' }"
|
|
|
+ @click.stop="navToDetailPage(pros.productId)"
|
|
|
+ >
|
|
|
<text class="list-details-title">{{ pros.name }}</text>
|
|
|
<text class="list-details-specs">规格:{{ pros.unit != null ? pros.unit : '' }}</text>
|
|
|
<view class="list-details-price" v-if="pros.priceFlag == 1">
|
|
@@ -213,7 +222,7 @@ export default {
|
|
|
plain: false
|
|
|
}
|
|
|
],
|
|
|
- totalRecord:0,
|
|
|
+ totalRecord: 0,
|
|
|
cartQuantity: 0,
|
|
|
popupShow: false,
|
|
|
popupShow1: false,
|
|
@@ -479,10 +488,10 @@ export default {
|
|
|
//跳转确认订单页面
|
|
|
this.popupShow1 = false
|
|
|
let productStp = {
|
|
|
- allPrice: this.number * this.buyRetailPrice,
|
|
|
- allCount: this.number,
|
|
|
- productID: this.handleData.productId,
|
|
|
- productCount: this.number
|
|
|
+ allPrice: this.number * this.buyRetailPrice,
|
|
|
+ allCount: this.number,
|
|
|
+ productID: this.handleData.productId,
|
|
|
+ productCount: this.number
|
|
|
}
|
|
|
this.$api.navigateTo(
|
|
|
`/pages/user/order/create-order?type=prodcut&data=${JSON.stringify({ data: productStp })}`
|
|
@@ -566,9 +575,7 @@ export default {
|
|
|
uni.stopPullDownRefresh()
|
|
|
}, 200)
|
|
|
},
|
|
|
- onShow() {
|
|
|
-
|
|
|
- }
|
|
|
+ onShow() {}
|
|
|
}
|
|
|
</script>
|
|
|
|