This commit is contained in:
Mr.jiang 2024-06-30 19:11:56 +08:00
parent e00f688ee8
commit 5b0c1a6166
22 changed files with 9628 additions and 615 deletions

View File

@ -97,6 +97,14 @@
uni.navigateTo({//
url:'/my/order/payModifyDzhifu'
})
}else if(this.content=='疗程'){
uni.navigateTo({//
url:'/my/order/payModifyLiaoCi'
})
}else if(this.content=='次卡'){
uni.navigateTo({//
url:'/my/order/payModifyCi'
})
}
},

View File

@ -207,7 +207,7 @@
<view style="color: #333;font-size: 26rpx;">合计</view>
<view class="" style="color: #333;">
<text style="font-size: 35rpx;font-weight: bold;">
{{order.oldMassageMoney==null?order.payMoney:(order.payMoney+order.oldMassageMoney)}}
{{order.oldMassageMoney==null?order.payMoney:((order.payMoney+order.oldMassageMoney).toFixed(2))}}
</text>
</view>
</view>
@ -282,14 +282,18 @@
<view v-if="order.status !=6" class="flex tabber padding-top-sm padding-bottom-sm align-center">
<u-button @click="cancelOrder(order)" shape="circle" :custom-style="customStyle" :hair-line="false"
v-if="order.status != 3 && order.status != 4 && order.status != 5">
v-if="order.status != 3 &&
order.status != 4 &&
order.status != 5&&
order.status != 10"
>
取消订单
</u-button>
<u-button @click="openpay(order)" shape="circle" :custom-style="customStyle2" :hair-line="false"
v-if="order.status == 1"
class="dingshi">立即支付
</u-button>
<u-button v-if="order.status == 5|| order.status == 3" :custom-style="customStyle2"
<u-button v-if="order.status == 6|| order.status == 3" :custom-style="customStyle2"
shape="circle" :plain="true"
@click="goNav('/my/order/complain?ordersId='+ordersId + '&byUserId=' + order.artificer.userId + '&byuserName=' + order.artificer.artificerName)"
class="dingshi">
@ -307,7 +311,9 @@
class="dingshi">
立即预约
</u-button>
<u-button v-if="order.btnShow == 'true'&&order.status==2||order.status==6||order.status==7||order.status==8||order.status == 9&&order.refusalContent==null" :custom-style="customStyle2"
<u-button
v-if="order.btnShow == 'true'&&order.oldOrdersId==null&&(order.status==2||order.status==6||order.status==7||order.status==8)&&!order.refusalContent"
:custom-style="customStyle2"
shape="circle" :plain="true"
@click="goNav('/my/order/payModifyDzhifu?ordersId='+ordersId,order,'修改')"
class="dingshi">
@ -328,12 +334,14 @@
<u-button shape="circle" :plain="true" @click="goChat"
class="btns">联系客服</u-button>
<u-button
v-if="order.status == 6"
shape="circle" :plain="true"
@click="toggle('center',order)"
class="btns">
提前结束
</u-button>
<u-button
v-if="order.btnShow == 'true'&&order.oldOrdersId==null&&(order.status==2||order.status==6||order.status==7||order.status==8)&&!order.refusalContent"
shape="circle" :plain="true"
@click="goNav('/my/order/payModifyDzhifu?ordersId='+ordersId,order)"
class="btns">
@ -349,17 +357,17 @@
充值
</u-button>
<u-button
v-if="order.status == 6"
v-if="order.addNum ==null && order.status == 6"
shape="circle" :plain="true"
@tap="saveJZ(order.ordersMassageList[0].massageType.massageTypeId)"
class="btns">
加钟
</u-button>
<u-button v-if="order.addNum==null && order.status == 6"
<u-button v-if="order.oldOrdersId==null && order.status == 6&&order.addNum==null"
shape="circle" :plain="true"
@tap="saveJZS(order.artificerId)"
class="btns">
升级项目
服务升级
</u-button>
</view>
</view>
@ -690,7 +698,7 @@
},
goOrderJ(item,text) {//
let that = this
let payMoney = that.isVip ? item.memberPrice : item.price;
let payMoney = item.price;
that.jiazhong=text
let data = {
parentId: that.order.ordersId,
@ -710,7 +718,7 @@
that.showorder = false
if (res.code == 0) {
that.tordersId = res.data.ordersId;
that.tpayMoney = payMoney;
that.tpayMoney = res.data.payMoney;
that.showpay = true;
that.paySel = 1;
} else {

View File

@ -386,7 +386,7 @@
<view v-else class="flex tabber padding-top-sm padding-bottom-sm align-center" :style="{'height':btnShow?'100px':'60px'}">
<view class="showBtn-mian">
<view class="showBtn">
<view class="gengduo" @click.stop="gengBtn">更多</view>
<!-- <view class="gengduo" @click.stop="gengBtn">更多</view> -->
<u-button shape="circle" :plain="true" @click="goChat"
class="btns">联系客服</u-button>
<u-button
@ -395,34 +395,39 @@
class="btns">
提前结束
</u-button>
<u-button
<u-button :custom-style="customStyle2"
shape="circle" :plain="true"
@click="goNav('/my/order/payModifyDzhifu?ordersId='+ordersId,order)"
class="btns">
修改订单
@click="goNav('/my/order/complain?ordersId='+ordersId + '&byUserId=' + order.artificer.userId + '&byuserName=' + order.artificer.artificerName)"
class="dingshi">
去投诉
</u-button>
</view>
<view class="showBtn-view" v-show="btnShow">
<u-button
v-if="order.status == 6"
shape="circle" :plain="true"
@click="goNav('/my/wallet/index?artificerId='+order.artificerId)"
class="btns">
充值
</u-button>
<u-button
</view>
<view class="showBtn-view" v-show="btnShow">
<!-- <u-button
shape="circle" :plain="true"
@click="goNav('/my/wallet/index?artificerId='+order.artificerId)"
class="btns">
充值
</u-button> -->
<!-- <u-button
v-if="order.addNum==null && order.status == 6"
shape="circle" :plain="true"
@tap="saveJZ(order.ordersMassageList[0].massageType.massageTypeId)"
class="btns">
加钟
</u-button>
<u-button v-if="order.oldOrdersId==null && order.status == 6"
</u-button> -->
<!-- <u-button v-if="order.oldOrdersId==null && order.status == 6"
shape="circle" :plain="true"
@tap="saveJZS(order.artificerId)"
class="btns">
升级项目
</u-button>
</u-button> -->
</view>
</view>

2009
my/order/payModifyCi.vue Normal file

File diff suppressed because it is too large Load Diff

2009
my/order/payModifyLiao.vue Normal file

File diff suppressed because it is too large Load Diff

View File

@ -6,7 +6,7 @@
<view class="pay-title" style="">服务项目</view>
<view class="flex">
<view class="" style="width: 160upx;height: 160upx;">
<image :src="orderXm.massageImg"
<image :src="orderXm.packageImg"
style="width: 100%;height: 100%;border-radius: 19upx;"></image>
</view>
<view class="head-bottom margin-left-sm">
@ -34,6 +34,8 @@
</view>
</view>
<view class="detail-foot">
<view class="detail-foot-nav">
<span class="detail-foot-nav-text">套餐详情</span>
@ -45,19 +47,26 @@
<span style="margin-right: 5px;">{{item.title}}</span>
<span style="display: none;">详情</span>
</view>
<view class="header-bottom-money" style="margin: 7px 0px;">
<view class="header-bottom-money-zhen">
<span></span>
<span style="font-size: 38rpx;font-weight: bold">{{item.price}}</span>
<span>/</span>
<span class="header-bottom-money-jia" style="margin-left: 20px; color: #666;">{{item.oldPrice}}</span>
<span style="color: #019c88;">服务时长:{{item.duration}}分钟</span>
<view class="detail-view">
<image class="detail-view-img" :src="item.massageImg" mode=""></image>
<view class="detail-view-mina">
<view class="header-bottom-money" style="margin: 7px 0px; justify-content: space-between ">
<view class="header-bottom-money-zhen">
<span></span>
<span>{{item.price}}</span>
</view>
<view class="header-bottom-money-jia" style="margin-left: 20px; ">
{{item.oldPrice}}
</view>
<view style="color: #019c88;">服务时长:{{item.duration}}分钟</view>
</view>
<view class="tese">
<span>项目特色: </span>
<span>{{item.jianjie}}</span>
</view>
</view>
</view>
<view class="tese">
<span>项目特色: </span>
<span>{{item.jianjie}}</span>
</view>
<view class="detail-foot-title">
服务项目{{index+1}}
</view>
@ -233,7 +242,7 @@
couponDataList:'',
orderXm:[],
detailData:[],
number:1
number:1,
}
},
onLoad(e) {
@ -242,7 +251,8 @@
} else {
this.msTimeDate = 60;
}
this.orderXm=this.$queue.getData('mainData')
this.orderXm=this.$queue.getData('mainData');
console.log("this.orderXm",this.orderXm)
this.detailData=this.$queue.getData('detailData');
var date = new Date();
var year = date.getFullYear();
@ -357,7 +367,7 @@
},
youhuijuan(){
uni.navigateTo({
url:'/my/hongbao/youhuijuanList?text='+'套餐'
url:'/my/hongbao/youhuijuanList?price='+this.orderXm.price+'&text='+'套餐'
})
},
openpay() {//
@ -1239,6 +1249,30 @@
</script>
<style lang="scss" scoped>
.header-bottom-money{
width: 100%;
display: flex;
flex-direction: row;
align-items: flex-end;
}
.detail-view-mina{
width: 68%;
display: flex;
flex-direction: column;
justify-content: space-around;
}
.detail-view-img{
width: 76px;
height: 76px;
border-radius: 9px;
}
.detail-view{
width: 100%;
display: flex;
flex-direction: row;
align-items: center;
justify-content: space-between;
}
.head-bottom{
width: 68%;
display: flex;

2002
my/order/payModifyTcMy.vue Normal file

File diff suppressed because it is too large Load Diff

View File

@ -254,7 +254,7 @@
</view>
<view class="flex justify-between jusitify-line">
<view class="line-word">升级价格</view>
<view class="line-word-r">{{order.sumMoney}}</view>
<view class="line-word-r">{{order.payMoney}}</view>
</view>
<view class="flex justify-between jusitify-line">
<view class="line-word">会员折扣</view>
@ -263,7 +263,7 @@
<view class="flex align-center margin-top-lg" style="justify-content: flex-end;">
<view style="color: #333;font-size: 26rpx;">小计</view>
<view class="" style="color: #333;"><text
style="font-size: 35rpx;font-weight: bold;">{{order.sumMoney}}</text></view>
style="font-size: 35rpx;font-weight: bold;">{{order.payMoney}}</text></view>
</view>
</view>
<view class="jusitify-line-end"></view>
@ -294,7 +294,7 @@
<view class="flex justify-between jusitify-line" v-if="order.oldOrdersId!=null">
<view class="line-word">升级费用</view>
<view class="" style="color: #333;">
<text style="font-size: 26rpx;font-weight: bold;">{{order.sumMoney}}</text></view>
<text style="font-size: 26rpx;font-weight: bold;">{{order.payMoney}}</text></view>
</view>
<view class="flex justify-between jusitify-line" style="justify-content: flex-end;">
<view class="line-word">合计</view>
@ -302,7 +302,7 @@
<text style="font-size: 35rpx;font-weight: bold;">
{{
(((order.oldMassagePrice*order.oldMassageNum)*(order.vipRate/100)*(1+order.technicianRate/100))
+order.taxiMoney-order.couponMoney+order.addMoney+order.sumMoney).toFixed(2)
+order.taxiMoney-order.couponMoney+order.addMoney+order.payMoney).toFixed(2)
}}
@ -394,34 +394,24 @@
提前结束
</u-button>
<u-button
v-if="order.addNum==null && order.status == 6"
shape="circle" :plain="true"
@tap="saveJZ(order.ordersMassageList[0].massageType.massageTypeId)"
class="btns">
加钟
</u-button>
<u-button
v-if="order.status == 6&&order.addNum!=null||order.oldOrdersId!=null"
shape="circle" :plain="true"
@click="goNav('/my/wallet/index?artificerId='+order.artificerId)"
class="btns">
充值
</u-button>
</view>
<view class="showBtn-view" v-show="btnShow">
<u-button
v-if="order.status == 6&&order.addNum==null||order.oldOrdersId==null"
shape="circle" :plain="true"
@click="goNav('/my/wallet/index?artificerId='+order.artificerId)"
class="btns">
充值
</u-button>
<u-button v-if="order.oldOrdersId==null && order.status == 6"
<u-button :custom-style="customStyle2"
shape="circle" :plain="true"
@tap="saveJZS(order.artificerId)"
class="btns">
升级项目
@click="goNav('/my/order/complain?ordersId='+ordersId + '&byUserId=' + order.artificer.userId + '&byuserName=' + order.artificer.artificerName)"
class="dingshi">
去投诉
</u-button>
</view>
</view>

View File

@ -86,7 +86,7 @@
<image :src="order.artificer.artificerImg" class="d-touxiang"></image>
<view class="margin-left-sm flex" style="width: 90%;justify-content: space-between;flex-direction: row;align-items: center;">
<view class="flex align-center" style="width: 80%;justify-content: space-between;">
<view class="d-title">{{order.artificer.artificerName}}1</view>
<view class="d-title">{{order.artificer.artificerName}}</view>
<!-- <image
v-if="order.status !=1 && order.status !=5 && order.status !=3 && order.status !=4 && order.status !=2"
src="../../static/img/phone.png" style="width: 10px;height: 13px;margin-left: 11px;"

1507
my/order/paydingCi.vue Normal file

File diff suppressed because it is too large Load Diff

1507
my/order/paydingLiao.vue Normal file

File diff suppressed because it is too large Load Diff

View File

@ -13,7 +13,7 @@
<image :src="order.ordersPackageList[0].packageImg"
style="width: 100%;height: 100%;border-radius: 19upx;"></image>
</view>
<view class="u-flex-1 margin-left-sm">
<view class="u-flex-1 margin-left-sm" style="display: flex;flex-direction: column;justify-content: space-around;">
<view class="flex head-title-right">
<view class="margin-right-xs text-df u-skeleton-fillet head-title">
{{order.ordersPackageList[0].title}}
@ -23,32 +23,54 @@
</view>
</view>
<view class="flex align-center">
<view>
<!-- <view class="flex justify-between margin-tb-sm" style="color: #999999;">
<view style="justify-content: space-between;">
{{order.ordersPackageList[0].duration}}分钟
x{{order.ordersPackageList[0].num}}
</view>
</view> -->
<view class="money-pay">
<view class="money-pay-zhen">
<span></span>
<span>{{order.sumMoney}}</span>
</view>
<!-- <view class="money-pay-jia">298</view> -->
<view class="money-pay" style="width: 100%;justify-content: space-between;">
<view class="money-pay-zhen">
<span></span>
<span>{{order.sumMoney}}</span>
</view>
<view>
<uni-number-box :disabled="true" :value="order.ordersPackageList[0].num" :width='27' :min="1" @change="changeValue" />
</view>
</view>
<!-- <view class="jz_btn"
v-if="order.addNum < order.ordersMassageList[0].massageType.addNum && order.status == 6"
@tap="saveJZ(order.ordersMassageList[0].massageType.massageTypeId)">
加钟/补价</view> -->
</view>
</view>
</view>
</view>
<view class="ske-padding margin-top-sm header-view">
<view v-if="!detailaddress">请选择地址</view>
<view class="margin-right-xs">
<view class="flex justify-between margin-top-lg">
<view class="header-view-text">联系人</view>
<view class="header-view-data">
<text>{{name}}</text>
<text class="xuanzhe" @click="getAddressList()">修改</text>
</view>
</view>
<view class="flex justify-between margin-top-lg">
<view class="header-view-text">手机号码</view>
<view class="header-view-data">
{{mobile}}
</view>
</view>
<view class="flex justify-between margin-top-lg">
<view class="header-view-text">详细地址</view>
<view class="flex adders-view">
<span>
{{province}}/{{city}}/{{district}}/{{detailaddress}}
</span>
<span class="view-more"></span>
</view>
</view>
<view class="flex justify-between margin-top-lg" v-if="order.remark">
<view style="width: 170rpx;">备注内容</view>
<view class="flex">
<view class="">
{{order.remark}}
</view>
</view>
</view>
</view>
</view>
<view class="margin-top-xl pay-ding">
@ -61,23 +83,26 @@
<u-icon name="file-text" style="color: #096f4b;margin-left: 10rpx;"></u-icon>
</view>
</view>
<view class="flex justify-between" v-if="order.couponMoney" style="margin-top: 19rpx;">
<!-- <view class="flex justify-between" v-if="order.couponMoney" style="margin-top: 19rpx;">
<view style="color: #999;font-size: 26rpx;">优惠券</view>
<view class="" style="color: #F93731;font-size: 26rpx;">{{order.couponMoney}}</view>
</view>
<view class="" style="color: #F93731;font-size: 26rpx;">-{{order.couponMoney}}</view>
</view> -->
</view>
</view>
<view class="pay-ding feiuong">
<view class="fei-title">费用明细</view>
<view class="fei-view">
<view class="fei-view-list">
<span>服务价格</span>
<span>套餐价格</span>
<span>{{order.sumMoney}}</span>
</view>
<view class="fei-view-list">
<span>套餐数量</span>
<span>{{order.ordersPackageList[0].num}}</span>
</view>
<view class="fei-view-list" v-if="order.couponMoney">
<span>优惠券</span>
<span>-{{order.couponMoney}}</span>
<span style="color: rgb(249, 55, 49);">-{{order.couponMoney}}</span>
</view>
<view class="fei-view-list-z">
<span>总金额</span>
@ -88,11 +113,8 @@
</view>
<view class="flex tabber padding-top-sm padding-bottom-sm align-center">
<u-button @click="cancelOrder(order)" shape="circle" :custom-style="customStyle" :hair-line="false"
v-if="(order.status == 3) && yhqxSel != '否'">取消订单
</u-button>
<u-button @click="openpay(order)" shape="circle" :custom-style="customStyle2" :hair-line="false"
v-if="order.status == 3"
class="dingshi">立即支付
</u-button>
<u-button :custom-style="customStyle2" shape="circle" :plain="true" @click="goChat"
@ -101,65 +123,8 @@
</view>
<u-skeleton :loading="loading" :animation="true" bgColor="#FFF"></u-skeleton>
<!-- 加钟-->
<u-popup v-model="showorder" mode="bottom" :closeable="closeable">
<scroll-view scroll-y="true" style="width: 750rpx;height: 600rpx;">
<view class="list_item" v-for="(item,index) in orderList" :key="index">
<image :src="item.massageImg"></image>
<view class="listitem_rightview">
<view class="titleview">
<view class="item_title">{{item.title}}</view>
<view class="item_yishou">已售{{item.sales}}</view>
</view>
<view class="flex flex-wrap" style="margin-top: 10rpx;" v-if="item.labels.length>0">
<text class="margin-bottom-xs box" v-for="(items,index) in item.labels"
:key="index">{{items}}</text>
</view>
<view class="btnview">
<view class="item_money"> <text style="font-size: 24upx;"></text> <text
v-if="isVip">{{item.memberPrice}}</text><text v-if="!isVip">{{item.price}}</text>
/<text style="font-weight: 500;font-size: 24upx; ">{{item.duration}}</text></view>
<view class="item_btn" @click="goOrder(item)">确认加钟</view>
</view>
</view>
</view>
</scroll-view>
</u-popup>
<!-- 升级 -->
<u-popup v-model="showorderS" mode="bottom" :closeable="closeable">
<scroll-view scroll-y="true" style="width: 750rpx;height: 600rpx;">
<view class="xiangmu" v-for="(item,index) in artificerlist" :key="index">
<image class="xiangmu-img" :src="item.massageImg" mode=""></image>
<view class="xiangmu-cont">
<view class="xiangmu-cont-top">
<view class="xiangmu-cont-top-title">
{{item.title}}
</view>
<view class="xiangmu-cont-top-time">
<view class="xiangmu-cont-top-left">服务时长{{item.duration}}分钟</view>
<view class="xiangmu-cont-top-left">已售{{item.sales}}</view>
</view>
</view>
<view class="xiangmu-about">
{{item.jianjie}}
</view>
<view class="xiangmu-foot">
<view class="xiangmu-foot-left">
<view class="xiangmu-foot-left-shiji">
<span></span>
<span>{{item.price}}</span>
<span>/元套</span>
</view>
<view class="xiangmu-foot-left-dazhe">{{item.oldPrice}}</view>
</view>
<view class="xiadan" @click="goOrder(item)">
确认升级
</view>
</view>
</view>
</view>
</scroll-view>
</u-popup>
<!-- 支付方式 -->
<u-popup v-model="showpay" mode="bottom" :closeable="closeable">
<view class="popup_pay">
@ -184,54 +149,6 @@
<view class="pay_btn" @click="pay()">确认支付</view>
</view>
</u-popup>
<!-- 提前结束 -->
<view>
<!-- 提前结束 -->
<uni-popup ref="popup" background-color="#fff">
<view class="popup-content">
<view class="popup-head">
<span>请输入提前结束的原因</span>
<span @click="closePopup(type)">x</span>
</view>
<view class="popup-mian">
<textarea placeholder="请输入提前结束服务原因" @input="textareaInp" class="popup-mian-textarea" name="" id="" cols="30" rows="10"></textarea>
<view class="popup-mian-btn">
<span @click="closePopup(type)">
取消
</span>
<span @click="tiqian('center')">
确定
</span>
</view>
</view>
</view>
</uni-popup>
</view>
<!-- 确认拒绝 -->
<view>
<!-- 确认拒绝 -->
<uni-popup ref="popupQ" background-color="#fff">
<view class="popup-content">
<view class="popup-head">
<span>确认拒单</span>
<span @click="closePopupQ(type)">x</span>
</view>
<view class="popup-mian">
<view class="popup-mian-textarea">
{{qurenJd.refusalContent}}
</view>
<view class="popup-mian-btn">
<span @click="TuiPopup(type,'1')">
同意
</span>
<span @click="TuiPopup(type,'3')">
全额退款
</span>
</view>
</view>
</view>
</uni-popup>
</view>
</view>
</template>
@ -248,7 +165,6 @@
tpayMoney: '',
paySel: 0,
showorder: false,
showorderS: false,
orderList: [],
loading: true,
customStyle: {
@ -295,18 +211,17 @@
btnShow:false,
tiqianData:'',
type:'center',
earlyFinishReason:'',
qurenJd:[],
artificerlist:[]
artificerlist:[],
province:'',
city:'',
district:'',
addressId:'',
mobile:'',
detailaddress:'',
}
},
onLoad(e) {
// uni.showLoading({
// title: '......',
// })
// setTimeout(() => {
// // this.loading = false;
// }, 2000)
this.isTrue = e.isTrue
if (this.isTrue) {
uni.setNavigationBarTitle({
@ -317,8 +232,13 @@
this.getOrder()
},
onShow() {
this.addressId = this.$queue.getData('EditAddress');
if (this.addressId) {
this.getAddressList(this.addressId);
} else {
this.addressMy()
}
this.yhqxSel = this.$queue.getData("yhqxSel");
this.getOrder()
if (uni.getStorageSync('token')) {
this.getIsVip()
}
@ -354,65 +274,55 @@
// #endif
},
methods: {
saveJZS(artificerId) {//
let data = {
artificerId: artificerId,
status: 0
}
let that = this;
this.$queue.showLoading('查询中...')
that.$Request.get("/app/artificer/selectArtificerMassageList", data).then(res => {
addressMy() {
this.$Request.getT('/app/address/selectAddressById').then(res => {
console.log(res)
if (res.code == 0) {
if (res.data && res.data.length > 0) {
that.artificerlist = res.data
// for (let i = 0; i < that.artificerlist.length; i++) {
// if (that.artificerlist[i].labels) {
// that.artificerlist[i].labels = that.artificerlist[i].labels.split(",");
// }
// }
uni.hideLoading();
that.showorderS = true;
} else {
uni.hideLoading();
that.$queue.showToast('暂无可升级项目');
}
} else {
uni.hideLoading();
that.$queue.showToast(res.msg);
this.name = res.data.name;
this.mobile = res.data.phone;
this.cityaddress = res.data.province + res.data.city + res.data.district;
this.detailaddress = res.data.detailsAddress;
this.isDefault = res.data.isDefault;
this.userId = res.data.userId;
this.latitude = res.data.latitude;
this.longitude = res.data.longitude;
this.province = res.data.province
this.city = res.data.city
this.district = res.data.district
this.addressId = res.data.addressId
// this.getChuXing();
// this.$queue.setData('EditAddress', res.data.addressId);
}
})
});
},
saveJZ(classifyId) {
let data = {
parentId: classifyId,
page: 1,
limit: 50,
status: 1
}
let that = this;
this.$queue.showLoading('查询中...')
that.$Request.get("/app/artificer/selectMassageTypePage", data).then(res => {
if (res.code == 0) {
if (res.data.list && res.data.list.length > 0) {
that.orderList = res.data.list
for (let i = 0; i < that.orderList.length; i++) {
if (that.orderList[i].labels) {
that.orderList[i].labels = that.orderList[i].labels.split(",");
}
}
uni.hideLoading();
that.showorder = true;
} else {
uni.hideLoading();
that.$queue.showToast('暂无可加钟项目');
//
getAddressList(addressId) {
if (addressId) {
this.$Request.getT('/app/address/selectAddressByAddressId?addressId=' + this.addressId).then(res => {
console.log(res)
if (res.code == 0) {
this.name = res.data.name;
this.mobile = res.data.phone;
this.cityaddress = res.data.province + res.data.city + res.data.district;
this.detailaddress = res.data.detailsAddress;
this.isDefault = res.data.isDefault;
this.userId = res.data.userId;
this.latitude = res.data.latitude;
this.longitude = res.data.longitude;
this.province = res.data.province
this.city = res.data.city
this.district = res.data.district
// this.getChuXing();
}
} else {
uni.hideLoading();
that.$queue.showToast(res.msg);
}
})
// uni.hideLoading();
});
} else {
uni.navigateTo({
url: '../address/address?id=' + 2
})
}
},
getTimeStampWithoutSeconds(date) {
// UTC
@ -426,6 +336,13 @@
//
return utcDate.getTime();
},
openpay(item) {
// uni.navigateTo({
// url:'/my/order/payModifyDzhifu?ordersId='+item.ordersId
// })
// this.goOrder()
this.showpay = true
},
getOrder() {
let data = {
ordersId: this.ordersId
@ -453,114 +370,8 @@
}
})
},
closePopupQ(type){//
this.type = type
this.$refs.popupQ.close(type);
},
toggleQ(type,item) {//
this.qurenJd=item;
this.type = type
// open uni-popup type
this.$refs.popupQ.open(type)
},
TuiPopup(typeTxte,type){// 退.
this.type = typeTxte
let data = {
ordersId: this.qurenJd.ordersId,
isAuto: '0',
type: type
}
this.$Request.post('/app/artificer/cancelSupplementOrders', data).then(res => {
if (res.code == 0) {
uni.showToast({
title:'操作完成!'
})
this.getOrder()
this.$refs.popupQ.close(typeTxte);
}else{
this.getOrder()
uni.showToast({
icon:'error',
title:'操作失败!'
})
}
}).catch(() => {
this.getOrder()
//,
});
},
closePopup(type){//
this.type = type
this.$refs.popup.close(type);
},
textareaInp(e){//
this.earlyFinishReason=e.detail.value;
console.log("earlyFinishReason",this.earlyFinishReason)
},
tiqian(type){//
var that=this;
that.type = type;
uni.getLocation({
type: 'wgs84',
success: function (resa) {
var longitude=resa.longitude;
var latitude=resa.latitude;
console.log('当前位置的经度:' + resa.longitude);
console.log('当前位置的纬度:' + resa.latitude);
let data = {
ordersId: that.tiqianData.ordersId,
accomplishLongitude:longitude,
accomplishLatitude:latitude,
earlyFinishReason: that.earlyFinishReason,
}
that.$Request.post('/app/artificer/accomplishOrders', data).then(res => {
if (res.code == 0) {
uni.showToast({
title:'操作完成!'
})
that.getOrder()
that.$refs.popup.close(type);
}else{
that.getOrder()
uni.showToast({
icon:'error',
title:'操作失败!'
})
}
}).catch(() => {
//,
that.getOrder()
});
},
fail: function(e) {
that.getOrder()
// #ifdef H5
uni.showToast({
title:'获取地址失败!'
})
// #endif
// #ifdef APP-PLUS
that.checkPermission();
// #endif
}
});
},
toggle(type,item) {//
this.tiqianData=item;
this.type = type;
// open uni-popup type
this.$refs.popup.open(type);
},
gengBtn(){
this.btnShow=!this.btnShow
},
goChat() {
let kefu = this.$queue.getData('kefu'); // 1 2
let kefuPhone = this.$queue.getData('kefuPhone');
@ -637,45 +448,19 @@
}
});
},
goOrder(item) {
console.log("item=====>",item)
console.log("order=====>",this.order)
let that = this
let data = {
classifyId:item.classifyId,
ordersId:that.order.ordersId,
ordersMassageList:[
{massageId: item.massageTypeId,num: 1},
],
massageTypeId:item.massageTypeId,
userPackageDetailId:item.userPackageDetailId,
}
that.$Request.postJson("/app/artificer/updateOrders", data).then(res => {
that.showorder = false
if (res.code == 0) {
that.ordersId = res.data.ordersId;
that.tpayMoney = res.data.payMoney;
that.showpay = true;
that.paySel = 1;
} else {
that.$queue.showToast(res.msg)
}
});
},
payJZ() {
let that = this;
if (that.openWay == 1) { //
uni.showModal({
title: '付款提示',
content: '确认支付' + that.order.sumMoney + '元吗?',
content: '确认支付' + that.order.payMoney + '元吗?',
success: function(re) {
if (re.confirm) {
that.$queue.showLoading('支付中...')
// console.log('');
that.$Request.post("/app/artificer/payOrders", {
ordersId: order.ordersId,
ordersId: that.ordersId,
}).then(ret => {
uni.hideLoading();
if (ret.code == 0) {
@ -934,12 +719,7 @@
}
});
},
openpay(item) {
// uni.navigateTo({
// url:'/my/order/payModifyDzhifu?ordersId='+item.ordersId
// })
this.showpay = true
},
//
pay() {
let that = this
@ -951,19 +731,22 @@
if (that.openWay == 1) { //
uni.showModal({
title: '付款提示',
content: '确认支付' + that.payMoney.sumMoney + '元吗?',
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,
that.$Request.post("/app/user/package/order/payOrder", {
ordersId: that.ordersId,
}).then(res => {
uni.hideLoading();
if (res.code == 0) {
uni.showToast({
title: '支付成功'
})
uni.redirectTo({
url:'/pages/my/indextaociliaoList?type='+104+'&name='+'index'
})
that.getOrder()
} else {
uni.showToast({
@ -1266,6 +1049,47 @@
</script>
<style lang="scss" scoped>
.adders-view image{
margin-top: 5px;
}
.xuanzhe{
background: #e5e7eb;
color: #666;
margin-left: 5px;
border: 1px solid #cdd2db;
border-radius: 30rpx;
padding: 4rpx 15rpx;
font-size: 26rpx;
}
.header-view-data{
display: flex;
flex-direction: row;
align-items: center;
}
.adders-view span,.header-view-data{
font-size: 29rpx;
color: #888;
text-align: right;
}
.adders-view{
display: flex;
flex-direction: row;
position: relative;
}
.header-view-text{
width: 170rpx;
font-size: 29rpx;
color: #222222;
}
.header-view{
background-color: #fff;
margin-bottom: 12px;
border-radius: 11px;
}
.ske-padding{
padding: 5rpx 30rpx 36rpx 30rpx;
}
/deep/.u-drawer{
z-index:11 !important;
}

View File

@ -86,7 +86,7 @@
<image :src="order.artificer.artificerImg" class="d-touxiang"></image>
<view class="margin-left-sm flex" style="width: 90%;justify-content: space-between;flex-direction: row;align-items: center;">
<view class="flex align-center" style="width: 80%;justify-content: space-between;">
<view class="d-title">{{order.artificer.artificerName}}1</view>
<view class="d-title">{{order.artificer.artificerName}}</view>
<!-- <image
v-if="order.status !=1 && order.status !=5 && order.status !=3 && order.status !=4 && order.status !=2"
src="../../static/img/phone.png" style="width: 10px;height: 13px;margin-left: 11px;"

View File

@ -34,7 +34,7 @@
<view class="quanyi_itemview" style="margin-bottom: 60rpx;">
<view class="quanyi_listitem">
<image src="../../static/vip/zuanshi.png"></image>
<view class="listitem_name">专享{{vipData.rateStr}}</view>
<view class="listitem_name">专享{{vrateStr}}</view>
</view>
<view class="quanyi_listitem">
<image src="../../static/vip/wangguan.png"></image>
@ -47,7 +47,9 @@
<view class="bgbox" style="" v-else>
<view class="bgbox-top-show">
<image src="../../static/vip/membership.png" mode=""></image>
<view class="bgbox-top-show-youxiao">到期时间{{vipData.endTime}}</view>
<view class="bgbox-top-show-youxiao">
到期时间 {{timeVipEnd}}
</view>
</view>
<view class="bgbox-mian">VIP超值权益</view>
<view class="quanyi_view">
@ -56,7 +58,7 @@
<view class="quanyi_itemview" style="margin-bottom: 60rpx;">
<view class="quanyi_listitem">
<image src="../../static/vip/zuanshi.png"></image>
<view class="listitem_name">专享{{vipData.rateStr}}</view>
<view class="listitem_name">专享{{rateStr}}</view>
</view>
<view class="quanyi_listitem">
<image src="../../static/vip/wangguan.png"></image>
@ -99,7 +101,7 @@
export default {
data() {
return {
endTime: '',
timeVipEnd: '',
customStyle: {
width: '250rpx',
color: '#402321',
@ -120,7 +122,8 @@
openWay: 2,
showpay: false,
vipData:[],
vipShow:false
vipShow:false,
rateStr:''
}
},
onLoad() {
@ -155,7 +158,6 @@
}]
// #endif
this.getvipEndTime();
this.getVipList()
this.getMemberList()
this.getMoney()
this.getIsVip()
@ -174,19 +176,30 @@
},
getvipEndTime() {
this.$Request.get("/app/UserVip/selectUserVip").then(res => {
if (res.code == 0 && res.data) {
this.endTime = res.data.endTime
if (res.code == 0) {
var data= res.data.endTime
this.timeVipEnd = data.slice(0,16);
this.getVipList(res.data.vipNameType)
}
});
},
//VIP
getVipList() {
this.$Request.get('/app/VipDetails/selectVipDetails').then(res => {
getVipList(vipNameType) {
var that=this;
var vipNameType=vipNameType;
that.$Request.get('/app/VipDetails/selectVipDetails').then(res => {
if (res.code == 0) {
this.vipList = res.data;
this.vipData.rateStr=this.vipList[0].rateStr;
this.selNum = this.vipList[0].id
this.price = this.vipList[0].money
that.vipList = res.data;
// that.rateStr=that.vipList[0].rateStr;
for(var i=0;i<res.data.length;i++){
if(vipNameType==res.data[i].vipNameType){
that.rateStr=res.data[i].rateStr
that.selNum = res.data[i].id
that.price = res.data[i].money
}
}
}
})
},
@ -201,7 +214,8 @@
getIsVip() {
this.$Request.get("/app/UserVip/isUserVip").then(res => {
if (res.code == 0) {
this.isVip = res.data
this.isVip = res.data;
this.$queue.setData('isVIP',this.isVip)
if (this.isVip) {
this.getvipEndTime();

View File

@ -511,42 +511,105 @@
"titleNView": false
}
}
}, {
},{
"path": "order/payModifyTcMy",
"style": {
"navigationBarTitleText": "我的套餐详情",
"enablePullDownRefresh": false,
"app-plus": {
"titleNView": false
}
}
},{
"path": "order/payModifyCi",
"style": {
"navigationBarTitleText": "次卡订单详情",
"enablePullDownRefresh": false,
"app-plus": {
"titleNView": false
}
}
},{
"path": "order/paydingCi",
"style": {
"navigationBarTitleText": "次卡订单支付",
"enablePullDownRefresh": false,
"app-plus": {
"titleNView": false
}
}
},{
"path": "order/payModifyLiao",
"style": {
"navigationBarTitleText": "疗程订单详情",
"enablePullDownRefresh": false,
"app-plus": {
"titleNView": false
}
}
},{
"path": "order/paydingLiao",
"style": {
"navigationBarTitleText": "疗程订单支付",
"enablePullDownRefresh": false,
"app-plus": {
"titleNView": false
}
}
},{
"path": "order/paydingDd",
"style": {
"navigationBarTitleText": "订单支付",
"enablePullDownRefresh": false
"enablePullDownRefresh": false,
"app-plus": {
"titleNView": false
}
}
},{
"path": "order/payModifyDd",
"style": {
"navigationBarTitleText": "订单页面详情",
"enablePullDownRefresh": false
"enablePullDownRefresh": false,
"app-plus": {
"titleNView": false
}
}
},{
"path": "order/paydingTc",
"style": {
"navigationBarTitleText": "套餐订单详情",
"enablePullDownRefresh": false
"enablePullDownRefresh": false,
"app-plus": {
"titleNView": false
}
}
}, {
"path": "order/payModifyTc",
"style": {
"navigationBarTitleText": "套餐订单",
"enablePullDownRefresh": false
"enablePullDownRefresh": false,
"app-plus": {
"titleNView": false
}
}
}, {
"path": "order/payModifyDzhifu",
"style": {
"navigationBarTitleText": "订单详情",
"enablePullDownRefresh": false
"enablePullDownRefresh": false,
"app-plus": {
"titleNView": false
}
}
},
{
"path": "help/helpDetail",
"style": {
"navigationBarTitleText": "帮助详情",
"enablePullDownRefresh": false
"enablePullDownRefresh": false,
"app-plus": {
"titleNView": false
}
}
},{
"path": "hongbao/youhuijuanList",
@ -572,14 +635,20 @@
"path": "gird/guanzhu",
"style": {
"navigationBarTitleText": "我的粉丝",
"enablePullDownRefresh": true
"enablePullDownRefresh": true,
"app-plus": {
"titleNView": false
}
}
},
{
"path": "gird/visitor",
"style": {
"navigationBarTitleText": "最近访客",
"enablePullDownRefresh": true
"enablePullDownRefresh": true,
"app-plus": {
"titleNView": false
}
}
},
{

View File

@ -92,7 +92,7 @@
<view class="detail-foot-mian1">
<view class="detail-foot-list" v-for="(item,index) in detailData" :key="index">
<view class="detail-foot-list-top">
<span style="margin-right: 5px;">{{item.title}}111</span>
<span style="margin-right: 5px;">{{item.title}}</span>
<!-- <span style="display: none;">详情</span>
<span>服务时长:{{item.duration}}分钟</span> -->
</view>
@ -118,29 +118,8 @@
</view>
</view>
</view>
<checkbox-group @change="checkboxChange" v-if="dataList.name=='index' && dataList.isCanCoupon=='1'">
<view class="youhui-weiyong youhui-list" v-for="(itemY,indexY) in couponData" :key="itemY.id">
<view class="youhui-view-left">
<view class="youhui-view-left-yuan">
<span class="youhui-view-left-num">{{itemY.money}}</span>
<span class="youhui-view-left-text"></span>
</view>
<view class="youhui-view-left-bottom">
{{itemY.minMoney}}元可用
</view>
</view>
<view class="youhui-view-right">
<view class="youhui-view-right-top">
<view class="youhui-view-right-title">{{itemY.couponName}}</view>
<view class="youhui-view-right-time">{{itemY.endDate}}</view>
</view>
<label class="tui-radio">
<checkbox activeBackgroundColor="#096f4b" color="#096f4b" :value="itemY.id.toString()" :checked="checkbox"/>
</label>
</view>
</view>
</checkbox-group>
<view class="detail-btn" v-if="dataList.name=='index'" @click="openpay">
<view class="detail-btn" v-if="dataList.name=='index'" @click="openpay(mainData)">
立即购买
</view>
<!-- 支付方式 -->
@ -578,9 +557,16 @@
// #endif
}
},
openpay() {//
this.goOrder()
this.showpay = true
openpay(item) {//
this.$queue.setData('mainData',item)
this.$queue.setData('detailData',this.detailData)
this.$queue.setData('xiangmu',item)
this.$queue.setData('youhui','');
uni.navigateTo({
url:'/my/order/payModifyCi?ordersId='+item.id
})
// this.goOrder()
// this.showpay = true
},
//
selectWay: function(item) {

View File

@ -1,12 +1,26 @@
<template>
<view class="content">
<view class="header">
<view class="header-top" :style="backgroundStyle">
<view class="header-top" :style="backgroundStyle" @click="goNav('/my/vip/index')">
<image src="../../static/servicePackage/member_ba.png" mode="widthFix" v-if="!isVIP"></image>
<image src="../../static/activate2.png" mode="widthFix" v-if="isVIP"></image>
</view>
<view class="header-bottom">
<view class="header-bottom-top">
<view class="header-bottom-top-list">
<view class="header-bottom-foot-view">
<image class="header-bottom-foot-view-img1" src="../../static/servicePackage/idCard.png" mode=""></image>
<span>实名认证</span>
</view>
<view class="header-bottom-foot-view" style="margin: 0px 7px;">
<image class="header-bottom-foot-view-img2" src="../../static/servicePackage/money.png" mode=""></image>
<span>资质认证</span>
</view>
<view class="header-bottom-foot-view">
<image class="header-bottom-foot-view-img3" src="../../static/servicePackage/shuangyue.png" mode=""></image>
<span>平台担保</span>
</view>
</view>
<view class="header-bottom-title">
<view class="header-bottom-title-text">
<span>{{getList.title}}</span>
@ -25,7 +39,6 @@
<view class="header-bottom-money-zhen">
<span></span>
<span>{{getList.price}}</span>
<span>/元套</span>
</view>
<view class="header-bottom-money-jia">
{{getList.oldPrice}}
@ -141,13 +154,24 @@
}
},
methods:{
goNav(e) {
uni.navigateTo({
url: e
})
},
goumai(item){//
this.$queue.setData('getJishi','')
this.$queue.setData('ordersId',this.dataList.massageTypeId);
this.$queue.setData('userPackageDetailId',this.dataList.id);
this.$queue.setData('daibudan','');
// this.$queue.setData('getJishi','')
// this.$queue.setData('ordersId',this.dataList.massageTypeId);
// this.$queue.setData('userPackageDetailId',this.dataList.id);
// this.$queue.setData('daibudan','');
// uni.navigateTo({
// url:'/my/order/payModifyTc?ordersId='+this.dataList.massageTypeId
// })
this.$queue.setData('mainData',item)
// this.$queue.setData('detailData',this.detailData)
this.$queue.setData('youhui','');
uni.navigateTo({
url:'/my/order/payModify?ordersId='+this.dataList.massageTypeId
url:'/my/order/payModifyTcMy?ordersId='+item.packageDetailId
})
},
@ -445,6 +469,12 @@
align-items: center;
justify-content: space-between;
}
.header-bottom-top-list{
width: 100%;
display: flex;
flex-direction: row;
align-items: center;
}
.header-bottom-foot{
width: 100%;
display: flex;

View File

@ -123,29 +123,8 @@
</view>
</view>
</view>
<checkbox-group @change="checkboxChange" v-if="dataList.name=='index' && dataList.isCanCoupon=='1'">
<view class="youhui-weiyong youhui-list" v-for="(itemY,indexY) in couponData" :key="itemY.id">
<view class="youhui-view-left">
<view class="youhui-view-left-yuan">
<span class="youhui-view-left-num">{{itemY.money}}</span>
<span class="youhui-view-left-text"></span>
</view>
<view class="youhui-view-left-bottom">
{{itemY.minMoney}}元可用
</view>
</view>
<view class="youhui-view-right">
<view class="youhui-view-right-top">
<view class="youhui-view-right-title">{{itemY.couponName}}</view>
<view class="youhui-view-right-time">{{itemY.endDate}}</view>
</view>
<label class="tui-radio">
<checkbox activeBackgroundColor="#096f4b" color="#096f4b" :value="itemY.id.toString()" :checked="checkbox"/>
</label>
</view>
</view>
</checkbox-group>
<view class="detail-btn" v-if="dataList.name=='index'" @click="openpay">
<view class="detail-btn" v-if="dataList.name=='index'" @click="openpay(mainData)">
立即购买
</view>
<!-- 支付方式 -->
@ -585,9 +564,16 @@
// #endif
}
},
openpay() {//
this.goOrder()
this.showpay = true
openpay(item) {//
this.$queue.setData('mainData',item)
this.$queue.setData('detailData',this.detailData)
this.$queue.setData('xiangmu',item)
this.$queue.setData('youhui','');
uni.navigateTo({
url:'/my/order/payModifyLiao?ordersId='+item.id
})
// this.goOrder()
// this.showpay = true
},
//
selectWay: function(item) {

View File

@ -41,9 +41,11 @@
</view>
</view>
</view>
<view class="my-head-bottom back-width" @click="goNav('/my/vip/index')">
<image src="../../static/my-kaitonghuiyuan.png" mode="widthFix" v-if="!isVip"></image>
<image src="../../static/activate3.png" mode="widthFix" v-if="isVip"></image>
<view class="my-head-bottom back-width" @click="goNav('/my/vip/index')">
<image src="../../static/my-kaitonghuiyuan.png" mode="widthFix" v-if="isVip=='1'"></image>
<image src="../../static/activate2.png" mode="widthFix" v-if="isVip=='0'"></image>
<!-- <image src="../../static/servicePackage/member_ba.png" mode="widthFix" v-if="!isVip"></image>
<image src="../../static/activate2.png" mode="widthFix" v-if="isVip"></image> -->
</view>
<!-- <view class="padding-lr margin-lr" style="background-color: #35C495;border-radius: 18rpx;margin-top: 30rpx;"
v-if="XCXIsSelect != '否' && hyCheck != '否'">
@ -114,7 +116,7 @@
follow: 0, //
visitor: 0, //访
userId: '',
isVip: false,
isVip: 0,
invitationCode: '', //
money: '0',
couponnum: '0',
@ -165,7 +167,7 @@
this.follow = 0
this.visitor = 0
this.avatar = '../../static/logo.png'
this.isVip = false
this.isVip = 0
}
},
@ -252,7 +254,7 @@
that.fans = 0
that.follow = 0
that.visitor = 0
that.isVip = false
that.isVip = 0
that.avatar = '../../static/logo.png'
that.userId = uni.getStorageSync('userId')
@ -433,12 +435,8 @@
getIsVip() {
this.$Request.get("/app/UserVip/selectUserVip").then(res => {
if (res.code == 0) {
this.isVip = res.data
if(this.isVip==undefined){
this.$queue.setData('isVIP','0')
}else{
this.$queue.setData('isVIP','1')
}
this.isVip = res.data.isVip
this.$queue.setData('isVIP',this.isVip)
}
});
},

View File

@ -1,7 +1,7 @@
<template>
<view class="content">
<view class="header">
<view class="header-top" :style="backgroundStyle">
<view class="header-top" :style="backgroundStyle" @click="goNav('/my/vip/index')">
<image src="../../static/servicePackage/member_ba.png" mode="widthFix" v-if="!isVip"></image>
<image src="../../static/activate2.png" mode="widthFix" v-if="isVip"></image>
</view>
@ -21,7 +21,6 @@
<view class="header-bottom-money-zhen">
<span></span>
<span>{{mainData.price}}</span>
<span>/</span>
</view>
<view class="header-bottom-money-jia">
{{mainData.oldPrice}}
@ -65,51 +64,33 @@
<view class="detail-foot-list-top">
<span style="margin-right: 5px;">{{item.title}}</span>
<span style="display: none;">详情</span>
</view>
<view class="header-bottom-money" style="margin: 7px 0px; justify-content: space-between ">
<view class="header-bottom-money-zhen">
<span></span>
<span>{{item.price}}</span>
<span>/</span>
<view class="detail-view">
<image class="detail-view-img" :src="item.massageImg" mode=""></image>
<view class="detail-view-mina">
<view class="header-bottom-money" style="margin: 7px 0px; justify-content: space-between ">
<view class="header-bottom-money-zhen">
<span></span>
<span>{{item.price}}</span>
</view>
<view class="header-bottom-money-jia" style="margin-left: 20px; ">
{{item.oldPrice}}
</view>
<view style="color: #019c88;">服务时长:{{item.duration}}分钟</view>
</view>
<view class="tese">
<span>项目特色: </span>
<span>{{item.jianjie}}</span>
</view>
</view>
<view class="header-bottom-money-jia" style="margin-left: 20px; ">
{{item.oldPrice}}
</view>
<view style="color: #019c88;">服务时长:{{item.duration}}分钟</view>
</view>
<view class="tese">
<span>项目特色: </span>
<span>{{item.jianjie}}</span>
</view>
<view class="detail-foot-title">
服务项目{{index+1}}
</view>
</view>
</view>
</view>
<!-- <checkbox-group @change="checkboxChange" v-if="serviData.name=='index' && serviData.isCanCoupon=='1'">
<view class="youhui-weiyong youhui-list" v-for="(itemY,indexY) in couponData" :key="itemY.id">
<view class="youhui-view-left">
<view class="youhui-view-left-yuan">
<span class="youhui-view-left-num">{{itemY.money}}</span>
<span class="youhui-view-left-text"></span>
</view>
<view class="youhui-view-left-bottom">
{{itemY.minMoney}}元可用
</view>
</view>
<view class="youhui-view-right">
<view class="youhui-view-right-top">
<view class="youhui-view-right-title">{{itemY.couponName}}</view>
<view class="youhui-view-right-time">{{itemY.endDate}}</view>
</view>
<label class="tui-radio">
<checkbox activeBackgroundColor="#096f4b" color="#096f4b" :value="itemY.id.toString()" :checked="checkbox"/>
</label>
</view>
</view>
</checkbox-group> -->
<view class="detail-btn" v-if="serviData.name=='index'" @click="openpay(mainData)">
立即购买
</view>
@ -210,6 +191,11 @@
// #endif
},
methods:{
goNav(e) {
uni.navigateTo({
url: e
})
},
checkboxChange(e){
this.couponId=e.detail.value.join(",")
},
@ -660,6 +646,24 @@
}
</script>
<style scoped>
.detail-view-mina{
width: 68%;
display: flex;
flex-direction: column;
justify-content: space-around;
}
.detail-view-img{
width: 76px;
height: 76px;
border-radius: 9px;
}
.detail-view{
width: 100%;
display: flex;
flex-direction: row;
align-items: center;
justify-content: space-between;
}
/deep/uni-checkbox .uni-checkbox-input{
width: 26px;
height: 26px;

View File

@ -11,7 +11,7 @@
</view>
</view>
<!-- 数据列表 -->
<view v-if="goods.length > 0" class="margin-sm bg" v-for="(item,index) in goods" :key='index'
<view v-if="goods.length > 0" class="margin-sm bg ding-view" v-for="(item,index) in goods" :key='index'
@click="goNav('/my/order/pay?ordersId='+item.ordersId,item)" style="border-radius: 20rpx;padding: 36rpx;">
<view class="flex justify-between">
<view class="flex align-center profile-img">
@ -37,7 +37,7 @@
<view class="u-m-r-10">
<u-avatar
:src="(item.ordersMassageList && item.ordersMassageList.length > 0 && item.ordersMassageList[0].massageType && item.ordersMassageList[0].massageType.massageImg)?item.ordersMassageList[0].massageType.massageImg: '../../static/logo.png'"
mode="square" size="100"style="height: 132rpx;width: 132rpx;flex: 0 0 132rpx;">
mode="square" size="100" style="height: 132rpx;width: 132rpx;flex: 0 0 132rpx;">
</u-avatar>
</view>
<view class="u-flex-1" style="margin-left: 20rpx;">
@ -60,65 +60,69 @@
<view class="flex u-p-t-20 justify-between align-center" style="justify-content: flex-end;">
<view class="flex text-right" style="flex-direction: column;width: 100%;">
<view class="showBtn" :style="{'justify-content':item.status != 6||item.status==1?'flex-end':'space-between'}">
<view class="gengduo" @click.stop="gengBtn(index)" v-show="item.status ==6||item.status ==1">更多</view>
<view class="showBtn-view">
<u-button v-if="item.status == 10" :custom-style="customStyle1" shape="circle" :plain="true"
@click="goNav('/my/order/payModifyDd?ordersId='+item.ordersId,item)" class="btns">
立即预约
</u-button>
<u-button v-if="item.status == 3" :custom-style="customStyle1" class="btns" shape="circle" :plain="true"
@click="goNav('/my/order/feedback?artificerId='+item.artificerId+ '&ordersId='+item.ordersId)">
待评价
</u-button>
<u-button v-if="item.status == 9&&item.refusalContent" :custom-style="customStyle1" shape="circle" :plain="true"
@click="toggleQ('center',item)" class="btns">
拒单详情
</u-button>
<view class="showBtn" :style="{'justify-content':item.status ==6||item.status ==1?'space-between':'flex-end'}">
<view class="gengduo" @click.stop="gengBtn(index)" v-show="item.status ==6||item.status ==1">
<!-- v-show="item.status ==6||item.status ==1" -->
更多
</view>
<u-button
v-if="item.status != 3 &&
item.status != 4 &&
item.status != 5&&
item.status != 10&&
item.addNum==null&&item.oldOrdersId==null"
:custom-style="customStyle" shape="circle" :plain="true"
class="btns xianshi"
@click="cancelOrder(item)">
取消订单
</u-button>
<u-button
v-if="item.btnShow == 'true'&&item.oldOrdersId==null&&(item.status==1||item.status==2||item.status==7||item.status==8)&&!item.refusalContent" :custom-style="customStyle1" shape="circle" :plain="true"
@click="goNav('/my/order/payModifyDzhifu?ordersId='+item.ordersId,item,'修改')" class="btns xianshi">
修改订单
</u-button>
<u-button v-if="item.status == 10" :custom-style="customStyle1" shape="circle" :plain="true"
@click="goNav('/my/order/payModifyDd?ordersId='+item.ordersId,item)" class="btns xianshi">
立即预约
</u-button>
<u-button v-if="item.status == 3" :custom-style="customStyle1" class="btns xianshi" shape="circle" :plain="true"
@click="goNav('/my/order/feedback?artificerId='+item.artificerId+ '&ordersId='+item.ordersId)">
待评价
</u-button>
<u-button v-if="item.status == 3||item.status == 6" :custom-style="customStyle1" shape="circle" class="btns xianshi" :plain="true" @click="goNav('/my/order/complain?id='+item.ordersId)" >
去投诉
</u-button>
<u-button v-if="item.status == 9&&item.refusalContent" :custom-style="customStyle1" shape="circle" :plain="true"
@click="toggleQ('center',item)" class="btns xianshi">
拒单详情
</u-button>
<u-button :custom-style="customStyle1" shape="circle" :plain="true"
@click="goNav('/my/order/pay?ordersId='+item.ordersId)" class="btnsH xianshi">
联系客服
</u-button>
<view class="showBtn-view" v-if="gengBtnShow==true" :style="gengNum==index?{display:'inline-block'}:{display:'none'}">
<u-button v-if="item.status == 1" :custom-style="customStyle1" shape="circle" :plain="true"
@click="goNav('/my/order/payModifyDd?ordersId='+item.ordersId,item)" class="btns">
去支付
</u-button>
<u-button v-if="item.btnShow == 'true'&&item.status==2||item.oldOrdersId==null||item.status==6||item.status==7||item.status==8||item.status == 9&&!item.refusalContent" :custom-style="customStyle1" shape="circle" :plain="true"
@click="goNav('/my/order/payModifyDzhifu?ordersId='+item.ordersId,item,'修改')" class="btns">
修改订单
</u-button>
<u-button v-if="item.status == 5" :custom-style="customStyle1" shape="circle" class="btns" :plain="true" @click="goNav('/my/order/complain?id='+item.ordersId)" >
去投诉
</u-button>
<u-button v-if="item.status == 6" :custom-style="customStyle1" class="btns" shape="circle" :plain="true"
<u-button v-if="item.oldOrdersId==null && item.status == 6&&item.addNum==null" :custom-style="customStyle1" class="btns" shape="circle" :plain="true"
@click="goNav('/my/order/pay?ordersId='+item.ordersId,item)">
升级项目
服务升级
</u-button>
<u-button v-if="item.status == 6" :custom-style="customStyle1" class="btns" shape="circle" :plain="true"
@click="toggle('center',item)">
提前结束
</u-button>
<u-button :custom-style="customStyle1" shape="circle" :plain="true"
@click="goNav('/my/order/pay?ordersId='+item.ordersId)" class="btnsH">
联系客服
<u-button v-if="item.status == 6" :custom-style="customStyle1" class="btns" shape="circle" :plain="true"
@click="goNav('/my/wallet/index?artificerId='+item.artificerId+'&ordersId='+item.ordersId,item)">
充值
</u-button>
<u-button v-if="item.addNum ==null && item.status == 6" :custom-style="customStyle1" class="btns" shape="circle" :plain="true"
@click="goNav('/my/order/pay?ordersId='+item.ordersId,item)">
加钟
</u-button>
</view>
</view>
<view class="hideBtn" v-show="btnShow==index" style="justify-content: end;">
<u-button
v-if="item.status != 3 && item.status != 4 && item.status != 5"
:custom-style="customStyle" shape="circle" :plain="true"
class="btns"
@click="cancelOrder(item)">
取消订单
</u-button>
<u-button v-if="item.status == 6" :custom-style="customStyle1" class="btns" shape="circle" :plain="true"
@click="goNav('/my/wallet/index?artificerId='+item.artificerId+'&ordersId='+item.ordersId,item)">
充值
</u-button>
<u-button v-if="item.addNum !=null && item.status == 6" :custom-style="customStyle1" class="btns" shape="circle" :plain="true"
@click="goNav('/my/order/pay?ordersId='+item.ordersId,item)">
加钟
</u-button>
</view>
</view>
</view>
</view>
@ -190,9 +194,13 @@
},
data() {
return {
showDetails: [],
tiqianData:[],
qurenJd:[],
btnShow:'',
gengBtnShow:false,
gengBtnHeid:false,
gengNum:0,
type:'center',
goods: [], //
game: [],
@ -315,37 +323,41 @@
methods: {
goNav(url,item,text) {
this.$queue.setData('xiangmu',item);
if(item.isSupplement='1'){
console.log("oldOrdersId=======",item)
// if(item.isSupplement=='1'){
// uni.navigateTo({
// url:url
// })
// }else{
// }
if(item.oldOrdersId){//
uni.navigateTo({
url:'/my/order/payShengji?ordersId='+item.ordersId
})
}else if(item.addNum){
uni.navigateTo({
url:'/my/order/payJaZ?ordersId='+item.ordersId
})
}else if(item.addNum&&item.oldOrdersId){
uni.navigateTo({
url:'/my/order/payJaZ?ordersId='+item.ordersId
})
}else if(text=='修改'){
uni.navigateTo({
url:'/my/order/payModifyDzhifu?ordersId='+item.ordersId
})
}else{
uni.navigateTo({
url:url
})
}else{
if(item.oldOrdersId){//
uni.navigateTo({
url:'/my/order/payShengji?ordersId='+item.ordersId
})
}else if(item.addNum){
uni.navigateTo({
url:'/my/order/payJaZ?ordersId='+item.ordersId
})
}else if(item.addNum&&item.oldOrdersId){
uni.navigateTo({
url:'/my/order/payJaZ?ordersId='+item.ordersId
})
}else if(text=='修改'){
uni.navigateTo({
url:'/my/order/payModifyDzhifu?ordersId='+item.ordersId
})
}else{
uni.navigateTo({
url:url
})
}
}
},
gengBtn(index){//
this.btnShow=index
// console.log("inex=====",index)
this.gengNum=index;
this.gengBtnShow=!this.gengBtnShow
},
closePopupQ(type){//
this.type = type
@ -658,6 +670,9 @@
</script>
<style lang="scss" scoped>
.xianshi{
margin: 0px 5px 0px 0px !important;
}
/deep/.u-size-default{
margin-top: 5px !important;
}
@ -673,22 +688,29 @@
margin-top: -20rpx;
}
.ding-view{
position: relative;
}
.showBtn-view{
display: flex;
flex-direction: row;
flex-direction: column;
align-items: center;
position: absolute;
bottom: 0;
background-color: #fff;
padding: 10px;
margin-bottom: 50px;
margin-left: 10px;
}
.showBtn{
justify-content: space-between;
}
.showBtn,.hideBtn{
.showBtn{
width: 100%;
display: flex;
flex-direction: row;
align-items: center;
flex-wrap: wrap;
justify-content: space-between;
justify-content: flex-end;
}
.popup-mian-btn span:nth-child(1){
@ -766,6 +788,7 @@
height: 47rpx !important;
line-height: 47px !important;
border-radius: 23rpx !important;
margin: 0px !important;
}
/deep/.btns{
background: #fff !important;

View File

@ -23,7 +23,7 @@
<view class="oder-mian-view oder-mian-jin">
今日可约
</view>
<view class="oder-mian-view oder-mian-time">15:33</view>
<view class="oder-mian-view oder-mian-time">{{order.time}}</view>
</view>
<view class="jian-view-right-weizhi">
<image class="jian-view-right-img" src="../../static/orderDetail/dingwei.png"></image>