tremble 3 سال پیش
والد
کامیت
1fac1b4fe1
4فایلهای تغییر یافته به همراه14 افزوده شده و 11 حذف شده
  1. 12 9
      src/apis/index.js
  2. 1 0
      src/app.vue
  3. 0 1
      src/components/shared/Guide.vue
  4. 1 1
      src/global_components/components/dialog/Alert.vue

+ 12 - 9
src/apis/index.js

@@ -37,13 +37,16 @@ export const getSign = (data) => {
 
 export const burying_point = (data) => {
   let url = encodeURI(window.location.href)
-  return http.get("/api/point", {
-    userId: browser.getURLParam("userId") || 1,
-    AccessToken: browser.getURLParam("AccessToken")||'none',
-    cookieId: browser.getURLParam("cookieId")||'none',
-    isMiniApp: browser.getURLParam("isMiniApp")||'h5',
-    whereUrl: url,
-    type: data.type,
-    productId: data.productId,
-  });
+  if (browser.getURLParam("AccessToken")) {
+    return http.get("/api/point", {
+      userId: browser.getURLParam("userId") || 1,
+      AccessToken: browser.getURLParam("AccessToken")||'none',
+      cookieId: browser.getURLParam("cookieId")||'none',
+      isMiniApp: browser.getURLParam("isMiniApp")||'h5',
+      whereUrl: url,
+      type: data.type,
+      productId: data.productId,
+    });
+  }
+
 };

+ 1 - 0
src/app.vue

@@ -411,6 +411,7 @@ onMounted(async () => {
   // }
   app.Scene.on("ready", () => {
     show.value = true;
+    Dialog.alert("隱私條款:<br />開發者已遵守收集、使用最終用戶個人信息有關的所有可適用法律、政策和法規,保護用戶個人信息安全。");
   });
   app.Scene.on("error", (data) => {
     switch (data.code) {

+ 0 - 1
src/components/shared/Guide.vue

@@ -4,7 +4,6 @@
       <div class="zh">
         <div class="btn" @click="onSet"></div>
       </div>
-      <div class="guide-tips">隱私條款:<br />開發者已遵守收集、使用最終用戶個人信息有關的所有可適用法律、政策和法規,保護用戶個人信息安全。</div>
     </div>
   </div>
 </template>

+ 1 - 1
src/global_components/components/dialog/Alert.vue

@@ -4,7 +4,7 @@
             <span>{{ title }}</span>
             <i v-if="showCloseIcon" class="iconfont icon-close" @click="close"></i>
         </template>
-        {{ content }}
+        <span v-html="content"></span>
         <template v-slot:footer v-if="showFooter">
             <ui-button type="submit" @click="close">{{ okText }}</ui-button>
         </template>