Commit a7841521 authored by mengcuiguang's avatar mengcuiguang

代码优化

parent fb5f7626
......@@ -2,7 +2,7 @@
<view>
<uni-popup type="bottom" ref="coinPop" :maskClick="false" :isMaskClick="false">
<view style="position: relative;">
<view style="position: relative; ">
<view v-if="agreeFlag"
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;">
......@@ -15,11 +15,11 @@
src="@/static/index/ic_quit_white.png"></image>
</view>
<view class="body" style="width: 100%;height: 100%;">
<scroll-view scroll-y>
<view class="body" style="width: 100%;height: 100%;background-color: white;">
<scroll-view scroll-y style="background-color: white;">
<view style="display: flex;flex-direction: column;align-items: flex-end;">
<view style="display: flex;flex-direction: row;">
<view @click="handleAgree" style="margin-top: 12rpx;margin-right: 10rpx;">付费须知></view>
<view @click="handleAgree" style="margin-top: 12rpx;margin-right: 18rpx;">付费须知></view>
<image @click="handleClickClose"
style="width: 30rpx;height: 30rpx;display: flex;align-items: right;margin-top: 20rpx;margin-right: 20rpx;margin-bottom: 10rpx;"
src="@/static/index/ic_quit_white.png"></image>
......@@ -82,7 +82,7 @@
<view style="display: flex;flex-direction: column;align-items: center;">
<button @click="handleKefu" open-type="im" data-im-id="dy1d1fub8mqd" style="font-size: 24rpx;color: gray;margin-top: 16rpx;margin-bottom: 18rpx;background-color: transparent;">
订单中如有疑问,请在个人中心联系客服</button>
订单中如有疑问,请联系客服</button>
</view>
</scroll-view>
</view>
......
......@@ -79,7 +79,7 @@
</view>
</view>
<view class="ellipsis" style="font-size: 26rpx;margin-top: 10rpx;">{{item.title}}</view>
<view style="font-size: 26rpx;margin-top: 10rpx;height: 60rpx;">{{item.title}}</view>
<view class="ellipsis" style="font-size: 22rpx;margin-top: 10rpx;"
v-if="item.orderTags!=null&&item.orderTags.length>0">
<scroll-view scroll-x="true">
......@@ -153,11 +153,9 @@
</view>
</view>
</view>
<view class="ellipsis" style="font-size: 30rpx;margin-top: 10rpx;margin-left: 12rpx;">
<view style="font-size: 30rpx;margin-top: 10rpx;margin-left: 12rpx;height: 60rpx;">
{{item.title}}
</view>
<!-- <view style="font-size: 22rpx;margin-top: 10rpx;margin-left: 12rpx;">{{item.vedioDesc}}</view> -->
</view>
</view>
......@@ -435,7 +433,7 @@
background-color: #fff;
break-inside: avoid;
margin-bottom: 20rpx;
height: 470rpx;
height: 500rpx;
}
.img {
......
<template>
<view class="body">
<!-- <scroll-view :scroll-y="true"> -->
<z-paging style="height: 100%;background-color: #f5f5f5;">
<view
:style="'display: flex;flex-direction: row;align-items: center;margin: 20rpx;padding-left: 10rpx;margin-top:'+10+'px;'">
<view :style="'display: flex;flex-direction: row;align-items: center;margin: 20rpx;padding-left: 10rpx;margin-top:'+10+'px;'">
<image class="avatar" src="@/static/logo-about.png"></image>
<view>
<view style="font-size: 32rpx;color: black;margin-left: 20rpx;">用户ID:{{userBean.idcode}}</view>
</view>
</view>
<view
style="display: flex;height: 180rpx;margin:40rpx 20rpx ;background: #f5ca86;border-radius: 20rpx;">
<view style="display: flex;height: 180rpx;margin:40rpx 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;">
......@@ -20,35 +17,33 @@
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>
<view style="font-size: 36rpx;">看点余额:{{userBean.point}}</view>
</view>
<view v-if="userBean.expireTime<=0" style="font-size: 28rpx;color: #5b1500;margin-top: 20rpx;">海量看点狂洒中,好剧等你来解锁</view>
<view v-else style="font-size: 28rpx;color: #5b1500;margin-top: 20rpx;">到期时间:{{userBean.expireTime*1000 | formatDate('yyyy-MM-dd')}}</view>
</view>
<view v-if="userBean.expireTime<=0" style="font-size: 28rpx;color: #5b1500;margin-top: 20rpx;">
海量看点狂洒中,好剧等你来解锁</view>
<view v-else style="font-size: 28rpx;color: #5b1500;margin-top: 20rpx;">
VIP到期时间:{{userBean.expireTime*1000 | formatDate('yyyy-MM-dd')}}</view>
</view>
</view>
<view style="width: 220rpx;">
<view
style="width: 100%;height: 100%;display: flex;flex-direction: column;align-items: center;justify-content: center;">
<view v-if="userBean.expireTime<=0" @click="handleCoinPay"
style="width: 160rpx;height: 60rpx;background-color: #5b1500;border-radius:30rpx;color: white;font-size: 26rpx;justify-content: center;align-items: center;display: flex;padding-bottom: 4rpx;">
去充值
</view>
<view
style="width: 220rpx;height: 100%;display: flex;flex-direction: column;align-items: center;justify-content: center;">
<view v-if="userBean.expireTime<=0" @click="handleCoinPay"
style="width: 160rpx;height: 60rpx;background-color: #5b1500;border-radius:30rpx;color: white;font-size: 26rpx;justify-content: center;align-items: center;display: flex;padding-bottom: 4rpx;">
去充值
</view>
</view>
</view>
<view class="infobg" style="margin: 20rpx;">
<view class="item arrow" @click="handlePayRecord">
我的订单
<view class="item_bd ellipsis" style="margin-left: 58rpx;"></view>
</view>
<view v-if="os === 'android' " class="item arrow" @click="handleDotRecord">
<view class="item arrow" @click="handleDotRecord">
看点记录
<view class="item_bd ellipsis" style="margin-left: 58rpx;"></view>
</view>
<view v-if="os === 'android' " class="item arrow" @click="handleUseDotRecord">
<view class="item arrow" @click="handleUseDotRecord">
消费记录
<view class="item_bd ellipsis" style="margin-left: 58rpx;"></view>
</view>
......@@ -66,12 +61,9 @@
{{ versionName }}
</view>
</z-paging>
<!-- </scroll-view> -->
<coin-popup :show="showAnimate" @close="showAnimate = false" @paySuccess="paySuccess">
</coin-popup>
<kefu-popup :show="showKefuPop" @close="showKefuPop = false" />
</view>
</template>
......@@ -97,15 +89,15 @@
export default {
name: 'index',
mixins: [common],
components: {
kefuPopup
mixins: [common],
components: {
kefuPopup
},
data() {
return {
statusBarHeight: app.globalData.statusBarHeight,
userBean: {},
showAnimate: false,
showAnimate: false,
showKefuPop: false,
windowHeight: 0,
os: 'android',
......@@ -153,15 +145,15 @@
navigateTo(`/pagesA/vipPay/vipPay`)
},
handlePhone() {
this.showKefuPop = true
},
paySuccess(largeType) {
// largeType=vip 开通vip
// largeType=point 购买看点
if(wx.getSystemInfoSync().platform=='ios'){
message.notify('支付成功');
if (wx.getSystemInfoSync().platform == 'ios') {
message.notify('支付成功');
}
this.post({
......
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