| | |
| | | <template> |
| | | <div class="wrapper"> |
| | | <u-parse :show-with-animation="true" :lazy-load="true" :selectable="true" :html="res.content" v-if="res"></u-parse> |
| | | <button class="submit" @click="agreed()">同意协议</button> |
| | | <button class="submit" @click="agreed()" v-if="privacyAgreement">同意协议</button> |
| | | </div> |
| | | </template> |
| | | <script> |
| | |
| | | data() { |
| | | return { |
| | | res: "", |
| | | privacyAgreement:false, |
| | | way: { |
| | | USER_AGREEMENT: { |
| | | title: "服务协议", |
| | |
| | | }, |
| | | mounted() {}, |
| | | onLoad(option) { |
| | | if(option.type === 'STORE_REGISTER'){ |
| | | this.privacyAgreement = true; |
| | | } |
| | | console.log(this.way) |
| | | uni.setNavigationBarTitle({ |
| | | title: this.way[option.type].title, |