Prechádzať zdrojové kódy

更新企微和ip屏蔽

zqwang 2 rokov pred
rodič
commit
9bb8e92b94

BIN
src/assets/imgs/add_work_wechat.png


BIN
src/assets/imgs/gidf.gif


+ 107 - 0
src/views/Dispatch/index.ux

@@ -0,0 +1,107 @@
+<template>
+  <div class="index-wrap">
+    <div class="img-box">
+       <image class="start-img" src="../../assets/imgs/gidf.gif"></image>
+    </div>
+    <div class="img-box">
+      <text>快用应启动中·····</text>
+    </div>
+     
+  </div>
+</template>
+<script>
+import router from '@system.router';
+import storage from '@system.storage';
+import { advShield } from "../../api";
+import pkg from '@system.package'
+
+export default {
+  public: {
+    send_order_id: "",
+    push_id: "",
+    bid: '', 
+    cid: '',
+    back_name: '',
+    back_url: '',
+    back_pkg: '',
+    platform: '',
+    checkout_tx: "",
+    showtoast: false,
+    params: {}
+  },
+  async onInit(option) {
+    this.params = option;
+    if (this.push_id) {
+      await storage.set({ key: "push_id", value: this.push_id });
+    }
+    if (this.send_order_id) {
+      await storage.set({ key: "send_order_id", value: this.send_order_id });
+    }
+    if (this.platform) {
+      await storage.set({ key: "currue_tx_bid", value: this.bid });
+      await storage.set({ key: "platform", value: this.platform });
+    }
+    if (this.platform && (this.platform == 'tx_adq' || this.platform == 'tx_adq_new')) {
+      if (this.back_url) {
+
+      } else {
+        this.checkout_tx = 'tx-no-ad';
+      }
+
+    }
+    await this.advShield();
+    this.gotoPage();
+
+  },
+  gotoPage() {
+    if (this.params.bid) {
+      router.replace({
+        uri: "/views/Reader",
+        params: this.params
+      })
+    } else {
+      router.replace({
+        uri: "/views/Index",
+      })
+    }
+  }, async advShield() {
+    try {
+      let info = await advShield(this.send_order_id, this.platform, this.checkout_tx);
+      if (JSON.stringify(info) != '{}' && info.bid && info.cid) {
+        this.params.bid = info.bid,
+          this.params.chapter_id = info.cid
+        this.bid = info.bid;
+        this.chapter_id = info.cid;
+      }
+      // console.log(info);
+    } catch (error) {
+
+    }
+  },onBackPress(){
+      router.replace({
+        uri: "/views/Index",
+      })
+  }
+
+} 
+</script>
+
+<style lang="less">
+.index-wrap {
+  width: 100%;
+   background-color: antiquewhite;
+  flex-direction: column;
+  display: flex;
+  justify-content: center;
+  
+}.img-box{
+  width: 100%;
+  flex-direction: row;
+  justify-content: center;
+}
+.start-img{
+  width: 50%;
+  
+}
+</style>
+