bruce 5 년 전
부모
커밋
846fbca63b
2개의 변경된 파일24개의 추가작업 그리고 5개의 파일을 삭제
  1. 2 2
      components/type/vip/mobile.vue
  2. 22 3
      pages/otherpage/publish/publish.vue

+ 2 - 2
components/type/vip/mobile.vue

@@ -3,7 +3,7 @@
     <!--顶部tab-->
     <div class="switch-bar" :class="active===0?'switch-bar-brown':current===0?'switch-bar-blue':'switch-bar-green'">
       <div class="switch-item" :class="{'switch-item-active':active===0}" @click="handleSwitchClick(0)">
-        <div class="switch-item-title">开发者会员1</div>
+        <div class="switch-item-title">开发者会员</div>
         <div class="switch-item-border"/>
       </div>
       <div class="switch-item" :class="{'switch-item-active':active===1}" @click="handleSwitchClick(1)">
@@ -393,7 +393,7 @@
       },
       viewRateDetail() {
         if (bridge.isAndroid) {
-          location.href = "proginn://webview?url=/type/vip/orderRateDetail&title=会员中心1"
+          location.href = "proginn://webview?url='/type/vip/orderRateDetail'&title=会员中心"
         } else
           location.href = "/type/vip/orderRateDetail";
       },

+ 22 - 3
pages/otherpage/publish/publish.vue

@@ -196,7 +196,8 @@
     mounted() {
       console.log("000000000000000", window.location.href);
       console.log(this.$route.query.x_access_token);
-      document.cookie = this.$route.query.x_access_token;
+      // document.cookie = this.$route.query.x_access_token;
+      this.setCookie();
       this.getCareerDirection();
       this.getProvince();
     },
@@ -208,6 +209,24 @@
       };
     },
     methods: {
+      setCookie() {
+        //删除cookie
+        const x_access_token = this.$route.query.x_access_token;
+        if (x_access_token) {
+          this.deleteCookie("x_access_token_local", null, ".proginn.com");
+          this.deleteCookie("x_access_token_test_branch", null, ".proginn.com");
+          document.cookie = `x_access_token_local=123`;
+          document.cookie = `x_access_token_test_branch=456`
+        }
+      },
+
+      deleteCookie(name, path, domain) {
+        document.cookie = name + '=' +
+          ((path) ? ';path=' + path : '') +
+          ((domain) ? ';domain=' + domain : '') +
+          ';expires=Thu,01-Jan-1970 00:00:01 GMT';
+      },
+
       /**
        * 工作方式切换事件
        */
@@ -350,7 +369,7 @@
           console.log(res);
           if (res.data.status == 1) {
             this.$message.success("发布成功");
-            location.href = res.data.data.url;
+            // location.href = res.data.data.url;
           }
           this.isloading = false;
         }).catch(err => {
@@ -391,7 +410,7 @@
           this.$message.error("请填写合理薪资范围");
           return false;
         }
-        console.log("123123123",this.params.workType);
+        console.log("123123123", this.params.workType);
         if (this.params.workType != 1 && !this.params.cityId) {
           this.$message.error("请选择工作地点");
           return false;