@@ -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');
@@ -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({
@@ -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'
+ this.$refs.Layout.initShow()
navTo() {
url: "/pages_user/tongue/ques"
@@ -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 = {
@@ -228,7 +228,7 @@
@@ -1038,7 +1038,7 @@
- getInternetTraffic(param).then(res=>{
+ internetTraffic(param).then(res=>{
if(res&&res.code==500&&res.msg == '未知异常,请联系管理员'){
this.sendErrorLog('/app/course/getInternetTraffic',param)
@@ -479,6 +479,13 @@
});
return;
+ if(this.form.isVisit=='未就诊'){
+ uni.showToast({
+ icon:'none',
+ title: '仅支持复诊',
+ });
+ return;
if(this.orderKey==null){
this.confirm();
@@ -20,6 +20,11 @@
onLoad(options) {
this.coverImageType = options.coverImageType
+ onShow() {
+ this.$nextTick(()=>{
+ this.$refs.CustomCamera.initShow()
+ })
onShareAppMessage(res) {
return {
title: "AI舌诊",