|
@@ -1,6 +1,6 @@
|
|
<import name="short-page" src="../../components/short/index.ux"></import>
|
|
<import name="short-page" src="../../components/short/index.ux"></import>
|
|
<import name="wechat-page" src="../../components/wechat/index.ux"></import>
|
|
<import name="wechat-page" src="../../components/wechat/index.ux"></import>
|
|
-<import name="recom-page" src="../../components/book/read_recom.ux"></import>
|
|
|
|
|
|
+ <import name="recom-page" src="../../components/book/read_recom.ux"></import>
|
|
<template>
|
|
<template>
|
|
<div id="reader-content">
|
|
<div id="reader-content">
|
|
<stack>
|
|
<stack>
|
|
@@ -14,7 +14,7 @@
|
|
<div class="reader-title">
|
|
<div class="reader-title">
|
|
<text class="title" style="color:{{isNight=='night'?'#666':'#333'}}">{{bookinfo.chapter_name}}</text>
|
|
<text class="title" style="color:{{isNight=='night'?'#666':'#333'}}">{{bookinfo.chapter_name}}</text>
|
|
<!-- <text class="add-shelf" @click="addShelf">加入书架1</text> -->
|
|
<!-- <text class="add-shelf" @click="addShelf">加入书架1</text> -->
|
|
- </div>
|
|
|
|
|
|
+ </div>
|
|
|
|
|
|
<div class="reader-content">
|
|
<div class="reader-content">
|
|
<div class="readContent" @click="showMore"><text class="chapter-text" for='content' style="color:{{currentColor.fontColor}};font-size:{{`${readFontSize}px`}}">{{$item}}</text></div>
|
|
<div class="readContent" @click="showMore"><text class="chapter-text" for='content' style="color:{{currentColor.fontColor}};font-size:{{`${readFontSize}px`}}">{{$item}}</text></div>
|
|
@@ -65,24 +65,31 @@
|
|
<text class="operator catalog" @click="toCatalog">目录</text>
|
|
<text class="operator catalog" @click="toCatalog">目录</text>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
- <!-- -->
|
|
|
|
<div class="mustToask" show="{{showMustTost}}">
|
|
<div class="mustToask" show="{{showMustTost}}">
|
|
<div class="mustBox">
|
|
<div class="mustBox">
|
|
<image src="../../assets/imgs/addImg.png" @click="addDestop"></image>
|
|
<image src="../../assets/imgs/addImg.png" @click="addDestop"></image>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
|
|
+ <div class="mustToask" show="{{showWorkWechatTost}}">
|
|
|
|
+ <div class="qiweiMustBox">
|
|
|
|
+ <image src="../../assets/imgs/add_work_wechat.png" @click="goToWorkWeachat" ></image>
|
|
|
|
+ <!-- <div class="add-area" @click="goToWorkWeachat" :style="{{workWeachatHight}}"></div> -->
|
|
|
|
+ <div class="close-box" @click="closeWorkWeachat" show="{{force_add_work_wechat_type === 1}}">
|
|
|
|
+ <image src="../../assets/imgs/close.png"></image>
|
|
|
|
+ </div>
|
|
|
|
+
|
|
|
|
+ </div>
|
|
</div>
|
|
</div>
|
|
|
|
|
|
</template>
|
|
</template>
|
|
|
|
|
|
-
|
|
|
|
<script>
|
|
<script>
|
|
import prompt from '@system.prompt';
|
|
import prompt from '@system.prompt';
|
|
import router from "@system.router";
|
|
import router from "@system.router";
|
|
import storage from '@system.storage';
|
|
import storage from '@system.storage';
|
|
import pkg from '@system.package'
|
|
import pkg from '@system.package'
|
|
import it from "../../helper/interface.js";
|
|
import it from "../../helper/interface.js";
|
|
-import { getChapters, getIsonshelf, postUserShelfBooks, chapterOrders, userAddDsktop,noAdvBookInfo, recommendBooks,advReplaceBookInfo} from "../../api";
|
|
|
|
|
|
+import { getChapters, getIsonshelf, postUserShelfBooks, chapterOrders, userAddDsktop, noAdvBookInfo, recommendBooks, advReplaceBookInfo } from "../../api";
|
|
import { getAppConfig } from '../../api/utils.js';
|
|
import { getAppConfig } from '../../api/utils.js';
|
|
let getConfig;
|
|
let getConfig;
|
|
export default {
|
|
export default {
|
|
@@ -91,9 +98,9 @@ export default {
|
|
// chapter_id: ''
|
|
// chapter_id: ''
|
|
// },
|
|
// },
|
|
public: {
|
|
public: {
|
|
|
|
+ workWeachatHight: "",
|
|
bid: '',
|
|
bid: '',
|
|
- tx_bid:"",
|
|
|
|
- ad_bid:"",
|
|
|
|
|
|
+ tx_bid: "",
|
|
chapter_id: '',
|
|
chapter_id: '',
|
|
send_order_id: "",
|
|
send_order_id: "",
|
|
push_id: "",
|
|
push_id: "",
|
|
@@ -104,22 +111,25 @@ export default {
|
|
back_pkg: '',
|
|
back_pkg: '',
|
|
platform: '',
|
|
platform: '',
|
|
isShowBackBtn: false,
|
|
isShowBackBtn: false,
|
|
- recom_list:[],
|
|
|
|
- isShowBackRecom:false,
|
|
|
|
- last_recom_bid:"",
|
|
|
|
|
|
+ recom_list: [],
|
|
|
|
+ isShowBackRecom: false,
|
|
|
|
+ last_recom_bid: "",
|
|
},
|
|
},
|
|
private: {
|
|
private: {
|
|
-
|
|
|
|
bookinfo: {},
|
|
bookinfo: {},
|
|
content: [],
|
|
content: [],
|
|
reader_banner: [],
|
|
reader_banner: [],
|
|
showShortPop: false,
|
|
showShortPop: false,
|
|
readFontSize: 38,
|
|
readFontSize: 38,
|
|
isNight: 'sun',
|
|
isNight: 'sun',
|
|
- back_nums:0,
|
|
|
|
|
|
+ back_nums: 0,
|
|
hasShort: false,
|
|
hasShort: false,
|
|
showSetting: false,
|
|
showSetting: false,
|
|
force_add_desk_type: 0,
|
|
force_add_desk_type: 0,
|
|
|
|
+ force_add_work_wechat_type: 0, // 企微
|
|
|
|
+ hasClickWorkWechat: false, // 是否跳转过企微
|
|
|
|
+ showWorkWechatTost: false,
|
|
|
|
+ workWechatUrl: "",
|
|
showMustTost: false,
|
|
showMustTost: false,
|
|
back_reader: 0,
|
|
back_reader: 0,
|
|
colorList: [
|
|
colorList: [
|
|
@@ -146,27 +156,25 @@ export default {
|
|
}
|
|
}
|
|
},
|
|
},
|
|
async onInit() {
|
|
async onInit() {
|
|
-
|
|
|
|
|
|
+ // 企微点击读取
|
|
|
|
+ let clilck_work_wechat = (await storage.get({ key: "has_click_work_wechat_" + this.bid })).data;
|
|
|
|
+ if (clilck_work_wechat) {
|
|
|
|
+ this.hasClickWorkWechat = true;
|
|
|
|
+ }
|
|
|
|
+
|
|
if (this.platform) {
|
|
if (this.platform) {
|
|
- await storage.set({ key: "currue_tx_bid", value: this.bid });
|
|
|
|
- this.tx_bid = this.bid;
|
|
|
|
await storage.set({ key: "platform", value: this.platform });
|
|
await storage.set({ key: "platform", value: this.platform });
|
|
} else {
|
|
} else {
|
|
let platform = (await storage.get({ key: "platform" })).data;
|
|
let platform = (await storage.get({ key: "platform" })).data;
|
|
if (platform) this.platform = platform;
|
|
if (platform) this.platform = platform;
|
|
- let tx_bid = (await storage.get({ key: "currue_tx_bid" })).data;
|
|
|
|
- if(tx_bid){
|
|
|
|
- this.tx_bid = tx_bid;
|
|
|
|
- }else{
|
|
|
|
- this.tx_bid = "";
|
|
|
|
- }
|
|
|
|
|
|
+
|
|
}
|
|
}
|
|
- if(!this.last_recom_bid || this.last_recom_bid == ""){
|
|
|
|
|
|
+ if (!this.last_recom_bid || this.last_recom_bid == "") {
|
|
let last_recom_bid = (await storage.get({ key: "last_recom_bid" })).data;
|
|
let last_recom_bid = (await storage.get({ key: "last_recom_bid" })).data;
|
|
- if(last_recom_bid ){
|
|
|
|
- this.last_recom_bid = last_recom_bid ;
|
|
|
|
- }else{
|
|
|
|
- this.last_recom_bid = "";
|
|
|
|
|
|
+ if (last_recom_bid) {
|
|
|
|
+ this.last_recom_bid = last_recom_bid;
|
|
|
|
+ } else {
|
|
|
|
+ this.last_recom_bid = "";
|
|
}
|
|
}
|
|
}
|
|
}
|
|
if (this.back_name) {
|
|
if (this.back_name) {
|
|
@@ -196,21 +204,7 @@ export default {
|
|
if (this.push_id) {
|
|
if (this.push_id) {
|
|
await storage.set({ key: "push_id", value: this.push_id });
|
|
await storage.set({ key: "push_id", value: this.push_id });
|
|
}
|
|
}
|
|
- if (this.send_order_id) {
|
|
|
|
- this.ad_bid = this.bid;
|
|
|
|
- await storage.set({ key: "currue_ad_bid", value: this.bid });
|
|
|
|
- await storage.set({ key: "send_order_id", value: this.send_order_id });
|
|
|
|
-
|
|
|
|
- } else {
|
|
|
|
- let send_order_id = (await storage.get({ key: "send_order_id" })).data;
|
|
|
|
- if (send_order_id) this.send_order_id = send_order_id;
|
|
|
|
- let ad_bid = (await storage.get({ key: "currue_ad_bid" })).data;
|
|
|
|
- if(ad_bid){
|
|
|
|
- this.ad_bid = ad_bid;
|
|
|
|
- }else{
|
|
|
|
- this.ad_bid = "";
|
|
|
|
- }
|
|
|
|
- }
|
|
|
|
|
|
+
|
|
this.back_name = decodeURI(this.back_name)
|
|
this.back_name = decodeURI(this.back_name)
|
|
if (this.platform && (this.platform == 'tx_adq' || this.platform == 'tx_adq_new')) {
|
|
if (this.platform && (this.platform == 'tx_adq' || this.platform == 'tx_adq_new')) {
|
|
if (this.back_url) {
|
|
if (this.back_url) {
|
|
@@ -232,27 +226,20 @@ export default {
|
|
|
|
|
|
}
|
|
}
|
|
})
|
|
})
|
|
- }else{
|
|
|
|
- if(this.tx_bid == this.bid){
|
|
|
|
- let realBook = await noAdvBookInfo(this.send_order_id > 0 ? this.send_order_id :-1);
|
|
|
|
- if(realBook && realBook.bid && realBook.bid && realBook.cid){
|
|
|
|
- this.bid = realBook.bid;
|
|
|
|
- this.chapter_id = realBook.cid;
|
|
|
|
- }
|
|
|
|
- }
|
|
|
|
- }
|
|
|
|
|
|
+ }
|
|
|
|
|
|
- }else{
|
|
|
|
- // 如果书籍id为派单书籍id则检测是否需要替换书籍
|
|
|
|
- if(this.send_order_id > 0 && this.ad_bid == this.bid){
|
|
|
|
- let realBook = await advReplaceBookInfo(this.send_order_id);
|
|
|
|
- // let realBook = {};
|
|
|
|
- if(realBook && realBook.bid && realBook.bid && realBook.cid){
|
|
|
|
- this.bid = realBook.bid;
|
|
|
|
- this.chapter_id = realBook.cid;
|
|
|
|
- }
|
|
|
|
- }
|
|
|
|
- }
|
|
|
|
|
|
+ }
|
|
|
|
+ // else {
|
|
|
|
+ // // 如果书籍id为派单书籍id则检测是否需要替换书籍
|
|
|
|
+ // if (this.send_order_id > 0 && this.ad_bid == this.bid) {
|
|
|
|
+ // let realBook = await advReplaceBookInfo(this.send_order_id);
|
|
|
|
+ // // let realBook = {};
|
|
|
|
+ // if (realBook && realBook.bid && realBook.bid && realBook.cid) {
|
|
|
|
+ // this.bid = realBook.bid;
|
|
|
|
+ // this.chapter_id = realBook.cid;
|
|
|
|
+ // }
|
|
|
|
+ // }
|
|
|
|
+ // }
|
|
|
|
|
|
/* let s = (await storage.get({ key: "send_order_id" })).data;
|
|
/* let s = (await storage.get({ key: "send_order_id" })).data;
|
|
console.log("save send_order_id in storage");
|
|
console.log("save send_order_id in storage");
|
|
@@ -294,25 +281,34 @@ export default {
|
|
})
|
|
})
|
|
},
|
|
},
|
|
backRouter() {
|
|
backRouter() {
|
|
|
|
+ this.back_reader = 1;
|
|
|
|
+ let that = this;
|
|
if (this.back_reader == 1) {
|
|
if (this.back_reader == 1) {
|
|
|
|
+ if (this.back_nums == 0 && this.recom_list.length > 0) {
|
|
|
|
+ this.showShortPop = false;
|
|
|
|
+ this.back_nums = 2;
|
|
|
|
+ this.isShowBackRecom = true;
|
|
|
|
+ return true;
|
|
|
|
+ }
|
|
|
|
+ if (this.back_nums == 2) {
|
|
|
|
+ if (!this.hasShort) {
|
|
|
|
+ this.showShortPop = true;
|
|
|
|
+ }
|
|
|
|
+ this.back_nums = 3;
|
|
|
|
+ this.isShowBackRecom = false;
|
|
|
|
+ return true;
|
|
|
|
+ }
|
|
|
|
+
|
|
it.backCreateShortCut(res => {
|
|
it.backCreateShortCut(res => {
|
|
if (res == 'back') {
|
|
if (res == 'back') {
|
|
- if (router.getLength() === 1) {
|
|
|
|
- router.replace({ uri: "/views/Index" });
|
|
|
|
- return true;
|
|
|
|
- } else {
|
|
|
|
- router.back()
|
|
|
|
- }
|
|
|
|
|
|
+ that.getLastPage();
|
|
|
|
+ return true;
|
|
}
|
|
}
|
|
});
|
|
});
|
|
} else {
|
|
} else {
|
|
- if (router.getLength() === 1) {
|
|
|
|
- router.replace({ uri: "/views/Index" });
|
|
|
|
- return true;
|
|
|
|
- } else {
|
|
|
|
- router.back()
|
|
|
|
- }
|
|
|
|
|
|
+ that.getLastPage();
|
|
}
|
|
}
|
|
|
|
+ return true;
|
|
},
|
|
},
|
|
async onShow() {
|
|
async onShow() {
|
|
it.getShortCut((value) => {
|
|
it.getShortCut((value) => {
|
|
@@ -389,9 +385,10 @@ export default {
|
|
console.log("router length:", router.getLength());
|
|
console.log("router length:", router.getLength());
|
|
getChapters({ bid: bid, chapter_id: chapter_id }).then(r => {
|
|
getChapters({ bid: bid, chapter_id: chapter_id }).then(r => {
|
|
this.force_add_desk_type = r.force_add_desk_type;
|
|
this.force_add_desk_type = r.force_add_desk_type;
|
|
|
|
+ this.force_add_work_wechat_type = r.force_add_work_wechat_type;
|
|
|
|
+ this.workWechatUrl = r.force_add_work_wechat_url
|
|
this.content = r.chapter_content.trim().split(/\n/)
|
|
this.content = r.chapter_content.trim().split(/\n/)
|
|
this.bookinfo = r;
|
|
this.bookinfo = r;
|
|
-
|
|
|
|
// this.$element('list').scrollTo({ index: 0 })
|
|
// this.$element('list').scrollTo({ index: 0 })
|
|
this.addShelf();
|
|
this.addShelf();
|
|
this.showtoast = false
|
|
this.showtoast = false
|
|
@@ -406,8 +403,8 @@ export default {
|
|
this.showtoast = false
|
|
this.showtoast = false
|
|
// this.$element('list').scrollTo({ index: 0 })
|
|
// this.$element('list').scrollTo({ index: 0 })
|
|
}).catch(f => {
|
|
}).catch(f => {
|
|
- // console.log('f code')
|
|
|
|
- // console.log(f.data)
|
|
|
|
|
|
+ console.log('f code')
|
|
|
|
+ console.log(f.data)
|
|
this.showtoast = false
|
|
this.showtoast = false
|
|
if (f.data.code == '10014' || f.data.code == '10015' || f.data.code == '10016') {
|
|
if (f.data.code == '10014' || f.data.code == '10015' || f.data.code == '10016') {
|
|
this.getChapters(bid, this.canReadecid)
|
|
this.getChapters(bid, this.canReadecid)
|
|
@@ -474,22 +471,39 @@ export default {
|
|
getNextChapter(evt) {
|
|
getNextChapter(evt) {
|
|
evt.stopPropagation();
|
|
evt.stopPropagation();
|
|
let _this = this;
|
|
let _this = this;
|
|
- if (this.force_add_desk_type == 1) {
|
|
|
|
- it.getShortCut(res => {
|
|
|
|
- if (!res) { this.showMustTost = true; } else {
|
|
|
|
|
|
+ if (!this.hasClickWorkWechat && this.force_add_work_wechat_type > 0) {
|
|
|
|
+ // 需要处理企微
|
|
|
|
+ if (this.force_add_desk_type == 1) {
|
|
|
|
+ // 强加桌
|
|
|
|
+ it.getShortCut(res => {
|
|
|
|
+ if (!res) { this.showMustTost = true; } else {
|
|
|
|
+ this.showWorkWechatTost = true;
|
|
|
|
+ // this.goNext();
|
|
|
|
+ }
|
|
|
|
+ })
|
|
|
|
+ } else {
|
|
|
|
+ this.showWorkWechatTost = true;
|
|
|
|
+ }
|
|
|
|
+ } else {
|
|
|
|
+ // 无需弹窗企微
|
|
|
|
+ if (this.force_add_desk_type == 1) {
|
|
|
|
+ it.getShortCut(res => {
|
|
|
|
+ if (!res) { this.showMustTost = true; } else {
|
|
|
|
+ this.goNext();
|
|
|
|
+ }
|
|
|
|
+ })
|
|
|
|
+ } else if (this.force_add_desk_type == 2) {
|
|
|
|
+ it.loseLevelShortCut(res => {
|
|
this.goNext();
|
|
this.goNext();
|
|
- }
|
|
|
|
- })
|
|
|
|
- } else if (this.force_add_desk_type == 2) {
|
|
|
|
- it.loseLevelShortCut(res => {
|
|
|
|
|
|
+ })
|
|
|
|
+ } else {
|
|
this.goNext();
|
|
this.goNext();
|
|
- })
|
|
|
|
- } else {
|
|
|
|
- this.goNext();
|
|
|
|
|
|
+ }
|
|
}
|
|
}
|
|
|
|
+
|
|
},
|
|
},
|
|
goNext() {
|
|
goNext() {
|
|
- let self =this;
|
|
|
|
|
|
+ let self = this;
|
|
if (this.bookinfo.next_cid == 0) {
|
|
if (this.bookinfo.next_cid == 0) {
|
|
router.push({
|
|
router.push({
|
|
uri: "/views/Raderover",
|
|
uri: "/views/Raderover",
|
|
@@ -546,74 +560,73 @@ export default {
|
|
|
|
|
|
},
|
|
},
|
|
onBackPress() {
|
|
onBackPress() {
|
|
- this.back_reader = 1;
|
|
|
|
- let that = this;
|
|
|
|
- if (this.back_reader == 1) {
|
|
|
|
- if(this.back_nums == 0 && this.recom_list.length > 0){
|
|
|
|
- this.showShortPop = false;
|
|
|
|
- this.back_nums = 2;
|
|
|
|
- this.isShowBackRecom = true;
|
|
|
|
- return true;
|
|
|
|
- }
|
|
|
|
- if(this.back_nums == 2){
|
|
|
|
- if(!this.hasShort){
|
|
|
|
- this.showShortPop = true;
|
|
|
|
- }
|
|
|
|
- this.back_nums = 3;
|
|
|
|
- this.isShowBackRecom = false;
|
|
|
|
- return true;
|
|
|
|
- }
|
|
|
|
-
|
|
|
|
- it.backCreateShortCut(res => {
|
|
|
|
- if (res == 'back') {
|
|
|
|
- that.getLastPage();
|
|
|
|
- return true;
|
|
|
|
- }
|
|
|
|
- });
|
|
|
|
- } else {
|
|
|
|
- that.getLastPage();
|
|
|
|
- }
|
|
|
|
-
|
|
|
|
- that.getLastPage();
|
|
|
|
|
|
+ this.backRouter();
|
|
|
|
+ // that.getLastPage();
|
|
return true;
|
|
return true;
|
|
- },async changeRecomEnd(data){
|
|
|
|
- if(data.detail.op == "change_book"){
|
|
|
|
|
|
+ }, async changeRecomEnd(data) {
|
|
|
|
+ if (data.detail.op == "change_book") {
|
|
this.getRecomList(1);
|
|
this.getRecomList(1);
|
|
-
|
|
|
|
- }else if(data.detail.op =="close"){
|
|
|
|
|
|
+
|
|
|
|
+ } else if (data.detail.op == "close") {
|
|
this.isShowBackRecom = false;
|
|
this.isShowBackRecom = false;
|
|
|
|
+ this.back_nums = 3;
|
|
|
|
+ if (!this.hasShort) {
|
|
|
|
+ this.back_nums = 2;
|
|
|
|
+ }
|
|
|
|
+
|
|
}
|
|
}
|
|
- },async getRecomList(isChang=0){
|
|
|
|
- let recom_list = await recommendBooks(this.last_recom_bid);
|
|
|
|
- if(recom_list.length > 0){
|
|
|
|
|
|
+ }, async getRecomList(isChang = 0) {
|
|
|
|
+ let recom_list = await recommendBooks(this.last_recom_bid);
|
|
|
|
+ if (recom_list.length > 0) {
|
|
this.recom_list = recom_list;
|
|
this.recom_list = recom_list;
|
|
- this.last_recom_bid = recom_list[recom_list.length-1].book_id;
|
|
|
|
|
|
+ this.last_recom_bid = recom_list[recom_list.length - 1].book_id;
|
|
}
|
|
}
|
|
- if(isChang == 1 || !this.last_recom_bid || this.last_recom_bid == ''){
|
|
|
|
- await storage.set({ key: "last_recom_bid", value: this.last_recom_bid });
|
|
|
|
|
|
+ if (isChang == 1 || !this.last_recom_bid || this.last_recom_bid == '') {
|
|
|
|
+ await storage.set({ key: "last_recom_bid", value: this.last_recom_bid });
|
|
}
|
|
}
|
|
-
|
|
|
|
|
|
+
|
|
// console.log(this.recom_list.length);
|
|
// console.log(this.recom_list.length);
|
|
// if(this.recom_list.length == 3){
|
|
// if(this.recom_list.length == 3){
|
|
// return true;
|
|
// return true;
|
|
// }
|
|
// }
|
|
-
|
|
|
|
- },getLastPage(){
|
|
|
|
- let page = router.getState();
|
|
|
|
- let allPage = router.getPages();
|
|
|
|
- let back = {};
|
|
|
|
- for (var i = allPage.length - 1; i >= 0; i--)
|
|
|
|
- {
|
|
|
|
- if (allPage[i].name != page.name) {
|
|
|
|
- back = allPage[i];
|
|
|
|
- break;
|
|
|
|
- }
|
|
|
|
- }
|
|
|
|
- if(JSON.stringify(back) === '{}'){
|
|
|
|
- router.replace({ uri: "/views/Index" });
|
|
|
|
- }else{
|
|
|
|
- router.back(back);
|
|
|
|
|
|
+
|
|
|
|
+ }, getLastPage() {
|
|
|
|
+ let page = router.getState();
|
|
|
|
+ let allPage = router.getPages();
|
|
|
|
+ let back = {};
|
|
|
|
+ for (var i = allPage.length - 1; i >= 0; i--) {
|
|
|
|
+ if (allPage[i].name != page.name && allPage[i].name != "views/Dispatch") {
|
|
|
|
+ back = allPage[i];
|
|
|
|
+ break;
|
|
}
|
|
}
|
|
|
|
+ }
|
|
|
|
+ if (JSON.stringify(back) === '{}') {
|
|
|
|
+ router.replace({ uri: "/views/Index" });
|
|
|
|
+ } else {
|
|
|
|
+ router.back(back);
|
|
|
|
+ }
|
|
|
|
+ }, async goToWorkWeachat() {
|
|
|
|
+ await storage.set({ key: "has_click_work_wechat_" + this.bid, value: 1 });
|
|
|
|
+ this.showWorkWechatTost = false;
|
|
|
|
+ this.hasClickWorkWechat = true;
|
|
|
|
+ if (this.workWechatUrl) {
|
|
|
|
+ router.push({
|
|
|
|
+ uri: this.workWechatUrl
|
|
|
|
+ })
|
|
|
|
+ let $this = this;
|
|
|
|
+ setTimeout(() => {
|
|
|
|
+ $this.goNext();
|
|
|
|
+ }, 10000)
|
|
|
|
+ }else{
|
|
|
|
+ this.goNext();
|
|
|
|
+ }
|
|
|
|
+
|
|
|
|
+ }, async closeWorkWeachat() {
|
|
|
|
+ await storage.set({ key: "has_click_work_wechat_" + this.bid, value: 2 });
|
|
|
|
+ this.showWorkWechatTost = false;
|
|
|
|
+ this.hasClickWorkWechat = true;
|
|
|
|
+ this.goNext();
|
|
|
|
+
|
|
}
|
|
}
|
|
}
|
|
}
|
|
|
|
|
|
@@ -621,4 +634,4 @@ export default {
|
|
|
|
|
|
<style lang="less">
|
|
<style lang="less">
|
|
@import '../../assets/less/reader.less';
|
|
@import '../../assets/less/reader.less';
|
|
-</style>
|
|
|
|
|
|
+</style>
|