Fix:view视图中使用赋值语句导致运行报错
This commit is contained in:
@@ -19,7 +19,7 @@
|
||||
<label>
|
||||
<checkbox value="yes" style="transform:scale(0.8)"/>
|
||||
</label>
|
||||
<text @click="show=true">我已阅读并同意
|
||||
<text @click="changeShow">我已阅读并同意
|
||||
<text class="btn-show">《用户服务协议及隐私政策》</text>
|
||||
</text>
|
||||
</checkbox-group>
|
||||
@@ -27,12 +27,12 @@
|
||||
|
||||
<view class="dialog-mask" v-if="show">
|
||||
<view class="dialog-body">
|
||||
<image class="btn-close" :src="webUrl+'/20221230200935413332.png'" @click="show=false"/>
|
||||
<image class="btn-close" :src="webUrl+'/20221230200935413332.png'" @click="changeShow"/>
|
||||
<view class="content">
|
||||
<view class="title tc bold">《用户协议及隐私政策》</view>
|
||||
<rich-text :nodes="agreeInfo.privacyPolicy"/>
|
||||
<view class="title tc">
|
||||
<button size="mini" @click="show=false">关闭</button>
|
||||
<button size="mini" @click="changeShow">关闭</button>
|
||||
</view>
|
||||
</view>
|
||||
</view>
|
||||
@@ -102,6 +102,9 @@ export default {
|
||||
methods: {
|
||||
...mapActions(['changeAuthorization', 'setUserInfo']),
|
||||
...mapMutations(['updateAuthorizationPage']),
|
||||
changeShow(){
|
||||
this.show=!this.show;
|
||||
},
|
||||
changeAgree(event) {
|
||||
this.isAgree = event.detail.value.length > 0
|
||||
},
|
||||
|
||||
Reference in New Issue
Block a user