|
@@ -2,7 +2,7 @@
|
|
<view style="width: 100%;height: 100%;">
|
|
<view style="width: 100%;height: 100%;">
|
|
<u-gap height="20" bg-color="#f3f3f3"></u-gap>
|
|
<u-gap height="20" bg-color="#f3f3f3"></u-gap>
|
|
<!-- 电话咨询 -->
|
|
<!-- 电话咨询 -->
|
|
- <view class="v">
|
|
|
|
|
|
+ <view class="v" v-show="showList[0].flag">
|
|
<!-- 标题 -->
|
|
<!-- 标题 -->
|
|
<view class="title">电话咨询</view>
|
|
<view class="title">电话咨询</view>
|
|
<!-- 线 -->
|
|
<!-- 线 -->
|
|
@@ -12,7 +12,7 @@
|
|
<!-- 左 -->
|
|
<!-- 左 -->
|
|
<view class="left">
|
|
<view class="left">
|
|
<view class="t1">基础价格<text style="font-size: 24rpx;color: #666666;margin-left: 10rpx;">(元)</text></view>
|
|
<view class="t1">基础价格<text style="font-size: 24rpx;color: #666666;margin-left: 10rpx;">(元)</text></view>
|
|
- <view class="t2">基础价格为包含十分钟的起步价</view>
|
|
|
|
|
|
+ <view class="t2">基础价格为包含十分钟的起步价</view>
|
|
</view>
|
|
</view>
|
|
<!-- 右 -->
|
|
<!-- 右 -->
|
|
<view class="right">
|
|
<view class="right">
|
|
@@ -28,7 +28,7 @@
|
|
</view>
|
|
</view>
|
|
<!-- 右 -->
|
|
<!-- 右 -->
|
|
<view class="right">
|
|
<view class="right">
|
|
- <u-input v-model="tlePhone.additional" type="text" :border="true" placeholder="请输入金额" />
|
|
|
|
|
|
+ <u-input v-model="telePhone.additional" type="text" :border="true" placeholder="请输入金额" />
|
|
</view>
|
|
</view>
|
|
</view>
|
|
</view>
|
|
<!-- 服务时间 -->
|
|
<!-- 服务时间 -->
|
|
@@ -57,7 +57,7 @@
|
|
<!-- 按钮 -->
|
|
<!-- 按钮 -->
|
|
<u-checkbox @change="" v-model="item.checked" shape="circle" size="40">
|
|
<u-checkbox @change="" v-model="item.checked" shape="circle" size="40">
|
|
</u-checkbox>
|
|
</u-checkbox>
|
|
- <text style="display:flex;width: 50%;font-size: 28rpx;">{{item.name}}</text>
|
|
|
|
|
|
+ <text style="display:flex;width: 55%;font-size: 28rpx;">{{item.name}}</text>
|
|
</view>
|
|
</view>
|
|
</u-checkbox-group>
|
|
</u-checkbox-group>
|
|
</view>
|
|
</view>
|
|
@@ -82,7 +82,7 @@
|
|
<u-checkbox @change="" v-model="item.checked" shape="circle" size="40">
|
|
<u-checkbox @change="" v-model="item.checked" shape="circle" size="40">
|
|
</u-checkbox>
|
|
</u-checkbox>
|
|
<!-- 字体 -->
|
|
<!-- 字体 -->
|
|
- <text style="display:flex;width: 50%;font-size: 28rpx;">{{item.name}}</text>
|
|
|
|
|
|
+ <text style="display:flex;width: 55%;font-size: 28rpx;">{{item.name}}</text>
|
|
</view>
|
|
</view>
|
|
</u-checkbox-group>
|
|
</u-checkbox-group>
|
|
</view>
|
|
</view>
|
|
@@ -106,7 +106,7 @@
|
|
<!-- 按钮 -->
|
|
<!-- 按钮 -->
|
|
<u-checkbox @change="" v-model="item.checked" shape="circle" size="40">
|
|
<u-checkbox @change="" v-model="item.checked" shape="circle" size="40">
|
|
</u-checkbox>
|
|
</u-checkbox>
|
|
- <text style="display:flex;width: 50%;font-size: 28rpx;">{{item.name}}</text>
|
|
|
|
|
|
+ <text style="display:flex;width: 55%;font-size: 28rpx;">{{item.name}}</text>
|
|
</view>
|
|
</view>
|
|
</u-checkbox-group>
|
|
</u-checkbox-group>
|
|
</view>
|
|
</view>
|
|
@@ -124,7 +124,7 @@
|
|
</view>
|
|
</view>
|
|
<!-- 右 -->
|
|
<!-- 右 -->
|
|
<view class="right">
|
|
<view class="right">
|
|
- <u-input v-model="tlePhone.peopleNum" type="text" :border="true" placeholder="请输入人次" />
|
|
|
|
|
|
+ <u-input v-model="telePhone.peopleNum" type="text" :border="true" placeholder="请输入人次" />
|
|
</view>
|
|
</view>
|
|
</view>
|
|
</view>
|
|
</view>
|
|
</view>
|
|
@@ -132,7 +132,7 @@
|
|
<u-gap height="20" bg-color="#f3f3f3"></u-gap>
|
|
<u-gap height="20" bg-color="#f3f3f3"></u-gap>
|
|
|
|
|
|
<!-- 图文咨询 -->
|
|
<!-- 图文咨询 -->
|
|
- <view class="v">
|
|
|
|
|
|
+ <view class="v" v-show="showList[1].flag">
|
|
<!-- 标题 -->
|
|
<!-- 标题 -->
|
|
<view class="title">图文咨询</view>
|
|
<view class="title">图文咨询</view>
|
|
<!-- 线 -->
|
|
<!-- 线 -->
|
|
@@ -175,7 +175,7 @@
|
|
<!-- 按钮 -->
|
|
<!-- 按钮 -->
|
|
<u-checkbox @change="" v-model="item.checked" shape="circle" size="40">
|
|
<u-checkbox @change="" v-model="item.checked" shape="circle" size="40">
|
|
</u-checkbox>
|
|
</u-checkbox>
|
|
- <text style="display:flex;width: 50%;font-size: 28rpx;">{{item.name}}</text>
|
|
|
|
|
|
+ <text style="display:flex;width: 55%;font-size: 28rpx;">{{item.name}}</text>
|
|
</view>
|
|
</view>
|
|
</u-checkbox-group>
|
|
</u-checkbox-group>
|
|
</view>
|
|
</view>
|
|
@@ -200,7 +200,7 @@
|
|
<u-checkbox @change="" v-model="item.checked" shape="circle" size="40">
|
|
<u-checkbox @change="" v-model="item.checked" shape="circle" size="40">
|
|
</u-checkbox>
|
|
</u-checkbox>
|
|
<!-- 字体 -->
|
|
<!-- 字体 -->
|
|
- <text style="display:flex;width: 50%;font-size: 28rpx;">{{item.name}}</text>
|
|
|
|
|
|
+ <text style="display:flex;width: 55%;font-size: 28rpx;">{{item.name}}</text>
|
|
</view>
|
|
</view>
|
|
</u-checkbox-group>
|
|
</u-checkbox-group>
|
|
</view>
|
|
</view>
|
|
@@ -224,7 +224,7 @@
|
|
<!-- 按钮 -->
|
|
<!-- 按钮 -->
|
|
<u-checkbox @change="" v-model="item.checked" shape="circle" size="40">
|
|
<u-checkbox @change="" v-model="item.checked" shape="circle" size="40">
|
|
</u-checkbox>
|
|
</u-checkbox>
|
|
- <text style="display:flex;width: 50%;font-size: 28rpx;">{{item.name}}</text>
|
|
|
|
|
|
+ <text style="display:flex;width: 55%;font-size: 28rpx;">{{item.name}}</text>
|
|
</view>
|
|
</view>
|
|
</u-checkbox-group>
|
|
</u-checkbox-group>
|
|
</view>
|
|
</view>
|
|
@@ -250,7 +250,7 @@
|
|
<u-gap height="20" bg-color="#f3f3f3"></u-gap>
|
|
<u-gap height="20" bg-color="#f3f3f3"></u-gap>
|
|
|
|
|
|
<!-- 门诊预约 -->
|
|
<!-- 门诊预约 -->
|
|
- <view class="v">
|
|
|
|
|
|
+ <view class="v" v-show="showList[2].flag">
|
|
<!-- 标题 -->
|
|
<!-- 标题 -->
|
|
<view class="title">门诊预约</view>
|
|
<view class="title">门诊预约</view>
|
|
<!-- 线 -->
|
|
<!-- 线 -->
|
|
@@ -299,7 +299,7 @@
|
|
<!-- 按钮 -->
|
|
<!-- 按钮 -->
|
|
<u-checkbox @change="" v-model="item.checked" shape="circle" size="40">
|
|
<u-checkbox @change="" v-model="item.checked" shape="circle" size="40">
|
|
</u-checkbox>
|
|
</u-checkbox>
|
|
- <text style="display:flex;width: 50%;font-size: 28rpx;">{{item.name}}</text>
|
|
|
|
|
|
+ <text style="display:flex;width: 55%;font-size: 28rpx;">{{item.name}}</text>
|
|
</view>
|
|
</view>
|
|
</u-checkbox-group>
|
|
</u-checkbox-group>
|
|
</view>
|
|
</view>
|
|
@@ -324,7 +324,7 @@
|
|
<u-checkbox @change="" v-model="item.checked" shape="circle" size="40">
|
|
<u-checkbox @change="" v-model="item.checked" shape="circle" size="40">
|
|
</u-checkbox>
|
|
</u-checkbox>
|
|
<!-- 字体 -->
|
|
<!-- 字体 -->
|
|
- <text style="display:flex;width: 50%;font-size: 28rpx;">{{item.name}}</text>
|
|
|
|
|
|
+ <text style="display:flex;width: 55%;font-size: 28rpx;">{{item.name}}</text>
|
|
</view>
|
|
</view>
|
|
</u-checkbox-group>
|
|
</u-checkbox-group>
|
|
</view>
|
|
</view>
|
|
@@ -348,7 +348,7 @@
|
|
<!-- 按钮 -->
|
|
<!-- 按钮 -->
|
|
<u-checkbox @change="" v-model="item.checked" shape="circle" size="40">
|
|
<u-checkbox @change="" v-model="item.checked" shape="circle" size="40">
|
|
</u-checkbox>
|
|
</u-checkbox>
|
|
- <text style="display:flex;width: 50%;font-size: 28rpx;">{{item.name}}</text>
|
|
|
|
|
|
+ <text style="display:flex;width: 55%;font-size: 28rpx;">{{item.name}}</text>
|
|
</view>
|
|
</view>
|
|
</u-checkbox-group>
|
|
</u-checkbox-group>
|
|
</view>
|
|
</view>
|
|
@@ -382,7 +382,7 @@
|
|
<!-- 按钮 -->
|
|
<!-- 按钮 -->
|
|
<u-checkbox @change="" v-model="item.checked" shape="circle" size="40">
|
|
<u-checkbox @change="" v-model="item.checked" shape="circle" size="40">
|
|
</u-checkbox>
|
|
</u-checkbox>
|
|
- <text style="display:flex;width: 50%;font-size: 28rpx;">{{item.name}}</text>
|
|
|
|
|
|
+ <text style="display:flex;width: 55%;font-size: 28rpx;">{{item.name}}</text>
|
|
</view>
|
|
</view>
|
|
</u-checkbox-group>
|
|
</u-checkbox-group>
|
|
</view>
|
|
</view>
|
|
@@ -407,7 +407,7 @@
|
|
<u-checkbox @change="" v-model="item.checked" shape="circle" size="40">
|
|
<u-checkbox @change="" v-model="item.checked" shape="circle" size="40">
|
|
</u-checkbox>
|
|
</u-checkbox>
|
|
<!-- 字体 -->
|
|
<!-- 字体 -->
|
|
- <text style="display:flex;width: 50%;font-size: 28rpx;">{{item.name}}</text>
|
|
|
|
|
|
+ <text style="display:flex;width: 55%;font-size: 28rpx;">{{item.name}}</text>
|
|
</view>
|
|
</view>
|
|
</u-checkbox-group>
|
|
</u-checkbox-group>
|
|
</view>
|
|
</view>
|
|
@@ -431,7 +431,7 @@
|
|
<!-- 按钮 -->
|
|
<!-- 按钮 -->
|
|
<u-checkbox @change="" v-model="item.checked" shape="circle" size="40">
|
|
<u-checkbox @change="" v-model="item.checked" shape="circle" size="40">
|
|
</u-checkbox>
|
|
</u-checkbox>
|
|
- <text style="display:flex;width: 50%;font-size: 28rpx;">{{item.name}}</text>
|
|
|
|
|
|
+ <text style="display:flex;width: 55%;font-size: 28rpx;">{{item.name}}</text>
|
|
</view>
|
|
</view>
|
|
</u-checkbox-group>
|
|
</u-checkbox-group>
|
|
</view>
|
|
</view>
|
|
@@ -465,18 +465,29 @@
|
|
<script>
|
|
<script>
|
|
export default {
|
|
export default {
|
|
onLoad(options) {
|
|
onLoad(options) {
|
|
-
|
|
|
|
|
|
+ this.getShows();
|
|
},
|
|
},
|
|
mounted() {
|
|
mounted() {
|
|
|
|
|
|
},
|
|
},
|
|
data() {
|
|
data() {
|
|
return {
|
|
return {
|
|
|
|
+ // 控制列表显示:0=电话,1=图文,2=门诊预约
|
|
|
|
+ showList:[
|
|
|
|
+ {
|
|
|
|
+ flag: true
|
|
|
|
+ }, {
|
|
|
|
+ flag:true
|
|
|
|
+ },{
|
|
|
|
+ flag:true
|
|
|
|
+ },
|
|
|
|
+ ],
|
|
hospital: [{
|
|
hospital: [{
|
|
- name: '***医院'
|
|
|
|
|
|
+ name: '熊科医院'
|
|
}, {
|
|
}, {
|
|
- name: '*****医院'
|
|
|
|
|
|
+ name: '测试医院'
|
|
}],
|
|
}],
|
|
|
|
+ hospitals: [],
|
|
hospitalcurrent: 0,
|
|
hospitalcurrent: 0,
|
|
list: [{
|
|
list: [{
|
|
name: '00:00-08:00'
|
|
name: '00:00-08:00'
|
|
@@ -496,410 +507,26 @@
|
|
|
|
|
|
//电话时间列表
|
|
//电话时间列表
|
|
dh: {
|
|
dh: {
|
|
- timeList1: [{
|
|
|
|
- id: 0,
|
|
|
|
- name: '00:00-01:00',
|
|
|
|
- checked: false
|
|
|
|
- }, {
|
|
|
|
- id: 1,
|
|
|
|
- name: '01:00-02:00',
|
|
|
|
- checked: false
|
|
|
|
- }, {
|
|
|
|
- id: 2,
|
|
|
|
- name: '02:00-03:00',
|
|
|
|
- checked: false
|
|
|
|
- }, {
|
|
|
|
- id: 3,
|
|
|
|
- name: '03:00-04:00',
|
|
|
|
- checked: false
|
|
|
|
- }, {
|
|
|
|
- id: 4,
|
|
|
|
- name: '04:00-05:00',
|
|
|
|
- checked: false
|
|
|
|
- }, {
|
|
|
|
- id: 5,
|
|
|
|
- name: '05:00-06:00',
|
|
|
|
- checked: false
|
|
|
|
- }, {
|
|
|
|
- id: 6,
|
|
|
|
- name: '06:00-07:00',
|
|
|
|
- checked: false
|
|
|
|
- }, {
|
|
|
|
- id: 7,
|
|
|
|
- name: '07:00-08:00',
|
|
|
|
- checked: false
|
|
|
|
- }],
|
|
|
|
- timeList2: [{
|
|
|
|
- id: 8,
|
|
|
|
- name: '08:00-09:00',
|
|
|
|
- checked: false
|
|
|
|
- }, {
|
|
|
|
- id: 9,
|
|
|
|
- name: '09:00-10:00',
|
|
|
|
- checked: false
|
|
|
|
- }, {
|
|
|
|
- id: 10,
|
|
|
|
- name: '10:00-11:00',
|
|
|
|
- checked: false
|
|
|
|
- }, {
|
|
|
|
- id: 11,
|
|
|
|
- name: '11:00-12:00',
|
|
|
|
- checked: false
|
|
|
|
- }, {
|
|
|
|
- id: 12,
|
|
|
|
- name: '12:00-13:00',
|
|
|
|
- checked: false
|
|
|
|
- }, {
|
|
|
|
- id: 13,
|
|
|
|
- name: '13:00-14:00',
|
|
|
|
- checked: false
|
|
|
|
- }, {
|
|
|
|
- id: 14,
|
|
|
|
- name: '14:00-15:00',
|
|
|
|
- checked: false
|
|
|
|
- }, {
|
|
|
|
- id: 15,
|
|
|
|
- name: '15:00-16:00',
|
|
|
|
- checked: false
|
|
|
|
- }],
|
|
|
|
- timeList3: [{
|
|
|
|
- id: 16,
|
|
|
|
- name: '16:00-17:00',
|
|
|
|
- checked: false
|
|
|
|
- }, {
|
|
|
|
- id: 1,
|
|
|
|
- name: '17:00-18:00',
|
|
|
|
- checked: false
|
|
|
|
- }, {
|
|
|
|
- id: 2,
|
|
|
|
- name: '18:00-19:00',
|
|
|
|
- checked: false
|
|
|
|
- }, {
|
|
|
|
- id: 3,
|
|
|
|
- name: '19:00-20:00',
|
|
|
|
- checked: false
|
|
|
|
- }, {
|
|
|
|
- id: 4,
|
|
|
|
- name: '20:00-21:00',
|
|
|
|
- checked: false
|
|
|
|
- }, {
|
|
|
|
- id: 5,
|
|
|
|
- name: '21:00-22:00',
|
|
|
|
- checked: false
|
|
|
|
- }, {
|
|
|
|
- id: 6,
|
|
|
|
- name: '22:00-23:00',
|
|
|
|
- checked: false
|
|
|
|
- }, {
|
|
|
|
- id: 7,
|
|
|
|
- name: '23:00-00:00',
|
|
|
|
- checked: false
|
|
|
|
- }],
|
|
|
|
|
|
+ timeList1: [],
|
|
|
|
+ timeList2: [],
|
|
|
|
+ timeList3: [],
|
|
},
|
|
},
|
|
//图文时间列表
|
|
//图文时间列表
|
|
tw: {
|
|
tw: {
|
|
- timeList1: [{
|
|
|
|
- id: 0,
|
|
|
|
- name: '00:00-01:00',
|
|
|
|
- checked: false
|
|
|
|
- }, {
|
|
|
|
- id: 1,
|
|
|
|
- name: '01:00-02:00',
|
|
|
|
- checked: false
|
|
|
|
- }, {
|
|
|
|
- id: 2,
|
|
|
|
- name: '02:00-03:00',
|
|
|
|
- checked: false
|
|
|
|
- }, {
|
|
|
|
- id: 3,
|
|
|
|
- name: '03:00-04:00',
|
|
|
|
- checked: false
|
|
|
|
- }, {
|
|
|
|
- id: 4,
|
|
|
|
- name: '04:00-05:00',
|
|
|
|
- checked: false
|
|
|
|
- }, {
|
|
|
|
- id: 5,
|
|
|
|
- name: '05:00-06:00',
|
|
|
|
- checked: false
|
|
|
|
- }, {
|
|
|
|
- id: 6,
|
|
|
|
- name: '06:00-07:00',
|
|
|
|
- checked: false
|
|
|
|
- }, {
|
|
|
|
- id: 7,
|
|
|
|
- name: '07:00-08:00',
|
|
|
|
- checked: false
|
|
|
|
- }],
|
|
|
|
- timeList2: [{
|
|
|
|
- id: 8,
|
|
|
|
- name: '08:00-09:00',
|
|
|
|
- checked: false
|
|
|
|
- }, {
|
|
|
|
- id: 9,
|
|
|
|
- name: '09:00-10:00',
|
|
|
|
- checked: false
|
|
|
|
- }, {
|
|
|
|
- id: 10,
|
|
|
|
- name: '10:00-11:00',
|
|
|
|
- checked: false
|
|
|
|
- }, {
|
|
|
|
- id: 11,
|
|
|
|
- name: '11:00-12:00',
|
|
|
|
- checked: false
|
|
|
|
- }, {
|
|
|
|
- id: 12,
|
|
|
|
- name: '12:00-13:00',
|
|
|
|
- checked: false
|
|
|
|
- }, {
|
|
|
|
- id: 13,
|
|
|
|
- name: '13:00-14:00',
|
|
|
|
- checked: false
|
|
|
|
- }, {
|
|
|
|
- id: 14,
|
|
|
|
- name: '14:00-15:00',
|
|
|
|
- checked: false
|
|
|
|
- }, {
|
|
|
|
- id: 15,
|
|
|
|
- name: '15:00-16:00',
|
|
|
|
- checked: false
|
|
|
|
- }],
|
|
|
|
- timeList3: [{
|
|
|
|
- id: 16,
|
|
|
|
- name: '16:00-17:00',
|
|
|
|
- checked: false
|
|
|
|
- }, {
|
|
|
|
- id: 17,
|
|
|
|
- name: '17:00-18:00',
|
|
|
|
- checked: false
|
|
|
|
- }, {
|
|
|
|
- id: 18,
|
|
|
|
- name: '18:00-19:00',
|
|
|
|
- checked: false
|
|
|
|
- }, {
|
|
|
|
- id: 19,
|
|
|
|
- name: '19:00-20:00',
|
|
|
|
- checked: false
|
|
|
|
- }, {
|
|
|
|
- id: 20,
|
|
|
|
- name: '20:00-21:00',
|
|
|
|
- checked: false
|
|
|
|
- }, {
|
|
|
|
- id: 21,
|
|
|
|
- name: '21:00-22:00',
|
|
|
|
- checked: false
|
|
|
|
- }, {
|
|
|
|
- id: 22,
|
|
|
|
- name: '22:00-23:00',
|
|
|
|
- checked: false
|
|
|
|
- }, {
|
|
|
|
- id: 23,
|
|
|
|
- name: '23:00-00:00',
|
|
|
|
- checked: false
|
|
|
|
- }],
|
|
|
|
|
|
+ timeList1: [],
|
|
|
|
+ timeList2: [],
|
|
|
|
+ timeList3: [],
|
|
},
|
|
},
|
|
//门诊时间列表
|
|
//门诊时间列表
|
|
mz1: {
|
|
mz1: {
|
|
- timeList1: [{
|
|
|
|
- id: 0,
|
|
|
|
- name: '00:00-01:00',
|
|
|
|
- checked: false
|
|
|
|
- }, {
|
|
|
|
- id: 1,
|
|
|
|
- name: '01:00-02:00',
|
|
|
|
- checked: false
|
|
|
|
- }, {
|
|
|
|
- id: 2,
|
|
|
|
- name: '02:00-03:00',
|
|
|
|
- checked: false
|
|
|
|
- }, {
|
|
|
|
- id: 3,
|
|
|
|
- name: '03:00-04:00',
|
|
|
|
- checked: false
|
|
|
|
- }, {
|
|
|
|
- id: 4,
|
|
|
|
- name: '04:00-05:00',
|
|
|
|
- checked: false
|
|
|
|
- }, {
|
|
|
|
- id: 5,
|
|
|
|
- name: '05:00-06:00',
|
|
|
|
- checked: false
|
|
|
|
- }, {
|
|
|
|
- id: 6,
|
|
|
|
- name: '06:00-07:00',
|
|
|
|
- checked: false
|
|
|
|
- }, {
|
|
|
|
- id: 7,
|
|
|
|
- name: '07:00-08:00',
|
|
|
|
- checked: false
|
|
|
|
- }],
|
|
|
|
- timeList2: [{
|
|
|
|
- id: 8,
|
|
|
|
- name: '08:00-09:00',
|
|
|
|
- checked: false
|
|
|
|
- }, {
|
|
|
|
- id: 9,
|
|
|
|
- name: '09:00-10:00',
|
|
|
|
- checked: false
|
|
|
|
- }, {
|
|
|
|
- id: 10,
|
|
|
|
- name: '10:00-11:00',
|
|
|
|
- checked: false
|
|
|
|
- }, {
|
|
|
|
- id: 11,
|
|
|
|
- name: '11:00-12:00',
|
|
|
|
- checked: false
|
|
|
|
- }, {
|
|
|
|
- id: 12,
|
|
|
|
- name: '12:00-13:00',
|
|
|
|
- checked: false
|
|
|
|
- }, {
|
|
|
|
- id: 13,
|
|
|
|
- name: '13:00-14:00',
|
|
|
|
- checked: false
|
|
|
|
- }, {
|
|
|
|
- id: 14,
|
|
|
|
- name: '14:00-15:00',
|
|
|
|
- checked: false
|
|
|
|
- }, {
|
|
|
|
- id: 15,
|
|
|
|
- name: '15:00-16:00',
|
|
|
|
- checked: false
|
|
|
|
- }],
|
|
|
|
- timeList3: [{
|
|
|
|
- id: 16,
|
|
|
|
- name: '16:00-17:00',
|
|
|
|
- checked: false
|
|
|
|
- }, {
|
|
|
|
- id: 17,
|
|
|
|
- name: '17:00-18:00',
|
|
|
|
- checked: false
|
|
|
|
- }, {
|
|
|
|
- id: 18,
|
|
|
|
- name: '18:00-19:00',
|
|
|
|
- checked: false
|
|
|
|
- }, {
|
|
|
|
- id: 19,
|
|
|
|
- name: '19:00-20:00',
|
|
|
|
- checked: false
|
|
|
|
- }, {
|
|
|
|
- id: 20,
|
|
|
|
- name: '20:00-21:00',
|
|
|
|
- checked: false
|
|
|
|
- }, {
|
|
|
|
- id: 21,
|
|
|
|
- name: '21:00-22:00',
|
|
|
|
- checked: false
|
|
|
|
- }, {
|
|
|
|
- id: 22,
|
|
|
|
- name: '22:00-23:00',
|
|
|
|
- checked: false
|
|
|
|
- }, {
|
|
|
|
- id: 23,
|
|
|
|
- name: '23:00-00:00',
|
|
|
|
- checked: false
|
|
|
|
- }],
|
|
|
|
|
|
+ timeList1: [],
|
|
|
|
+ timeList2: [],
|
|
|
|
+ timeList3: [],
|
|
},
|
|
},
|
|
mz2: {
|
|
mz2: {
|
|
- timeList1: [{
|
|
|
|
- id: 0,
|
|
|
|
- name: '00:00-01:00',
|
|
|
|
- checked: false
|
|
|
|
- }, {
|
|
|
|
- id: 1,
|
|
|
|
- name: '01:00-02:00',
|
|
|
|
- checked: false
|
|
|
|
- }, {
|
|
|
|
- id: 2,
|
|
|
|
- name: '02:00-03:00',
|
|
|
|
- checked: false
|
|
|
|
- }, {
|
|
|
|
- id: 3,
|
|
|
|
- name: '03:00-04:00',
|
|
|
|
- checked: false
|
|
|
|
- }, {
|
|
|
|
- id: 4,
|
|
|
|
- name: '04:00-05:00',
|
|
|
|
- checked: false
|
|
|
|
- }, {
|
|
|
|
- id: 5,
|
|
|
|
- name: '05:00-06:00',
|
|
|
|
- checked: false
|
|
|
|
- }, {
|
|
|
|
- id: 6,
|
|
|
|
- name: '06:00-07:00',
|
|
|
|
- checked: false
|
|
|
|
- }, {
|
|
|
|
- id: 7,
|
|
|
|
- name: '07:00-08:00',
|
|
|
|
- checked: false
|
|
|
|
- }],
|
|
|
|
- timeList2: [{
|
|
|
|
- id: 8,
|
|
|
|
- name: '08:00-09:00',
|
|
|
|
- checked: false
|
|
|
|
- }, {
|
|
|
|
- id: 9,
|
|
|
|
- name: '09:00-10:00',
|
|
|
|
- checked: false
|
|
|
|
- }, {
|
|
|
|
- id: 10,
|
|
|
|
- name: '10:00-11:00',
|
|
|
|
- checked: false
|
|
|
|
- }, {
|
|
|
|
- id: 11,
|
|
|
|
- name: '11:00-12:00',
|
|
|
|
- checked: false
|
|
|
|
- }, {
|
|
|
|
- id: 12,
|
|
|
|
- name: '12:00-13:00',
|
|
|
|
- checked: false
|
|
|
|
- }, {
|
|
|
|
- id: 13,
|
|
|
|
- name: '13:00-14:00',
|
|
|
|
- checked: false
|
|
|
|
- }, {
|
|
|
|
- id: 14,
|
|
|
|
- name: '14:00-15:00',
|
|
|
|
- checked: false
|
|
|
|
- }, {
|
|
|
|
- id: 15,
|
|
|
|
- name: '15:00-16:00',
|
|
|
|
- checked: false
|
|
|
|
- }],
|
|
|
|
- timeList3: [{
|
|
|
|
- id: 16,
|
|
|
|
- name: '16:00-17:00',
|
|
|
|
- checked: false
|
|
|
|
- }, {
|
|
|
|
- id: 17,
|
|
|
|
- name: '17:00-18:00',
|
|
|
|
- checked: false
|
|
|
|
- }, {
|
|
|
|
- id: 18,
|
|
|
|
- name: '18:00-19:00',
|
|
|
|
- checked: false
|
|
|
|
- }, {
|
|
|
|
- id: 19,
|
|
|
|
- name: '19:00-20:00',
|
|
|
|
- checked: false
|
|
|
|
- }, {
|
|
|
|
- id: 20,
|
|
|
|
- name: '20:00-21:00',
|
|
|
|
- checked: false
|
|
|
|
- }, {
|
|
|
|
- id: 21,
|
|
|
|
- name: '21:00-22:00',
|
|
|
|
- checked: false
|
|
|
|
- }, {
|
|
|
|
- id: 22,
|
|
|
|
- name: '22:00-23:00',
|
|
|
|
- checked: false
|
|
|
|
- }, {
|
|
|
|
- id: 23,
|
|
|
|
- name: '23:00-00:00',
|
|
|
|
- checked: false
|
|
|
|
- }],
|
|
|
|
|
|
+ timeList1: [],
|
|
|
|
+ timeList2: [],
|
|
|
|
+ timeList3: [],
|
|
},
|
|
},
|
|
//全选
|
|
//全选
|
|
all1: [{
|
|
all1: [{
|
|
@@ -974,6 +601,135 @@
|
|
}
|
|
}
|
|
},
|
|
},
|
|
methods: {
|
|
methods: {
|
|
|
|
+ /**
|
|
|
|
+ * @author Liu Yuanhang
|
|
|
|
+ * 获取页面显示状态以及数据
|
|
|
|
+ */
|
|
|
|
+ getShows:async function(){
|
|
|
|
+ let res = await this.$request.post('doctor/getSettingList',{'type':2});
|
|
|
|
+ if(res.status==0){
|
|
|
|
+
|
|
|
|
+ // 1.控制列表显示,2.渲染数据
|
|
|
|
+ // this.showList[0].flag = res.data.show.is_phone;
|
|
|
|
+ // this.showList[1].flag = res.data.show.is_chat;
|
|
|
|
+ // this.showList[2].flag = res.data.show.is_appoint;
|
|
|
|
+
|
|
|
|
+ // 渲染显示的基础价格设置
|
|
|
|
+ if(res.data.list.phone!=null){
|
|
|
|
+ // 渲染电话的基础数据
|
|
|
|
+ this.telePhone.Basics = res.data.list.phone.base_price;
|
|
|
|
+ this.telePhone.additional = res.data.list.phone.step_price;
|
|
|
|
+ this.telePhone.peopleNum = res.data.list.phone.person;
|
|
|
|
+ }
|
|
|
|
+
|
|
|
|
+ if(res.data.list.chat!=null){
|
|
|
|
+ // 渲染图文的基础数据
|
|
|
|
+ this.imgText.Basics = res.data.list.chat.base_price;
|
|
|
|
+ this.imgText.additional = res.data.list.chat.step_price;
|
|
|
|
+ this.imgText.peopleNum = res.data.list.chat.person;
|
|
|
|
+ }
|
|
|
|
+
|
|
|
|
+ if(res.data.list.men!=null){
|
|
|
|
+ // 渲染门诊预约的基础数据
|
|
|
|
+ this.mz.Basics = res.data.list.men[0].base_price;
|
|
|
|
+ this.mz.additional = res.data.list.men[0].step_price;
|
|
|
|
+ this.mz.peopleNum = res.data.list.men[0].person;
|
|
|
|
+ }
|
|
|
|
+
|
|
|
|
+ // 获取医院
|
|
|
|
+ if(res.data.org!=null){
|
|
|
|
+ console.log('获取医院',res.data.org)
|
|
|
|
+ this.hospital = res.data.org;
|
|
|
|
+ this.hospitals = res.data.orgs;
|
|
|
|
+ }
|
|
|
|
+
|
|
|
|
+ /* 渲染时间 */
|
|
|
|
+ //电话的时间
|
|
|
|
+ let dhtime = res.data.times;
|
|
|
|
+ this.dh.timeList1 = dhtime.list1;
|
|
|
|
+ this.dh.timeList2 = dhtime.list2;
|
|
|
|
+ this.dh.timeList3 = dhtime.list3;
|
|
|
|
+
|
|
|
|
+ //图文的时间
|
|
|
|
+ let twtime = res.data.times;
|
|
|
|
+ this.tw.timeList1 = twtime.list1;
|
|
|
|
+ this.tw.timeList2 = twtime.list2;
|
|
|
|
+ this.tw.timeList3 = twtime.list3;
|
|
|
|
+
|
|
|
|
+ // 门诊时间
|
|
|
|
+ let mz1 = res.data.times;
|
|
|
|
+ this.mz1.timeList1 = mz1.list1;
|
|
|
|
+ this.mz1.timeList2 = mz1.list2;
|
|
|
|
+ this.mz1.timeList3 = mz1.list3;
|
|
|
|
+
|
|
|
|
+ let mz2 = res.data.times;
|
|
|
|
+ this.mz2.timeList1 = mz2.list1;
|
|
|
|
+ this.mz2.timeList2 = mz2.list2;
|
|
|
|
+ this.mz2.timeList3 = mz2.list3;
|
|
|
|
+ }
|
|
|
|
+ this.reanders(res.data);
|
|
|
|
+ },
|
|
|
|
+ /**
|
|
|
|
+ * 渲染选中数据
|
|
|
|
+ * @author Liu Yuan hang
|
|
|
|
+ * @param {Object} e
|
|
|
|
+ */
|
|
|
|
+ reanders(e){
|
|
|
|
+ uni.showLoading({title: '渲染中',mask:true});
|
|
|
|
+ let oks,dh1,dh2,dh3,tw1,tw2,tw3;
|
|
|
|
+
|
|
|
|
+
|
|
|
|
+ // 电话
|
|
|
|
+ if(e.list.phone!=null){
|
|
|
|
+ dh1=this.dh.timeList1;
|
|
|
|
+ dh2=this.dh.timeList2;
|
|
|
|
+ dh3=this.dh.timeList3;
|
|
|
|
+ let phones = e.list.phone.service_time;
|
|
|
|
+ console.log('我是电话',phones)
|
|
|
|
+ for(let i=0;i<dh1.length;i++){
|
|
|
|
+ if(phones.indexOf(dh1[i].id)!=-1){
|
|
|
|
+ dh1[i].checked = true
|
|
|
|
+ }
|
|
|
|
+ }
|
|
|
|
+
|
|
|
|
+ for(let i=0;i<dh2.length;i++){
|
|
|
|
+ if(phones.indexOf(dh2[i].id)!=-1){
|
|
|
|
+ dh2[i].checked = true
|
|
|
|
+ }
|
|
|
|
+ }
|
|
|
|
+
|
|
|
|
+ for(let i=0;i<dh3.length;i++){
|
|
|
|
+ if(phones.indexOf(dh3[i].id)!=-1){
|
|
|
|
+ dh3[i].checked = true
|
|
|
|
+ }
|
|
|
|
+ }
|
|
|
|
+ }
|
|
|
|
+
|
|
|
|
+ // 图文资讯渲染
|
|
|
|
+ // if(e.list.chat!=null){
|
|
|
|
+ // tw1=this.tw.timeList1;
|
|
|
|
+ // tw2=this.tw.timeList2;
|
|
|
|
+ // tw3=this.tw.timeList3;
|
|
|
|
+ // let chat = e.list.chat.service_time;
|
|
|
|
+ // console.log('我是图文',chat)
|
|
|
|
+ // for(let i=0;i<tw1.length;i++){
|
|
|
|
+ // if(chat.indexOf(tw1[i].id)!=-1){
|
|
|
|
+ // tw1[i].checked = true
|
|
|
|
+ // }
|
|
|
|
+ // }
|
|
|
|
+ // for(let i=0;i<tw2.length;i++){
|
|
|
|
+ // if(chat.indexOf(tw2[i].id)!=-1){
|
|
|
|
+ // tw2[i].checked = true
|
|
|
|
+ // }
|
|
|
|
+ // }
|
|
|
|
+ // for(let i=0;i<tw3.length;i++){
|
|
|
|
+ // if(chat.indexOf(tw3[i].id)!=-1){
|
|
|
|
+ // tw3[i].checked = true
|
|
|
|
+ // }
|
|
|
|
+ // }
|
|
|
|
+ // }
|
|
|
|
+ uni.hideLoading();
|
|
|
|
+ },
|
|
bc(e) {
|
|
bc(e) {
|
|
console.log('电话' + this.telePhone)
|
|
console.log('电话' + this.telePhone)
|
|
console.log('图文' + this.imgText)
|
|
console.log('图文' + this.imgText)
|
|
@@ -1188,7 +944,7 @@
|
|
|
|
|
|
.but {
|
|
.but {
|
|
margin-bottom: 28rpx;
|
|
margin-bottom: 28rpx;
|
|
- width: 50%;
|
|
|
|
|
|
+ width: 55%;
|
|
display: flex;
|
|
display: flex;
|
|
align-items: center;
|
|
align-items: center;
|
|
justify-content: center;
|
|
justify-content: center;
|