|
@@ -123,16 +123,21 @@
|
|
|
</div>
|
|
|
</transition>
|
|
|
</div>
|
|
|
-
|
|
|
- <div class="add_desk" v-if="addDesktop && !isStandalone" @touchmove.prevent>
|
|
|
+ <div class="add_desk" @touchmove.prevent v-if="addDesktop && !isStandalone">
|
|
|
<div class="addgif">
|
|
|
- <div class="add-title">
|
|
|
- <p>添加至桌面,方便下次继续阅读</p>
|
|
|
- <!-- <i class="closed" ></i> -->
|
|
|
- </div>
|
|
|
- <div class="add-gif">
|
|
|
- <img src="../../src/assets/adddeskot.gif" />
|
|
|
- </div>
|
|
|
+ <template v-if="modes == 'B' ">
|
|
|
+ <div class="addpng">
|
|
|
+ <img src="../../src/assets/addtips.png" width="100%" />
|
|
|
+ </div>
|
|
|
+ <div class="add-gif">
|
|
|
+ <img src="../../src/assets/adddeskot.gif" />
|
|
|
+ </div>
|
|
|
+ </template>
|
|
|
+ <template v-else>
|
|
|
+ <div class="popimg">
|
|
|
+ <img src="../assets/popimg.png" width="100%" />
|
|
|
+ </div>
|
|
|
+ </template>
|
|
|
</div>
|
|
|
</div>
|
|
|
<div
|
|
@@ -167,7 +172,7 @@ import {
|
|
|
BookShare,
|
|
|
BookRecent
|
|
|
} from "./namespace.js";
|
|
|
-
|
|
|
+import Vue from 'vue';
|
|
|
import {
|
|
|
SingActive,
|
|
|
Book1,
|
|
@@ -199,7 +204,8 @@ import {
|
|
|
getReaderAdBanner,
|
|
|
getRecentReader,
|
|
|
getUserInfo,
|
|
|
- setUserMode
|
|
|
+ setUserMode,
|
|
|
+ changeAddMode
|
|
|
} from "../api";
|
|
|
import {
|
|
|
clearStorageChapter,
|
|
@@ -237,6 +243,7 @@ export default {
|
|
|
weakSubscribeHorizontalNum: 0,
|
|
|
weakSubscribeStyle: {},
|
|
|
firstReader: false,
|
|
|
+ modes: "A",
|
|
|
weakSubscribeText: [
|
|
|
"【更多精彩内容 请点击阅读】",
|
|
|
"【点击阅读海量小说】"
|
|
@@ -743,7 +750,11 @@ export default {
|
|
|
async created() {
|
|
|
let uuid = localStorage.getItem("uuids");
|
|
|
let { yun, bid, cid, uuids, sendid = 0, isreplace = 0 } = this.$route.query;
|
|
|
- if (sendid) localStorage.setItem("sendid", this.$route.query.sendid);
|
|
|
+ if (sendid){
|
|
|
+ localStorage.setItem("sendid", this.$route.query.sendid);
|
|
|
+ sessionStorage.setItem("sendid", this.$route.query.sendid);
|
|
|
+ Vue.prototype.sendid = sendid;
|
|
|
+ }
|
|
|
this.uuids = uuids || uuid;
|
|
|
if (yun) this.yun = yun;
|
|
|
|
|
@@ -778,7 +789,12 @@ export default {
|
|
|
if (!this.justifyRouter(this.$route)) return;
|
|
|
this.href = window.location.href;
|
|
|
// 获取书籍详情
|
|
|
- await getDetail(this.$route.query.bid).then(m => {
|
|
|
+
|
|
|
+ //获取AB测试
|
|
|
+ let modes = await changeAddMode();
|
|
|
+ this.modes = modes.type;
|
|
|
+
|
|
|
+ getDetail(this.$route.query.bid).then(m => {
|
|
|
this.bookdetail = m;
|
|
|
this.is_on = !!m.is_on_user_shelf;
|
|
|
});
|
|
@@ -1183,6 +1199,9 @@ export default {
|
|
|
width: 80%;
|
|
|
height: 9.8rem;
|
|
|
margin: auto;
|
|
|
+ .addpng {
|
|
|
+ margin-bottom: 0.2rem;
|
|
|
+ }
|
|
|
.add-gif {
|
|
|
background: #fff;
|
|
|
display: flex;
|