|
@@ -9,23 +9,22 @@
|
|
</view>
|
|
</view>
|
|
<!-- 放描述 -->
|
|
<!-- 放描述 -->
|
|
<view class="describe">
|
|
<view class="describe">
|
|
- <view style="font-size: 40rpx;font-weight: bold;">{{tcID}}</view>
|
|
|
|
|
|
+ <view style="font-size: 40rpx;font-weight: bold;">{{packs.name}}</view>
|
|
<view style="font-size: 28rpx;font-weight: bold;padding-top: 60rpx;">有效期</view>
|
|
<view style="font-size: 28rpx;font-weight: bold;padding-top: 60rpx;">有效期</view>
|
|
- <view style="font-size: 26rpx;color: #999999;padding-top: 30rpx;">自购买服务起{{tcTime}}</view>
|
|
|
|
|
|
+ <view style="font-size: 26rpx;color: #999999;padding-top: 30rpx;">自购买服务起{{packs.effective_days}}天</view>
|
|
<view style="font-size: 28rpx;font-weight: bold;padding-top: 50rpx;">服务包内容介绍</view>
|
|
<view style="font-size: 28rpx;font-weight: bold;padding-top: 50rpx;">服务包内容介绍</view>
|
|
<view style="font-size: 26rpx;color: #999999;">
|
|
<view style="font-size: 26rpx;color: #999999;">
|
|
- <view style="padding: 27rpx 0 12rpx 0;">{{tcContent.content}}</view>
|
|
|
|
- <view style="padding: 12rpx 0;">{{tcContent.scope}}</view>
|
|
|
|
- <view style="padding: 12rpx 0;">{{tcContent.giving}}</view>
|
|
|
|
|
|
+ <view style="padding: 27rpx 0 12rpx 0;">{{packs.intro}}</view>
|
|
|
|
+ <view style="padding: 12rpx 0;">{{packs.desc}}</view>
|
|
</view>
|
|
</view>
|
|
- <view style="font-size: 28rpx;font-weight: bold;padding-top: 48rpx;">家属团队</view>
|
|
|
|
- <view class="list" v-for="item,index in tcTeam" :key='index'>
|
|
|
|
|
|
+ <view style="font-size: 28rpx;font-weight: bold;padding-top: 48rpx;">{{packs.team.name}}</view>
|
|
|
|
+ <view class="list" v-for="(item,index) in packs.team.docter" :key='index'>
|
|
<!-- 头像 -->
|
|
<!-- 头像 -->
|
|
<view class="portrait">
|
|
<view class="portrait">
|
|
<view style="padding-top: 20rpx;">
|
|
<view style="padding-top: 20rpx;">
|
|
- <image class="img" src="https://zhengda.oss-cn-chengdu.aliyuncs.com/baoma/static/头像.png"></image>
|
|
|
|
- <view class="bun_true" @click="follow" :data-index="index" v-if="!item.follow">关注</view>
|
|
|
|
- <view class="bun_false" @click="follow" :data-index="index" v-else>已关注</view>
|
|
|
|
|
|
+ <image class="img" :src="item.avatar"></image>
|
|
|
|
+ <view class="bun_true" @click="submitCollect" :data-index="index" :data-id="item.id" v-if="item.is_collect==0">关注</view>
|
|
|
|
+ <view class="bun_false" @click="submitCollect" :data-index="index" :data-id="item.id" v-else>已关注</view>
|
|
</view>
|
|
</view>
|
|
</view>
|
|
</view>
|
|
<!-- 文字 -->
|
|
<!-- 文字 -->
|
|
@@ -33,20 +32,19 @@
|
|
<!-- 名字+标签 -->
|
|
<!-- 名字+标签 -->
|
|
<view class="name">
|
|
<view class="name">
|
|
<view style="margin-right: 15rpx;">{{item.name}}</view>
|
|
<view style="margin-right: 15rpx;">{{item.name}}</view>
|
|
- <view class="label">{{item.label1}}</view>
|
|
|
|
- <view class="label">{{item.label2}}</view>
|
|
|
|
|
|
+ <view class="label" v-for="(itm,idx) in item.label">{{itm}}</view>
|
|
</view>
|
|
</view>
|
|
<!-- 科室 -->
|
|
<!-- 科室 -->
|
|
<view class="department">
|
|
<view class="department">
|
|
<text>科室:</text>
|
|
<text>科室:</text>
|
|
- <text style="color: #333333;">{{item.department1}}</text>
|
|
|
|
- <text style="color: #333333;">{{item.department2}}</text>
|
|
|
|
|
|
+ <text style="color: #333333;">{{}}</text>
|
|
|
|
+ <text style="color: #333333;">{{}}</text>
|
|
</view>
|
|
</view>
|
|
<!-- 选项 -->
|
|
<!-- 选项 -->
|
|
<view class="option">
|
|
<view class="option">
|
|
- <view>图文</view>
|
|
|
|
- <view>电话</view>
|
|
|
|
- <view>门诊</view>
|
|
|
|
|
|
+ <view v-if="item.is_chat">图文</view>
|
|
|
|
+ <view v-if="item.is_phone">电话</view>
|
|
|
|
+ <view v-if="item.is_appoint">门诊</view>
|
|
</view>
|
|
</view>
|
|
</view>
|
|
</view>
|
|
</view>
|
|
</view>
|
|
@@ -82,6 +80,12 @@
|
|
<script>
|
|
<script>
|
|
export default {
|
|
export default {
|
|
name: 'productdetailspage',
|
|
name: 'productdetailspage',
|
|
|
|
+ onLoad(op) {
|
|
|
|
+ this.serviceid = op.id
|
|
|
|
+ },
|
|
|
|
+ mounted() {
|
|
|
|
+ this.getservice()
|
|
|
|
+ },
|
|
data() {
|
|
data() {
|
|
return {
|
|
return {
|
|
//关注
|
|
//关注
|
|
@@ -92,93 +96,41 @@
|
|
istrue: false,
|
|
istrue: false,
|
|
name: "https://zhengda.oss-cn-chengdu.aliyuncs.com/baoma/static/img/xieyi.png"
|
|
name: "https://zhengda.oss-cn-chengdu.aliyuncs.com/baoma/static/img/xieyi.png"
|
|
},
|
|
},
|
|
- tcID: '套餐一', //ID
|
|
|
|
- tcTime: '一年', //套餐有效期
|
|
|
|
- tcContent: { //套餐内容
|
|
|
|
- content: '套餐一包含包含疫苗接种、门诊预约、儿保预约三项服务', //内容
|
|
|
|
- scope: '使用范围:家医团队可用,有效期内无限次、300元额度以内门诊预约与儿保预约无限制', //范围
|
|
|
|
- giving: '赠送XXXX保险:保险介绍' //赠送
|
|
|
|
- },
|
|
|
|
- tcTeam: [{
|
|
|
|
- id: '1',
|
|
|
|
- name: '熊大',
|
|
|
|
- label1: '熊',
|
|
|
|
- label2: '主角',
|
|
|
|
- department1: '外科',
|
|
|
|
- department2: '主任医师',
|
|
|
|
- follow: false
|
|
|
|
- }, {
|
|
|
|
- id: '2',
|
|
|
|
- name: '熊二',
|
|
|
|
- label1: '熊',
|
|
|
|
- label2: '主角',
|
|
|
|
- department1: '外科',
|
|
|
|
- department2: '主任医师',
|
|
|
|
- follow: false
|
|
|
|
- }, {
|
|
|
|
- id: '3',
|
|
|
|
- name: '光头强',
|
|
|
|
- label1: '人',
|
|
|
|
- label2: '主角',
|
|
|
|
- department1: '外科',
|
|
|
|
- department2: '主任医师',
|
|
|
|
- follow: false
|
|
|
|
- }, {
|
|
|
|
- id: '4',
|
|
|
|
- name: '李老板',
|
|
|
|
- label1: '人',
|
|
|
|
- label2: '配角',
|
|
|
|
- department1: '外科',
|
|
|
|
- department2: '主任医师',
|
|
|
|
- follow: false
|
|
|
|
- }, {
|
|
|
|
- id: '5',
|
|
|
|
- name: '吉吉国王',
|
|
|
|
- label1: '猴子',
|
|
|
|
- label2: '配角',
|
|
|
|
- department1: '外科',
|
|
|
|
- department2: '主任医师',
|
|
|
|
- follow: false
|
|
|
|
- }, {
|
|
|
|
- id: '6',
|
|
|
|
- name: '毛毛',
|
|
|
|
- label1: '猴子',
|
|
|
|
- label2: '配角',
|
|
|
|
- department1: '外科',
|
|
|
|
- department2: '主任医师',
|
|
|
|
- follow: false
|
|
|
|
- }, {
|
|
|
|
- id: '7',
|
|
|
|
- name: '蹦蹦',
|
|
|
|
- label1: '猴子',
|
|
|
|
- label2: '配角',
|
|
|
|
- department1: '外科',
|
|
|
|
- department2: '主任医师',
|
|
|
|
- follow: false
|
|
|
|
- }],
|
|
|
|
- packs: {
|
|
|
|
- id: '', //ID
|
|
|
|
- name: '', //名称
|
|
|
|
- intro: '', //简介
|
|
|
|
- desc: '', //详细介绍
|
|
|
|
- price: '', //价格(单位分)
|
|
|
|
- team_id: '', //医生团队ID
|
|
|
|
- phone_minutes: '', //电话分钟数
|
|
|
|
- chat_num: '', //图文咨询次数
|
|
|
|
- appoint_num: '', //门诊预约次数
|
|
|
|
- vaccine_limit_amount: '', //疫苗总金额限制
|
|
|
|
- nurses_limit_amount: '', //儿保总金额限制
|
|
|
|
- effective_days: '', //有效天数
|
|
|
|
- created_at: '', //创建时间
|
|
|
|
- updated_at: '' //更新时间
|
|
|
|
- }
|
|
|
|
|
|
+ packs: {},
|
|
|
|
+ serviceid: ""
|
|
}
|
|
}
|
|
},
|
|
},
|
|
methods: {
|
|
methods: {
|
|
//关注
|
|
//关注
|
|
- follow(e) {
|
|
|
|
- console.log(this.tcTeam[e.currentTarget.dataset.index])
|
|
|
|
-
|
|
|
|
|
|
+ submitCollect: async function(e) {
|
|
|
|
+ console.log(e)
|
|
|
|
+ let res = await this.$request.post("/api/v1/collection/submitCollect", {
|
|
|
|
+ type: 1,
|
|
|
|
+ relation_id: e.currentTarget.dataset.id
|
|
|
|
+ })
|
|
|
|
+ if (res.status == 0) {
|
|
|
|
+ if (res.data.is_collect == 0) {
|
|
|
|
+ uni.showToast({
|
|
|
|
+ title: "取消成功",
|
|
|
|
+ icon: "none"
|
|
|
|
+ })
|
|
|
|
+ this.packs.team.docter[e.currentTarget.dataset.index].is_collect = res.data.is_collect
|
|
|
|
+ } else {
|
|
|
|
+ uni.showToast({
|
|
|
|
+ title: "关注成功",
|
|
|
|
+ icon: "none"
|
|
|
|
+ })
|
|
|
|
+ this.packs.team.docter[e.currentTarget.dataset.index].is_collect = res.data.is_collect
|
|
|
|
+ }
|
|
|
|
+ }
|
|
|
|
+ },
|
|
|
|
+ getservice: async function() {
|
|
|
|
+ let res = await this.$request.post("/api/v1/ServicePack/servicePackDetail", {
|
|
|
|
+ service_pack_id: this.serviceid
|
|
|
|
+ })
|
|
|
|
+ if (res.status == 0) {
|
|
|
|
+ this.packs = res.data
|
|
|
|
+ }
|
|
},
|
|
},
|
|
isqueren() {
|
|
isqueren() {
|
|
this.num++
|
|
this.num++
|
|
@@ -192,7 +144,7 @@
|
|
}
|
|
}
|
|
},
|
|
},
|
|
next(e) {
|
|
next(e) {
|
|
- if (this.imgitem.istrue == false) {
|
|
|
|
|
|
+ if (!this.imgitem.istrue) {
|
|
uni.showToast({
|
|
uni.showToast({
|
|
icon: 'none',
|
|
icon: 'none',
|
|
position: 'bottom',
|
|
position: 'bottom',
|
|
@@ -344,6 +296,7 @@
|
|
margin-right: 15rpx;
|
|
margin-right: 15rpx;
|
|
}
|
|
}
|
|
}
|
|
}
|
|
|
|
+
|
|
// 选项
|
|
// 选项
|
|
.option {
|
|
.option {
|
|
display: flex;
|
|
display: flex;
|