Commit 3ed50f83 authored by Mac's avatar Mac

团队新增排序

商品隐藏
parent 06436c25
...@@ -77,20 +77,20 @@ ...@@ -77,20 +77,20 @@
} }
] ]
}, },
// { {
// "root": "pages/live", "root": "pages/live",
// "plugins": { "plugins": {
// "live-player-plugin": { "live-player-plugin": {
// "version": "1.2.2", "version": "1.2.3",
// "provider": "wx2b03c6e691cd7370" "provider": "wx2b03c6e691cd7370"
// } }
// }, },
// "pages": [{ "pages": [{
// "path": "index" "path": "index"
// }, { }, {
// "path": "share" "path": "share"
// }] }]
// }, },
{ {
"root": "pages/user-center", "root": "pages/user-center",
"pages": [{ "pages": [{
......
...@@ -27,7 +27,7 @@ ...@@ -27,7 +27,7 @@
</block> </block>
</swiper> </swiper>
<!-- TODO 分销价格未做 is_share_price --> <!-- TODO 分销价格未做 is_share_price -->
<view class="is_share" v-if="g.share > 0" style="top:240px;"> <view class="is_share" v-if="g.share > 0 && hideshare == false" style="top:240px;">
<image <image
src="@/static/images/icon/WechatIMG424.png" src="@/static/images/icon/WechatIMG424.png"
style="width: 20px; margin-left: 12px; opacity: 1;height: auto;" style="width: 20px; margin-left: 12px; opacity: 1;height: auto;"
...@@ -46,8 +46,9 @@ ...@@ -46,8 +46,9 @@
<Text>即刻分享赚</Text> <Text>即刻分享赚</Text>
<Text>{{ g.share }}</Text> <Text>{{ g.share }}</Text>
</view> </view>
<u-icon name="close" style='position: absolute;right: 1px;top: 1px;' color="#fff" size="40" @click='hideshare=true'></u-icon>
</view> </view>
<view class="is_share" v-if="g.myBuyCommission > 0"> <view class="is_share" v-if="g.myBuyCommission > 0 && hideshare == false">
<image <image
src="@/static/images/icon/WechatIMG424.png" src="@/static/images/icon/WechatIMG424.png"
style="width: 20px; margin-left: 12px; opacity: 1;height: auto;" style="width: 20px; margin-left: 12px; opacity: 1;height: auto;"
...@@ -66,6 +67,7 @@ ...@@ -66,6 +67,7 @@
<Text>即刻购买省</Text> <Text>即刻购买省</Text>
<Text>{{ g.myBuyCommission }}</Text> <Text>{{ g.myBuyCommission }}</Text>
</view> </view>
<u-icon v-if='g.share ==0' name="close" style='position: absolute;right: 1px;top: 1px;' color="#fff" size="40" @click='hideshare=true'></u-icon>
</view> </view>
</view> </view>
<view class="g-info"> <view class="g-info">
...@@ -353,6 +355,7 @@ export default { ...@@ -353,6 +355,7 @@ export default {
u: {}, u: {},
vipState: {}, vipState: {},
Up:0, Up:0,
hideshare:false,
}; };
}, },
components: { components: {
......
...@@ -39,7 +39,7 @@ ...@@ -39,7 +39,7 @@
}, },
onLoad(option) { onLoad(option) {
this.bgPic = this.bgPic =
option.pic ? ? option.pic ? option.pic:
"https://viitto-1301420277.cos.ap-chengdu.myqcloud.com/Test/Upload/Goods/1597312414000_253.jpg"; "https://viitto-1301420277.cos.ap-chengdu.myqcloud.com/Test/Upload/Goods/1597312414000_253.jpg";
if (option.left) { if (option.left) {
this.qrCodeLeft = parseInt(option.left); this.qrCodeLeft = parseInt(option.left);
......
...@@ -23,6 +23,11 @@ ...@@ -23,6 +23,11 @@
<u-icon v-if="msg2.SortNum==2||msg2.SortNum==3" :name="msg2.SortNum == 2 ? 'descending' : 'ascending'" size="36" <u-icon v-if="msg2.SortNum==2||msg2.SortNum==3" :name="msg2.SortNum == 2 ? 'descending' : 'ascending'" size="36"
:color="msg2.SortNum == 2 || msg2.SortNum == 3 ? mainColor : '#222'"></u-icon> :color="msg2.SortNum == 2 || msg2.SortNum == 3 ? mainColor : '#222'"></u-icon>
</view> </view>
<view @click="getSort(2,2)" class="ctem_item" :style="{ color: msg2.SortNum == 4 || msg2.SortNum == 5 ? mainColor : '#222'}">
<text>销售额</text>
<u-icon v-if="msg2.SortNum==4||msg2.SortNum==5" :name="msg2.SortNum == 5 ? 'descending' : 'ascending'" size="36"
:color="msg2.SortNum == 4 || msg2.SortNum == 5 ? mainColor : '#222'"></u-icon>
</view>
</view> </view>
</view> </view>
<u-empty v-if="g.length==0" text="暂无数据" mode="data"></u-empty> <u-empty v-if="g.length==0" text="暂无数据" mode="data"></u-empty>
...@@ -212,6 +217,13 @@ ...@@ -212,6 +217,13 @@
this.msg2.SortNum = 2; //降序 this.msg2.SortNum = 2; //降序
} }
} }
if (t == 2) {
if (this.msg2.SortNum == 5) {
this.msg2.SortNum = 4; //升序
} else {
this.msg2.SortNum = 5; //降序
}
}
this.init2(1); this.init2(1);
}, },
//获取数据 //获取数据
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment