|
@@ -245,6 +245,7 @@
|
|
import mixin from "../mixin/questionMixin";
|
|
import mixin from "../mixin/questionMixin";
|
|
import { apiReplayAsk, apiGetQuestion, apiSetRead,apiCountAudioClick } from "@/api/question";
|
|
import { apiReplayAsk, apiGetQuestion, apiSetRead,apiCountAudioClick } from "@/api/question";
|
|
import { apiApplyPermission} from '@/api/user';
|
|
import { apiApplyPermission} from '@/api/user';
|
|
|
|
+import {apiGetSceneToParams} from "../api/common.js"
|
|
import { uploadAudioToServer } from "@/utils/upload";
|
|
import { uploadAudioToServer } from "@/utils/upload";
|
|
export default {
|
|
export default {
|
|
mixins: [mixin],
|
|
mixins: [mixin],
|
|
@@ -287,9 +288,17 @@ export default {
|
|
}, *///mock用户信息
|
|
}, *///mock用户信息
|
|
};
|
|
};
|
|
},
|
|
},
|
|
- onLoad(options) {
|
|
|
|
|
|
+ async onLoad(options) {
|
|
this.initAudio();
|
|
this.initAudio();
|
|
- this.getQuestionItem(options.id);
|
|
|
|
|
|
+ let obj={}
|
|
|
|
+ if(options.scene){
|
|
|
|
+ // 小程序码进来的
|
|
|
|
+ let res = await apiGetSceneToParams({scene_key:options.scene})
|
|
|
|
+ if(res.code==200){
|
|
|
|
+ obj=JSON.parse(res.data)
|
|
|
|
+ }
|
|
|
|
+ }
|
|
|
|
+ this.getQuestionItem(obj.id || options.id);
|
|
},
|
|
},
|
|
onShow(){
|
|
onShow(){
|
|
uni.authorize({
|
|
uni.authorize({
|