3 Commits 5341cf28c3 ... 0305d675ef

Author SHA1 Message Date
  XSLu08042 0305d675ef Merge branch 'master' of http://1.14.104.71:10880/root/his_user_miniapp 1 month ago
  XSLu08042 6cf5f3baba add 1 month ago
  XSLu08042 687c0242f5 舌诊反复登录bug修复 1 month ago

+ 1 - 1
api/course.js

@@ -41,7 +41,7 @@ export function getIsAddKf(data) {
 }
 
 // 流量(缓冲百分比)
-export function getInternetTraffic(data) {
+export function internetTraffic(data) {
 	return request('/app/course/getInternetTraffic', data, 'POST', 'application/json;charset=UTF-8','https://h5api.his.cdwjyyh.com');
 }
 

+ 12 - 12
components/CustomCamera/WeChat/Layout.vue

@@ -38,19 +38,19 @@
 				isLogin: false
 			}
 		},
-		onShow() {
-			this.$isLogin().then(
-				res => {
-					if(res){
-						this.isLogin = true
-						this.getCount()
-					} else{
-						this.isLogin = false
-					}
-				}
-			);
-		},
 		methods: {
+			initShow() {
+				this.$isLogin().then(
+					res => {
+						if(res){
+							this.isLogin = true
+							this.getCount()
+						} else{
+							this.isLogin = false
+						}
+					}
+				);
+			},
 			switchCamera(){
 				if(!this.isLogin){
 					uni.navigateTo({

+ 4 - 1
components/CustomCamera/WeChat/index.vue

@@ -1,5 +1,5 @@
 <template>
-	<Layout @instruct="handleInstruct" @switchCamera="switchCamera()" @takePhoto="takePhoto" >
+	<Layout ref="Layout" @instruct="handleInstruct" @switchCamera="switchCamera()" @takePhoto="takePhoto" >
 		<camera class="camera"  mode="normal" :device-position="device" @error="error"
 			style="width: 100%; height: 100%;">
 			<cover-view class="cover-view">
@@ -63,6 +63,9 @@
 			// this.coverImage = '/static/images/portrait.jpg'
 		},
 		methods: {
+			initShow() {
+				this.$refs.Layout.initShow()
+			},
 			navTo() {
 				uni.navigateTo({
 					url: "/pages_user/tongue/ques"

+ 2 - 2
pages_course/video.vue

@@ -264,7 +264,7 @@
 		courseAnswer,
 		getFinishCourseVideo,
 		getIsAddKf,
-		getInternetTraffic,
+		internetTraffic,
 		getIntegralByH5Video,
 		sendReward,
 		loginByMp,
@@ -1043,7 +1043,7 @@
 					bufferRate: Number(this.bufferRate.toFixed(2)),
 				}
 				if(!param.bufferRate) return
-				getInternetTraffic(param)
+				internetTraffic(param)
 			},
 			getErrMsg(err,type) {
 				let msgerr = {

+ 2 - 2
pages_course/videoOld.vue

@@ -228,7 +228,7 @@
 		courseAnswer,
 		getFinishCourseVideo,
 		getIsAddKf,
-		getInternetTraffic,
+		internetTraffic,
 		getIntegralByH5Video,
 		sendReward,
 		loginByMp,
@@ -1038,7 +1038,7 @@
 					bufferRate: Number(this.bufferRate.toFixed(2)),
 				}
 				if(!param.bufferRate) return
-				getInternetTraffic(param).then(res=>{
+				internetTraffic(param).then(res=>{
 					if(res&&res.code==500&&res.msg == '未知异常,请联系管理员'){
 						this.sendErrorLog('/app/course/getInternetTraffic',param)
 					}

+ 7 - 0
pages_order/inquiryForm2_2.vue

@@ -479,6 +479,13 @@
 					});
 					return;
 				}
+				if(this.form.isVisit=='未就诊'){
+					uni.showToast({
+						icon:'none',
+						title: '仅支持复诊',
+					});
+					return;
+				}
 				if(this.orderKey==null){
 					this.confirm();
 				}

+ 5 - 0
pages_user/tongue/index.vue

@@ -20,6 +20,11 @@
 		onLoad(options) {
 			this.coverImageType = options.coverImageType
 		},
+		onShow() {
+			this.$nextTick(()=>{
+				this.$refs.CustomCamera.initShow()
+			})
+		},
 		onShareAppMessage(res) {
 			return {
 				title: "AI舌诊",