Commit 451b4511 authored by jyx's avatar jyx

代码优化

parent 0a6b9abd
<template>
<view>
<uni-popup type="bottom" ref="coinPop" :maskClick="false" :isMaskClick="false">
<view class="body">
<scroll-view scroll-y style="width: 100%;height: 100%;">
<view class="body" style="width: 100%;height: 100%;">
<scroll-view scroll-y>
<view style="display: flex;flex-direction: column;align-items: flex-end;">
<image @click="handleClose"
style="width: 30rpx;height: 30rpx;display: flex;align-items: right;margin-top: 20rpx;margin-right: 20rpx;margin-bottom: 10rpx;"
......
<template>
<view class="body" >
<scroll-view scroll-y="true" :style="'height: '+(windowHeight -60)+'px;'">
<view class="body">
<!-- <scroll-view :scroll-y="true"> -->
<z-paging style="height: 100%;">
<view
:style="'display: flex;flex-direction: row;align-items: center;margin: 20rpx;padding-left: 10rpx;margin-top:'+statusBarHeight+'px;'">
<image class="avatar" src="@/static/logo-about.png"></image>
......@@ -35,7 +36,8 @@
src="https://mints-pkg.oss-cn-beijing.aliyuncs.com/pkg/bg_my_vip.png" mode="scaleToFill"></image>
</view>
<view v-if="userBean.expireTime<=0" style="display: flex;height: 200rpx;margin: 20rpx;background: #f5ca86;border-radius: 20rpx;">
<view v-if="userBean.expireTime<=0"
style="display: flex;height: 200rpx;margin: 20rpx;background: #f5ca86;border-radius: 20rpx;">
<view style="flex-grow: 2; margin-left: 20rpx;">
<view
style="width: 100%;height: 100%;display: flex;flex-direction: column;justify-content: center;">
......@@ -86,7 +88,8 @@
<view style="display: flex;justify-content: center;margin-top: 20rpx;font-size: 26rpx;color: gray;">
{{ versionName }}
</view>
</scroll-view>
</z-paging>
<!-- </scroll-view> -->
<coin-popup :show="showAnimate" @close="showAnimate = false" @paySuccess="paySuccess">
</coin-popup>
......
......@@ -93,7 +93,7 @@
this.$emit("goRecommend")
},
click(detail) {
navigateTo(`/pagesC/video/videoDetail?data=` + encodeURIComponent(JSON.stringify(detail)))
navigateTo(`/pagesC/video/newVideoDetail?data=` + encodeURIComponent(JSON.stringify(detail)))
},
longClick(key) {
this.isEditStyle = true
......
......@@ -236,7 +236,7 @@
this.isqp = e.detail.show
},
detail(detail) {
navigateTo(`/pagesC/video/videoDetail?data=` + encodeURIComponent(JSON.stringify(detail)) +
navigateTo(`/pagesC/video/newVideoDetail?data=` + encodeURIComponent(JSON.stringify(detail)) +
`&playNext=1`)
},
collect(vedioId, index) {
......
......@@ -264,6 +264,7 @@
icon: 'none'
})
if (data.code == 200) {
that.originList[that.originIndex].lock = false
setTimeout(() => {
uni.createVideoContext('' + that.originList[that.originIndex].vedioId,
that)
......@@ -271,6 +272,7 @@
this.commitVideo()
}, 500)
} else if (data.code == 301) {
that.originList[that.originIndex].lock = false
setTimeout(() => {
uni.createVideoContext('' + that.originList[that.originIndex].vedioId,
that)
......@@ -278,6 +280,7 @@
this.commitVideo()
}, 500)
} else if (data.code == 302) {
that.originList[that.originIndex].lock = false
setTimeout(() => {
uni.createVideoContext('' + that.originList[that.originIndex].vedioId,
that)
......
......@@ -7,13 +7,13 @@
<image style="margin: auto 10rpx;width: 60rpx;height: 60rpx;" src="../../static/ic_coin.png">
</image>
<view class="flex1 ml-10">
<view class="mt-10" style="font-size: 28rpx;color: black;">{{'充值'+item.createtime}}</view>
<view class="mt-10" style="font-size: 28rpx;color: black;">{{item.remark}}</view>
<view class="mt-10" style="font-size: 26rpx;color: darkgray;">
{{myFormateTime(1698911375977)}}
{{item.time}}
</view>
</view>
<view style="margin:auto 10rpx auto auto;font-size: 36rpx;color: steelblue;">
3000看点
{{ '+'+ item.subValue + '看点'}}
</view>
</view>
</view>
......@@ -33,7 +33,7 @@
mixins: [common],
data() {
return {
dataList: [1, 2, 3]
dataList: []
};
},
methods: {
......@@ -47,7 +47,11 @@
},
queryList(page, size) {
this.post({
url: '/vip/getOrderList',
url: '/vedio/assetsRecords/add',
data: {
page,
size
},
showLoading: false,
success: ({
data
......
......@@ -7,13 +7,14 @@
<image style="margin: auto 10rpx;width: 60rpx;height: 60rpx;" src="../../static/ic_shop.png">
</image>
<view class="flex1 ml-10">
<view class="mt-10" style="font-size: 28rpx;color: black;">{{'购买《'+item.createtime+'》章节'}}
<view class="mt-10" style="font-size: 28rpx;color: black;">{{item.remark}}
</view>
<view class="mt-10" style="font-size: 26rpx;color: darkgray;">
{{myFormateTime(1698911375977)}}</view>
{{item.time}}
</view>
</view>
<view style="margin:auto 10rpx auto auto;font-size: 36rpx;color: steelblue;">
3000看点
{{ '-'+ item.subValue + '看点'}}
</view>
</view>
</view>
......@@ -32,7 +33,7 @@
mixins: [common],
data() {
return {
dataList: [1, 2, 3]
dataList: []
};
},
methods: {
......@@ -46,7 +47,11 @@
},
queryList(page, size) {
this.post({
url: '/vip/getOrderList',
url: '/vedio/assetsRecords/sub',
data: {
page,
size
},
showLoading: false,
success: ({
data
......
......@@ -78,7 +78,7 @@
});
},
handleInfo(item) {
navigateTo(`/pagesC/video/videoDetail?data=` + encodeURIComponent(JSON.stringify(item)));
navigateTo(`/pagesC/video/newVideoDetail?data=` + encodeURIComponent(JSON.stringify(item)));
},
handleXing(item) {
var that = this;
......
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