Commit 22830e42 authored by jyx's avatar jyx

代码优化

parent 92fa688d
......@@ -74,7 +74,7 @@
mounted() {
uni.getSystemInfo({
success: (res => {
this.clientHeight = res.windowHeight - 42;
this.clientHeight = res.windowHeight - 50;
})
});
},
......
......@@ -182,8 +182,7 @@
style="width: 30rpx;height: 30rpx;display: flex;align-items: right;margin: 10rpx;"
src="../../static/index/ic_quit_white.png" mode="aspectFill"></image>
<view @click="handleBottomPlay(newRecordBean)"
style="width: 160rpx;height: 50rpx;line-height: 50rpx;text-align: center;background-color: red;border-radius:30rpx;color: white;font-size: 24rpx;margin-right: 20rpx;">
继续观看
style="width: 160rpx;height: 50rpx;line-height: 50rpx;text-align: center;background-color: red;border-radius:30rpx;color: white;font-size: 24rpx;margin-right: 20rpx;"> 继续观看
</view>
</view>
......@@ -242,7 +241,7 @@
mounted() {
uni.getSystemInfo({
success: (res => {
this.clientHeight = res.windowHeight - 42;
this.clientHeight = res.windowHeight - 50;
})
});
// 匹配视频
......
......@@ -162,7 +162,7 @@
mounted() {
uni.getSystemInfo({
success: (res => {
this.clientHeight = res.windowHeight - 42;
this.clientHeight = res.windowHeight - 50;
})
});
},
......
......@@ -295,6 +295,10 @@
var countDownSeconds = 3
that.countDown = countDownSeconds
const timer = setInterval(() => {
if (!that.showRewardAdPop) {
clearInterval(timer)
}
if (countDownSeconds > 0) {
that.countDown = countDownSeconds
countDownSeconds--
......@@ -315,6 +319,7 @@
},
closeAdPop() {
this.showRewardAdPop = false
this.pm.toggleCustomDialog()
},
closeAdMorePop() {
this.showRewardAdMorePop = false
......
......@@ -37,8 +37,10 @@
"root": "pagesC",
"pages": [{
"path": "ttvideo/ttVideoDetail",
"usingComponents": {
"tt-video-player": "ext://industry/video-player"
"style": {
"backgroundColor": "#000000",
"navigationBarBackgroundColor": "#000000",
"navigationBarTextStyle": "#ffffff"
}
}, {
"path": "playlet/index",
......@@ -99,9 +101,13 @@
"backgroundColor": "#f5f5f5",
"navigationStyle": "default",
"navigationBarTextStyle": "black",
"navigationBarBackgroundColor": "#ffffff",
"app-plus": {
"bounce": "none",
"scrollIndicator": "none"
},
"usingComponents": {
"tt-video-player": "ext://industry/video-player"
}
},
"condition": { //模式配置,仅开发期间生效
......
......@@ -43,8 +43,7 @@
</view>
</view>
<view v-if="showEditBar" class="editBar"
:style="'padding-top:35rpx;padding-bottom:' + bottomSafePadding + 'px;'">
<view v-if="showEditBar" class="editBar">
<view class="editItem" @click="!isFullChoice?fullChoice():noChoice()">
{{!isFullChoice?'全选':'全不选'}}
</view>
......@@ -194,13 +193,13 @@
position: absolute;
bottom: 0;
width: 100%;
height: 60rpx;
height: 60px;
background: white;
display: flex;
.editItem {
height: 60rpx;
line-height: 60rpx;
height: 60px;
line-height: 60px;
text-align: center;
width: 50%;
}
......@@ -210,12 +209,12 @@
display: flex;
align-items: center;
background-color: white;
height: 42px;
height: 50px;
.tab {
flex: 1;
text-align: center;
font-size: 12px;
font-size: 14px;
font-weight: bold;
color: black;
......
......@@ -62,17 +62,17 @@
<view v-else style="display: flex;align-items: center;font-size: 40rpx;
color: #f2b068;
font-weight: 700;">
{{multiply(item.firstPayPrice)}}
<image style="width: 50rpx;height: 50rpx;display: flex;margin-right: 10rpx;"
src="@/static/ic_zuan.png">
</image>
+{{multiply(item.firstPayPrice)}}
</view>
<view class="name row" v-if="item.title!=null&&item.title!=''">
{{item.title}}
</view>
<view class="origin row" v-if="item.remarks!=null&&item.remarks!=''">
<view class="origin row" v-if="item.remarks!=null&&item.remarks!=''&&os=='android'">
{{item.remarks}}
</view>
</view>
......@@ -289,7 +289,8 @@
.yhqRateBalance) + "钻石,已优惠" +
that.multiply(tempYhq) + "钻石"
} else {
that.btnText = "立即支付" + that.vipList[this.selectedVipIndex].yhqRateBalance + "元,已优惠" + tempYhq +
that.btnText = "立即支付" + that.vipList[this.selectedVipIndex].yhqRateBalance + "元,已优惠" +
tempYhq +
"元"
}
......@@ -305,10 +306,12 @@
let tempYhq = new Decimal(cashStr).sub(new Decimal(that.pointList[this.selectedIndex]
.yhqRateBalance)).toNumber()
if (that.os == 'ios') {
that.btnText = "立即支付" + that.multiply(that.pointList[this.selectedIndex].yhqRateBalance) + "钻石,已优惠" +
that.btnText = "立即支付" + that.multiply(that.pointList[this.selectedIndex].yhqRateBalance) +
"钻石,已优惠" +
that.multiply(tempYhq) + "钻石"
} else {
that.btnText = "立即支付" + that.pointList[this.selectedIndex].yhqRateBalance + "元,已优惠" + tempYhq + "元"
that.btnText = "立即支付" + that.pointList[this.selectedIndex].yhqRateBalance + "元,已优惠" + tempYhq +
"元"
}
}
......@@ -335,7 +338,8 @@
.yhqRateBalance) + "钻石,已优惠" +
that.multiply(tempYhq) + "钻石"
} else {
that.btnText = "立即支付" + that.vipList[this.selectedVipIndex].yhqRateBalance + "元,已优惠" + tempYhq +
that.btnText = "立即支付" + that.vipList[this.selectedVipIndex].yhqRateBalance + "元,已优惠" +
tempYhq +
"元"
}
}
......@@ -350,10 +354,12 @@
let tempYhq = new Decimal(cashStr).sub(new Decimal(that.pointList[this.selectedIndex]
.yhqRateBalance)).toNumber()
if (that.os == 'ios') {
that.btnText = "立即支付" + that.multiply(that.pointList[this.selectedIndex].yhqRateBalance) + "钻石,已优惠" +
that.btnText = "立即支付" + that.multiply(that.pointList[this.selectedIndex].yhqRateBalance) +
"钻石,已优惠" +
that.multiply(tempYhq) + "钻石"
} else {
that.btnText = "立即支付" + that.pointList[this.selectedIndex].yhqRateBalance + "元,已优惠" + tempYhq + "元"
that.btnText = "立即支付" + that.pointList[this.selectedIndex].yhqRateBalance + "元,已优惠" + tempYhq +
"元"
}
}
......@@ -573,6 +579,7 @@
color: #2c2c2c;
}
}
.text-box {
word-break: break-all;
margin: 10rpx;
......
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