修改技师项目 下单
This commit is contained in:
parent
f5ac5466a4
commit
41fbd2c76d
|
@ -386,8 +386,6 @@
|
||||||
});
|
});
|
||||||
},
|
},
|
||||||
liliaoshi(){
|
liliaoshi(){
|
||||||
// this.$queue.setData('taocanDd', '2');
|
|
||||||
|
|
||||||
uni.setStorage({
|
uni.setStorage({
|
||||||
key: 'taocanDd',
|
key: 'taocanDd',
|
||||||
data: '支付',
|
data: '支付',
|
||||||
|
|
|
@ -315,22 +315,22 @@
|
||||||
},
|
},
|
||||||
methods: {
|
methods: {
|
||||||
// 获取明天的日期字符串
|
// 获取明天的日期字符串
|
||||||
getTomorrowDate() {
|
getTomorrowDate() {
|
||||||
const now = new Date();
|
const now = new Date();
|
||||||
const tomorrow = new Date(now.getFullYear(), now.getMonth(), now.getDate() + 1);
|
const tomorrow = new Date(now.getFullYear(), now.getMonth(), now.getDate() + 1);
|
||||||
return this.formatDate(tomorrow);
|
return this.formatDate(tomorrow);
|
||||||
},
|
},
|
||||||
// 将日期对象格式化为YYYY-MM-DD字符串
|
// 将日期对象格式化为YYYY-MM-DD字符串
|
||||||
formatDate(date) {
|
formatDate(date) {
|
||||||
const year = date.getFullYear();
|
const year = date.getFullYear();
|
||||||
const month = this.padStart(date.getMonth() + 1);
|
const month = this.padStart(date.getMonth() + 1);
|
||||||
const day = this.padStart(date.getDate());
|
const day = this.padStart(date.getDate());
|
||||||
return `${year}-${month}-${day}`;
|
return `${year}-${month}-${day}`;
|
||||||
},
|
},
|
||||||
// 补齐日期字符串,确保月份和日期为两位数
|
// 补齐日期字符串,确保月份和日期为两位数
|
||||||
padStart(num) {
|
padStart(num) {
|
||||||
return num < 10 ? '0' + num : num;
|
return num < 10 ? '0' + num : num;
|
||||||
},
|
},
|
||||||
openpay() {//验证
|
openpay() {//验证
|
||||||
if(this.single=='2024-06-19'){
|
if(this.single=='2024-06-19'){
|
||||||
uni.showToast({
|
uni.showToast({
|
||||||
|
|
|
@ -117,7 +117,7 @@
|
||||||
</u-tabs>
|
</u-tabs>
|
||||||
<view v-if="fwIndex == 0&&XCXIsSelect !='否'" class="tab ">
|
<view v-if="fwIndex == 0&&XCXIsSelect !='否'" class="tab ">
|
||||||
<view class="xiangmu" v-for="(item,index) in artificerlist"
|
<view class="xiangmu" v-for="(item,index) in artificerlist"
|
||||||
:key="index" @click="goNav(item.massageTypeId,classifyId)">
|
:key="index" @click="goNav(item)">
|
||||||
<image class="xiangmu-img" :src="item.massageImg" mode=""></image>
|
<image class="xiangmu-img" :src="item.massageImg" mode=""></image>
|
||||||
<view class="xiangmu-cont">
|
<view class="xiangmu-cont">
|
||||||
<view class="xiangmu-cont-top">
|
<view class="xiangmu-cont-top">
|
||||||
|
@ -539,9 +539,15 @@
|
||||||
icon: 'none'
|
icon: 'none'
|
||||||
})
|
})
|
||||||
} else {
|
} else {
|
||||||
|
var data={
|
||||||
|
massageTypeId:massageTypeId,
|
||||||
|
tripWay:this.order.tripWay,
|
||||||
|
artificerId:this.order.artificerId,
|
||||||
|
artificerName:this.order.artificerName
|
||||||
|
}
|
||||||
|
this.$queue.setData('getJishi',data)
|
||||||
uni.navigateTo({
|
uni.navigateTo({
|
||||||
url: "/pages/index/order/orderDet?massageTypeId=" + massageTypeId + '&artificerId=' + this
|
url: "/my/order/payModify"
|
||||||
.artificerId + '&tripWay=' + this.tripWay + '&classifyId=' + this.classifyId
|
|
||||||
})
|
})
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue