Browse Source

取消每张价格显示,如果用户确认过协议,以后协议默认勾选上。

master
mike 3 years ago
parent
commit
5db399becd
  1. 12
      pages/index/index.vue
  2. 3
      pages/write/baseInfo.vue

12
pages/index/index.vue

@ -112,7 +112,7 @@
<view class="flex-col group_11"> <view class="flex-col group_11">
<view class="justify-between group_12"> <view class="justify-between group_12">
<view class="flex-row"> <view class="flex-row">
<checkbox-group @change="e => isConsentAgreement = !isConsentAgreement">
<checkbox-group @change="onAgreementCheck()">
<checkbox color="#e6a33c" :checked="isConsentAgreement"></checkbox> <checkbox color="#e6a33c" :checked="isConsentAgreement"></checkbox>
</checkbox-group> </checkbox-group>
<view class="group_14"> <view class="group_14">
@ -120,7 +120,7 @@
<text class="text_23" @click="$url('/packages/article/article?type=grade_agreement')">服务协议</text> <text class="text_23" @click="$url('/packages/article/article?type=grade_agreement')">服务协议</text>
</view> </view>
</view> </view>
<text class="text_24">45/</text>
<!-- <text class="text_24">45/</text> -->
</view> </view>
<view class="flex-col items-center button" @click="nextToGrading"> <view class="flex-col items-center button" @click="nextToGrading">
<text>下一步</text> <text>下一步</text>
@ -184,6 +184,11 @@
} }
}, },
async onLoad(query){ async onLoad(query){
//
if(uni.getStorageSync('AgreementChecked')){
this.isConsentAgreement = true
}
this.getSysInfo(); this.getSysInfo();
if(query && query.q){ if(query && query.q){
@ -211,6 +216,9 @@
} }
}, },
methods: { methods: {
onAgreementCheck(e){
this.isConsentAgreement = !this.isConsentAgreement
},
tipsDetail(index){ tipsDetail(index){
console.log("tipsDetail",index) console.log("tipsDetail",index)
console.log("tipsDetail id",this.tipsDatas[index].id) console.log("tipsDetail id",this.tipsDatas[index].id)

3
pages/write/baseInfo.vue

@ -103,7 +103,7 @@
<!-- <u-switch v-model="isQuickReview" activeColor="#e7a23f"></u-switch> --> <!-- <u-switch v-model="isQuickReview" activeColor="#e7a23f"></u-switch> -->
</view> </view>
<view class="flex-col group_19" v-if="columnsIndex!=0">
<view class="flex-col group_19">
<view class="fast_desc"> <view class="fast_desc">
{{columnsData[columnsIndex].desc}} {{columnsData[columnsIndex].desc}}
</view> </view>
@ -175,6 +175,7 @@
// }, // },
// }, // },
onLoad(options){ onLoad(options){
uni.setStorageSync('AgreementChecked',1);
this.rateIndex = options.rate_index || 0; this.rateIndex = options.rate_index || 0;
let d = uni.getStorageSync('qxk_sysinfo') let d = uni.getStorageSync('qxk_sysinfo')
if(d){ if(d){

Loading…
Cancel
Save