Explorar o código

协议不登录

xiaomei hai 1 mes
pai
achega
cbbe251e9d

+ 1 - 1
src/components/authorize-module/index.vue

@@ -18,7 +18,7 @@
                         <checkbox class='checkboxCom' value="agree" />
                         <view>我同意</view>
                     </label>
-                    <span @click="goto('/pages/agreement/index',{tit:'隐私协议',type:26})" class="hover_a">《用户服务协议》</span>
+                    <span @click="goto('/pages/agreement/index',{tit:'用户服务协议',type:26})" class="hover_a">《用户服务协议》</span>
                     <text>和</text>
                     <span @click="goto('/pages/agreement/index',{tit:'隐私协议',type:27})" class="hover_a">《隐私协议》</span>
                 </checkbox-group>

+ 17 - 6
src/pages/agreement/index.vue

@@ -5,7 +5,7 @@
 </template>
 
 <script>
-import { post } from "@/request/api.js";
+import { post, get } from "@/request/api.js";
 import mpHtml from "@/uni_modules/mp-html/components/mp-html/mp-html.vue"
 export default {
     data() {
@@ -19,11 +19,22 @@ export default {
     },
     methods: {
         loadData(type) {
-            post("v1/my/article", { type }).then((res) => {
-                if (res.code == 0) {
-                    this.content = res.data.data.content;
-                }
-            });
+            if (type == 26) {
+                get("static/server.html", {  }).then((res) => {
+                    this.content = res
+                });
+            } else if (type == 27) {
+                get("static/agreement.html", {  }).then((res) => {
+                    this.content = res
+                });
+            } else {
+                post("v1/my/article", { type }).then((res) => {
+                    if (res.code == 0) {
+                        this.content = res.data.data.content;
+                    }
+                });
+            }
+            
         },
     },
     components: {

+ 1 - 1
src/pages/shoppingMall/index.vue

@@ -497,7 +497,7 @@ export default {
       post("v1/cashback/getIcon").then((res) => {
         if (res.code === 0) {
           this.platform = res.data;
-          this.platform.splice(0, 1); // 去掉享好物
+          // this.platform.splice(0, 1); // 去掉享好物
           // this.platform.length = 5; // 后期要去掉
           this.platformObj = this.platform[this.navIndex];
           this.ratio = this.platform[this.navIndex].ratio;