diff --git a/common/http.api.js b/common/http.api.js
index 5949753..d6e9b05 100644
--- a/common/http.api.js
+++ b/common/http.api.js
@@ -97,6 +97,44 @@ const install = (Vue, vm) => {
canselectgood(){
return vm.$u.post("/article/getStoreGoodsList")
},
+ // 发布图文
+ publishphoto({article_title,article_content,article_pic,file_id,goods_id_arr,label_arr}){
+ return vm.$u.post("/article/publishImage",{article_title,article_content,article_pic,file_id,goods_id_arr,label_arr})
+ },
+ // 发布视频
+ publishvideo({article_title,article_content,article_pic,video_path,goods_id_arr,label_arr}){
+ return vm.$u.post("/article/publishVideo",{article_title,article_content,article_pic,video_path,goods_id_arr,label_arr})
+ },
+ // 订单详情
+ orderdetail({order_id}){
+ return vm.$u.post("/Order/orderInfo",{order_id})
+ },
+ // 试穿订单详情
+ testorderdetail({goods_try_id}){
+ return vm.$u.post("/order/goodsTryOrderInfo",{goods_try_id})
+ },
+ // 绑定物流订单
+ bindpushid({order_id,shipping_code,shipping_express_id}){
+ return vm.$u.post("/order/send",{order_id,shipping_code,shipping_express_id})
+ },
+ // 绑定骑手
+ bindcarer({order_id,takeawayer_id}){
+ return vm.$u.post("/order/orderRider",{order_id,takeawayer_id})
+ },
+ // 发货物流公司
+ pushcompany(){
+ return vm.$u.post("/order/getExpress")
+ },
+ // 退款退货
+ refund({refund_id,seller_state,seller_message}){
+ return vm.$u.post("/order/editRefund",{refund_id,seller_state,seller_message})
+ },
+ // 试穿
+ agreetest({goods_try_id,type,takeawayer_id}){
+ return vm.$u.post("/order/goodsTryAgree",{goods_try_id,type,takeawayer_id})
+ }
+
+
}
// 将各个定义的接口名称,统一放进对象挂载到vm.$u.api(因为vm就是this,也即this.$u.api)下
vm.$u.api = api;
diff --git a/components/order-item/index.vue b/components/order-item/index.vue
index 8ab7382..2192fd1 100644
--- a/components/order-item/index.vue
+++ b/components/order-item/index.vue
@@ -6,14 +6,14 @@
编号:{{info.order_sn}}
-
+
待处理订单
已发货订单
已完成订单
申请退款订单
已退款订单
+ 拒绝退款订单
-
{{info.extend_order_goods[0].goods_name}}
共{{info.extend_order_goods[0].goods_num}}件商品
@@ -34,7 +34,7 @@ export default {
methods: {
toDetailsPage() {
uni.navigateTo({
- url: '/pages/index/details?id=' + this.info.order_id
+ url: '/pages/index/details?id=' + this.info.order_id+"&type="+this.info.view_type
});
},
},
diff --git a/components/order-item/testlist.vue b/components/order-item/testlist.vue
index 8f8db9f..03f967d 100644
--- a/components/order-item/testlist.vue
+++ b/components/order-item/testlist.vue
@@ -29,8 +29,19 @@ export default {
},
methods: {
toDetailsPage() {
+ let type =0
+ let info = this.info
+ if(info.goods_try_order_status==0){
+ type=1
+ }else if(info.goods_try_order_status==20){
+ type=2
+ }else if(info.goods_try_order_status==40){
+ type=3
+ }else if(info.goods_try_order_status==50){
+ type=4
+ }
uni.navigateTo({
- url: '/pages/index/details?id=' + this.info.order_id
+ url: '/pages/index/otherdetails?id=' + this.info.goods_try_id+"&type="+type
});
},
},
diff --git a/pages.json b/pages.json
index ec1fa82..d60307e 100644
--- a/pages.json
+++ b/pages.json
@@ -59,6 +59,17 @@
}
}
}
+ },
+ {
+ "path": "pages/index/otherdetails",
+ "style": {
+ "navigationBarTitleText": "试穿订单详情",
+ "app-plus": {
+ "titleNView": {
+ "titleColor": "#333333"
+ }
+ }
+ }
},
{
"path": "pages/release/video",
diff --git a/pages/index/details.vue b/pages/index/details.vue
index 56f7486..e9d40da 100644
--- a/pages/index/details.vue
+++ b/pages/index/details.vue
@@ -1,62 +1,70 @@
-
+
- 心机小黑裙连衣裙赫本风夏季爆款...
+ {{ info.extend_order_goods[0].goods_name }}
- 共一件商品
- 实付¥199.9
+ 共{{ info.extend_order_goods[0].goods_num }}件商品
+
+ 实付
+ ¥{{ info.extend_order_goods[0].goods_pay_price }}
+
-
+
- 李先生
+ {{ info.extend_order_common.reciver_name }}
- 123456789
+ {{ info.extend_order_common.reciver_info.mob_phone }}
- 山东省临沂市兰山区XX路XX小区XX楼xx单元
+ {{ info.extend_order_common.reciver_info.address }}
-
+
收件人信息
姓名
- 李先生
+ {{ info.extend_order_common.reciver_name }}
手机号
- 123456789
+ {{ info.extend_order_common.reciver_info.mob_phone }}
收货地址
- 山东省临沂市兰山区XX路XX小区XX楼xx单元
+ {{ info.extend_order_common.reciver_info.address }}
-
+
派送方式
-
- 人工送达
- 指派外部骑手
+
+ 快递
+ 骑手
-
- 快递
- 骑手
+ 确认
+
+
+ 物流信息
+ 订单单号:{{ info.order_sn }}
+
+ {{list.content}}
+ {{list.kd_time}}
- 确认
-
- 不处理
- 确定处理
+
+ 不处理
+ 确定处理
+ 退款状态:{{ type == 5 ? '同意退款,请注意查收' : '拒绝退款,请等待客服联系' }}
+
+
+
@@ -88,22 +114,230 @@
export default {
data() {
return {
- status: Number, // 订单状态
+ status: 1, // 订单状态
cur: Number,
showDelivery: false, // 填写骑手信息
showExpress: false, // 填写快递单号
showRefunds: false, // 平台退货处理
+ showcompany: false, // 平台退货处理
+ companylist: [],
+ show: false, // 骑手列表
name: '',
phone: '',
company: '',
- express: ''
- }
+ express: '',
+ type: '',
+ orderid: 0,
+ info: {},
+ list: [],
+ pushid: null,
+ pushstate: false, //显示物流单号
+ selctcar: null, //骑手信息
+ companyidA: null, //物流派送公司id
+ companyidB: null //骑手派送公司id
+ };
},
onLoad(option) {
- this.status = option.current;
+ this.type = option.type;
+ this.orderid = option.id;
+ this.resetinfo();
+ if (this.type == 1) {
+ this.getcompanyinfo();
+ }
+ if (this.type == 2) {
+ this.getcarinfo();
+ }
+
+ // 订单状态: 0:全部 1已付款未发货 2已发货 3已完成 4申请退款/退货 5已退款/退货 6拒绝退款/退货
},
methods: {
- },
+ // 人工配送
+ pushstyleA() {
+ this.cur = 0;
+ this.showcompany = true;
+ },
+ // 选择骑手
+ pushstyleB() {
+ this.cur = 1;
+ this.show = true;
+ },
+ // 获取物流公司列表
+ getcompanyinfo() {
+ let that = this;
+ this.$u.api.pushcompany({}).then(res => {
+ if (res.errCode != 0) {
+ } else {
+ that.companylist = res.data;
+ }
+ });
+ },
+ // 取消退款
+ cancel() {
+ this.showRefunds = false;
+ // cur
+ },
+ //
+ confirm() {
+ this.showRefunds = false;
+ if (this.cur == 0) {
+ // 确定退款
+ return;
+ this.$u.api.refund({
+ refund_id: this.orderid,
+ seller_state:2,
+ seller_message:""
+ }).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);
+ }
+ });
+ } else {
+ // 不进行退款
+ return;
+ this.$u.api.refund({
+ refund_id: this.orderid,
+ seller_state:3,
+ seller_message:""
+ }).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);
+ }
+ });
+ }
+ },
+ // 同意退款
+ refuse() {
+ this.cur = 1;
+ this.showRefunds = true;
+ },
+ // 同意退款
+ unrefuse() {
+ 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]];
+ this.companyidA = obj.express_id;
+ this.showExpress = true;
+ },
+ // 绑定配送方式
+ confirmpushstyle() {
+ if (this.cur == 0) {
+ console.log(this.pushid);
+ this.$u.api.bindpushid({
+ order_id: this.orderid,
+ shipping_code: this.pushid,
+ shipping_express_id: this.companyidA
+ }).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'
+ });
+ uni.navigateBack({
+ delta: 1
+ });
+ }
+ });
+ } else {
+ this.$u.api.bindcarer({
+ order_id: this.orderid,
+ takeawayer_id: this.selctcar.takeawayer_id
+ }).then(res => {
+ console.log(res);
+ if (res.errCode != 0) {
+ this.$refs.uToast.show({
+ title: res.message,
+ type: 'error'
+ });
+ } else {
+ this.$refs.uToast.show({
+ title: res.message,
+ type: 'success'
+ });
+ }
+ });
+ }
+ },
+ // 选择骑手
+ getselect(e) {
+ this.selctcar = this.list[e[0]];
+ },
+ // 获取订单信息
+ resetinfo() {
+ this.$u.api.orderdetail({
+ order_id: this.orderid
+ }).then(res => {
+ console.log(res);
+ if (res.errCode != 0) {
+ this.$refs.uToast.show({
+ title: res.message,
+ type: 'error'
+ });
+ } else {
+ this.info = res.data;
+ }
+ });
+ this.$u.api.takeawayerlist({}).then(res => {
+ console.log(res);
+ if (res.errCode != 0) {
+ this.$refs.uToast.show({
+ title: res.message,
+ type: 'error'
+ });
+ } else {
+ let arr = res.data;
+ for (let index in arr) {
+ arr[index].content = arr[index].company_name + '——' + arr[index].contacts + '——' + arr[index].contact_number;
+ }
+ this.list = arr;
+ }
+ });
+ }
+ }
};
\ No newline at end of file
+
diff --git a/pages/index/index.vue b/pages/index/index.vue
index a44db7b..9c844dc 100644
--- a/pages/index/index.vue
+++ b/pages/index/index.vue
@@ -132,6 +132,7 @@ export default {
showComplaint: false,
worker: {},
publishstate: false,
+ clickstate:false,//投诉骑手按钮点击状态
num: 1,
allorder: [], //所有订单
testlist: [], //试穿列表
@@ -147,11 +148,17 @@ export default {
onLoad() {
// 初始化轮播图
this.getswiper();
- // 所有订单
- this.getallorder(0);
// 获取可投诉列表
this.getcarlist();
- // 订单状态: 0:全部 1已付款未发货 2已发货 3已完成 4申请退款/退货 5已退款/退货
+ // 订单状态: 0:全部 1已付款未发货 2已发货 3已完成 4申请退款/退货 5已退款/退货 6拒绝退款/退货
+ },
+ onShow() {
+ this.current=0
+ // 初始化数据
+ this.resetarr()
+ // 所有订单
+ this.getallorder(0);
+ this.publishstate = false;
},
onReachBottom() {
this.num++;
@@ -231,9 +238,14 @@ export default {
type: 'error'
});
} else {
- // 提交后清空选择
+ // 提交后清空选择信息
that.reportinfo=null
+ // 清空投诉评价
that.reportcontent = ""
+ // 清空选择器返回信息
+ that.worker = {}
+ // 重新获取可投诉列表
+ that.getcarlist();
// 提示修改成功
that.showComplaint = true;
}
@@ -365,6 +377,7 @@ export default {
},
// 发布内容跳转页面
navto(url) {
+ this.publishstate = false;
this.$u.route({
url: `/pages/${url}`
});
diff --git a/pages/index/otherdetails.vue b/pages/index/otherdetails.vue
new file mode 100644
index 0000000..27f360a
--- /dev/null
+++ b/pages/index/otherdetails.vue
@@ -0,0 +1,434 @@
+
+
+
+
+
+ {{ info.goods_name }}
+
+ 共{{ info.goods_try_num }}件商品
+
+ 实付
+ ¥{{ info.goods_price }}
+
+
+
+
+
+
+
+ {{ info.goods_try_member_name }}
+
+
+
+ {{ info.goods_try_member_mobile }}
+
+
+
+ {{ info.goods_try_area_info }}
+
+
+
+ 收件人信息
+
+
+ 姓名
+ {{ info.goods_try_member_name }}
+
+
+ 手机号
+ {{ info.goods_try_member_mobile }}
+
+
+ 收货地址
+ {{ info.goods_try_area_info }}
+
+
+
+
+ 派送方式
+
+ 人工送达
+ 指派外部骑手
+
+
+ 确认
+
+
+
+
+
+
+
+
+
+
+
diff --git a/pages/login/login.vue b/pages/login/login.vue
index dfbee8f..6d79c8c 100644
--- a/pages/login/login.vue
+++ b/pages/login/login.vue
@@ -57,7 +57,7 @@ export default {
login: '登录',
show: false,
zhanghao: 'seller',
- mima: '123456789',
+ mima: '123456',
zhanghaoA: '18953829598 ',
mimaA: '123456',
url: '',
diff --git a/pages/release/index.vue b/pages/release/index.vue
index ad64f78..ef217e0 100644
--- a/pages/release/index.vue
+++ b/pages/release/index.vue
@@ -78,9 +78,10 @@
创建属于你的标签吧
-
- 确定
+
+ 确定
+
@@ -120,7 +121,8 @@ export default {
scrollTop: 0,
imgarr: [], //上传图片数组
cover: '', //图文封面
- selectarr: [] //选中标签
+ selectarr: [], //选中标签
+ tagcontent: ''
};
},
onLoad() {
@@ -129,13 +131,37 @@ export default {
this.getLiveSpec();
},
methods: {
- publish(){
- console.log(this.imgarrA)
- console.log(this.imgarrB)
- console.log(this.selectarr)
- console.log(this.form)
- console.log(this.shoplist)
- console.log(this.arres_list)
+ publish() {
+ let arr = this.imgarrB;
+ let newarr = [];
+ for (let index in arr) {
+ newarr.push(arr[index].file_id);
+ }
+ this.$u.api.publishphoto({
+ article_title: this.form.name,
+ article_content: this.form.intro,
+ article_pic: this.imgarrA[0].file_name,
+ file_id: newarr,
+ goods_id_arr: this.arres_list,
+ label_arr: this.selectarr
+ }).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'
+ });
+ setTimeout(function(){
+ uni.navigateBack({
+ delta:1
+ })
+ },1000)
+ }
+ });
},
// 获取商品数组变化
getshoplist() {
@@ -149,24 +175,22 @@ export default {
}
}
}
- console.log(this.shoplist);
},
// 改变选中状态
changeselect(num) {
if (this.fileListes[num].state == true) {
this.fileListes[num].state = false;
- that.arres_list.splice(this.fileListes[num].id, 1);
+ let index = this.selectarr.indexOf(this.fileListes[num].id);
+ this.selectarr.splice(index, 1);
} else {
this.fileListes[num].state = true;
this.selectarr.push(this.fileListes[num].id);
}
- console.log(this.selectarr);
},
// 获取标签
getLiveSpec() {
let that = this;
this.$u.api.getLiveSpec({}).then(res => {
- console.log(res);
if (res.errCode != 0) {
this.$refs.uToast.show({
title: res.message,
@@ -177,43 +201,47 @@ export default {
for (let index in arr) {
arr[index].state = false;
}
- console.log(arr);
that.fileListes = arr;
}
});
},
// 创建标签
addLiveSpec() {
- this.$u.api.createLivesp({}).then(res => {
- console.log(res);
- if (res.data.live_stataes == 0) {
- this.$u.route({
- url: `/pages/${url}`
+ this.$u.api.createLivesp({
+ spec_name: this.tagcontent
+ }).then(res => {
+ if (res.errCode != 0) {
+ this.$refs.uToast.show({
+ title: res.message,
+ type: 'error'
});
} else {
+ this.tagcontent = '';
+ this.show = false;
+ this.$refs.uToast.show({
+ title: res.message,
+ type: 'success'
+ });
}
});
},
// 上传封面
uploadcover(data) {
- let obj = data.data
- obj.url = obj.file_path
- this.imgarrA.push(obj)
+ let obj = data.data;
+ obj.url = obj.file_path;
+ this.imgarrA.push(obj);
},
// 上传图片
uploadphoto(data) {
- console.log(data)
- let obj = data.data
- obj.url = obj.file_path
- this.imgarrB.push(obj)
+ let obj = data.data;
+ obj.url = obj.file_path;
+ this.imgarrB.push(obj);
},
changes() {
let that = this;
that.show_two = false;
- console.log(that.arres_list);
},
show_add() {
- console.log(this.show);
this.show = !this.show;
},
// 选中某个复选框时,由checkbox时触发
@@ -224,7 +252,6 @@ export default {
} else {
this.delarr(id);
}
- console.log(this.arres_list);
},
// 删除直播商品
delarr(id) {
@@ -248,7 +275,6 @@ export default {
}
},
tosign() {
- console.log('111');
this.$u.api.canselectgood({}).then(res => {
if (res.data.live_stataes == 0) {
this.$u.route({
diff --git a/pages/release/video.vue b/pages/release/video.vue
index da2a9b6..8b7c613 100644
--- a/pages/release/video.vue
+++ b/pages/release/video.vue
@@ -1,27 +1,42 @@
-
-
-
- 封面
-
- 图片
-
-
-
- 标签
- + 新建标签
- {{item}}
+
+ 封面
+
+ 视频
+
+
+ 选择视频
+
+
+
+
+ 标签
+ + 新建标签
+
+ {{ item.name }}
-
- 正文
-
+
+
+ 正文
+
选择商品
-
+
@@ -42,107 +57,262 @@
-
-
- 木糖少女小紫薯西装领连衣裙夏季新款女装夏收腰格子格纹裙子
-
+
+
+ {{ list.goods_name }}
+
-
- 发表
-
-
-
-
- 创建属于你的标签吧
-
-
-
-
- 确定
-
+
+ 发表
+
+
+
+ 创建属于你的标签吧
+
+ 确定
+
+