Commit 0d5940d4 authored by zhengke's avatar zhengke

修改

parent db4fdd81
...@@ -149,11 +149,11 @@ ...@@ -149,11 +149,11 @@
watch(() => [...props.paperData], (val) => { watch(() => [...props.paperData], (val) => {
data.dataList = [...data.dataList, ...val]; data.dataList = [...data.dataList, ...val];
}) })
watch(()=>props.StartIndex,(val)=>{ // watch(()=>props.StartIndex,(val)=>{
if(val>-1){ // if(val>-1){
data.current=val; // data.current=val;
} // }
}) // })
watch(()=>data.current, (newVal, oldValue) => { watch(()=>data.current, (newVal, oldValue) => {
innerAudioContext.stop(); innerAudioContext.stop();
data.isPlay=false; data.isPlay=false;
......
...@@ -144,11 +144,11 @@ ...@@ -144,11 +144,11 @@
}) })
data.dataList = [...data.dataList, ...val]; data.dataList = [...data.dataList, ...val];
}) })
watch(()=>props.StartIndex,(val)=>{ // watch(()=>props.StartIndex,(val)=>{
if(val>-1){ // if(val>-1){
data.current=val; // data.current=val;
} // }
}) // })
let methods = { let methods = {
stopTouchMove(){ stopTouchMove(){
return true return true
......
<template> <template>
<!-- 单选题 --> <!-- 单选题 -->
<view> <view class="modal">
<view class="item" style="padding: 0 20px"> <view class="item" style="padding: 0 20px">
<van-nav-bar fixed> <van-nav-bar fixed>
<template #left> <template #left>
...@@ -102,11 +102,11 @@ ...@@ -102,11 +102,11 @@
watch(() => [...props.paperData], (val) => { watch(() => [...props.paperData], (val) => {
data.dataList = [...data.dataList, ...val]; data.dataList = [...data.dataList, ...val];
}) })
watch(()=>props.StartIndex,(val)=>{ // watch(()=>props.StartIndex,(val)=>{
if(val>-1){ // if(val>-1){
data.current=val; // data.current=val;
} // }
}) // })
let methods = { let methods = {
goBack() { goBack() {
uni.navigateBack(); uni.navigateBack();
......
...@@ -171,7 +171,6 @@ ...@@ -171,7 +171,6 @@
}; };
}, },
onLoad(options) { onLoad(options) {
console.log(options, 'options');
if (options && options.Type) { if (options && options.Type) {
this.Type = options.Type; this.Type = options.Type;
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment