| xqd
@@ -169,7 +169,7 @@
|
|
|
</view>
|
|
|
|
|
|
<view style="width: 100%;display: flex; justify-content: space-around; flex-direction: row; flex-wrap: wrap;">
|
|
|
- <view style=" width: 45%; height:60rpx;" class="" v-for="(item, index) in timeList1" :key="index">
|
|
|
+ <view style=" width: 45%; height:60rpx;" class="" v-for="(item, index) in tw.timeList1" :key="index">
|
|
|
<u-checkbox-group @change="" style="width: 100%;height: 100%;margin-bottom: 20rpx;">
|
|
|
<view style="display: flex;align-items: center;">
|
|
|
<!-- 按钮 -->
|
| xqd
@@ -193,7 +193,7 @@
|
|
|
</view>
|
|
|
<!-- 剩下的复选框 -->
|
|
|
<view style="width: 100%;display: flex; justify-content: space-around; flex-direction: row; flex-wrap: wrap;">
|
|
|
- <view style=" width: 45%; height:60rpx;" class="" v-for="(item, index) in timeList2" :key="index">
|
|
|
+ <view style=" width: 45%; height:60rpx;" class="" v-for="(item, index) in tw.timeList2" :key="index">
|
|
|
<u-checkbox-group @change="" style="width: 100%;height: 100%;margin-bottom: 20rpx;">
|
|
|
<view style="display: flex;align-items: center;">
|
|
|
<!-- 按钮 -->
|
| xqd
@@ -218,7 +218,7 @@
|
|
|
</view>
|
|
|
|
|
|
<view style="width: 100%;display: flex; justify-content: space-around; flex-direction: row; flex-wrap: wrap;">
|
|
|
- <view style=" width: 45%; height:60rpx;" class="" v-for="(item, index) in timeList3" :key="index">
|
|
|
+ <view style=" width: 45%; height:60rpx;" class="" v-for="(item, index) in tw.timeList3" :key="index">
|
|
|
<u-checkbox-group @change="" style="width: 100%;height: 100%;margin-bottom: 20rpx;">
|
|
|
<view style="display: flex;align-items: center;">
|
|
|
<!-- 按钮 -->
|
| xqd
@@ -293,7 +293,7 @@
|
|
|
</view>
|
|
|
|
|
|
<view style="width: 100%;display: flex; justify-content: space-around; flex-direction: row; flex-wrap: wrap;">
|
|
|
- <view style=" width: 45%; height:60rpx;" class="" v-for="(item, index) in timeList1" :key="index">
|
|
|
+ <view style=" width: 45%; height:60rpx;" class="" v-for="(item, index) in mz1.timeList1" :key="index">
|
|
|
<u-checkbox-group @change="" style="width: 100%;height: 100%;margin-bottom: 20rpx;">
|
|
|
<view style="display: flex;align-items: center;">
|
|
|
<!-- 按钮 -->
|
| xqd
@@ -317,7 +317,7 @@
|
|
|
</view>
|
|
|
<!-- 剩下的复选框 -->
|
|
|
<view style="width: 100%;display: flex; justify-content: space-around; flex-direction: row; flex-wrap: wrap;">
|
|
|
- <view style=" width: 45%; height:60rpx;" class="" v-for="(item, index) in timeList2" :key="index">
|
|
|
+ <view style=" width: 45%; height:60rpx;" class="" v-for="(item, index) in mz1.timeList2" :key="index">
|
|
|
<u-checkbox-group @change="" style="width: 100%;height: 100%;margin-bottom: 20rpx;">
|
|
|
<view style="display: flex;align-items: center;">
|
|
|
<!-- 按钮 -->
|
| xqd
@@ -342,7 +342,7 @@
|
|
|
</view>
|
|
|
|
|
|
<view style="width: 100%;display: flex; justify-content: space-around; flex-direction: row; flex-wrap: wrap;">
|
|
|
- <view style=" width: 45%; height:60rpx;" class="" v-for="(item, index) in timeList3" :key="index">
|
|
|
+ <view style=" width: 45%; height:60rpx;" class="" v-for="(item, index) in mz1.timeList3" :key="index">
|
|
|
<u-checkbox-group @change="" style="width: 100%;height: 100%;margin-bottom: 20rpx;">
|
|
|
<view style="display: flex;align-items: center;">
|
|
|
<!-- 按钮 -->
|
| xqd
@@ -368,7 +368,7 @@
|
|
|
<view v-if="mzcurrent2 == 0">
|
|
|
<view class="flex align-center" style="margin-bottom: 20rpx;padding-left: 20rpx;">
|
|
|
<!-- 全选复选框 -->
|
|
|
- <u-checkbox-group @change="changeA(10)" v-for="(aitem, aindex) in all10" :key="aindex" class="flex">
|
|
|
+ <u-checkbox-group @change="change(10)" v-for="(aitem, aindex) in all10" :key="aindex" class="flex">
|
|
|
<!-- 全选按钮 -->
|
|
|
<u-checkbox v-model="aitem.checked" shape="circle" size="40"></u-checkbox>
|
|
|
</u-checkbox-group>
|
| xqd
@@ -376,7 +376,7 @@
|
|
|
</view>
|
|
|
|
|
|
<view style="width: 100%;display: flex; justify-content: space-around; flex-direction: row; flex-wrap: wrap;">
|
|
|
- <view style=" width: 45%; height:60rpx;" class="" v-for="(item, index) in timeList1" :key="index">
|
|
|
+ <view style=" width: 45%; height:60rpx;" class="" v-for="(item, index) in mz2.timeList1" :key="index">
|
|
|
<u-checkbox-group @change="" style="width: 100%;height: 100%;margin-bottom: 20rpx;">
|
|
|
<view style="display: flex;align-items: center;">
|
|
|
<!-- 按钮 -->
|
| xqd
@@ -400,7 +400,7 @@
|
|
|
</view>
|
|
|
<!-- 剩下的复选框 -->
|
|
|
<view style="width: 100%;display: flex; justify-content: space-around; flex-direction: row; flex-wrap: wrap;">
|
|
|
- <view style=" width: 45%; height:60rpx;" class="" v-for="(item, index) in timeList2" :key="index">
|
|
|
+ <view style=" width: 45%; height:60rpx;" class="" v-for="(item, index) in mz2.timeList2" :key="index">
|
|
|
<u-checkbox-group @change="" style="width: 100%;height: 100%;margin-bottom: 20rpx;">
|
|
|
<view style="display: flex;align-items: center;">
|
|
|
<!-- 按钮 -->
|
| xqd
@@ -425,7 +425,7 @@
|
|
|
</view>
|
|
|
|
|
|
<view style="width: 100%;display: flex; justify-content: space-around; flex-direction: row; flex-wrap: wrap;">
|
|
|
- <view style=" width: 45%; height:60rpx;" class="" v-for="(item, index) in timeList3" :key="index">
|
|
|
+ <view style=" width: 45%; height:60rpx;" class="" v-for="(item, index) in mz2.timeList3" :key="index">
|
|
|
<u-checkbox-group @change="" style="width: 100%;height: 100%;margin-bottom: 20rpx;">
|
|
|
<view style="display: flex;align-items: center;">
|
|
|
<!-- 按钮 -->
|
| xqd
@@ -489,7 +489,7 @@
|
|
|
}
|
|
|
],
|
|
|
//电话 图文 门诊的分段器
|
|
|
- dhcurrent: 2,
|
|
|
+ dhcurrent: 0,
|
|
|
twcurrent: 0,
|
|
|
mzcurrent1: 0,
|
|
|
mzcurrent2: 0,
|
| xqd
@@ -699,7 +699,108 @@
|
|
|
}],
|
|
|
},
|
|
|
//门诊时间列表
|
|
|
- mz: {
|
|
|
+ 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
|
|
|
+ }],
|
|
|
+ },
|
|
|
+ mz2: {
|
|
|
timeList1: [{
|
|
|
id: 0,
|
|
|
name: '00:00-01:00',
|
| xqd
@@ -879,9 +980,10 @@
|
|
|
console.log('门诊' + this.mz)
|
|
|
console.log('电话' + this.dhcurrent)
|
|
|
console.log('图文' + this.twcurrent)
|
|
|
- console.log('门诊' + this.mzcurrent)
|
|
|
- console.log()
|
|
|
- console.log()
|
|
|
+ console.log('门诊' + this.mzcurrent),
|
|
|
+ uni.navigateTo({
|
|
|
+ url:'setservice'
|
|
|
+ })
|
|
|
},
|
|
|
test(e) {
|
|
|
|
| xqd
@@ -901,8 +1003,143 @@
|
|
|
yychange(index) {
|
|
|
this.hospitalcurrent = index
|
|
|
},
|
|
|
- change(index){
|
|
|
- console.log('点击了',index)
|
|
|
+ change(index) {
|
|
|
+ console.log('点击了', index == true)
|
|
|
+ switch (index) {
|
|
|
+ case 1:
|
|
|
+ if (this.all1[0].checked == true) {
|
|
|
+ this.dh.timeList1.map(val => {
|
|
|
+ val.checked = true;
|
|
|
+ })
|
|
|
+ } else {
|
|
|
+ this.dh.timeList1.map(val => {
|
|
|
+ val.checked = false;
|
|
|
+ })
|
|
|
+ }
|
|
|
+ break;
|
|
|
+ case 2:
|
|
|
+ if (this.all2[0].checked == true) {
|
|
|
+ this.dh.timeList2.map(val => {
|
|
|
+ val.checked = true;
|
|
|
+ })
|
|
|
+ } else {
|
|
|
+ this.dh.timeList2.map(val => {
|
|
|
+ val.checked = false;
|
|
|
+ })
|
|
|
+ }
|
|
|
+ break;
|
|
|
+ case 3:
|
|
|
+ if (this.all3[0].checked == true) {
|
|
|
+ this.dh.timeList3.map(val => {
|
|
|
+ val.checked = true;
|
|
|
+ })
|
|
|
+ } else {
|
|
|
+ this.dh.timeList3.map(val => {
|
|
|
+ val.checked = false;
|
|
|
+ })
|
|
|
+ }
|
|
|
+ break;
|
|
|
+ case 4:
|
|
|
+ if (this.all4[0].checked == true) {
|
|
|
+ this.tw.timeList1.map(val => {
|
|
|
+ val.checked = true;
|
|
|
+ })
|
|
|
+ } else {
|
|
|
+ this.tw.timeList1.map(val => {
|
|
|
+ val.checked = false;
|
|
|
+ })
|
|
|
+ }
|
|
|
+ break;
|
|
|
+ case 5:
|
|
|
+ if (this.all5[0].checked == true) {
|
|
|
+ this.tw.timeList2.map(val => {
|
|
|
+ val.checked = true;
|
|
|
+ })
|
|
|
+ } else {
|
|
|
+ this.tw.timeList2.map(val => {
|
|
|
+ val.checked = false;
|
|
|
+ })
|
|
|
+ }
|
|
|
+ break;
|
|
|
+ case 6:
|
|
|
+ if (this.all6[0].checked == true) {
|
|
|
+ this.tw.timeList3.map(val => {
|
|
|
+ val.checked = true;
|
|
|
+ })
|
|
|
+ } else {
|
|
|
+ this.tw.timeList3.map(val => {
|
|
|
+ val.checked = false;
|
|
|
+ })
|
|
|
+ }
|
|
|
+ break;
|
|
|
+ case 7:
|
|
|
+ if (this.all7[0].checked == true) {
|
|
|
+ this.mz1.timeList1.map(val => {
|
|
|
+ val.checked = true;
|
|
|
+ })
|
|
|
+ } else {
|
|
|
+ this.mz1.timeList1.map(val => {
|
|
|
+ val.checked = false;
|
|
|
+ })
|
|
|
+ }
|
|
|
+ break;
|
|
|
+ case 8:
|
|
|
+ if (this.all8[0].checked == true) {
|
|
|
+ this.mz1.timeList2.map(val => {
|
|
|
+ val.checked = true;
|
|
|
+ })
|
|
|
+ } else {
|
|
|
+ this.mz1.timeList2.map(val => {
|
|
|
+ val.checked = false;
|
|
|
+ })
|
|
|
+ }
|
|
|
+ break;
|
|
|
+ case 9:
|
|
|
+ if (this.all9[0].checked == true) {
|
|
|
+ this.mz1.timeList3.map(val => {
|
|
|
+ val.checked = true;
|
|
|
+ })
|
|
|
+ } else {
|
|
|
+ this.mz1.timeList3.map(val => {
|
|
|
+ val.checked = false;
|
|
|
+ })
|
|
|
+ }
|
|
|
+ break;
|
|
|
+ case 10:
|
|
|
+ if (this.all10[0].checked == true) {
|
|
|
+ this.mz2.timeList1.map(val => {
|
|
|
+ val.checked = true;
|
|
|
+ })
|
|
|
+ } else {
|
|
|
+ this.mz2.timeList1.map(val => {
|
|
|
+ val.checked = false;
|
|
|
+ })
|
|
|
+ }
|
|
|
+ break;
|
|
|
+ case 11:
|
|
|
+ if (this.all11[0].checked == true) {
|
|
|
+ this.mz2.timeList2.map(val => {
|
|
|
+ val.checked = true;
|
|
|
+ })
|
|
|
+ } else {
|
|
|
+ this.mz2.timeList2.map(val => {
|
|
|
+ val.checked = false;
|
|
|
+ })
|
|
|
+ }
|
|
|
+ break;
|
|
|
+ case 12:
|
|
|
+ if (this.all12[0].checked == true) {
|
|
|
+ this.mz2.timeList3.map(val => {
|
|
|
+ val.checked = true;
|
|
|
+ })
|
|
|
+ } else {
|
|
|
+ this.mz2.timeList3.map(val => {
|
|
|
+ val.checked = false;
|
|
|
+ })
|
|
|
+ }
|
|
|
+ break;
|
|
|
+ default:
|
|
|
+ }
|
|
|
}
|
|
|
}
|
|
|
};
|