Commit a232325f authored by mengcuiguang's avatar mengcuiguang

添加匹配用户跳转小说逻辑

parent b24c9eb5
<template>
<view class="body">
<!-- <scroll-view :scroll-y="true"> -->
<z-paging style="height: 100%;">
<!-- <z-paging style="height: 100%;"> -->
<view v-if="showMask" class="show-mask flex-v" @click="showMask=false">
<view class="mt-30" style="width: 90%;text-align: right;">
<image style="width: 30rpx;height: 30rpx;padding:6rpx;
border-radius: 40rpx;border: 2px solid darkgray;" src="@/static/index/ic_quit_white.png" />
</view>
<text class="mt-10" style="font-size: 46rpx;">如何继续使用?</text>
<text class="m-10">找到“幻墨小说阁”小程序</text>
<image class="mt-30" mode="widthFix" :src="maskImage1"></image>
<image :src="maskImage2" mode="widthFix"></image>
</view>
<view
:style="'display: flex;flex-direction: row;align-items: center;margin: 20rpx;padding-left: 10rpx;margin-top:'+10+'px;'">
<image class="avatar" src="@/static/logo-about.png"></image>
......@@ -26,7 +37,7 @@
</view>
<view v-if="userBean.expireTime<=0" style="font-size: 28rpx;color: #b5b5b5;margin-top: 20rpx;">
开通会员畅读VIP享更多福利</view>
开通会员享更多福利</view>
<view v-else style="font-size: 28rpx;color: #b5b5b5;margin-top: 20rpx;">
到期时间:{{userBean.expireTime*1000 | formatDate('yyyy-MM-dd')}}</view>
</view>
......@@ -59,6 +70,10 @@
阅读记录
<view class="item_bd ellipsis" style="margin-left: 58rpx;"></view>
</view>
<view class="item arrow" @click="handleFind">
如何找到我
<view class="item_bd ellipsis" style="margin-left: 58rpx;"></view>
</view>
<view class="item arrow" @click="handlePhone">
联系客服
<view class="item_bd ellipsis" style="margin-left: 58rpx;"></view>
......@@ -68,8 +83,7 @@
<view style="display: flex;justify-content: center;margin-top: 20rpx;font-size: 26rpx;color: gray;">
{{ versionName }}
</view>
</z-paging>
<!-- </scroll-view> -->
<!-- </z-paging> -->
<coin-popup :show="showAnimate" @close="showAnimate = false" @paySuccess="paySuccess">
</coin-popup>
......@@ -100,6 +114,9 @@
mixins: [common],
data() {
return {
showMask: false,
maskImage1: 'https://mints-web.oss-cn-beijing.aliyuncs.com/images/bg_find1.png',
maskImage2: 'https://mints-web.oss-cn-beijing.aliyuncs.com/images/bg_find2.png',
statusBarHeight: app.globalData.statusBarHeight,
userBean: {},
showAnimate: false,
......@@ -154,6 +171,9 @@
handlePayRecord() {
navigateTo(`/pagesD/payRecord/payRecord`)
},
handleFind(){
this.showMask = true
},
handlePhone() {
wx.makePhoneCall({
phoneNumber: '4000969950',
......@@ -263,4 +283,18 @@
font-style: italic;
}
}
.show-mask {
width: 100%;
height: 100%;
background: rgba(0, 0, 0, 0.6);
position: absolute;
z-index: 999;
color: white;
align-items: center;
image {
width: 90%;
}
}
</style>
\ No newline at end of file
......@@ -89,8 +89,13 @@
show() {
setTimeout(() => {
// 匹配用户直接跳转小说
if (options.bookId != '' && options.bookId != undefined) {
gotoBookContentPage(options.bookId);
var bookId=uni.getStorageSync('firstBookId')
if (bookId != '') {
gotoBookContentPage(bookId);
uni.setStorage({
key: 'firstBookId',
data: ''
});
}
}, 800);
this.getCategoryData();
......
......@@ -53,6 +53,8 @@
var remark2 = ''; // 预留
var remark3 = ''; // 预留
var thirdParam = "";
var bookId = '';
bookId = obj.query.book_id ?? ''
tips2 = obj.query.tips2 ?? ''
remark1 = obj.query.remark1 ?? ''
remark2 = obj.query.remark2 ?? ''
......@@ -64,12 +66,21 @@
this.$refs.select.open('center');
}
// 首次跳转进小书页面
if (bookId != '') {
uni.setStorage({
key: 'firstBookId',
data: bookId
});
}
tt.login({
force: true,
success(res) {
that.post({
url: '/user/ttLogin',
data: {
bookId: bookId,
channel: 'douyin',
code: res.code,
anonymousCode: res.anonymousCode,
......
......@@ -61,7 +61,7 @@
},
queryList(page, size) {
this.post({
url: '/readSystem/system/readRecord/list',
url: '/book/readRecordList',
data: {
page,
size
......@@ -80,11 +80,11 @@
handleXing(item) {
var that = this;
//0未收藏,1收藏
if (item.isCollect == 0) {
if (!item.isCollect) {
this.post({
url: '/vedio/collect',
url: '/book/collect',
data: {
vedioId: item.vedioId,
articleId: item.articleId,
},
showLoading: false,
success: ({
......@@ -95,9 +95,9 @@
});
} else {
this.post({
url: '/vedio/cancelCollect',
url: '/book/cancelCollect',
data: {
vedioId: item.vedioId,
articleId: item.articleId,
},
showLoading: false,
success: ({
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment