免责声明添加,修改密码功能完善,改文字提示等相关内容调整
This commit is contained in:
@@ -67,7 +67,7 @@ const setpassword = data => {
|
||||
// 获取验证码
|
||||
const getSms = data => {
|
||||
return request({
|
||||
url: 'user/transaction/setpassword/sms',
|
||||
url: 'user/transaction/setpassword/smsnew',
|
||||
method: 'POST'
|
||||
})
|
||||
}
|
||||
|
||||
@@ -18,7 +18,8 @@ const info = () =>{
|
||||
const chainSeed = (data) => {
|
||||
return request({
|
||||
url: 'chain/safe/seed',
|
||||
data
|
||||
data,
|
||||
method: 'POST'
|
||||
})
|
||||
}
|
||||
|
||||
|
||||
@@ -51,10 +51,12 @@
|
||||
let outTime;
|
||||
let smsTime = 60;
|
||||
getSms().then(res => {
|
||||
console.log(res)
|
||||
uni.showToast({
|
||||
title: res,
|
||||
title: res.message,
|
||||
icon: "none",
|
||||
});
|
||||
this.phone = res.mobile
|
||||
this.getCodeState = true;
|
||||
this.sendCode = smsTime + 's后重新获取';
|
||||
outTime = setInterval(() => {
|
||||
@@ -94,10 +96,11 @@
|
||||
password: this.password,
|
||||
password_confirmation: this.verify,
|
||||
code: this.code
|
||||
}).then(res => {
|
||||
}).then(res => {
|
||||
console.log(res)
|
||||
uni.showModal({
|
||||
title: '提示',
|
||||
content: '支付密码设置成功',
|
||||
content: res,
|
||||
showCancel:false,
|
||||
success: res=> {
|
||||
uni.navigateBack()
|
||||
|
||||
@@ -63,9 +63,7 @@
|
||||
</view>
|
||||
<view class="capacity-block-text " v-if="item.remark">{{item.remark}}</view>
|
||||
</view>
|
||||
<view class="capacity-hint">
|
||||
PS产品设置每100个共力值或共建值可以加速5%的角色产率;
|
||||
</view>
|
||||
<view class="capacity-hint"> 用户须知:用户所产生共力分,在每日结算时,平台会扣除30%的共力分用于平台运营使用。 </view>
|
||||
</view>
|
||||
</template>
|
||||
|
||||
|
||||
@@ -20,7 +20,7 @@
|
||||
</view>
|
||||
|
||||
<view class="rank_update_time" v-if="lists.length > 0">
|
||||
<view class="title"> 加成{{type === '1'?'有效':'生效'}}倒计时 : </view>
|
||||
<view class="title"> 加成{{type === '1'?' 结束':'生效'}}倒计时 : </view>
|
||||
<u-count-down :time="end_timestamp" format="DD:HH:mm:ss" autoStart millisecond @change="onChange">
|
||||
<view class="time">
|
||||
<view class="time__item">
|
||||
|
||||
@@ -5,7 +5,7 @@
|
||||
<image src="@/static/user/user_back.png" mode="aspectFill" />
|
||||
<view class="user-flex">
|
||||
<image class="cover" @click="onBtn('Setting', {})"
|
||||
:src="userInfo.avatar || require('@/static/user/cover.png')" mode="aspectFill" />
|
||||
:src="userInfo.avatar || require('@/static/user/cover.png')" mode="aspectFill" />
|
||||
|
||||
<view class="user-content">
|
||||
<view class="name">{{ userInfo.nickname }}</view>
|
||||
@@ -24,8 +24,8 @@
|
||||
<!-- 会员卡 -->
|
||||
<view class="vip-card">
|
||||
<view class="title" @click="onNum">
|
||||
<image src="@/static/user/icon_06.png" mode="widthFix"/>
|
||||
{{serial === '' ? '共力会员': 'NO:' + serial}}
|
||||
<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">
|
||||
@@ -43,63 +43,63 @@
|
||||
<view class="title">DT积分</view>
|
||||
<view class="num">{{account.dt}}</view>
|
||||
</view>
|
||||
</view>
|
||||
<!-- 计时器 -->
|
||||
<view class="onTime">
|
||||
<u-count-down ref="onTimeCount" :time="2000" @finish="walletNum = 0" :autoStart="false"></u-count-down>
|
||||
</view>
|
||||
</view>
|
||||
<!-- 计时器 -->
|
||||
<view class="onTime">
|
||||
<u-count-down ref="onTimeCount" :time="2000" @finish="walletNum = 0" :autoStart="false"></u-count-down>
|
||||
</view>
|
||||
<!-- 订单 -->
|
||||
<view class="order-box">
|
||||
<view class="order-box-item" @click="onBtn('Order', { index: 0 })">
|
||||
<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="number" v-show="order.init > 0">{{order.init}}</view>
|
||||
<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="number" v-show="order.paid > 0">{{order.paid}}</view>
|
||||
<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="number" v-show="order.delivered > 0">{{order.delivered}}</view>
|
||||
<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="number" v-show="order.refund > 0">{{order.refund}}</view>
|
||||
<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>
|
||||
</view>
|
||||
<!-- 功能块 -->
|
||||
<view class="btns-box" v-if="isWallet">
|
||||
<view class="btns-box-item" @click="onBtn('AccountIntegral', {})">
|
||||
<image class="icon" src="@/static/user/userIcon_10.png" mode="widthFix" />
|
||||
共力分钱包
|
||||
<uni-icons class="forward" type="forward" color="#999" />
|
||||
</view>
|
||||
<view class="btns-box-item" @click="onBtn('AccountDt', {})">
|
||||
<image class="icon" src="@/static/user/userIcon_01.png" mode="widthFix" />
|
||||
DT积分钱包
|
||||
<uni-icons class="forward" type="forward" color="#999" />
|
||||
</view>
|
||||
<view class="btns-box-item" @click="onMnemonic">
|
||||
<image class="icon" src="@/static/user/userIcon_02.png" mode="widthFix" />
|
||||
导出助记词
|
||||
<uni-icons class="forward" type="forward" color="#999" />
|
||||
</view>
|
||||
<block v-if="canSeeData">
|
||||
<view class="btns-box-item" @click="onBtn('DataBoard', {})">
|
||||
<image class="icon" src="@/static/user/userIcon_12.png" mode="widthFix" />
|
||||
平台数据看板
|
||||
<uni-icons class="forward" type="forward" color="#999" />
|
||||
</view>
|
||||
</block>
|
||||
</view>
|
||||
<!-- 功能块 -->
|
||||
<view class="btns-box" v-if="isWallet">
|
||||
<view class="btns-box-item" @click="onBtn('AccountIntegral', {})">
|
||||
<image class="icon" src="@/static/user/userIcon_10.png" mode="widthFix" />
|
||||
共力分钱包
|
||||
<uni-icons class="forward" type="forward" color="#999" />
|
||||
</view>
|
||||
<view class="btns-box-item" @click="onBtn('AccountDt', {})">
|
||||
<image class="icon" src="@/static/user/userIcon_01.png" mode="widthFix" />
|
||||
DT积分钱包
|
||||
<uni-icons class="forward" type="forward" color="#999" />
|
||||
</view>
|
||||
<view class="btns-box-item" @click="onMnemonic">
|
||||
<image class="icon" src="@/static/user/userIcon_02.png" mode="widthFix" />
|
||||
导出助记词
|
||||
<uni-icons class="forward" type="forward" color="#999" />
|
||||
</view>
|
||||
<block v-if="canSeeData">
|
||||
<view class="btns-box-item" @click="onBtn('DataBoard', {})">
|
||||
<image class="icon" src="@/static/user/userIcon_12.png" mode="widthFix" />
|
||||
平台数据看板
|
||||
<uni-icons class="forward" type="forward" color="#999" />
|
||||
</view>
|
||||
</block>
|
||||
</view>
|
||||
<view class="btns-box">
|
||||
<view class="btns-box-item" @click="onBtn('Address', { type: 'edit' })">
|
||||
<image class="icon" src="@/static/user/userIcon_03.png" mode="widthFix" />
|
||||
@@ -110,12 +110,17 @@
|
||||
<image class="icon" src="@/static/user/userIcon_07.png" mode="widthFix" />
|
||||
分享邀请
|
||||
<uni-icons class="forward" type="forward" color="#999" />
|
||||
</view>
|
||||
<view class="btns-box-item" @click="onBtn('Supplier', {})">
|
||||
<image class="icon" src="@/static/user/userIcon_09.png" mode="widthFix" />
|
||||
供应商入驻
|
||||
<uni-icons class="forward" type="forward" color="#999" />
|
||||
</view>
|
||||
</view>
|
||||
<view class="btns-box-item" @click="onBtn('Supplier', {})">
|
||||
<image class="icon" src="@/static/user/userIcon_09.png" mode="widthFix" />
|
||||
供应商入驻
|
||||
<uni-icons class="forward" type="forward" color="#999" />
|
||||
</view>
|
||||
<view class="btns-box-item" @click="resetPassword">
|
||||
<image class="icon" src="@/static/user/userIcon_13.png" mode="widthFix" />
|
||||
{{hasPassword ? '修改' : '设置'}}支付密码
|
||||
<uni-icons class="forward" type="forward" color="#999" />
|
||||
</view>
|
||||
</view>
|
||||
<view class="btns-box">
|
||||
<view class="btns-box-item" @click="onBtn('Feedback', {})">
|
||||
@@ -128,6 +133,11 @@
|
||||
版本更新
|
||||
<uni-icons class="forward" type="forward" color="#999" />
|
||||
</view>
|
||||
<view class="btns-box-item" @click="mianze">
|
||||
<image class="icon" src="@/static/user/userIcon_02.png" mode="widthFix" />
|
||||
免责声明
|
||||
<uni-icons class="forward" type="forward" color="#999" />
|
||||
</view>
|
||||
<view class="btns-box-item" @click="logOut" v-if="$store.state.token != ''">
|
||||
<image class="icon" src="@/static/user/userIcon_05.png" mode="widthFix" />
|
||||
退出登录
|
||||
@@ -149,275 +159,297 @@
|
||||
mode="widthFix"></image>
|
||||
</view>
|
||||
</slot>
|
||||
</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="number" password v-model="iv" maxlength="10"
|
||||
placeholder="输入支付密码" />
|
||||
</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="number" password v-model="iv" maxlength="10"
|
||||
placeholder="输入支付密码" />
|
||||
</view>
|
||||
</slot>
|
||||
</u-modal>
|
||||
</view>
|
||||
</template>
|
||||
|
||||
<script>
|
||||
import {
|
||||
info,
|
||||
chainSeed
|
||||
} from '@/apis/interfaces/user';
|
||||
import {
|
||||
payPassword
|
||||
} from '@/apis/interfaces/account.js'
|
||||
import {
|
||||
getVersions
|
||||
} from '@/apis/interfaces/versions.js'
|
||||
export default {
|
||||
data() {
|
||||
return {
|
||||
cardText: [],
|
||||
userInfo: {
|
||||
nickname : '',
|
||||
addr : '',
|
||||
avatar : '',
|
||||
isOpenVip : '',
|
||||
},
|
||||
identity : {
|
||||
button_cover_url: '',
|
||||
cover_url : '',
|
||||
identity_text : ''
|
||||
},
|
||||
account : {
|
||||
glz : 0.00,
|
||||
dt : 0.00
|
||||
},
|
||||
mnemonic : '',
|
||||
wordsShow: false,
|
||||
order : {
|
||||
init : 0,
|
||||
paid : 0,
|
||||
delivered: 0,
|
||||
refund : 0
|
||||
},
|
||||
serial : '',
|
||||
hasPassword : false,
|
||||
showIv : false,
|
||||
iv : '',
|
||||
// 是否显示钱包
|
||||
isWallet : false,
|
||||
walletNum : 0,
|
||||
// 数据看板权限
|
||||
canSeeData : false
|
||||
};
|
||||
},
|
||||
onShow() {
|
||||
// if(uni.getStorageSync('isWalleNum') != '' && uni.getStorageSync('isWalleNum') === 1) this.isWallet = true
|
||||
this.getInfo();
|
||||
},
|
||||
methods: {
|
||||
// 用户信息
|
||||
getInfo() {
|
||||
if (this.$store.state.token === '') return;
|
||||
info().then(res => {
|
||||
uni.setNavigationBarTitle({
|
||||
title: res.nickname
|
||||
});
|
||||
this.canSeeData = res.can_see_data
|
||||
this.order = res.order
|
||||
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.serial = res.serial
|
||||
this.hasPassword = res.has_transfer_password
|
||||
})
|
||||
.catch(err => {
|
||||
uni.showToast({
|
||||
title: err.message,
|
||||
icon: 'none'
|
||||
});
|
||||
});
|
||||
},
|
||||
// 导出助记词
|
||||
onMnemonic(){
|
||||
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({
|
||||
title: err.message,
|
||||
icon : 'none'
|
||||
})
|
||||
})
|
||||
},
|
||||
// 按钮导航
|
||||
onBtn(name, params) {
|
||||
this.$Router.push({
|
||||
name,
|
||||
params
|
||||
});
|
||||
},
|
||||
// 退出登录
|
||||
logOut() {
|
||||
uni.removeStorageSync('isnew')
|
||||
// uni.removeStorageSync('isWalleNum')
|
||||
this.$store.commit('setToken', '');
|
||||
this.$Router.replaceAll({name: 'Auth'})
|
||||
},
|
||||
// 复制
|
||||
copy(data) {
|
||||
uni.setClipboardData({
|
||||
data: data,
|
||||
success: function() {
|
||||
uni.showToast({
|
||||
title: '复制成功',
|
||||
icon: 'none',
|
||||
mask: true,
|
||||
duration: 2000
|
||||
})
|
||||
}
|
||||
});
|
||||
},
|
||||
// 连续点击
|
||||
onNum(){
|
||||
if(this.isWallet){
|
||||
return
|
||||
}
|
||||
this.walletNum++
|
||||
this.$refs.onTimeCount.reset();
|
||||
this.$refs.onTimeCount.start();
|
||||
if(this.walletNum >= 7){
|
||||
uni.showToast({
|
||||
title: '已开启共力钱包',
|
||||
icon : 'none'
|
||||
})
|
||||
this.isWallet = true
|
||||
this.walletNum = 0
|
||||
this.$refs.onTimeCount.pause();
|
||||
// uni.setStorageSync('isWalleNum', 1)
|
||||
}
|
||||
},
|
||||
// 复制助记词
|
||||
copyWord() {
|
||||
uni.setClipboardData({
|
||||
data: this.mnemonic,
|
||||
success: () => {
|
||||
this.wordsShow = false
|
||||
uni.showToast({
|
||||
title: '助记词已复制',
|
||||
icon: 'none',
|
||||
mask: true
|
||||
})
|
||||
}
|
||||
});
|
||||
},
|
||||
// 检查版本更新
|
||||
updateApp(){
|
||||
uni.showLoading({
|
||||
title: '检查更新'
|
||||
})
|
||||
//#ifdef APP-PLUS
|
||||
// 获取系统版本号
|
||||
getVersions({
|
||||
platform: plus.os.name,
|
||||
version : plus.runtime.version
|
||||
}).then(res => {
|
||||
uni.hideLoading()
|
||||
if (res.update) {
|
||||
uni.showModal({
|
||||
title: "更新提示",
|
||||
content: res.note || '版本更新信息',
|
||||
confirmText: "更新",
|
||||
success: modalRes => {
|
||||
if (modalRes.confirm) {
|
||||
if (plus.os.name == "Android") {
|
||||
uni.showToast({
|
||||
title: '新版本下载中,将在下载完成后自动为您安装更新包',
|
||||
icon: 'none'
|
||||
})
|
||||
uni.downloadFile({
|
||||
url: res.info.download,
|
||||
success: apkPick => {
|
||||
plus.runtime.install(apkPick
|
||||
.tempFilePath, '',
|
||||
installRES => {
|
||||
// 安装完成用于提示新版本引导,暂时无用
|
||||
}, installERR => {
|
||||
// 安装失败
|
||||
})
|
||||
},
|
||||
fail(err) {
|
||||
uni.showToast({
|
||||
title: '安装包下载失败,请检查您的网络或稍后重试',
|
||||
icon: 'none'
|
||||
})
|
||||
}
|
||||
})
|
||||
} else {
|
||||
uni.showToast({
|
||||
title: 'IOS应用暂未上架,请打开测试(TestFlight)工具点击更新',
|
||||
icon: 'none'
|
||||
})
|
||||
}
|
||||
}
|
||||
}
|
||||
})
|
||||
return
|
||||
}
|
||||
uni.showModal({
|
||||
title : "提示",
|
||||
content : "当前已是最新版本",
|
||||
showCancel : false,
|
||||
})
|
||||
}).catch(err => {
|
||||
uni.showToast({
|
||||
title: err.message,
|
||||
icon: 'none'
|
||||
})
|
||||
})
|
||||
//#endif
|
||||
}
|
||||
}
|
||||
};
|
||||
import {
|
||||
info,
|
||||
chainSeed
|
||||
} from '@/apis/interfaces/user';
|
||||
import {
|
||||
payPassword
|
||||
} from '@/apis/interfaces/account.js'
|
||||
import {
|
||||
getVersions
|
||||
} from '@/apis/interfaces/versions.js'
|
||||
export default {
|
||||
data() {
|
||||
return {
|
||||
cardText: [],
|
||||
userInfo: {
|
||||
nickname: '',
|
||||
addr: '',
|
||||
avatar: '',
|
||||
isOpenVip: '',
|
||||
},
|
||||
identity: {
|
||||
button_cover_url: '',
|
||||
cover_url: '',
|
||||
identity_text: ''
|
||||
},
|
||||
account: {
|
||||
glz: 0.00,
|
||||
dt: 0.00
|
||||
},
|
||||
mnemonic: '',
|
||||
wordsShow: false,
|
||||
order: {
|
||||
init: 0,
|
||||
paid: 0,
|
||||
delivered: 0,
|
||||
refund: 0
|
||||
},
|
||||
serial: '',
|
||||
hasPassword: false,
|
||||
showIv: false,
|
||||
iv: '',
|
||||
// 是否显示钱包
|
||||
isWallet: false,
|
||||
walletNum: 0,
|
||||
// 数据看板权限
|
||||
canSeeData: false
|
||||
};
|
||||
},
|
||||
onShow() {
|
||||
// if(uni.getStorageSync('isWalleNum') != '' && uni.getStorageSync('isWalleNum') === 1) this.isWallet = true
|
||||
this.getInfo();
|
||||
},
|
||||
methods: {
|
||||
// 用户信息
|
||||
getInfo() {
|
||||
if (this.$store.state.token === '') return;
|
||||
info().then(res => {
|
||||
uni.setNavigationBarTitle({
|
||||
title: res.nickname
|
||||
});
|
||||
this.canSeeData = res.can_see_data
|
||||
this.order = res.order
|
||||
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.serial = res.serial
|
||||
this.hasPassword = res.has_transfer_password
|
||||
})
|
||||
.catch(err => {
|
||||
uni.showToast({
|
||||
title: err.message,
|
||||
icon: 'none'
|
||||
});
|
||||
});
|
||||
},
|
||||
// 导出助记词
|
||||
onMnemonic() {
|
||||
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
|
||||
|
||||
},
|
||||
resetPassword(){
|
||||
this.$Router.push({
|
||||
name: 'AccountResetPassword',
|
||||
params: {
|
||||
phone: this.userInfo.username
|
||||
}
|
||||
})
|
||||
},
|
||||
// 验证支付密码
|
||||
validationIv() {
|
||||
chainSeed({
|
||||
transfer_password: this.iv
|
||||
}).then(res => {
|
||||
this.mnemonic = res.seed
|
||||
this.showIv = false
|
||||
this.wordsShow = true
|
||||
this.iv = ''
|
||||
}).catch(err => {
|
||||
uni.showToast({
|
||||
title: err.message,
|
||||
icon: 'none'
|
||||
})
|
||||
})
|
||||
},
|
||||
mianze() {
|
||||
uni.navigateTo({
|
||||
url: 'pages/vip/agreement?id=7'
|
||||
})
|
||||
},
|
||||
// 按钮导航
|
||||
onBtn(name, params) {
|
||||
this.$Router.push({
|
||||
name,
|
||||
params
|
||||
});
|
||||
},
|
||||
// 退出登录
|
||||
logOut() {
|
||||
uni.removeStorageSync('isnew')
|
||||
// uni.removeStorageSync('isWalleNum')
|
||||
this.$store.commit('setToken', '');
|
||||
this.$Router.replaceAll({
|
||||
name: 'Auth'
|
||||
})
|
||||
},
|
||||
// 复制
|
||||
copy(data) {
|
||||
uni.setClipboardData({
|
||||
data: data,
|
||||
success: function() {
|
||||
uni.showToast({
|
||||
title: '复制成功',
|
||||
icon: 'none',
|
||||
mask: true,
|
||||
duration: 2000
|
||||
})
|
||||
}
|
||||
});
|
||||
},
|
||||
// 连续点击
|
||||
onNum() {
|
||||
if (this.isWallet) {
|
||||
return
|
||||
}
|
||||
this.walletNum++
|
||||
this.$refs.onTimeCount.reset();
|
||||
this.$refs.onTimeCount.start();
|
||||
if (this.walletNum >= 7) {
|
||||
uni.showToast({
|
||||
title: '已开启共力钱包',
|
||||
icon: 'none'
|
||||
})
|
||||
this.isWallet = true
|
||||
this.walletNum = 0
|
||||
this.$refs.onTimeCount.pause();
|
||||
// uni.setStorageSync('isWalleNum', 1)
|
||||
}
|
||||
},
|
||||
// 复制助记词
|
||||
copyWord() {
|
||||
uni.setClipboardData({
|
||||
data: this.mnemonic,
|
||||
success: () => {
|
||||
this.wordsShow = false
|
||||
uni.showToast({
|
||||
title: '助记词已复制',
|
||||
icon: 'none',
|
||||
mask: true
|
||||
})
|
||||
}
|
||||
});
|
||||
},
|
||||
// 检查版本更新
|
||||
updateApp() {
|
||||
uni.showLoading({
|
||||
title: '检查更新'
|
||||
})
|
||||
//#ifdef APP-PLUS
|
||||
// 获取系统版本号
|
||||
getVersions({
|
||||
platform: plus.os.name,
|
||||
version: plus.runtime.version
|
||||
}).then(res => {
|
||||
uni.hideLoading()
|
||||
if (res.update) {
|
||||
uni.showModal({
|
||||
title: "更新提示",
|
||||
content: res.note || '版本更新信息',
|
||||
confirmText: "更新",
|
||||
success: modalRes => {
|
||||
if (modalRes.confirm) {
|
||||
if (plus.os.name == "Android") {
|
||||
uni.showToast({
|
||||
title: '新版本下载中,将在下载完成后自动为您安装更新包',
|
||||
icon: 'none'
|
||||
})
|
||||
uni.downloadFile({
|
||||
url: res.info.download,
|
||||
success: apkPick => {
|
||||
plus.runtime.install(apkPick
|
||||
.tempFilePath, '',
|
||||
installRES => {
|
||||
// 安装完成用于提示新版本引导,暂时无用
|
||||
}, installERR => {
|
||||
// 安装失败
|
||||
})
|
||||
},
|
||||
fail(err) {
|
||||
uni.showToast({
|
||||
title: '安装包下载失败,请检查您的网络或稍后重试',
|
||||
icon: 'none'
|
||||
})
|
||||
}
|
||||
})
|
||||
} else {
|
||||
uni.showToast({
|
||||
title: 'IOS应用暂未上架,请打开测试(TestFlight)工具点击更新',
|
||||
icon: 'none'
|
||||
})
|
||||
}
|
||||
}
|
||||
}
|
||||
})
|
||||
return
|
||||
}
|
||||
uni.showModal({
|
||||
title: "提示",
|
||||
content: "当前已是最新版本",
|
||||
showCancel: false,
|
||||
})
|
||||
}).catch(err => {
|
||||
uni.showToast({
|
||||
title: err.message,
|
||||
icon: 'none'
|
||||
})
|
||||
})
|
||||
//#endif
|
||||
}
|
||||
}
|
||||
};
|
||||
</script>
|
||||
|
||||
<style lang="scss" scoped>
|
||||
.onTime{
|
||||
height: 0px;
|
||||
overflow: hidden;
|
||||
}
|
||||
<style lang="scss" scoped>
|
||||
.onTime {
|
||||
height: 0px;
|
||||
overflow: hidden;
|
||||
}
|
||||
|
||||
.content {
|
||||
background: $window-color;
|
||||
min-height: 100vh;
|
||||
@@ -459,7 +491,7 @@
|
||||
border-radius: 50%;
|
||||
border: solid 6rpx white;
|
||||
box-sizing: border-box;
|
||||
z-index: 100;
|
||||
z-index: 100;
|
||||
background-color: #fff;
|
||||
}
|
||||
|
||||
@@ -574,8 +606,8 @@
|
||||
display: flex;
|
||||
justify-content: space-between;
|
||||
|
||||
&-item {
|
||||
position: relative;
|
||||
&-item {
|
||||
position: relative;
|
||||
width: 25%;
|
||||
padding: $padding $padding/2;
|
||||
text-align: center;
|
||||
@@ -589,20 +621,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%;
|
||||
}
|
||||
}
|
||||
|
||||
.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%;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
BIN
static/.DS_Store
vendored
Normal file
BIN
static/.DS_Store
vendored
Normal file
Binary file not shown.
BIN
static/rank.zip
Normal file
BIN
static/rank.zip
Normal file
Binary file not shown.
BIN
static/user/userIcon_13.png
Normal file
BIN
static/user/userIcon_13.png
Normal file
Binary file not shown.
|
After Width: | Height: | Size: 2.8 KiB |
163
unpackage/dist/dev/app-plus/app-service.js
vendored
163
unpackage/dist/dev/app-plus/app-service.js
vendored
File diff suppressed because one or more lines are too long
150
unpackage/dist/dev/app-plus/app-view.js
vendored
150
unpackage/dist/dev/app-plus/app-view.js
vendored
@@ -4071,19 +4071,12 @@ var render = function() {
|
||||
})
|
||||
],
|
||||
1
|
||||
)
|
||||
],
|
||||
1
|
||||
),
|
||||
_c(
|
||||
"v-uni-view",
|
||||
{ staticClass: _vm._$g(71, "sc"), attrs: { _i: 71 } },
|
||||
[
|
||||
),
|
||||
_c(
|
||||
"v-uni-view",
|
||||
{
|
||||
staticClass: _vm._$g(72, "sc"),
|
||||
attrs: { _i: 72 },
|
||||
staticClass: _vm._$g(71, "sc"),
|
||||
attrs: { _i: 71 },
|
||||
on: {
|
||||
click: function($event) {
|
||||
return _vm.$handleViewEvent($event)
|
||||
@@ -4092,21 +4085,28 @@ var render = function() {
|
||||
},
|
||||
[
|
||||
_c("v-uni-image", {
|
||||
staticClass: _vm._$g(73, "sc"),
|
||||
staticClass: _vm._$g(72, "sc"),
|
||||
attrs: {
|
||||
src: "/static/user/userIcon_06.png",
|
||||
src: "/static/user/userIcon_13.png",
|
||||
mode: "widthFix",
|
||||
_i: 73
|
||||
_i: 72
|
||||
}
|
||||
}),
|
||||
_vm._v("意见反馈"),
|
||||
_vm._v(_vm._$g(71, "t1-0") + "支付密码"),
|
||||
_c("uni-icons", {
|
||||
staticClass: _vm._$g(74, "sc"),
|
||||
attrs: { _i: 74 }
|
||||
staticClass: _vm._$g(73, "sc"),
|
||||
attrs: { _i: 73 }
|
||||
})
|
||||
],
|
||||
1
|
||||
),
|
||||
)
|
||||
],
|
||||
1
|
||||
),
|
||||
_c(
|
||||
"v-uni-view",
|
||||
{ staticClass: _vm._$g(74, "sc"), attrs: { _i: 74 } },
|
||||
[
|
||||
_c(
|
||||
"v-uni-view",
|
||||
{
|
||||
@@ -4122,12 +4122,12 @@ var render = function() {
|
||||
_c("v-uni-image", {
|
||||
staticClass: _vm._$g(76, "sc"),
|
||||
attrs: {
|
||||
src: "/static/user/userIcon_08.png",
|
||||
src: "/static/user/userIcon_06.png",
|
||||
mode: "widthFix",
|
||||
_i: 76
|
||||
}
|
||||
}),
|
||||
_vm._v("版本更新"),
|
||||
_vm._v("意见反馈"),
|
||||
_c("uni-icons", {
|
||||
staticClass: _vm._$g(77, "sc"),
|
||||
attrs: { _i: 77 }
|
||||
@@ -4135,12 +4135,68 @@ var render = function() {
|
||||
],
|
||||
1
|
||||
),
|
||||
_vm._$g(78, "i")
|
||||
_c(
|
||||
"v-uni-view",
|
||||
{
|
||||
staticClass: _vm._$g(78, "sc"),
|
||||
attrs: { _i: 78 },
|
||||
on: {
|
||||
click: function($event) {
|
||||
return _vm.$handleViewEvent($event)
|
||||
}
|
||||
}
|
||||
},
|
||||
[
|
||||
_c("v-uni-image", {
|
||||
staticClass: _vm._$g(79, "sc"),
|
||||
attrs: {
|
||||
src: "/static/user/userIcon_08.png",
|
||||
mode: "widthFix",
|
||||
_i: 79
|
||||
}
|
||||
}),
|
||||
_vm._v("版本更新"),
|
||||
_c("uni-icons", {
|
||||
staticClass: _vm._$g(80, "sc"),
|
||||
attrs: { _i: 80 }
|
||||
})
|
||||
],
|
||||
1
|
||||
),
|
||||
_c(
|
||||
"v-uni-view",
|
||||
{
|
||||
staticClass: _vm._$g(81, "sc"),
|
||||
attrs: { _i: 81 },
|
||||
on: {
|
||||
click: function($event) {
|
||||
return _vm.$handleViewEvent($event)
|
||||
}
|
||||
}
|
||||
},
|
||||
[
|
||||
_c("v-uni-image", {
|
||||
staticClass: _vm._$g(82, "sc"),
|
||||
attrs: {
|
||||
src: "/static/user/userIcon_02.png",
|
||||
mode: "widthFix",
|
||||
_i: 82
|
||||
}
|
||||
}),
|
||||
_vm._v("免责声明"),
|
||||
_c("uni-icons", {
|
||||
staticClass: _vm._$g(83, "sc"),
|
||||
attrs: { _i: 83 }
|
||||
})
|
||||
],
|
||||
1
|
||||
),
|
||||
_vm._$g(84, "i")
|
||||
? _c(
|
||||
"v-uni-view",
|
||||
{
|
||||
staticClass: _vm._$g(78, "sc"),
|
||||
attrs: { _i: 78 },
|
||||
staticClass: _vm._$g(84, "sc"),
|
||||
attrs: { _i: 84 },
|
||||
on: {
|
||||
click: function($event) {
|
||||
return _vm.$handleViewEvent($event)
|
||||
@@ -4149,17 +4205,17 @@ var render = function() {
|
||||
},
|
||||
[
|
||||
_c("v-uni-image", {
|
||||
staticClass: _vm._$g(79, "sc"),
|
||||
staticClass: _vm._$g(85, "sc"),
|
||||
attrs: {
|
||||
src: "/static/user/userIcon_05.png",
|
||||
mode: "widthFix",
|
||||
_i: 79
|
||||
_i: 85
|
||||
}
|
||||
}),
|
||||
_vm._v("退出登录"),
|
||||
_c("uni-icons", {
|
||||
staticClass: _vm._$g(80, "sc"),
|
||||
attrs: { _i: 80 }
|
||||
staticClass: _vm._$g(86, "sc"),
|
||||
attrs: { _i: 86 }
|
||||
})
|
||||
],
|
||||
1
|
||||
@@ -4170,10 +4226,10 @@ var render = function() {
|
||||
),
|
||||
_c(
|
||||
"v-uni-view",
|
||||
{ staticClass: _vm._$g(81, "sc"), attrs: { _i: 81 } },
|
||||
{ staticClass: _vm._$g(87, "sc"), attrs: { _i: 87 } },
|
||||
[
|
||||
_c("v-uni-view", { attrs: { _i: 82 } }, [_vm._v("共力生态")]),
|
||||
_c("v-uni-view", { attrs: { _i: 83 } }, [
|
||||
_c("v-uni-view", { attrs: { _i: 88 } }, [_vm._v("共力生态")]),
|
||||
_c("v-uni-view", { attrs: { _i: 89 } }, [
|
||||
_vm._v("The total force ecological")
|
||||
])
|
||||
],
|
||||
@@ -4182,7 +4238,7 @@ var render = function() {
|
||||
_c(
|
||||
"u-modal",
|
||||
{
|
||||
attrs: { _i: 84 },
|
||||
attrs: { _i: 90 },
|
||||
on: {
|
||||
confirm: function($event) {
|
||||
return _vm.$handleViewEvent($event)
|
||||
@@ -4195,16 +4251,16 @@ var render = function() {
|
||||
[
|
||||
_c(
|
||||
"v-uni-view",
|
||||
{ staticClass: _vm._$g(86, "sc"), attrs: { _i: 86 } },
|
||||
{ staticClass: _vm._$g(92, "sc"), attrs: { _i: 92 } },
|
||||
[
|
||||
_c(
|
||||
"v-uni-view",
|
||||
{ staticClass: _vm._$g(87, "sc"), attrs: { _i: 87 } },
|
||||
{ staticClass: _vm._$g(93, "sc"), attrs: { _i: 93 } },
|
||||
[_vm._v("导出助记词")]
|
||||
),
|
||||
_c(
|
||||
"v-uni-view",
|
||||
{ staticClass: _vm._$g(88, "sc"), attrs: { _i: 88 } },
|
||||
{ staticClass: _vm._$g(94, "sc"), attrs: { _i: 94 } },
|
||||
[
|
||||
_vm._v(
|
||||
"请务必抄下助记词并存在安全的地方,若助记词丢失,重装或换设备登录时将无法查看历史消息!若助记词被他人获取,将可能获取你的信息!"
|
||||
@@ -4213,15 +4269,15 @@ var render = function() {
|
||||
),
|
||||
_c(
|
||||
"v-uni-view",
|
||||
{ staticClass: _vm._$g(89, "sc"), attrs: { _i: 89 } },
|
||||
[_vm._v(_vm._$g(89, "t0-0"))]
|
||||
{ staticClass: _vm._$g(95, "sc"), attrs: { _i: 95 } },
|
||||
[_vm._v(_vm._$g(95, "t0-0"))]
|
||||
),
|
||||
_c("v-uni-image", {
|
||||
staticClass: _vm._$g(90, "sc"),
|
||||
staticClass: _vm._$g(96, "sc"),
|
||||
attrs: {
|
||||
src: "/static/icon/userCloes.png",
|
||||
mode: "widthFix",
|
||||
_i: 90
|
||||
_i: 96
|
||||
},
|
||||
on: {
|
||||
click: function($event) {
|
||||
@@ -4233,7 +4289,7 @@ var render = function() {
|
||||
1
|
||||
)
|
||||
],
|
||||
{ _i: 85 }
|
||||
{ _i: 91 }
|
||||
)
|
||||
],
|
||||
2
|
||||
@@ -4241,7 +4297,7 @@ var render = function() {
|
||||
_c(
|
||||
"u-modal",
|
||||
{
|
||||
attrs: { _i: 91 },
|
||||
attrs: { _i: 97 },
|
||||
on: {
|
||||
confirm: function($event) {
|
||||
return _vm.$handleViewEvent($event)
|
||||
@@ -4257,22 +4313,22 @@ var render = function() {
|
||||
[
|
||||
_c(
|
||||
"v-uni-view",
|
||||
{ staticClass: _vm._$g(93, "sc"), attrs: { _i: 93 } },
|
||||
{ staticClass: _vm._$g(99, "sc"), attrs: { _i: 99 } },
|
||||
[
|
||||
_c("v-uni-input", {
|
||||
staticClass: _vm._$g(94, "sc"),
|
||||
staticClass: _vm._$g(100, "sc"),
|
||||
attrs: {
|
||||
focus: true,
|
||||
type: "number",
|
||||
password: true,
|
||||
maxlength: "10",
|
||||
placeholder: "输入支付密码",
|
||||
_i: 94
|
||||
_i: 100
|
||||
},
|
||||
model: {
|
||||
value: _vm._$g(94, "v-model"),
|
||||
value: _vm._$g(100, "v-model"),
|
||||
callback: function($$v) {
|
||||
_vm.$handleVModelEvent(94, $$v)
|
||||
_vm.$handleVModelEvent(100, $$v)
|
||||
},
|
||||
expression: "iv"
|
||||
}
|
||||
@@ -4281,7 +4337,7 @@ var render = function() {
|
||||
1
|
||||
)
|
||||
],
|
||||
{ _i: 92 }
|
||||
{ _i: 98 }
|
||||
)
|
||||
],
|
||||
2
|
||||
@@ -24246,7 +24302,9 @@ var render = function() {
|
||||
)
|
||||
}),
|
||||
_c("v-uni-view", { staticClass: _vm._$g(48, "sc"), attrs: { _i: 48 } }, [
|
||||
_vm._v("PS产品设置每100个共力值或共建值可以加速5%的角色产率;")
|
||||
_vm._v(
|
||||
"用户须知:用户所产生共力分,在每日结算时,平台会扣除30%的共力分用于平台运营使用。"
|
||||
)
|
||||
])
|
||||
],
|
||||
2
|
||||
|
||||
Reference in New Issue
Block a user