|
@@ -18,8 +18,8 @@
|
|
|
<view class="title">
|
|
|
产品列表
|
|
|
</view>
|
|
|
- <view>
|
|
|
- 共<text class="cText">{{total}}</text>款
|
|
|
+ <view v-if="info">
|
|
|
+ 共<text class="cText">{{info.totalCategory}}</text>款
|
|
|
</view>
|
|
|
</view>
|
|
|
<view v-for="(item,dix) in partList" :key="item.id" class="item-list-box">
|
|
@@ -62,11 +62,11 @@
|
|
|
<u-image :src="item.giftObj.product.images+'?x-oss-process=image/resize,p_50'" border-radius="16" width="120" height="120" bg-color="#EBEBEB" ></u-image>
|
|
|
</view>
|
|
|
<view>
|
|
|
- <view class="item-name flex align_center ellipsis-one">
|
|
|
+ <view class="item-name flex align_center">
|
|
|
<view class="flex align_center rebate-tag">
|
|
|
赠品
|
|
|
</view>
|
|
|
- <text>{{item.giftObj.product.productName}}</text>
|
|
|
+ <text class="ellipsis-one">{{item.giftObj.product.productName}}</text>
|
|
|
</view>
|
|
|
<view class="item-nums ellipsis-one" v-if="item.giftObj.product&&item.giftObj.product.origCode">
|
|
|
<text style="color: #666;">{{item.giftObj.product.origCode}}</text>
|
|
@@ -182,16 +182,9 @@
|
|
|
})
|
|
|
},
|
|
|
onUnload() {
|
|
|
- this.$store.state.vuex_tempData = null
|
|
|
+ this.$store.state.vuex_tempData = null
|
|
|
},
|
|
|
computed: {
|
|
|
- totalNums(){
|
|
|
- let ret = 0
|
|
|
- this.partList.map(item => {
|
|
|
- ret += item.qty
|
|
|
- })
|
|
|
- return ret
|
|
|
- },
|
|
|
totalPages(){
|
|
|
return Math.ceil(this.total / this.pageSize)
|
|
|
}
|
|
@@ -450,10 +443,13 @@
|
|
|
}
|
|
|
}
|
|
|
.rebate-tag{
|
|
|
- width: 40px;
|
|
|
margin-left: 0;
|
|
|
margin-right: 5px;
|
|
|
}
|
|
|
+ .ellipsis-one{
|
|
|
+ flex-grow: 1;
|
|
|
+ width:80%;
|
|
|
+ }
|
|
|
}
|
|
|
.footer{
|
|
|
padding: 20upx 60upx;
|