Commit a9580391 authored by mengcuiguang's avatar mengcuiguang

代码优化

parent 2b7150a6
...@@ -10,7 +10,7 @@ ...@@ -10,7 +10,7 @@
<view class="content"> <view class="content">
<text class="title">恭喜你,获得免费看剧名额</text> <text class="title">恭喜你,获得免费看剧名额</text>
<text class="button" @click="handleClose">看视频免费解锁1集</text> <text class="button" @click="handleClose">看视频免费解锁1集</text>
<text class="downtext">{{countDown}}s后自动进入广告,观看完成解锁第{{vedioIndex+1}}集剧情</text> <text class="downtext">{{countDown}}s后自动进入广告,阅读完成解锁第{{vedioIndex+1}}集剧情</text>
</view> </view>
</view> </view>
</uni-popup> </uni-popup>
......
...@@ -7,9 +7,9 @@ ...@@ -7,9 +7,9 @@
style="width: 100%;height: 100%;background-color: black;opacity: 0.8;display: flex;position: absolute;z-index: 100;color: white;flex-direction: column;align-items: center;padding:40rpx 0;"> style="width: 100%;height: 100%;background-color: black;opacity: 0.8;display: flex;position: absolute;z-index: 100;color: white;flex-direction: column;align-items: center;padding:40rpx 0;">
<text style="font-size: 30rpx;"> <text style="font-size: 30rpx;">
付费须知 \n 付费须知 \n
1、看点和会员属于虚拟商品,一经购买不可退换 \n 1、书豆和会员属于虚拟商品,一经购买不可退换 \n
2、未满18岁的未成年人需要在监护人主导、同意下进行相关付费操作;\n 2、未满18岁的未成年人需要在监护人主导、同意下进行相关付费操作;\n
3、充值看点一般5分钟内到账,如未到账请在“我的”页面联系客服; 3、充值书豆一般5分钟内到账,如未到账请在“我的”页面联系客服;
</text> </text>
<image @click="agreeFlag=false" style="width: 30rpx;height: 30rpx;margin-top:150rpx;" <image @click="agreeFlag=false" style="width: 30rpx;height: 30rpx;margin-top:150rpx;"
src="@/static/index/ic_quit_white.png"></image> src="@/static/index/ic_quit_white.png"></image>
...@@ -32,7 +32,7 @@ ...@@ -32,7 +32,7 @@
<view style="font-size: 28rpx;color: #644238;margin-top: 12rpx;">解锁本集:</view> <view style="font-size: 28rpx;color: #644238;margin-top: 12rpx;">解锁本集:</view>
<view style="font-size: 42rpx;color: red;font-weight: 777;">{{point}}</view> <view style="font-size: 42rpx;color: red;font-weight: 777;">{{point}}</view>
<view style="font-size: 28rpx;color: #644238;margin-top: 12rpx;margin-left: 6rpx;"> <view style="font-size: 28rpx;color: #644238;margin-top: 12rpx;margin-left: 6rpx;">
看点 书豆
</view> </view>
</view> </view>
<view v-if="point>0" style="width: 60rpx;"></view> <view v-if="point>0" style="width: 60rpx;"></view>
...@@ -41,7 +41,7 @@ ...@@ -41,7 +41,7 @@
<view style="font-size: 42rpx;color: red;font-weight: 777;">{{userBean.point}} <view style="font-size: 42rpx;color: red;font-weight: 777;">{{userBean.point}}
</view> </view>
<view style="font-size: 28rpx;color: #644238;margin-top: 12rpx;margin-left: 6rpx;"> <view style="font-size: 28rpx;color: #644238;margin-top: 12rpx;margin-left: 6rpx;">
看点 书豆
</view> </view>
</view> </view>
</view> </view>
...@@ -123,7 +123,7 @@ ...@@ -123,7 +123,7 @@
agreeFlag: false, agreeFlag: false,
userBean: {}, userBean: {},
os: 'android', os: 'android',
titleText: '超多精彩好剧一键解锁', titleText: '超多精彩小说一键解锁',
showClone: false showClone: false
}; };
}, },
...@@ -142,7 +142,7 @@ ...@@ -142,7 +142,7 @@
} }
this.post({ this.post({
url: '/vip/getVipProducts/point', url: '/vip/getVipProducts',
data: { data: {
vedioId: that.point <= 0 ? null : that.vedioId vedioId: that.point <= 0 ? null : that.vedioId
}, },
......
...@@ -175,7 +175,7 @@ ...@@ -175,7 +175,7 @@
:src="newRecordBean.coverImage" mode="aspectFill"></image> :src="newRecordBean.coverImage" mode="aspectFill"></image>
<view style="margin: 20rpx;"> <view style="margin: 20rpx;">
<view style="font-size: 30rpx; color: white;">{{newRecordBean.title}}</view> <view style="font-size: 30rpx; color: white;">{{newRecordBean.title}}</view>
<view style="font-size: 24rpx;margin-top: 6rpx;color: white;">上次观看至第{{newRecordBean.seeIndex}} <view style="font-size: 24rpx;margin-top: 6rpx;color: white;">上次阅读至第{{newRecordBean.seeIndex}}
</view> </view>
<view style="font-size: 22rpx;" <view style="font-size: 22rpx;"
v-if="newRecordBean.orderTags!=null&&newRecordBean.orderTags.length>0"> v-if="newRecordBean.orderTags!=null&&newRecordBean.orderTags.length>0">
...@@ -202,7 +202,7 @@ ...@@ -202,7 +202,7 @@
color: white; color: white;
font-size: 24rpx; font-size: 24rpx;
margin-right: 20rpx;"> margin-right: 20rpx;">
继续观看 继续阅读
</view> </view>
</view> </view>
...@@ -306,7 +306,7 @@ ...@@ -306,7 +306,7 @@
this.topList = data.list; this.topList = data.list;
} }
}); });
// 最近观看 // 最近阅读
this.post({ this.post({
url: '/vedio/newest', url: '/vedio/newest',
data: {}, data: {},
......
...@@ -20,7 +20,7 @@ ...@@ -20,7 +20,7 @@
</view> </view>
<view v-if="userBean.expireTime<=0" style="font-size: 30rpx;color: #5b1500;margin-top: 12rpx;"> <view v-if="userBean.expireTime<=0" style="font-size: 30rpx;color: #5b1500;margin-top: 12rpx;">
解锁全部短剧 解锁全部小说
</view> </view>
<view v-else style="font-size: 30rpx;color: #5b1500;margin-top: 12rpx;"> <view v-else style="font-size: 30rpx;color: #5b1500;margin-top: 12rpx;">
到期时间:{{userBean.expireTime*1000 | formatDate('yyyy-MM-dd')}} 到期时间:{{userBean.expireTime*1000 | formatDate('yyyy-MM-dd')}}
...@@ -47,9 +47,9 @@ ...@@ -47,9 +47,9 @@
<image <image
style="width: 50rpx;height: 50rpx;display: flex;align-items: right;margin-right: 10rpx;" style="width: 50rpx;height: 50rpx;display: flex;align-items: right;margin-right: 10rpx;"
src="https://mints-pkg.oss-cn-beijing.aliyuncs.com/pkg/img/ic_my_coin.png"></image> src="https://mints-pkg.oss-cn-beijing.aliyuncs.com/pkg/img/ic_my_coin.png"></image>
<view style="font-size: 36rpx;font-weight: 777;">看点充值</view> <view style="font-size: 36rpx;font-weight: 777;">书豆充值</view>
</view> </view>
<view style="font-size: 28rpx;color: #5b1500;margin-top: 20rpx;">海量看点狂洒中,好剧等你来解锁</view> <view style="font-size: 28rpx;color: #5b1500;margin-top: 20rpx;">海量书豆狂洒中,小说等你来解锁</view>
</view> </view>
</view> </view>
<view style="width: 220rpx;"> <view style="width: 220rpx;">
...@@ -72,7 +72,7 @@ ...@@ -72,7 +72,7 @@
<view class="item_bd ellipsis" style="margin-left: 58rpx;"></view> <view class="item_bd ellipsis" style="margin-left: 58rpx;"></view>
</view> </view>
<view v-if="os === 'android' " class="item arrow" @click="handleDotRecord"> <view v-if="os === 'android' " class="item arrow" @click="handleDotRecord">
看点记录 书豆记录
<view class="item_bd ellipsis" style="margin-left: 58rpx;"></view> <view class="item_bd ellipsis" style="margin-left: 58rpx;"></view>
</view> </view>
<view v-if="os === 'android' " class="item arrow" @click="handleUseDotRecord"> <view v-if="os === 'android' " class="item arrow" @click="handleUseDotRecord">
...@@ -80,7 +80,7 @@ ...@@ -80,7 +80,7 @@
<view class="item_bd ellipsis" style="margin-left: 58rpx;"></view> <view class="item_bd ellipsis" style="margin-left: 58rpx;"></view>
</view> </view>
<view class="item arrow" @click="handleWatchRecord"> <view class="item arrow" @click="handleWatchRecord">
观看记录 阅读记录
<view class="item_bd ellipsis" style="margin-left: 58rpx;"></view> <view class="item_bd ellipsis" style="margin-left: 58rpx;"></view>
</view> </view>
<view class="item arrow" @click="handlePhone"> <view class="item arrow" @click="handlePhone">
...@@ -153,11 +153,11 @@ ...@@ -153,11 +153,11 @@
}, },
handleDotRecord() { handleDotRecord() {
// 看点记录 // 书豆记录
navigateTo(`/pagesD/dotRecord/dotRecord`) navigateTo(`/pagesD/dotRecord/dotRecord`)
}, },
handleUseDotRecord() { handleUseDotRecord() {
// 看点消费记录 // 书豆消费记录
navigateTo(`/pagesD/useDotRecord/useDotRecord`) navigateTo(`/pagesD/useDotRecord/useDotRecord`)
}, },
handleWatchRecord() { handleWatchRecord() {
...@@ -223,7 +223,7 @@ ...@@ -223,7 +223,7 @@
}, },
paySuccess(largeType) { paySuccess(largeType) {
// largeType=vip 开通vip // largeType=vip 开通vip
// largeType=point 购买看点 // largeType=point 购买书豆
if(wx.getSystemInfoSync().platform=='ios'){ if(wx.getSystemInfoSync().platform=='ios'){
message.notify('支付成功'); message.notify('支付成功');
} }
......
...@@ -177,7 +177,7 @@ ...@@ -177,7 +177,7 @@
"enable" : true "enable" : true
} }
}, },
"title" : "短剧", "title" : "小说",
"router" : { "router" : {
"base" : "./" "base" : "./"
}, },
......
...@@ -2,7 +2,7 @@ export default { ...@@ -2,7 +2,7 @@ export default {
data() { data() {
return { return {
share: { share: {
title: '更多好剧,等你来看', title: '更多小说,等你来看',
imageUrl: 'https://mints-pkg.oss-cn-beijing.aliyuncs.com/pkg/img/ic_movie.png', imageUrl: 'https://mints-pkg.oss-cn-beijing.aliyuncs.com/pkg/img/ic_movie.png',
path: '/pages/loading?shareId=' path: '/pages/loading?shareId='
} }
......
...@@ -101,7 +101,7 @@ ...@@ -101,7 +101,7 @@
"pages": [{ "pages": [{
"path": "watchRecord/watchRecord", "path": "watchRecord/watchRecord",
"style": { "style": {
"navigationBarTitleText": "观看记录", "navigationBarTitleText": "阅读记录",
"navigationStyle": "default", "navigationStyle": "default",
"navigationBarBackgroundColor": "#ffffff", "navigationBarBackgroundColor": "#ffffff",
"navigationBarTextStyle": "black" "navigationBarTextStyle": "black"
...@@ -117,7 +117,7 @@ ...@@ -117,7 +117,7 @@
}, { }, {
"path": "dotRecord/dotRecord", "path": "dotRecord/dotRecord",
"style": { "style": {
"navigationBarTitleText": "看点记录", "navigationBarTitleText": "书豆记录",
"navigationStyle": "default", "navigationStyle": "default",
"navigationBarBackgroundColor": "#ffffff", "navigationBarBackgroundColor": "#ffffff",
"navigationBarTextStyle": "black" "navigationBarTextStyle": "black"
......
...@@ -5,7 +5,7 @@ ...@@ -5,7 +5,7 @@
<view style="color: #A231EF;margin-top: 10rpx;font-size: 40rpx;font-size: 40rpx;">欢迎使用</view> <view style="color: #A231EF;margin-top: 10rpx;font-size: 40rpx;font-size: 40rpx;">欢迎使用</view>
<view style="bottom: 0;position: absolute;"> <view style="bottom: 0;position: absolute;">
<image style="width: 540rpx;height: 644rpx;display: flex;align-items: center;margin-bottom: 30%;" <image style="width: 540rpx;height: 644rpx;display: flex;align-items: center;margin-bottom: 30%;"
src="https://mints-pkg.oss-cn-beijing.aliyuncs.com/pkg/img/bg_splash.png" mode="scaleToFill"> src="https://mints-pkg.oss-cn-beijing.aliyuncs.com/pkg/img/book_bg_splash.png" mode="scaleToFill">
</image> </image>
</view> </view>
...@@ -40,6 +40,7 @@ ...@@ -40,6 +40,7 @@
}, },
onLoad(options) { onLoad(options) {
this.tips1 = options.tips1 this.tips1 = options.tips1
this.appName = '幻墨小说阁' this.appName = '幻墨小说阁'
}, },
onShow(options) { onShow(options) {
......
...@@ -176,10 +176,10 @@ ...@@ -176,10 +176,10 @@
cloudType: 1, cloudType: 1,
version: 1, version: 1,
success: () => { success: () => {
console.log("短剧预加载成功" + this.displaySwiperList[preIndex].douyinEpisodeId); console.log("小说预加载成功" + this.displaySwiperList[preIndex].douyinEpisodeId);
}, },
fail: (error) => { fail: (error) => {
console.log("短剧预加载失败", error); console.log("小说预加载失败", error);
}, },
}); });
}, },
......
...@@ -209,16 +209,16 @@ ...@@ -209,16 +209,16 @@
cloudType: 1, cloudType: 1,
version: 1, version: 1,
success: () => { success: () => {
console.log("短剧预加载成功" + this.displaySwiperList[preIndex].douyinEpisodeId); console.log("小说预加载成功" + this.displaySwiperList[preIndex].douyinEpisodeId);
}, },
fail: (error) => { fail: (error) => {
console.log("短剧预加载失败", error); console.log("小说预加载失败", error);
}, },
}); });
}, },
paySuccess(largeType) { paySuccess(largeType) {
// largeType=vip 开通vip // largeType=vip 开通vip
// largeType=point 购买看点 // largeType=point 购买书豆
// largeType=curVedio 解锁当前剧所有集 // largeType=curVedio 解锁当前剧所有集
if (largeType == 'vip') { if (largeType == 'vip') {
this.vipBackPage = this.originIndex this.vipBackPage = this.originIndex
...@@ -536,7 +536,7 @@ ...@@ -536,7 +536,7 @@
that.adUnlock(that.originIndex, '') that.adUnlock(that.originIndex, '')
} else { } else {
uni.showToast({ uni.showToast({
title: "未观看完整视频" title: "未阅读完整视频"
}) })
that.$nextTick(() => { that.$nextTick(() => {
......
<template> <template>
<view class="body"> <view class="body">
<!-- <status-title :showBack="true">看点记录</status-title> --> <!-- <status-title :showBack="true">书豆记录</status-title> -->
<z-paging class="flex-1" ref="paging" v-model="dataList" @query="queryList"> <z-paging class="flex-1" ref="paging" v-model="dataList" @query="queryList">
<view v-for="(item, i) in dataList" :key="i"> <view v-for="(item, i) in dataList" :key="i">
<view class="flex m-20 pd-20" style="background-color:white;border-radius:10rpx;"> <view class="flex m-20 pd-20" style="background-color:white;border-radius:10rpx;">
...@@ -13,7 +13,7 @@ ...@@ -13,7 +13,7 @@
</view> </view>
</view> </view>
<view style="margin:auto 10rpx auto auto;font-size: 36rpx;color: steelblue;"> <view style="margin:auto 10rpx auto auto;font-size: 36rpx;color: steelblue;">
{{ '+'+ item.subValue + '看点'}} {{ '+'+ item.subValue + '书豆'}}
</view> </view>
</view> </view>
</view> </view>
......
...@@ -14,7 +14,7 @@ ...@@ -14,7 +14,7 @@
</view> </view>
</view> </view>
<view style="margin:auto 10rpx auto auto;font-size: 36rpx;color: steelblue;"> <view style="margin:auto 10rpx auto auto;font-size: 36rpx;color: steelblue;">
{{ '-'+ item.subValue + '看点'}} {{ '-'+ item.subValue + '书豆'}}
</view> </view>
</view> </view>
</view> </view>
......
<template> <template>
<view class="body"> <view class="body">
<!-- <status-title :showBack="true">观看记录</status-title> --> <!-- <status-title :showBack="true">阅读记录</status-title> -->
<z-paging class="flex-1" ref="paging" v-model="dataList" @query="queryList" :defaultPageNo="1" <z-paging class="flex-1" ref="paging" v-model="dataList" @query="queryList" :defaultPageNo="1"
:defaultPageSize="500"> :defaultPageSize="500">
<view style="font-size: 30rpx;font-weight: 777;margin-left: 12rpx;margin-top: 10rpx;">最近观看</view> <view style="font-size: 30rpx;font-weight: 777;margin-left: 12rpx;margin-top: 10rpx;">最近阅读</view>
<view v-for="(item, i) in dataList" :key="i"> <view v-for="(item, i) in dataList" :key="i">
<view style="display: flex;flex-direction: row;justify-content:space-between;margin: 20rpx;"> <view style="display: flex;flex-direction: row;justify-content:space-between;margin: 20rpx;">
...@@ -12,7 +12,7 @@ ...@@ -12,7 +12,7 @@
<view style="display: flex;flex-direction: column;margin-left: 20rpx;"> <view style="display: flex;flex-direction: column;margin-left: 20rpx;">
<view style="font-size: 30rpx;color: black;">{{item.title}}</view> <view style="font-size: 30rpx;color: black;">{{item.title}}</view>
<view style="font-size: 22rpx;color: gray;margin-top: 16rpx;">观看至第{{item.seeIndex}}</view> <view style="font-size: 22rpx;color: gray;margin-top: 16rpx;">阅读至第{{item.seeIndex}}</view>
</view> </view>
</view> </view>
<view style="display: flex;align-items: center;margin-right: 8rpx;"> <view style="display: flex;align-items: center;margin-right: 8rpx;">
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment