绿满眶商城微信小程序-uniapp
peng
2025-09-05 2fd62a58d348d720161693f5be346796191455c5
pages/mine/help/tips.vue
@@ -1,7 +1,7 @@
<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>
@@ -13,6 +13,7 @@
  data() {
    return {
      res: "",
     privacyAgreement:false,
      way: {
        USER_AGREEMENT: {
          title: "服务协议",
@@ -39,6 +40,9 @@
  },
  mounted() {},
  onLoad(option) {
    if(option.type === 'STORE_REGISTER'){
       this.privacyAgreement = true;
    }
    console.log(this.way)
    uni.setNavigationBarTitle({
      title: this.way[option.type].title,