This commit is contained in:
lipenggao 2024-04-07 10:11:01 +08:00
parent e52f794a88
commit b61fa0a736
3 changed files with 32 additions and 11 deletions

View File

@ -1,5 +1,5 @@
<view class="_myPay_html"> <view class="_myPay_html">
<popup position="bottom" className="_my_pay_popup" show="{{popupShow}}" zIndex="{{999}}"> <popup position="bottom" className="_my_pay_popup" show="{{popupShow}}" zIndex="{{999}}" disableScroll={{false}}>
<view class="_my_pay_po_header"> <view class="_my_pay_po_header">
<view class="_pay_po_he_title"> <view class="_pay_po_he_title">
<text>创作不易,支持作者</text> <text>创作不易,支持作者</text>

View File

@ -15,16 +15,18 @@ Page({
searchDialogTips: true, searchDialogTips: true,
}, },
onLoad(query) { onLoad(query) {
const sid = query.sid; const sid = query.sid || '';
const id = query.id || '';
const tid = query.tid || '';
const systemInfo = getApp().globalData.systemInfo; const systemInfo = getApp().globalData.systemInfo;
if (sid) { if (sid || id || tid) {
if (systemInfo.platform == 'android' || systemInfo.platform == 'Android') { if (systemInfo.platform == 'android' || systemInfo.platform == 'Android') {
my.navigateTo({ my.navigateTo({
url: `/pages/videoAndroid/videoAndroid?sid=${sid}`, url: `/pages/videoAndroid/videoAndroid?sid=${sid}&id=${id}&tid=${tid}`,
}); });
} else { } else {
my.navigateTo({ my.navigateTo({
url: `/pages/video/video?sid=${sid}` url: `/pages/video/video?sid=${sid}&id=${id}&tid=${tid}`
}); });
} }
} else { } else {

View File

@ -22,6 +22,8 @@ Page({
changeCuurent: 0, changeCuurent: 0,
swiperOrder: 0, swiperOrder: 0,
sid: '', sid: '',
id: '',
tid: '',
popupShow: false, popupShow: false,
batchAllOrder: 0, batchAllOrder: 0,
batchAllList: [], batchAllList: [],
@ -116,13 +118,24 @@ Page({
}, },
// 获取 剧情 // 获取 剧情
async isVideoPaymentFn(sid) { async isVideoPaymentFn(sid, id, tid) {
const body = {};
if (sid) {
body.sid = sid;
}
if (sid) {
body.id = id;
}
if (sid) {
body.tid = tid;
}
const paramVideo = { const paramVideo = {
path: '/videoread', path: '/videoread',
method: 'POST', method: 'POST',
body: { body: body
sid: sid
}
} }
const videoRead = await httpRequest(paramVideo); const videoRead = await httpRequest(paramVideo);
@ -316,15 +329,21 @@ Page({
onLoad(query) { onLoad(query) {
const sid = query.sid; const sid = query.sid;
const id = query.id || '';
const tid = query.tid || '';
this.setData({ this.setData({
sid: sid sid: sid,
id: id,
tid: tid
}) })
}, },
onShow() { onShow() {
const sid = this.data.sid; const sid = this.data.sid;
const id = this.data.id;
const tid = this.data.tid;
this.isOtherFn(); this.isOtherFn();
this.isVideoPaymentFn(sid); this.isVideoPaymentFn(sid, id, tid);
// const lodash = require('lodash'); // const lodash = require('lodash');
const isThrottle = _.throttle((current) => { const isThrottle = _.throttle((current) => {
let id = ''; let id = '';