|
@@ -21,8 +21,17 @@
|
|
|
<div class="picBox" @click="changeGoods(item)">
|
|
|
<Button type="primary" v-if="!item.product_id">选择服务项目</Button>
|
|
|
<template v-else>
|
|
|
+ <viewer>
|
|
|
+ <img class="product_img" :src="item.slider_image" alt="" />
|
|
|
+ </viewer>
|
|
|
<div class="">
|
|
|
- {{item.store_name}} ( 原价 {{ showPrice(item.product_id) }} 元)
|
|
|
+ {{item.store_name}}
|
|
|
+ </div>
|
|
|
+ <div class="">
|
|
|
+ 商品原价: {{ showPrice(item.product_id).price }} 元
|
|
|
+ </div>
|
|
|
+ <div class="">
|
|
|
+ 商品ID:{{item.product_id}}
|
|
|
</div>
|
|
|
<Button type="primary" >切换服务项目</Button>
|
|
|
</template>
|
|
@@ -150,7 +159,7 @@
|
|
|
return i.id == id
|
|
|
})
|
|
|
if(item) {
|
|
|
- return item.price
|
|
|
+ return item
|
|
|
}else {
|
|
|
return ''
|
|
|
}
|
|
@@ -360,6 +369,10 @@
|
|
|
</script>
|
|
|
|
|
|
<style scoped lang="stylus">
|
|
|
+ .product_img{
|
|
|
+ width:100px;
|
|
|
+ height:100px;
|
|
|
+ }
|
|
|
.tips {
|
|
|
display: inline-bolck;
|
|
|
font-size: 12px;
|