Commit eb917ec3 authored by mengcuiguang's avatar mengcuiguang

代码优化

parent 540d3337
......@@ -65,7 +65,12 @@
</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>
<vipback-popup :show="showVipbackPop" :vipBean="backvipBean" @vipbackclose="vipbackClose()"
@vipbackpaySuccess="vipbackpaySuccess" />
......@@ -74,9 +79,9 @@
</template>
<script>
import common from '@/mixins/common';
// import {
// VERSION_CODE
// } from "@/utils/utils.js"
import {
VERSION_CODE
} from "@/utils/utils.js"
import CoinPopup from "@/components/coin-popup/coin-popup.vue";
import KefuPopup from "@/components/kefu-popup/kefu-popup.vue";
......@@ -120,7 +125,7 @@
},
methods: {
show() {
// this.versionName = 'v ' + VERSION_CODE
this.versionName = 'v ' + VERSION_CODE
this.post({
url: '/user/baseMsg',
showLoading: false,
......@@ -180,9 +185,9 @@
},
handlePhone() {
this.showKefuPop = true
},
paySuccess(largeType) {
this.vipPopRefresh=false;
},
paySuccess(largeType) {
this.vipPopRefresh = false;
this.showAnimate = false;
// largeType=vip 开通vip
// largeType=point 购买书豆
......@@ -198,8 +203,8 @@
}
});
},
coinClose(e) {
this.vipPopRefresh=false;
coinClose(e) {
this.vipPopRefresh = false;
let item = e.detail.data;
if (item != null) {
......@@ -216,8 +221,8 @@
this.showVipbackPop = false;
this.vipPopRefresh = true;
},
vipbackpaySuccess(largeType) {
this.vipPopRefresh=false;
vipbackpaySuccess(largeType) {
this.vipPopRefresh = false;
this.showAnimate = false;
this.showVipbackPop = false;
......
......@@ -3,7 +3,7 @@
<uni-popup type="bottom" ref="kefuPop" :maskClick="false" :safe-area='false' :isMaskClick="false">
<view class="container">
<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">
<text style="font-size: 40rpx;margin-bottom: 15rpx;">客服时间: 工作日9:00-18:00</text>
......
......@@ -11,7 +11,7 @@
:key="index">
{{item}}
</view>
<view class="limit-button-box" @click="tapVip">
<view v-if="limitButtonTitle" class="limit-button-box" @click="tapVip">
{{limitButtonTitle}}
</view>
</template>
......
......@@ -6,16 +6,16 @@
</view>
<view class="info-box item">
<view class="row">
<view class="title">
<view v-if="detail.title" class="title">
{{detail.title}}
</view>
</view>
<view class="row">
<view class="desc">
<view v-if="detail.summary" class="desc">
{{detail.summary}}
</view>
</view>
<view class="row">
<view v-if="detail.author" class="row">
<view class="author-box">
<uni-icons type='icon-author' custom-prefix="readiconfont" size='20'
color='#378eff'></uni-icons>
......
......@@ -16,7 +16,7 @@
</view>
<view class="section">
<view>支付方式</view>
<view>微信</view>
<view>抖音</view>
</view>
<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