修改技师项目 下单

This commit is contained in:
Mr.jiang 2024-06-26 14:26:33 +08:00
parent f5ac5466a4
commit 41fbd2c76d
3 changed files with 17 additions and 13 deletions

View File

@ -386,8 +386,6 @@
}); });
}, },
liliaoshi(){ liliaoshi(){
// this.$queue.setData('taocanDd', '2');
uni.setStorage({ uni.setStorage({
key: 'taocanDd', key: 'taocanDd',
data: '支付', data: '支付',

View File

@ -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({

View File

@ -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
}) })
} }