Commit a232325f authored by mengcuiguang's avatar mengcuiguang

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

parent b24c9eb5
<template> <template>
<view class="body"> <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 <view
:style="'display: flex;flex-direction: row;align-items: center;margin: 20rpx;padding-left: 10rpx;margin-top:'+10+'px;'"> :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> <image class="avatar" src="@/static/logo-about.png"></image>
...@@ -26,7 +37,7 @@ ...@@ -26,7 +37,7 @@
</view> </view>
<view v-if="userBean.expireTime<=0" style="font-size: 28rpx;color: #b5b5b5;margin-top: 20rpx;"> <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;"> <view v-else style="font-size: 28rpx;color: #b5b5b5;margin-top: 20rpx;">
到期时间:{{userBean.expireTime*1000 | formatDate('yyyy-MM-dd')}}</view> 到期时间:{{userBean.expireTime*1000 | formatDate('yyyy-MM-dd')}}</view>
</view> </view>
...@@ -59,6 +70,10 @@ ...@@ -59,6 +70,10 @@
阅读记录 阅读记录
<view class="item_bd ellipsis" style="margin-left: 58rpx;"></view> <view class="item_bd ellipsis" style="margin-left: 58rpx;"></view>
</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 arrow" @click="handlePhone">
联系客服 联系客服
<view class="item_bd ellipsis" style="margin-left: 58rpx;"></view> <view class="item_bd ellipsis" style="margin-left: 58rpx;"></view>
...@@ -68,8 +83,7 @@ ...@@ -68,8 +83,7 @@
<view style="display: flex;justify-content: center;margin-top: 20rpx;font-size: 26rpx;color: gray;"> <view style="display: flex;justify-content: center;margin-top: 20rpx;font-size: 26rpx;color: gray;">
{{ versionName }} {{ versionName }}
</view> </view>
</z-paging> <!-- </z-paging> -->
<!-- </scroll-view> -->
<coin-popup :show="showAnimate" @close="showAnimate = false" @paySuccess="paySuccess"> <coin-popup :show="showAnimate" @close="showAnimate = false" @paySuccess="paySuccess">
</coin-popup> </coin-popup>
...@@ -100,6 +114,9 @@ ...@@ -100,6 +114,9 @@
mixins: [common], mixins: [common],
data() { data() {
return { 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, statusBarHeight: app.globalData.statusBarHeight,
userBean: {}, userBean: {},
showAnimate: false, showAnimate: false,
...@@ -154,6 +171,9 @@ ...@@ -154,6 +171,9 @@
handlePayRecord() { handlePayRecord() {
navigateTo(`/pagesD/payRecord/payRecord`) navigateTo(`/pagesD/payRecord/payRecord`)
}, },
handleFind(){
this.showMask = true
},
handlePhone() { handlePhone() {
wx.makePhoneCall({ wx.makePhoneCall({
phoneNumber: '4000969950', phoneNumber: '4000969950',
...@@ -263,4 +283,18 @@ ...@@ -263,4 +283,18 @@
font-style: italic; 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> </style>
\ No newline at end of file
...@@ -89,8 +89,13 @@ ...@@ -89,8 +89,13 @@
show() { show() {
setTimeout(() => { setTimeout(() => {
// 匹配用户直接跳转小说 // 匹配用户直接跳转小说
if (options.bookId != '' && options.bookId != undefined) { var bookId=uni.getStorageSync('firstBookId')
gotoBookContentPage(options.bookId); if (bookId != '') {
gotoBookContentPage(bookId);
uni.setStorage({
key: 'firstBookId',
data: ''
});
} }
}, 800); }, 800);
this.getCategoryData(); this.getCategoryData();
......
...@@ -53,6 +53,8 @@ ...@@ -53,6 +53,8 @@
var remark2 = ''; // 预留 var remark2 = ''; // 预留
var remark3 = ''; // 预留 var remark3 = ''; // 预留
var thirdParam = ""; var thirdParam = "";
var bookId = '';
bookId = obj.query.book_id ?? ''
tips2 = obj.query.tips2 ?? '' tips2 = obj.query.tips2 ?? ''
remark1 = obj.query.remark1 ?? '' remark1 = obj.query.remark1 ?? ''
remark2 = obj.query.remark2 ?? '' remark2 = obj.query.remark2 ?? ''
...@@ -64,12 +66,21 @@ ...@@ -64,12 +66,21 @@
this.$refs.select.open('center'); this.$refs.select.open('center');
} }
// 首次跳转进小书页面
if (bookId != '') {
uni.setStorage({
key: 'firstBookId',
data: bookId
});
}
tt.login({ tt.login({
force: true, force: true,
success(res) { success(res) {
that.post({ that.post({
url: '/user/ttLogin', url: '/user/ttLogin',
data: { data: {
bookId: bookId,
channel: 'douyin', channel: 'douyin',
code: res.code, code: res.code,
anonymousCode: res.anonymousCode, anonymousCode: res.anonymousCode,
......
...@@ -61,7 +61,7 @@ ...@@ -61,7 +61,7 @@
}, },
queryList(page, size) { queryList(page, size) {
this.post({ this.post({
url: '/readSystem/system/readRecord/list', url: '/book/readRecordList',
data: { data: {
page, page,
size size
...@@ -80,11 +80,11 @@ ...@@ -80,11 +80,11 @@
handleXing(item) { handleXing(item) {
var that = this; var that = this;
//0未收藏,1收藏 //0未收藏,1收藏
if (item.isCollect == 0) { if (!item.isCollect) {
this.post({ this.post({
url: '/vedio/collect', url: '/book/collect',
data: { data: {
vedioId: item.vedioId, articleId: item.articleId,
}, },
showLoading: false, showLoading: false,
success: ({ success: ({
...@@ -95,9 +95,9 @@ ...@@ -95,9 +95,9 @@
}); });
} else { } else {
this.post({ this.post({
url: '/vedio/cancelCollect', url: '/book/cancelCollect',
data: { data: {
vedioId: item.vedioId, articleId: item.articleId,
}, },
showLoading: false, showLoading: false,
success: ({ 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