fixed bug

This commit is contained in:
cmxdd 2020-08-06 17:02:11 +08:00
parent 6ec2318d0c
commit 71a25fd11d
13 changed files with 55 additions and 62 deletions

View File

@ -12,12 +12,13 @@
<view class="status" v-else-if="info.view_type==3">已完成订单</view>
<view class="status" v-else-if="info.view_type==4">申请退款</view>
<view class="status" v-else-if="info.view_type==5">已退款订单</view>
<view class="status" v-else-if="info.view_type==6">拒绝退款</view>
<view class="status" v-else-if="info.view_type==6">商家同意</view>
<view class="status" v-else-if="info.view_type==7">商家拒绝</view>
</view>
<view class="name u-line-1">{{info.extend_order_goods[0].goods_name}}</view>
<view class="info">
<view class="num">{{info.extend_order_goods[0].goods_num}}件商品</view>
<view class="price">实付<span>{{info.goods_amount}}</span></view>
<view class="num">{{info.count_number}}件商品</view>
<view class="price">实付<span>{{info.order_amount}}</span></view>
</view>
</view>
</view>

View File

@ -257,7 +257,7 @@
},
"tabBar": {
"color": "#7A7E83",
"selectedColor": "#3cc51f",
"selectedColor": "#FF780F",
"borderStyle": "black",
"backgroundColor": "#ffffff",
"height": "50px",
@ -265,20 +265,20 @@
"spacing": "3px",
"list": [{
"pagePath": "pages/index/index",
"iconPath": "",
"selectedIconPath": "",
"iconPath": "static/image/tabbar/index.png",
"selectedIconPath": "static/image/tabbar/indexselect.png",
"text": "首页",
"selectedColor": "#FBFBFB"
}, {
"pagePath": "pages/messages/messagesList",
"iconPath": "",
"selectedIconPath": "",
"iconPath": "static/image/tabbar/info.png",
"selectedIconPath": "static/image/tabbar/infoselect.png",
"text": "消息",
"selectedColor": "#FBFBFB"
}, {
"pagePath": "pages/user/index",
"iconPath": "",
"selectedIconPath": "",
"iconPath": "static/image/tabbar/mine.png",
"selectedIconPath": "static/image/tabbar/mineselect.png",
"text": "我的",
"selectedColor": "#FBFBFB"
}]

View File

@ -28,8 +28,8 @@
</view>
</view>
</view>
<u-radio :name="list.refund_id" shape="circle" @change="radioGroupChange">
</u-radio>
<u-radio :name="list.refund_id" v-if="type==4" shape="circle" @change="radioGroupChange">
</u-radio >
</view>
</u-radio-group>
<!-- 待处理 -->
@ -52,7 +52,7 @@
</view>
<!-- 待处理之后的 -->
<view class="refunds-title" v-if="type!=1">收件人信息</view>
<view class="refunds-user" v-if="type == 2 || type == 3 || type == 4 || type == 5 || type == 6">
<view class="refunds-user" v-if="type == 2 || type == 3 || type == 4 || type == 5 || type == 6|| type == 7">
<view>
<image src="/static/image/home/2.png"></image>
<view>{{ info.extend_order_common.reciver_name }}</view>
@ -92,7 +92,9 @@
<view :class="{ active: cur == 1 }" @click="refuse">确定处理</view>
</view>
<!-- 同意退款/拒绝退款 -->
<view class="refund" v-if="type == 5 || type == 6">退款状态:{{ type == 5 ? '同意退款请注意查收' : '拒绝退款请等待客服联系' }}</view>
<view class="refund" v-if="type == 5 ">退款状态:同意退款请注意查收</view>
<view class="refund" v-if="type == 6 ">退款状态:商家同意退款等待后台处理</view>
<view class="refund" v-if="type == 7 ">退款状态:商家拒绝退款请等待客服联系</view>
<u-popup v-model="showDelivery" mode="center" border-radius="10" class="delivery-popup">
<view class="title">骑手信息</view>
<view class="input-info">
@ -287,25 +289,6 @@ export default {
this.cur = 0;
this.showRefunds = true;
},
//
getcarinfo() {
this.$u.api.getpushinfo({
order_id: this.orderid
}).then(res => {
if (res.errCode != 0) {
this.$refs.uToast.show({
title: res.message,
type: 'error'
});
} else {
this.$refs.uToast.show({
title: res.message,
type: 'success'
});
console.log(res);
}
});
},
//
getselectcompany(e) {
let obj = this.companylist[e[0]];
@ -405,6 +388,7 @@ export default {
background-color: #ececec;
.goods-info {
background-color: #ffffff;
width: 750rpx;
padding: 30rpx;
display: flex;
align-items: center;

View File

@ -50,10 +50,14 @@
</view>
</view>
<view v-else-if="current == 5">
<view v-for="(item, index) in finshlist" :key="index"><OrderItem :cur="current"></OrderItem></view>
<view v-for="(item, index) in finshlist" :key="index">
<OrderItem :info="item"></OrderItem>
</view>
</view>
<view v-else-if="current == 6">
<view v-for="(item, index) in badlist" :key="index"><OrderItem :cur="current"></OrderItem></view>
<view v-for="(item, index) in badlist" :key="index">
<OrderItem :info="item"></OrderItem>
</view>
</view>
<view class="release-btn" @click="publish">
<image src="../../static/image/index/publish.png"></image>
@ -150,15 +154,11 @@ export default {
this.getswiper();
//
this.getcarlist();
//
this.getallorder(0);
// 0: 1 2 3 4退/退 5退/退 6退/退
},
onShow() {
this.num=1
this.current=0
//
this.resetarr()
//
this.getallorder(0);
this.publishstate = false;
},
onReachBottom() {
@ -198,7 +198,7 @@ export default {
this.getallorder(3);
} else if (current == 6) {
// 退
this.getallorder(5);
this.getallorder(4);
}
},
//
@ -371,9 +371,6 @@ export default {
this.current = index;
this.num = 1;
this.resetarr();
if (index == 6) {
this.getallorder(4);
}
this.reset();
},
//

View File

@ -46,10 +46,10 @@
<view class="title"><text>选择商品</text></view>
<!-- 商品列表 -->
<scroll-view :scroll-top="scrollTop" scroll-y="true" class="scroll">
<view class="listes_shoping" v-for="(item, index) in list" :key="index">
<view class="listes_shoping" v-for="(item, index) in list" :key="index" @click="checkboxChange(item.goods_id)">
<view>
<u-checkbox-group>
<u-checkbox @change="checkboxChange" shape="circle" active-color="#FF780F" v-model="item.checked" :name="item.goods_id"></u-checkbox>
<u-checkbox shape="circle" active-color="#FF780F" v-model="item.checked" :disabled="true"></u-checkbox>
</u-checkbox-group>
</view>
<view><image :src="item.goods_image" mode="widthFix"></image></view>
@ -164,7 +164,7 @@ export default {
});
},
//
getshoplist() {
getshoplist(id) {
let arr = this.arres_list;
let newarr = this.list;
this.shoplist = [];
@ -246,11 +246,16 @@ export default {
},
// checkbox
checkboxChange(e) {
let id = e.name;
if (e.value == true) {
this.pushes(id);
} else {
this.delarr(id);
let id = e;
for(let num in this.list){
if(id==this.list[num].goods_id){
if(this.list[num].checked==true){
this.delarr(id);
}else{
this.pushes(id);
}
this.list[num].checked = !this.list[num].checked
}
}
},
//
@ -261,7 +266,7 @@ export default {
} else {
let index = that.arres_list.indexOf(id);
that.arres_list.splice(index, 1);
that.getshoplist();
that.getshoplist(id);
}
},
//
@ -271,7 +276,7 @@ export default {
console.log('为空');
} else {
that.arres_list.push(id);
that.getshoplist();
that.getshoplist(id);
}
},
tosign() {

View File

@ -37,10 +37,10 @@
<view class="title"><text>选择商品</text></view>
<!-- 商品列表 -->
<scroll-view :scroll-top="scrollTop" scroll-y="true" class="scroll">
<view class="listes_shoping" v-for="(item, index) in list" :key="index">
<view class="listes_shoping" v-for="(item, index) in list" :key="index" @click="checkboxChange(item.goods_id)">
<view>
<u-checkbox-group>
<u-checkbox @change="checkboxChange" shape="circle" active-color="#FF780F" v-model="item.checked" :name="item.goods_id"></u-checkbox>
<u-checkbox shape="circle" active-color="#FF780F" v-model="item.checked" :disabled="true" ></u-checkbox>
</u-checkbox-group>
</view>
<view><image :src="item.goods_image" mode="widthFix"></image></view>
@ -270,11 +270,15 @@ export default {
},
// checkbox
checkboxChange(e) {
let id = e.name;
if (e.value == true) {
this.pushes(id);
} else {
this.delarr(id);
for(let num in this.list){
if(id==this.list[num].goods_id){
if(this.list[num].checked==true){
this.delarr(id);
}else{
this.pushes(id);
}
this.list[num].checked = !this.list[num].checked
}
}
},
//

View File

@ -35,6 +35,8 @@ export default {
}
},
onLoad() {
},
onShow() {
this.getmyinfo()
},
methods: {

Binary file not shown.

After

Width:  |  Height:  |  Size: 805 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 774 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 841 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 753 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 761 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 705 B