|
|
|
@ -62,27 +62,20 @@
|
|
|
|
|
<u-icon name="arrow-right"></u-icon> |
|
|
|
|
</view> |
|
|
|
|
</view> |
|
|
|
|
<view class="order-item row"> |
|
|
|
|
<view class="order-item row" @click="showAddServicePopup"> |
|
|
|
|
<view class="item-title"> |
|
|
|
|
增值服务 |
|
|
|
|
</view> |
|
|
|
|
<view class="item-content row col"> |
|
|
|
|
<view class="item-content-tag"> |
|
|
|
|
<view class="tag-text"> |
|
|
|
|
洗澡 |
|
|
|
|
</view> |
|
|
|
|
<view class="tag-close"> |
|
|
|
|
<image mode="heightFix" class="img" :src="staticImage.tagClose"/> |
|
|
|
|
</view> |
|
|
|
|
</view> |
|
|
|
|
<view class="item-content-tag"> |
|
|
|
|
<view class="item-content-tag" v-for="i of 3"> |
|
|
|
|
<view class="tag-text"> |
|
|
|
|
剪指甲 |
|
|
|
|
洗澡{{i}} |
|
|
|
|
</view> |
|
|
|
|
<view class="tag-close"> |
|
|
|
|
<image mode="heightFix" class="img" :src="staticImage.tagClose"/> |
|
|
|
|
</view> |
|
|
|
|
</view> |
|
|
|
|
|
|
|
|
|
</view> |
|
|
|
|
<view class="item-icon"> |
|
|
|
|
<u-icon name="arrow-right"></u-icon> |
|
|
|
@ -146,12 +139,12 @@
|
|
|
|
|
<view class="order-item pet-page-item row"> |
|
|
|
|
<view class="order-item-container row" > |
|
|
|
|
|
|
|
|
|
<view class="order-item-col col-4" v-for="(item,index) in [1,2,3]"> |
|
|
|
|
<view class="order-item-col col-4" v-for="(item,index) in basicServiceList"> |
|
|
|
|
<view class="order-item-content-group"> |
|
|
|
|
<view class="count-group-content"> |
|
|
|
|
<image mode="heightFix" class="img" :src="staticImage.groupImg"/> |
|
|
|
|
<view class="group-title">专业服务</view> |
|
|
|
|
<view class="group-desc">标准</view> |
|
|
|
|
<image mode="heightFix" class="img" :src="item.logo||staticImage.groupImg"/> |
|
|
|
|
<view class="group-title">{{item.name}}</view> |
|
|
|
|
<view class="group-desc">{{parseFloat(item.price)}}/次</view> |
|
|
|
|
<view class="group-checkbox"> |
|
|
|
|
<u-radio |
|
|
|
|
:customStyle="{marginBottom: '8px'}" |
|
|
|
@ -224,6 +217,9 @@
|
|
|
|
|
<view style="padding:30rpx;"> |
|
|
|
|
1、文字占位文字占位文字占位文字占位文字占位文字占位文字占位 2、文字占位文字占位文字占位文字占位文字占位文字占位文 |
|
|
|
|
</view> |
|
|
|
|
</uv-popup> |
|
|
|
|
<uv-popup ref="addServicePopup" mode="bottom" closeable safeAreaInsetTop safeAreaInsetBottom> |
|
|
|
|
|
|
|
|
|
</uv-popup> |
|
|
|
|
<!-- <RightNav></RightNav> --> |
|
|
|
|
</template> |
|
|
|
@ -241,6 +237,7 @@
|
|
|
|
|
import {cardDetail} from "@/api/card"; |
|
|
|
|
import {getAddressList} from "@/api/address"; |
|
|
|
|
import image from "@/config/image"; |
|
|
|
|
import {getStoreService} from "@/api/order"; |
|
|
|
|
export default { |
|
|
|
|
components: { |
|
|
|
|
HeaderNav, |
|
|
|
@ -284,6 +281,12 @@
|
|
|
|
|
is_timeout: false, |
|
|
|
|
}], |
|
|
|
|
address:{}, |
|
|
|
|
addServiceList:[], |
|
|
|
|
basicServiceList:[], |
|
|
|
|
pages:{ |
|
|
|
|
page:1, |
|
|
|
|
limit:10 |
|
|
|
|
} |
|
|
|
|
} |
|
|
|
|
}, |
|
|
|
|
onLoad(options) { |
|
|
|
@ -294,6 +297,18 @@
|
|
|
|
|
this.getDefaultAddress(); |
|
|
|
|
}, |
|
|
|
|
methods: { |
|
|
|
|
showAddServicePopup(){ |
|
|
|
|
this.$refs.addServicePopup.open(); |
|
|
|
|
}, |
|
|
|
|
selectAddService(item){ |
|
|
|
|
|
|
|
|
|
}, |
|
|
|
|
getStoreServiceList(){ |
|
|
|
|
getStoreService({address_id: this.address.id}).then(res => { |
|
|
|
|
this.addServiceList = res.data.add_service; |
|
|
|
|
this.basicServiceList = res.data.basic_service; |
|
|
|
|
}); |
|
|
|
|
}, |
|
|
|
|
getDefaultAddress() { |
|
|
|
|
let cacheAddress = uni.getStorageSync('address'); |
|
|
|
|
if (cacheAddress) { |
|
|
|
@ -301,14 +316,16 @@
|
|
|
|
|
console.log(cacheAddress) |
|
|
|
|
this.address = cacheAddress; |
|
|
|
|
} else { |
|
|
|
|
getAddressList({}).then(res => { |
|
|
|
|
getAddressList(this.pages).then(res => { |
|
|
|
|
res.data.forEach(item => { |
|
|
|
|
if (item.is_default === 1) { |
|
|
|
|
this.address = item; |
|
|
|
|
} |
|
|
|
|
}); |
|
|
|
|
}) |
|
|
|
|
console.log(this.address) |
|
|
|
|
} |
|
|
|
|
if(this.address.id){ |
|
|
|
|
this.getStoreServiceList(); |
|
|
|
|
} |
|
|
|
|
}, |
|
|
|
|
delTime(index){ |
|
|
|
|