订单、售后相关的订单标记

pull/1/MERGE
YunaiV 2023-06-05 00:03:30 +08:00
parent 8ccaa633ff
commit 4a9c829d6f
1 changed files with 19 additions and 20 deletions

View File

@ -63,7 +63,7 @@
<view class='goodsNav acea-row row-between-wrapper'> <view class='goodsNav acea-row row-between-wrapper'>
<view v-if="cartList.invalid.length > 1 || cartList.valid.length > 0" @click='goodsOpen'> <view v-if="cartList.invalid.length > 1 || cartList.valid.length > 0" @click='goodsOpen'>
<text class='iconfont' <text class='iconfont'
:class='goodsHidden==true?"icon-xiangxia":"icon-xiangshang"'></text>失效商品 :class='goodsHidden===true?"icon-xiangxia":"icon-xiangshang"'></text>失效商品
</view> </view>
<view v-else> <view v-else>
失效商品 失效商品
@ -95,10 +95,10 @@
</view> --> </view> -->
<view class='loadingicon acea-row row-center-wrapper' v-if="cartList.invalid.length&&loadend"> <view class='loadingicon acea-row row-center-wrapper' v-if="cartList.invalid.length&&loadend">
<text class='loading iconfont icon-jiazai' <text class='loading iconfont icon-jiazai'
:hidden='loadingInvalid==false'></text>{{loadTitleInvalid}} :hidden='loadingInvalid===false'></text>{{loadTitleInvalid}}
</view> </view>
</view> </view>
<view class='noCart' v-if="cartList.valid.length == 0 && cartList.invalid.length == 0 && canShow"> <view class='noCart' v-if="cartList.valid.length === 0 && cartList.invalid.length === 0 && canShow">
<view class='pictrue'> <view class='pictrue'>
<image src='../../static/images/noCart.png'></image> <image src='../../static/images/noCart.png'></image>
</view> </view>
@ -136,7 +136,6 @@
<!-- #ifdef MP --> <!-- #ifdef MP -->
<!-- <authorize :isAuto="isAuto" :isShowAuth="isShowAuth" @authColse="authColse"></authorize> --> <!-- <authorize :isAuto="isAuto" :isShowAuth="isShowAuth" @authColse="authColse"></authorize> -->
<!-- #endif --> <!-- #endif -->
</view> </view>
</template> </template>
@ -219,13 +218,13 @@
computed: mapGetters(['isLogin']), computed: mapGetters(['isLogin']),
onLoad: function(options) { onLoad: function(options) {
let that = this; let that = this;
if (that.isLogin == false) { if (that.isLogin === false) {
toLogin(); toLogin();
} }
}, },
onShow: function() { onShow: function() {
this.canShow = false this.canShow = false
if (this.isLogin == true) { if (this.isLogin === true) {
this.hotPage = 1; this.hotPage = 1;
this.hostProduct = [], this.hostProduct = [],
this.hotScroll = false, this.hotScroll = false,
@ -243,15 +242,15 @@
this.hotPage = 1; this.hotPage = 1;
this.hotLimit = 10; this.hotLimit = 10;
this.cartList = { this.cartList = {
valid: [], valid: [],
invalid: [] invalid: []
}, };
this.isAllSelect = false; // this.isAllSelect = false; //
this.selectValue = []; // this.selectValue = []; //
this.selectCountPrice = 0.00; this.selectCountPrice = 0.00;
this.cartCount = 0; this.cartCount = 0;
this.isShowAuth = false; this.isShowAuth = false;
}; }
}, },
methods: { methods: {
// //
@ -743,7 +742,7 @@
selectValue = []; selectValue = [];
if (validList.length > 0) { if (validList.length > 0) {
for (let index in validList) { for (let index in validList) {
if (validList[index].cartNum == 1) { if (validList[index].cartNum === 1) {
validList[index].numSub = true; validList[index].numSub = true;
} else { } else {
validList[index].numSub = false; validList[index].numSub = false;
@ -769,7 +768,7 @@
data.page += 1; data.page += 1;
that.selectValue = selectValue; that.selectValue = selectValue;
let newArr = validList.filter(item => item.attrStatus); let newArr = validList.filter(item => item.attrStatus);
that.isAllSelect = newArr.length == selectValue.length && newArr.length; that.isAllSelect = newArr.length === selectValue.length && newArr.length;
that.switchSelect(); that.switchSelect();
} }