This commit is contained in:
lipenggao 2024-07-12 15:57:54 +08:00
parent ec93571fd0
commit 2a2819e1ca
13 changed files with 106 additions and 39 deletions

View File

@ -15,7 +15,7 @@
"window": { "window": {
"backgroundTextStyle": "light", "backgroundTextStyle": "light",
"navigationBarBackgroundColor": "#080B16", "navigationBarBackgroundColor": "#080B16",
"navigationBarTitleText": "初晴剧场", "navigationBarTitleText": "古言剧场",
"navigationBarTextStyle": "white" "navigationBarTextStyle": "white"
}, },
"tabBar": { "tabBar": {

View File

@ -5,8 +5,8 @@ Page({
moneyLogList: [], moneyLogList: [],
moneyFlag: false moneyFlag: false
}, },
onLoad(options) { onLoad() {
// options
}, },
onShow() { onShow() {
httpRequest('/moneylog', 'POST').then((res: any) => { httpRequest('/moneylog', 'POST').then((res: any) => {

View File

@ -3,8 +3,8 @@
<view class="_consumption_content"> <view class="_consumption_content">
<view class="_consumption_c_list"> <view class="_consumption_c_list">
<block tt:for="{{moneyLogList}}"> <block tt:for="{{moneyLogList}}">
<view class="_consumption_c_li_item" tt:key="{{item.id}}" data-sid="{{item.articleid}}" data-id="{{item.chapterid}}" <view class="_consumption_c_li_item" tt:key="{{item.id}}" data-sid="{{item.articleid}}"
catchtap="toPathVideo"> data-id="{{item.chapterid}}" catchtap="toPathVideo">
<view class="_consumption_c_li_it_left"> <view class="_consumption_c_li_it_left">
<view class="_consumption_c_li_it_le_cover"> <view class="_consumption_c_li_it_le_cover">
<image src="{{item.cover}}" class="__cum_img" mode="aspectFill"></image> <image src="{{item.cover}}" class="__cum_img" mode="aspectFill"></image>
@ -24,8 +24,8 @@
<text <text
class="_consumption_c_li_it_r_t_de_text">话费{{item.price}}K币购买{{item.chaptername}}</text> class="_consumption_c_li_it_r_t_de_text">话费{{item.price}}K币购买{{item.chaptername}}</text>
</view> </view>
<view class="_consumption_c_li_it_r_t_btn" data-sid="{{item.articleid}}" data-id="{{item.chapterid}}" <view class="_consumption_c_li_it_r_t_btn" data-sid="{{item.articleid}}"
catchtap="toPathVideo"> data-id="{{item.chapterid}}" catchtap="toPathVideo">
<text class="_consumption_c_li_it_r_t_bt_text">继续观看</text> <text class="_consumption_c_li_it_r_t_bt_text">继续观看</text>
</view> </view>
</view> </view>
@ -36,7 +36,7 @@
</view> </view>
</block> </block>
<block> <block tt:else>
<view class="_consumption_empty"> <view class="_consumption_empty">
<view class="_consumption_em_img"> <view class="_consumption_em_img">
<image src="/static/cum_empry.png" class="__wa_img_no_radius"></image> <image src="/static/cum_empry.png" class="__wa_img_no_radius"></image>

View File

@ -27,7 +27,7 @@
</block> </block>
</view> </view>
</view> </view>
<view class="_home_modul_1"> <view class="_home_modul_1" tt:if="{{boutique.length}}">
<view class="_mo_1_header"> <view class="_mo_1_header">
<view class="_mo_1_hea_title">最新短剧</view> <view class="_mo_1_hea_title">最新短剧</view>
</view> </view>
@ -79,7 +79,7 @@
</scroll-view> </scroll-view>
</view> </view>
<view class="_home_modul_3"> <view class="_home_modul_3" tt:if="{{optimalSelection.length}}">
<view class="_mo_3_header"> <view class="_mo_3_header">
<view class="_mo_3_hea_title">热播短剧</view> <view class="_mo_3_hea_title">热播短剧</view>
</view> </view>
@ -111,7 +111,7 @@
</view> </view>
</view> </view>
<view class="_home_modul_4"> <view class="_home_modul_4" tt:if="{{classical.length}}">
<view class="_mo_4_header"> <view class="_mo_4_header">
<view class="_mo_4_hea_title">更多热剧</view> <view class="_mo_4_hea_title">更多热剧</view>
</view> </view>
@ -137,7 +137,7 @@
<view class="_mo_4_con_li_it_wa_in_title"> <view class="_mo_4_con_li_it_wa_in_title">
<text class="_mo_4_con_li_it_wa_in_ti_text">{{item.name}}</text> <text class="_mo_4_con_li_it_wa_in_ti_text">{{item.name}}</text>
</view> </view>
<view class="_mo_4_con_li_it_wa_in_description"> <view class="_mo_4_con_li_it_wa_in_description" tt:if="{{item.description}}">
<text class="_mo_4_con_li_it_wa_in_des_text">{{item.description}}</text> <text class="_mo_4_con_li_it_wa_in_des_text">{{item.description}}</text>
</view> </view>
</view> </view>
@ -148,7 +148,7 @@
</view> </view>
</view> </view>
<view class="_home_modul_5"> <view class="_home_modul_5" tt:if="{{newModule.length}}">
<view class="_mo_5_header"> <view class="_mo_5_header">
<view class="_mo_5_hea_title">更多好剧</view> <view class="_mo_5_hea_title">更多好剧</view>
</view> </view>
@ -177,15 +177,7 @@
</view> </view>
</view> </view>
<view class="_mo_5_con_li_it_ri_button"> <view class="_mo_5_con_li_it_ri_button">
<block tt:if="{{item.bookcase == 0}}"> <block tt:if="{{item.bookcase == 1}}">
<view class="_mo_5_con_li_it_ri_btn_warp" catchtap="addkeep" data-sid="{{item.id}}">
<text class="_mo_5_con_li_it_ri_btn_wa_text">订阅</text>
<view class="_mo_5_con_li_it_ri_btn_wa_icon">
<image src="/static/subscribe.png" class="__wa_img"></image>
</view>
</view>
</block>
<block tt:else>
<view class="_mo_5_con_li_it_ri_btn_wa_no" catchtap="chasingdramadel" <view class="_mo_5_con_li_it_ri_btn_wa_no" catchtap="chasingdramadel"
data-sid="{{item.id}}"> data-sid="{{item.id}}">
<text class="_mo_5_con_li_it_ri_btn_wa_no_text">已订阅</text> <text class="_mo_5_con_li_it_ri_btn_wa_no_text">已订阅</text>
@ -194,6 +186,14 @@
</view> </view>
</view> </view>
</block> </block>
<block tt:else>
<view class="_mo_5_con_li_it_ri_btn_warp" catchtap="addkeep" data-sid="{{item.id}}">
<text class="_mo_5_con_li_it_ri_btn_wa_text">订阅</text>
<view class="_mo_5_con_li_it_ri_btn_wa_icon">
<image src="/static/subscribe.png" class="__wa_img"></image>
</view>
</view>
</block>
</view> </view>
</view> </view>
</view> </view>

View File

@ -73,6 +73,11 @@
<text class="_pay_b_to_u_b_it_con_pr_symbol">¥</text> <text class="_pay_b_to_u_b_it_con_pr_symbol">¥</text>
<text class="_pay_b_to_u_b_it_con_pr_num">{{item.price}}</text> <text class="_pay_b_to_u_b_it_con_pr_num">{{item.price}}</text>
</view> </view>
<!-- tt:if="{{ item.egold || item.giveegold}}" -->
<view class="_pay_b_to_u_b_it_con_curr" >
<text class="_pay_b_to_u_b_it_con_cur_text" tt:if="{{item.egold}}">{{item.egold}}K币</text>
<text class="_pay_b_to_u_b_it_con_cur_text" tt:if="{{item.giveegold}}">+{{item.giveegold}}K币</text>
</view>
</view> </view>
</view> </view>
</view> </view>
@ -136,14 +141,14 @@
</view> </view>
<text class="_pay_notice_item_text">4、充值看点一般在10分钟内到账如未到账请点击页面客服按钮联系客服</text> <text class="_pay_notice_item_text">4、充值看点一般在10分钟内到账如未到账请点击页面客服按钮联系客服</text>
</view> </view>
</view>
<view class="_pay_b_footer">
<view class="_pay_b_foo_bug_btn" bindtap="handelRechargeNow">
<text class="_pay_b_foo_bug_bt_text">立即购买</text>
</view>
</view>
</view> </view>
<view class="_pay_b_footer">
<view class="_pay_b_foo_bug_btn" bindtap="handelRechargeNow">
<text class="_pay_b_foo_bug_bt_text">立即购买</text>
</view>
</view>
<customer-service bottom="{{200}}" /> <customer-service bottom="{{200}}" />
</view> </view>

View File

@ -186,9 +186,15 @@
align-items: center; align-items: center;
width: 100%; width: 100%;
height: 56rpx; height: 56rpx;
padding: 0 20rpx;
} }
._pay_b_to_u_b_it_con_da_text { ._pay_b_to_u_b_it_con_da_text {
display: inline-block;
width: 100%;
text-overflow: ellipsis;
overflow: hidden;
white-space: nowrap;
line-height: 1; line-height: 1;
font-size: 28rpx; font-size: 28rpx;
color: #999999; color: #999999;
@ -197,6 +203,7 @@
._pay_b_to_u_b_it_con_price { ._pay_b_to_u_b_it_con_price {
flex: 1; flex: 1;
display: flex; display: flex;
flex-direction: column;
justify-content: center; justify-content: center;
align-items: center; align-items: center;
line-height: 1 line-height: 1
@ -218,6 +225,16 @@
font-weight: 600; font-weight: 600;
} }
._pay_b_to_u_b_it_con_curr {
display: flex;
margin-top: 20rpx;
}
._pay_b_to_u_b_it_con_cur_text {
font-size: 22rpx;
color: #999999;
}
._pay_b_to_u_b_it_content._acv_bg_it { ._pay_b_to_u_b_it_content._acv_bg_it {
border-color: #5BBE04; border-color: #5BBE04;
background-color: rgba(91, 190, 4, 0.20); background-color: rgba(91, 190, 4, 0.20);
@ -239,6 +256,10 @@
color: #5BBE04; color: #5BBE04;
} }
._acv_bg_it ._pay_b_to_u_b_it_con_cur_text {
color: #5BBE04;
}
._pay_b_privilege { ._pay_b_privilege {
width: 100%; width: 100%;
padding-left: 32rpx; padding-left: 32rpx;

View File

@ -8,8 +8,8 @@ Page({
module1: [], module1: [],
module2: [] module2: []
}, },
onLoad(options) { onLoad() {
// options
}, },
onShow() { onShow() {
httpRequest('/top', 'POST').then((res: any) => { httpRequest('/top', 'POST').then((res: any) => {
@ -33,7 +33,6 @@ Page({
handelSortTap(ev: any) { handelSortTap(ev: any) {
const datasetcCtegoryid = ev.currentTarget.dataset.categoryid; const datasetcCtegoryid = ev.currentTarget.dataset.categoryid;
const categoryid = this.data.categoryid; const categoryid = this.data.categoryid;
console.log(datasetcCtegoryid, categoryid)
if (categoryid != datasetcCtegoryid) { if (categoryid != datasetcCtegoryid) {
httpRequest('/top', 'POST', { categoryid: datasetcCtegoryid }).then((res: any) => { httpRequest('/top', 'POST', { categoryid: datasetcCtegoryid }).then((res: any) => {
if (res.status == 1) { if (res.status == 1) {

View File

@ -72,7 +72,7 @@ Page({
let nextbatchList = []; let nextbatchList = [];
const nextbatchRes: any = await httpRequest('/nextbatch', 'POST', params); const nextbatchRes: any = await httpRequest('/nextbatch', 'POST', params);
if (nextbatchRes.status == 1 && Array.isArray(nextbatchRes.data)) { if (nextbatchRes?.status == 1 && Array.isArray(nextbatchRes?.data)) {
nextbatchList = nextbatchRes.data; nextbatchList = nextbatchRes.data;
} }
@ -367,7 +367,7 @@ Page({
title: `广告加载中...`, title: `广告加载中...`,
}); });
adBanner = tt.createRewardedVideoAd({ adBanner = tt.createRewardedVideoAd({
adUnitId: "82jc4t11786rd3thuq", adUnitId: "wh0y4vcxsbk7ixwktg",
}); });
adBanner.show().then((res: any) => { adBanner.show().then((res: any) => {
console.log("视频广告展示"); console.log("视频广告展示");
@ -465,5 +465,10 @@ Page({
this.setData({ this.setData({
unlockFlag: false unlockFlag: false
}) })
},
showUnlockFlag() {
this.setData({
unlockFlag: true
})
} }
}) })

View File

@ -96,6 +96,11 @@
</view> </view>
</view> </view>
</view> </view>
<view class="_k_l_unlo_mask" tt:else>
<view catchtap="showUnlockFlag" >
<text class="_k_ll_show_un_text">点击屏蔽再次解锁</text>
</view>
</view>
</view> </view>
</block> </block>
<view class="_m_v_w_v_operate_l"> <view class="_m_v_w_v_operate_l">

View File

@ -512,3 +512,8 @@ page {
white-space: nowrap; white-space: nowrap;
text-overflow: ellipsis; text-overflow: ellipsis;
} }
._k_ll_show_un_text {
font-size: 26rpx;
color: #fff;
}

View File

@ -1 +1,18 @@
{"setting":{"urlCheck":true,"es6":true,"postcss":true,"minified":true,"newFeature":true,"autoCompile":true,"compileHotReLoad":true,"nativeCompile":true,"useCompilerPlugins":["typescript"]},"appid":"tt216c57d1be50cc7b01","projectname":"初晴剧场","douyinProjectType":"native"} {
"setting": {
"urlCheck": true,
"es6": true,
"postcss": true,
"minified": true,
"newFeature": true,
"autoCompile": true,
"compileHotReLoad": true,
"nativeCompile": true,
"useCompilerPlugins": [
"typescript"
]
},
"appid": "tte8719ecc7742e53d01",
"projectname": "初晴剧场",
"douyinProjectType": "native"
}

View File

@ -1,2 +1,2 @@
// export const basUrl = 'https://dymgjcweb.qinjiu8.com' // export const basUrl = 'https://dymgjcweb.qinjiu8.com'
export const basUrl = 'https://dycqjcweb.jiulingliu.cn' export const basUrl = 'https://dybxjcapi.jiulingliu.cn'

View File

@ -21,8 +21,18 @@ export const httpRequest = (url: string, method: any = 'GET', data: any = {}, he
...data, ...data,
}, },
header: header, header: header,
success: (res) => { success: (res: any) => {
resolve(res.data) console.log(res,"pppppppp")
if (res.data.status == 1) {
resolve(res.data);
} else {
tt.showToast({
title: res.data.msg || '请求失败',
icon: 'none'
});
resolve(res.data);
}
}, },
fail: (err) => { fail: (err) => {
reject(err) reject(err)