立即支付
This commit is contained in:
parent
9f9efbbeb9
commit
5e35f9a20e
|
|
@ -114,9 +114,9 @@
|
||||||
uni.reLaunch({
|
uni.reLaunch({
|
||||||
url:'/my/order/payModifyJsDetail'
|
url:'/my/order/payModifyJsDetail'
|
||||||
})
|
})
|
||||||
}else if (this.isfa == 7) {//待补单
|
}else if (this.isfa == 5) {//项目待补单
|
||||||
uni.reLaunch({
|
uni.reLaunch({
|
||||||
url:'/my/order/payModifyTcMyDaiB'
|
url:'/my/order/payModifyDd'
|
||||||
})
|
})
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
437
my/order/pay.vue
437
my/order/pay.vue
|
|
@ -362,15 +362,15 @@
|
||||||
<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">
|
||||||
取消订单
|
取消订单
|
||||||
</u-button>
|
</u-button>
|
||||||
<u-button
|
<!-- <u-button
|
||||||
v-if="order.btnShow == 'true'"
|
v-if="order.btnShow == 'true'"
|
||||||
:custom-style="customStyle2"
|
:custom-style="customStyle2"
|
||||||
shape="circle" :plain="true"
|
shape="circle" :plain="true"
|
||||||
@click="goNav('/my/order/payModifyDzhifu?ordersId='+ordersId,order,'修改')"
|
@click="goNav('/my/order/payModifyDzhifu?ordersId='+ordersId,order,'修改')"
|
||||||
class="dingshi">
|
class="dingshi">
|
||||||
修改订单
|
修改订单
|
||||||
</u-button>
|
</u-button> -->
|
||||||
<u-button @click="openpay(order)" shape="circle" :custom-style="customStyle2" :hair-line="false"
|
<u-button @click="zhifu(order)" shape="circle" :custom-style="customStyle2" :hair-line="false"
|
||||||
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"
|
||||||
|
|
@ -454,7 +454,7 @@
|
||||||
</u-button>
|
</u-button>
|
||||||
<u-button
|
<u-button
|
||||||
shape="circle" :plain="true"
|
shape="circle" :plain="true"
|
||||||
@click="goNav('/my/wallet/index?artificerId='+order.artificerId)"
|
@click="goNav('/my/wallet/index?artificerId='+order.artificerId+'&ordersId='+order.ordersId,)"
|
||||||
class="btns">
|
class="btns">
|
||||||
充值
|
充值
|
||||||
</u-button>
|
</u-button>
|
||||||
|
|
@ -521,7 +521,7 @@
|
||||||
<u-button :custom-style="customStyle2"
|
<u-button :custom-style="customStyle2"
|
||||||
v-if="order.packageType=='104'||order.packageType=='105'||order.packageType=='106'"
|
v-if="order.packageType=='104'||order.packageType=='105'||order.packageType=='106'"
|
||||||
shape="circle" :plain="true"
|
shape="circle" :plain="true"
|
||||||
@click="taocanDaiBd('/my/order/payModifyTcMyDaiB?ordersId='+order.ordersId,order)"
|
@click="goNav('/my/order/payModifyDd?ordersId='+order.ordersId,order)"
|
||||||
class="dingshi">
|
class="dingshi">
|
||||||
立即预约
|
立即预约
|
||||||
</u-button>
|
</u-button>
|
||||||
|
|
@ -630,6 +630,31 @@
|
||||||
<view class="pay_btn" @click="pay()">确认支付</view>
|
<view class="pay_btn" @click="pay()">确认支付</view>
|
||||||
</view>
|
</view>
|
||||||
</u-popup>
|
</u-popup>
|
||||||
|
<!-- 立即支付支付方式 -->
|
||||||
|
<u-popup v-model="showpayL" mode="bottom" :closeable="closeable">
|
||||||
|
<view class="popup_pay">
|
||||||
|
<view style="background-color: #fff;">
|
||||||
|
<view style="padding: 20upx;margin-top: 60rpx;margin-bottom: 20rpx;">
|
||||||
|
<view
|
||||||
|
style="display: flex;height: 100upx;align-items: center;padding: 20upx 0;justify-content: center;"
|
||||||
|
v-for="(item,index) in openLists" :key='index'>
|
||||||
|
<image :src="item.image" style="width: 55upx;height: 55upx;border-radius: 50upx;">
|
||||||
|
</image>
|
||||||
|
<view style="font-size: 30upx;margin-left: 20upx;width: 70%;">
|
||||||
|
{{item.text}}
|
||||||
|
</view>
|
||||||
|
<radio-group name="openWay" style="margin-left: 45upx;" @tap='selectWay(item)'>
|
||||||
|
<label class="tui-radio">
|
||||||
|
<radio color="#019c88" :checked="openWay === item.id ? true : false" />
|
||||||
|
</label>
|
||||||
|
</radio-group>
|
||||||
|
</view>
|
||||||
|
</view>
|
||||||
|
</view>
|
||||||
|
<view class="pay_btn" @click="payLj()" v-if="order.userPackageDetailId==null">确认支付</view>
|
||||||
|
<view class="pay_btn" @click="payTc()" v-else>确认支付</view>
|
||||||
|
</view>
|
||||||
|
</u-popup>
|
||||||
<!-- 提前结束 -->
|
<!-- 提前结束 -->
|
||||||
<view>
|
<view>
|
||||||
<!-- 提前结束 -->
|
<!-- 提前结束 -->
|
||||||
|
|
@ -690,6 +715,7 @@
|
||||||
export default {
|
export default {
|
||||||
data() {
|
data() {
|
||||||
return {
|
return {
|
||||||
|
showpayL:false,
|
||||||
ordersId: '',
|
ordersId: '',
|
||||||
tpayMoney: '',
|
tpayMoney: '',
|
||||||
paySel: 0,
|
paySel: 0,
|
||||||
|
|
@ -803,7 +829,208 @@
|
||||||
this.openWay = 2;
|
this.openWay = 2;
|
||||||
// #endif
|
// #endif
|
||||||
},
|
},
|
||||||
|
mounted() {
|
||||||
|
},
|
||||||
methods: {
|
methods: {
|
||||||
|
zhifu(){//立即支付
|
||||||
|
this.showpayL=true
|
||||||
|
},
|
||||||
|
// 套餐 次卡 疗程立即支付订单
|
||||||
|
// 支付订单
|
||||||
|
payTc() {
|
||||||
|
let that = this
|
||||||
|
that.showpayL = false
|
||||||
|
|
||||||
|
if (that.openWay == 1) { //零钱支付
|
||||||
|
uni.showModal({
|
||||||
|
title: '付款提示',
|
||||||
|
content: '确认支付' + that.order.taxiMoney + '元吗?',
|
||||||
|
success: function(re) {
|
||||||
|
if (re.confirm) {
|
||||||
|
that.$queue.showLoading('支付中...')
|
||||||
|
console.log('用户点击确定');
|
||||||
|
that.$Request.post("/app/artificer/payOrders", {
|
||||||
|
ordersId: that.order.ordersId,
|
||||||
|
userPackageDetailId : that.order.userPackageDetailId
|
||||||
|
}).then(res => {
|
||||||
|
uni.hideLoading();
|
||||||
|
if (res.code == 0) {
|
||||||
|
uni.showToast({
|
||||||
|
title: '支付成功'
|
||||||
|
})
|
||||||
|
that.getOrder()
|
||||||
|
that.showpayL = false
|
||||||
|
} else {
|
||||||
|
uni.showToast({
|
||||||
|
title: res.msg,
|
||||||
|
icon: 'none'
|
||||||
|
})
|
||||||
|
}
|
||||||
|
});
|
||||||
|
} else if (re.cancel) {
|
||||||
|
uni.hideLoading();
|
||||||
|
console.log('用户点击取消');
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
})
|
||||||
|
} else if (that.openWay == 2) { //微信支付
|
||||||
|
that.$queue.showLoading('支付中...')
|
||||||
|
// #ifdef MP-WEIXIN
|
||||||
|
let data = {
|
||||||
|
ordersId: that.order.ordersId,
|
||||||
|
type: 3,
|
||||||
|
userPackageDetailId : that.order.userPackageDetailId
|
||||||
|
}
|
||||||
|
that.$Request.post('/app/wxPay/payOrder', data).then(ret => {
|
||||||
|
console.log(ret)
|
||||||
|
if (ret.code == 0) {
|
||||||
|
uni.hideLoading();
|
||||||
|
uni.requestPayment({
|
||||||
|
provider: 'wxpay',
|
||||||
|
timeStamp: ret.data.timestamp,
|
||||||
|
nonceStr: ret.data.noncestr,
|
||||||
|
package: ret.data.package,
|
||||||
|
signType: ret.data.signType,
|
||||||
|
paySign: ret.data.sign,
|
||||||
|
success: function(ret) {
|
||||||
|
console.log(ret)
|
||||||
|
uni.showToast({
|
||||||
|
title: '支付成功',
|
||||||
|
icon: 'none'
|
||||||
|
})
|
||||||
|
that.getOrder()
|
||||||
|
// this.$queue.showToast('支付成功');
|
||||||
|
|
||||||
|
that.showpayL = false
|
||||||
|
},
|
||||||
|
fail: function(err) {
|
||||||
|
uni.hideLoading();
|
||||||
|
// this.$queue.showToast('支付失败');
|
||||||
|
uni.showToast({
|
||||||
|
title: '支付失败',
|
||||||
|
icon: 'nones'
|
||||||
|
});
|
||||||
|
that.getOrder()
|
||||||
|
}
|
||||||
|
});
|
||||||
|
}
|
||||||
|
});
|
||||||
|
// #endif
|
||||||
|
|
||||||
|
// #ifdef H5
|
||||||
|
let ua = navigator.userAgent.toLowerCase();
|
||||||
|
if (ua.indexOf('micromessenger') != -1) {
|
||||||
|
let data = {
|
||||||
|
ordersId: that.order.ordersId,
|
||||||
|
type: 2,
|
||||||
|
userPackageDetailId : that.order.userPackageDetailId
|
||||||
|
}
|
||||||
|
that.$Request.post('/app/wxPay/payOrder', data).then(rea => {
|
||||||
|
|
||||||
|
if (rea.code == 0) {
|
||||||
|
uni.hideLoading();
|
||||||
|
that.callPay(rea.data);
|
||||||
|
that.getOrder()
|
||||||
|
that.showpayL = false
|
||||||
|
} else {
|
||||||
|
uni.hideLoading();
|
||||||
|
uni.showToast({
|
||||||
|
title: rea.msg,
|
||||||
|
icon: 'none'
|
||||||
|
})
|
||||||
|
}
|
||||||
|
});
|
||||||
|
} else {
|
||||||
|
let data = {
|
||||||
|
ordersId: that.order.ordersId,
|
||||||
|
type: 4,
|
||||||
|
userPackageDetailId : that.order.userPackageDetailId
|
||||||
|
}
|
||||||
|
// debugger;
|
||||||
|
that.$Request.post('/app/wxPay/payOrder', data).then(rea => {
|
||||||
|
// const urlArr = window.location.href;
|
||||||
|
// const hostUrl = urlArr.split("/");
|
||||||
|
// const callBack = hostUrl[0] + "//" + hostUrl[2] + "/";
|
||||||
|
// const url = '&redirect_url=' + callBack + 'my/order/pay';
|
||||||
|
// window.location = rea.mweb_url + url
|
||||||
|
that.showpay = false
|
||||||
|
if (rea.code == 0) {
|
||||||
|
uni.hideLoading();
|
||||||
|
const urlArr = window.location.href;
|
||||||
|
const hostUrl = urlArr.split("/");
|
||||||
|
const callBack = hostUrl[0] + "//" + hostUrl[2] + "/";
|
||||||
|
const url = '&redirect_url=' + callBack + 'my/order/pay';
|
||||||
|
window.location = rea.data.mweb_url + url
|
||||||
|
that.getOrder()
|
||||||
|
that.showpayL = false
|
||||||
|
} else {
|
||||||
|
uni.hideLoading();
|
||||||
|
uni.showToast({
|
||||||
|
title: rea.msg,
|
||||||
|
icon: 'none'
|
||||||
|
})
|
||||||
|
}
|
||||||
|
});
|
||||||
|
}
|
||||||
|
|
||||||
|
// #endif
|
||||||
|
|
||||||
|
// #ifdef APP
|
||||||
|
let data = {
|
||||||
|
ordersId: that.order.ordersId,
|
||||||
|
type: 1,
|
||||||
|
userPackageDetailId : that.order.userPackageDetailId
|
||||||
|
}
|
||||||
|
that.$Request.post('/app/wxPay/payOrder', data).then(rea => {
|
||||||
|
|
||||||
|
if (rea.code == 0) {
|
||||||
|
uni.hideLoading();
|
||||||
|
that.isCheckPay(rea.code, 'wxpay', JSON.stringify(rea.data));
|
||||||
|
that.getOrder()
|
||||||
|
that.showpayL = false
|
||||||
|
}else{
|
||||||
|
uni.hideLoading();
|
||||||
|
}
|
||||||
|
});
|
||||||
|
// #endif
|
||||||
|
} else if (that.openWay == 3) { //支付宝支付
|
||||||
|
that.$queue.showLoading('支付中...')
|
||||||
|
// #ifdef H5
|
||||||
|
let data = {
|
||||||
|
ordersId: that.order.ordersId,
|
||||||
|
type: 2,
|
||||||
|
userPackageDetailId : that.order.userPackageDetailId
|
||||||
|
}
|
||||||
|
that.$Request.post('/app/aliPay/payOrder', data).then(
|
||||||
|
rea => {
|
||||||
|
uni.hideLoading();
|
||||||
|
const div = document.createElement('div')
|
||||||
|
div.innerHTML = rea.data //此处form就是后台返回接收到的数据
|
||||||
|
document.body.appendChild(div)
|
||||||
|
document.forms[0].submit()
|
||||||
|
that.getOrder()
|
||||||
|
that.showpayL = false
|
||||||
|
});
|
||||||
|
// #endif
|
||||||
|
|
||||||
|
// #ifdef APP-PLUS
|
||||||
|
let data = {
|
||||||
|
ordersId: that.order.ordersId,
|
||||||
|
type: 1,
|
||||||
|
userPackageDetailId : that.order.userPackageDetailId
|
||||||
|
}
|
||||||
|
that.$Request.post('/app/aliPay/payOrder', data).then(
|
||||||
|
rea => {
|
||||||
|
uni.hideLoading();
|
||||||
|
that.setPayment('alipay', rea.data);
|
||||||
|
that.getOrder()
|
||||||
|
that.showpayL = false
|
||||||
|
});
|
||||||
|
// #endif
|
||||||
|
}
|
||||||
|
},
|
||||||
|
|
||||||
taocanDaiBd(url,item){
|
taocanDaiBd(url,item){
|
||||||
this.$queue.setData('getJishi','');
|
this.$queue.setData('getJishi','');
|
||||||
this.$queue.setData('mainData',item);
|
this.$queue.setData('mainData',item);
|
||||||
|
|
@ -811,6 +1038,190 @@
|
||||||
url:url
|
url:url
|
||||||
})
|
})
|
||||||
},
|
},
|
||||||
|
// 立即支付订单
|
||||||
|
payLj() {
|
||||||
|
let that = this
|
||||||
|
that.showpayL = false
|
||||||
|
if (that.openWay == 1) { //零钱支付
|
||||||
|
uni.showModal({
|
||||||
|
title: '付款提示',
|
||||||
|
content: '确认支付' + that.order.payMoney + '元吗?',
|
||||||
|
success: function(re) {
|
||||||
|
if (re.confirm) {
|
||||||
|
that.$queue.showLoading('支付中...')
|
||||||
|
console.log('用户点击确定');
|
||||||
|
that.$Request.post("/app/artificer/payOrders", {
|
||||||
|
ordersId: that.order.ordersId,
|
||||||
|
}).then(res => {
|
||||||
|
uni.hideLoading();
|
||||||
|
if (res.code == 0) {
|
||||||
|
uni.showToast({
|
||||||
|
title: '支付成功'
|
||||||
|
})
|
||||||
|
that.showpayL = false
|
||||||
|
that.getOrder()
|
||||||
|
// that.showorderS=false;
|
||||||
|
|
||||||
|
} else {
|
||||||
|
uni.showToast({
|
||||||
|
title: res.msg,
|
||||||
|
icon: 'none'
|
||||||
|
})
|
||||||
|
}
|
||||||
|
});
|
||||||
|
} else if (re.cancel) {
|
||||||
|
uni.hideLoading();
|
||||||
|
console.log('用户点击取消');
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
})
|
||||||
|
} else if (that.openWay == 2) { //微信支付
|
||||||
|
that.$queue.showLoading('支付中...')
|
||||||
|
// #ifdef MP-WEIXIN
|
||||||
|
let data = {
|
||||||
|
ordersId: that.order.ordersId,
|
||||||
|
type: 3
|
||||||
|
}
|
||||||
|
that.$Request.post('/app/wxPay/payOrder', data).then(ret => {
|
||||||
|
console.log(ret)
|
||||||
|
if (ret.code == 0) {
|
||||||
|
uni.hideLoading();
|
||||||
|
uni.requestPayment({
|
||||||
|
provider: 'wxpay',
|
||||||
|
timeStamp: ret.data.timestamp,
|
||||||
|
nonceStr: ret.data.noncestr,
|
||||||
|
package: ret.data.package,
|
||||||
|
signType: ret.data.signType,
|
||||||
|
paySign: ret.data.sign,
|
||||||
|
success: function(ret) {
|
||||||
|
console.log(ret)
|
||||||
|
uni.showToast({
|
||||||
|
title: '支付成功',
|
||||||
|
icon: 'none'
|
||||||
|
})
|
||||||
|
that.getOrder()
|
||||||
|
console.log(222)
|
||||||
|
that.showpayL = false
|
||||||
|
// this.$queue.showToast('支付成功');
|
||||||
|
|
||||||
|
// uni.switchTab({
|
||||||
|
// url: '/pages/my/index'
|
||||||
|
// })
|
||||||
|
},
|
||||||
|
fail: function(err) {
|
||||||
|
// this.$queue.showToast('支付失败');
|
||||||
|
uni.showToast({
|
||||||
|
title: '支付失败',
|
||||||
|
icon: 'nones'
|
||||||
|
});
|
||||||
|
that.getOrder()
|
||||||
|
}
|
||||||
|
});
|
||||||
|
}
|
||||||
|
});
|
||||||
|
// #endif
|
||||||
|
|
||||||
|
// #ifdef H5
|
||||||
|
let ua = navigator.userAgent.toLowerCase();
|
||||||
|
if (ua.indexOf('micromessenger') != -1) {
|
||||||
|
let data = {
|
||||||
|
ordersId: that.order.ordersId,
|
||||||
|
type: 2
|
||||||
|
}
|
||||||
|
that.$Request.post('/app/wxPay/payOrder', data).then(rea => {
|
||||||
|
|
||||||
|
if (rea.code == 0) {
|
||||||
|
that.callPay(rea.data);
|
||||||
|
that.showpayL = false
|
||||||
|
that.getOrder()
|
||||||
|
} else {
|
||||||
|
uni.showToast({
|
||||||
|
title: rea.msg,
|
||||||
|
icon: 'none'
|
||||||
|
})
|
||||||
|
}
|
||||||
|
});
|
||||||
|
} else {
|
||||||
|
let data = {
|
||||||
|
ordersId: that.order.ordersId,
|
||||||
|
type: 4
|
||||||
|
}
|
||||||
|
// debugger;
|
||||||
|
that.$Request.post('/app/wxPay/payOrder', data).then(rea => {
|
||||||
|
// const urlArr = window.location.href;
|
||||||
|
// const hostUrl = urlArr.split("/");
|
||||||
|
// const callBack = hostUrl[0] + "//" + hostUrl[2] + "/";
|
||||||
|
// const url = '&redirect_url=' + callBack + 'my/order/pay';
|
||||||
|
// window.location = rea.mweb_url + url
|
||||||
|
that.showpay = false
|
||||||
|
if (rea.code == 0) {
|
||||||
|
const urlArr = window.location.href;
|
||||||
|
const hostUrl = urlArr.split("/");
|
||||||
|
const callBack = hostUrl[0] + "//" + hostUrl[2] + "/";
|
||||||
|
const url = '&redirect_url=' + callBack + 'my/order/pay';
|
||||||
|
window.location = rea.data.mweb_url + url
|
||||||
|
that.showpayL = false
|
||||||
|
that.getOrder()
|
||||||
|
} else {
|
||||||
|
uni.showToast({
|
||||||
|
title: rea.msg,
|
||||||
|
icon: 'none'
|
||||||
|
})
|
||||||
|
}
|
||||||
|
});
|
||||||
|
}
|
||||||
|
|
||||||
|
// #endif
|
||||||
|
|
||||||
|
// #ifdef APP
|
||||||
|
let data = {
|
||||||
|
ordersId: that.order.ordersId,
|
||||||
|
type: 1
|
||||||
|
}
|
||||||
|
that.$Request.post('/app/wxPay/payOrder', data).then(rea => {
|
||||||
|
console.log(rea)
|
||||||
|
|
||||||
|
if (rea.code == 0) {
|
||||||
|
that.isCheckPay(rea.code, 'wxpay', JSON.stringify(rea.data));
|
||||||
|
that.showpayL = false
|
||||||
|
that.getOrder()
|
||||||
|
}
|
||||||
|
});
|
||||||
|
// #endif
|
||||||
|
} else if (that.openWay == 3) { //支付宝支付
|
||||||
|
that.$queue.showLoading('支付中...')
|
||||||
|
// #ifdef H5
|
||||||
|
let data = {
|
||||||
|
ordersId: that.order.ordersId,
|
||||||
|
type: 2
|
||||||
|
}
|
||||||
|
that.$Request.post('/app/aliPay/payOrder', data).then(
|
||||||
|
rea => {
|
||||||
|
const div = document.createElement('div')
|
||||||
|
div.innerHTML = rea.data //此处form就是后台返回接收到的数据
|
||||||
|
document.body.appendChild(div)
|
||||||
|
document.forms[0].submit()
|
||||||
|
that.showpayL = false
|
||||||
|
that.getOrder()
|
||||||
|
});
|
||||||
|
// #endif
|
||||||
|
|
||||||
|
// #ifdef APP-PLUS
|
||||||
|
let data = {
|
||||||
|
ordersId: that.order.ordersId,
|
||||||
|
type: 1
|
||||||
|
}
|
||||||
|
that.$Request.post('/app/aliPay/payOrder', data).then(
|
||||||
|
rea => {
|
||||||
|
that.setPayment('alipay', rea.data);
|
||||||
|
that.showpayL = false
|
||||||
|
that.getOrder()
|
||||||
|
});
|
||||||
|
// #endif
|
||||||
|
}
|
||||||
|
},
|
||||||
|
|
||||||
getOrder() {
|
getOrder() {
|
||||||
let data = {
|
let data = {
|
||||||
ordersId: this.ordersId
|
ordersId: this.ordersId
|
||||||
|
|
@ -1216,7 +1627,7 @@
|
||||||
earlyFinishReason: that.earlyFinishReason,
|
earlyFinishReason: that.earlyFinishReason,
|
||||||
}
|
}
|
||||||
that.$Request.post('/app/artificer/accomplishOrders', data).then(res => {
|
that.$Request.post('/app/artificer/accomplishOrders', data).then(res => {
|
||||||
if (res.code == 0) {
|
if (res.code == 0||res.code == 200) {
|
||||||
uni.showToast({
|
uni.showToast({
|
||||||
title:'操作完成!'
|
title:'操作完成!'
|
||||||
})
|
})
|
||||||
|
|
@ -1631,9 +2042,21 @@
|
||||||
});
|
});
|
||||||
},
|
},
|
||||||
openpay(item) {
|
openpay(item) {
|
||||||
|
this.$queue.setData('xiangmu',item);
|
||||||
|
if(item.userPackageDetailId!=null){
|
||||||
uni.navigateTo({
|
uni.navigateTo({
|
||||||
url:'/my/order/payModifyDzhifu?ordersId='+item.ordersId
|
url:'/my/order/payModifyTcMy?ordersId='+item.ordersId
|
||||||
})
|
})
|
||||||
|
}else if(item.userPackageDetailId!=null&&isSupplement=='1'){
|
||||||
|
uni.navigateTo({
|
||||||
|
url:'/my/order/payModifyDd?ordersId='+item.ordersId
|
||||||
|
})
|
||||||
|
}else{
|
||||||
|
uni.navigateTo({
|
||||||
|
url:'/my/order/payModify?ordersId='+item.ordersId
|
||||||
|
})
|
||||||
|
}
|
||||||
|
|
||||||
// this.showpay = true
|
// this.showpay = true
|
||||||
},
|
},
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -416,8 +416,9 @@
|
||||||
this.isTrue = true
|
this.isTrue = true
|
||||||
},
|
},
|
||||||
youhuijuan(){
|
youhuijuan(){
|
||||||
|
var moeny=(this.orderXm.price*this.number).toFixed(2)
|
||||||
uni.navigateTo({
|
uni.navigateTo({
|
||||||
url:'/my/hongbao/youhuijuanList?price='+this.orderXm.price+'&text='+'支付'
|
url:'/my/hongbao/youhuijuanList?price='+moeny+'&text='+'支付'
|
||||||
})
|
})
|
||||||
},
|
},
|
||||||
openpay() {//验证
|
openpay() {//验证
|
||||||
|
|
|
||||||
|
|
@ -364,8 +364,9 @@
|
||||||
this.isTrue = true
|
this.isTrue = true
|
||||||
},
|
},
|
||||||
youhuijuan(){
|
youhuijuan(){
|
||||||
|
var moeny=(this.orderXm.price*this.number).toFixed(2)
|
||||||
uni.navigateTo({
|
uni.navigateTo({
|
||||||
url:'/my/hongbao/youhuijuanList?price='+this.orderXm.price+'&text='+'次卡'
|
url:'/my/hongbao/youhuijuanList?price='+moeny+'&text='+'次卡'
|
||||||
})
|
})
|
||||||
},
|
},
|
||||||
openpay() {//验证
|
openpay() {//验证
|
||||||
|
|
|
||||||
|
|
@ -21,7 +21,7 @@
|
||||||
<view style="width: 100%;">
|
<view style="width: 100%;">
|
||||||
<view class="flex justify-between margin-tb-sm" style="color: #999999;">
|
<view class="flex justify-between margin-tb-sm" style="color: #999999;">
|
||||||
<view style="justify-content: space-between;">
|
<view style="justify-content: space-between;">
|
||||||
{{orderXm.ordersMassageList[0].massageType.duration}}分钟
|
{{orderXm.duration}}分钟
|
||||||
|
|
||||||
</view>
|
</view>
|
||||||
</view>
|
</view>
|
||||||
|
|
@ -88,7 +88,7 @@
|
||||||
<span class="view-more" style="margin-right: 8px;"></span>
|
<span class="view-more" style="margin-right: 8px;"></span>
|
||||||
</view>
|
</view>
|
||||||
</view>
|
</view>
|
||||||
<view class="liliao">
|
<!-- <view class="liliao">
|
||||||
<view class="liliao-top" style="width: 30%;">
|
<view class="liliao-top" style="width: 30%;">
|
||||||
<span>平台优惠劵</span>
|
<span>平台优惠劵</span>
|
||||||
</view>
|
</view>
|
||||||
|
|
@ -96,10 +96,8 @@
|
||||||
<view class="" style="margin-right: 5px;">
|
<view class="" style="margin-right: 5px;">
|
||||||
<span>-¥{{orderXm.couponMoney}}</span>
|
<span>-¥{{orderXm.couponMoney}}</span>
|
||||||
</view>
|
</view>
|
||||||
<!-- <span v-else>选择优惠劵</span> -->
|
|
||||||
<!-- <image class="fuwu-img" src="../../static/images/my/jiantou.png" mode=""></image> -->
|
|
||||||
</view>
|
|
||||||
</view>
|
</view>
|
||||||
|
</view> -->
|
||||||
<view class="fuwu-time">
|
<view class="fuwu-time">
|
||||||
<view class="fuwu-title">
|
<view class="fuwu-title">
|
||||||
服务时间
|
服务时间
|
||||||
|
|
@ -567,7 +565,7 @@
|
||||||
});
|
});
|
||||||
} else {
|
} else {
|
||||||
uni.navigateTo({
|
uni.navigateTo({
|
||||||
url: '../address/address?id=' + 2
|
url: '../address/address?id=' + 5
|
||||||
})
|
})
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
@ -658,7 +656,7 @@
|
||||||
address:that.province+that.city+that.district+that.detailaddress,
|
address:that.province+that.city+that.district+that.detailaddress,
|
||||||
artificerId:that.jishiName.artificerId,
|
artificerId:that.jishiName.artificerId,
|
||||||
ordersMassageList:[
|
ordersMassageList:[
|
||||||
{massageId: that.orderXm.massageTypeId,num: that.orderXm.massageNum},
|
{massageId: that.orderXm.userPackageDetailId?that.orderXm.userPackageDetailId:that.orderXm.massageTypeId,num: that.orderXm.massageNum},
|
||||||
],
|
],
|
||||||
city:that.city,
|
city:that.city,
|
||||||
tripWay:that.orderXm.tripWay,
|
tripWay:that.orderXm.tripWay,
|
||||||
|
|
|
||||||
|
|
@ -364,8 +364,9 @@
|
||||||
this.isTrue = true
|
this.isTrue = true
|
||||||
},
|
},
|
||||||
youhuijuan(){
|
youhuijuan(){
|
||||||
|
var moeny=(this.orderXm.price*this.number).toFixed(2)
|
||||||
uni.navigateTo({
|
uni.navigateTo({
|
||||||
url:'/my/hongbao/youhuijuanList?price='+this.orderXm.price+'&text='+'疗程'
|
url:'/my/hongbao/youhuijuanList?price='+moeny+'&text='+'疗程'
|
||||||
})
|
})
|
||||||
},
|
},
|
||||||
openpay() {//验证
|
openpay() {//验证
|
||||||
|
|
|
||||||
|
|
@ -394,8 +394,9 @@
|
||||||
this.isTrue = true
|
this.isTrue = true
|
||||||
},
|
},
|
||||||
youhuijuan(){
|
youhuijuan(){
|
||||||
|
var moeny=(this.orderXm.price*this.number).toFixed(2)
|
||||||
uni.navigateTo({
|
uni.navigateTo({
|
||||||
url:'/my/hongbao/youhuijuanList?price='+this.orderXm.price+'&text='+'套餐'
|
url:'/my/hongbao/youhuijuanList?price='+moeny+'&text='+'套餐'
|
||||||
})
|
})
|
||||||
},
|
},
|
||||||
openpay() {//验证
|
openpay() {//验证
|
||||||
|
|
|
||||||
|
|
@ -4,13 +4,15 @@
|
||||||
<view style="color: red;font-size:26rpx">(订单已超时)</view>
|
<view style="color: red;font-size:26rpx">(订单已超时)</view>
|
||||||
</view>
|
</view>
|
||||||
<view class="padding-bottom u-skeleton">
|
<view class="padding-bottom u-skeleton">
|
||||||
<view class="bgImg u-skeleton-fillet" v-if="order.oldOrdersMassageList && order.oldOrdersMassageList.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">服务项目</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.oldOrdersMassageList[0].massageType.massageImg"
|
<image v-if="order.userPackageDetailId==null" :src="order.ordersMassageList[0].massageType.massageImg"
|
||||||
|
style="width: 100%;height: 100%;border-radius: 19upx;"></image>
|
||||||
|
<image v-else :src="order.ordersMassageList[0].userPackageDetail.massageImg"
|
||||||
style="width: 100%;height: 100%;border-radius: 19upx;"></image>
|
style="width: 100%;height: 100%;border-radius: 19upx;"></image>
|
||||||
</view>
|
</view>
|
||||||
<view class="u-flex-1 margin-left-sm">
|
<view class="u-flex-1 margin-left-sm">
|
||||||
|
|
|
||||||
|
|
@ -21,6 +21,7 @@
|
||||||
{{order.entryName}}
|
{{order.entryName}}
|
||||||
</view>
|
</view>
|
||||||
<view class="zhuangtai">
|
<view class="zhuangtai">
|
||||||
|
<view v-if="order.status ==1">待支付</view>
|
||||||
<view v-if="order.status ==3">待评价</view>
|
<view v-if="order.status ==3">待评价</view>
|
||||||
<view v-if="order.status ==6">服务中</view>
|
<view v-if="order.status ==6">服务中</view>
|
||||||
</view>
|
</view>
|
||||||
|
|
@ -241,7 +242,7 @@
|
||||||
</view>
|
</view>
|
||||||
<view class="flex justify-between jusitify-line">
|
<view class="flex justify-between jusitify-line">
|
||||||
<view class="line-word">项目价格</view>
|
<view class="line-word">项目价格</view>
|
||||||
<view class="line-word-r">¥{{order.oldMassagePrice}}</view>
|
<view class="line-word-r">¥{{order.massagePrice}}</view>
|
||||||
</view>
|
</view>
|
||||||
<view class="flex justify-between jusitify-line" >
|
<view class="flex justify-between jusitify-line" >
|
||||||
<view class="line-word">服务时长</view>
|
<view class="line-word">服务时长</view>
|
||||||
|
|
@ -249,7 +250,7 @@
|
||||||
</view>
|
</view>
|
||||||
<view class="flex justify-between jusitify-line">
|
<view class="flex justify-between jusitify-line">
|
||||||
<view class="line-word">升级差额</view>
|
<view class="line-word">升级差额</view>
|
||||||
<view class="line-word-r">¥{{(order.massagePrice-order.oldMassagePrice).toFixed(2)}}</view>
|
<view class="line-word-r">¥{{(order.massagePrice - order.oldMassagePrice).toFixed(2)}}</view>
|
||||||
</view>
|
</view>
|
||||||
<view class="flex justify-between jusitify-line">
|
<view class="flex justify-between jusitify-line">
|
||||||
<view class="line-word">会员折扣</view>
|
<view class="line-word">会员折扣</view>
|
||||||
|
|
@ -470,7 +471,7 @@
|
||||||
</view>
|
</view>
|
||||||
<view class="flex justify-between jusitify-line">
|
<view class="flex justify-between jusitify-line">
|
||||||
<view class="line-word">项目价格</view>
|
<view class="line-word">项目价格</view>
|
||||||
<view class="line-word-r">¥{{order.oldMassagePrice}}</view>
|
<view class="line-word-r">¥{{order.massagePrice}}</view>
|
||||||
</view>
|
</view>
|
||||||
<view class="flex justify-between jusitify-line" >
|
<view class="flex justify-between jusitify-line" >
|
||||||
<view class="line-word">服务时长</view>
|
<view class="line-word">服务时长</view>
|
||||||
|
|
@ -560,7 +561,7 @@
|
||||||
|
|
||||||
<u-button
|
<u-button
|
||||||
shape="circle" :plain="true"
|
shape="circle" :plain="true"
|
||||||
@click="goNav('/my/wallet/index?artificerId='+order.artificerId)"
|
@click="goNav('/my/wallet/index?artificerId='+order.artificerId+'&ordersId='+order.ordersId)"
|
||||||
class="btns">
|
class="btns">
|
||||||
充值
|
充值
|
||||||
</u-button>
|
</u-button>
|
||||||
|
|
@ -599,6 +600,13 @@
|
||||||
class="dingshi">
|
class="dingshi">
|
||||||
去投诉
|
去投诉
|
||||||
</u-button>
|
</u-button>
|
||||||
|
<u-button :custom-style="customStyle2"
|
||||||
|
v-if="order.status=='1'"
|
||||||
|
shape="circle" :plain="true"
|
||||||
|
@click="quzhifu(order)"
|
||||||
|
class="dingshi">
|
||||||
|
去支付
|
||||||
|
</u-button>
|
||||||
</view>
|
</view>
|
||||||
|
|
||||||
</view>
|
</view>
|
||||||
|
|
@ -675,8 +683,32 @@
|
||||||
</view>
|
</view>
|
||||||
</scroll-view>
|
</scroll-view>
|
||||||
</u-popup>
|
</u-popup>
|
||||||
<!-- 支付方式 -->
|
<!-- 待支支付方式 -->
|
||||||
<u-popup v-model="showpay" mode="bottom" :closeable="closeable">
|
<u-popup v-model="showpay" mode="bottom" :closeable="closeable">
|
||||||
|
<view class="popup_pay">
|
||||||
|
<view style="background-color: #fff;">
|
||||||
|
<view style="padding: 0 20upx;margin-top: 60rpx;margin-bottom: 20rpx;">
|
||||||
|
<view
|
||||||
|
style="display: flex;height: 100upx;align-items: center;padding: 20upx 0;justify-content: center;"
|
||||||
|
v-for="(item,index) in openLists" :key='index'>
|
||||||
|
<image :src="item.image" style="width: 55upx;height: 55upx;border-radius: 50upx;">
|
||||||
|
</image>
|
||||||
|
<view style="font-size: 30upx;margin-left: 20upx;width: 70%;">
|
||||||
|
{{item.text}}
|
||||||
|
</view>
|
||||||
|
<radio-group name="openWay" style="margin-left: 45upx;" @tap='selectWay(item)'>
|
||||||
|
<label class="tui-radio">
|
||||||
|
<radio color="#096f4b" :checked="openWay === item.id ? true : false" />
|
||||||
|
</label>
|
||||||
|
</radio-group>
|
||||||
|
</view>
|
||||||
|
</view>
|
||||||
|
</view>
|
||||||
|
<view class="pay_btn" @click="payDzF()">确认支付</view>
|
||||||
|
</view>
|
||||||
|
</u-popup>
|
||||||
|
<!-- 正常支付方式 -->
|
||||||
|
<u-popup v-model="showpayZ" mode="bottom" :closeable="closeable">
|
||||||
<view class="popup_pay">
|
<view class="popup_pay">
|
||||||
<view style="background-color: #fff;">
|
<view style="background-color: #fff;">
|
||||||
<view style="padding: 0 20upx;margin-top: 60rpx;margin-bottom: 20rpx;">
|
<view style="padding: 0 20upx;margin-top: 60rpx;margin-bottom: 20rpx;">
|
||||||
|
|
@ -871,6 +903,10 @@
|
||||||
// #endif
|
// #endif
|
||||||
},
|
},
|
||||||
methods: {
|
methods: {
|
||||||
|
quzhifu(){//去支付
|
||||||
|
this.showpay = true;
|
||||||
|
|
||||||
|
},
|
||||||
saveJZS(artificerId) {//升级查询技师项目
|
saveJZS(artificerId) {//升级查询技师项目
|
||||||
let data = {
|
let data = {
|
||||||
artificerId: artificerId,
|
artificerId: artificerId,
|
||||||
|
|
@ -951,7 +987,7 @@
|
||||||
if (res.code == 0) {
|
if (res.code == 0) {
|
||||||
that.tordersId = res.data.ordersId;
|
that.tordersId = res.data.ordersId;
|
||||||
that.tpayMoney = res.data.payMoney;
|
that.tpayMoney = res.data.payMoney;
|
||||||
that.showpay = true;
|
that.showpayZ = true;
|
||||||
that.paySel = 1;
|
that.paySel = 1;
|
||||||
} else {
|
} else {
|
||||||
that.$queue.showToast(res.msg)
|
that.$queue.showToast(res.msg)
|
||||||
|
|
@ -985,24 +1021,20 @@
|
||||||
|
|
||||||
});
|
});
|
||||||
},
|
},
|
||||||
// 支付订单
|
// 待支付订单
|
||||||
pay() {
|
payDzF() {
|
||||||
let that = this
|
let that = this
|
||||||
this.showpay = false
|
this.showpay = false
|
||||||
if (this.paySel != 0) {
|
|
||||||
this.payJZ();
|
|
||||||
return;
|
|
||||||
}
|
|
||||||
if (that.openWay == 1) { //零钱支付
|
if (that.openWay == 1) { //零钱支付
|
||||||
uni.showModal({
|
uni.showModal({
|
||||||
title: '付款提示',
|
title: '付款提示',
|
||||||
content: '确认支付' + that.tpayMoney + '元吗?',
|
content: '确认支付' + that.order.payMoney + '元吗?',
|
||||||
success: function(re) {
|
success: function(re) {
|
||||||
if (re.confirm) {
|
if (re.confirm) {
|
||||||
that.$queue.showLoading('支付中...')
|
that.$queue.showLoading('支付中...')
|
||||||
console.log('用户点击确定');
|
console.log('用户点击确定');
|
||||||
that.$Request.post("/app/artificer/payOrders", {
|
that.$Request.post("/app/artificer/payOrders", {
|
||||||
ordersId: that.tordersId,
|
ordersId: that.order.ordersId,
|
||||||
}).then(res => {
|
}).then(res => {
|
||||||
uni.hideLoading();
|
uni.hideLoading();
|
||||||
if (res.code == 0) {
|
if (res.code == 0) {
|
||||||
|
|
@ -1011,9 +1043,10 @@
|
||||||
})
|
})
|
||||||
that.getOrder()
|
that.getOrder()
|
||||||
that.showorderS=false;
|
that.showorderS=false;
|
||||||
uni.switchTab({
|
that.showpay = false
|
||||||
url:'/pages/order/index'
|
// uni.switchTab({
|
||||||
})
|
// url:'/pages/order/index'
|
||||||
|
// })
|
||||||
} else {
|
} else {
|
||||||
uni.showToast({
|
uni.showToast({
|
||||||
title: res.msg,
|
title: res.msg,
|
||||||
|
|
@ -1053,6 +1086,7 @@
|
||||||
icon: 'none'
|
icon: 'none'
|
||||||
})
|
})
|
||||||
that.getOrder()
|
that.getOrder()
|
||||||
|
that.showpay = false
|
||||||
// this.$queue.showToast('支付成功');
|
// this.$queue.showToast('支付成功');
|
||||||
|
|
||||||
// uni.switchTab({
|
// uni.switchTab({
|
||||||
|
|
@ -1083,6 +1117,7 @@
|
||||||
that.showpay = false
|
that.showpay = false
|
||||||
if (rea.code == 0) {
|
if (rea.code == 0) {
|
||||||
that.callPay(rea.data);
|
that.callPay(rea.data);
|
||||||
|
that.showpay = false
|
||||||
} else {
|
} else {
|
||||||
uni.showToast({
|
uni.showToast({
|
||||||
title: rea.msg,
|
title: rea.msg,
|
||||||
|
|
@ -1109,6 +1144,7 @@
|
||||||
const callBack = hostUrl[0] + "//" + hostUrl[2] + "/";
|
const callBack = hostUrl[0] + "//" + hostUrl[2] + "/";
|
||||||
const url = '&redirect_url=' + callBack + 'my/order/pay';
|
const url = '&redirect_url=' + callBack + 'my/order/pay';
|
||||||
window.location = rea.data.mweb_url + url
|
window.location = rea.data.mweb_url + url
|
||||||
|
that.showpay = false
|
||||||
} else {
|
} else {
|
||||||
uni.showToast({
|
uni.showToast({
|
||||||
title: rea.msg,
|
title: rea.msg,
|
||||||
|
|
@ -1130,6 +1166,7 @@
|
||||||
that.showpay = false
|
that.showpay = false
|
||||||
if (rea.code == 0) {
|
if (rea.code == 0) {
|
||||||
that.isCheckPay(rea.code, 'wxpay', JSON.stringify(rea.data));
|
that.isCheckPay(rea.code, 'wxpay', JSON.stringify(rea.data));
|
||||||
|
that.showpay = false
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
// #endif
|
// #endif
|
||||||
|
|
@ -1146,6 +1183,7 @@
|
||||||
div.innerHTML = rea.data //此处form就是后台返回接收到的数据
|
div.innerHTML = rea.data //此处form就是后台返回接收到的数据
|
||||||
document.body.appendChild(div)
|
document.body.appendChild(div)
|
||||||
document.forms[0].submit()
|
document.forms[0].submit()
|
||||||
|
that.showpay = false
|
||||||
});
|
});
|
||||||
// #endif
|
// #endif
|
||||||
|
|
||||||
|
|
@ -1157,6 +1195,189 @@
|
||||||
that.$Request.post('/app/aliPay/payOrder', data).then(
|
that.$Request.post('/app/aliPay/payOrder', data).then(
|
||||||
rea => {
|
rea => {
|
||||||
that.setPayment('alipay', rea.data);
|
that.setPayment('alipay', rea.data);
|
||||||
|
that.showpay = false
|
||||||
|
});
|
||||||
|
// #endif
|
||||||
|
}
|
||||||
|
},
|
||||||
|
// 支付订单
|
||||||
|
pay() {
|
||||||
|
let that = this
|
||||||
|
this.showpay = false
|
||||||
|
if (this.paySel != 0) {
|
||||||
|
this.payJZ();
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
if (that.openWay == 1) { //零钱支付
|
||||||
|
uni.showModal({
|
||||||
|
title: '付款提示',
|
||||||
|
content: '确认支付' + that.tpayMoney + '元吗?',
|
||||||
|
success: function(re) {
|
||||||
|
if (re.confirm) {
|
||||||
|
that.$queue.showLoading('支付中...')
|
||||||
|
console.log('用户点击确定');
|
||||||
|
that.$Request.post("/app/artificer/payOrders", {
|
||||||
|
ordersId: that.tordersId,
|
||||||
|
}).then(res => {
|
||||||
|
uni.hideLoading();
|
||||||
|
if (res.code == 0) {
|
||||||
|
uni.showToast({
|
||||||
|
title: '支付成功'
|
||||||
|
})
|
||||||
|
that.getOrder()
|
||||||
|
that.showpayZ = false;
|
||||||
|
uni.switchTab({
|
||||||
|
url:'/pages/order/index'
|
||||||
|
})
|
||||||
|
} else {
|
||||||
|
uni.showToast({
|
||||||
|
title: res.msg,
|
||||||
|
icon: 'none'
|
||||||
|
})
|
||||||
|
}
|
||||||
|
});
|
||||||
|
} else if (re.cancel) {
|
||||||
|
uni.hideLoading();
|
||||||
|
console.log('用户点击取消');
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
})
|
||||||
|
} else if (that.openWay == 2) { //微信支付
|
||||||
|
that.$queue.showLoading('支付中...')
|
||||||
|
// #ifdef MP-WEIXIN
|
||||||
|
let data = {
|
||||||
|
ordersId: that.tordersId,
|
||||||
|
type: 3
|
||||||
|
}
|
||||||
|
that.$Request.post('/app/wxPay/payOrder', data).then(ret => {
|
||||||
|
console.log(ret)
|
||||||
|
if (ret.code == 0) {
|
||||||
|
uni.hideLoading();
|
||||||
|
uni.requestPayment({
|
||||||
|
provider: 'wxpay',
|
||||||
|
timeStamp: ret.data.timestamp,
|
||||||
|
nonceStr: ret.data.noncestr,
|
||||||
|
package: ret.data.package,
|
||||||
|
signType: ret.data.signType,
|
||||||
|
paySign: ret.data.sign,
|
||||||
|
success: function(ret) {
|
||||||
|
console.log(ret)
|
||||||
|
uni.showToast({
|
||||||
|
title: '支付成功',
|
||||||
|
icon: 'none'
|
||||||
|
})
|
||||||
|
that.getOrder()
|
||||||
|
that.showpayZ = false;
|
||||||
|
// this.$queue.showToast('支付成功');
|
||||||
|
|
||||||
|
// uni.switchTab({
|
||||||
|
// url: '/pages/my/index'
|
||||||
|
// })
|
||||||
|
},
|
||||||
|
fail: function(err) {
|
||||||
|
// this.$queue.showToast('支付失败');
|
||||||
|
uni.showToast({
|
||||||
|
title: '支付失败',
|
||||||
|
icon: 'nones'
|
||||||
|
});
|
||||||
|
that.getOrder()
|
||||||
|
}
|
||||||
|
});
|
||||||
|
}
|
||||||
|
});
|
||||||
|
// #endif
|
||||||
|
|
||||||
|
// #ifdef H5
|
||||||
|
let ua = navigator.userAgent.toLowerCase();
|
||||||
|
if (ua.indexOf('micromessenger') != -1) {
|
||||||
|
let data = {
|
||||||
|
ordersId: that.tordersId,
|
||||||
|
type: 2
|
||||||
|
}
|
||||||
|
that.$Request.post('/app/wxPay/payOrder', data).then(rea => {
|
||||||
|
that.showpay = false
|
||||||
|
if (rea.code == 0) {
|
||||||
|
that.callPay(rea.data);
|
||||||
|
that.showpayZ = false;
|
||||||
|
} else {
|
||||||
|
uni.showToast({
|
||||||
|
title: rea.msg,
|
||||||
|
icon: 'none'
|
||||||
|
})
|
||||||
|
}
|
||||||
|
});
|
||||||
|
} else {
|
||||||
|
let data = {
|
||||||
|
ordersId: that.tordersId,
|
||||||
|
type: 4
|
||||||
|
}
|
||||||
|
// debugger;
|
||||||
|
that.$Request.post('/app/wxPay/payOrder', data).then(rea => {
|
||||||
|
// const urlArr = window.location.href;
|
||||||
|
// const hostUrl = urlArr.split("/");
|
||||||
|
// const callBack = hostUrl[0] + "//" + hostUrl[2] + "/";
|
||||||
|
// const url = '&redirect_url=' + callBack + 'my/order/pay';
|
||||||
|
// window.location = rea.mweb_url + url
|
||||||
|
that.showpay = false
|
||||||
|
if (rea.code == 0) {
|
||||||
|
const urlArr = window.location.href;
|
||||||
|
const hostUrl = urlArr.split("/");
|
||||||
|
const callBack = hostUrl[0] + "//" + hostUrl[2] + "/";
|
||||||
|
const url = '&redirect_url=' + callBack + 'my/order/pay';
|
||||||
|
window.location = rea.data.mweb_url + url
|
||||||
|
that.showpayZ = false;
|
||||||
|
} else {
|
||||||
|
uni.showToast({
|
||||||
|
title: rea.msg,
|
||||||
|
icon: 'none'
|
||||||
|
})
|
||||||
|
}
|
||||||
|
});
|
||||||
|
}
|
||||||
|
|
||||||
|
// #endif
|
||||||
|
|
||||||
|
// #ifdef APP
|
||||||
|
let data = {
|
||||||
|
ordersId: that.tordersId,
|
||||||
|
type: 1
|
||||||
|
}
|
||||||
|
that.$Request.post('/app/wxPay/payOrder', data).then(rea => {
|
||||||
|
console.log(rea)
|
||||||
|
that.showpay = false
|
||||||
|
if (rea.code == 0) {
|
||||||
|
that.isCheckPay(rea.code, 'wxpay', JSON.stringify(rea.data));
|
||||||
|
that.showpayZ = false;
|
||||||
|
}
|
||||||
|
});
|
||||||
|
// #endif
|
||||||
|
} else if (that.openWay == 3) { //支付宝支付
|
||||||
|
that.$queue.showLoading('支付中...')
|
||||||
|
// #ifdef H5
|
||||||
|
let data = {
|
||||||
|
ordersId: that.tordersId,
|
||||||
|
type: 2
|
||||||
|
}
|
||||||
|
that.$Request.post('/app/aliPay/payOrder', data).then(
|
||||||
|
rea => {
|
||||||
|
const div = document.createElement('div')
|
||||||
|
div.innerHTML = rea.data //此处form就是后台返回接收到的数据
|
||||||
|
document.body.appendChild(div)
|
||||||
|
document.forms[0].submit()
|
||||||
|
that.showpayZ = false;
|
||||||
|
});
|
||||||
|
// #endif
|
||||||
|
|
||||||
|
// #ifdef APP-PLUS
|
||||||
|
let data = {
|
||||||
|
ordersId: that.tordersId,
|
||||||
|
type: 1
|
||||||
|
}
|
||||||
|
that.$Request.post('/app/aliPay/payOrder', data).then(
|
||||||
|
rea => {
|
||||||
|
that.setPayment('alipay', rea.data);
|
||||||
|
that.showpayZ = false;
|
||||||
});
|
});
|
||||||
// #endif
|
// #endif
|
||||||
}
|
}
|
||||||
|
|
@ -1417,6 +1638,7 @@
|
||||||
icon: 'none'
|
icon: 'none'
|
||||||
})
|
})
|
||||||
that.getOrder()
|
that.getOrder()
|
||||||
|
that.showpayZ = false;
|
||||||
|
|
||||||
} else {
|
} else {
|
||||||
uni.showToast({
|
uni.showToast({
|
||||||
|
|
@ -1433,7 +1655,7 @@
|
||||||
} else if (that.openWay == 2) { //微信支付
|
} else if (that.openWay == 2) { //微信支付
|
||||||
// #ifdef MP-WEIXIN
|
// #ifdef MP-WEIXIN
|
||||||
let data = {
|
let data = {
|
||||||
ordersId: that.ordersId,
|
ordersId: that.tordersId,
|
||||||
type: 3
|
type: 3
|
||||||
}
|
}
|
||||||
that.$Request.post('/app/wxPay/payOrder', data).then(ret => {
|
that.$Request.post('/app/wxPay/payOrder', data).then(ret => {
|
||||||
|
|
@ -1459,6 +1681,7 @@
|
||||||
// uni.switchTab({
|
// uni.switchTab({
|
||||||
// url: '/pages/my/index'
|
// url: '/pages/my/index'
|
||||||
// })
|
// })
|
||||||
|
that.showpayZ = false;
|
||||||
},
|
},
|
||||||
fail: function(err) {
|
fail: function(err) {
|
||||||
// this.$queue.showToast('支付失败');
|
// this.$queue.showToast('支付失败');
|
||||||
|
|
@ -1477,13 +1700,14 @@
|
||||||
let ua = navigator.userAgent.toLowerCase();
|
let ua = navigator.userAgent.toLowerCase();
|
||||||
if (ua.indexOf('micromessenger') != -1) {
|
if (ua.indexOf('micromessenger') != -1) {
|
||||||
let data = {
|
let data = {
|
||||||
ordersId: that.ordersId,
|
ordersId: that.tordersId,
|
||||||
type: 2
|
type: 2
|
||||||
}
|
}
|
||||||
that.$Request.post('/app/wxPay/payOrder', data).then(rea => {
|
that.$Request.post('/app/wxPay/payOrder', data).then(rea => {
|
||||||
that.showpay = false
|
that.showpay = false
|
||||||
if (rea.code == 0) {
|
if (rea.code == 0) {
|
||||||
that.callPay(rea.data);
|
that.callPay(rea.data);
|
||||||
|
that.showpayZ = false;
|
||||||
} else {
|
} else {
|
||||||
uni.showToast({
|
uni.showToast({
|
||||||
title: rea.msg,
|
title: rea.msg,
|
||||||
|
|
@ -1493,7 +1717,7 @@
|
||||||
});
|
});
|
||||||
} else {
|
} else {
|
||||||
let data = {
|
let data = {
|
||||||
ordersId: that.ordersId,
|
ordersId: that.tordersId,
|
||||||
type: 4
|
type: 4
|
||||||
}
|
}
|
||||||
that.$Request.post('/app/wxPay/payOrder', data).then(rea => {
|
that.$Request.post('/app/wxPay/payOrder', data).then(rea => {
|
||||||
|
|
@ -1504,6 +1728,7 @@
|
||||||
const callBack = hostUrl[0] + "//" + hostUrl[2] + "/";
|
const callBack = hostUrl[0] + "//" + hostUrl[2] + "/";
|
||||||
const url = '&redirect_url=' + callBack + 'my/order/pay';
|
const url = '&redirect_url=' + callBack + 'my/order/pay';
|
||||||
window.location = rea.data.mweb_url + url
|
window.location = rea.data.mweb_url + url
|
||||||
|
that.showpayZ = false;
|
||||||
} else {
|
} else {
|
||||||
uni.showToast({
|
uni.showToast({
|
||||||
title: rea.msg,
|
title: rea.msg,
|
||||||
|
|
@ -1525,13 +1750,14 @@
|
||||||
that.showpay = false
|
that.showpay = false
|
||||||
if (rea.code == 0) {
|
if (rea.code == 0) {
|
||||||
that.isCheckPay(rea.code, 'wxpay', JSON.stringify(rea.data));
|
that.isCheckPay(rea.code, 'wxpay', JSON.stringify(rea.data));
|
||||||
|
that.showpayZ = false;
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
// #endif
|
// #endif
|
||||||
} else if (that.openWay == 3) { //支付宝支付
|
} else if (that.openWay == 3) { //支付宝支付
|
||||||
// #ifdef H5
|
// #ifdef H5
|
||||||
let data = {
|
let data = {
|
||||||
ordersId: that.ordersId,
|
ordersId: that.tordersId,
|
||||||
type: 2
|
type: 2
|
||||||
}
|
}
|
||||||
that.$Request.post('/app/aliPay/payOrder', data).then(
|
that.$Request.post('/app/aliPay/payOrder', data).then(
|
||||||
|
|
@ -1541,18 +1767,20 @@
|
||||||
div.innerHTML = rea.data //此处form就是后台返回接收到的数据
|
div.innerHTML = rea.data //此处form就是后台返回接收到的数据
|
||||||
document.body.appendChild(div)
|
document.body.appendChild(div)
|
||||||
document.forms[0].submit()
|
document.forms[0].submit()
|
||||||
|
that.showpayZ = false;
|
||||||
});
|
});
|
||||||
// #endif
|
// #endif
|
||||||
|
|
||||||
// #ifdef APP-PLUS
|
// #ifdef APP-PLUS
|
||||||
let data = {
|
let data = {
|
||||||
ordersId: that.ordersId,
|
ordersId: that.tordersId,
|
||||||
type: 1
|
type: 1
|
||||||
}
|
}
|
||||||
that.$Request.post('/app/aliPay/payOrder', data).then(
|
that.$Request.post('/app/aliPay/payOrder', data).then(
|
||||||
rea => {
|
rea => {
|
||||||
that.showpay = false
|
that.showpay = false
|
||||||
that.setPayment('alipay', rea.data);
|
that.setPayment('alipay', rea.data);
|
||||||
|
that.showpayZ = false;
|
||||||
});
|
});
|
||||||
// #endif
|
// #endif
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -843,7 +843,7 @@
|
||||||
} else if (that.openWay == 2) { //微信支付
|
} else if (that.openWay == 2) { //微信支付
|
||||||
// #ifdef MP-WEIXIN
|
// #ifdef MP-WEIXIN
|
||||||
let data = {
|
let data = {
|
||||||
ordersId: that.ordersId,
|
ordersId: that.order.ordersId,
|
||||||
type: 3,
|
type: 3,
|
||||||
userPackageDetailId : that.order.userPackageDetailId
|
userPackageDetailId : that.order.userPackageDetailId
|
||||||
}
|
}
|
||||||
|
|
@ -888,12 +888,13 @@
|
||||||
let ua = navigator.userAgent.toLowerCase();
|
let ua = navigator.userAgent.toLowerCase();
|
||||||
if (ua.indexOf('micromessenger') != -1) {
|
if (ua.indexOf('micromessenger') != -1) {
|
||||||
let data = {
|
let data = {
|
||||||
ordersId: that.ordersId,
|
ordersId: that.order.ordersId,
|
||||||
type: 2,
|
type: 2,
|
||||||
userPackageDetailId : that.order.userPackageDetailId
|
userPackageDetailId : that.order.userPackageDetailId
|
||||||
}
|
}
|
||||||
that.$Request.post('/app/wxPay/payOrder', data).then(rea => {
|
that.$Request.post('/app/wxPay/payOrder', data).then(rea => {
|
||||||
that.showpay = false
|
that.showpay = false;
|
||||||
|
uni.hideLoading();
|
||||||
if (rea.code == 0) {
|
if (rea.code == 0) {
|
||||||
that.callPay(rea.data);
|
that.callPay(rea.data);
|
||||||
uni.switchTab({
|
uni.switchTab({
|
||||||
|
|
@ -908,12 +909,13 @@
|
||||||
});
|
});
|
||||||
} else {
|
} else {
|
||||||
let data = {
|
let data = {
|
||||||
ordersId: that.ordersId,
|
ordersId: that.order.ordersId,
|
||||||
type: 4,
|
type: 4,
|
||||||
userPackageDetailId : that.order.userPackageDetailId
|
userPackageDetailId : that.order.userPackageDetailId
|
||||||
}
|
}
|
||||||
that.$Request.post('/app/wxPay/payOrder', data).then(rea => {
|
that.$Request.post('/app/wxPay/payOrder', data).then(rea => {
|
||||||
that.showpay = false
|
that.showpay = false;
|
||||||
|
uni.hideLoading();
|
||||||
if (rea.code == 0) {
|
if (rea.code == 0) {
|
||||||
const urlArr = window.location.href;
|
const urlArr = window.location.href;
|
||||||
const hostUrl = urlArr.split("/");
|
const hostUrl = urlArr.split("/");
|
||||||
|
|
@ -942,7 +944,8 @@
|
||||||
}
|
}
|
||||||
that.$Request.post('/app/wxPay/payOrder', data).then(rea => {
|
that.$Request.post('/app/wxPay/payOrder', data).then(rea => {
|
||||||
console.log(rea)
|
console.log(rea)
|
||||||
that.showpay = false
|
that.showpay = false;
|
||||||
|
uni.hideLoading();
|
||||||
if (rea.code == 0) {
|
if (rea.code == 0) {
|
||||||
that.isCheckPay(rea.code, 'wxpay', JSON.stringify(rea.data));
|
that.isCheckPay(rea.code, 'wxpay', JSON.stringify(rea.data));
|
||||||
uni.switchTab({
|
uni.switchTab({
|
||||||
|
|
@ -954,7 +957,7 @@
|
||||||
} else if (that.openWay == 3) { //支付宝支付
|
} else if (that.openWay == 3) { //支付宝支付
|
||||||
// #ifdef H5
|
// #ifdef H5
|
||||||
let data = {
|
let data = {
|
||||||
ordersId: that.ordersId,
|
ordersId: that.order.ordersId,
|
||||||
type: 2,
|
type: 2,
|
||||||
userPackageDetailId : that.order.userPackageDetailId
|
userPackageDetailId : that.order.userPackageDetailId
|
||||||
}
|
}
|
||||||
|
|
@ -964,7 +967,8 @@
|
||||||
const div = document.createElement('div')
|
const div = document.createElement('div')
|
||||||
div.innerHTML = rea.data //此处form就是后台返回接收到的数据
|
div.innerHTML = rea.data //此处form就是后台返回接收到的数据
|
||||||
document.body.appendChild(div)
|
document.body.appendChild(div)
|
||||||
document.forms[0].submit()
|
document.forms[0].submit();
|
||||||
|
uni.hideLoading();
|
||||||
uni.switchTab({
|
uni.switchTab({
|
||||||
url:'/pages/order/index'
|
url:'/pages/order/index'
|
||||||
})
|
})
|
||||||
|
|
@ -979,7 +983,9 @@
|
||||||
}
|
}
|
||||||
that.$Request.post('/app/aliPay/payOrder', data).then(
|
that.$Request.post('/app/aliPay/payOrder', data).then(
|
||||||
rea => {
|
rea => {
|
||||||
|
|
||||||
that.showpay = false
|
that.showpay = false
|
||||||
|
uni.hideLoading();
|
||||||
that.setPayment('alipay', rea.data);
|
that.setPayment('alipay', rea.data);
|
||||||
uni.switchTab({
|
uni.switchTab({
|
||||||
url:'/pages/order/index'
|
url:'/pages/order/index'
|
||||||
|
|
@ -1064,6 +1070,7 @@
|
||||||
})
|
})
|
||||||
},
|
},
|
||||||
fail: function(err) {
|
fail: function(err) {
|
||||||
|
uni.hideLoading();
|
||||||
// this.$queue.showToast('支付失败');
|
// this.$queue.showToast('支付失败');
|
||||||
uni.showToast({
|
uni.showToast({
|
||||||
title: '支付失败',
|
title: '支付失败',
|
||||||
|
|
@ -1087,11 +1094,13 @@
|
||||||
that.$Request.post('/app/wxPay/payOrder', data).then(rea => {
|
that.$Request.post('/app/wxPay/payOrder', data).then(rea => {
|
||||||
that.showpay = false
|
that.showpay = false
|
||||||
if (rea.code == 0) {
|
if (rea.code == 0) {
|
||||||
|
uni.hideLoading();
|
||||||
that.callPay(rea.data);
|
that.callPay(rea.data);
|
||||||
uni.switchTab({
|
uni.switchTab({
|
||||||
url:'/pages/order/index'
|
url:'/pages/order/index'
|
||||||
})
|
})
|
||||||
} else {
|
} else {
|
||||||
|
uni.hideLoading();
|
||||||
uni.showToast({
|
uni.showToast({
|
||||||
title: rea.msg,
|
title: rea.msg,
|
||||||
icon: 'none'
|
icon: 'none'
|
||||||
|
|
@ -1113,6 +1122,7 @@
|
||||||
// window.location = rea.mweb_url + url
|
// window.location = rea.mweb_url + url
|
||||||
that.showpay = false
|
that.showpay = false
|
||||||
if (rea.code == 0) {
|
if (rea.code == 0) {
|
||||||
|
uni.hideLoading();
|
||||||
const urlArr = window.location.href;
|
const urlArr = window.location.href;
|
||||||
const hostUrl = urlArr.split("/");
|
const hostUrl = urlArr.split("/");
|
||||||
const callBack = hostUrl[0] + "//" + hostUrl[2] + "/";
|
const callBack = hostUrl[0] + "//" + hostUrl[2] + "/";
|
||||||
|
|
@ -1122,6 +1132,7 @@
|
||||||
url:'/pages/order/index'
|
url:'/pages/order/index'
|
||||||
})
|
})
|
||||||
} else {
|
} else {
|
||||||
|
uni.hideLoading();
|
||||||
uni.showToast({
|
uni.showToast({
|
||||||
title: rea.msg,
|
title: rea.msg,
|
||||||
icon: 'none'
|
icon: 'none'
|
||||||
|
|
@ -1142,10 +1153,13 @@
|
||||||
console.log(rea)
|
console.log(rea)
|
||||||
that.showpay = false
|
that.showpay = false
|
||||||
if (rea.code == 0) {
|
if (rea.code == 0) {
|
||||||
|
uni.hideLoading();
|
||||||
that.isCheckPay(rea.code, 'wxpay', JSON.stringify(rea.data));
|
that.isCheckPay(rea.code, 'wxpay', JSON.stringify(rea.data));
|
||||||
uni.switchTab({
|
uni.switchTab({
|
||||||
url:'/pages/order/index'
|
url:'/pages/order/index'
|
||||||
})
|
})
|
||||||
|
}else{
|
||||||
|
uni.hideLoading();
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
// #endif
|
// #endif
|
||||||
|
|
@ -1159,6 +1173,7 @@
|
||||||
}
|
}
|
||||||
that.$Request.post('/app/aliPay/payOrder', data).then(
|
that.$Request.post('/app/aliPay/payOrder', data).then(
|
||||||
rea => {
|
rea => {
|
||||||
|
uni.hideLoading();
|
||||||
const div = document.createElement('div')
|
const div = document.createElement('div')
|
||||||
div.innerHTML = rea.data //此处form就是后台返回接收到的数据
|
div.innerHTML = rea.data //此处form就是后台返回接收到的数据
|
||||||
document.body.appendChild(div)
|
document.body.appendChild(div)
|
||||||
|
|
@ -1177,6 +1192,7 @@
|
||||||
}
|
}
|
||||||
that.$Request.post('/app/aliPay/payOrder', data).then(
|
that.$Request.post('/app/aliPay/payOrder', data).then(
|
||||||
rea => {
|
rea => {
|
||||||
|
uni.hideLoading();
|
||||||
that.setPayment('alipay', rea.data);
|
that.setPayment('alipay', rea.data);
|
||||||
uni.switchTab({
|
uni.switchTab({
|
||||||
url:'/pages/order/index'
|
url:'/pages/order/index'
|
||||||
|
|
@ -1185,6 +1201,7 @@
|
||||||
// #endif
|
// #endif
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
|
|
||||||
//支付选择
|
//支付选择
|
||||||
selectWay: function(item) {
|
selectWay: function(item) {
|
||||||
this.openWay = item.id;
|
this.openWay = item.id;
|
||||||
|
|
|
||||||
|
|
@ -963,7 +963,7 @@
|
||||||
{
|
{
|
||||||
"path": "order/payModify",
|
"path": "order/payModify",
|
||||||
"style": {
|
"style": {
|
||||||
"navigationBarTitleText": "修改订单",
|
"navigationBarTitleText": "订单",
|
||||||
"navigationStyle": "custom",
|
"navigationStyle": "custom",
|
||||||
"app-plus": {
|
"app-plus": {
|
||||||
"titleNView": false
|
"titleNView": false
|
||||||
|
|
|
||||||
|
|
@ -64,7 +64,7 @@
|
||||||
</view>
|
</view>
|
||||||
<view class="item-view-bottom">
|
<view class="item-view-bottom">
|
||||||
<view class="item-view-xiangmu">
|
<view class="item-view-xiangmu">
|
||||||
<span>已售</span><span>{{item.sales}}w+ <!-- | 好评{{item.esteemRate}}% --></span>
|
<span>已售</span><span>{{item.sales}} <!-- | 好评{{item.esteemRate}}% --></span>
|
||||||
</view>
|
</view>
|
||||||
<view class="item-view-bottom-btn">
|
<view class="item-view-bottom-btn">
|
||||||
查看
|
查看
|
||||||
|
|
|
||||||
|
|
@ -28,15 +28,20 @@
|
||||||
</view>
|
</view>
|
||||||
<!-- <view class="item-view-xiangmu">
|
<!-- <view class="item-view-xiangmu">
|
||||||
<span class="xiaoer item-view-biao">{{item.classifyName}}</span>
|
<span class="xiaoer item-view-biao">{{item.classifyName}}</span>
|
||||||
<span>已售{{item.sales}}w+ | 好评{{item.esteemRate}}%</span>
|
<span>已售{{item.sales}} | 好评{{item.esteemRate}}%</span>
|
||||||
</view> -->
|
</view> -->
|
||||||
|
|
||||||
<view class="item-view-bottom">
|
<view class="item-view-bottom">
|
||||||
<view class="item-view-bottom-qian">
|
<view class="item-view-bottom-qian">
|
||||||
<span>¥</span>
|
<span>¥</span>
|
||||||
<span>{{item.price}}</span>
|
<span>{{item.price}}</span>
|
||||||
<span>/{{item.serviceCount?item.serviceCount:''}}{{item.type=='104'?'套':item.type=='105'||item.type=='106'?'次':'元'}}</span>
|
<span v-if="item.type!='104'">/{{item.serviceCount?item.serviceCount:''}}
|
||||||
<span>¥{{item.oldPrice}}/{{item.serviceCount?item.serviceCount:''}}{{item.type=='104'?'套':item.type=='105'||item.type=='106'?'次':'元'}}</span>
|
{{item.type=='105'||item.type=='106'?'次':'元'}}
|
||||||
|
</span>
|
||||||
|
<span v-if="item.type=='104'">/套
|
||||||
|
</span>
|
||||||
|
<span v-if="item.type!='104'">¥{{item.oldPrice}}/{{item.serviceCount?item.serviceCount:''}}{{item.type=='105'||item.type=='106'?'次':'元'}}</span>
|
||||||
|
<span v-if="item.type=='104'">¥{{item.oldPrice}}/套</span>
|
||||||
</view>
|
</view>
|
||||||
|
|
||||||
</view>
|
</view>
|
||||||
|
|
@ -45,7 +50,7 @@
|
||||||
</view>
|
</view>
|
||||||
<view class="item-view-bottom">
|
<view class="item-view-bottom">
|
||||||
<view class="item-view-xiangmu">
|
<view class="item-view-xiangmu">
|
||||||
<span>已售</span><span>{{item.sales}}w+</span><!-- | 好评{{item.esteemRate}}% -->
|
<span>已售</span><span>{{item.sales}}</span><!-- | 好评{{item.esteemRate}}% -->
|
||||||
</view>
|
</view>
|
||||||
<view class="item-view-bottom-btn">
|
<view class="item-view-bottom-btn">
|
||||||
查看
|
查看
|
||||||
|
|
|
||||||
|
|
@ -64,7 +64,7 @@
|
||||||
</view>
|
</view>
|
||||||
<view class="item-view-bottom">
|
<view class="item-view-bottom">
|
||||||
<view class="item-view-xiangmu">
|
<view class="item-view-xiangmu">
|
||||||
<span>已售</span><span>{{item.sales}}w+ <!-- | 好评{{item.esteemRate}}% --></span>
|
<span>已售</span><span>{{item.sales}} <!-- | 好评{{item.esteemRate}}% --></span>
|
||||||
</view>
|
</view>
|
||||||
<view class="item-view-bottom-btn">
|
<view class="item-view-bottom-btn">
|
||||||
查看
|
查看
|
||||||
|
|
|
||||||
|
|
@ -44,7 +44,7 @@
|
||||||
|
|
||||||
<view class="item-view-bottom">
|
<view class="item-view-bottom">
|
||||||
<view class="item-view-xiangmu" style="align-items: flex-end; ">
|
<view class="item-view-xiangmu" style="align-items: flex-end; ">
|
||||||
<span style="font-size: 26rpx; color: #999; margin-right: 8rpx;">已售</span><span style="font-size: 26rpx; color: #333;">{{item.sales}}w+ <!-- | 好评{{item.esteemRate}}% --></span>
|
<span style="font-size: 26rpx; color: #999; margin-right: 8rpx;">已售</span><span style="font-size: 26rpx; color: #333;">{{item.sales}} <!-- | 好评{{item.esteemRate}}% --></span>
|
||||||
</view>
|
</view>
|
||||||
<view class="item-view-bottom-btn">
|
<view class="item-view-bottom-btn">
|
||||||
查看
|
查看
|
||||||
|
|
|
||||||
|
|
@ -17,7 +17,7 @@
|
||||||
</view>
|
</view>
|
||||||
<!-- <view class="item-view-xiangmu">
|
<!-- <view class="item-view-xiangmu">
|
||||||
<span class="xiaoer item-view-biao">{{item.classifyName}}</span>
|
<span class="xiaoer item-view-biao">{{item.classifyName}}</span>
|
||||||
<span>已售{{item.sales}}w+ | 好评{{item.esteemRate}}%</span>
|
<span>已售{{item.sales}} | 好评{{item.esteemRate}}%</span>
|
||||||
</view> -->
|
</view> -->
|
||||||
<view class="item-view-jianjie">
|
<view class="item-view-jianjie">
|
||||||
{{item.content}}
|
{{item.content}}
|
||||||
|
|
|
||||||
|
|
@ -37,7 +37,7 @@
|
||||||
</view>
|
</view>
|
||||||
<view class="item-view-bottom">
|
<view class="item-view-bottom">
|
||||||
<view class="item-view-xiangmu">
|
<view class="item-view-xiangmu">
|
||||||
<span>已售</span><span>{{item.sales}}w+</span><!-- | 好评{{item.esteemRate}}% -->
|
<span>已售</span><span>{{item.sales}}</span><!-- | 好评{{item.esteemRate}}% -->
|
||||||
</view>
|
</view>
|
||||||
<view class="item-view-bottom-btn">
|
<view class="item-view-bottom-btn">
|
||||||
查看
|
查看
|
||||||
|
|
|
||||||
|
|
@ -41,7 +41,7 @@
|
||||||
</view>-->
|
</view>-->
|
||||||
<!--<view class="item-view-bottom">
|
<!--<view class="item-view-bottom">
|
||||||
<view class="item-view-xiangmu">
|
<view class="item-view-xiangmu">
|
||||||
<span>已售</span><span>{{item.sales}}w+</span> | 好评{{item.esteemRate}}%
|
<span>已售</span><span>{{item.sales}}</span> | 好评{{item.esteemRate}}%
|
||||||
</view>
|
</view>
|
||||||
<view class="item-view-bottom-btn">
|
<view class="item-view-bottom-btn">
|
||||||
查看
|
查看
|
||||||
|
|
|
||||||
|
|
@ -64,7 +64,7 @@
|
||||||
</view>
|
</view>
|
||||||
<view class="item-view-bottom">
|
<view class="item-view-bottom">
|
||||||
<view class="item-view-xiangmu">
|
<view class="item-view-xiangmu">
|
||||||
<span>已售</span><span>{{item.sales}}w+ <!-- | 好评{{item.esteemRate}}% --></span>
|
<span>已售</span><span>{{item.sales}} <!-- | 好评{{item.esteemRate}}% --></span>
|
||||||
</view>
|
</view>
|
||||||
<view class="item-view-bottom-btn">
|
<view class="item-view-bottom-btn">
|
||||||
查看
|
查看
|
||||||
|
|
|
||||||
|
|
@ -66,19 +66,22 @@
|
||||||
@click="cancelOrder(item)">
|
@click="cancelOrder(item)">
|
||||||
取消订单
|
取消订单
|
||||||
</u-button>
|
</u-button>
|
||||||
<u-button
|
<!-- <u-button
|
||||||
v-if="item.btnShow == 'true'" :custom-style="customStyle1" shape="circle" :plain="true"
|
v-if="item.btnShow == 'true'" :custom-style="customStyle1" shape="circle" :plain="true"
|
||||||
@click="goNav('/my/order/payModifyDzhifu?ordersId='+item.ordersId,item,'修改')" class="btns xianshi">
|
@click="goNav('/my/order/payModifyDzhifu?ordersId='+item.ordersId,item,'修改')" class="btns xianshi">
|
||||||
修改订单
|
修改订单
|
||||||
</u-button>
|
</u-button> -->
|
||||||
<u-button :custom-style="customStyle1" shape="circle" :plain="true"
|
<!-- 升级去支付 -->
|
||||||
@click="goNav('/my/order/payding?ordersId='+item.ordersId,item)" class="btns">
|
<u-button v-if="item.isSupplement=='2'" :custom-style="customStyle1" shape="circle" :plain="true"
|
||||||
|
@click="goNav('/my/order/payShengji?ordersId='+item.ordersId,item)" class="btns">
|
||||||
去支付
|
去支付
|
||||||
</u-button>
|
</u-button>
|
||||||
<u-button :custom-style="customStyle1" shape="circle" :plain="true"
|
<!-- 不是升级 去支付 -->
|
||||||
@click="goNav('/my/order/pay?ordersId='+item.ordersId)" class="btnsH xianshi">
|
<u-button v-if="item.isSupplement!='2'" :custom-style="customStyle1" shape="circle" :plain="true"
|
||||||
联系客服
|
@click="goNav('/my/order/pay?ordersId='+item.ordersId,item)" class="btns">
|
||||||
|
去支付
|
||||||
</u-button>
|
</u-button>
|
||||||
|
|
||||||
</view>
|
</view>
|
||||||
<view class="showBtn" v-if="item.status ==2">
|
<view class="showBtn" v-if="item.status ==2">
|
||||||
<u-button
|
<u-button
|
||||||
|
|
@ -234,7 +237,7 @@
|
||||||
取消订单
|
取消订单
|
||||||
</u-button>
|
</u-button>
|
||||||
<u-button v-if="item.packageType=='104'||item.packageType=='105'||item.packageType=='106'" :custom-style="customStyle1" shape="circle" :plain="true"
|
<u-button v-if="item.packageType=='104'||item.packageType=='105'||item.packageType=='106'" :custom-style="customStyle1" shape="circle" :plain="true"
|
||||||
@click="taocanDaiBd('/my/order/payModifyTcMyDaiB?ordersId='+item.ordersId,item)" class="btns xianshi">
|
@click="goNav('/my/order/payModifyDd?ordersId='+item.ordersId,item)" class="btns xianshi">
|
||||||
立即预约
|
立即预约
|
||||||
</u-button>
|
</u-button>
|
||||||
<u-button v-else :custom-style="customStyle1" shape="circle" :plain="true"
|
<u-button v-else :custom-style="customStyle1" shape="circle" :plain="true"
|
||||||
|
|
@ -455,7 +458,7 @@
|
||||||
methods: {
|
methods: {
|
||||||
taocanDaiBd(url,item){
|
taocanDaiBd(url,item){
|
||||||
this.$queue.setData('getJishi','');
|
this.$queue.setData('getJishi','');
|
||||||
this.$queue.setData('mainData',item);
|
this.$queue.setData('xiangmu',item);
|
||||||
uni.navigateTo({
|
uni.navigateTo({
|
||||||
url:url
|
url:url
|
||||||
})
|
})
|
||||||
|
|
@ -467,14 +470,14 @@
|
||||||
},
|
},
|
||||||
goNav(url,item,text) {
|
goNav(url,item,text) {
|
||||||
this.$queue.setData('xiangmu',item);
|
this.$queue.setData('xiangmu',item);
|
||||||
if(item.isSupplement=='2'&&item.status==6){//如果有订单有升级 那就去升级订单详情
|
if(item.isSupplement=='2'){//如果有订单有升级 那就去升级订单详情
|
||||||
if(item.addNum||item.isSupplement=='2'){
|
if(item.addNum||item.isSupplement=='2'){
|
||||||
uni.navigateTo({
|
uni.navigateTo({
|
||||||
url:'/my/order/payShengji?ordersId='+item.ordersId
|
url:'/my/order/payShengji?ordersId='+item.ordersId
|
||||||
})
|
})
|
||||||
}
|
}
|
||||||
|
|
||||||
}else if(item.addNum&&item.status=='6'){
|
}else if(item.addNum&&item.isSupplement!='2'){
|
||||||
uni.navigateTo({
|
uni.navigateTo({
|
||||||
url:'/my/order/payJaZ?ordersId='+item.ordersId
|
url:'/my/order/payJaZ?ordersId='+item.ordersId
|
||||||
})
|
})
|
||||||
|
|
|
||||||
|
|
@ -36,7 +36,7 @@
|
||||||
</view>
|
</view>
|
||||||
<view class="item-view-bottom">
|
<view class="item-view-bottom">
|
||||||
<view class="item-view-xiangmu">
|
<view class="item-view-xiangmu">
|
||||||
<span>已售</span><span>{{item.sales}}w+</span>
|
<span>已售</span><span>{{item.sales}}</span>
|
||||||
</view>
|
</view>
|
||||||
<!--<view class="item-view-bottom-btn">
|
<!--<view class="item-view-bottom-btn">
|
||||||
预约
|
预约
|
||||||
|
|
|
||||||
|
|
@ -517,11 +517,6 @@
|
||||||
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