Merge branch 'master' of https://gitee.com/renjianbo0118/coupon
Conflicts: project.config.json
3
app.js
@@ -15,14 +15,11 @@ App({
|
||||
encryptedData: '',
|
||||
iv: '',
|
||||
code: '',
|
||||
|
||||
|
||||
url: 'http://chengjie.free.idcfengye.com',
|
||||
phone: '',
|
||||
uid: '',
|
||||
sessionKey: '',
|
||||
version_number: '1.0.0',
|
||||
|
||||
},
|
||||
console: function (msg) {
|
||||
console.log(msg);
|
||||
|
||||
4
app.json
@@ -6,7 +6,6 @@
|
||||
"pages/tuiguang/tuiguang",
|
||||
"pages/institutions/institutions",
|
||||
"pages/cardBag/cardBag",
|
||||
"pages/appointmentDetails/appointmentDetails",
|
||||
"pages/my/my",
|
||||
"pages/login/login",
|
||||
"pages/order/order",
|
||||
@@ -18,8 +17,7 @@
|
||||
"pages/myshoucang/myshoucang_index",
|
||||
"pages/myshoucang/myorderdetail",
|
||||
"pages/wodeqianbao/qianbao",
|
||||
"pages/refund/refund",
|
||||
"pages/peihu"
|
||||
"pages/refund/refund"
|
||||
],
|
||||
"window": {
|
||||
"backgroundTextStyle": "light",
|
||||
|
||||
|
Before Width: | Height: | Size: 7.5 KiB |
|
Before Width: | Height: | Size: 6.4 KiB |
|
Before Width: | Height: | Size: 2.4 KiB |
|
Before Width: | Height: | Size: 8.2 KiB |
|
Before Width: | Height: | Size: 46 KiB |
|
Before Width: | Height: | Size: 65 KiB |
|
Before Width: | Height: | Size: 165 KiB |
|
Before Width: | Height: | Size: 5.4 KiB |
|
Before Width: | Height: | Size: 90 KiB |
BIN
pages/image/no_order.png
Normal file
|
After Width: | Height: | Size: 31 KiB |
|
Before Width: | Height: | Size: 6.1 KiB |
|
Before Width: | Height: | Size: 7.5 KiB |
@@ -23,7 +23,6 @@ Page({
|
||||
currentType: curType,
|
||||
pageNum: 1
|
||||
});
|
||||
|
||||
this.getOrderList();
|
||||
},
|
||||
onClickLeft() {
|
||||
@@ -42,45 +41,15 @@ Page({
|
||||
//条目点击---订单状态:-2:已取消 -1:拒绝接单 0:待接单 1:已接单(待支付) 2:已支付(待服务)3:服务中 4:已完成 5申请退款 6退款中 7已退款 8:已结算
|
||||
|
||||
itemclick(e) {
|
||||
console.log("index==" + e.currentTarget.dataset.index)
|
||||
console.log("status==" + e.currentTarget.dataset.status)
|
||||
console.log("列表条目的index==" + e.currentTarget.dataset.index)
|
||||
//去订单详情页
|
||||
if (e.currentTarget.dataset.item != 0) {
|
||||
let item = JSON.stringify(e.currentTarget.dataset.item);
|
||||
console.log("传递的item" + item);
|
||||
//console.log("传递的item" + item);
|
||||
wx.navigateTo({
|
||||
url: "/pages/orderdetail/orderdetail?item=" + item,
|
||||
});
|
||||
}
|
||||
|
||||
|
||||
|
||||
if (this.data.order_list[e.currentTarget.dataset.index].status == '已取消订单') {
|
||||
wx.navigateTo({
|
||||
url: '/pages/orderdetail/orderdetail?' + "type=" + '1' + '&id=' + this.data.order_list[e.currentTarget.dataset.index].order_id,
|
||||
})
|
||||
}
|
||||
|
||||
if (this.data.order_list[e.currentTarget.dataset.index].status == '待退款') {
|
||||
wx.navigateTo({
|
||||
url: '/pages/reforderdetail/reforderdetail?' + "type=" + '4' + '&id=' + e.currentTarget.dataset.id,
|
||||
})
|
||||
}
|
||||
|
||||
if (this.data.order_list[e.currentTarget.dataset.index].status == '退款驳回') {
|
||||
wx.navigateTo({
|
||||
url: '/pages/reforderdetail/reforderdetail?' + "type=" + '1' + '&id=' + e.currentTarget.dataset.id,
|
||||
})
|
||||
}
|
||||
|
||||
if (this.data.order_list[e.currentTarget.dataset.index].status == '已退款') {
|
||||
wx.navigateTo({
|
||||
url: '/pages/reforderdetail/reforderdetail?' + "type=" + '2' + '&id=' + e.currentTarget.dataset.id,
|
||||
})
|
||||
}
|
||||
// wx.navigateTo({
|
||||
// url: '/pages/orderdetail/orderdetail?'+"type="+'1'+ '&id=' +e.currentTarget.dataset.id,
|
||||
// })
|
||||
}
|
||||
},
|
||||
//跳转订单详情(去付款)
|
||||
go_pay(e) {
|
||||
@@ -214,7 +183,6 @@ Page({
|
||||
},
|
||||
success: (res) => {
|
||||
var resp = res.data;
|
||||
console.log(resp + "===========订单")
|
||||
if (res.data.code == 200) {
|
||||
if (this.data.pageNum == 1) {
|
||||
that.setData({
|
||||
|
||||
@@ -7,14 +7,14 @@
|
||||
</view>
|
||||
</view>
|
||||
<view class="no-order" style="margin-top: {{height}}px;" wx:if="{{!order_list.length}}">
|
||||
<image src="/images/no-order.png" class="no-order-img"></image>
|
||||
<image src="/pages/image/address.png" class="no-order-img"></image>
|
||||
<view class="text">暂无订单</view>
|
||||
</view>
|
||||
<!-- 全部 -->
|
||||
<view wx:if="{{nav_type==1||all}}">
|
||||
|
||||
<view class="order-list" wx:if="{{order_list.length}}">
|
||||
<view wx:for="{{order_list}}" data-index="{{index}}" data-status="{{item.status}}" data-item="{{item}}" wx:for-item="item" bindtap="itemclick" class="flex-item" style='display:flex;background-color: white;margin-bottom: 24rpx;'>
|
||||
<view wx:for="{{order_list}}" data-index="{{index}}" data-status="{{item.status}}" data-item="{{item}}" wx:for-item="item" bindtap="itemclick" class="flex-item">
|
||||
<view style=" padding: 0 24rpx;height:366rpx;position: relative;background: #ffffff;">
|
||||
<view style="height:66rpx;">
|
||||
<text class="time_msg">订单号:{{item.orderNumber}}</text>
|
||||
|
||||
@@ -1,5 +1,6 @@
|
||||
//获取应用实例
|
||||
var app = getApp();
|
||||
// pages/peihu.js
|
||||
Page({
|
||||
|
||||
/**
|
||||
@@ -39,26 +40,15 @@ Page({
|
||||
}
|
||||
],
|
||||
show: false,
|
||||
statusType: ["拼团"],
|
||||
status: ["0"],
|
||||
currentType: 0,
|
||||
nav_type: 0,
|
||||
is_ok_click: false,
|
||||
|
||||
|
||||
|
||||
|
||||
height: ''
|
||||
|
||||
|
||||
},
|
||||
|
||||
onClickShow() {
|
||||
this.setData({
|
||||
show: true
|
||||
});
|
||||
},
|
||||
|
||||
onClickHide() {
|
||||
this.setData({
|
||||
show: false
|
||||
});
|
||||
},
|
||||
|
||||
/**
|
||||
* 生命周期函数--监听页面加载
|
||||
*/
|
||||
@@ -69,12 +59,12 @@ Page({
|
||||
height: 46 + statusBarHeight,
|
||||
});
|
||||
//条目点击进入详情页
|
||||
this.setData({
|
||||
order_id: e.id
|
||||
})
|
||||
// this.setData({
|
||||
// order_id: e.id
|
||||
// })
|
||||
//条目点击进入详情页,调取接口获取详情页数据,除外都是通过列表传参的方式展示详情页数据。
|
||||
if(e.type=3){
|
||||
this.getOrderDetail();
|
||||
if (e.type = 3) {
|
||||
this.getOrderDetail();
|
||||
}
|
||||
|
||||
var that = this;
|
||||
@@ -84,334 +74,52 @@ Page({
|
||||
charge_phone: 18133233292,
|
||||
order_id: item.orderId
|
||||
});
|
||||
app.console("order_id=================" + this.data.order_id)
|
||||
},
|
||||
mengceng() {
|
||||
this.setData({
|
||||
dingdan_msg: false,
|
||||
ewm_msg: false,
|
||||
mengceng: false,
|
||||
refund_box: false
|
||||
})
|
||||
},
|
||||
mengcengfwz() {
|
||||
this.setData({
|
||||
dingdan_msgfwz: false,
|
||||
ewm_msg: false,
|
||||
mengcengfwz: false,
|
||||
refund_box: false
|
||||
})
|
||||
},
|
||||
//确认开始服务
|
||||
startService() {
|
||||
var that = this;
|
||||
wx.request({
|
||||
url: app.globalData.url + '/system/view/startServiceWithOrder',
|
||||
header: app.getRequestHeader(),
|
||||
method: 'post',
|
||||
data: {
|
||||
orderId: that.data.order_id
|
||||
},
|
||||
success: function (res) {
|
||||
var resp = res.data;
|
||||
if (res.data.code == 200) {
|
||||
// that.setData({
|
||||
// item : res.data.data
|
||||
// });
|
||||
}
|
||||
}
|
||||
});
|
||||
|
||||
console.log("进入订单详情的status==" + that.data.item.status)
|
||||
console.log("进入订单详情的orderId==" + that.data.item.orderId)
|
||||
console.log("进入订单详情的orderNumber==" + that.data.item.orderNumber)
|
||||
},
|
||||
|
||||
cancelOrder() {
|
||||
console.log('点击了取消订单')
|
||||
this.setData({
|
||||
dingdan_msg: true,
|
||||
mengceng: true
|
||||
})
|
||||
},
|
||||
cancelOrderfwz() {
|
||||
console.log('点击了取消订单')
|
||||
this.setData({
|
||||
dingdan_msgfwz: true,
|
||||
mengcengfwz: true
|
||||
})
|
||||
},
|
||||
okcancel() {
|
||||
var that = this;
|
||||
wx.request({
|
||||
// url: app.globalData.url + '/system/order/concelOrder/' + this.data.item.orderId,
|
||||
url: app.globalData.url + '/system/order/refundOrder/' + this.data.item.orderId,
|
||||
header: app.getRequestHeader(),
|
||||
method: 'GET',
|
||||
data: {
|
||||
// id: this.data.item.orderId,
|
||||
},
|
||||
success: (res) => {
|
||||
var resp = res.data;
|
||||
if (res.data.code == 200) {
|
||||
wx.showToast({
|
||||
title: res.data.msg,
|
||||
icon: 'none'
|
||||
});
|
||||
setTimeout(function () {
|
||||
//要延时执行的代码
|
||||
wx.navigateBack()
|
||||
}, 2000) //延迟时间 这里是2秒
|
||||
}
|
||||
}
|
||||
});
|
||||
|
||||
console.log('点击了坚持取消');
|
||||
// var _this=this;
|
||||
// wx.request({
|
||||
// url: app.globalData.url + '/app/Goddesswechat/cancelOrder',
|
||||
// data: {
|
||||
// version_number: app.globalData.version_number,
|
||||
// uid: wx.getStorageSync('uid'),
|
||||
// token:wx.getStorageSync('token'),
|
||||
// order_id:this.data.order_id
|
||||
// },
|
||||
// method: 'POST',
|
||||
// header: { 'content-type': 'application/x-www-form-urlencoded' },
|
||||
// success(res) {
|
||||
// console.log(1111111)
|
||||
// console.log(res)
|
||||
// if (res.data.erro == 0) {
|
||||
// wx.showToast({ title: res.data.msg, icon: 'none' });
|
||||
// }else{
|
||||
|
||||
// }
|
||||
// }
|
||||
// }
|
||||
// )
|
||||
|
||||
|
||||
this.setData({
|
||||
dingdan_msg: false,
|
||||
mengceng: false
|
||||
})
|
||||
},
|
||||
nocancel() {
|
||||
this.setData({
|
||||
dingdan_msg: false,
|
||||
mengceng: false
|
||||
})
|
||||
},
|
||||
/**
|
||||
* 拨打电话
|
||||
*/
|
||||
callphone() {
|
||||
wx.makePhoneCall({
|
||||
|
||||
phoneNumber: this.data.charge_phone,
|
||||
|
||||
})
|
||||
},
|
||||
/**
|
||||
* 发起拼团
|
||||
*/
|
||||
pintuan() {
|
||||
this.setData({
|
||||
show: true
|
||||
});
|
||||
},
|
||||
tiaoguo() {
|
||||
this.setData({
|
||||
show: false
|
||||
});
|
||||
},
|
||||
/**
|
||||
* 同意发起
|
||||
*/
|
||||
tongyifaqi() {
|
||||
this.confirmCollage()
|
||||
},
|
||||
|
||||
refund() {
|
||||
|
||||
var that = this;
|
||||
wx.request({
|
||||
// url: app.globalData.url + '/system/order/concelOrder/' + this.data.item.orderId,
|
||||
url: app.globalData.url + '/system/order/refundOrder/' + this.data.item.orderId,
|
||||
header: app.getRequestHeader(),
|
||||
method: 'GET',
|
||||
data: {
|
||||
// id: this.data.item.orderId,
|
||||
},
|
||||
success: (res) => {
|
||||
var resp = res.data;
|
||||
if (res.data.code == 200) {
|
||||
wx.showToast({
|
||||
title: res.data.msg,
|
||||
icon: 'none'
|
||||
});
|
||||
setTimeout(function () {
|
||||
//要延时执行的代码
|
||||
wx.navigateBack()
|
||||
}, 2000) //延迟时间 这里是2秒
|
||||
}
|
||||
}
|
||||
});
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
if (this.data.refund == 0) {
|
||||
app.tip({
|
||||
content: '该订单不支持退款'
|
||||
});
|
||||
return
|
||||
}
|
||||
|
||||
wx.navigateTo({
|
||||
url: '/pages/reforderdetail/reforderdetail?' + "type=" + '3' + '&id=' + this.data.id,
|
||||
})
|
||||
|
||||
// this.setData({
|
||||
// refund_box:true,
|
||||
// mengceng:true
|
||||
// })
|
||||
},
|
||||
gang() {
|
||||
this.setData({
|
||||
refund_box: false,
|
||||
mengceng: false
|
||||
})
|
||||
},
|
||||
// 确认支付
|
||||
confirm_pay: async function () {
|
||||
var that = this;
|
||||
if (!this.data.is_ok_click) {
|
||||
that.setData({
|
||||
is_ok_click: true
|
||||
})
|
||||
|
||||
|
||||
//你要执行的操作
|
||||
this.godetail()
|
||||
setTimeout(function () {
|
||||
that.setData({
|
||||
is_ok_click: false
|
||||
})
|
||||
}, 10000) //阻止一秒点击多次
|
||||
} else {
|
||||
// wx.showToast({
|
||||
// title: '请勿重复操作!',
|
||||
// })
|
||||
}
|
||||
},
|
||||
|
||||
godetail() {
|
||||
console.log('点击了去付款');
|
||||
var _this = this;
|
||||
console.log(this.data.id + 'tttttttttttttttttttttttttttttttttt')
|
||||
wx.request({
|
||||
// url: app.globalData.url + '/system/weixinPayNew/12345666',
|
||||
//order_id为8位数字
|
||||
url: app.globalData.url + '/system/order/weixinPay/' + this.data.item.orderId,
|
||||
header: app.getRequestHeader(),
|
||||
method: 'GET',
|
||||
data: {
|
||||
|
||||
},
|
||||
success(res) {
|
||||
if (res.data.code == 200) {
|
||||
console.log('timeStamp==' + res.data.data.timeStamp)
|
||||
console.log('nonceStr==' + res.data.data.nonceStr)
|
||||
console.log('package==' + res.data.data.package)
|
||||
console.log('signType==' + res.data.data.signType)
|
||||
console.log('paySign==' + res.data.data.paySign)
|
||||
wx.requestPayment({
|
||||
timeStamp: res.data.data.timeStamp,
|
||||
nonceStr: res.data.data.nonceStr,
|
||||
package: res.data.data.package,
|
||||
signType: res.data.data.signType,
|
||||
paySign: res.data.data.paySign,
|
||||
success(res) {
|
||||
console.log('支付成功');
|
||||
wx.navigateTo({
|
||||
url: '/shopping/pages/paysuccess/paysuccess',
|
||||
})
|
||||
},
|
||||
fail(res) {
|
||||
console.log('支付失败');
|
||||
}
|
||||
})
|
||||
} else {
|
||||
wx.showToast({
|
||||
title: res.data.msg,
|
||||
icon: 'error',
|
||||
duration: 2000
|
||||
})
|
||||
}
|
||||
}
|
||||
})
|
||||
},
|
||||
/**
|
||||
* 生命周期函数--监听页面初次渲染完成
|
||||
*/
|
||||
onReady: function () {
|
||||
onReady() {
|
||||
|
||||
},
|
||||
|
||||
/**
|
||||
* 生命周期函数--监听页面显示
|
||||
*/
|
||||
onShow: function () {
|
||||
// this.getOrderDetail();
|
||||
//假数据
|
||||
var that = this;
|
||||
if (this.data.resp.erro == 0) {
|
||||
that.setData({
|
||||
detail: this.data.resp.detail,
|
||||
order: this.data.resp.order,
|
||||
goods_id: this.data.resp.detail.goods_id,
|
||||
id: this.data.resp.detail.id,
|
||||
refund: this.data.resp.detail.refund,
|
||||
charge_phone: this.data.resp.detail.charge_phone
|
||||
});
|
||||
}
|
||||
onShow() {
|
||||
|
||||
},
|
||||
|
||||
/**
|
||||
* 生命周期函数--监听页面隐藏
|
||||
*/
|
||||
onHide: function () {
|
||||
onHide() {
|
||||
|
||||
},
|
||||
|
||||
/**
|
||||
* 生命周期函数--监听页面卸载
|
||||
*/
|
||||
onUnload() {
|
||||
|
||||
},
|
||||
onClickLeft() {
|
||||
wx.navigateBack()
|
||||
},
|
||||
/**
|
||||
* 生命周期函数--监听页面卸载
|
||||
*/
|
||||
onUnload: function () {
|
||||
|
||||
},
|
||||
|
||||
/**
|
||||
* 页面相关事件处理函数--监听用户下拉动作
|
||||
*/
|
||||
onPullDownRefresh: function () {
|
||||
onPullDownRefresh() {
|
||||
|
||||
},
|
||||
|
||||
/**
|
||||
* 页面上拉触底事件的处理函数
|
||||
*/
|
||||
onReachBottom: function () {
|
||||
|
||||
},
|
||||
|
||||
/**
|
||||
* 用户点击右上角分享
|
||||
*/
|
||||
onShareAppMessage: function () {
|
||||
onReachBottom() {
|
||||
|
||||
},
|
||||
//订单详情
|
||||
@@ -434,4 +142,209 @@ Page({
|
||||
}
|
||||
});
|
||||
},
|
||||
/**
|
||||
* 订单状态:0:待接单 1:已接单 时候的取消订单
|
||||
*/
|
||||
cancelOrder() {
|
||||
this.setData({
|
||||
dingdan_msg: true,
|
||||
mengceng: true
|
||||
})
|
||||
},
|
||||
/**
|
||||
* 订单状态:2:待服务 时候的取消订单
|
||||
*/
|
||||
cancelOrderdfw() {
|
||||
this.setData({
|
||||
dingdan_msg: true,
|
||||
mengceng: true
|
||||
})
|
||||
},
|
||||
/**
|
||||
* 订单状态:3:服务中 时候的取消订单
|
||||
*/
|
||||
cancelOrderfwz() {
|
||||
console.log('点击了取消订单')
|
||||
this.setData({
|
||||
dingdan_msgfwz: true,
|
||||
mengceng: true
|
||||
})
|
||||
},
|
||||
okcancel() {
|
||||
console.log('点击了联系客服取消订单')
|
||||
var that = this;
|
||||
this.setData({
|
||||
dingdan_msgfwz: false,
|
||||
mengceng: false
|
||||
})
|
||||
},
|
||||
/**
|
||||
* 待接单/已接单时被坚持取消订单
|
||||
*/
|
||||
cancelok() {
|
||||
var that = this;
|
||||
wx.request({
|
||||
url: app.globalData.url + '/system/order/concelOrder/' + this.data.order_id,
|
||||
header: app.getRequestHeader(),
|
||||
method: 'GET',
|
||||
data: {
|
||||
// id: this.data.item.orderId,
|
||||
},
|
||||
success: (res) => {
|
||||
if (res.data.code == 200) {
|
||||
wx.showToast({
|
||||
title: res.data.msg,
|
||||
icon: 'none'
|
||||
});
|
||||
setTimeout(function () {
|
||||
//要延时执行的代码
|
||||
wx.navigateBack()
|
||||
}, 2000) //延迟时间 这里是2秒
|
||||
}
|
||||
}
|
||||
});
|
||||
this.setData({
|
||||
dingdan_msg: false,
|
||||
mengceng: false
|
||||
})
|
||||
},
|
||||
mengceng() {
|
||||
this.setData({
|
||||
dingdan_msg: false,
|
||||
ewm_msg: false,
|
||||
mengceng: false,
|
||||
refund_box: false
|
||||
})
|
||||
},
|
||||
mengcengfwz() {
|
||||
this.setData({
|
||||
dingdan_msgfwz: false,
|
||||
mengcengfwz: false,
|
||||
refund_box: false
|
||||
})
|
||||
},
|
||||
//确认开始服务
|
||||
startService() {
|
||||
var that = this;
|
||||
wx.request({
|
||||
url: app.globalData.url + '/system/view/startServiceWithOrder',
|
||||
header: app.getRequestHeader(),
|
||||
method: 'post',
|
||||
data: {
|
||||
orderId: that.data.order_id
|
||||
},
|
||||
success: function (res) {
|
||||
var resp = res.data;
|
||||
if (res.data.code == 200) {
|
||||
wx.showToast({
|
||||
title: res.data.msg,
|
||||
})
|
||||
setTimeout(function () {
|
||||
//要延时执行的代码
|
||||
wx.navigateBack()
|
||||
}, 2000) //延迟时间 这里是2秒
|
||||
}
|
||||
}
|
||||
});
|
||||
|
||||
},
|
||||
/**
|
||||
* 待服务时被坚持取消订单
|
||||
*/
|
||||
cancelokdfw() {
|
||||
//关闭服务人员正在赶来弹框
|
||||
this.setData({
|
||||
dingdan_msg: false,
|
||||
mengceng: false
|
||||
})
|
||||
//打开退款原因弹框
|
||||
this.setData({
|
||||
refund_box: true,
|
||||
mengceng: true
|
||||
})
|
||||
},
|
||||
/**
|
||||
* 填写原因开始退款
|
||||
*/
|
||||
isok() {
|
||||
this.refund()
|
||||
},
|
||||
/**
|
||||
* 退款
|
||||
*/
|
||||
refund() {
|
||||
var that = this;
|
||||
wx.request({
|
||||
url: app.globalData.url + '/system/order/refundOrder/' + this.data.order_id,
|
||||
header: app.getRequestHeader(),
|
||||
method: 'GET',
|
||||
data: {
|
||||
// id: this.data.item.orderId,
|
||||
},
|
||||
success: (res) => {
|
||||
var resp = res.data;
|
||||
if (res.data.code == 200) {
|
||||
wx.showToast({
|
||||
title: '退款申请成功',
|
||||
})
|
||||
setTimeout(function () {
|
||||
//要延时执行的代码
|
||||
wx.navigateBack()
|
||||
}, 2000) //延迟时间 这里是2秒
|
||||
}
|
||||
}
|
||||
});
|
||||
|
||||
this.setData({
|
||||
refund_box: false,
|
||||
mengceng: false
|
||||
})
|
||||
},
|
||||
nocancel() {
|
||||
this.setData({
|
||||
dingdan_msg: false,
|
||||
dingdan_msgfwz: false,
|
||||
mengceng: false
|
||||
})
|
||||
},
|
||||
gang() {
|
||||
this.setData({
|
||||
refund_box: false,
|
||||
mengceng: false
|
||||
})
|
||||
},
|
||||
/**
|
||||
* 拨打电话
|
||||
*/
|
||||
callphone() {
|
||||
wx.makePhoneCall({
|
||||
phoneNumber: this.data.charge_phone,
|
||||
})
|
||||
},
|
||||
//订单详情
|
||||
getOrderDetail: function () {
|
||||
var that = this;
|
||||
wx.request({
|
||||
url: app.globalData.url + '/system/view/getInfo',
|
||||
header: app.getRequestHeader(),
|
||||
method: 'get',
|
||||
data: {
|
||||
orderId: this.data.order_id
|
||||
},
|
||||
success: function (res) {
|
||||
var resp = res.data;
|
||||
if (res.data.code == 200) {
|
||||
that.setData({
|
||||
item: res.data.data
|
||||
});
|
||||
}
|
||||
}
|
||||
});
|
||||
},
|
||||
/**
|
||||
* 用户点击右上角分享
|
||||
*/
|
||||
onShareAppMessage() {
|
||||
|
||||
}
|
||||
})
|
||||
@@ -1,6 +1,6 @@
|
||||
<van-nav-bar title="订单详情" left-text="" right-text="" left-arrow bind:click-left="onClickLeft" bind:click-right="onClickRight" style=" position: fixed;left: 0;top: 0;width: 100%;z-index: 10;" />
|
||||
|
||||
<!--pages/orderdetail/orderdetail.wxml-->
|
||||
<!-- 订单标题 -->
|
||||
<view style=" height:328rpx;position: relative;background: #ffffff;margin-top:{{height}}px;">
|
||||
<view style="height:66rpx;padding: 0 24rpx;">
|
||||
<text class="time_msg"></text>
|
||||
@@ -28,116 +28,45 @@
|
||||
</view>
|
||||
</view>
|
||||
|
||||
<!-- 订单状态:-2:已取消 -->
|
||||
|
||||
<!-- 订单状态:0:待接单 -->
|
||||
<view wx:if="{{item.status==0}}" class="opt_view">
|
||||
<view wx:if="{{item.status==0}}">
|
||||
<!-- <view class="detail_btn" style="padding:0 30rpx" bindtap="confirm_pay">
|
||||
付款
|
||||
</view> -->
|
||||
<view class="detail_btn" bindtap="cancelOrder">
|
||||
取消订单
|
||||
</view>
|
||||
</view>
|
||||
<view wx:if="{{item.status==2}}">
|
||||
|
||||
<view class="detail_btn" bindtap="refund">
|
||||
退款
|
||||
</view>
|
||||
<!-- <view class="detail_btn" bindtap="pintuan"
|
||||
style="right:300rpx;color:#4A4A4A;border: 1rpx solid #4A4A4A;padding:0 30rpx">
|
||||
发起拼团
|
||||
</view> -->
|
||||
<view class="detail_btn" bindtap="cancelOrder">
|
||||
取消订单
|
||||
</view>
|
||||
</view>
|
||||
|
||||
<!-- 订单状态:1:已接单 -->
|
||||
<view wx:if="{{item.status==1}}" class="opt_view">
|
||||
<view wx:if="{{item.status==1}}">
|
||||
<view class="detail_btn" style="padding:0 30rpx" bindtap="confirm_pay">
|
||||
付款
|
||||
</view>
|
||||
<view class="detail_btn" bindtap="cancelOrder">
|
||||
取消订单
|
||||
</view>
|
||||
<view class="detail_btn" style="padding:0 30rpx" bindtap="confirm_pay">
|
||||
付款
|
||||
</view>
|
||||
<view class="detail_btn" bindtap="cancelOrder">
|
||||
取消订单
|
||||
</view>
|
||||
</view>
|
||||
|
||||
|
||||
|
||||
<!-- <view wx:if="{{item.status==1}}" class="opt_view">
|
||||
<view wx:if="{{item.status==1}}">
|
||||
<view class="detail_btn" style="padding:0 30rpx" bindtap="seeQcode">
|
||||
查看身份码
|
||||
</view>
|
||||
<view class="detail_btn" bindtap="refund">
|
||||
退款
|
||||
</view>
|
||||
</view>
|
||||
</view> -->
|
||||
<!-- 订单状态:2:待服务 -->
|
||||
<view wx:if="{{item.status==2}}" class="opt_view">
|
||||
<view wx:if="{{item.status==2}}">
|
||||
<view class="detail_btn" style="padding:0 30rpx" bindtap="startService">
|
||||
确认开始服务
|
||||
</view>
|
||||
<view class="detail_btn" bindtap="refund">
|
||||
退款
|
||||
</view>
|
||||
<view class="detail_btn" style="padding:0 30rpx" bindtap="startService">
|
||||
确认开始服务
|
||||
</view>
|
||||
<view class="detail_btn" bindtap="cancelOrderdfw">
|
||||
取消订单并退款
|
||||
</view>
|
||||
</view>
|
||||
|
||||
<!-- 订单状态:3:服务中 -->
|
||||
<view wx:if="{{item.status==3}}" class="opt_view">
|
||||
<view wx:if="{{item.status==3}}">
|
||||
<view class="detail_btn" bindtap="cancelOrderfwz">
|
||||
取消订单
|
||||
</view>
|
||||
<view class="detail_btn" bindtap="cancelOrderfwz">
|
||||
提前结束订单
|
||||
</view>
|
||||
</view>
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
<!-- 联系信息 -->
|
||||
<view class="contact">
|
||||
<view class="contact_title">联系信息</view>
|
||||
<view style="display: flex;align-items: center;">
|
||||
<image src="{{url+item.usercAvatar}}" style="width:94rpx;height:94rpx;border-radius:50% ;margin-right:23rpx;">
|
||||
<image src="{{item.userbAvatar}}" style="width:94rpx;height:94rpx;border-radius:50% ;margin-right:23rpx;">
|
||||
</image>
|
||||
<view>
|
||||
<view style="color: #333;font-size: 28rpx;font-family: PingFang SC;font-weight: bold;">{{item.usercName}}</view>
|
||||
@@ -147,6 +76,8 @@
|
||||
<image style="width:26rpx;height:26rpx;padding:35rpx 0 0 20rpx" src="/pages/image/phone.png" bindtap="callphone"></image>
|
||||
</view>
|
||||
</view>
|
||||
|
||||
<!-- 订单信息 -->
|
||||
<view class="information">
|
||||
<view class="contact_title">
|
||||
订单信息
|
||||
@@ -172,6 +103,8 @@
|
||||
<text class="information_title">{{123456789}}</text>
|
||||
</view>
|
||||
</view>
|
||||
|
||||
|
||||
<!-- 蒙层 -->
|
||||
<view class="mengceng" wx:if="{{mengceng}}" bindtap="mengceng"></view>
|
||||
<!-- 取消订单弹窗 -->
|
||||
@@ -181,35 +114,38 @@
|
||||
</view>
|
||||
<view style="display: flex;">
|
||||
<view class="msg_btn" style="border-right:1px solid #EBEBEB;color:#0A74B1" bindtap="nocancel">我在想想</view>
|
||||
<view class="msg_btn" bindtap="okcancel">坚持取消</view>
|
||||
<view class="msg_btn" bindtap="cancelok">坚持取消</view>
|
||||
</view>
|
||||
</view>
|
||||
|
||||
<!-- 服务中的订单点击取消的蒙层 -->
|
||||
<view class="mengceng" wx:if="{{mengcengfwz}}" bindtap="mengcengfwz"></view>
|
||||
<!-- 服务中的订单取消订单弹窗 -->
|
||||
|
||||
<!-- 服务中的提前完成订单弹窗 -->
|
||||
<view class="qxdd" wx:if="{{dingdan_msgfwz}}">
|
||||
<view class="msg_title">
|
||||
请联系客服
|
||||
订单结束后按实际服务时间进行结算
|
||||
</view>
|
||||
<view style="display: flex;">
|
||||
<view class="msg_btn" style="border-right:1px solid #EBEBEB;color:#0A74B1" bindtap="nocancel">我在想想</view>
|
||||
<view class="msg_btn" bindtap="okcancel">坚持取消</view>
|
||||
<view class="msg_btn" bindtap="okcancel">确认结束服务</view>
|
||||
</view>
|
||||
</view>
|
||||
|
||||
<!-- 二维码弹窗 -->
|
||||
<view class="erweima_tanchang" wx:if="{{ewm_msg}}">
|
||||
<image style="width:242rpx;height:242rpx;margin:67rpx 0 23rpx;" src="{{qrcode}}"></image>
|
||||
<view style=" text-align: center;font-size: 28rpx;font-family: PingFang SC;font-weight: 400;color: #8E8E8E;opacity: 1;">
|
||||
<view>
|
||||
请到地址后
|
||||
</view>
|
||||
<view style="margin:5rpx 0 0 0;">
|
||||
出示身份码给服务人员
|
||||
</view>
|
||||
|
||||
<!-- 待服务的订单点击取消的蒙层 -->
|
||||
<view class="mengceng" wx:if="{{mengcengfwz}}" bindtap="mengcengdfw"></view>
|
||||
<!-- 服务中的订单取消订单弹窗 -->
|
||||
<view class="qxdd" wx:if="{{dingdan_msg}}">
|
||||
<view class="msg_title">
|
||||
服务人员正在赶来,确定要取消订单吗?
|
||||
</view>
|
||||
<view style="display: flex;">
|
||||
<view class="msg_btn" style="border-right:1px solid #EBEBEB;color:#0A74B1" bindtap="nocancel">我在想想</view>
|
||||
<view class="msg_btn" bindtap="cancelokdfw">坚持取消</view>
|
||||
</view>
|
||||
</view>
|
||||
|
||||
|
||||
<!-- 退款弹窗 -->
|
||||
<view wx:if="{{refund_box}}" class="refund_box">
|
||||
<view class="gang" bindtap="gang"></view>
|
||||
@@ -230,194 +166,21 @@
|
||||
</view>
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
<van-overlay show="{{ show }}" bind:click="onClickHide">
|
||||
<view class="wrapper">
|
||||
<view class="block" catch:tap="noop">
|
||||
<!-- /////////////////////////////////////// -->
|
||||
|
||||
<view style="width: 676rpx; height: 280rpx;">
|
||||
|
||||
<image style="width: 676rpx; height: 280rpx;" src="/pages/image/pintuan.png"></image>
|
||||
|
||||
<view class="yaotext">邀请好友拼团</view>
|
||||
<view class="yaotexttwo">拼团成功会返现哦~</view>
|
||||
|
||||
|
||||
<!-- 退款弹窗 -->
|
||||
<view wx:if="{{refund_box}}" class="refund_box">
|
||||
<view class="gang" bindtap="gang"></view>
|
||||
<view class="refund_title">
|
||||
退款原因</view>
|
||||
<scroll-view scroll-y style="height: 500rpx;">
|
||||
<radio-group bindchange="radioChange">
|
||||
<view wx:for="{{list}}" class="list_box">
|
||||
<view>{{item.text}}</view>
|
||||
<view>
|
||||
<radio></radio>
|
||||
</view>
|
||||
</view>
|
||||
|
||||
|
||||
|
||||
<view wx:if="{{nav_type==0}}">
|
||||
<!-- 步骤条 -->
|
||||
<view style="margin-left: 28rpx;margin-top: 116rpx; ">
|
||||
<text style="font-size: 30rpx;font-weight: bold;">拼团规则</text>
|
||||
</view>
|
||||
<view class="Groupone" style=" align-items: center;" data-id="{{item.id}}">
|
||||
|
||||
<view class="viewone">
|
||||
<view class="textone">1
|
||||
</view>
|
||||
<view style="color: #333333;font-size: 28rpx;margin-top: 2rpx;">支付</view>
|
||||
<view style="font-size: 24rpx;font-weight: 400;color: #C2C2C2;margin-top: 2rpx;">开团/参团</view>
|
||||
</view>
|
||||
|
||||
<view style="margin-left: 43rpx;">></view>
|
||||
<view class="viewone">
|
||||
<view class="textone">2
|
||||
</view>
|
||||
<view style="color: #333333;font-size: 28rpx;margin-top: 2rpx;">邀请</view>
|
||||
<view style="font-size: 24rpx;font-weight: 400;color: #C2C2C2;margin-top: 2rpx;">好友参团</view>
|
||||
</view>
|
||||
|
||||
|
||||
<view style="margin-left: 43rpx;">></view>
|
||||
<view class="viewone">
|
||||
<view class="textone">3
|
||||
</view>
|
||||
<view style="color: #333333;font-size: 28rpx;margin-top: 2rpx;">返现</view>
|
||||
<view style="font-size: 24rpx;font-weight: 400;color: #C2C2C2;margin-top: 2rpx;">拼团成功返现</view>
|
||||
</view>
|
||||
</view>
|
||||
|
||||
|
||||
<!-- 订单 -->
|
||||
<view class="Distit" style="margin-left: 28rpx;">
|
||||
<text style="font-size: 30rpx;font-weight: bold;">拼团详情</text>
|
||||
</view>
|
||||
<view class="pinGroup" bindtap="activity" data-id="{{item.id}}">
|
||||
|
||||
<view class="Group-image">
|
||||
<image src="{{detail.index_img}}"></image>
|
||||
</view>
|
||||
<view class="pincontent">
|
||||
<view class="title1">{{detail.goods_name}}</view>
|
||||
<view class="title2">
|
||||
<view class="house">
|
||||
<image src="/pages/image/address.png" />
|
||||
</view>
|
||||
<view>{{detail.mechanism_name}}</view>
|
||||
</view>
|
||||
<view class="Price">
|
||||
<view class="Price1">¥{{detail.total_money}}</view>
|
||||
<!-- <view class="Price2">¥{{detail.original_price}}</view> -->
|
||||
<!-- <view class="Price3">5.0折</view> -->
|
||||
</view>
|
||||
</view>
|
||||
</view>
|
||||
|
||||
|
||||
<!-- 拼团头像 -->
|
||||
<view style="display: flex;flex-direction: row;position: relative;justify-content: center;">
|
||||
|
||||
<view style="display: flex;flex-direction:column;align-items: center;">
|
||||
<!-- <image class="imageone" src="/images/WeChat.png"></image> -->
|
||||
<view class="imageone" bindtap="bindViewTap">
|
||||
<open-data type="userAvatarUrl"></open-data>
|
||||
</view>
|
||||
<view class="texttwo" style="margin-top: -25rpx;">团长</view>
|
||||
</view>
|
||||
|
||||
<view class="imageone" style="margin-left: 111rpx; display: flex;align-items: center; justify-content: center;background-color: #FFEDE5;">
|
||||
<view style="font-size: 54rpx;font-family: 苹方-简;color: #FF4C00;">?
|
||||
</view>
|
||||
</view>
|
||||
</view>
|
||||
|
||||
|
||||
<!-- 操作按钮 -->
|
||||
<view style="display: flex;flex-direction: row;height: 80rpx;margin-top: 10rpx;">
|
||||
<view class="buttonsty" style="margin-left: 76rpx;" bindtap="tiaoguo">跳过</view>
|
||||
<view class="buttonsty" style="background: #FF4C00;margin-left: 32rpx;" bindtap="tongyifaqi">同意发起拼团</view>
|
||||
</view>
|
||||
|
||||
</view>
|
||||
|
||||
<!-- 8888888888888888888888888-->
|
||||
<view wx:if="{{nav_type==1}}">
|
||||
<!-- 步骤条 -->
|
||||
<view style="margin-left: 28rpx;margin-top: 116rpx; ">
|
||||
<text style="font-size: 30rpx;font-weight: bold;">砍价规则</text>
|
||||
</view>
|
||||
<view class="Groupone" style=" align-items: center;" data-id="{{item.id}}">
|
||||
|
||||
<view class="viewone">
|
||||
<view class="textone">1
|
||||
</view>
|
||||
<view style="color: #333333;font-size: 28rpx;margin-top: 2rpx;">好友参团</view>
|
||||
<view style="font-size: 24rpx;font-weight: 400;color: #C2C2C2;margin-top: 2rpx;">开团/参团</view>
|
||||
</view>
|
||||
|
||||
<view style="margin-left: 43rpx;">></view>
|
||||
<view class="viewone">
|
||||
<view class="textone">1
|
||||
</view>
|
||||
<view style="color: #333333;font-size: 28rpx;margin-top: 2rpx;">好友参团</view>
|
||||
<view style="font-size: 24rpx;font-weight: 400;color: #C2C2C2;margin-top: 2rpx;">开团/参团</view>
|
||||
</view>
|
||||
|
||||
|
||||
<view style="margin-left: 43rpx;">></view>
|
||||
<view class="viewone">
|
||||
<view class="textone">1
|
||||
</view>
|
||||
<view style="color: #333333;font-size: 28rpx;margin-top: 2rpx;">好友参团</view>
|
||||
<view style="font-size: 24rpx;font-weight: 400;color: #C2C2C2;margin-top: 2rpx;">开团/参团</view>
|
||||
</view>
|
||||
</view>
|
||||
|
||||
|
||||
<!-- 订单 -->
|
||||
<view class="Distit" style="margin-left: 28rpx;">
|
||||
<text style="font-size: 30rpx;font-weight: bold;">特价商品</text>
|
||||
</view>
|
||||
<view class="pinGroup" bindtap="activity" data-id="{{item.id}}">
|
||||
|
||||
<view class="Group-image">
|
||||
<image src="{{item.index_img}}"></image>
|
||||
</view>
|
||||
<view class="pincontent">
|
||||
<view class="title1">除皱瘦脸 韩国进口标准装瘦咬肌速美小V脸</view>
|
||||
<view class="title2">
|
||||
<view class="house">
|
||||
<image src="/pages/image/address.png" />
|
||||
</view>
|
||||
<view>{{item.mechanism_name}}</view>
|
||||
</view>
|
||||
<view class="Price">
|
||||
<view class="Price1">¥{{item.price}}</view>
|
||||
<view class="Price2">¥{{item.original_price}}</view>
|
||||
<!-- <view class="Price3">5.0折</view> -->
|
||||
</view>
|
||||
</view>
|
||||
</view>
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
<!-- 操作按钮 -->
|
||||
<view style="display: flex;flex-direction: row;height: 80rpx;margin-top: 57rpx;">
|
||||
<view class="buttonsty" style="margin-left: 76rpx; ">跳过</view>
|
||||
<view class="buttonsty" style="background: #FF4C00;margin-left: 32rpx;" bindtap="getDeposit">同意发起砍价</view>
|
||||
</view>
|
||||
|
||||
</view>
|
||||
|
||||
|
||||
<!-- /////////////////////////////////////// -->
|
||||
</view>
|
||||
</view>
|
||||
</van-overlay>
|
||||
</radio-group>
|
||||
<view style="height:50rpx;"></view>
|
||||
</scroll-view>
|
||||
<button type="primary" plain="true" style="margin-bottom:20rpx" bindtap="isok">完成</button>
|
||||
</view>
|
||||
@@ -73,9 +73,9 @@ Page({
|
||||
order_id: e.id
|
||||
})
|
||||
//条目点击进入详情页,调取接口获取详情页数据,除外都是通过列表传参的方式展示详情页数据。
|
||||
// if(e.type=3){
|
||||
// this.getOrderDetail();
|
||||
// }
|
||||
if(e.type=3){
|
||||
this.getOrderDetail();
|
||||
}
|
||||
|
||||
var that = this;
|
||||
let item = JSON.parse(e.item);
|
||||
|
||||
183
pages/orderdetail/orderdetailbeifen.wxml
Normal file
@@ -0,0 +1,183 @@
|
||||
<van-nav-bar title="订单详情" left-text="" right-text="" left-arrow bind:click-left="onClickLeft" bind:click-right="onClickRight" style=" position: fixed;left: 0;top: 0;width: 100%;z-index: 10;" />
|
||||
|
||||
<!--pages/orderdetail/orderdetail.wxml-->
|
||||
<view style=" height:328rpx;position: relative;background: #ffffff;margin-top:{{height}}px;">
|
||||
<view style="height:66rpx;padding: 0 24rpx;">
|
||||
<text class="time_msg"></text>
|
||||
<!-- 订单状态:-2:已取消 -1:拒绝接单 0:待接单 1:已接单 2:已支付(待服务)
|
||||
3:服务中 4:已完成 5申请退款 6退款中 7已退款 8:已结算 -->
|
||||
<view wx:if="{{item.status==-2}}" class="status_msg">{{"已取消"}}</view>
|
||||
<view wx:if="{{item.status==-1}}" class="status_msg">{{"拒绝接单"}}</view>
|
||||
<view wx:if="{{item.status==0}}" class="status_msg">{{"待接单"}}</view>
|
||||
<view wx:if="{{item.status==1}}" class="status_msg">{{"已接单"}}</view>
|
||||
<view wx:if="{{item.status==2}}" class="status_msg">{{"待服务"}}</view>
|
||||
<view wx:if="{{item.status==3}}" class="status_msg">{{"服务中"}}</view>
|
||||
<view wx:if="{{item.status==4}}" class="status_msg">{{"已完成"}}</view>
|
||||
<view wx:if="{{item.status==5}}" class="status_msg">{{"申请退款"}}</view>
|
||||
<view wx:if="{{item.status==6}}" class="status_msg">{{"退款中"}}</view>
|
||||
<view wx:if="{{item.status==7}}" class="status_msg">{{"已退款"}}</view>
|
||||
<view wx:if="{{item.status==8}}" class="status_msg">{{"已结算"}}</view>
|
||||
</view>
|
||||
<view class="details_box">
|
||||
<image src="{{item.userbAvatar}}" style="width:230rpx;height:230rpx;"></image>
|
||||
<view style="margin-left: 31rpx;">
|
||||
<view class="title">专业陪护服务({{item.userbName}})</view>
|
||||
<!-- <view class="detail_number">数量x{{detail.num}}</view> -->
|
||||
<view class="money">实付款:<text style="font-size: 30rpx;color: #FF4A4A;font-family: PingFang SC;font-weight: bold;">¥{{item.yuguMoney}}</text></view>
|
||||
</view>
|
||||
</view>
|
||||
</view>
|
||||
|
||||
<!-- 订单状态:-2:已取消 -->
|
||||
|
||||
<!-- 订单状态:0:待接单 -->
|
||||
<view wx:if="{{item.status==0}}" class="opt_view">
|
||||
<view wx:if="{{item.status==0}}">
|
||||
<!-- <view class="detail_btn" style="padding:0 30rpx" bindtap="confirm_pay">
|
||||
付款
|
||||
</view> -->
|
||||
<view class="detail_btn" bindtap="cancelOrder">
|
||||
取消订单
|
||||
</view>
|
||||
</view>
|
||||
<view wx:if="{{item.status==2}}">
|
||||
|
||||
<view class="detail_btn" bindtap="refund">
|
||||
退款
|
||||
</view>
|
||||
<!-- <view class="detail_btn" bindtap="pintuan"
|
||||
style="right:300rpx;color:#4A4A4A;border: 1rpx solid #4A4A4A;padding:0 30rpx">
|
||||
发起拼团
|
||||
</view> -->
|
||||
</view>
|
||||
</view>
|
||||
|
||||
<!-- 订单状态:1:已接单 -->
|
||||
<view wx:if="{{item.status==1}}" class="opt_view">
|
||||
<view wx:if="{{item.status==1}}">
|
||||
<view class="detail_btn" style="padding:0 30rpx" bindtap="confirm_pay">
|
||||
付款
|
||||
</view>
|
||||
<view class="detail_btn" bindtap="cancelOrder">
|
||||
取消订单
|
||||
</view>
|
||||
</view>
|
||||
</view>
|
||||
|
||||
|
||||
|
||||
<!-- <view wx:if="{{item.status==1}}" class="opt_view">
|
||||
<view wx:if="{{item.status==1}}">
|
||||
<view class="detail_btn" style="padding:0 30rpx" bindtap="seeQcode">
|
||||
查看身份码
|
||||
</view>
|
||||
<view class="detail_btn" bindtap="refund">
|
||||
退款
|
||||
</view>
|
||||
</view>
|
||||
</view> -->
|
||||
<!-- 订单状态:2:待服务 -->
|
||||
<view wx:if="{{item.status==2}}" class="opt_view">
|
||||
<view wx:if="{{item.status==2}}">
|
||||
<view class="detail_btn" style="padding:0 30rpx" bindtap="startService">
|
||||
确认开始服务
|
||||
</view>
|
||||
<view class="detail_btn" bindtap="refund">
|
||||
退款
|
||||
</view>
|
||||
</view>
|
||||
</view>
|
||||
|
||||
<!-- 订单状态:3:服务中 -->
|
||||
<view wx:if="{{item.status==3}}" class="opt_view">
|
||||
<view wx:if="{{item.status==3}}">
|
||||
<view class="detail_btn" bindtap="cancelOrderfwz">
|
||||
取消订单
|
||||
</view>
|
||||
</view>
|
||||
</view>
|
||||
|
||||
|
||||
<view class="contact">
|
||||
<view class="contact_title">联系信息</view>
|
||||
<view style="display: flex;align-items: center;">
|
||||
<image src="{{url+item.usercAvatar}}" style="width:94rpx;height:94rpx;border-radius:50% ;margin-right:23rpx;">
|
||||
</image>
|
||||
<view>
|
||||
<view style="color: #333;font-size: 28rpx;font-family: PingFang SC;font-weight: bold;">{{item.usercName}}</view>
|
||||
<view style="color: #ABABAB;font-size: 24rpx;font-family: PingFang SC;font-weight: 400;width:532rpx;border-right:1rpx solid #e5e5e5">
|
||||
地址:{{item.hospitalAddress}}</view>
|
||||
</view>
|
||||
<image style="width:26rpx;height:26rpx;padding:35rpx 0 0 20rpx" src="/pages/image/phone.png" bindtap="callphone"></image>
|
||||
</view>
|
||||
</view>
|
||||
<view class="information">
|
||||
<view class="contact_title">
|
||||
订单信息
|
||||
</view>
|
||||
<view style="margin-bottom: 30rpx;">
|
||||
<text class="information_title">订单合计</text>
|
||||
<text class="information_title" style="color:#FF4A4A;">¥{{item.yuguMoney}}</text>
|
||||
</view>
|
||||
<!-- <view style="margin-bottom: 30rpx;">
|
||||
<text class="information_title">商品数量</text>
|
||||
<text class="information_title">{{order.num}}</text>
|
||||
</view> -->
|
||||
<view style="margin-bottom: 30rpx;">
|
||||
<text class="information_title">订单时间</text>
|
||||
<text class="information_title">{{item.startTime}}</text>
|
||||
</view>
|
||||
<view style="margin-bottom: 30rpx;">
|
||||
<text class="information_title">订单编号</text>
|
||||
<text class="information_title">{{item.orderNumber}}</text>
|
||||
</view>
|
||||
<view style="margin-bottom: 30rpx;">
|
||||
<text class="information_title">手机号码</text>
|
||||
<text class="information_title">{{123456789}}</text>
|
||||
</view>
|
||||
</view>
|
||||
<!-- 蒙层 -->
|
||||
<view class="mengceng" wx:if="{{mengceng}}" bindtap="mengceng"></view>
|
||||
<!-- 取消订单弹窗 -->
|
||||
<view class="qxdd" wx:if="{{dingdan_msg}}">
|
||||
<view class="msg_title">
|
||||
商品很抢手哦,确定要取消订单吗?
|
||||
</view>
|
||||
<view style="display: flex;">
|
||||
<view class="msg_btn" style="border-right:1px solid #EBEBEB;color:#0A74B1" bindtap="nocancel">我在想想</view>
|
||||
<view class="msg_btn" bindtap="okcancel">坚持取消</view>
|
||||
</view>
|
||||
</view>
|
||||
|
||||
<!-- 服务中的订单点击取消的蒙层 -->
|
||||
<view class="mengceng" wx:if="{{mengcengfwz}}" bindtap="mengcengfwz"></view>
|
||||
<!-- 服务中的订单取消订单弹窗 -->
|
||||
<view class="qxdd" wx:if="{{dingdan_msgfwz}}">
|
||||
<view class="msg_title">
|
||||
请联系客服
|
||||
</view>
|
||||
<view style="display: flex;">
|
||||
<view class="msg_btn" style="border-right:1px solid #EBEBEB;color:#0A74B1" bindtap="nocancel">我在想想</view>
|
||||
<view class="msg_btn" bindtap="okcancel">坚持取消</view>
|
||||
</view>
|
||||
</view>
|
||||
|
||||
|
||||
<!-- 退款弹窗 -->
|
||||
<view wx:if="{{refund_box}}" class="refund_box">
|
||||
<view class="gang" bindtap="gang"></view>
|
||||
<view class="refund_title">
|
||||
退款原因</view>
|
||||
<scroll-view scroll-y style="height: 500rpx;">
|
||||
<radio-group bindchange="radioChange">
|
||||
<view wx:for="{{list}}" class="list_box">
|
||||
<view>{{item.text}}</view>
|
||||
<view>
|
||||
<radio></radio>
|
||||
</view>
|
||||
</view>
|
||||
</radio-group>
|
||||
<view style="height:50rpx;"></view>
|
||||
</scroll-view>
|
||||
<button type="primary" plain="true" style="margin-bottom:20rpx" bindtap="isok">完成</button>
|
||||
</view>
|
||||
@@ -1,66 +0,0 @@
|
||||
// pages/peihu.js
|
||||
Page({
|
||||
|
||||
/**
|
||||
* 页面的初始数据
|
||||
*/
|
||||
data: {
|
||||
|
||||
},
|
||||
|
||||
/**
|
||||
* 生命周期函数--监听页面加载
|
||||
*/
|
||||
onLoad(options) {
|
||||
|
||||
},
|
||||
|
||||
/**
|
||||
* 生命周期函数--监听页面初次渲染完成
|
||||
*/
|
||||
onReady() {
|
||||
|
||||
},
|
||||
|
||||
/**
|
||||
* 生命周期函数--监听页面显示
|
||||
*/
|
||||
onShow() {
|
||||
|
||||
},
|
||||
|
||||
/**
|
||||
* 生命周期函数--监听页面隐藏
|
||||
*/
|
||||
onHide() {
|
||||
|
||||
},
|
||||
|
||||
/**
|
||||
* 生命周期函数--监听页面卸载
|
||||
*/
|
||||
onUnload() {
|
||||
|
||||
},
|
||||
|
||||
/**
|
||||
* 页面相关事件处理函数--监听用户下拉动作
|
||||
*/
|
||||
onPullDownRefresh() {
|
||||
|
||||
},
|
||||
|
||||
/**
|
||||
* 页面上拉触底事件的处理函数
|
||||
*/
|
||||
onReachBottom() {
|
||||
|
||||
},
|
||||
|
||||
/**
|
||||
* 用户点击右上角分享
|
||||
*/
|
||||
onShareAppMessage() {
|
||||
|
||||
}
|
||||
})
|
||||
@@ -1,2 +0,0 @@
|
||||
<!--pages/peihu.wxml-->
|
||||
<text>pages/peihu.wxml</text>
|
||||
@@ -1,5 +1,9 @@
|
||||
{
|
||||
"description": "项目配置文件",
|
||||
"packOptions": {
|
||||
"ignore": [],
|
||||
"include": []
|
||||
},
|
||||
"setting": {
|
||||
"urlCheck": false,
|
||||
"es6": true,
|
||||
@@ -20,6 +24,8 @@
|
||||
"compileHotReLoad": false,
|
||||
"lazyloadPlaceholderEnable": false,
|
||||
"useMultiFrameRuntime": true,
|
||||
"useApiHook": true,
|
||||
"useApiHostProcess": true,
|
||||
"babelSetting": {
|
||||
"ignore": [],
|
||||
"disablePlugins": [],
|
||||
@@ -40,10 +46,12 @@
|
||||
"minifyWXML": true,
|
||||
"showES6CompileOption": false,
|
||||
"useCompilerPlugins": false,
|
||||
"condition": false,
|
||||
"ignoreUploadUnusedFiles": true
|
||||
"condition": false
|
||||
},
|
||||
"compileType": "miniprogram",
|
||||
"libVersion": "2.21.0",
|
||||
"appid": "wx2d5ca40a16ebd1b3",
|
||||
"projectname": "coupon",
|
||||
"condition": {
|
||||
"search": {
|
||||
"list": []
|
||||
@@ -67,11 +75,5 @@
|
||||
"editorSetting": {
|
||||
"tabIndent": "insertSpaces",
|
||||
"tabSize": 2
|
||||
},
|
||||
"libVersion": "2.21.0",
|
||||
"packOptions": {
|
||||
"ignore": [],
|
||||
"include": []
|
||||
},
|
||||
"appid": "wx2d5ca40a16ebd1b3"
|
||||
}
|
||||
}
|
||||