调整页面,修改订单无法选择技师BUG

This commit is contained in:
曹磊 2024-09-03 17:11:26 +08:00
parent debd127c3a
commit 8363be8f88
5 changed files with 102 additions and 80 deletions

View File

@ -62,7 +62,8 @@
address: '',
isfa: '',
noneData:'地址',
orderXm:[]
orderXm:[],
pageName:'',
}
},
onShow() {
@ -73,7 +74,8 @@
},
onLoad(e) {
this.isfa = e.id
this.pageName = e.pageName
console.log(this.pageName);
let userId = this.$queue.getData('userId');
if (userId) {
@ -90,7 +92,8 @@
this.updateaddress()
}else if (this.isfa == 2) {
uni.reLaunch({
url:'/my/order/payModify'
// url:'/my/order/payModify',
url:'/my/order/'+this.pageName,
})
}else if (this.isfa == '104') {
uni.reLaunch({

View File

@ -31,7 +31,7 @@
<view style="width: 100%;">
<view class="flex justify-between margin-tb-sm" style="color: #999999;">
<view style="justify-content: space-between;">
{{orderXm.duration}}分钟
<text class="title-font">时长</text><text class="value-font">{{orderXm.duration}}分钟</text>
</view>
</view>
@ -39,11 +39,10 @@
<view class="money-pay-zhen" v-if="orderXm.userPackageDetailId==null">
<text class="title-font">价格</text>
<span></span>
<span>
{{technicianRate}}
</span>
<span>{{technicianRate}}</span>
</view>
<view class="money-pay-zhen" v-else>
<text class="title-font">价格</text>
<span></span>
<span>{{orderXm.priceMarkup}}</span>
</view>
@ -124,14 +123,14 @@
</view> -->
</view>
<view class="padding margin-top-sm header-view">
<view class="fuwu-time" @click="liliaoshi">
<view class="fuwu-title" >
<span>技师</span>
<view class="jusitify-line" @click="liliaoshi">
<view class="title-font" >
<span v-if="jishiName">{{jishiName.technicianTypeName}}</span>
<span>技师</span>
</view>
<view class="liliao-bottom" style="margin-right: 6px;">
<span v-if="jishiName">{{jishiName.artificerName?jishiName.artificerName:jishiName.artificer.artificerName}}</span>
<span v-else>选择不同技师价格可能不一样哦~</span>
<view>
<span class="line-word-r value-font" v-if="jishiName">{{jishiName.artificerName?jishiName.artificerName:jishiName.artificer.artificerName}}</span>
<span class="line-word-r value-font" v-else>选择不同技师价格可能不一样哦~</span>
<span class="view-more"></span>
</view>
</view>
@ -145,9 +144,9 @@
<span v-else>选择不同技师价格可能不一样哦~</span>
</view>
</view>-->
<view class="liliao">
<view class="fuwu-title">
<span>平台优惠劵</span>
<view class="jusitify-line">
<view class="title-font">
<span>优惠券</span>
</view>
<view class="header-bottom-money-zhen">
<view v-if="orderXm.couponMoney" class="" style="margin-right: 5px;">
@ -157,26 +156,24 @@
<!-- <span class="view-more"></span> -->
</view>
</view>
<view class="fuwu-time">
<view class="fuwu-title">
<view class="jusitify-line">
<view class="title-font">
服务时间
</view>
<!-- <view class="fuwu-time-view" @change="changeLog">
<uni-datetime-picker :hide-second='true' v-model="single" type="datetime">{{single==''?order.serveTime:single}}</uni-datetime-picker>
<image style="margin-left: 5px;" class="fuwu-img" src="../../static/images/my/jiantou.png" mode=""></image>
</view> -->
<view class="flex align-center justify-between"
style="height: 100rpx;line-height: 100rpx;padding: 0rpx 10rpx;">
<view class="flex align-center justify-between value-font">
<view class="flex justify-between margin-tb-sm" @click="openData()">
<view v-if="startTime">{{startTime}}</view>
<view class="tetx-sm" v-else>请选择预约时间<span class="view-more"></span></view>
<!---<u-icon name="arrow-right" color="#999999"></u-icon>-->
<view class="value-font" v-else>请选择预约时间<span class="view-more"></span></view>
</view>
</view>
</view>
</view>
<view class="header-view header-padd" style="margin-bottom: 100px;">
<view class="d-title">
<view class="d-title title-font">
<span>给技师捎句话</span>
<!-- <span style="color: rgb(9, 111, 75);" @click="kuaijie">快捷输入</span> -->
</view>
@ -429,6 +426,15 @@
this.technicianRate=Math.ceil(this.orderXm.price+(this.orderXm.price*(this.orderXm.technicianRate/100)))
}
console.log("orderXm",this.orderXm)
if(this.orderXm.ordersMassageList[0].userPackageDetail !=null){
this.orderXm.classifyId = this.orderXm.ordersMassageList[0].userPackageDetail.classifyId
this.orderXm.city = this.orderXm.ordersMassageList[0].userPackageDetail.city
}else{
this.orderXm.classifyId = this.orderXm.ordersMassageList[0].massageType.classifyId
this.orderXm.city = this.orderXm.ordersMassageList[0].massageType.city
}
// this.getOrder()
},
@ -813,14 +819,15 @@
let massageTypeId = this.orderXm.massageTypeId?this.orderXm.massageTypeId:this.orderXm.ordersMassageList[0].massageType.massageTypeId;
let longitude = this.longitude;
let latitude = this.latitude;
let classifyId= this.orderXm.classifyId?this.orderXm.classifyId:this.orderXm.ordersMassageList[0].massageType.classifyId;
let city=this.orderXm.city?this.orderXm.city:this.orderXm.ordersMassageList[0].massageType.city;
let classifyId= this.orderXm.classifyId;
let city=this.orderXm.city;
let technicianType=this.orderXm.technicianType
uni.setStorage({
key: 'taocanDd',
data: '修改',
success: function () {
uni.navigateTo({
url: '/pages/therapist/therapistDingdan?massageTypeId='+massageTypeId+'&latitude='+latitude+'&longitude='+longitude+'&classifyId='+classifyId+'&city='+city
url: '/pages/therapist/therapistDingdan?massageTypeId='+massageTypeId+'&latitude='+latitude+'&longitude='+longitude+'&classifyId='+classifyId+'&city='+city+'&technicianType='+technicianType
})
}
});
@ -891,7 +898,7 @@
});
} else {
uni.navigateTo({
url: '../address/address?id=' + 2
url: '../address/address?id=' + 2 +'&pageName=payModifyDzhifu'
})
}
@ -1516,7 +1523,11 @@
justify-content: space-between;
}
.title-font{
font-size:30rpx;
font-size: 30rpx;
color: #666666;
}
.value-font{
font-size: 30rpx;
color: #333333;
}
.head-bottom{
@ -1561,9 +1572,9 @@
}
.pay-title{
font-weight: bold;
font-size: 31rpx;
font-size: 32rpx;
color: #333333;
margin-bottom: 8px;
margin-bottom: 12px;
}
.view-more{
display:inline-block;
@ -1585,9 +1596,9 @@
}
.header-bottom-money-zhen span{
color: #F95900 !important;
font-weight: bold !important;
font-size: 26rpx !important;
color: #FF6000 !important;
font-size:32rpx !important;
font-weight: bold;
}
.header-bottom-money-zhen{
display: flex;
@ -1758,6 +1769,12 @@
align-items: center;
justify-content: space-between;
}
.jusitify-line{
height: 78rpx;
padding: 20rpx 0;
display: flex;
justify-content: space-between;
}
.adders-view image{
margin-top: 5px;
}
@ -1868,8 +1885,6 @@
}
.d-title{
font-weight: bold;
font-size: 32rpx;
color: #333333;
display: flex;
flex-direction: row;
justify-content: space-between;

View File

@ -165,7 +165,9 @@
limit: pageSize,
isGoods: '1',
classifyId: this.classifyId,
artificerName: this.searchValue
artificerName: this.searchValue,
by: 1,
status:-1
}
this.$Request.get('/app/artificer/selectArtificerList', params).then(res => {
this.$refs.paging.complete(res.data.list);

View File

@ -326,6 +326,7 @@
longitude: '',
imgArr: [],
status: "",
acceptOrders: '',
XCXIsSelect: '否',
hyCheck: '否',
imageHeight: '358',
@ -558,6 +559,7 @@
if (res.code == 0) {
this.order = res.data
this.status = res.data.status
this.acceptOrders = res.data.acceptOrders
this.tripWay = res.data.tripWay;
this.artificerClassifyList=res.data.artificerClassifyList
console.log("artificerClassifyList",this.artificerClassifyList)