sadjv3_user/pages/my/cureOderDrtail.vue

643 lines
15 KiB
Vue
Raw Normal View History

2024-06-12 15:52:21 +08:00
<template>
<view class="content">
<view class="header">
2024-06-30 19:11:56 +08:00
<view class="header-top" :style="backgroundStyle" @click="goNav('/my/vip/index')">
2024-08-07 09:27:45 +08:00
<image src="../../static/activate2.png" mode="widthFix" v-if="isVip=='1'"></image>
<image src="../../static/servicePackage/member_ba.png" mode="widthFix" v-else></image>
2024-06-12 15:52:21 +08:00
</view>
2024-07-03 14:10:49 +08:00
<view class="header-bottom-top-list">
<view class="header-bottom-foot-view2">
<image class="header-bottom-foot-view2-img1" src="../../static/servicePackage/idCard.png" mode=""></image>
<span>实名认证</span>
</view>
<view class="header-bottom-foot-view2" style="margin: 0px 7px;">
<image class="header-bottom-foot-view2-img2" src="../../static/servicePackage/money.png" mode=""></image>
<span>资质认证</span>
</view>
<view class="header-bottom-foot-view2">
<image class="header-bottom-foot-view2-img3" src="../../static/servicePackage/shuangyue.png" mode=""></image>
<span>平台担保</span>
</view>
</view>
2024-06-12 15:52:21 +08:00
<view class="header-bottom">
<view class="header-bottom-top">
2024-07-03 14:10:49 +08:00
2024-06-12 15:52:21 +08:00
<view class="header-bottom-title">
<view class="header-bottom-title-text">
2024-06-24 11:29:11 +08:00
<span>{{getList.title}}</span>
<span class="header-bottom-title-liao">
套餐
</span>
2024-06-12 15:52:21 +08:00
</view>
<view class="header-bottom-title-num">
2024-06-24 11:29:11 +08:00
<span>{{getList.sales}}</span>
2024-06-12 15:52:21 +08:00
<span> 人选择</span>
</view>
</view>
<view class="header-bottom-money-view">
<view class="header-bottom-money">
<view class="header-bottom-money-zhen">
<span></span>
2024-07-03 09:57:08 +08:00
<span>{{getList.price}}</span>
2024-06-12 15:52:21 +08:00
</view>
<view class="header-bottom-money-jia">
2024-07-03 09:57:08 +08:00
{{getList.oldPrice}}
2024-06-12 15:52:21 +08:00
</view>
</view>
</view>
</view>
<view class="header-bottom-foot">
<view class="header-bottom-foot-cont">
2024-07-04 11:23:46 +08:00
<!-- <view class="header-fubz">保障</view> -->
2024-06-12 15:52:21 +08:00
<view class="header-bottom-foot-view">
<image class="header-bottom-foot-view-img1" src="../../static/servicePackage/idCard.png" mode=""></image>
<span>未服务全额退款</span>
</view>
2024-07-04 11:23:46 +08:00
<view class="header-bottom-foot-view" style="margin: 0px 7px;width: 26%;">
2024-06-12 15:52:21 +08:00
<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>最快30分钟上门</span>
</view>
</view>
</view>
2024-06-27 21:26:16 +08:00
<!--<view class="header-bottom-foot">
<view class="header-bottom-foot-title">服务保障</view>
<view class="header-bottom-foot-cont">
<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>最快30分钟上门</span>
</view>
</view>
</view>-->
2024-06-12 15:52:21 +08:00
</view>
</view>
<view class="detail-foot">
<view class="detail-foot-nav">
<span class="detail-foot-nav-text">适用说明</span>
<span class="detail-foot-nav-bor"></span>
</view>
<view class="detail-foot-mian">
<view class="detail-foot-mian-top">
<span class="detail-foot-mian-top-title">性别限制: </span>
2024-08-27 17:04:10 +08:00
<span class="detail-foot-mian-top-text">{{getList.isSex=='1'?'男':getList.isSex=='2'?'女':'不限性别'}}</span>
2024-06-12 15:52:21 +08:00
</view>
<view class="detail-foot-mian-top-bottom">
2024-06-24 11:29:11 +08:00
<span class="detail-foot-mian-top-title">适应人群: </span>
2024-06-12 15:52:21 +08:00
<span class="detail-foot-mian-top-text">
2024-06-24 11:29:11 +08:00
{{getList.applyPeople}}
</span>
2024-06-12 15:52:21 +08:00
</view>
</view>
</view>
<view class="detail-foot">
<view class="detail-foot-nav">
<span class="detail-foot-nav-text">项目详情</span>
<span class="detail-foot-nav-bor"></span>
</view>
<view class="detail-foot-mian">
2024-07-03 12:23:20 +08:00
<image class="detail-foot-mian-img" v-for="(item,index) in contentImg" :key="index" :src="item" mode="widthFix"></image>
2024-06-12 15:52:21 +08:00
</view>
</view>
2024-07-05 23:39:28 +08:00
<view class="detail-btn" v-if="dataList.name=='my'&&dataList.status=='0'" @click="goumai(getList)">
2024-07-04 15:05:23 +08:00
立即预约
2024-06-12 15:52:21 +08:00
</view>
</view>
</template>
<script>
export default{
data(){
return{
2024-06-24 11:29:11 +08:00
dataList:[],
getList:[],
2024-08-07 09:27:45 +08:00
isVip:false,
2024-06-24 11:29:11 +08:00
// 背景图片的URL可以是动态的比如从API获取或根据条件生成
backgroundImageUrl: '',
2024-07-02 15:25:43 +08:00
nameText:'',
2024-07-03 12:23:20 +08:00
labels:[],
contentImg:[],
2024-06-24 11:29:11 +08:00
}
},
computed: {
backgroundStyle() {
return {
backgroundImage: `url(${this.backgroundImageUrl})`,
backgroundSize: 'cover', // 根据需要调整
};
}
},
onLoad(e) {
var that=this;
that.dataList=e;
2024-08-07 09:27:45 +08:00
that.isVip=this.$queue.getData('isVIP');
2024-06-24 11:29:11 +08:00
if(that.dataList.name=='index'){
that.getIndexData()
}else{
that.getData();
2024-06-12 15:52:21 +08:00
}
},
methods:{
2024-06-30 19:11:56 +08:00
goNav(e) {
uni.navigateTo({
url: e
})
},
2024-06-24 11:29:11 +08:00
goumai(item){//立即购买
2024-06-30 19:11:56 +08:00
// this.$queue.setData('ordersId',this.dataList.massageTypeId);
// this.$queue.setData('userPackageDetailId',this.dataList.id);
2024-07-01 23:13:43 +08:00
this.$queue.setData('getJishi','')
this.$queue.setData('daibudan','');
2024-07-01 19:01:13 +08:00
this.$queue.setData('detailData',this.detailData)
this.$queue.setData('mainData',item);
this.$queue.setData('xiangmu',item);
this.$queue.setData('getJishi','');
2024-06-30 19:11:56 +08:00
this.$queue.setData('youhui','');
2024-06-24 11:29:11 +08:00
uni.navigateTo({
url:'/my/order/payModifyTcMy?ordersId='+item.id
2024-06-24 11:29:11 +08:00
})
2024-07-01 23:13:43 +08:00
// uni.navigateTo({
// url:'/my/order/payModifyTcMy?ordersId='+item.packageDetailId
// })
2024-06-24 11:29:11 +08:00
},
getIndexData(){//从首页 推荐进入 请求的接口
var that=this;
let data = {
id: that.dataList.id,
limit: that.dataList.limit,
mainId: that.dataList.mainId,
massageTypeId:that.dataList.massageTypeId,
page:that.dataList.page,
}
that.$Request.get('/app/massage/packageDetail/getAppPackageDetail',data).then(res => {
if (res.code == 0) {
2024-07-02 22:23:55 +08:00
that.getList=res.data;
2024-06-24 11:29:11 +08:00
that.backgroundImageUrl=that.getList.massageImg
2024-07-03 12:23:20 +08:00
// that.labels=res.data.labels.split(',');
that.contentImg=res.data.contentImg.split(",");
2024-06-24 11:29:11 +08:00
}
})
},
getData(){
var that=this;
let data = {
id: that.dataList.id,
limit: that.dataList.limit,
mainId: that.dataList.mainId,
massageTypeId:that.dataList.massageTypeId,
page:that.dataList.page,
}
that.$Request.get('/app/user/package/detail/getMyPackageDetail', data).then(res => {
if (res.code == 0) {
that.getList=res.data;
that.backgroundImageUrl=that.getList.massageImg
2024-07-03 12:23:20 +08:00
// that.labels=res.data.labels.split(',');
that.contentImg=res.data.contentImg.split(",");
2024-06-24 11:29:11 +08:00
}
})
},
2024-06-12 15:52:21 +08:00
}
}
</script>
<style scoped>
2024-07-02 15:25:43 +08:00
.lab-view{
width:100%;
display: flex;
flex-direction: row;
align-items: center;
flex-wrap: wrap;
}
.detail-foot-mian-txet{
width: 50%;
margin-top: 20px;
text-align: center;
}
2024-06-27 21:26:16 +08:00
.header-fubz{
font-size: 26rpx;
color: #029c88;
font-weight: bold;
}
2024-06-12 15:52:21 +08:00
.header-bottom-title-liao{
display: inline-block;
2024-07-04 15:05:23 +08:00
padding: 2px 7px;
2024-06-12 15:52:21 +08:00
height: 16px;
line-height: 16px;
text-align: center;
background: linear-gradient(-90deg, #FF6F48, #FF9E69);
border-radius: 7px;
2024-06-27 21:26:16 +08:00
margin-left: 5px;
2024-07-04 15:05:23 +08:00
font-size: 10px;
2024-06-12 15:52:21 +08:00
border-top-left-radius: 20px;
border-bottom-right-radius: 20px;
color: #fff;
2024-06-27 21:26:16 +08:00
}
2024-06-12 15:52:21 +08:00
.detail-btn{
width:95%;
2024-07-04 15:05:23 +08:00
height: 80rpx;
line-height: 80rpx;
2024-06-12 15:52:21 +08:00
background: linear-gradient(90deg, #019C88, #28BA92, #35C495);
border-radius: 46rpx;
margin: 0 auto;
text-align: center;
font-weight: 400;
2024-08-26 16:25:30 +08:00
font-size: 17px;
2024-06-12 15:52:21 +08:00
color: #FFFFFF;
2024-07-04 10:46:53 +08:00
position: fixed;
bottom: 0px;
margin-bottom: 10px;
2024-06-12 15:52:21 +08:00
}
.detail-foot-mian-txet span:nth-child(1){
color: #777777;
font-size: 12px;
font-weight: bold;
margin-bottom: 5px;
}
.detail-foot-mian-txet span:nth-child(2){
color: #333;
font-size: 15px;
font-weight: bold;
margin-bottom:3px;
}
.detail-foot-mian-txet span:nth-child(3){
color: #777777;
font-size: 14px;
font-weight: bold;
}
.detail-foot-mian-txet{
width: 100%;
display: flex;
flex-direction: column;
align-items: center;
margin-top: 20px;
}
2024-06-24 11:29:11 +08:00
.detail-foot-mian-img{
2024-06-12 15:52:21 +08:00
width: 100%;
2024-06-24 11:29:11 +08:00
height:auto;
2024-06-12 15:52:21 +08:00
}
.detail-foot-mian-top-bottom{
margin-top: 10px;
}
.detail-foot-mian-top-title{
color: #333333;
}
.detail-foot-mian-top-text{
color: #777777;
2024-06-28 17:43:02 +08:00
width:80%;
margin-left: 5px;
2024-06-12 15:52:21 +08:00
}
.detail-foot-mian-top,.detail-foot-mian-top-bottom{
width: 100%;
display: flex;
flex-direction: row;
2024-06-27 21:26:16 +08:00
font-size: 26rpx;
2024-06-12 15:52:21 +08:00
}
.header-bottom-title-bottom span{
font-weight: bold;
font-size: 22rpx;
color: #20AB95;
}
.header-bottom-title-bottom image{
width: 34.03rpx;
height: 30.56rpx;
margin-right: 3px;
}
.header-bottom-title-bottom{
width: 100%;
display: flex;
flex-direction: row;
align-items: center;
margin: 5px 0px;
}
.shouc image{
width: 34.03rpx;
height: 32.64rpx;
}
.shouc{
display: flex;
align-items: center;
justify-content: center;
}
.detail-foot-nav-bor{
width: 64px;
height: 11rpx;
border-radius: 6rpx;
position: absolute;
bottom: 0;
background: linear-gradient(90deg,rgba(234, 248, 245,0.7),rgba(132, 211, 196,0.7));
}
.detail-foot-nav-text{
font-weight: bold;
font-size: 32rpx;
color: #000000;
}
.detail-foot-nav{
width: 90%;
display: flex;
flex-direction: column;
position: relative;
2024-06-27 21:26:16 +08:00
margin-bottom: 15px;
2024-06-12 15:52:21 +08:00
}
.detail-foot{
width: 100%;
display: flex;
flex-direction: column;
align-items: center;
2024-06-27 21:26:16 +08:00
padding: 5rpx 0rpx;
2024-07-04 10:46:53 +08:00
2024-06-27 21:26:16 +08:00
}
2024-06-12 15:52:21 +08:00
.tese span:nth-child(1){
font-weight: bold;
font-size: 22rpx;
color: #333333;
}
.tese span:nth-child(2){
font-weight: 400;
font-size: 22rpx;
color: #8D9194;
}
.tese{
width: 100%;
display: -webkit-box;
-webkit-box-orient: vertical;
-webkit-line-clamp: 2; /* 显示的行数,可以根据需要修改 */
overflow: hidden;
text-overflow: ellipsis;
}
.detail-foot-list-top span:nth-child(1){
font-weight: bold;
font-size: 31rpx;
color: #3F3F3F;
}
.detail-foot-list-top span:nth-child(2){
width: 76rpx;
height: 33rpx;
line-height: 33rpx;
text-align: center;
border-radius: 16rpx;
border: 1px solid #7D7D7D;
font-weight: 400;
font-size: 20rpx;
color: #777777;
margin: 0px 25px 0px 5px;
}
.detail-foot-list-top span:nth-child(3){
font-weight: 400;
font-size: 22rpx;
color: #777777;
}
.detail-foot-mian{
width: 95%;
display: flex;
flex-direction: column;
margin: 0 auto;
background-color: #fff;
border-radius: 21rpx;
padding: 15px;
2024-07-04 15:05:23 +08:00
margin-bottom: 20rpx;
2024-06-12 15:52:21 +08:00
}
.jianjie{
font-weight: 400;
font-size: 22rpx;
color: #8D9194;
display: -webkit-box;
-webkit-box-orient: vertical;
-webkit-line-clamp: 2; /* 显示的行数,可以根据需要修改 */
overflow: hidden;
text-overflow: ellipsis;
}
.header-bottom-mian{
margin: 10px 0px;
}
.header-bottom-mian-title{
width: 100%;
display: flex;
flex-direction: row;
align-items: center;
margin-bottom: 6px;
}
.header-bottom-mian-title span{
font-weight: 400;
font-size: 26rpx;
color: #20AB95;
margin-left: 5px;
}
.header-bottom-mian-title image{
width: 30.56rpx;
height: 29.86rpx;
}
.header-bottom-foot-view-img1{
2024-06-27 21:26:16 +08:00
width: 30rpx;
height: 30rpx;
2024-06-12 15:52:21 +08:00
}
.header-bottom-foot-view-img2{
2024-06-27 21:26:16 +08:00
width: 23rpx;
height: 23rpx;
2024-06-12 15:52:21 +08:00
}
.header-bottom-foot-view-img3{
2024-06-27 21:26:16 +08:00
width: 26rpx;
height: 26rpx;
2024-06-12 15:52:21 +08:00
}
.header-bottom-foot-view image{
2024-07-30 15:23:39 +08:00
margin-right: 1px;
2024-06-12 15:52:21 +08:00
}
.header-bottom-foot-view{
display: flex;
flex-direction: row;
align-items: center;
justify-content: center;
2024-06-27 21:26:16 +08:00
padding: 1px 8px;
2024-06-12 15:52:21 +08:00
height: 22px;
line-height: 22px;
2024-06-27 21:26:16 +08:00
border-radius: 15px;
2024-06-12 15:52:21 +08:00
font-weight: 400;
2024-07-30 15:23:39 +08:00
font-size: 11px;
2024-06-27 21:26:16 +08:00
color: #029c88;
2024-08-26 16:25:30 +08:00
word-break: keep-all;
2024-06-12 15:52:21 +08:00
}
2024-07-03 14:10:49 +08:00
.header-bottom-foot-view2-img1{
width: 35rpx;
height: 35rpx;
}
.header-bottom-foot-view2-img2{
width: 30rpx;
height: 30rpx;
}
.header-bottom-foot-view2-img3{
width: 32rpx;
height: 32rpx;
}
.header-bottom-foot-view2 image{
margin-right: 3px;
}
.header-bottom-foot-view2{
display: flex;
flex-direction: row;
align-items: center;
justify-content: center;
padding: 2px 20px;
height: 24px;
line-height: 24px;
background-color: rgba(230, 246, 243, 1);
border-radius: 30px;
font-weight: 400;
font-size: 11px;
color: #019c88;
margin: 5rpx auto;
}
2024-06-12 15:52:21 +08:00
.header-bottom-foot-title{
width:100%;
height: 22px;
line-height: 22px;
text-align: left;
font-weight: 600;
font-size: 23rpx;
color: #08A28A;
margin-top: 5px;
}
.header-bottom-foot-cont{
width: 100%;
display: flex;
flex-direction: row;
align-items: center;
justify-content: space-between;
}
2024-06-30 19:11:56 +08:00
.header-bottom-top-list{
width: 100%;
display: flex;
flex-direction: row;
align-items: center;
2024-07-03 14:10:49 +08:00
background-color: rgba(230, 246, 243, 0.6);
2024-06-30 19:11:56 +08:00
}
2024-06-12 15:52:21 +08:00
.header-bottom-foot{
width: 100%;
display: flex;
flex-direction: column;
align-items: center;
2024-07-30 15:23:39 +08:00
margin-top: 20rpx;
border-top: 1px solid #f7f7f7;
2024-07-31 17:39:21 +08:00
padding: 20rpx 0rpx 0rpx 0rpx;
2024-06-12 15:52:21 +08:00
}
.header-bottom-money-jia{
font-size: 28rpx;
color: #848484;
line-height: 37rpx;
text-decoration-line: line-through;
margin-left: 5px;
}
.header-bottom-money-zhen span{
2024-07-25 19:36:32 +08:00
color: #FF1200;
2024-06-12 15:52:21 +08:00
}
.header-bottom-money-zhen span:nth-child(1){
2024-07-31 17:39:21 +08:00
font-weight: 400;
font-size: 26rpx;
color: #FF6000;
2024-06-12 15:52:21 +08:00
}
.header-bottom-money-zhen span:nth-child(2){
2024-07-31 17:39:21 +08:00
font-size:38rpx;
2024-06-12 15:52:21 +08:00
font-weight: bold;
2024-07-31 17:39:21 +08:00
color: #FF6000;
line-height:32rpx;
2024-06-12 15:52:21 +08:00
}
.header-bottom-money-zhen span:nth-child(3){
2024-07-31 17:39:21 +08:00
font-size: 26rpx;
color: #FF6000;
2024-06-12 15:52:21 +08:00
}
.header-bottom-money-zhen{
display: flex;
flex-direction: row;
2024-07-31 17:39:21 +08:00
/*align-items: baseline;*/
align-items: center;
2024-06-12 15:52:21 +08:00
}
.header-bottom-money-view{
width: 100%;
display: flex;
flex-direction: row;
justify-content: space-between;
margin-top:5px;
}
.header-bottom-money{
width: 100%;
display: flex;
flex-direction: row;
2024-06-29 11:51:07 +08:00
align-items: center;
margin-top: 15rpx;
}
2024-06-12 15:52:21 +08:00
.header-bottom-title-num span{
2024-07-31 17:39:21 +08:00
font-size: 28rpx;
2024-06-12 15:52:21 +08:00
}
.header-bottom-title-num span:nth-child(1){
2024-06-29 11:51:07 +08:00
font-weight: bold;
2024-06-12 15:52:21 +08:00
color: #08A28A;
}
.header-bottom-title-num span:nth-child(2){
color: #848485;
margin-left: 5px;
}
.header-bottom-title-text{
font-weight: bold;
font-size: 35rpx;
color: #13141A;
}
.header-bottom-title{
width: 100%;
display: flex;
flex-direction: row;
align-items: center;
justify-content: space-between;
}
.header-bottom-top{
width: 100%;
display: flex;
flex-direction: column;
}
.header-bottom{
width: 100%;
background-color: #fff;
padding: 15px;
display: flex;
flex-direction: column;
2024-06-27 21:26:16 +08:00
margin-bottom: 20rpx;
2024-06-12 15:52:21 +08:00
}
.header-top image{
width: 706.25rpx;
height: 105.07rpx;
}
.header-top{
width: 100%;
height: 745.83rpx;
background-image: url('../../static/servicePackage/display.png');
background-size: 100%;
background-repeat: no-repeat;
display: flex;
align-items: flex-end;
justify-content: center;
}
.header{
width: 100%;
display: flex;
flex-direction: column;
}
.content{
width: 100%;
2024-07-03 22:44:38 +08:00
height: 100vh;
position: relative;
2024-06-12 15:52:21 +08:00
background-color: #f7f7f7;
2024-07-04 10:46:53 +08:00
display: flex;
flex-direction: column;
align-items: center;
2024-06-12 15:52:21 +08:00
}
</style>