|
@@ -5,7 +5,7 @@
|
|
<view class="card_view">
|
|
<view class="card_view">
|
|
<!-- 放图片 标题 -->
|
|
<!-- 放图片 标题 -->
|
|
<view class="title">
|
|
<view class="title">
|
|
- <image src="https://zhengda.oss-cn-chengdu.aliyuncs.com/baoma/static/横占位图.png" class="img"></image>
|
|
|
|
|
|
+ <image :src="imghos+packs.image" class="img"></image>
|
|
</view>
|
|
</view>
|
|
<!-- 放描述 -->
|
|
<!-- 放描述 -->
|
|
<view class="describe">
|
|
<view class="describe">
|
|
@@ -58,7 +58,7 @@
|
|
<view @click="isqueren" style="height: 35rpx;width: auto;font-size: 24rpx;margin-left: 30rpx;display: flex;align-items: center;">
|
|
<view @click="isqueren" style="height: 35rpx;width: auto;font-size: 24rpx;margin-left: 30rpx;display: flex;align-items: center;">
|
|
<image :src="imgitem.name" mode="" style="width: 30rpx;height: 30rpx;margin-right: 10rpx;"></image>
|
|
<image :src="imgitem.name" mode="" style="width: 30rpx;height: 30rpx;margin-right: 10rpx;"></image>
|
|
<text style="color: #999999;">已阅读并同意</text>
|
|
<text style="color: #999999;">已阅读并同意</text>
|
|
- <text style="color: #0B73B9;">《熙宝HMO》</text>
|
|
|
|
|
|
+ <text style="color: #0B73B9;" @click.stop="gotoxieyi">《熙宝HMO》</text>
|
|
<text style="color: #999999;">服务协议</text>
|
|
<text style="color: #999999;">服务协议</text>
|
|
</view>
|
|
</view>
|
|
</view>
|
|
</view>
|
|
@@ -77,8 +77,8 @@
|
|
</view>
|
|
</view>
|
|
</view>
|
|
</view>
|
|
<u-popup v-model="show" mode="bottom" border-radius="14" height="300rpx">
|
|
<u-popup v-model="show" mode="bottom" border-radius="14" height="300rpx">
|
|
- <u-button open-type="contact" :custom-style="customStyle">会话客服</u-button>
|
|
|
|
- <u-button @click="playphone" :custom-style="customStyle">电话客服</u-button>
|
|
|
|
|
|
+ <u-button open-type="contact" :custom-style="customStyle">在线咨询</u-button>
|
|
|
|
+ <u-button @click="playphone" :custom-style="customStyle">电话咨询</u-button>
|
|
</u-popup>
|
|
</u-popup>
|
|
</view>
|
|
</view>
|
|
</template>
|
|
</template>
|
|
@@ -88,6 +88,13 @@
|
|
name: 'productdetailspage',
|
|
name: 'productdetailspage',
|
|
onLoad(op) {
|
|
onLoad(op) {
|
|
this.serviceid = op.id
|
|
this.serviceid = op.id
|
|
|
|
+ this.$util.getAgreement().then(res => {
|
|
|
|
+ this.service_protocol = res.data.service_protocol
|
|
|
|
+ this.phone = res.data.phone
|
|
|
|
+ }).catch(err => {
|
|
|
|
+
|
|
|
|
+ })
|
|
|
|
+ this.imghos = this.$imgHost
|
|
},
|
|
},
|
|
mounted() {
|
|
mounted() {
|
|
this.getservice()
|
|
this.getservice()
|
|
@@ -108,13 +115,21 @@
|
|
customStyle: {
|
|
customStyle: {
|
|
width: '600rpx',
|
|
width: '600rpx',
|
|
marginTop: "35rpx"
|
|
marginTop: "35rpx"
|
|
- }
|
|
|
|
|
|
+ },
|
|
|
|
+ service_protocol:"",
|
|
|
|
+ phone:"",
|
|
|
|
+ imghos:""
|
|
}
|
|
}
|
|
},
|
|
},
|
|
methods: {
|
|
methods: {
|
|
|
|
+ gotoxieyi(){
|
|
|
|
+ uni.navigateTo({
|
|
|
|
+ url: "../index/agreement?data=" + this.service_protocol
|
|
|
|
+ })
|
|
|
|
+ },
|
|
playphone() {
|
|
playphone() {
|
|
uni.makePhoneCall({
|
|
uni.makePhoneCall({
|
|
- phoneNumber: "123456"
|
|
|
|
|
|
+ phoneNumber: this.phone
|
|
})
|
|
})
|
|
this.show = false
|
|
this.show = false
|
|
},
|
|
},
|