公立人生计时器调整,会员数据调整
This commit is contained in:
@@ -26,7 +26,7 @@
|
||||
<view class="vip-card">
|
||||
<view class="title">
|
||||
<image src="@/static/user/icon_06.png" mode="widthFix" />
|
||||
共力会员
|
||||
{{serial === '' ? '共力会员': 'NO:' + serial}}
|
||||
</view>
|
||||
<view class="subtitle">
|
||||
<u-notice-bar :text="cardText" icon="" bgColor="" duration="3000" color="#fcc692" direction="column">
|
||||
@@ -52,19 +52,23 @@
|
||||
<image class="icon" src="@/static/user/order_icon_04.png" mode="widthFix" />
|
||||
<view class="title">我的订单</view>
|
||||
</view>
|
||||
<view class="order-box-item" @click="onBtn('Order', { index: 1 })">
|
||||
<view class="order-box-item" @click="onBtn('Order', { index: 1 })">
|
||||
<view class="number" v-show="order.init > 0">{{order.init}}</view>
|
||||
<image class="icon" src="@/static/user/order_icon_01.png" mode="widthFix" />
|
||||
<view class="title">待付款</view>
|
||||
</view>
|
||||
<view class="order-box-item" @click="onBtn('Order', { index: 2 })">
|
||||
<view class="order-box-item" @click="onBtn('Order', { index: 2 })">
|
||||
<view class="number" v-show="order.paid > 0">{{order.paid}}</view>
|
||||
<image class="icon" src="@/static/user/order_icon_02.png" mode="widthFix" />
|
||||
<view class="title">待发货</view>
|
||||
</view>
|
||||
<view class="order-box-item" @click="onBtn('Order', { index: 3 })">
|
||||
<view class="order-box-item" @click="onBtn('Order', { index: 3 })">
|
||||
<view class="number" v-show="order.delivered > 0">{{order.delivered}}</view>
|
||||
<image class="icon" src="@/static/user/order_icon_03.png" mode="widthFix" />
|
||||
<view class="title">待收货</view>
|
||||
</view>
|
||||
<view class="order-box-item" @click="onBtn('OrderRefund')">
|
||||
<view class="order-box-item" @click="onBtn('OrderRefund')">
|
||||
<view class="number" v-show="order.refund > 0">{{order.refund}}</view>
|
||||
<image class="icon" src="@/static/user/order_icon_05.png" mode="widthFix" />
|
||||
<view class="title">退换货</view>
|
||||
</view>
|
||||
@@ -119,7 +123,17 @@
|
||||
mode="widthFix"></image>
|
||||
</view>
|
||||
</slot>
|
||||
</u-modal>
|
||||
</u-modal>
|
||||
<!-- 输入支付密码 -->
|
||||
<u-modal :show="showIv" title="请输入钱包支付密码" :showCancelButton="true" confirmColor="#34CE98" negativeTop="160"
|
||||
@confirm="validationIv" @cancel="()=>{ this.showIv = false, this.iv = '' }">
|
||||
<slot name="default">
|
||||
<view class="mnemonic-pwass">
|
||||
<input class="iv-input" :focus="true" type="password" v-model="iv" maxlength="10"
|
||||
placeholder="输入密聊密码" />
|
||||
</view>
|
||||
</slot>
|
||||
</u-modal>
|
||||
</view>
|
||||
</template>
|
||||
|
||||
@@ -128,6 +142,9 @@
|
||||
info,
|
||||
chainSeed
|
||||
} from '@/apis/interfaces/user';
|
||||
import {
|
||||
payPassword
|
||||
} from '@/apis/interfaces/account.js'
|
||||
import {
|
||||
getVersions
|
||||
} from '@/apis/interfaces/versions.js'
|
||||
@@ -151,7 +168,17 @@
|
||||
dt : 0.00
|
||||
},
|
||||
mnemonic : '',
|
||||
wordsShow: false
|
||||
wordsShow: false,
|
||||
order : {
|
||||
init : 0,
|
||||
paid : 0,
|
||||
delivered: 0,
|
||||
refund : 0
|
||||
},
|
||||
serial : '',
|
||||
hasPassword : false,
|
||||
showIv : false,
|
||||
iv : ''
|
||||
};
|
||||
},
|
||||
onShow() {
|
||||
@@ -162,18 +189,22 @@
|
||||
getInfo() {
|
||||
if (this.$store.state.token === '') return;
|
||||
info().then(res => {
|
||||
console.log(res)
|
||||
uni.setNavigationBarTitle({
|
||||
title: res.nickname
|
||||
});
|
||||
this.cardText = res.identity_array
|
||||
this.userInfo = {
|
||||
this.cardText = res.identity_array
|
||||
this.userInfo = {
|
||||
nickname : res.nickname,
|
||||
addr : res.addr,
|
||||
avatar : res.avatar,
|
||||
isOpenVip : res.is_open_vip,
|
||||
username : res.username
|
||||
}
|
||||
this.identity = res.identity
|
||||
this.account = res.account
|
||||
this.identity = res.identity
|
||||
this.account = res.account
|
||||
this.serial = res.serial
|
||||
this.hasPassword = res.has_transfer_password
|
||||
})
|
||||
.catch(err => {
|
||||
uni.showToast({
|
||||
@@ -184,8 +215,32 @@
|
||||
},
|
||||
// 导出助记词
|
||||
onMnemonic(){
|
||||
chainSeed().then(res => {
|
||||
if(!this.hasPassword){
|
||||
uni.showModal({
|
||||
title : '提示',
|
||||
content : '暂未设置账户支付密码,无法导出助记词,请设置密码后重试',
|
||||
cancelText : '稍后设置',
|
||||
confirmText : '立即设置',
|
||||
success : modalRes => {
|
||||
if(modalRes.confirm){
|
||||
this.$Router.push({name: 'AccountResetPassword', params: {phone: this.userInfo.username}})
|
||||
return
|
||||
}
|
||||
this.showIv = false
|
||||
}
|
||||
})
|
||||
return
|
||||
}
|
||||
this.showIv = true
|
||||
|
||||
},
|
||||
// 验证支付密码
|
||||
validationIv(){
|
||||
chainSeed({
|
||||
password: this.iv
|
||||
}).then(res => {
|
||||
this.mnemonic = res.seed
|
||||
this.showIv = false
|
||||
this.wordsShow = true
|
||||
}).catch(err => {
|
||||
uni.showToast({
|
||||
@@ -461,7 +516,8 @@
|
||||
display: flex;
|
||||
justify-content: space-between;
|
||||
|
||||
&-item {
|
||||
&-item {
|
||||
position: relative;
|
||||
width: 25%;
|
||||
padding: $padding $padding/2;
|
||||
text-align: center;
|
||||
@@ -475,7 +531,20 @@
|
||||
.title {
|
||||
font-size: $title-size-sm;
|
||||
margin-top: $margin/3;
|
||||
}
|
||||
}
|
||||
|
||||
.number{
|
||||
position: absolute;
|
||||
top: 22rpx;
|
||||
z-index: 2;
|
||||
right: 20%;
|
||||
background: $text-price;
|
||||
color: white;
|
||||
font-size: 22rpx;
|
||||
min-width: 30rpx;
|
||||
line-height: 30rpx;
|
||||
border-radius: 50%;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user