fixed bug
This commit is contained in:
parent
6ec2318d0c
commit
71a25fd11d
@ -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>
|
||||
|
14
pages.json
14
pages.json
@ -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"
|
||||
}]
|
||||
|
@ -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;
|
||||
|
@ -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();
|
||||
},
|
||||
// 发布内容跳转页面
|
||||
|
@ -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() {
|
||||
|
@ -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
|
||||
}
|
||||
}
|
||||
},
|
||||
// 删除直播商品
|
||||
|
@ -35,6 +35,8 @@ export default {
|
||||
}
|
||||
},
|
||||
onLoad() {
|
||||
},
|
||||
onShow() {
|
||||
this.getmyinfo()
|
||||
},
|
||||
methods: {
|
||||
|
BIN
static/image/tabbar/index.png
Normal file
BIN
static/image/tabbar/index.png
Normal file
Binary file not shown.
After Width: | Height: | Size: 805 B |
BIN
static/image/tabbar/indexselect.png
Normal file
BIN
static/image/tabbar/indexselect.png
Normal file
Binary file not shown.
After Width: | Height: | Size: 774 B |
BIN
static/image/tabbar/info.png
Normal file
BIN
static/image/tabbar/info.png
Normal file
Binary file not shown.
After Width: | Height: | Size: 841 B |
BIN
static/image/tabbar/infoselect.png
Normal file
BIN
static/image/tabbar/infoselect.png
Normal file
Binary file not shown.
After Width: | Height: | Size: 753 B |
BIN
static/image/tabbar/mine.png
Normal file
BIN
static/image/tabbar/mine.png
Normal file
Binary file not shown.
After Width: | Height: | Size: 761 B |
BIN
static/image/tabbar/mineselect.png
Normal file
BIN
static/image/tabbar/mineselect.png
Normal file
Binary file not shown.
After Width: | Height: | Size: 705 B |
Loading…
Reference in New Issue
Block a user