xiugai
This commit is contained in:
parent
6fec85617e
commit
2c97f29c1b
@ -2,10 +2,9 @@ require('@alipay/appx-compiler/lib/sjsEnvInit');
|
||||
require('./config$');
|
||||
require('../../app');
|
||||
require('../../node_modules/mini-antui/es/am-icon/index?hash=05d2a9730dd6009bf9446182f9c985f40f8c0f43');
|
||||
require('../../components/myFooter/myFooter?hash=05d2a9730dd6009bf9446182f9c985f40f8c0f43');
|
||||
require('../../pages/index/components/recommend/recommend?hash=efa451848b581ae39f6dfc3f481e34d889c0c338');
|
||||
require('../../components/myEmpty/myEmpty?hash=05d2a9730dd6009bf9446182f9c985f40f8c0f43');
|
||||
require('../../components/pursueItem/pursueItem?hash=05d2a9730dd6009bf9446182f9c985f40f8c0f43');
|
||||
require('../../components/myFooter/myFooter?hash=05d2a9730dd6009bf9446182f9c985f40f8c0f43');
|
||||
require('../../node_modules/mini-antui/es/list/index?hash=05d2a9730dd6009bf9446182f9c985f40f8c0f43');
|
||||
require('../../node_modules/mini-antui/es/list/list-item/index?hash=05d2a9730dd6009bf9446182f9c985f40f8c0f43');
|
||||
require('../../node_modules/mini-antui/es/popup/index?hash=05d2a9730dd6009bf9446182f9c985f40f8c0f43');
|
||||
@ -17,7 +16,7 @@ require('../../node_modules/mini-antui/es/modal/index?hash=05d2a9730dd6009bf9446
|
||||
require('../../node_modules/mini-antui/es/badge/index?hash=05d2a9730dd6009bf9446182f9c985f40f8c0f43');
|
||||
require('../../node_modules/mini-antui/es/tabs/index?hash=b998354db5b64281090d8969355b2b3db41cda49');
|
||||
require('../../node_modules/mini-antui/es/tabs/tab-content/index?hash=05d2a9730dd6009bf9446182f9c985f40f8c0f43');
|
||||
require('../../pages/index/index?hash=c4e2a134875c6734d176f2bda090e0e51de10962');
|
||||
require('../../pages/index/index?hash=4c436b8802cde3a53b8da3fd201d0c5d124d1427');
|
||||
require('../../pages/discover/discover?hash=c38b953af6bdab8fe399141b33dd1ad1ceb7ea7f');
|
||||
require('../../pages/binge/binge?hash=6164953b5a1ef04f4f4f6e6561b545255541aa0c');
|
||||
require('../../pages/my/my?hash=75b5b8f1ecfabe3e2ac25d83ad8d5dac4aa47c98');
|
||||
@ -25,8 +24,6 @@ require('../../pages/search/search?hash=aba215d007624a3ae18a69066f7987a8463d4c8c
|
||||
require('../../pages/history/history?hash=496b52f9f456db6a9f22580be95fd2756db9e17d');
|
||||
require('../../pages/transaction/transaction?hash=496b52f9f456db6a9f22580be95fd2756db9e17d');
|
||||
require('../../pages/give/give?hash=496b52f9f456db6a9f22580be95fd2756db9e17d');
|
||||
require('../../pages/wxkf/wxkf?hash=c38b953af6bdab8fe399141b33dd1ad1ceb7ea7f');
|
||||
require('../../pages/purchaseNotes/purchaseNotes?hash=c38b953af6bdab8fe399141b33dd1ad1ceb7ea7f');
|
||||
require('../../pages/addqywx/addqywx?hash=c38b953af6bdab8fe399141b33dd1ad1ceb7ea7f');
|
||||
require('../../pages/video/video?hash=2f86860594605cd2430cc3d9ad723984b88e0e36');
|
||||
require('../../pages/video/video?hash=ab3ed3fe15953ba710981e31c5a541336f6b549b');
|
||||
require('../../pages/recharge/recharge?hash=c38b953af6bdab8fe399141b33dd1ad1ceb7ea7f');
|
||||
|
@ -36,10 +36,9 @@ if(AFAppX.compilerConfig){ AFAppX.compilerConfig.component2 = true; }
|
||||
function success() {
|
||||
require('../../app');
|
||||
require('../../node_modules/mini-antui/es/am-icon/index?hash=05d2a9730dd6009bf9446182f9c985f40f8c0f43');
|
||||
require('../../components/myFooter/myFooter?hash=05d2a9730dd6009bf9446182f9c985f40f8c0f43');
|
||||
require('../../pages/index/components/recommend/recommend?hash=efa451848b581ae39f6dfc3f481e34d889c0c338');
|
||||
require('../../components/myEmpty/myEmpty?hash=05d2a9730dd6009bf9446182f9c985f40f8c0f43');
|
||||
require('../../components/pursueItem/pursueItem?hash=05d2a9730dd6009bf9446182f9c985f40f8c0f43');
|
||||
require('../../components/myFooter/myFooter?hash=05d2a9730dd6009bf9446182f9c985f40f8c0f43');
|
||||
require('../../node_modules/mini-antui/es/list/index?hash=05d2a9730dd6009bf9446182f9c985f40f8c0f43');
|
||||
require('../../node_modules/mini-antui/es/list/list-item/index?hash=05d2a9730dd6009bf9446182f9c985f40f8c0f43');
|
||||
require('../../node_modules/mini-antui/es/popup/index?hash=05d2a9730dd6009bf9446182f9c985f40f8c0f43');
|
||||
@ -51,7 +50,7 @@ require('../../node_modules/mini-antui/es/modal/index?hash=05d2a9730dd6009bf9446
|
||||
require('../../node_modules/mini-antui/es/badge/index?hash=05d2a9730dd6009bf9446182f9c985f40f8c0f43');
|
||||
require('../../node_modules/mini-antui/es/tabs/index?hash=b998354db5b64281090d8969355b2b3db41cda49');
|
||||
require('../../node_modules/mini-antui/es/tabs/tab-content/index?hash=05d2a9730dd6009bf9446182f9c985f40f8c0f43');
|
||||
require('../../pages/index/index?hash=c4e2a134875c6734d176f2bda090e0e51de10962');
|
||||
require('../../pages/index/index?hash=4c436b8802cde3a53b8da3fd201d0c5d124d1427');
|
||||
require('../../pages/discover/discover?hash=c38b953af6bdab8fe399141b33dd1ad1ceb7ea7f');
|
||||
require('../../pages/binge/binge?hash=6164953b5a1ef04f4f4f6e6561b545255541aa0c');
|
||||
require('../../pages/my/my?hash=75b5b8f1ecfabe3e2ac25d83ad8d5dac4aa47c98');
|
||||
@ -59,10 +58,8 @@ require('../../pages/search/search?hash=aba215d007624a3ae18a69066f7987a8463d4c8c
|
||||
require('../../pages/history/history?hash=496b52f9f456db6a9f22580be95fd2756db9e17d');
|
||||
require('../../pages/transaction/transaction?hash=496b52f9f456db6a9f22580be95fd2756db9e17d');
|
||||
require('../../pages/give/give?hash=496b52f9f456db6a9f22580be95fd2756db9e17d');
|
||||
require('../../pages/wxkf/wxkf?hash=c38b953af6bdab8fe399141b33dd1ad1ceb7ea7f');
|
||||
require('../../pages/purchaseNotes/purchaseNotes?hash=c38b953af6bdab8fe399141b33dd1ad1ceb7ea7f');
|
||||
require('../../pages/addqywx/addqywx?hash=c38b953af6bdab8fe399141b33dd1ad1ceb7ea7f');
|
||||
require('../../pages/video/video?hash=2f86860594605cd2430cc3d9ad723984b88e0e36');
|
||||
require('../../pages/video/video?hash=ab3ed3fe15953ba710981e31c5a541336f6b549b');
|
||||
require('../../pages/recharge/recharge?hash=c38b953af6bdab8fe399141b33dd1ad1ceb7ea7f');
|
||||
}
|
||||
self.bootstrapApp ? self.bootstrapApp({ success }) : success();
|
||||
|
@ -2,10 +2,9 @@ require('@alipay/appx-compiler/lib/sjsEnvInit');
|
||||
require('./config$');
|
||||
require('../../app');
|
||||
require('../../node_modules/mini-antui/es/am-icon/index?hash=05d2a9730dd6009bf9446182f9c985f40f8c0f43');
|
||||
require('../../components/myFooter/myFooter?hash=05d2a9730dd6009bf9446182f9c985f40f8c0f43');
|
||||
require('../../pages/index/components/recommend/recommend?hash=efa451848b581ae39f6dfc3f481e34d889c0c338');
|
||||
require('../../components/myEmpty/myEmpty?hash=05d2a9730dd6009bf9446182f9c985f40f8c0f43');
|
||||
require('../../components/pursueItem/pursueItem?hash=05d2a9730dd6009bf9446182f9c985f40f8c0f43');
|
||||
require('../../components/myFooter/myFooter?hash=05d2a9730dd6009bf9446182f9c985f40f8c0f43');
|
||||
require('../../node_modules/mini-antui/es/list/index?hash=05d2a9730dd6009bf9446182f9c985f40f8c0f43');
|
||||
require('../../node_modules/mini-antui/es/list/list-item/index?hash=05d2a9730dd6009bf9446182f9c985f40f8c0f43');
|
||||
require('../../node_modules/mini-antui/es/popup/index?hash=05d2a9730dd6009bf9446182f9c985f40f8c0f43');
|
||||
@ -17,7 +16,7 @@ require('../../node_modules/mini-antui/es/modal/index?hash=05d2a9730dd6009bf9446
|
||||
require('../../node_modules/mini-antui/es/badge/index?hash=05d2a9730dd6009bf9446182f9c985f40f8c0f43');
|
||||
require('../../node_modules/mini-antui/es/tabs/index?hash=b998354db5b64281090d8969355b2b3db41cda49');
|
||||
require('../../node_modules/mini-antui/es/tabs/tab-content/index?hash=05d2a9730dd6009bf9446182f9c985f40f8c0f43');
|
||||
require('../../pages/index/index?hash=c4e2a134875c6734d176f2bda090e0e51de10962');
|
||||
require('../../pages/index/index?hash=4c436b8802cde3a53b8da3fd201d0c5d124d1427');
|
||||
require('../../pages/discover/discover?hash=c38b953af6bdab8fe399141b33dd1ad1ceb7ea7f');
|
||||
require('../../pages/binge/binge?hash=6164953b5a1ef04f4f4f6e6561b545255541aa0c');
|
||||
require('../../pages/my/my?hash=75b5b8f1ecfabe3e2ac25d83ad8d5dac4aa47c98');
|
||||
@ -25,8 +24,6 @@ require('../../pages/search/search?hash=aba215d007624a3ae18a69066f7987a8463d4c8c
|
||||
require('../../pages/history/history?hash=496b52f9f456db6a9f22580be95fd2756db9e17d');
|
||||
require('../../pages/transaction/transaction?hash=496b52f9f456db6a9f22580be95fd2756db9e17d');
|
||||
require('../../pages/give/give?hash=496b52f9f456db6a9f22580be95fd2756db9e17d');
|
||||
require('../../pages/wxkf/wxkf?hash=c38b953af6bdab8fe399141b33dd1ad1ceb7ea7f');
|
||||
require('../../pages/purchaseNotes/purchaseNotes?hash=c38b953af6bdab8fe399141b33dd1ad1ceb7ea7f');
|
||||
require('../../pages/addqywx/addqywx?hash=c38b953af6bdab8fe399141b33dd1ad1ceb7ea7f');
|
||||
require('../../pages/video/video?hash=2f86860594605cd2430cc3d9ad723984b88e0e36');
|
||||
require('../../pages/video/video?hash=ab3ed3fe15953ba710981e31c5a541336f6b549b');
|
||||
require('../../pages/recharge/recharge?hash=c38b953af6bdab8fe399141b33dd1ad1ceb7ea7f');
|
||||
|
File diff suppressed because one or more lines are too long
2
app.json
2
app.json
@ -8,9 +8,7 @@
|
||||
"pages/history/history",
|
||||
"pages/transaction/transaction",
|
||||
"pages/give/give",
|
||||
"pages/wxkf/wxkf",
|
||||
"pages/purchaseNotes/purchaseNotes",
|
||||
"pages/addqywx/addqywx",
|
||||
"pages/video/video",
|
||||
"pages/recharge/recharge"
|
||||
],
|
||||
|
@ -131,6 +131,7 @@
|
||||
}
|
||||
|
||||
._pay_li_it_con {
|
||||
position: relative;
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
justify-content: center;
|
||||
@ -139,10 +140,12 @@
|
||||
height: 100%;
|
||||
background-color: #38364B;
|
||||
border-radius: 24rpx;
|
||||
border: 1px solid transparent;
|
||||
}
|
||||
|
||||
._pay_li_it_con.active {
|
||||
border: 1px solid #fff;
|
||||
/* border: 1px solid #fff; */
|
||||
border-color: #fff;
|
||||
}
|
||||
|
||||
._pay_li_it_price{
|
||||
@ -152,7 +155,17 @@
|
||||
font-weight: 700;
|
||||
}
|
||||
|
||||
|
||||
._pay_li_it_poster {
|
||||
position: absolute;
|
||||
right: 0;
|
||||
top: 0;
|
||||
padding: 6rpx 20rpx;
|
||||
background: #FF2D2D ;
|
||||
color: #fff;
|
||||
font-size: 24rpx;
|
||||
transform: translateY(-50%);
|
||||
border-radius: 0 12rpx 0 12rpx;
|
||||
}
|
||||
|
||||
._pay_li_it_coin {
|
||||
line-height: 1;
|
||||
|
@ -21,7 +21,7 @@
|
||||
</view>
|
||||
</view>
|
||||
<view class="_wa_spe_right">
|
||||
<text>我的K币:{{0}}K币</text>
|
||||
<text>我的K币:{{egoldNum}}K币</text>
|
||||
</view>
|
||||
</view>
|
||||
|
||||
@ -32,23 +32,26 @@
|
||||
<view class="_wa_pay_hea_right" onTap="toPurchaseNotes">
|
||||
<text>购买须知</text>
|
||||
<view class="icon-double-arrow-right-full">
|
||||
<image mode="scaleToFill" src="{{`${imageBasUrl}/iamge/icon-double-arrow-right-full.png`}}" class="_is_image" />
|
||||
<image mode="scaleToFill" src={{`${imageBasUrl}/iamge/icon-double-arrow-right-full.png`}} class="_is_image" />
|
||||
</view>
|
||||
</view>
|
||||
</view>
|
||||
|
||||
<view class="_scr_wa_pay_list">
|
||||
<block a:for="{{3}}">
|
||||
<view class="_wa_pay_li_item {{(index + 1) % 2 === 0 ? 'active_left':'active_right'}}" data-item="{{item}}" onTap="payItem">
|
||||
<view class="_pay_li_it_con {{index === 0 ? 'active' :''}}">
|
||||
<block a:for={{payList}}>
|
||||
<view class="_wa_pay_li_item {{(index + 1) % 2 === 0 ? 'active_left':'active_right'}}">
|
||||
<view class="_pay_li_it_con {{payListId == item.id ? 'active' :''}}" data-item={{item}} onTap="payItem">
|
||||
<view class="_pay_li_it_price">
|
||||
<text>199.9元</text>
|
||||
<text>{{item.price}}元</text>
|
||||
</view>
|
||||
<view class="_pay_li_it_coin">
|
||||
<text>37621K币</text>
|
||||
<text>{{item.egold}}K币</text>
|
||||
</view>
|
||||
<view class="_pay_li_it_deliver">
|
||||
<text>多送20元K币</text>
|
||||
<view class="_pay_li_it_deliver" a:if={{item.giveegold}}>
|
||||
<text>多送{{item.giveegold}}K币</text>
|
||||
</view>
|
||||
<view class="_pay_li_it_poster">
|
||||
{{item.poster}}
|
||||
</view>
|
||||
</view>
|
||||
</view>
|
||||
@ -59,26 +62,6 @@
|
||||
</view>
|
||||
</popup>
|
||||
|
||||
<block a:if="{{backShow}}">
|
||||
<view class="_my_pay_back_Info">
|
||||
<view class="_pay_back_In_warp">
|
||||
<view class="_back_In_warp_t">
|
||||
<text class="name">充</text>
|
||||
<text class="num">{{backInfo.price || 0}}</text>
|
||||
<text class="name">送</text>
|
||||
<text class="num">{{ backInfo.zbegold || 0 }}</text>
|
||||
<text class="name">元</text>
|
||||
</view>
|
||||
<view class="_back_In_warp_d">
|
||||
<text class="name">得</text>
|
||||
<text class="num">{{ backInfo.egold || 0 }}</text>
|
||||
<text class="name">K币</text>
|
||||
</view>
|
||||
</view>
|
||||
<view class="_pay_back_In_close" onTap="closeBackShow">
|
||||
<am-icon type="close-o" size="{{36}}" color="#fff" />
|
||||
</view>
|
||||
</view>
|
||||
</block>
|
||||
|
||||
<!--<block a:if="{{backShow}}"><view class="_my_pay_back_Info"><view class="_pay_back_In_warp"><view class="_back_In_warp_t"><text class="name">充</text><text class="num">{{backInfo.price || 0}}</text><text class="name">送</text><text class="num">{{ backInfo.zbegold || 0 }}</text><text class="name">元</text></view><view class="_back_In_warp_d"><text class="name">得</text><text class="num">{{ backInfo.egold || 0 }}</text><text class="name">K币</text></view></view><view class="_pay_back_In_close" onTap="closeBackShow"><am-icon type="close-o" size="{{36}}" color="#fff" /></view></view></block> -->
|
||||
|
||||
</view>
|
@ -1,52 +1,147 @@
|
||||
import { imageBasUrl } from '../../utils/config';
|
||||
import { storagePaymentBack } from '../../utils/utils';
|
||||
var plugin = requirePlugin("myPlugin");
|
||||
const { httpRequest } = getApp();
|
||||
|
||||
Component({
|
||||
mixins: [],
|
||||
data: {
|
||||
imageBasUrl,
|
||||
backShow: false,
|
||||
backInfo: {}
|
||||
backInfo: {},
|
||||
payList: [],
|
||||
egoldNum: 0,
|
||||
payListId: ''
|
||||
},
|
||||
props: {
|
||||
popupShow: true,
|
||||
onClosePopup: {
|
||||
type: Function,
|
||||
value: () => { }
|
||||
value: (mi) => {
|
||||
|
||||
}
|
||||
}
|
||||
},
|
||||
didMount() {
|
||||
console.log(5465465465)
|
||||
const paramenter = {
|
||||
path: '/paysetting',
|
||||
method: 'GET',
|
||||
}
|
||||
httpRequest(paramenter).then(res => {
|
||||
if (res.status == 1 && Array.isArray(res.data.list)) {
|
||||
const payListId = res.data.list[0].id;
|
||||
this.setData({
|
||||
payList: res.data.list,
|
||||
egoldNum: res.data.egoldNum,
|
||||
payListId: payListId
|
||||
})
|
||||
}
|
||||
})
|
||||
},
|
||||
didUpdate() { },
|
||||
didUnmount() { },
|
||||
methods: {
|
||||
closePopup() {
|
||||
const storageData = my.getStorageSync({ key: 'paymentBack' }).data;
|
||||
if (storageData && storageData.paymentBack) {
|
||||
storagePaymentBack(false);
|
||||
this.props.onClosePopup();
|
||||
} else {
|
||||
storagePaymentBack(true);
|
||||
// this.http.get('/payback').then(res => {
|
||||
// res.isBack = 1;
|
||||
// this.backInfo = res;
|
||||
// this.payList.unshift(res);
|
||||
// });
|
||||
this.setData({
|
||||
backShow: true
|
||||
})
|
||||
}
|
||||
// const storageData = my.getStorageSync({ key: 'paymentBack' }).data;
|
||||
// if (storageData && storageData.paymentBack) {
|
||||
// storagePaymentBack(false);
|
||||
this.props.onClosePopup({});
|
||||
// } else {
|
||||
// storagePaymentBack(true);
|
||||
// this.http.get('/payback').then(res => {
|
||||
// res.isBack = 1;
|
||||
// this.backInfo = res;
|
||||
// this.payList.unshift(res);
|
||||
// });
|
||||
// this.setData({
|
||||
// backShow: true
|
||||
// })
|
||||
// }
|
||||
},
|
||||
|
||||
payItem() {
|
||||
// const bsPayItem = await this.http.get('/iosPayment');
|
||||
// const platform = uni.getSystemInfoSync().platform;
|
||||
// if (platform === 'ios' && bsPayItem.status === 1) {
|
||||
// this.fui.toast('暂不支持IOS支付');
|
||||
// return;
|
||||
// }
|
||||
payItem(ev) {
|
||||
const item = ev.currentTarget.dataset.item;
|
||||
this.setData({
|
||||
payListId: item.id
|
||||
})
|
||||
plugin.tb.virtualTrade({
|
||||
itemId: item.item_id,
|
||||
complete: (res) => {
|
||||
// if (res.resultCode == '9000') {
|
||||
const paramenter = {
|
||||
path: '/taobaonotify',
|
||||
method: 'POST',
|
||||
body: {
|
||||
orderId: res.orderId,
|
||||
id: item.id,
|
||||
resultCode: res.resultCode,
|
||||
}
|
||||
}
|
||||
httpRequest(paramenter).then(result => {
|
||||
let content = '';
|
||||
if (res.resultCode == '9000') {
|
||||
content = '支付成功'
|
||||
} else {
|
||||
content = '支付失败'
|
||||
}
|
||||
my.showToast({
|
||||
type: 'none',
|
||||
content: res.memo || content,
|
||||
});
|
||||
this.props.onClosePopup({ resultCode: res.resultCode });
|
||||
})
|
||||
// }
|
||||
}
|
||||
// fail: (err) => {
|
||||
// console.log(err, "errerr")
|
||||
// if (res.resultCode == '9000') {
|
||||
// const paramenter = {
|
||||
// path: '/taobaonotify',
|
||||
// method: 'POST',
|
||||
// body: {
|
||||
// orderId: res.orderId,
|
||||
// id: item.id,
|
||||
// resultCode: res.resultCode,
|
||||
// }
|
||||
// }
|
||||
// httpRequest(paramenter).then(result => {
|
||||
// console.log(result, paramenter, "taobaonotify=========")
|
||||
// my.showToast({
|
||||
// type: 'none',
|
||||
// content: '支付成功',
|
||||
// });
|
||||
// this.props.onClosePopup({ resultCode: res.resultCode });
|
||||
// })
|
||||
// }
|
||||
// },
|
||||
// success: (res) => {
|
||||
// console.log(res, "[[[[[[res")
|
||||
// if (res.resultCode == '9000') {
|
||||
// const paramenter = {
|
||||
// path: '/taobaonotify',
|
||||
// method: 'POST',
|
||||
// body: {
|
||||
// orderId: res.orderId,
|
||||
// id: item.id,
|
||||
// resultCode: res.resultCode,
|
||||
// }
|
||||
// }
|
||||
// httpRequest(paramenter).then(result => {
|
||||
// console.log(result, paramenter, "taobaonotify=========")
|
||||
// my.showToast({
|
||||
// type: 'none',
|
||||
// content: '支付成功',
|
||||
// });
|
||||
// this.props.onClosePopup({ resultCode: res.resultCode });
|
||||
// })
|
||||
// } else {
|
||||
// my.showToast({
|
||||
// type: 'none',
|
||||
// content: res.memo || '支付失败'
|
||||
// });
|
||||
// }
|
||||
// }
|
||||
})
|
||||
},
|
||||
|
||||
closeBackShow() {
|
||||
|
@ -1,40 +0,0 @@
|
||||
page{
|
||||
width: 100%;
|
||||
height: 100%;
|
||||
}
|
||||
|
||||
._addqywx_page_html {
|
||||
width: 100%;
|
||||
height: 100vh;
|
||||
}
|
||||
|
||||
._addqywx_page_body {
|
||||
position: relative;
|
||||
width: 100%;
|
||||
height: 100%;
|
||||
}
|
||||
|
||||
._addqywx_pa_bo_image {
|
||||
width: 100%;
|
||||
height: 100%;
|
||||
}
|
||||
|
||||
._addqywx_pa_bo_code {
|
||||
position: absolute;
|
||||
left: 40rpx;
|
||||
bottom: 40rpx;
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
align-items: center;
|
||||
z-index: 2;
|
||||
}
|
||||
|
||||
._shouzhi_image {
|
||||
width: 154rpx;
|
||||
height: 48rpx;
|
||||
}
|
||||
|
||||
._code_image {
|
||||
width: 220rpx;
|
||||
height: 220rpx;
|
||||
}
|
@ -1,15 +0,0 @@
|
||||
<view class="_addqywx_page_html">
|
||||
<view class="_addqywx_page_body">
|
||||
<view class="_addqywx_pa_bo_image">
|
||||
<image mode="scaleToFill" src="{{`${imageBasUrl}/iamge/qiwei.jpg`}}" class="_is_image" />
|
||||
</view>
|
||||
<view class="_addqywx_pa_bo_code">
|
||||
<view class="_shouzhi_image">
|
||||
<image mode="scaleToFill" src="{{`${imageBasUrl}/iamge/shouzhi.png`}}" class="_is_image" />
|
||||
</view>
|
||||
<view class="_code_image">
|
||||
<image mode="scaleToFill" src="{{codeImage}}" class="_is_image" />
|
||||
</view>
|
||||
</view>
|
||||
</view>
|
||||
</view>
|
@ -1,22 +0,0 @@
|
||||
import { imageBasUrl } from '../../utils/config';
|
||||
const { httpRequest } = getApp();
|
||||
|
||||
Page({
|
||||
data: {
|
||||
imageBasUrl,
|
||||
codeImage: ''
|
||||
},
|
||||
onShow() {
|
||||
// .get('/getGuidecode')
|
||||
const paramenter = {
|
||||
path: '/getGuidecode',
|
||||
method: 'GET',
|
||||
}
|
||||
httpRequest(paramenter).then(res => {
|
||||
console.log(res, "getGuidecode")
|
||||
this.setData({
|
||||
codeImage: res.data.code,
|
||||
})
|
||||
})
|
||||
}
|
||||
})
|
@ -1,3 +0,0 @@
|
||||
{
|
||||
"defaultTitle": "联系客服"
|
||||
}
|
@ -28,7 +28,7 @@ page,
|
||||
}
|
||||
|
||||
._bin_bo_sign_in_btn >text{
|
||||
font-size: 18rpx;
|
||||
font-size: 22rpx;
|
||||
line-height: 1;
|
||||
color: #fff;
|
||||
}
|
||||
@ -39,7 +39,7 @@ page,
|
||||
|
||||
._step_my_vido_warp {
|
||||
width: 100%;
|
||||
padding: 40rpx 0 0 30rpx;
|
||||
padding: 30rpx 0 20rpx 20rpx;
|
||||
background-color: #fff;
|
||||
border-radius: 16rpx;
|
||||
}
|
||||
@ -47,27 +47,25 @@ page,
|
||||
._vido_warp_header {
|
||||
display: flex;
|
||||
justify-content: space-between;
|
||||
align-items: center;
|
||||
margin-bottom: 30rpx;
|
||||
padding-right: 30rpx;
|
||||
padding-right: 20rpx;
|
||||
}
|
||||
|
||||
._vi_wa_he_title {
|
||||
padding-left: 16rpx;
|
||||
border-left: 4rpx solid #CE3636;
|
||||
}
|
||||
._vi_wa_he_title {}
|
||||
|
||||
._vi_wa_he_title >text {
|
||||
line-height: 1;
|
||||
font-size: 32rpx;
|
||||
font-size: 30rpx;
|
||||
font-weight: 600;
|
||||
color: #333;
|
||||
}
|
||||
|
||||
._vi_wa_he_edit_t >text {
|
||||
line-height: 1;
|
||||
font-size: 30rpx;
|
||||
font-size: 26rpx;
|
||||
font-weight: 500;
|
||||
color: #1a1a1a;
|
||||
color: #999;
|
||||
margin-left: 6rpx;
|
||||
}
|
||||
|
||||
@ -78,8 +76,62 @@ page,
|
||||
|
||||
._pursue_item {
|
||||
width: 33.33%;
|
||||
padding-right: 30rpx;
|
||||
margin-bottom: 30rpx;
|
||||
padding-right: 20rpx;
|
||||
margin-bottom: 20rpx;
|
||||
}
|
||||
|
||||
._pursue_item_li {
|
||||
width: 100%;
|
||||
overflow: hidden;
|
||||
position: relative;
|
||||
}
|
||||
|
||||
._pursue_it_li_img {
|
||||
width: 100%;
|
||||
height: 280rpx;
|
||||
position: relative;
|
||||
}
|
||||
|
||||
._pursue_it_li_img_b {
|
||||
display: block;
|
||||
width: 100%;
|
||||
height: 100%;
|
||||
border-radius: 12rpx;
|
||||
}
|
||||
|
||||
._pursue_it_li_name {
|
||||
font-size: 30rpx;
|
||||
color: #333;
|
||||
line-height: 1;
|
||||
margin-top: 20rpx;
|
||||
overflow: hidden;
|
||||
white-space: nowrap;
|
||||
text-overflow: ellipsis;
|
||||
}
|
||||
|
||||
._pursue_it_li_order {
|
||||
font-size: 24rpx;
|
||||
color: #999;
|
||||
line-height: 1;
|
||||
margin-top: 20rpx;
|
||||
}
|
||||
|
||||
._pursue_item_li_del {
|
||||
position: absolute;
|
||||
top: 0;
|
||||
left: 0;
|
||||
right: 0;
|
||||
bottom: 0;
|
||||
display: flex;
|
||||
justify-content: center;
|
||||
align-items: center;
|
||||
background-color: rgba(0, 0, 0, 0.4);
|
||||
border-radius: 12rpx;
|
||||
}
|
||||
|
||||
._pursue_item_li_del_text {
|
||||
font-size: 30rpx;
|
||||
color: #fff;
|
||||
}
|
||||
|
||||
.my_footer {
|
||||
|
@ -16,6 +16,7 @@
|
||||
<view class="_vi_wa_he_title">
|
||||
<text>我的追剧</text>
|
||||
</view>
|
||||
|
||||
<block a:if="{{bookcase.length}}">
|
||||
<view class="_vi_wa_he_edit_t" onTap="editPursue">
|
||||
<block a:if="{{!isEdit}}">
|
||||
@ -26,12 +27,30 @@
|
||||
</block>
|
||||
</view>
|
||||
</block>
|
||||
|
||||
</view>
|
||||
<view class="_vido_warp_content">
|
||||
<block a:if="{{bookcase.length && likelistFlag}}">
|
||||
<block a:for="{{bookcase}}">
|
||||
<view class="_pursue_item" a:key="{{item.id}}" onTap="toPathVideo" data-item="{{item}}">
|
||||
<pursue-item rowData="{{item}}" isEdit="{{isEdit}}" onDelItem="onDelItem" key="{{index}}" />
|
||||
<block a:if={{bookcase.length && likelistFlag}}>
|
||||
<block a:for={{bookcase}}>
|
||||
<view class="_pursue_item" a:key={{item.id}} onTap="toPathVideo" data-item={{item}}>
|
||||
<view class="_pursue_item_li">
|
||||
<view class="_pursue_it_li_img">
|
||||
<image mode="scaleToFill" src={{item.cover}} class="_pursue_it_li_img_b" />
|
||||
|
||||
<block a:if={{isEdit}}>
|
||||
<view class="_pursue_item_li_del">
|
||||
<view class="_pursue_item_li_del_text" onTap="onDelItem" data-item={{item}}>删除</view>
|
||||
</view>
|
||||
</block>
|
||||
</view>
|
||||
<view class="_pursue_it_li_name">
|
||||
{{item.name}}
|
||||
</view>
|
||||
<view class="_pursue_it_li_order">
|
||||
观看至第{{item.history}}集
|
||||
</view>
|
||||
|
||||
</view>
|
||||
</view>
|
||||
</block>
|
||||
</block>
|
||||
@ -55,8 +74,15 @@
|
||||
<view class="_vido_warp_content">
|
||||
<block a:if="{{likelist.length}}">
|
||||
<block a:for="{{likelist}}">
|
||||
<view class="_pursue_item" a:key="{{item.id}}" onTap="toPathVideo" data-item="{{item}}">
|
||||
<pursue-item rowData="{{item}}" onDelItem="onDelItem" key="{{index}}" />
|
||||
<view class="_pursue_item" a:key={{item.id}} onTap="toPathVideo" data-item={{item}}>
|
||||
<view class="_pursue_item_li">
|
||||
<view class="_pursue_it_li_img">
|
||||
<image mode="scaleToFill" src={{item.cover}} class="_pursue_it_li_img_b" />
|
||||
</view>
|
||||
<view class="_pursue_it_li_name">
|
||||
{{item.name}}
|
||||
</view>
|
||||
</view>
|
||||
</view>
|
||||
</block>
|
||||
</block>
|
||||
|
@ -22,7 +22,6 @@ Page({
|
||||
// }
|
||||
}
|
||||
httpRequest(paramenter).then(res => {
|
||||
console.log(res, "chasingdrama")
|
||||
if (res.status == 1) {
|
||||
const { data } = res;
|
||||
this.setData({
|
||||
@ -41,7 +40,6 @@ Page({
|
||||
method: 'GET',
|
||||
}
|
||||
httpRequest(paramenter).then(res => {
|
||||
console.log(res, "signin")
|
||||
if (res.status == 1) {
|
||||
const { data } = res;
|
||||
my.showToast({
|
||||
@ -70,7 +68,6 @@ Page({
|
||||
}
|
||||
}
|
||||
httpRequest(paramenter).then(res => {
|
||||
console.log(res, "chasingdramadel")
|
||||
const temp = bookcase.filter(r => r.id !== data.id);
|
||||
if (res.status == 1) {
|
||||
this.setData({
|
||||
@ -78,7 +75,7 @@ Page({
|
||||
})
|
||||
my.showToast({
|
||||
content: '删除成功!',
|
||||
duration: 3000,
|
||||
duration: 1000,
|
||||
});
|
||||
}
|
||||
})
|
||||
@ -86,9 +83,21 @@ Page({
|
||||
|
||||
toPathVideo(event) {
|
||||
const data = event.target.dataset.item;
|
||||
my.navigateTo({
|
||||
url: `/pages/video/video?sid=${data.bookid || data.id}`
|
||||
});
|
||||
const isEdit = this.data.isEdit;
|
||||
if (isEdit) {
|
||||
this.onDelItem(data);
|
||||
} else {
|
||||
my.navigateTo({
|
||||
url: `/pages/video/video?sid=${data.bookid || data.id}`
|
||||
});
|
||||
}
|
||||
|
||||
},
|
||||
|
||||
onHide() {
|
||||
this.setData({
|
||||
isEdit: false
|
||||
})
|
||||
}
|
||||
|
||||
})
|
@ -11,16 +11,22 @@ page {
|
||||
flex-direction: column;
|
||||
justify-content: center;
|
||||
width: 100%;
|
||||
height: 130rpx;
|
||||
/* height: 130rpx; */
|
||||
background-color: #fff;
|
||||
border-radius: 18rpx;
|
||||
padding: 0 24rpx;
|
||||
padding: 30rpx 24rpx;
|
||||
margin-bottom: 30rpx;
|
||||
}
|
||||
|
||||
._g_li_wa_item {
|
||||
display: flex;
|
||||
justify-content: space-between;
|
||||
align-items: center;
|
||||
/* display: flex; */
|
||||
/* justify-content: space-between; */
|
||||
/* align-items: center; */
|
||||
}
|
||||
|
||||
._g_wa_le_over {
|
||||
line-height: 1;
|
||||
margin-bottom: 20rpx;
|
||||
}
|
||||
|
||||
._g_wa_le_over >text {
|
||||
|
@ -7,20 +7,19 @@
|
||||
<view class="_g_bo_li_warp">
|
||||
<view class="_g_li_wa_item">
|
||||
<view class="_g_wa_le_over">
|
||||
<text>余额: {{ item.over || 0 }}</text>
|
||||
<text>赠币余额: {{ item.over || 0 }}</text>
|
||||
</view>
|
||||
<view class="_g_wa_le_over">
|
||||
<text>赠币数量: +{{ item.egold || 0 }}</text>
|
||||
</view>
|
||||
<view class="_g_wa_le_over">
|
||||
<text>赠币时间: {{ item.addtime || 0 }}</text>
|
||||
</view>
|
||||
<view class="_g_wa_ri_egold {{item.text === '已过期' ? 'active' :''}}">
|
||||
<text>+{{ item.egold || 0 }}</text>
|
||||
</view>
|
||||
</view>
|
||||
<view class="_g_li_wa_item mt-16">
|
||||
<view class="_g_wa_le_add_time">
|
||||
<text>{{ item.addtime || "6666" }}</text>
|
||||
</view>
|
||||
<view class="_g_wa_ri_other">
|
||||
<text>{{ item.text || "66" }}</text>
|
||||
<text>到期时间: {{ item.text || '' }}</text>
|
||||
</view>
|
||||
</view>
|
||||
<!--<view class="_g_li_wa_item mt-16"><view class="_g_wa_le_add_time"><text>{{ item.addtime || "6666" }}</text></view><view class="_g_wa_ri_other"><text>{{ item.text || "66" }}</text></view></view> -->
|
||||
</view>
|
||||
</block>
|
||||
</view>
|
||||
@ -33,4 +32,4 @@
|
||||
</block>
|
||||
|
||||
</view>
|
||||
</view>"
|
||||
</view>
|
@ -1,10 +1,30 @@
|
||||
const { httpRequest } = getApp();
|
||||
|
||||
Page({
|
||||
data: {
|
||||
giveList: [],
|
||||
giveFlag: true
|
||||
giveFlag: false
|
||||
},
|
||||
onLoad(query) {
|
||||
console.log('page onLoad', query)
|
||||
},
|
||||
onShow() { }
|
||||
onShow() {
|
||||
|
||||
my.showLoading({
|
||||
content: '加载中...',
|
||||
});
|
||||
|
||||
const paramenter = {
|
||||
path: '/getgivelist',
|
||||
method: 'POST',
|
||||
}
|
||||
|
||||
httpRequest(paramenter).then(res => {
|
||||
my.hideLoading();
|
||||
if (res.status == 1 && Array.isArray(res.data)) {
|
||||
this.setData({
|
||||
giveList: res.data,
|
||||
giveFlag: true
|
||||
})
|
||||
}
|
||||
})
|
||||
|
||||
}
|
||||
})
|
@ -2,6 +2,10 @@ page {
|
||||
background-color: #F1F4FA;
|
||||
}
|
||||
|
||||
._history_html {
|
||||
background-color: #F1F4FA;
|
||||
}
|
||||
|
||||
._history_page_body {
|
||||
padding: 30rpx;
|
||||
}
|
||||
@ -10,6 +14,7 @@ page {
|
||||
display: flex;
|
||||
background-color: #fff;
|
||||
border-radius: 18rpx;
|
||||
margin-bottom: 30rpx;
|
||||
}
|
||||
|
||||
._bx_li_wa_left {
|
||||
@ -17,8 +22,16 @@ page {
|
||||
}
|
||||
|
||||
._li_wa_le_image {
|
||||
width: 236rpx;
|
||||
height: 236rpx;
|
||||
width: 206rpx;
|
||||
height: 280rpx;
|
||||
margin-right: 30rpx;
|
||||
}
|
||||
|
||||
._li_wa_le_image ._is_image_s {
|
||||
display: block;
|
||||
width: 100%;
|
||||
height: 100%;
|
||||
border-radius: 12rpx 0 0 12rpx;
|
||||
}
|
||||
|
||||
._bx_li_wa_right {
|
||||
@ -36,20 +49,28 @@ page {
|
||||
color: #1a1a1a;
|
||||
}
|
||||
|
||||
._li_wa_ri_spectate {
|
||||
margin-top: 30rpx;
|
||||
}
|
||||
|
||||
._li_wa_ri_spectate > text {
|
||||
line-height: 1;
|
||||
font-size: 30rpx;
|
||||
font-size: 26rpx;
|
||||
font-weight: 400;
|
||||
color: #666666;
|
||||
}
|
||||
|
||||
._li_wa_ri_spectate .order {
|
||||
color: #333333;
|
||||
color: #666666;
|
||||
}
|
||||
|
||||
._li_wa_ri_update {
|
||||
margin-top: 30rpx;
|
||||
}
|
||||
|
||||
._li_wa_ri_update > text {
|
||||
line-height: 1;
|
||||
font-size: 30rpx;
|
||||
font-size: 26rpx;
|
||||
font-weight: 400;
|
||||
color: #333333;
|
||||
color: #666666;
|
||||
}
|
||||
|
@ -4,10 +4,10 @@
|
||||
<block a:if="{{historyList.length && listFlag}}">
|
||||
<view class="_his_pa_bo_list">
|
||||
<block a:for="{{historyList}}">
|
||||
<view class="_pa_bx_li_warp" onTap="toGetVideo">
|
||||
<view class="_pa_bx_li_warp" onTap="toGetVideo" data-item={{item}}>
|
||||
<view class="_bx_li_wa_left">
|
||||
<view class="_li_wa_le_image">
|
||||
<image mode="scaleToFill" src="{{item.cover}}" class="_is_image" />
|
||||
<image mode="scaleToFill" src="{{item.cover}}" class="_is_image_s" />
|
||||
</view>
|
||||
</view>
|
||||
<view class="_bx_li_wa_right">
|
||||
@ -16,12 +16,12 @@
|
||||
<text>{{item.name || '-'}}</text>
|
||||
</view>
|
||||
|
||||
<view class="_li_wa_ri_spectate mt-16">
|
||||
<view class="_li_wa_ri_spectate">
|
||||
<text>观看到</text>
|
||||
<text class="order">第{{ item.order || 0 }}集</text>
|
||||
</view>
|
||||
|
||||
<view class="_li_wa_ri_update mt-16">
|
||||
<view class="_li_wa_ri_update">
|
||||
<text>更新至{{ item.latestid }}集</text>
|
||||
</view>
|
||||
</view>
|
||||
|
@ -1,16 +1,33 @@
|
||||
const { httpRequest } = getApp();
|
||||
|
||||
Page({
|
||||
data: {
|
||||
historyList: [],
|
||||
listFlag: true
|
||||
listFlag: false
|
||||
},
|
||||
onLoad(query) {
|
||||
console.log('page onLoad', query)
|
||||
onShow() {
|
||||
my.showLoading({
|
||||
content: '加载中...',
|
||||
});
|
||||
const paramenter = {
|
||||
path: '/history',
|
||||
method: 'GET',
|
||||
}
|
||||
httpRequest(paramenter).then(res => {
|
||||
my.hideLoading()
|
||||
if (res.status == 1 && Array.isArray(res.data)) {
|
||||
this.setData({
|
||||
historyList: res.data,
|
||||
listFlag: true
|
||||
})
|
||||
}
|
||||
})
|
||||
|
||||
},
|
||||
onShow() { },
|
||||
toGetVideo(event) {
|
||||
const data = event.target.dataset.item;
|
||||
my.navigateTo({
|
||||
url: `/pages/video/index?sid=${data.id}&id=${data.chapterid || ""}`,
|
||||
url: `/pages/video/video?sid=${data.sid}&id=${data.chapterid || ""}`,
|
||||
});
|
||||
}
|
||||
})
|
@ -1,191 +0,0 @@
|
||||
|
||||
|
||||
._banner_warp {
|
||||
position: relative;
|
||||
width: 100%;
|
||||
height: 724rpx;
|
||||
}
|
||||
|
||||
._banner_swiper {
|
||||
/* position: absolute;_bou_scr_ul_name
|
||||
top: 0; */
|
||||
width: 100%;
|
||||
height: 724rpx;
|
||||
}
|
||||
|
||||
._ba_swiper_item {
|
||||
width: 100%;
|
||||
height: 100%;
|
||||
}
|
||||
|
||||
._banner_search_warp {
|
||||
display: flex;
|
||||
align-items: center;
|
||||
position: absolute;
|
||||
top: 24rpx;
|
||||
left: 24rpx;
|
||||
width: 500rpx;
|
||||
height: 80rpx;
|
||||
padding-left:16rpx;
|
||||
background: rgba(255, 255, 255, 0.2);
|
||||
border-radius: 5px;
|
||||
z-index: 2;
|
||||
}
|
||||
|
||||
._search_placeholder > text {
|
||||
line-height: 1;
|
||||
color:rgba(0, 0, 0, 0.5);
|
||||
font-size: 28rpx;
|
||||
margin-left: 16rpx;
|
||||
}
|
||||
|
||||
._vido_list_content {
|
||||
padding: 30rpx 0;
|
||||
}
|
||||
|
||||
._v_li_con_item {
|
||||
padding: 0 30rpx;
|
||||
}
|
||||
|
||||
._li_con_item_header {
|
||||
display: flex;
|
||||
justify-content: space-between;
|
||||
align-items: center;
|
||||
padding: 40rpx 0;
|
||||
}
|
||||
|
||||
._it_head_title {
|
||||
padding-left: 16rpx;
|
||||
border-left: 4rpx solid #CE3636;
|
||||
}
|
||||
|
||||
._it_head_title> text {
|
||||
line-height: 1;
|
||||
font-size: 32rpx;
|
||||
color: #1a1a1a;
|
||||
font-weight: 600;
|
||||
}
|
||||
|
||||
._it_head_exit > text{
|
||||
line-height: 1;
|
||||
font-size: 26rpx;
|
||||
color: #999;
|
||||
}
|
||||
|
||||
._it_boutique_warp {
|
||||
width: 100%;
|
||||
margin-bottom: 30rpx;
|
||||
}
|
||||
|
||||
.scroll_view_H {
|
||||
display: flex;
|
||||
width: 100%;
|
||||
}
|
||||
|
||||
._bou_wa_scr_H {
|
||||
width: 200rpx;
|
||||
margin-right: 20rpx;
|
||||
}
|
||||
|
||||
._bou_scr_ul_image {
|
||||
width: 200rpx;
|
||||
height: 298rpx;
|
||||
border-radius: 16rpx;
|
||||
}
|
||||
|
||||
._bou_scr_ul_name {
|
||||
width: 100%;
|
||||
margin-top: 20rpx;
|
||||
}
|
||||
|
||||
._bou_scr_ul_name >text{
|
||||
display: block;
|
||||
width: 100%;
|
||||
line-height: 1;
|
||||
color: #1a1a1a;
|
||||
font-size: 34rpx;
|
||||
overflow: hidden;
|
||||
white-space: nowrap;
|
||||
text-overflow: ellipsis;
|
||||
}
|
||||
|
||||
._it_think_warp {
|
||||
display: flex;
|
||||
flex-wrap: wrap;
|
||||
width: 100%;
|
||||
}
|
||||
|
||||
._think__wa_ul {
|
||||
min-width: 50%;
|
||||
margin-bottom: 30rpx;
|
||||
}
|
||||
|
||||
._think__wa_ul.active_left {
|
||||
padding-left: 15rpx;
|
||||
}
|
||||
|
||||
._think__wa_ul.active_right {
|
||||
padding-right: 15rpx;
|
||||
}
|
||||
|
||||
._think__ul_li {
|
||||
width: 100%;
|
||||
background-color: #fff;
|
||||
border-radius: 16rpx;
|
||||
}
|
||||
|
||||
._think__li_image {
|
||||
height: 460rpx;
|
||||
}
|
||||
|
||||
._think__li_name {
|
||||
display: block;
|
||||
width: 100%;
|
||||
padding: 30rpx 20rpx;
|
||||
line-height: 1;
|
||||
color: #1a1a1a;
|
||||
font-size: 34rpx;
|
||||
overflow: hidden;
|
||||
white-space: nowrap;
|
||||
text-overflow: ellipsis;
|
||||
}
|
||||
|
||||
._v_li_heat_item {
|
||||
padding-left: 30rpx;
|
||||
}
|
||||
|
||||
._it_heat_warp {
|
||||
display: flex;
|
||||
flex-wrap: wrap;
|
||||
}
|
||||
|
||||
._heat_wa_ul {
|
||||
width: 33.33%;
|
||||
margin-bottom: 30rpx;
|
||||
}
|
||||
|
||||
._heat__ul_li {
|
||||
padding-right: 30rpx;
|
||||
}
|
||||
|
||||
._heat__li_image {
|
||||
width: 100%;
|
||||
height: 300rpx;
|
||||
background-color: pink;
|
||||
}
|
||||
|
||||
._heat__li_name >text {
|
||||
display: block;
|
||||
width: 100%;
|
||||
margin-top: 20rpx;
|
||||
line-height: 1;
|
||||
color: #1a1a1a;
|
||||
font-size: 34rpx;
|
||||
overflow: hidden;
|
||||
white-space: nowrap;
|
||||
text-overflow: ellipsis;
|
||||
}
|
||||
|
||||
._rem_my_footer {
|
||||
margin-top: 50rpx;
|
||||
}
|
@ -1,101 +0,0 @@
|
||||
<view class="_recommend_html">
|
||||
<view class="_banner_warp">
|
||||
<swiper class="_banner_swiper" interval="{{4000}}" duration="{{150}}" current="{{tabIndex}}" onChange="{{bannerChange}}">
|
||||
<swiper-item class="flex-1" a:for="{{pageDataInfo.bannerList}}" a:key="{{index}}">
|
||||
<view class="_ba_swiper_item" onTap="{{toPathVideo}}" data-item="{{item}}">
|
||||
<image src="{{item.cover}}" mode="aspectFill" class="_is_swiper_img"></image>
|
||||
</view>
|
||||
</swiper-item>
|
||||
</swiper>
|
||||
<view class="_banner_search_warp flex-row" onTap="getSearch">
|
||||
<view class="_serach_icon">
|
||||
<am-icon type="search" size="{{20}}" color="rgba(0, 0, 0, 0.5)" />
|
||||
</view>
|
||||
<view class="_search_placeholder">
|
||||
<text>寻找你喜欢的短剧</text>
|
||||
</view>
|
||||
</view>
|
||||
</view>
|
||||
|
||||
<view class="_vido_list_content">
|
||||
<view class="_v_li_con_item">
|
||||
<view class="_li_con_item_header">
|
||||
<view class="_it_head_title">
|
||||
<text>精品短剧</text>
|
||||
</view>
|
||||
<view class="_it_head_exit">
|
||||
<text>超级无敌好看剧集</text>
|
||||
</view>
|
||||
</view>
|
||||
<view class="_it_boutique_warp">
|
||||
<scroll-view class="scroll_view_H" scroll-x="{{true}}">
|
||||
<block a:for="{{pageDataInfo.module1}}">
|
||||
<view class="_bou_wa_scr_H" a:key="{{item.id}}" data-item="{{item}}" onTap="toPathVideo">
|
||||
<view class="_bou_scr_ul_image">
|
||||
<image mode="scaleToFill" src="{{item.cover}}" class="_is_image" />
|
||||
</view>
|
||||
<view class="_bou_scr_ul_name">
|
||||
<text>{{item.name}}</text>
|
||||
</view>
|
||||
</view>
|
||||
</block>
|
||||
</scroll-view>
|
||||
</view>
|
||||
</view>
|
||||
|
||||
<view class="_v_li_heat_item">
|
||||
<view class="_li_con_item_header">
|
||||
<view class="_it_head_title">
|
||||
<text>全网热播</text>
|
||||
</view>
|
||||
<view class="_it_head_exit"></view>
|
||||
</view>
|
||||
<view class="_it_heat_warp">
|
||||
<block a:for="{{pageDataInfo.module3}}">
|
||||
<view class="_heat_wa_ul" a:key="{{item.id}}" data-item="{{item}}" onTap="toPathVideo">
|
||||
<view class="_heat__ul_li">
|
||||
<view class="_heat__li_image">
|
||||
<image mode="scaleToFill" src="{{item.cover}}" class="_is_image" />
|
||||
</view>
|
||||
<view class="_heat__li_name">
|
||||
<text>{{item.name}}</text>
|
||||
</view>
|
||||
</view>
|
||||
</view>
|
||||
</block>
|
||||
</view>
|
||||
</view>
|
||||
|
||||
<view class="_v_li_con_item">
|
||||
<view class="_li_con_item_header">
|
||||
<view class="_it_head_title">
|
||||
<text>猜你想追</text>
|
||||
</view>
|
||||
<view class="_it_head_exit"></view>
|
||||
</view>
|
||||
<view class="_it_think_warp">
|
||||
<block a:for="{{pageDataInfo.module2}}">
|
||||
<view class="_think__wa_ul {{(index + 1) % 2 == 0 ? 'active_left' :'active_right'}}" a:key="{{item.id}}" data-item="{{item}}"
|
||||
onTap="toPathVideo">
|
||||
<view class="_think__ul_li ">
|
||||
<view class="_think__li_image">
|
||||
<image mode="scaleToFill" src="{{item.cover}}" class="_is_image" />
|
||||
</view>
|
||||
<view class="_think__li_name">
|
||||
<text>{{item.name}}</text>
|
||||
</view>
|
||||
</view>
|
||||
</view>
|
||||
</block>
|
||||
</view>
|
||||
</view>
|
||||
|
||||
|
||||
|
||||
<view class="_rem_my_footer">
|
||||
<my-footer/>
|
||||
</view>
|
||||
|
||||
</view>
|
||||
|
||||
</view>
|
@ -1,34 +0,0 @@
|
||||
Component({
|
||||
mixins: [],
|
||||
data: {},
|
||||
props: {
|
||||
pageDataInfo: {
|
||||
bannerList: [],
|
||||
module1: [],
|
||||
module2: [],
|
||||
module3: [],
|
||||
}
|
||||
},
|
||||
didMount() { },
|
||||
didUpdate() { },
|
||||
didUnmount() { },
|
||||
methods: {
|
||||
bannerChange(event) {
|
||||
|
||||
},
|
||||
getVideo(event) {
|
||||
|
||||
},
|
||||
toPathVideo(event) {
|
||||
const data = event.target.dataset.item;
|
||||
my.navigateTo({
|
||||
url: `/pages/video/video?sid=${data.bookid || data.id}`
|
||||
});
|
||||
},
|
||||
getSearch() {
|
||||
my.navigateTo({
|
||||
url: '/pages/search/search'
|
||||
})
|
||||
}
|
||||
},
|
||||
});
|
@ -1,7 +0,0 @@
|
||||
{
|
||||
"component": true,
|
||||
"usingComponents": {
|
||||
"am-icon": "mini-antui/es/am-icon/index",
|
||||
"my-footer": "/components/myFooter/myFooter"
|
||||
}
|
||||
}
|
@ -120,7 +120,7 @@ page,
|
||||
|
||||
._idx_swiper_warp {
|
||||
padding: 0 40rpx;
|
||||
margin-bottom: 40rpx;
|
||||
margin-bottom: 30rpx;
|
||||
}
|
||||
|
||||
._banner_swiper {
|
||||
@ -128,6 +128,11 @@ page,
|
||||
height: 300rpx;
|
||||
}
|
||||
|
||||
._ba_swiper_item {
|
||||
width: 100%;
|
||||
height: 300rpx;
|
||||
}
|
||||
|
||||
._is_swiper_img {
|
||||
display: block;
|
||||
width: 100%;
|
||||
@ -183,7 +188,7 @@ page,
|
||||
|
||||
._idx_vi_i_w_li_w_cover {
|
||||
width: 100%;
|
||||
height: 260rpx;
|
||||
height: 280rpx;
|
||||
}
|
||||
|
||||
._idx_v_i_w_i_w_cov_img {
|
||||
|
@ -54,11 +54,13 @@
|
||||
|
||||
<view class="_idx_swiper_warp">
|
||||
<swiper class="_banner_swiper" interval={{4000}} duration={{150}} onChange="{{bannerChange}}">
|
||||
<swiper-item class="flex-1" a:for="{{pageDataInfo.bannerList}}" a:key={{index}}>
|
||||
<view class="_ba_swiper_item" onTap="{{toPathVideo}}" data-item="{{item}}">
|
||||
<image src="{{item.cover}}" mode="aspectFill" class="_is_swiper_img"></image>
|
||||
</view>
|
||||
</swiper-item>
|
||||
<block a:for="{{pageDataInfo.bannerList}}">
|
||||
<swiper-item class="" a:key={{item.bookid}}>
|
||||
<view class="_ba_swiper_item" onTap="{{toPathVideo}}" data-item="{{item}}">
|
||||
<image src="{{item.cover}}" mode="aspectFill" class="_is_swiper_img"></image>
|
||||
</view>
|
||||
</swiper-item>
|
||||
</block>
|
||||
</swiper>
|
||||
</view>
|
||||
|
||||
@ -107,7 +109,7 @@
|
||||
|
||||
</view>
|
||||
</view>
|
||||
|
||||
|
||||
<view class="_idx_page_video_item">
|
||||
<view class="_idx_video_it_warp">
|
||||
<view class="_idx_vi_it_wa_header">
|
||||
@ -130,6 +132,6 @@
|
||||
|
||||
</view>
|
||||
</view>
|
||||
|
||||
|
||||
|
||||
|
||||
</view>
|
@ -1,6 +1,6 @@
|
||||
Page({
|
||||
data: {
|
||||
baoxianFlag: true,
|
||||
baoxianFlag: false,
|
||||
tabIndex: 0,
|
||||
history: {},
|
||||
historyShow: true,
|
||||
@ -14,7 +14,6 @@ Page({
|
||||
},
|
||||
onShow() {
|
||||
// 页面显示
|
||||
|
||||
this.isGetList();
|
||||
},
|
||||
|
||||
@ -25,7 +24,6 @@ Page({
|
||||
method: 'GET',
|
||||
}
|
||||
httpRequest(paramenter).then(res => {
|
||||
console.log(res, "resres")
|
||||
if (res && res.status == 1) {
|
||||
const { data } = res;
|
||||
this.setData({
|
||||
|
@ -1,7 +1,6 @@
|
||||
{
|
||||
"defaultTitle":"追剧",
|
||||
"usingComponents": {
|
||||
"am-icon": "mini-antui/es/am-icon/index",
|
||||
"recommend":"./components/recommend/recommend"
|
||||
"am-icon": "mini-antui/es/am-icon/index"
|
||||
}
|
||||
}
|
@ -85,20 +85,21 @@ page {
|
||||
}
|
||||
|
||||
._b_mo_in_warp {
|
||||
display: flex;
|
||||
/* display: flex; */
|
||||
width: 100%;
|
||||
height: 188rpx;
|
||||
background: #fff;
|
||||
border-radius: 18rpx;
|
||||
padding: 0 24rpx;
|
||||
padding: 30rpx 24rpx;
|
||||
}
|
||||
|
||||
._mo_in_wa_left{
|
||||
flex: 1;
|
||||
flex-shrink: 0;
|
||||
/* flex: 1; */
|
||||
/* flex-shrink: 0; */
|
||||
display: flex;
|
||||
justify-content: space-around;
|
||||
align-items: center;
|
||||
width: 100%;
|
||||
/* height: 188rpx; */
|
||||
}
|
||||
|
||||
._in_wa_left_item {
|
||||
@ -121,10 +122,16 @@ page {
|
||||
color: #666;
|
||||
}
|
||||
|
||||
._mo_in_wa_right {
|
||||
/* ._mo_in_wa_right {
|
||||
display: flex;
|
||||
align-items: center;
|
||||
margin-left: 24rpx;
|
||||
} */
|
||||
|
||||
._my_pay_warp {
|
||||
display: flex;
|
||||
justify-content: flex-end;
|
||||
margin-top: 30rpx;
|
||||
}
|
||||
|
||||
._in_wa_ri_btn {
|
||||
|
@ -53,6 +53,14 @@
|
||||
<text>我的K币</text>
|
||||
</view>
|
||||
</view>
|
||||
<view class="_in_wa_left_item">
|
||||
<view class="_wa_le_it_num">
|
||||
<text>{{ userInfo.zb || 0 }}</text>
|
||||
</view>
|
||||
<view class="_wa_le_it_name">
|
||||
<text>我的赠币</text>
|
||||
</view>
|
||||
</view>
|
||||
<view class="_in_wa_left_item">
|
||||
<view class="_wa_le_it_num">
|
||||
<text>{{ userInfo.vip_enddate || 0 }}</text>
|
||||
@ -62,14 +70,14 @@
|
||||
</view>
|
||||
</view>
|
||||
</view>
|
||||
<view class="_mo_in_wa_right">
|
||||
<!--<block a:if="{{systemInfo.platform === 'ios'}}"><view class="_in_wa_ri_btn" onTap="goIndex"><text>立即看剧</text></view></block><block a:else> -->
|
||||
<view class="_my_pay_warp">
|
||||
<view class="_in_wa_ri_btn" onTap="getPayG">
|
||||
<text>立即充值</text>
|
||||
</view>
|
||||
<!--</block> -->
|
||||
</view>
|
||||
<!--<view class="_mo_in_wa_right"><block a:if="{{systemInfo.platform === 'ios'}}"><view class="_in_wa_ri_btn" onTap="goIndex"><text>立即看剧</text></view></block><block a:else><view class="_in_wa_ri_btn" onTap="getPayG"><text>立即充值</text></view></block></view> -->
|
||||
</view>
|
||||
|
||||
</view>
|
||||
|
||||
<view class="_m_b_othen_to_list">
|
||||
|
@ -10,21 +10,20 @@ Page({
|
||||
myToHistroy: myToHistroy,
|
||||
popupShow: false
|
||||
},
|
||||
onLoad(query) {
|
||||
console.log('page onLoad', query)
|
||||
},
|
||||
onShow() {
|
||||
this.setData({
|
||||
userInfo: getApp().globalData.userInfo,
|
||||
systemInfo: getApp().globalData.systemInfo,
|
||||
})
|
||||
},
|
||||
async isGetUserInfo(showFlag = true) {
|
||||
|
||||
async isGetUserInfo() {
|
||||
if (showFlag) {
|
||||
my.showLoading({
|
||||
content: '刷新中...',
|
||||
});
|
||||
}
|
||||
|
||||
my.showLoading({
|
||||
content: '刷新中...',
|
||||
});
|
||||
const paramenter = {
|
||||
path: '/user',
|
||||
method: 'GET',
|
||||
@ -54,16 +53,15 @@ Page({
|
||||
},
|
||||
|
||||
toPathOtherPage(event) {
|
||||
console.log(event, "==========")
|
||||
const item = event.target.dataset.item;
|
||||
if (item.id == 4) {
|
||||
my.tb.openMessage({
|
||||
sellerNick: "湖南秦九",
|
||||
success: (res) => {
|
||||
console.log(res);
|
||||
console.log(res, 'success');
|
||||
},
|
||||
fail: (res) => {
|
||||
console.log(res);
|
||||
console.log(res, 'fail');
|
||||
},
|
||||
})
|
||||
} else {
|
||||
@ -79,21 +77,30 @@ Page({
|
||||
})
|
||||
},
|
||||
|
||||
// getPayG() {
|
||||
// my.hideTabBar({
|
||||
// animation: true
|
||||
// })
|
||||
// this.setData({
|
||||
// popupShow: true
|
||||
// })
|
||||
// },
|
||||
getPayG() {
|
||||
my.hideTabBar({
|
||||
animation: true,
|
||||
complete: () => {
|
||||
this.setData({
|
||||
popupShow: true
|
||||
})
|
||||
}
|
||||
})
|
||||
|
||||
// onClosePopup() {
|
||||
// this.setData({
|
||||
// popupShow: false
|
||||
// })
|
||||
// my.showTabBar({
|
||||
// animation: true
|
||||
// })
|
||||
// }
|
||||
},
|
||||
|
||||
onClosePopup(mi) {
|
||||
|
||||
this.setData({
|
||||
popupShow: false
|
||||
})
|
||||
setTimeout(() => {
|
||||
my.showTabBar({
|
||||
animation: true
|
||||
})
|
||||
}, 300)
|
||||
if (mi.resultCode == 9000) {
|
||||
this.isGetUserInfo(false);
|
||||
}
|
||||
}
|
||||
})
|
@ -9,6 +9,7 @@ page {
|
||||
._bo_da_li_warp {
|
||||
background-color: #fff;
|
||||
border-radius: 18rpx;
|
||||
margin-bottom: 30rpx;
|
||||
}
|
||||
|
||||
._da_li_wa_header {
|
||||
@ -24,8 +25,8 @@ page {
|
||||
._da_li_wa_header ._is_round{
|
||||
position: absolute;
|
||||
bottom: 0;
|
||||
width: 60rpx;
|
||||
height: 60rpx;
|
||||
width: 40rpx;
|
||||
height: 40rpx;
|
||||
border-radius: 50%;
|
||||
background-color: #F1F4FA;
|
||||
}
|
||||
@ -47,13 +48,21 @@ page {
|
||||
color: #000000;
|
||||
}
|
||||
|
||||
._wa_he_title_err >text {
|
||||
line-height: 1;
|
||||
font-size: 36rpx;
|
||||
font-weight: 700;
|
||||
color: #ce3636;
|
||||
}
|
||||
|
||||
._da_li_wa_container {
|
||||
padding: 50rpx 24rpx;
|
||||
padding: 50rpx 24rpx 30rpx;
|
||||
}
|
||||
|
||||
._wa_con_info {
|
||||
display: flex;
|
||||
align-items: center;
|
||||
margin-bottom: 20rpx;
|
||||
}
|
||||
|
||||
._goods_name {
|
||||
|
@ -4,18 +4,34 @@
|
||||
<block a:if="{{rechargeList.length && rechargeFlag}}">
|
||||
<view class="_tr_pa_bo_data_list">
|
||||
<block a:for="{{rechargeList}}">
|
||||
<view class="_bo_da_li_warp">
|
||||
<view class="_bo_da_li_warp" a:key={{index}}>
|
||||
<view class="_da_li_wa_header">
|
||||
<view class="_round_after _is_round" />
|
||||
<view class="_round_before _is_round" />
|
||||
<view class="_wa_he_title">
|
||||
<text>充值39.90元未支付</text>
|
||||
</view>
|
||||
<block a:if={{item.status == 1}}>
|
||||
<view class="_wa_he_title">
|
||||
<text>充值{{item.money}}元已支付</text>
|
||||
</view>
|
||||
</block>
|
||||
<block a:else>
|
||||
<view class="_wa_he_title_err">
|
||||
<text>充值{{item.money}}元未支付</text>
|
||||
</view>
|
||||
</block>
|
||||
|
||||
</view>
|
||||
<view class="_da_li_wa_container">
|
||||
<view class="_wa_con_info">
|
||||
<text class="_goods_name">订单号码:</text>
|
||||
<text class="_goods_code">GGYSJ_20231030111806653f206eef218197</text>
|
||||
<text class="_goods_code">{{item.out_trade_no}}</text>
|
||||
</view>
|
||||
<view class="_wa_con_info">
|
||||
<text class="_goods_name">充值时间:</text>
|
||||
<text class="_goods_code">{{item.create_time}}</text>
|
||||
</view>
|
||||
<view class="_wa_con_info">
|
||||
<text class="_goods_name">充值金额:</text>
|
||||
<text class="_goods_code">{{item.money}}¥</text>
|
||||
</view>
|
||||
</view>
|
||||
</view>
|
||||
|
@ -1,10 +1,29 @@
|
||||
const { httpRequest } = getApp();
|
||||
|
||||
Page({
|
||||
data: {
|
||||
rechargeList: [],
|
||||
rechargeFlag: true
|
||||
rechargeFlag: false
|
||||
},
|
||||
onLoad(query) {
|
||||
console.log('page onLoad', query)
|
||||
},
|
||||
onShow() { }
|
||||
onShow() {
|
||||
my.showLoading({
|
||||
content: '加载中...',
|
||||
});
|
||||
|
||||
const paramenter = {
|
||||
path: '/rechargerecord',
|
||||
method: 'POST',
|
||||
}
|
||||
|
||||
httpRequest(paramenter).then(res => {
|
||||
my.hideLoading();
|
||||
if (res.status == 1 && Array.isArray(res.data)) {
|
||||
this.setData({
|
||||
rechargeList: res.data,
|
||||
rechargeFlag: true,
|
||||
})
|
||||
}
|
||||
})
|
||||
|
||||
}
|
||||
})
|
@ -20,10 +20,20 @@ page {
|
||||
|
||||
.swiper_item {
|
||||
width: 100%;
|
||||
height: 100vh;
|
||||
}
|
||||
|
||||
.swiper_item_warp {
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
width: 100%;
|
||||
height: 100vh;
|
||||
position: relative;
|
||||
}
|
||||
|
||||
._video_pay_warp {
|
||||
flex: 1;
|
||||
flex-shrink: 0;
|
||||
position: relative;
|
||||
}
|
||||
|
||||
@ -32,6 +42,21 @@ page {
|
||||
height: 100%;
|
||||
}
|
||||
|
||||
._video_pay_bg_cover {
|
||||
position: absolute;
|
||||
top: 0;
|
||||
left: 0;
|
||||
right: 0;
|
||||
bottom: 0;
|
||||
}
|
||||
|
||||
._video_pay_bg_cover_img {
|
||||
display: block;
|
||||
width: 100%;
|
||||
height: 100%;
|
||||
z-index: 1;
|
||||
}
|
||||
|
||||
._swiper_video_cover {
|
||||
position: absolute;
|
||||
bottom: 180rpx;
|
||||
@ -54,27 +79,38 @@ page {
|
||||
}
|
||||
|
||||
.swiper_pay_modal {
|
||||
position: absolute;
|
||||
top: 0;
|
||||
left: 0;
|
||||
bottom: 0;
|
||||
right: 0;
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
justify-content: center;
|
||||
align-items: center;
|
||||
background-color: #000;
|
||||
width: 100%;
|
||||
height: 100%;
|
||||
z-index: 3;
|
||||
background-color: rgba(0, 0, 0, 0.45);
|
||||
}
|
||||
|
||||
.sw_pay_mo_order >text {
|
||||
font-size: 50rpx;
|
||||
.sw_pay_mo_order {
|
||||
font-size: 46rpx;
|
||||
font-weight: 700;
|
||||
color: #fff;
|
||||
background-color: transparent;
|
||||
}
|
||||
|
||||
.sw_pay_isAutoplay_tips {
|
||||
margin-top: 40rpx;
|
||||
background-color: transparent;
|
||||
font-size: 46rpx;
|
||||
font-weight: 700;
|
||||
color: #fff;
|
||||
}
|
||||
|
||||
.sw_pay_isAutoplay_tips >text {
|
||||
font-size: 50rpx;
|
||||
.sw_pay_isAutoplay_tips_support {
|
||||
margin-top: 40rpx;
|
||||
background-color: transparent;
|
||||
font-size: 30rpx;
|
||||
font-weight: 700;
|
||||
color: #fff;
|
||||
}
|
||||
@ -89,6 +125,7 @@ page {
|
||||
background-color: #FF2B2B;
|
||||
margin-top: 40rpx;
|
||||
border-radius: 16rpx;
|
||||
color: #fff;
|
||||
}
|
||||
|
||||
.sw_pay_isAutoplay_btn >text {
|
||||
@ -97,11 +134,16 @@ page {
|
||||
}
|
||||
|
||||
._video_series {
|
||||
padding-bottom: constant(safe-area-inset-bottom);
|
||||
padding-bottom: env(safe-area-inset-bottom);
|
||||
}
|
||||
|
||||
._video_series_box {
|
||||
display: flex;
|
||||
justify-content: space-between;
|
||||
align-items: center;
|
||||
width: 100%;
|
||||
height: 100rpx;
|
||||
height: 140rpx;
|
||||
padding: 0 30rpx;
|
||||
}
|
||||
|
||||
@ -110,6 +152,18 @@ page {
|
||||
align-items: center;
|
||||
}
|
||||
|
||||
._video_series_right {
|
||||
display: flex;
|
||||
align-items: center;
|
||||
}
|
||||
|
||||
._video_series_right_text {
|
||||
font-size: 32rpx;
|
||||
color: #fff;
|
||||
margin-right: 10rpx;
|
||||
line-height: 1;
|
||||
}
|
||||
|
||||
._vi_ser_le_img {
|
||||
width: 88rpx;
|
||||
height: 56rpx;
|
||||
@ -186,12 +240,16 @@ page {
|
||||
padding: 0 30rpx;
|
||||
}
|
||||
|
||||
._pop_order_con_tabs {
|
||||
flex: 1;
|
||||
}
|
||||
|
||||
._pop_ord_hea_left {
|
||||
display: flex;
|
||||
}
|
||||
|
||||
._pop_ord_hea_le_title {
|
||||
width: 360rpx;
|
||||
max-width: 360rpx;
|
||||
white-space: nowrap;
|
||||
overflow: hidden;
|
||||
text-overflow: ellipsis;
|
||||
@ -207,14 +265,18 @@ page {
|
||||
}
|
||||
|
||||
._pop_ord_hea_le_all{
|
||||
margin-left: 4rpx;
|
||||
margin-left: 8rpx;
|
||||
}
|
||||
|
||||
._pop_ord_hea_le_all>text {
|
||||
font-size: 26rpx;
|
||||
color: #333;
|
||||
color: #999;
|
||||
}
|
||||
|
||||
|
||||
._video_html .am-popup {
|
||||
z-index: 99;
|
||||
}
|
||||
/* ._pop_order_con_tabs {
|
||||
padding: 0 30rpx;
|
||||
} */
|
||||
@ -225,6 +287,11 @@ page {
|
||||
._pop_order__tabs .am-tabs-bar-tab {
|
||||
padding: 0 30rpx;
|
||||
justify-content: flex-start;
|
||||
width: auto !important;
|
||||
}
|
||||
|
||||
._pop_order__tabs .am-tabs-pane-wrap {
|
||||
height: 100%;
|
||||
}
|
||||
|
||||
._pop_order__tabs .am-tabs-bar-tab,
|
||||
@ -266,6 +333,14 @@ page {
|
||||
border-radius: 16rpx;
|
||||
}
|
||||
|
||||
.tab_c_list_ul_li.active {
|
||||
background-color: #ff779e;
|
||||
}
|
||||
|
||||
.tab_c_list_ul_li.active text {
|
||||
color: #fff;
|
||||
}
|
||||
|
||||
.tab_c_list_ul_li text {
|
||||
font-size: 26rpx;
|
||||
color: #333;
|
||||
|
@ -1,57 +1,80 @@
|
||||
<view class="_video_html">
|
||||
<view class="_video_box" id="_video_box">
|
||||
<swiper class="_video_swiper" duration={{200}} vertical={{true}} current={{swiperCurrent}}>
|
||||
<block a:for={{swiperList}}>
|
||||
<!--<swiper class="_video_swiper" duration={{200}} vertical={{true}} current={{swiperCurrent}} onChange="handelswiperCurrent"
|
||||
disable-touch={{false}}><block a:for={{swiperList}}><swiper-item key="swiper_item_{{index}}" class="swiper_item"> -->
|
||||
<view class="swiper_item_warp">
|
||||
<!-- 播放 -->
|
||||
<view class="_video_pay_warp">
|
||||
<!-- poster={{videoInfoObj.videocover}} -->
|
||||
<block a:if={{videoInfoObj.chackpay == 1}}>
|
||||
<video class="swiper_video_box" src={{videoInfoObj.video_url}} autoplay={{videoInfoObj.chackpay == 1 ? true: false}}
|
||||
poster={{posterCover}} onError="videoErrorFn" objectFit="contain" show-mute-btn={{false}} onEnded="videoEndedFn"></video>
|
||||
<!--<video class="swiper_video_box" src='https://cloud.video.taobao.com/play/u/20446068/p/1/e/6/t/1/239271757987.mp4' autoplay={{videoInfoObj.chackpay == 1 ? true: false}}
|
||||
poster={{posterCover}} onError="videoErrorFn" objectFit="contain" show-mute-btn={{false}} onEnded="videoEndedFn"></video> -->
|
||||
</block>
|
||||
|
||||
<swiper-item key="swiper_item_{{index}}" class="swiper_item">
|
||||
<view class="swiper_item_warp" style="height:{{swiperItemHeight}}px">
|
||||
<!-- 播放 -->
|
||||
<block a:if={{swiperCurrent === index && item.chackpay == 1}}>
|
||||
<video class="swiper_video_box" style="height:{{swiperItemHeight}}px" src={{item.video_url}} poster={{item.videocover}} autoplay={{true}} onError="videoErrorFn" objectFit="contain"></video>
|
||||
</block>
|
||||
|
||||
<block a:if={{iosPayment.status === 2 || systemInfo.platform != 'ios'}}>
|
||||
<view class="swiper_pay_modal">
|
||||
<view class="sw_pay_mo_order">
|
||||
<text>第几集</text></view>
|
||||
<view class="sw_pay_isAutoplay_tips">
|
||||
<text>当前剧集是付费剧集</text>
|
||||
</view>
|
||||
<view class="sw_pay_isAutoplay_btn">
|
||||
<text>立即充值</text>
|
||||
</view>
|
||||
</view>
|
||||
</block>
|
||||
|
||||
<cover-view class="_swiper_video_cover">
|
||||
<cover-view class="_chasing_dramas_cover" onTap="addChasingDramasFn">
|
||||
<am-icon type="heart" size="{{26}}" color="{{videoInfoObj.iskeep === 0 ? '#ffffff' :'#FF2B2B'}}" />
|
||||
<cover-view class="_chasing_dramas_text">追剧</cover-view>
|
||||
</cover-view>
|
||||
</cover-view>
|
||||
|
||||
<!--<block a:elif={{ item.isvip == 1}}> -->
|
||||
<!--<block a:if={{(iosPayment.status === 2 || systemInfo.platform != 'ios') && videoInfoObj.isvip == 1}}> -->
|
||||
<block a:if={{ videoInfoObj.chackpay == 2}}>
|
||||
<view class="_video_pay_bg_cover">
|
||||
<image mode="scaleToFill" src={{posterCover}} class="_video_pay_bg_cover_img" />
|
||||
</view>
|
||||
</swiper-item>
|
||||
<!--<cover-view class="swiper_pay_modal" onTap="toPathPlayPage"><cover-view class="sw_pay_mo_order">第 {{videoInfoObj.order}} 集</cover-view><cover-view class="sw_pay_isAutoplay_tips">此剧为付费内容,您的K币不足</cover-view><cover-view class="sw_pay_isAutoplay_tips_support">支持创作作者,解锁后继续观看</cover-view><cover-view class="sw_pay_isAutoplay_btn" onTap="toPathPlayPage">立即充值</cover-view></cover-view> -->
|
||||
<view class="swiper_pay_modal">
|
||||
<view class="sw_pay_mo_order">第 {{videoInfoObj.order}} 集</view>
|
||||
<view class="sw_pay_isAutoplay_tips">此剧为付费内容,您的K币不足</view>
|
||||
<view class="sw_pay_isAutoplay_tips_support">支持创作作者,解锁后继续观看</view>
|
||||
<view class="sw_pay_isAutoplay_btn" onTap="toPathPlayPage">立即充值</view>
|
||||
</view>
|
||||
</block>
|
||||
|
||||
</block>
|
||||
</swiper>
|
||||
<block a:if={{ videoInfoObj.chackpay == 3}}>
|
||||
<view class="_video_pay_bg_cover">
|
||||
<image mode="scaleToFill" src={{posterCover}} class="_video_pay_bg_cover_img" />
|
||||
</view>
|
||||
<!--<cover-view class="swiper_pay_modal"><cover-view class="sw_pay_isAutoplay_tips">此剧为付费内容,需要购全集</cover-view><cover-view class="sw_pay_isAutoplay_tips_support">支持创作作者,解锁后继续观看</cover-view><cover-view class="sw_pay_isAutoplay_btn" onTap="toPathPlayAllOrder">立即购买 ( {{videoInfoObj.allprice}}K币 )</cover-view></cover-view> -->
|
||||
<view class="swiper_pay_modal">
|
||||
<view class="sw_pay_isAutoplay_tips">此剧为付费内容,需要购全集</view>
|
||||
<view class="sw_pay_isAutoplay_tips_support">支持创作作者,解锁后继续观看</view>
|
||||
<view class="sw_pay_isAutoplay_btn" onTap="toPathPlayAllOrder">立即购买 ( {{videoInfoObj.allprice}}K币 )</view>
|
||||
</view>
|
||||
</block>
|
||||
<!--</block> -->
|
||||
|
||||
<block a:if={{videoInfoObj.chackpay == 1}}>
|
||||
<cover-view class="_swiper_video_cover">
|
||||
<cover-view class="_chasing_dramas_cover" onTap="addChasingDramasFn">
|
||||
<am-icon type="heart" size="{{30}}" color="{{videoInfoObj.iskeep === 0 ? '#ffffff' :'#FF2B2B'}}" />
|
||||
<cover-view class="_chasing_dramas_text">追剧</cover-view>
|
||||
</cover-view>
|
||||
</cover-view>
|
||||
</block>
|
||||
</view>
|
||||
|
||||
<view class="_video_series" onTap="selectEpisodesFn">
|
||||
<view class="_video_series_box">
|
||||
<view class="_video_series_left">
|
||||
<view class="_vi_ser_le_img">
|
||||
<image mode="scaleToFill" src="{{imageBasUrl}}/iamge/video-bottom.png" class="_is_image" />
|
||||
</view>
|
||||
<view class="_vi_ser_le_order">
|
||||
<text>第 {{videoInfoObj.order}} 集</text>
|
||||
</view>
|
||||
</view>
|
||||
<view class="_video_series_right">
|
||||
<view class="_video_series_right_text">
|
||||
选集
|
||||
</view>
|
||||
<am-icon type="arrow-right" size="{{18}}" color="#fff" />
|
||||
</view>
|
||||
</view>
|
||||
</view>
|
||||
|
||||
</view >
|
||||
<!--</swiper-item></block></swiper> -->
|
||||
</view>
|
||||
|
||||
<view class="_video_series" onTap="selectEpisodesFn">
|
||||
<view class="_video_series_left">
|
||||
<view class="_vi_ser_le_img">
|
||||
<image mode="scaleToFill" src="{{imageBasUrl}}/iamge/video-bottom.png" class="_is_image" />
|
||||
</view>
|
||||
<view class="_vi_ser_le_order">
|
||||
<text>第 {{swiperOrder}} 集</text>
|
||||
</view>
|
||||
</view>
|
||||
<view class="_video_series_right">
|
||||
<am-icon type="arrow-right" size="{{20}}" color="#fff" />
|
||||
</view>
|
||||
</view>
|
||||
|
||||
<popup show="{{orderPopupShow}}" position="bottom" onClose="onPopupClose">
|
||||
<popup show="{{orderPopupShow}}" position="bottom" onClose="closeOrderPopup">
|
||||
<view class="_popup_order_content">
|
||||
<view class="_pop_order_con_header">
|
||||
<view class="_pop_ord_hea_left">
|
||||
@ -63,33 +86,41 @@
|
||||
</view>
|
||||
</view>
|
||||
<view class="_pop_ord_hea_right" onTap="closeOrderPopup">
|
||||
<!-- arrow-down -->
|
||||
<am-icon type="cross" size="{{20}}" color="#333" />
|
||||
<am-icon type="cross" size="{{18}}" color="#333" />
|
||||
</view>
|
||||
</view>
|
||||
|
||||
<view class="_pop_order_con_tabs">
|
||||
<tabs tabs={{orderList}} onTabClick="handleTabClick" activeTab="{{activeTab}} " className="_pop_order__tabs" tabBarActiveTextColor="#CE3636"
|
||||
tabBarInactiveTextColor="#7F7F7F" tabBarUnderlineColor="#CE3636">
|
||||
<tabs tabs={{orderList}} onTabClick="handleTabClick" activeTab="{{activeTab}} " className="_pop_order__tabs" tabBarActiveTextColor="#ff779e"
|
||||
tabBarInactiveTextColor="#333" tabBarUnderlineColor="#ff779e">
|
||||
|
||||
<block a:for={{orderList}}>
|
||||
<tab-content key={{index}}>
|
||||
<view class="tab_c_list">
|
||||
<block a:for="{{item.temp}}" a:for-index="idx" a:for-item="j">
|
||||
<view class="tab_c_list_ul" key={{idx}}>
|
||||
<view class="tab_c_list_ul_li" data-item="{{j}}" onTap="handleOrderCurrent">
|
||||
<text>{{index + idx + 1}}</text>
|
||||
<view class="tab_c__ul_li_lock">
|
||||
<image mode="scaleToFill" src="{{imageBasUrl}}/iamge/videoLock.png" class="_li_lock_image" />
|
||||
</view>
|
||||
<view class="tab_c_list_ul" key={{j.order}}>
|
||||
<view class="tab_c_list_ul_li {{j.id == videoInfoObj.id ? 'active' :'' }}" data-item={{j}} onTap="handleOrderCurrent">
|
||||
<text>{{j.order}}</text>
|
||||
<block a:if={{j.isvip == 1}}>
|
||||
<view class="tab_c__ul_li_lock">
|
||||
<image mode="scaleToFill" src="{{imageBasUrl}}/iamge/videoLock.png" class="_li_lock_image" />
|
||||
</view>
|
||||
</block>
|
||||
</view>
|
||||
</view>
|
||||
</block>
|
||||
</view>
|
||||
</tab-content>
|
||||
</block>
|
||||
|
||||
</tabs>
|
||||
</view>
|
||||
|
||||
</view>
|
||||
</popup>
|
||||
|
||||
<view>
|
||||
<my-pay popupShow="{{popupShow}}" onClosePopup="onClosePopup" />
|
||||
</view>
|
||||
|
||||
</view>
|
@ -3,12 +3,11 @@ const { httpRequest } = getApp();
|
||||
|
||||
Page({
|
||||
data: {
|
||||
swiperItemHeight: 0,
|
||||
imageBasUrl,
|
||||
// chasingDramasShow: false,
|
||||
chasDraIconColor: '#fff',
|
||||
// swiperItemHeight: 0,
|
||||
orderList: [],
|
||||
videoInfoObj: {},
|
||||
posterCover: '',
|
||||
activeTab: 0,
|
||||
orderPopupShow: false,
|
||||
systemInfo: {},
|
||||
@ -18,112 +17,23 @@ Page({
|
||||
swiperCurrent: 0,
|
||||
swiperOrder: 0,
|
||||
sid: '',
|
||||
popupShow: false,
|
||||
batchAllOrder: 0,
|
||||
batchAllList: []
|
||||
},
|
||||
// 获取其它信息
|
||||
isOtherFn() {
|
||||
my.createSelectorQuery().select('#_video_box').boundingClientRect().exec((r) => {
|
||||
this.setData({
|
||||
swiperItemHeight: r[0].height
|
||||
})
|
||||
});
|
||||
// my.createSelectorQuery().select('#_video_box').boundingClientRect().exec((r) => {
|
||||
// this.setData({
|
||||
// swiperItemHeight: r[0].height
|
||||
// })
|
||||
// });
|
||||
this.setData({
|
||||
userInfo: getApp().globalData.userInfo,
|
||||
systemInfo: getApp().globalData.systemInfo
|
||||
})
|
||||
},
|
||||
|
||||
// 处理显示的集数
|
||||
isSwiperListFn(orNum, ls, orInfo) {
|
||||
// 总共显示集数
|
||||
let showOrder = 9;
|
||||
// 平均前后的集数
|
||||
let halfNum = Math.ceil(showOrder / 2) - 1;
|
||||
// 集数减一为,列表的索引
|
||||
const sum = orNum - 1;
|
||||
// 当前的集数加上,平均前后的集数,不能超过总的集数
|
||||
const all = orNum + halfNum;
|
||||
// 新的列表
|
||||
const list = [];
|
||||
let swiperCurrent = 0;
|
||||
|
||||
if (ls.length < showOrder) {
|
||||
showOrder = ls.length;
|
||||
halfNum = Math.ceil(ls.length / 2) - 1;
|
||||
}
|
||||
|
||||
if (all >= ls.length) {
|
||||
|
||||
let digit = 0;
|
||||
let first = halfNum;
|
||||
// let after = halfNum;
|
||||
let cunIdx = 0;
|
||||
if (ls.length >= orNum) {
|
||||
digit = ls.length - orNum;
|
||||
first = (halfNum - digit) + halfNum;
|
||||
}
|
||||
|
||||
for (let y = 0; y < showOrder; y++) {
|
||||
if (first == 0) {
|
||||
list.push(orInfo);
|
||||
swiperCurrent = y;
|
||||
first = first - 1;
|
||||
} else if (first > 0) {
|
||||
list.push(ls[orNum - first]);
|
||||
first = first - 1;
|
||||
} else {
|
||||
if (cunIdx == 0) {
|
||||
list.push(ls[orNum]);
|
||||
cunIdx = cunIdx + 1;
|
||||
} else {
|
||||
console.log(orNum + cunIdx, "orNum + cunIdx]")
|
||||
list.push(ls[orNum + cunIdx]);
|
||||
cunIdx = cunIdx + 1;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
} else if (orNum > halfNum) {
|
||||
|
||||
let first = halfNum;
|
||||
// let after = halfNum;
|
||||
let cunIdx = 0;
|
||||
for (let y = 0; y < showOrder; y++) {
|
||||
if (first == 0) {
|
||||
list.push(orInfo);
|
||||
swiperCurrent = y;
|
||||
first = first - 1;
|
||||
} else if (first > 0) {
|
||||
list.push(ls[orNum - first]);
|
||||
first = first - 1;
|
||||
} else {
|
||||
if (cunIdx == 0) {
|
||||
list.push(ls[orNum]);
|
||||
cunIdx = cunIdx + 1;
|
||||
} else {
|
||||
list.push(ls[orNum + cunIdx]);
|
||||
cunIdx = cunIdx + 1;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
} else {
|
||||
|
||||
for (let y = 0; y < showOrder; y++) {
|
||||
if (sum == y) {
|
||||
list.push(orInfo);
|
||||
swiperCurrent = y;
|
||||
} else {
|
||||
list.push(ls[y])
|
||||
}
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
this.setData({
|
||||
swiperList: list,
|
||||
swiperCurrent
|
||||
})
|
||||
},
|
||||
// 处理弹框的集数
|
||||
async handelOrder(infoObj) {
|
||||
const paramenter = {
|
||||
@ -132,44 +42,82 @@ Page({
|
||||
body: {
|
||||
sid: infoObj.sid,
|
||||
start: 1,
|
||||
end: infoObj.total.length
|
||||
end: infoObj.total
|
||||
}
|
||||
}
|
||||
const isBatchlist = await httpRequest(paramenter);
|
||||
console.log(isBatchlist, "isBatchlist")
|
||||
const num = 2;
|
||||
const num = 30;
|
||||
let remain = 0;
|
||||
let temp = [];
|
||||
const mlist = [];
|
||||
// if (Array.isArray(isBatchlist.data)) {
|
||||
// vls.forEach((m, idx) => {
|
||||
// if ((num * remain + num) < (idx + 1)) {
|
||||
// remain += 1;
|
||||
// temp = [];
|
||||
// }
|
||||
// temp.push(m);
|
||||
// let obj = {
|
||||
// firstNum: num * remain + 1,
|
||||
// lastNum: idx + 1,
|
||||
// title: `${num * remain + 1}-${idx + 1}`,
|
||||
// temp: [...temp],
|
||||
// }
|
||||
// mlist[remain] = obj;
|
||||
// });
|
||||
let orderObj = {};
|
||||
if (Array.isArray(isBatchlist.data)) {
|
||||
isBatchlist.data.forEach((m, idx) => {
|
||||
if ((num * remain + num) < m.order) {
|
||||
remain += 1;
|
||||
temp = [];
|
||||
}
|
||||
temp.push(m);
|
||||
orderObj[remain] = {
|
||||
firstNum: num * remain + 1,
|
||||
lastNum: m.order,
|
||||
title: `${num * remain + 1}-${m.order}`,
|
||||
temp: temp
|
||||
}
|
||||
});
|
||||
|
||||
// this.setData({
|
||||
// orderList: mlist
|
||||
// })
|
||||
// }
|
||||
Object.keys(orderObj).map((m) => {
|
||||
mlist.push(orderObj[m]);
|
||||
})
|
||||
this.setData({
|
||||
orderList: mlist,
|
||||
batchAllOrder: isBatchlist.data.length,
|
||||
batchAllList: isBatchlist.data,
|
||||
})
|
||||
}
|
||||
},
|
||||
|
||||
handelOrderIsVip(resData) {
|
||||
const orderList = this.data.orderList;
|
||||
const batchAllList = this.data.batchAllList;
|
||||
// swiperList.splice(current, 1, resData);
|
||||
if (resData.chackpay == 1) {
|
||||
const ols = [];
|
||||
orderList.forEach((j) => {
|
||||
let jb = {
|
||||
...j
|
||||
}
|
||||
const yus = [];
|
||||
j.temp.forEach((y) => {
|
||||
let yobj = {
|
||||
...y,
|
||||
}
|
||||
if (yobj.id == resData.id) {
|
||||
yobj.isvip = 0;
|
||||
}
|
||||
yus.push(yobj);
|
||||
})
|
||||
jb.temp = yus;
|
||||
ols.push(jb);
|
||||
})
|
||||
let temp = [...batchAllList];
|
||||
temp[resData.order - 1].isvip = 0;
|
||||
this.setData({
|
||||
batchAllList: temp
|
||||
})
|
||||
|
||||
return ols;
|
||||
}
|
||||
return orderList;
|
||||
},
|
||||
|
||||
// 获取 剧情
|
||||
async isIosPaymentFn(sid) {
|
||||
const paramenter = {
|
||||
path: '/iosPayment',
|
||||
method: 'GET',
|
||||
}
|
||||
const iosPayment = await httpRequest(paramenter);
|
||||
async isVideoPaymentFn(sid) {
|
||||
// const paramenter = {
|
||||
// path: '/iosPayment',
|
||||
// method: 'GET',
|
||||
// }
|
||||
// const iosPayment = await httpRequest(paramenter);
|
||||
// console.log(iosPayment, "iosPayment")
|
||||
const paramVideo = {
|
||||
path: '/videoread',
|
||||
@ -180,56 +128,223 @@ Page({
|
||||
}
|
||||
|
||||
const videoRead = await httpRequest(paramVideo);
|
||||
console.log(videoRead, "videoRead")
|
||||
// console.log(videoRead, "videoRead")
|
||||
|
||||
if (Array.isArray(videoRead.data)) {
|
||||
|
||||
const videoInfoObj = videoRead.data[0];
|
||||
const swiperList = Array.from({ length: videoInfoObj.total }, (v, k) => k + 1);
|
||||
// const swiperList = Array.from({ length: videoInfoObj.total }, (v, k) => {
|
||||
// if (videoInfoObj.order == k + 1) {
|
||||
// return {
|
||||
// ...videoInfoObj,
|
||||
// }
|
||||
// }
|
||||
// return { order: k + 1 }
|
||||
// });
|
||||
// console.log(swiperList, "swiperList")
|
||||
this.isSwiperListFn(videoInfoObj.order, swiperList, videoInfoObj);
|
||||
this.handelOrder(videoInfoObj);
|
||||
this.setData({
|
||||
iosPayment: iosPayment,
|
||||
swiperOrder: videoInfoObj.order,
|
||||
// swiperList: swiperList
|
||||
videoInfoObj: videoInfoObj
|
||||
// iosPayment: iosPayment,
|
||||
// swiperOrder: videoInfoObj.order,
|
||||
// swiperList: swiperList,
|
||||
videoInfoObj: videoInfoObj,
|
||||
// swiperCurrent: videoInfoObj.order - 1,
|
||||
posterCover: videoInfoObj.videocover || videoInfoObj.cover
|
||||
})
|
||||
|
||||
this.handelOrder(videoInfoObj);
|
||||
|
||||
my.setNavigationBar({
|
||||
title: videoInfoObj.title,
|
||||
});
|
||||
|
||||
}
|
||||
|
||||
},
|
||||
|
||||
toPathPlayAllOrder() {
|
||||
|
||||
const videoInfoObj = this.data.videoInfoObj;
|
||||
const sid = this.data.sid;
|
||||
|
||||
const paramVideo = {
|
||||
path: '/buyall',
|
||||
method: 'POST',
|
||||
body: {
|
||||
sid: sid,
|
||||
id: videoInfoObj.id,
|
||||
allprice: videoInfoObj.allprice
|
||||
},
|
||||
errObj: {
|
||||
2: {
|
||||
showToastFlag: true
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
httpRequest(paramVideo).then(res => {
|
||||
if (res.status == 1) {
|
||||
my.showToast({
|
||||
type: 'none',
|
||||
content: res.msg || '购买成功',
|
||||
duration: 1000,
|
||||
})
|
||||
this.isVideoPaymentFn(sid);
|
||||
}
|
||||
}).catch(err => {
|
||||
if (err.status == 2) {
|
||||
my.confirm({
|
||||
title: '温馨提示',
|
||||
content: err.msg,
|
||||
confirmButtonText: '去充值',
|
||||
cancelButtonText: '取消',
|
||||
success: (result) => {
|
||||
if (result.confirm) {
|
||||
this.setData({
|
||||
popupShow: true,
|
||||
})
|
||||
}
|
||||
},
|
||||
});
|
||||
}
|
||||
})
|
||||
},
|
||||
|
||||
// handelswiperCurrent(ev) {
|
||||
// const current = ev.detail.current;
|
||||
// const swiperCurrent = this.data.swiperCurrent;
|
||||
// const videoInfoObj = this.data.videoInfoObj;
|
||||
// const sid = this.data.sid;
|
||||
// const swiperList = this.data.swiperList;
|
||||
// let id = '';
|
||||
// if (current > swiperCurrent) {
|
||||
// id = videoInfoObj.nextid;
|
||||
// } else {
|
||||
// id = videoInfoObj.lastid;
|
||||
// }
|
||||
// const paramVideo = {
|
||||
// path: '/videoread',
|
||||
// method: 'POST',
|
||||
// body: {
|
||||
// sid: sid,
|
||||
// id: id
|
||||
// }
|
||||
// }
|
||||
|
||||
// httpRequest(paramVideo).then(res => {
|
||||
// // swiperList.map()
|
||||
// const resData = res.data[0]
|
||||
// swiperList.splice(current, 1, resData);
|
||||
|
||||
// this.setData({
|
||||
// swiperList: swiperList,
|
||||
// swiperCurrent: current,
|
||||
// videoInfoObj: resData,
|
||||
// swiperOrder: resData.order
|
||||
// })
|
||||
// })
|
||||
// },
|
||||
|
||||
videoErrorFn(e) {
|
||||
console.log(e, "eee")
|
||||
},
|
||||
|
||||
videoEndedFn() {
|
||||
const videoInfoObj = this.data.videoInfoObj;
|
||||
const sid = this.data.sid;
|
||||
// const swiperList = this.data.swiperList;
|
||||
const id = videoInfoObj.nextid;
|
||||
// const current = videoInfoObj.order;
|
||||
const paramVideo = {
|
||||
path: '/videoread',
|
||||
method: 'POST',
|
||||
body: {
|
||||
sid: sid,
|
||||
id: id
|
||||
}
|
||||
}
|
||||
|
||||
httpRequest(paramVideo).then(res => {
|
||||
// swiperList.map()
|
||||
const resData = res.data[0];
|
||||
const ols = this.handelOrderIsVip(resData);
|
||||
// swiperList.splice(current, 1, resData);
|
||||
this.setData({
|
||||
// swiperList: swiperList,
|
||||
// swiperCurrent: current,
|
||||
videoInfoObj: resData,
|
||||
orderList: ols,
|
||||
// swiperOrder: resData.order
|
||||
})
|
||||
})
|
||||
},
|
||||
|
||||
//显示 选择集数
|
||||
selectEpisodesFn() {
|
||||
this.setData({
|
||||
orderPopupShow: true
|
||||
})
|
||||
},
|
||||
|
||||
// 关闭 选择集数
|
||||
closeOrderPopup() {
|
||||
this.setData({
|
||||
orderPopupShow: false
|
||||
})
|
||||
},
|
||||
|
||||
// 切换 级数的
|
||||
handleTabClick(e) {
|
||||
handleTabClick(ev) {
|
||||
// console.log(e, "handleTabClickhandleTabClick")
|
||||
this.setData({
|
||||
activeTab: e.index
|
||||
activeTab: ev.index
|
||||
})
|
||||
|
||||
},
|
||||
handleOrderCurrent(e) {
|
||||
console.log(e, "handleOrderCurrent");
|
||||
|
||||
handleOrderCurrent(ev) {
|
||||
const item = ev.target.dataset.item;
|
||||
// const orderList = this.data.orderList;
|
||||
// const batchAllOrder = this.data.batchAllOrder;
|
||||
const batchAllList = this.data.batchAllList;
|
||||
if (item.order != 1) {
|
||||
const nextVideoObj = batchAllList[item.order - 2];
|
||||
if (nextVideoObj.isvip == 1) {
|
||||
my.showToast({
|
||||
type: 'info',
|
||||
content: '为了保证剧情连贯,请按顺序观看'
|
||||
})
|
||||
return;
|
||||
}
|
||||
}
|
||||
// const current = item.order - 1;
|
||||
const sid = this.data.sid;
|
||||
// const swiperList = this.data.swiperList;
|
||||
const paramVideo = {
|
||||
path: '/videoread',
|
||||
method: 'POST',
|
||||
body: {
|
||||
sid: sid,
|
||||
id: item.id
|
||||
}
|
||||
}
|
||||
|
||||
httpRequest(paramVideo).then(res => {
|
||||
// swiperList.map()
|
||||
const resData = res.data[0];
|
||||
const ols = this.handelOrderIsVip(resData);
|
||||
this.setData({
|
||||
// swiperList: swiperList,
|
||||
// swiperCurrent: current,
|
||||
videoInfoObj: resData,
|
||||
// swiperOrder: resData.order,
|
||||
orderPopupShow: false,
|
||||
orderList: ols
|
||||
})
|
||||
})
|
||||
},
|
||||
|
||||
onLoad(query) {
|
||||
const sid = query.sid;
|
||||
|
||||
this.setData({
|
||||
sid: sid
|
||||
})
|
||||
@ -238,16 +353,47 @@ Page({
|
||||
onShow() {
|
||||
const sid = this.data.sid;
|
||||
this.isOtherFn();
|
||||
this.isIosPaymentFn(sid);
|
||||
console.log("--------------")
|
||||
this.isVideoPaymentFn(sid);
|
||||
},
|
||||
|
||||
// 不追剧
|
||||
// noChasingDramasFn() {
|
||||
// this.setData({
|
||||
// chasingDramasShow: false
|
||||
// })
|
||||
// },
|
||||
toPathPlayPage() {
|
||||
// my.navigateTo({
|
||||
// url: '/pages/recharge/recharge'
|
||||
// });
|
||||
this.setData({
|
||||
popupShow: true,
|
||||
})
|
||||
},
|
||||
|
||||
onClosePopup(mi) {
|
||||
const videoInfoObj = this.data.videoInfoObj;
|
||||
if (mi.resultCode == 9000 && videoInfoObj.chackpay == 2) {
|
||||
const sid = this.data.sid;
|
||||
const paramVideo = {
|
||||
path: '/videoread',
|
||||
method: 'POST',
|
||||
body: {
|
||||
sid: sid,
|
||||
id: videoInfoObj.id
|
||||
}
|
||||
}
|
||||
|
||||
httpRequest(paramVideo).then(res => {
|
||||
const resData = res.data[0];
|
||||
const ols = this.handelOrderIsVip(resData);
|
||||
this.setData({
|
||||
popupShow: false,
|
||||
videoInfoObj: resData,
|
||||
orderList: ols
|
||||
})
|
||||
})
|
||||
|
||||
} else {
|
||||
this.setData({
|
||||
popupShow: false,
|
||||
})
|
||||
}
|
||||
},
|
||||
// 添加追剧
|
||||
addChasingDramasFn() {
|
||||
const videoInfoObj = this.data.videoInfoObj;
|
||||
@ -284,7 +430,7 @@ Page({
|
||||
}
|
||||
httpRequest(paramenter).then(() => {
|
||||
my.showToast({
|
||||
icon: 'none',
|
||||
type: 'none',
|
||||
content: '取消成功',
|
||||
duration: 1000,
|
||||
});
|
||||
@ -298,8 +444,5 @@ Page({
|
||||
|
||||
}
|
||||
|
||||
// this.setData({
|
||||
// chasDraIconColor: '#FF2B2B'
|
||||
// })
|
||||
},
|
||||
})
|
@ -8,6 +8,7 @@
|
||||
"modal": "mini-antui/es/modal/index",
|
||||
"popup": "mini-antui/es/popup/index",
|
||||
"tabs": "mini-antui/es/tabs/index",
|
||||
"tab-content": "mini-antui/es/tabs/tab-content/index"
|
||||
"tab-content": "mini-antui/es/tabs/tab-content/index",
|
||||
"my-pay": "/components/myPay/myPay"
|
||||
}
|
||||
}
|
@ -1,33 +0,0 @@
|
||||
page {
|
||||
width: 100%;
|
||||
height: 100%;
|
||||
}
|
||||
|
||||
._wxkf_html {
|
||||
display: flex;
|
||||
justify-content: center;
|
||||
align-items: center;
|
||||
width: 100%;
|
||||
height: 100%;
|
||||
}
|
||||
|
||||
._wxkf_page_body {
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
justify-content: center;
|
||||
align-items: center;
|
||||
width: 100%;
|
||||
height: 100vh;
|
||||
}
|
||||
|
||||
._wxkf_image_bx {
|
||||
width: 520rpx;
|
||||
height: 520rpx;
|
||||
}
|
||||
|
||||
._wxkf_tips_t > text {
|
||||
line-height: 1;
|
||||
font-size: 50rpx;
|
||||
color: #333;
|
||||
font-weight: 500;
|
||||
}
|
@ -1,13 +0,0 @@
|
||||
<view class="_wxkf_html">
|
||||
<view class="_wxkf_page_body">
|
||||
<view class="_wxkf_image_bx">
|
||||
<image mode="scaleToFill" src="{{kfImg}}" class="_is_image" />
|
||||
</view>
|
||||
<view class="_wxkf_tips_t mt-50">
|
||||
<text>长按识别二维码</text>
|
||||
</view>
|
||||
<view class="_wxkf_tips_t mt-50">
|
||||
<text>添加客服</text>
|
||||
</view>
|
||||
</view>
|
||||
</view>
|
@ -1,25 +0,0 @@
|
||||
const { httpRequest } = getApp();
|
||||
|
||||
Page({
|
||||
data: {
|
||||
kfImg: ''
|
||||
},
|
||||
onShow() {
|
||||
this.getkefu();
|
||||
},
|
||||
getkefu() {
|
||||
const paramenter = {
|
||||
path: '/getkefu',
|
||||
method: 'GET',
|
||||
}
|
||||
httpRequest(paramenter).then(res => {
|
||||
console.log(res, "getkefu")
|
||||
if (res.status == 1) {
|
||||
const { data } = res;
|
||||
this.setData({
|
||||
kfImg: data.wxkf,
|
||||
})
|
||||
}
|
||||
})
|
||||
}
|
||||
})
|
@ -1 +0,0 @@
|
||||
{}
|
@ -6,7 +6,7 @@ cloud.init({
|
||||
env: 'test'
|
||||
});
|
||||
|
||||
const httpRequest = async ({ path, method = 'GET', params = {}, body = {}, exts = {} }) => {
|
||||
const httpRequest = async ({ path, method = 'GET', params = {}, body = {}, exts = {}, errObj = {} }) => {
|
||||
|
||||
const dataUid = my.getStorageSync({ key: 'uid' }).data;
|
||||
let isBody = {};
|
||||
@ -51,24 +51,27 @@ const httpRequest = async ({ path, method = 'GET', params = {}, body = {}, exts
|
||||
...exts,
|
||||
}
|
||||
});
|
||||
// console.log(JSON.stringify(result),"JSON.stringify(resul")
|
||||
// console.log(JSON.stringify(result), "JSON.stringify(resul")
|
||||
if (JSON.stringify(result) != '{}' && result) {
|
||||
const isResult = JSON.parse(result);
|
||||
if (isResult.status == 1) {
|
||||
return isResult;
|
||||
}
|
||||
if (isResult.status == 2) {
|
||||
my.showToast({
|
||||
content: isResult.msg,
|
||||
duration: 3000,
|
||||
});
|
||||
if (!errObj[isResult.status].showToastFlag) {
|
||||
my.showToast({
|
||||
content: isResult.msg,
|
||||
duration: 3000,
|
||||
});
|
||||
}
|
||||
|
||||
return Promise.reject(isResult);
|
||||
}
|
||||
}
|
||||
return result;
|
||||
// console.log(JSON.stringify(result));
|
||||
} catch (err) {
|
||||
|
||||
|
||||
console.log(err, 'httpRequest_err')
|
||||
}
|
||||
};
|
||||
|
Loading…
x
Reference in New Issue
Block a user