渣渣宝 4 년 전
부모
커밋
561323f6de
2개의 변경된 파일9개의 추가작업 그리고 7개의 파일을 삭제
  1. 7 5
      pages/service/more.vue
  2. 2 2
      pages/service/setservice.vue

+ 7 - 5
pages/service/more.vue

@@ -302,7 +302,7 @@
 		<view style="padding: 20rpx 26rpx 200rpx 26rpx;background-color: #f3f3f3;color:#C0C0C0" v-show="showList[2].flag&&(SubsectionList[curNow].name=='门诊预约')">
 		<view style="padding: 20rpx 26rpx 200rpx 26rpx;background-color: #f3f3f3;color:#C0C0C0" v-show="showList[2].flag&&(SubsectionList[curNow].name=='门诊预约')">
 			提示:就诊人信息用于平台审核和医疗业务使用,不会外传。请正却确填写就诊人信息,如需修改身份信息可电话联系客服修改(13330431369)
 			提示:就诊人信息用于平台审核和医疗业务使用,不会外传。请正却确填写就诊人信息,如需修改身份信息可电话联系客服修改(13330431369)
 		</view>
 		</view>
-		<view class="bottomButton" @click="pd">保存{{curNow==0?"电话":curNow==1?"图文":"门诊"}}设置</view>
+		<view class="bottomButton" @click="pd" v-if="showList[curNow].flag">保存{{curNow==0?"电话":curNow==1?"图文":"门诊"}}设置</view>
 	</view>
 	</view>
 </template>
 </template>
 
 
@@ -311,10 +311,10 @@
 		onLoad(options) {
 		onLoad(options) {
 			this.getShows();
 			this.getShows();
 			this.getPhoneData();
 			this.getPhoneData();
-			// this.$nextTick(function() {
-			// 	this.addTime()
-			// })
-			// console.log(this.form.is_appoint.hospitalList.length)
+			this.$nextTick(function() {
+				this.addTime()
+			})
+			console.log(this.form.is_appoint.hospitalList.length)
 		},
 		},
 		mounted() {
 		mounted() {
 
 
@@ -1173,6 +1173,7 @@
 					case 2:		//门诊的保存
 					case 2:		//门诊的保存
 						if (that.showList[2].flag) {
 						if (that.showList[2].flag) {
 							that.form.is_appoint.hospitalList.forEach(item => {
 							that.form.is_appoint.hospitalList.forEach(item => {
+								console.log(item)
 								//基础价格
 								//基础价格
 								if (item.appoint_price == "") {
 								if (item.appoint_price == "") {
 									uni.showToast({
 									uni.showToast({
@@ -1229,6 +1230,7 @@
 									})
 									})
 									return false
 									return false
 								}
 								}
+								
 							})
 							})
 							this.setMenData()
 							this.setMenData()
 						}
 						}

+ 2 - 2
pages/service/setservice.vue

@@ -126,7 +126,7 @@
 				if(typeof data != 'string'){
 				if(typeof data != 'string'){
 					data = JSON.stringify(data);
 					data = JSON.stringify(data);
 				}
 				}
-				let res = await this.$request.post('doctor/saveSetting',{'type':1,'data':data});
+				let res = await this.$request.post('doctor/saveSettingBase',{'type':1,'data':data});
 				console.log(res);
 				console.log(res);
 				if(res.status==0){
 				if(res.status==0){
 					uni.showToast({
 					uni.showToast({
@@ -143,7 +143,7 @@
 					uni.showToast({
 					uni.showToast({
 						title:'未开通任何服务',
 						title:'未开通任何服务',
 						icon:'none'
 						icon:'none'
-					})
+					}) 
 				}else{
 				}else{
 					uni.navigateTo({
 					uni.navigateTo({
 					url:'/pages/service/more'
 					url:'/pages/service/more'