Browse Source

修改问题

1.卡详情下单报错不能再次下单
2.开始服务订单字段名称显示错误
3.洗澡页面小于3个时平均分布
master
396316021 1 year ago
parent
commit
b4a5945c0c
  1. 23
      components/PetPage/index.vue
  2. 3
      pages/CardDetail/index.vue
  3. 2
      pages/OrderConfirm/start.vue
  4. 2
      pages/OrderPage/index.vue

23
components/PetPage/index.vue

@ -775,22 +775,21 @@
this.data.is_health_name = res.name;
}
});
this.avatarList = res.data.avatar ? res.data.avatar.split(',').map(item => {
this.avatarList = res.data.avatar!=='' ? res.data.avatar.split(',').map(item => {
return {url:item};
}) : [];
if((res.data.images && res.data.images.length > 0)){
this.imagesList = res.data.images.map(item => {
this.imagesList = res.data.images ? res.data.images.map(item => {
return {url:item};
});
}
}):[];
this.videoList = res.data.video ? res.data.video.split(',').map(item => {
this.videoList = res.data.video!=='' ? res.data.video.split(',').map(item => {
return {url:item};
}):[];
this.backgroundList = res.data.background_image && res.data.background_image.split(',').map(item => {
return {url:item};
});
// this.backgroundList = res.data.background_image && res.data.background_image.split(',').map(item => {
// return {url:item};
// });
})
},
async afterImgRead (event){
@ -953,9 +952,9 @@
this.data.video = this.videoList.map(item => {
return item.url;
}).join(',');
this.data.background_image = this.backgroundList.map(item => {
return item.url;
}).join(',');
// this.data.background_image = this.backgroundList.map(item => {
// return item.url;
// }).join(',');
this.data.images = this.imagesList.map(item => {
return item.url;
}).join(',');

3
pages/CardDetail/index.vue

@ -357,6 +357,9 @@ export default {
this.isPay = false;
api.error('支付失败')
})
}).catch(err => {
this.isPay = false;
api.error(err.msg)
});
},
getCardDetail() {

2
pages/OrderConfirm/start.vue

@ -182,7 +182,7 @@
<!-- <u-text text="协议内容" size="38" color="#191919"></u-text>-->
<view class="" style="position: relative;display:inline-block;">
<view style="color:#191919;font-size:30rpx;display:inline-block;position: relative;z-index: 2;">全身消毒</view>
<view style="color:#191919;font-size:30rpx;display:inline-block;position: relative;z-index: 2;">钥匙开启/收取</view>
<view class="background" style="width:100%;height:50%;position: absolute;bottom:0;left:0;background-color:rgba(227, 191, 119, 0.6);display:inline-block;z-index:1;"></view>
</view>
</view>

2
pages/OrderPage/index.vue

@ -157,7 +157,7 @@
<image mode="heightFix" class="img" :src="staticImage.selectService"/>
</view>
<view class="order-item pet-page-item row">
<view class="order-item-container row" >
<view class="order-item-container row" :style="{justifyContent:basicServiceList.length === 3 ?'flex-start':'space-around'}">
<view class="order-item-col col-4" @click="radioChange(item)" v-for="(item,index) in basicServiceList">
<view class="order-item-content-group">

Loading…
Cancel
Save