fixing bug

This commit is contained in:
ghusermoon 2020-09-09 17:21:33 +08:00
parent 45c087bf14
commit a9477b9657
5 changed files with 25 additions and 14 deletions

View File

@ -73,9 +73,9 @@
</view> </view>
</view> </view>
<!-- '4', '8' --> <!-- '4', '8' -->
<view class="btn" v-if="['1', '2', '6'].indexOf(orderstate) >= 0"> <view class="btn" v-if="['1', '2', '4', '6'].indexOf(orderstate) >= 0">
<!-- orderstate == '4' || --> <!-- orderstate == '4' || -->
<view class="cancel" v-if="(orderstate == '1') && orderInfo.is_refund == 1" @click="toOtherPage('RefundOrder')">申请退款</view> <view class="cancel" v-if="(orderstate == '1' || orderstate == '4') && orderInfo.is_refund == 1" @click="toOtherPage('RefundOrder')">申请退款</view>
<!-- <view class="cancel" v-if="orderstate == '8'" @click="cancelOrder">取消订单</view> --> <!-- <view class="cancel" v-if="orderstate == '8'" @click="cancelOrder">取消订单</view> -->
<view class="cancel" v-if="orderstate == '1' && orderInfo.shipping_code && orderInfo.member_deliver_type != 3" @click="toOtherPage('Logistics')">查看物流</view> <view class="cancel" v-if="orderstate == '1' && orderInfo.shipping_code && orderInfo.member_deliver_type != 3" @click="toOtherPage('Logistics')">查看物流</view>
<view class="logistics" v-if="orderstate == '1'" @click="confirmReceive">确认收货</view> <view class="logistics" v-if="orderstate == '1'" @click="confirmReceive">确认收货</view>

View File

@ -129,11 +129,11 @@ export default {
page: this.page, page: this.page,
type: type, type: type,
}) })
res.data.forEach(element => { // res.data.forEach(element => {
element.extend_order_goods.forEach(i=>{ // element.extend_order_goods.forEach(i=>{
// console.log(i) // // console.log(i)
}) // })
}); // });
this.timer = true; this.timer = true;
uni.stopPullDownRefresh(); // uni.stopPullDownRefresh(); //
if(res.errCode == 0) { if(res.errCode == 0) {
@ -145,11 +145,11 @@ export default {
this.orderList[this.current].push(...res.data); this.orderList[this.current].push(...res.data);
} }
} }
this.orderList[this.current].forEach(element => { // this.orderList[this.current].forEach(element => {
element.extend_order_goods.forEach(i=>{ // element.extend_order_goods.forEach(i=>{
// console.log(i) // // console.log(i)
}) // })
}); // });
this.$forceUpdate(); this.$forceUpdate();
// console.log(this.orderList); // console.log(this.orderList);

View File

@ -15,6 +15,10 @@
<text class="tips" v-if="version" @click="updateVersion">发现新版本: {{ version }}</text> <text class="tips" v-if="version" @click="updateVersion">发现新版本: {{ version }}</text>
<text class="tips" v-else>已是最新版本</text> <text class="tips" v-else>已是最新版本</text>
</view> </view>
<view>
<text class="title">联系我们</text>
<text class="tips">0539-09875421</text>
</view>
</view> </view>
</view> </view>
</template> </template>
@ -96,7 +100,7 @@ export default {
} }
.tips { .tips {
color: #999; color: #999;
font-size: 22rpx; font-size: 28rpx;
} }
.version-view { .version-view {
.tips { .tips {

View File

@ -83,6 +83,10 @@
<image src="/static/image/mine/39.png"></image> <image src="/static/image/mine/39.png"></image>
<view>试穿试送</view> <view>试穿试送</view>
</view> </view>
<view @click="toCartPage">
<image src="/static/image/common/33.png"></image>
<view>购物车</view>
</view>
</view> </view>
</view> </view>
<view class="more-tool"> <view class="more-tool">
@ -224,7 +228,10 @@ export default {
uni.navigateTo({ uni.navigateTo({
url: '/pageE' + url url: '/pageE' + url
}); });
} },
toCartPage() {
this.$u.route('/pageC/cart/index');
},
} }
}; };
</script> </script>

BIN
static/image/common/33.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 10 KiB