youhua
This commit is contained in:
parent
b40f57b594
commit
99effad482
@ -190,9 +190,7 @@
|
||||
readingPopupshow: false,
|
||||
stepUpPopupShow: false,
|
||||
purchaseFullShow: false,
|
||||
balanceShow: false,
|
||||
navbarPopupShow:false,
|
||||
balanceTitle: '下一章,付费章节',
|
||||
// bar 的icon
|
||||
barPopupIcon: {},
|
||||
dialogTextColor: '',
|
||||
@ -216,15 +214,11 @@
|
||||
newCharactersSize: 28,
|
||||
defaultCharactersLineHeight: 20,
|
||||
readDirectoryActive: '',
|
||||
computeRichText: '',
|
||||
computeRichTextWidth: 0,
|
||||
refresherTriggered: false,
|
||||
readChapterid: '',
|
||||
readChapterFlag: false,
|
||||
readChapterInfoObj: {},
|
||||
readChapterLastid: '',
|
||||
readChapterNextid: '',
|
||||
refresherEnabled: true,
|
||||
};
|
||||
},
|
||||
onLoad(options) {
|
||||
@ -324,6 +318,11 @@
|
||||
if (readChapterInfoObj.chackpay == 1) {
|
||||
callback('success', readChapterInfoObj)
|
||||
}
|
||||
if (readChapterInfoObj.chackpay == 2 || readChapterInfoObj.chackpay == 3) {
|
||||
const novelContentColor = this.novelContentColor;
|
||||
const newCharactersSize = this.newCharactersSize;
|
||||
const bodyReadingBg = this.bodyReadingBg;
|
||||
const custom = [`slot:test`];
|
||||
const obj = {
|
||||
...readChapterInfoObj,
|
||||
custom,
|
||||
@ -331,6 +330,7 @@
|
||||
}
|
||||
callback('success', obj)
|
||||
}
|
||||
}
|
||||
if (chapter > newReadDirectoryActive) {
|
||||
const readChapterInfoObj = await this.isGetBookInfo(newReadChapterNextid);
|
||||
this.novelReadingContentText = [readChapterInfoObj, ...newNovelReadingContentText];
|
||||
@ -338,27 +338,11 @@
|
||||
if (readChapterInfoObj.chackpay == 1) {
|
||||
callback('success', readChapterInfoObj)
|
||||
}
|
||||
if (readChapterInfoObj.chackpay == 2) {
|
||||
if (readChapterInfoObj.chackpay == 2 || readChapterInfoObj.chackpay == 3) {
|
||||
const novelContentColor = this.novelContentColor;
|
||||
const newCharactersSize = this.newCharactersSize;
|
||||
const bodyReadingBg = this.bodyReadingBg;
|
||||
//
|
||||
const custom = [`slot:test`]
|
||||
// const custom = [
|
||||
// `<div class="balance_con">
|
||||
// <div class="balance_con_rich_text"
|
||||
// style="color:${novelContentColor};font-size:${newCharactersSize}px;"
|
||||
// >${readChapterInfoObj.content}</div>
|
||||
// <div class="balance_recharge_option"></div>
|
||||
// <div class="balance_recharge" style="background:${bodyReadingBg}">
|
||||
// <div class="balance_tips" style="color:${novelContentColor}">
|
||||
// 付费章节,需要购买。${readChapterInfoObj.price}书币</div>
|
||||
// <div class="balance_btn_all">
|
||||
// <div class="purchaseFull_popup_btn" onclick="handelPurchaseFull">需要全本购买</div>
|
||||
// </div>
|
||||
// </div>
|
||||
// </div>`
|
||||
// ]
|
||||
const custom = [`slot:test`];
|
||||
const obj = {
|
||||
...readChapterInfoObj,
|
||||
custom,
|
||||
@ -460,9 +444,6 @@
|
||||
url: `/pages/voucherCenter/index`
|
||||
})
|
||||
},
|
||||
balanceCancel() {
|
||||
this.balanceShow = false;
|
||||
},
|
||||
handelPurchaseFull() {
|
||||
const readChapterInfoObj = this.readChapterInfoObj;
|
||||
uni.showLoading({
|
||||
@ -477,8 +458,7 @@
|
||||
uni.hideLoading();
|
||||
if (res.status == 1) {
|
||||
if (res.data.status == 2) {
|
||||
this.balanceShow = true;
|
||||
this.balanceTitle = '';
|
||||
console.log("购买失败")
|
||||
}
|
||||
}
|
||||
}).catch((err) => {
|
||||
@ -487,7 +467,6 @@
|
||||
},
|
||||
// 切换页面颜色
|
||||
changNovelMainType(type) {
|
||||
|
||||
this.novelMainTypeColor = type;
|
||||
this.initPage(type);
|
||||
const novelMainObj = myGetStorage('novelMainObj') || '{}';
|
||||
@ -614,7 +593,6 @@
|
||||
screenWidth
|
||||
} = isGetSystemInfo();
|
||||
// this.myData = myData;
|
||||
this.computeRichTextWidth = windowWidth;
|
||||
this.novelMainTypeColor = novelMainTypeColor;
|
||||
this.newCharactersSize = JSON.parse(novelMainObj).charactersSize || 28;
|
||||
this.bodyReadingHeight = screenHeight - statusBarHeight - devicePixelRatio * 22;
|
||||
@ -729,13 +707,6 @@
|
||||
position: relative;
|
||||
}
|
||||
|
||||
#compute_rich_text {
|
||||
position: fixed;
|
||||
top: 1500px;
|
||||
padding: 32rpx;
|
||||
box-sizing: border-box;
|
||||
}
|
||||
|
||||
.novelReading_content {
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
@ -929,14 +900,14 @@
|
||||
}
|
||||
}
|
||||
|
||||
.reading_schedule_slider::v-deep.uni-slider-handle-wrapper {
|
||||
height: 60rpx;
|
||||
border-radius: 30rpx;
|
||||
// .reading_schedule_slider::v-deep.uni-slider-handle-wrapper {
|
||||
// height: 60rpx;
|
||||
// border-radius: 30rpx;
|
||||
|
||||
.uni-slider-track {
|
||||
border-radius: 30rpx;
|
||||
}
|
||||
}
|
||||
// .uni-slider-track {
|
||||
// border-radius: 30rpx;
|
||||
// }
|
||||
// }
|
||||
|
||||
.directory_popup_box {
|
||||
position: relative;
|
||||
@ -982,30 +953,5 @@
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
.purchaseFull_popup_box {
|
||||
width: 100%;
|
||||
box-sizing: border-box;
|
||||
padding: 50rpx 32rpx;
|
||||
|
||||
.purchaseFull_popup_btn_box {
|
||||
display: flex;
|
||||
justify-content: center;
|
||||
margin-top: 50rpx;
|
||||
|
||||
.purchaseFull_popup_btn {
|
||||
display: flex;
|
||||
justify-content: center;
|
||||
align-items: center;
|
||||
width: 640rpx;
|
||||
height: 84rpx;
|
||||
font-size: 30rpx;
|
||||
color: #fff;
|
||||
background: linear-gradient(to top, #FBA676, #E95E32);
|
||||
border-radius: 24rpx;
|
||||
}
|
||||
}
|
||||
}
|
||||
</style>
|
2
unpackage/dist/dev/app-plus/app-service.js
vendored
2
unpackage/dist/dev/app-plus/app-service.js
vendored
File diff suppressed because one or more lines are too long
2
unpackage/dist/dev/app-plus/app-view.js
vendored
2
unpackage/dist/dev/app-plus/app-view.js
vendored
File diff suppressed because one or more lines are too long
Loading…
x
Reference in New Issue
Block a user