Commit eb917ec3 authored by mengcuiguang's avatar mengcuiguang

代码优化

parent 540d3337
...@@ -65,7 +65,12 @@ ...@@ -65,7 +65,12 @@
</view> </view>
</view> </view>
<coin-popup :show="showAnimate" @close="coinClose($event)" @paySuccess="paySuccess" :vipPopRefresh="vipPopRefresh"> <view style="display: flex;justify-content: center;margin-top: 16rpx;font-size: 30rpx;color: gray;">
{{ versionName }}
</view>
<coin-popup :show="showAnimate" @close="coinClose($event)" @paySuccess="paySuccess"
:vipPopRefresh="vipPopRefresh">
</coin-popup> </coin-popup>
<vipback-popup :show="showVipbackPop" :vipBean="backvipBean" @vipbackclose="vipbackClose()" <vipback-popup :show="showVipbackPop" :vipBean="backvipBean" @vipbackclose="vipbackClose()"
@vipbackpaySuccess="vipbackpaySuccess" /> @vipbackpaySuccess="vipbackpaySuccess" />
...@@ -74,9 +79,9 @@ ...@@ -74,9 +79,9 @@
</template> </template>
<script> <script>
import common from '@/mixins/common'; import common from '@/mixins/common';
// import { import {
// VERSION_CODE VERSION_CODE
// } from "@/utils/utils.js" } from "@/utils/utils.js"
import CoinPopup from "@/components/coin-popup/coin-popup.vue"; import CoinPopup from "@/components/coin-popup/coin-popup.vue";
import KefuPopup from "@/components/kefu-popup/kefu-popup.vue"; import KefuPopup from "@/components/kefu-popup/kefu-popup.vue";
...@@ -120,7 +125,7 @@ ...@@ -120,7 +125,7 @@
}, },
methods: { methods: {
show() { show() {
// this.versionName = 'v ' + VERSION_CODE this.versionName = 'v ' + VERSION_CODE
this.post({ this.post({
url: '/user/baseMsg', url: '/user/baseMsg',
showLoading: false, showLoading: false,
...@@ -182,7 +187,7 @@ ...@@ -182,7 +187,7 @@
this.showKefuPop = true this.showKefuPop = true
}, },
paySuccess(largeType) { paySuccess(largeType) {
this.vipPopRefresh=false; this.vipPopRefresh = false;
this.showAnimate = false; this.showAnimate = false;
// largeType=vip 开通vip // largeType=vip 开通vip
// largeType=point 购买书豆 // largeType=point 购买书豆
...@@ -199,7 +204,7 @@ ...@@ -199,7 +204,7 @@
}); });
}, },
coinClose(e) { coinClose(e) {
this.vipPopRefresh=false; this.vipPopRefresh = false;
let item = e.detail.data; let item = e.detail.data;
if (item != null) { if (item != null) {
...@@ -217,7 +222,7 @@ ...@@ -217,7 +222,7 @@
this.vipPopRefresh = true; this.vipPopRefresh = true;
}, },
vipbackpaySuccess(largeType) { vipbackpaySuccess(largeType) {
this.vipPopRefresh=false; this.vipPopRefresh = false;
this.showAnimate = false; this.showAnimate = false;
this.showVipbackPop = false; this.showVipbackPop = false;
......
...@@ -3,7 +3,7 @@ ...@@ -3,7 +3,7 @@
<uni-popup type="bottom" ref="kefuPop" :maskClick="false" :safe-area='false' :isMaskClick="false"> <uni-popup type="bottom" ref="kefuPop" :maskClick="false" :safe-area='false' :isMaskClick="false">
<view class="container"> <view class="container">
<image @click="onClose" style="width: 40rpx; height: 40rpx;margin-left:auto;margin-right: 30rpx; <image @click="onClose" style="width: 40rpx; height: 40rpx;margin-left:auto;margin-right: 30rpx;
margin-top: 20rpx;" src="@/static/index/ic_quit_white.png"></image> margin-top: 20rpx;" src="@/static/index/ic_quit_white.png" mode="widthFix"></image>
<view class="content"> <view class="content">
<text style="font-size: 40rpx;margin-bottom: 15rpx;">客服时间: 工作日9:00-18:00</text> <text style="font-size: 40rpx;margin-bottom: 15rpx;">客服时间: 工作日9:00-18:00</text>
......
...@@ -11,7 +11,7 @@ ...@@ -11,7 +11,7 @@
:key="index"> :key="index">
{{item}} {{item}}
</view> </view>
<view class="limit-button-box" @click="tapVip"> <view v-if="limitButtonTitle" class="limit-button-box" @click="tapVip">
{{limitButtonTitle}} {{limitButtonTitle}}
</view> </view>
</template> </template>
......
...@@ -6,16 +6,16 @@ ...@@ -6,16 +6,16 @@
</view> </view>
<view class="info-box item"> <view class="info-box item">
<view class="row"> <view class="row">
<view class="title"> <view v-if="detail.title" class="title">
{{detail.title}} {{detail.title}}
</view> </view>
</view> </view>
<view class="row"> <view class="row">
<view class="desc"> <view v-if="detail.summary" class="desc">
{{detail.summary}} {{detail.summary}}
</view> </view>
</view> </view>
<view class="row"> <view v-if="detail.author" class="row">
<view class="author-box"> <view class="author-box">
<uni-icons type='icon-author' custom-prefix="readiconfont" size='20' <uni-icons type='icon-author' custom-prefix="readiconfont" size='20'
color='#378eff'></uni-icons> color='#378eff'></uni-icons>
......
...@@ -16,7 +16,7 @@ ...@@ -16,7 +16,7 @@
</view> </view>
<view class="section"> <view class="section">
<view>支付方式</view> <view>支付方式</view>
<view>微信</view> <view>抖音</view>
</view> </view>
<text class="unsignbutton" @click="unsign">取消自动续费</text> <text class="unsignbutton" @click="unsign">取消自动续费</text>
......
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