新添加 待补单页面
This commit is contained in:
parent
d28d5ed41b
commit
47c981a528
|
@ -114,6 +114,10 @@
|
||||||
uni.reLaunch({
|
uni.reLaunch({
|
||||||
url:'/my/order/payModifyJsDetail'
|
url:'/my/order/payModifyJsDetail'
|
||||||
})
|
})
|
||||||
|
}else if (this.isfa == 7) {//待补单
|
||||||
|
uni.reLaunch({
|
||||||
|
url:'/my/order/payModifyTcMyDaiB'
|
||||||
|
})
|
||||||
}
|
}
|
||||||
|
|
||||||
},
|
},
|
||||||
|
|
|
@ -377,7 +377,18 @@
|
||||||
class="dingshi">联系客服</u-button>
|
class="dingshi">联系客服</u-button>
|
||||||
</view>
|
</view>
|
||||||
<view class="showBtn" v-if="order.status ==10">
|
<view class="showBtn" v-if="order.status ==10">
|
||||||
|
<u-button @click="TuiPopup(type,2,order)" shape="circle" :custom-style="customStyle" :hair-line="false"
|
||||||
|
>
|
||||||
|
取消订单
|
||||||
|
</u-button>
|
||||||
<u-button :custom-style="customStyle2"
|
<u-button :custom-style="customStyle2"
|
||||||
|
v-if="order.packageType=='104'||order.packageType=='105'||order.packageType=='106'"
|
||||||
|
shape="circle" :plain="true"
|
||||||
|
@click="taocanDaiBd('/my/order/payModifyTcMyDaiB?ordersId='+order.ordersId,order)"
|
||||||
|
class="dingshi">
|
||||||
|
立即预约
|
||||||
|
</u-button>
|
||||||
|
<u-button v-else :custom-style="customStyle2"
|
||||||
shape="circle" :plain="true"
|
shape="circle" :plain="true"
|
||||||
@click="goNav('/my/order/payModifyDd?ordersId='+order.ordersId,order)"
|
@click="goNav('/my/order/payModifyDd?ordersId='+order.ordersId,order)"
|
||||||
class="dingshi">
|
class="dingshi">
|
||||||
|
@ -649,6 +660,13 @@
|
||||||
// #endif
|
// #endif
|
||||||
},
|
},
|
||||||
methods: {
|
methods: {
|
||||||
|
taocanDaiBd(url,item){
|
||||||
|
this.$queue.setData('getJishi','');
|
||||||
|
this.$queue.setData('mainData',item);
|
||||||
|
uni.navigateTo({
|
||||||
|
url:url
|
||||||
|
})
|
||||||
|
},
|
||||||
getOrder() {
|
getOrder() {
|
||||||
let data = {
|
let data = {
|
||||||
ordersId: this.ordersId
|
ordersId: this.ordersId
|
||||||
|
@ -998,25 +1016,29 @@
|
||||||
// open 方法传入参数 等同在 uni-popup 组件上绑定 type属性
|
// open 方法传入参数 等同在 uni-popup 组件上绑定 type属性
|
||||||
this.$refs.popupQ.open(type)
|
this.$refs.popupQ.open(type)
|
||||||
},
|
},
|
||||||
TuiPopup(typeTxte,type){//确认拒单 全额退款.同意按钮 关闭弹出框
|
TuiPopup(typeTxte,type,id){//确认拒单 全额退款.同意按钮 关闭弹出框
|
||||||
this.type = typeTxte
|
var that=this;
|
||||||
|
that.type = typeTxte
|
||||||
let data = {
|
let data = {
|
||||||
ordersId: this.qurenJd.ordersId,
|
ordersId: that.qurenJd.ordersId?that.qurenJd.ordersId:id.ordersId,
|
||||||
isAuto: '0',
|
isAuto: '0',
|
||||||
type: type
|
type: type,
|
||||||
}
|
}
|
||||||
this.$Request.post('/app/artificer/cancelSupplementOrders', data).then(res => {
|
that.$Request.post('/app/artificer/cancelSupplementOrders', data).then(res => {
|
||||||
if (res.code == 0) {
|
if (res.code == 0) {
|
||||||
uni.showToast({
|
uni.showToast({
|
||||||
title:'操作完成!'
|
title:'操作完成!'
|
||||||
})
|
})
|
||||||
this.getOrder()
|
that.getOrder()
|
||||||
this.$refs.popupQ.close(typeTxte);
|
that.$refs.popupQ.close(typeTxte);
|
||||||
|
uni.showToast({
|
||||||
|
title:'操作成功!'
|
||||||
|
})
|
||||||
}else{
|
}else{
|
||||||
this.getOrder()
|
that.getOrder()
|
||||||
uni.showToast({
|
uni.showToast({
|
||||||
icon:'error',
|
icon:'error',
|
||||||
title:'操作失败!'
|
title:res.msg
|
||||||
})
|
})
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -1412,6 +1434,7 @@
|
||||||
},
|
},
|
||||||
goNav(e,item) {
|
goNav(e,item) {
|
||||||
this.$queue.setData('xiangmu',item);
|
this.$queue.setData('xiangmu',item);
|
||||||
|
this.$queue.setData('getJishi','');
|
||||||
uni.navigateTo({
|
uni.navigateTo({
|
||||||
url: e
|
url: e
|
||||||
})
|
})
|
||||||
|
@ -1830,7 +1853,7 @@
|
||||||
display: flex;
|
display: flex;
|
||||||
flex-direction: row;
|
flex-direction: row;
|
||||||
align-items: center;
|
align-items: center;
|
||||||
justify-content: space-between;
|
justify-content: center;
|
||||||
}
|
}
|
||||||
.hideBtn{
|
.hideBtn{
|
||||||
width: 100%;
|
width: 100%;
|
||||||
|
|
File diff suppressed because it is too large
Load Diff
|
@ -7,7 +7,7 @@
|
||||||
<view class="bgImg u-skeleton-fillet" v-if="order.ordersMassageList && order.ordersMassageList.length > 0"
|
<view class="bgImg u-skeleton-fillet" v-if="order.ordersMassageList && order.ordersMassageList.length > 0"
|
||||||
style="padding: 0 29rpx;">
|
style="padding: 0 29rpx;">
|
||||||
<view class="head-top">
|
<view class="head-top">
|
||||||
<view class="pay-title">服务项目1111</view>
|
<view class="pay-title">服务项目</view>
|
||||||
<view class="flex justify-around">
|
<view class="flex justify-around">
|
||||||
<view class="" style="width: 160upx;height: 160upx;">
|
<view class="" style="width: 160upx;height: 160upx;">
|
||||||
<image :src="order.ordersMassageList[0].massageType.massageImg"
|
<image :src="order.ordersMassageList[0].massageType.massageImg"
|
||||||
|
|
|
@ -197,12 +197,13 @@
|
||||||
<u-button @click="cancelOrder(order)" shape="circle" :custom-style="customStyle" :hair-line="false"
|
<u-button @click="cancelOrder(order)" shape="circle" :custom-style="customStyle" :hair-line="false"
|
||||||
v-if="order.status != 3 &&
|
v-if="order.status != 3 &&
|
||||||
order.status != 4 &&
|
order.status != 4 &&
|
||||||
order.status != 5&&
|
order.status != 5
|
||||||
order.status != 10"
|
"
|
||||||
>取消订单
|
>取消订单
|
||||||
</u-button>
|
</u-button>
|
||||||
|
|
||||||
<u-button @click="openpay(order)" shape="circle" :custom-style="customStyle2" :hair-line="false"
|
<u-button @click="openpay(order)" shape="circle" :custom-style="customStyle2" :hair-line="false"
|
||||||
v-if="order.status == 1"
|
v-if="order.status == 1||order.status == 10"
|
||||||
class="dingshi">立即支付
|
class="dingshi">立即支付
|
||||||
</u-button>
|
</u-button>
|
||||||
<u-button :custom-style="customStyle2" shape="circle" :plain="true" @click="goChat"
|
<u-button :custom-style="customStyle2" shape="circle" :plain="true" @click="goChat"
|
||||||
|
@ -1268,7 +1269,7 @@
|
||||||
},
|
},
|
||||||
openpay(item) {
|
openpay(item) {
|
||||||
// uni.navigateTo({
|
// uni.navigateTo({
|
||||||
// url:'/my/order/payModifyDzhifu?ordersId='+item.ordersId
|
// url:'/my/order/payModifyTcMy?ordersId='+item.ordersId
|
||||||
// })
|
// })
|
||||||
this.showpay = true
|
this.showpay = true
|
||||||
},
|
},
|
||||||
|
|
|
@ -739,24 +739,24 @@
|
||||||
} else {
|
} else {
|
||||||
// #ifdef H5
|
// #ifdef H5
|
||||||
let data = {
|
let data = {
|
||||||
payClassifyId: this.thisSelect.payClassifyId,
|
payClassifyId: that.thisSelect.payClassifyId,
|
||||||
type: 2,
|
type: 2,
|
||||||
userId: uni.getStorageSync('userId'),
|
userId: uni.getStorageSync('userId'),
|
||||||
}
|
}
|
||||||
if(this.artificerId){
|
if(that.artificerId){
|
||||||
data.artificerId=this.artificerId
|
data.artificerId=that.artificerId
|
||||||
}
|
}
|
||||||
if(this.ordersId){
|
if(that.ordersId){
|
||||||
data.ordersId=this.ordersId
|
data.ordersId=that.ordersId
|
||||||
}
|
}
|
||||||
|
|
||||||
this.$Request.post('/app/aliPay/payOrderMoney', data).then(
|
that.$Request.post('/app/aliPay/payOrderMoney', data).then(
|
||||||
res => {
|
res => {
|
||||||
if (res.code == 0) {
|
if (res.code == 0) {
|
||||||
uni.showToast({
|
uni.showToast({
|
||||||
title: '支付成功!'
|
title: '支付成功!'
|
||||||
});
|
});
|
||||||
this.getMoney()
|
that.getMoney()
|
||||||
// const div = document.createElement('div')
|
// const div = document.createElement('div')
|
||||||
// div.innerHTML = res.data //此处form就是后台返回接收到的数据
|
// div.innerHTML = res.data //此处form就是后台返回接收到的数据
|
||||||
// document.body.appendChild(div)
|
// document.body.appendChild(div)
|
||||||
|
@ -776,20 +776,20 @@
|
||||||
// #ifdef APP-PLUS
|
// #ifdef APP-PLUS
|
||||||
// APP支付宝支付
|
// APP支付宝支付
|
||||||
let data = {
|
let data = {
|
||||||
payClassifyId: this.thisSelect.payClassifyId,
|
payClassifyId: that.thisSelect.payClassifyId,
|
||||||
type: 1,
|
type: 1,
|
||||||
userId: uni.getStorageSync('userId')
|
userId: uni.getStorageSync('userId')
|
||||||
}
|
}
|
||||||
if(this.artificerId){
|
if(that.artificerId){
|
||||||
data.artificerId=this.artificerId
|
data.artificerId=that.artificerId
|
||||||
}
|
}
|
||||||
if(this.ordersId){
|
if(that.ordersId){
|
||||||
data.ordersId=this.ordersId
|
data.ordersId=that.ordersId
|
||||||
}
|
}
|
||||||
this.$Request.post("/app/aliPay/payOrderMoney", data).then(ret => {
|
that.$Request.post("/app/aliPay/payOrderMoney", data).then(ret => {
|
||||||
console.log(ret)
|
console.log(ret)
|
||||||
this.getMoney()
|
that.getMoney()
|
||||||
this.isCheckPay(ret.code, 'alipay', ret.data);
|
that.isCheckPay(ret.code, 'alipay', ret.data);
|
||||||
});
|
});
|
||||||
// #endif
|
// #endif
|
||||||
}
|
}
|
||||||
|
|
|
@ -522,6 +522,15 @@
|
||||||
"titleNView": false
|
"titleNView": false
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
},{
|
||||||
|
"path": "order/payModifyTcMyDaiB",
|
||||||
|
"style": {
|
||||||
|
"navigationBarTitleText": "待补单订单",
|
||||||
|
"enablePullDownRefresh": false,
|
||||||
|
"app-plus": {
|
||||||
|
"titleNView": false
|
||||||
|
}
|
||||||
|
}
|
||||||
},{
|
},{
|
||||||
"path": "hongbao/xinrenhongbao",
|
"path": "hongbao/xinrenhongbao",
|
||||||
"style": {
|
"style": {
|
||||||
|
|
|
@ -66,14 +66,14 @@
|
||||||
<span style="margin-right: 5px;">{{item.title}}</span>
|
<span style="margin-right: 5px;">{{item.title}}</span>
|
||||||
<span>详情</span>
|
<span>详情</span>
|
||||||
</view>
|
</view>
|
||||||
<view class="detail-view">
|
<view class="detail-view" style="position: relative;">
|
||||||
<image class="detail-view-img" :src="item.massageImg" mode=""></image>
|
<image class="detail-view-img" :src="item.massageImg" mode=""></image>
|
||||||
|
<span class="img-span">{{item.status=='1'?'已使用':'未使用'}}</span>
|
||||||
<view class="detail-view-mina">
|
<view class="detail-view-mina">
|
||||||
<view class="header-bottom-money" style="margin: 7px 0px;">
|
<view class="header-bottom-money" style="margin: 7px 0px;">
|
||||||
<view class="header-bottom-money-zhen">
|
<view class="header-bottom-money-zhen">
|
||||||
<span>¥</span>
|
<span>¥</span>
|
||||||
<span>{{item.price}}</span>
|
<span>{{item.price}}</span>
|
||||||
|
|
||||||
</view>
|
</view>
|
||||||
<view class="header-bottom-money-jia" style="margin-left: 5px; ">
|
<view class="header-bottom-money-jia" style="margin-left: 5px; ">
|
||||||
¥{{item.oldPrice}}
|
¥{{item.oldPrice}}
|
||||||
|
@ -602,6 +602,11 @@
|
||||||
},
|
},
|
||||||
|
|
||||||
detail(item){
|
detail(item){
|
||||||
|
if(item.status=='1'){
|
||||||
|
uni.showToast({
|
||||||
|
title:'该项目已使用!'
|
||||||
|
})
|
||||||
|
}else{
|
||||||
uni.navigateTo({
|
uni.navigateTo({
|
||||||
url:'/pages/my/cureOderDrtail?mainId='+item.mainId+'&id='+item.id+
|
url:'/pages/my/cureOderDrtail?mainId='+item.mainId+'&id='+item.id+
|
||||||
'&massageTypeId='+item.massageTypeId+
|
'&massageTypeId='+item.massageTypeId+
|
||||||
|
@ -609,6 +614,8 @@
|
||||||
'&limit='+10+
|
'&limit='+10+
|
||||||
'&name='+this.nameText
|
'&name='+this.nameText
|
||||||
})
|
})
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
},
|
},
|
||||||
getData(){
|
getData(){
|
||||||
|
@ -648,6 +655,19 @@
|
||||||
}
|
}
|
||||||
</script>
|
</script>
|
||||||
<style scoped>
|
<style scoped>
|
||||||
|
.img-span{
|
||||||
|
padding: 2px 5px;
|
||||||
|
font-weight: 400;
|
||||||
|
font-size: 8px;
|
||||||
|
color: #FFFFFF;
|
||||||
|
background: linear-gradient(-90deg, #FF6F48, #FF9E69);
|
||||||
|
border-radius: 7px 0px 7px 0px;
|
||||||
|
position: absolute;
|
||||||
|
bottom: 0px;
|
||||||
|
left: 0;
|
||||||
|
margin-bottom: 14px;
|
||||||
|
margin-left: 27px;
|
||||||
|
}
|
||||||
.detail-view-mina{
|
.detail-view-mina{
|
||||||
width: 74%;
|
width: 74%;
|
||||||
display: flex;
|
display: flex;
|
||||||
|
|
|
@ -212,7 +212,17 @@
|
||||||
</u-button>
|
</u-button>
|
||||||
</view>
|
</view>
|
||||||
<view class="showBtn" v-if="item.status ==10">
|
<view class="showBtn" v-if="item.status ==10">
|
||||||
<u-button :custom-style="customStyle1" shape="circle" :plain="true"
|
<u-button
|
||||||
|
:custom-style="customStyle" shape="circle" :plain="true"
|
||||||
|
class="btns xianshi"
|
||||||
|
@click="TuiPopup(type,2,item)">
|
||||||
|
取消订单
|
||||||
|
</u-button>
|
||||||
|
<u-button v-if="item.packageType=='104'||item.packageType=='105'||item.packageType=='106'" :custom-style="customStyle1" shape="circle" :plain="true"
|
||||||
|
@click="taocanDaiBd('/my/order/payModifyTcMy?ordersId='+item.ordersId,item)" class="btns xianshi">
|
||||||
|
立即预约
|
||||||
|
</u-button>
|
||||||
|
<u-button v-else :custom-style="customStyle1" shape="circle" :plain="true"
|
||||||
@click="goNav('/my/order/payModifyDd?ordersId='+item.ordersId,item)" class="btns xianshi">
|
@click="goNav('/my/order/payModifyDd?ordersId='+item.ordersId,item)" class="btns xianshi">
|
||||||
立即预约
|
立即预约
|
||||||
</u-button>
|
</u-button>
|
||||||
|
@ -428,6 +438,11 @@
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
methods: {
|
methods: {
|
||||||
|
taocanDaiBd(url,item,text){
|
||||||
|
uni.navigateTo({
|
||||||
|
url:url
|
||||||
|
})
|
||||||
|
},
|
||||||
goNav(url,item,text) {
|
goNav(url,item,text) {
|
||||||
this.$queue.setData('xiangmu',item);
|
this.$queue.setData('xiangmu',item);
|
||||||
console.log("oldOrdersId=======",item)
|
console.log("oldOrdersId=======",item)
|
||||||
|
@ -448,10 +463,6 @@
|
||||||
uni.navigateTo({
|
uni.navigateTo({
|
||||||
url:'/my/order/payModifyDzhifu?ordersId='+item.ordersId
|
url:'/my/order/payModifyDzhifu?ordersId='+item.ordersId
|
||||||
})
|
})
|
||||||
}else if(item.packageType=='104'||item.packageType=='105'||item.packageType=='106'){
|
|
||||||
uni.navigateTo({
|
|
||||||
url:'/my/order/paydingTCX?ordersId='+item.ordersId
|
|
||||||
})
|
|
||||||
}else{
|
}else{
|
||||||
uni.navigateTo({
|
uni.navigateTo({
|
||||||
url:url
|
url:url
|
||||||
|
@ -526,24 +537,25 @@
|
||||||
// open 方法传入参数 等同在 uni-popup 组件上绑定 type属性
|
// open 方法传入参数 等同在 uni-popup 组件上绑定 type属性
|
||||||
this.$refs.popupQ.open(type)
|
this.$refs.popupQ.open(type)
|
||||||
},
|
},
|
||||||
TuiPopup(typeTxte,type){//确认拒单 全额退款.同意按钮 关闭弹出框
|
TuiPopup(typeTxte,type,id){//确认拒单 全额退款.同意按钮 关闭弹出框
|
||||||
this.type = typeTxte
|
var that=this;
|
||||||
|
that.type = typeTxte
|
||||||
let data = {
|
let data = {
|
||||||
ordersId: this.qurenJd.ordersId,
|
ordersId: that.qurenJd.ordersId?that.qurenJd.ordersId:id.ordersId,
|
||||||
isAuto: '0',
|
isAuto: '0',
|
||||||
type: type
|
type: type
|
||||||
}
|
}
|
||||||
this.$Request.post('/app/artificer/cancelSupplementOrders', data).then(res => {
|
that.$Request.post('/app/artificer/cancelSupplementOrders', data).then(res => {
|
||||||
if (res.code == 0) {
|
if (res.code == 0) {
|
||||||
uni.showToast({
|
uni.showToast({
|
||||||
title:'操作完成!'
|
title:'操作完成!'
|
||||||
})
|
})
|
||||||
this.getOrderList()
|
that.getOrderList()
|
||||||
this.$refs.popupQ.close(typeTxte);
|
that.$refs.popupQ.close(typeTxte);
|
||||||
}else{
|
}else{
|
||||||
uni.showToast({
|
uni.showToast({
|
||||||
icon:'error',
|
icon:'error',
|
||||||
title:'操作失败!'
|
title:res.msg
|
||||||
})
|
})
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -783,6 +795,9 @@
|
||||||
</script>
|
</script>
|
||||||
|
|
||||||
<style lang="scss" scoped>
|
<style lang="scss" scoped>
|
||||||
|
.content{
|
||||||
|
padding-bottom: 100px;
|
||||||
|
}
|
||||||
.xianshi{
|
.xianshi{
|
||||||
margin: 0px 5px 0px 0px !important;
|
margin: 0px 5px 0px 0px !important;
|
||||||
}
|
}
|
||||||
|
|
|
@ -511,6 +511,11 @@
|
||||||
uni.reLaunch({
|
uni.reLaunch({
|
||||||
url:'/my/order/payModifyTcMy?artificerId='+e.artificerId+'&text='+'my'
|
url:'/my/order/payModifyTcMy?artificerId='+e.artificerId+'&text='+'my'
|
||||||
})
|
})
|
||||||
|
}else if(this.dataIndex=='待补单'){
|
||||||
|
this.$queue.setData('getJishi',e);
|
||||||
|
uni.reLaunch({
|
||||||
|
url:'/my/order/payModifyTcMyDaiB?artificerId='+e.artificerId+'&text='+'my'
|
||||||
|
})
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
switch1Change: function (e) {//地图和列表切换
|
switch1Change: function (e) {//地图和列表切换
|
||||||
|
|
Loading…
Reference in New Issue