|
@@ -49,7 +49,7 @@
|
|
|
</swiper>
|
|
|
</div>
|
|
|
</div>
|
|
|
- <short-page if="{{showShortPop}}" @addshort="shortEnd"></short-page>
|
|
|
+ <short-page if="{{showShortPop}}" @addshort="shortEnd" bottom="40"></short-page>
|
|
|
<!-- <wechat-page></wechat-page> -->
|
|
|
<div class='toast' if="{{showtoast}}">
|
|
|
<text>正在加载中...</text>
|
|
@@ -89,6 +89,7 @@ export default {
|
|
|
// },
|
|
|
public: {
|
|
|
bid: '',
|
|
|
+ tx_bid:"",
|
|
|
chapter_id: '',
|
|
|
send_order_id: "",
|
|
|
push_id: "",
|
|
@@ -99,6 +100,9 @@ export default {
|
|
|
back_pkg: '',
|
|
|
platform: '',
|
|
|
isShowBackBtn: false,
|
|
|
+ recom_list:[],
|
|
|
+ isShowBackRecom:false,
|
|
|
+ last_recom_bid:"",
|
|
|
},
|
|
|
private: {
|
|
|
|
|
@@ -108,6 +112,7 @@ export default {
|
|
|
showShortPop: false,
|
|
|
readFontSize: 38,
|
|
|
isNight: 'sun',
|
|
|
+ back_nums:0,
|
|
|
hasShort: false,
|
|
|
showSetting: false,
|
|
|
force_add_desk_type: 0,
|
|
@@ -139,10 +144,26 @@ export default {
|
|
|
async onInit() {
|
|
|
|
|
|
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 });
|
|
|
} else {
|
|
|
let platform = (await storage.get({ key: "platform" })).data;
|
|
|
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 == ""){
|
|
|
+ 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 (this.back_name) {
|
|
|
await storage.set({ key: "back_name", value: this.back_name });
|
|
@@ -162,9 +183,19 @@ export default {
|
|
|
let back_pkg = (await storage.get({ key: "back_pkg" })).data;
|
|
|
if (back_pkg) this.back_pkg = back_pkg;
|
|
|
}
|
|
|
+ if (this.send_order_id) {
|
|
|
+ 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;
|
|
|
+ }
|
|
|
+ if (this.push_id) {
|
|
|
+ await storage.set({ key: "push_id", value: this.push_id });
|
|
|
+ }
|
|
|
this.back_name = decodeURI(this.back_name)
|
|
|
- if (this.platform && this.platform == 'tx_adq') {
|
|
|
+ if (this.platform && (this.platform == 'tx_adq' || this.platform == 'tx_adq_new')) {
|
|
|
if (this.back_url) {
|
|
|
+ // console.log('book_info',book_info);
|
|
|
pkg.hasInstalled({
|
|
|
package: this.back_pkg,
|
|
|
success: data => {
|
|
@@ -172,7 +203,7 @@ export default {
|
|
|
this.isShowBackBtn = false
|
|
|
}
|
|
|
if (data.result) {
|
|
|
- this.isShowBackBtn = true
|
|
|
+ this.isShowBackBtn = true;
|
|
|
}
|
|
|
},
|
|
|
fail: function (data, code) {
|
|
@@ -182,19 +213,17 @@ 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;
|
|
|
+ }
|
|
|
+ }
|
|
|
}
|
|
|
|
|
|
}
|
|
|
-
|
|
|
- if (this.send_order_id) {
|
|
|
- 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;
|
|
|
- }
|
|
|
- if (this.push_id) {
|
|
|
- await storage.set({ key: "push_id", value: this.push_id });
|
|
|
- }
|
|
|
/* let s = (await storage.get({ key: "send_order_id" })).data;
|
|
|
console.log("save send_order_id in storage");
|
|
|
console.log("send_order_id", this.send_order_id);
|