浏览代码

bugfix:增加微信浏览器访问提醒

leo 1 年之前
父节点
当前提交
cf04392d09
共有 3 个文件被更改,包括 19 次插入5 次删除
  1. 二进制
      assets/image/point.png
  2. 0 4
      pages/claimCloudPhone/components/bargainingAssistance.vue
  3. 19 1
      pages/claimCloudPhone/index.vue

二进制
assets/image/point.png


+ 0 - 4
pages/claimCloudPhone/components/bargainingAssistance.vue

@@ -535,10 +535,6 @@ export default {
               // 对微信做拦截
               if (this.$userAgent.isWx) {
                 this.wxIntercept(() => {
-                  if(!this.$userAgent.isMiniProgram) {
-                    this.$toast('无法返回上一页,可直接关闭页面')
-                    return 
-                  }
                   history.pushState(null, null, document.URL);
                   this.exitVisible = true;
                 });

+ 19 - 1
pages/claimCloudPhone/index.vue

@@ -1,6 +1,12 @@
 <template>
   <div class="loader-container">
-    <div class="loader"></div>
+    <div
+      style="height: 100%; width: 100%; background: #000; position: relative"
+      v-if="$userAgent.isWx && !$userAgent.isMiniProgram"
+    >
+    <img src="@/assets/image/point.png" alt="" class="point">
+    </div>
+    <div class="loader" v-else></div>
   </div>
 </template>
 
@@ -17,6 +23,10 @@ export default {
     return {};
   },
   mounted() {
+    if (this.$userAgent.isWx && !this.$userAgent.isMiniProgram) {
+      return;
+    }
+
     const {
       invitationUserName,
       operateActivityId,
@@ -84,6 +94,14 @@ export default {
   height: 100%;
   width: 100%;
 }
+.point{
+  position: absolute;
+  top: 5%;
+  right: 5%;
+  width: 250px;
+  height: 250px;
+}
+
 .loader {
   position: relative;
   width: 2.5em;