|
|
|
@ -218,8 +218,48 @@
|
|
|
|
|
1、文字占位文字占位文字占位文字占位文字占位文字占位文字占位 2、文字占位文字占位文字占位文字占位文字占位文字占位文 |
|
|
|
|
</view> |
|
|
|
|
</uv-popup> |
|
|
|
|
<uv-popup ref="addServicePopup" mode="bottom" closeable safeAreaInsetTop safeAreaInsetBottom> |
|
|
|
|
|
|
|
|
|
<uv-popup ref="addServicePopup" mode="bottom" round="20" closeable safeAreaInsetTop safeAreaInsetBottom> |
|
|
|
|
<view class="pop-service-container"> |
|
|
|
|
<u-cell-group custom-style="max-height:700rpx;overflow:auto;"> |
|
|
|
|
<u-cell |
|
|
|
|
size="large" |
|
|
|
|
:title="item.name" |
|
|
|
|
isLink |
|
|
|
|
right-icon="" |
|
|
|
|
v-for="(item,index) in addServiceList" |
|
|
|
|
@click="selectAddService(item,index)" |
|
|
|
|
> |
|
|
|
|
<template #value> |
|
|
|
|
<view class=""> |
|
|
|
|
<view class="" style="display:flex;align-items: center"> |
|
|
|
|
<view class=""> |
|
|
|
|
<u-text :text="parseFloat(item.price)+'元'" size="32" style="white-space: nowrap;" line-height="32"></u-text> |
|
|
|
|
</view> |
|
|
|
|
<view class=""> |
|
|
|
|
<u-radio-group> |
|
|
|
|
<u-radio |
|
|
|
|
:customStyle="{marginBottom: '0',marginTop: '0',marginLeft:'15rpx'}" |
|
|
|
|
size="32" |
|
|
|
|
:checked="(addServiceChecked.indexOf(item.id))" |
|
|
|
|
@click="selectAddService(item)" |
|
|
|
|
> |
|
|
|
|
</u-radio> |
|
|
|
|
</u-radio-group> |
|
|
|
|
</view> |
|
|
|
|
</view> |
|
|
|
|
</view> |
|
|
|
|
</template> |
|
|
|
|
</u-cell> |
|
|
|
|
</u-cell-group> |
|
|
|
|
<view class="row"> |
|
|
|
|
<view class="col-6" style="padding:0 30rpx;"> |
|
|
|
|
<MzButton title="取消"></MzButton> |
|
|
|
|
</view> |
|
|
|
|
<view class="col-6" style="padding:0 30rpx;"> |
|
|
|
|
<MzButton title="确认" button-color="#4DC3B8" font-color="#fff"></MzButton> |
|
|
|
|
</view> |
|
|
|
|
</view> |
|
|
|
|
</view> |
|
|
|
|
</uv-popup> |
|
|
|
|
<!-- <RightNav></RightNav> --> |
|
|
|
|
</template> |
|
|
|
@ -286,7 +326,8 @@
|
|
|
|
|
pages:{ |
|
|
|
|
page:1, |
|
|
|
|
limit:10 |
|
|
|
|
} |
|
|
|
|
}, |
|
|
|
|
addServiceChecked:[], |
|
|
|
|
} |
|
|
|
|
}, |
|
|
|
|
onLoad(options) { |
|
|
|
@ -297,11 +338,17 @@
|
|
|
|
|
this.getDefaultAddress(); |
|
|
|
|
}, |
|
|
|
|
methods: { |
|
|
|
|
serverBottomLower(){ |
|
|
|
|
console.log(123123) |
|
|
|
|
}, |
|
|
|
|
showAddServicePopup(){ |
|
|
|
|
this.$refs.addServicePopup.open(); |
|
|
|
|
}, |
|
|
|
|
selectAddService(item){ |
|
|
|
|
|
|
|
|
|
if(!this.addServiceChecked.indexOf(item.id)){ |
|
|
|
|
this.addServiceChecked.push.apply(item.id); |
|
|
|
|
} |
|
|
|
|
console.log(this.addServiceChecked) |
|
|
|
|
}, |
|
|
|
|
getStoreServiceList(){ |
|
|
|
|
getStoreService({address_id: this.address.id}).then(res => { |
|
|
|
|