Commit 3ed50f83 authored by Mac's avatar Mac

团队新增排序

商品隐藏
parent 06436c25
......@@ -77,20 +77,20 @@
}
]
},
// {
// "root": "pages/live",
// "plugins": {
// "live-player-plugin": {
// "version": "1.2.2",
// "provider": "wx2b03c6e691cd7370"
// }
// },
// "pages": [{
// "path": "index"
// }, {
// "path": "share"
// }]
// },
{
"root": "pages/live",
"plugins": {
"live-player-plugin": {
"version": "1.2.3",
"provider": "wx2b03c6e691cd7370"
}
},
"pages": [{
"path": "index"
}, {
"path": "share"
}]
},
{
"root": "pages/user-center",
"pages": [{
......
......@@ -27,7 +27,7 @@
</block>
</swiper>
<!-- 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
src="@/static/images/icon/WechatIMG424.png"
style="width: 20px; margin-left: 12px; opacity: 1;height: auto;"
......@@ -46,8 +46,9 @@
<Text>即刻分享赚</Text>
<Text>{{ g.share }}</Text>
</view>
<u-icon name="close" style='position: absolute;right: 1px;top: 1px;' color="#fff" size="40" @click='hideshare=true'></u-icon>
</view>
<view class="is_share" v-if="g.myBuyCommission > 0">
<view class="is_share" v-if="g.myBuyCommission > 0 && hideshare == false">
<image
src="@/static/images/icon/WechatIMG424.png"
style="width: 20px; margin-left: 12px; opacity: 1;height: auto;"
......@@ -66,6 +67,7 @@
<Text>即刻购买省</Text>
<Text>{{ g.myBuyCommission }}</Text>
</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 class="g-info">
......@@ -353,6 +355,7 @@ export default {
u: {},
vipState: {},
Up:0,
hideshare:false,
};
},
components: {
......
......@@ -39,7 +39,7 @@
},
onLoad(option) {
this.bgPic =
option.pic ? ?
option.pic ? option.pic:
"https://viitto-1301420277.cos.ap-chengdu.myqcloud.com/Test/Upload/Goods/1597312414000_253.jpg";
if (option.left) {
this.qrCodeLeft = parseInt(option.left);
......
......@@ -23,6 +23,11 @@
<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>
</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>
<u-empty v-if="g.length==0" text="暂无数据" mode="data"></u-empty>
......@@ -212,6 +217,13 @@
this.msg2.SortNum = 2; //降序
}
}
if (t == 2) {
if (this.msg2.SortNum == 5) {
this.msg2.SortNum = 4; //升序
} else {
this.msg2.SortNum = 5; //降序
}
}
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