This commit is contained in:
2021-10-25 16:23:23 +08:00
parent 2bc9ea63c0
commit ad67333bbf
17 changed files with 202 additions and 218 deletions

View File

@@ -9,7 +9,7 @@
签到成功
</view>
<view class="signPop-cont-text">
能量碎片<view class="signPop-cont-number">+{{sign.signSuccess}}</view>
积分<view class="signPop-cont-number">+{{sign.signSuccess}}</view>
</view>
</view>
</view>
@@ -17,7 +17,7 @@
<!-- 签到 -->
<view class="signCont">
<view class="content-title">发现更多</view>
<view class="content-sumite">海量能量碎片等你解锁</view>
<view class="content-sumite">海量积分等你解锁</view>
<view class="sign">
<view class="sign-list" :class="{ active: item.sign }" v-for="(item, index) in sign.signArr"
:key="index">
@@ -39,25 +39,25 @@
</view>
</view>
</view>
<view class="sign-record">再签到{{ sign.nextTask.day }}天额外赠送{{ sign.nextTask.diff }}能量碎片</view>
<view class="sign-record">再签到{{ sign.nextTask.day }}天额外赠送{{ sign.nextTask.diff }}积分</view>
</view>
<view class="signBtn">
<block v-if="sign.signCan">
<view class="signBtn-go" @click="signClick" style="cursor:pointer">
<u-icon name="calendar-fill" color="#333" size="40" />
签到领取能量碎片
签到领取积分
</view>
</block>
<block v-else>
<view class="signBtn-go" @click="$Router.push({name:'Fragment'})">
能量碎片记录<image class="signBtn-go-icon" src="/static/user/sign_arrow.png" mode="aspectFill"></image>
积分记录<image class="signBtn-go-icon" src="/static/user/sign_arrow.png" mode="aspectFill"></image>
</view>
</block>
</view>
<!-- 水晶任务 -->
<view class="task">
<view class="task-liest">
能量碎片任务
积分任务
</view>
<block v-for="(item, index) in task" :key="index">
<view class="task-item" v-if="item.rule.name != 'sign_crystal'"
@@ -144,10 +144,10 @@
})
},
// 能量碎片提示信息
// 积分提示信息
showHelp() {
uni.showModal({
title: '能量碎片',
title: '积分',
confirmColor: '#8b64fd',
content: this.energyShard.description,
showCancel: false

View File

@@ -6,10 +6,10 @@
<view class="header-total ios-top">
<view class="total">
<view class="item nowrap" @click="navAccount('walletProperty')">
<image src="@/static/icons/gemstone-icon.png" />{{isAuth ? '能量球' + account.coin : '查看能量球'}}
<image src="@/static/icons/gemstone-icon.png" />{{isAuth ? '通证' + account.coin : '查看通证'}}
</view>
<view class="item nowrap" @click="navAccount('Fragment')">
<image src="@/static/icons/crystal-icon.png" />{{isAuth ? '能量碎片' + account.crystal : '查看能量碎片'}}
<image src="@/static/icons/crystal-icon.png" />{{isAuth ? '积分' + account.crystal : '查看积分'}}
</view>
</view>
</view>
@@ -58,35 +58,35 @@
<image :src="item.cover" />
</view>
<view class="title nowrap">{{item.title}}</view>
<view class="submit-title nowrap">能量碎片{{item.tips}}</view>
<view class="submit-title nowrap">积分{{item.tips}}</view>
</view>
</scroll-view>
<!-- 平台概况 -->
<view class="situation">
<view class="header">
<view class="header-item">
<view class="title">平台能量球余量
<view class="title">平台通证余量
<uni-icons class="help-icon" @click="showHelp('balance')" type="help-filled" size="15"
color="rgba(255,255,255,.3)" />
</view>
<view class="number nowrap">{{chains.balance}}</view>
</view>
<view class="header-item">
<view class="title">上期发放能量球
<view class="title">上期发放通证
<uni-icons class="help-icon" @click="showHelp('stone')" type="help-filled" size="15"
color="rgba(255,255,255,.3)" />
</view>
<view class="number nowrap">{{chains.stone}}</view>
</view>
<view class="header-item">
<view class="title">当前能量球价值
<view class="title">当前通证价值
<uni-icons class="help-icon" @click="showHelp('up')" type="help-filled" size="15"
color="rgba(255,255,255,.3)" />
</view>
<view class="number nowrap">{{chains.up}}</view>
</view>
<view class="header-item">
<view class="title">昨日瓜分能量碎片
<view class="title">昨日瓜分积分
<uni-icons class="help-icon" @click="showHelp('score')" type="help-filled" size="15"
color="rgba(255,255,255,.3)" />
</view>
@@ -107,9 +107,9 @@
<view class="number nowrap">{{chains.number}}</view>
</view>
</view>
<!-- 平台累计盈利能量球 -->
<!-- 平台累计盈利通证 -->
<view class="chart">
<view class="title">累计盈利和能量球价值走势图</view>
<view class="title">累计盈利和通证价值走势图</view>
<view class="chart-f2">
<l-f2 ref="chartChange"></l-f2>
</view>
@@ -215,14 +215,7 @@
confirmText: pathName === 'vipIndex' ? '去开通' : '去认证',
confirmColor: '#8b64fd',
success: res => {
console.log(pathName)
if (res.confirm) {
// if (pathName === 'setting') {
// this.$Router.pushTab({
// name: pathName
// })
// return
// }
if (pathName === 'vipIndex') {
console.log(this.userAuth.identity)
this.$Router.push({
@@ -241,7 +234,7 @@
}
})
},
// 领取能量碎片
// 领取积分
ledCrystal(index) {
// 播放音频
const innerAudioContext = uni.createInnerAudioContext();
@@ -717,4 +710,4 @@
}
}
}
</style>
</style>

View File

@@ -34,7 +34,7 @@
</swiper>
</view>
<view class="footer">
<view class="hith">朋友通过你的邀请注册成功后将与您绑定好友关系通过成为平台用户你都可以获得能量碎片奖励</view>
<view class="hith">朋友通过你的邀请注册成功后将与您绑定好友关系通过成为平台用户你都可以获得积分奖励</view>
<view class="number">
<view class="title">邀请码 : {{inviteData[0].invite}}</view>
<view class="value" @click="copyCenter(inviteData[0].invite)">复制邀请码</view>

View File

@@ -112,7 +112,7 @@
<view class="userAssets">
<view class="userAssets-top">
<view class="withdraw-name" v-if="userData.account">
当前能量球价值<view class="withdraw-number">{{userData.account.stone_value || 0}}</view>
当前通证价值<view class="withdraw-number">{{userData.account.stone_value || 0}}</view>
</view>
<view class="withdraw-btn" @click="$Router.push({name: 'Extract'})">
去提现
@@ -124,7 +124,7 @@
</view>
<view class="assets-list" v-if="userData.account">
<view class="assets-label" @click="$Router.push({name:'walletProperty'})">
<view class="assets-label-name">能量球钱包
<view class="assets-label-name">通证钱包
<image @click.stop="showHelp('wallet')" class="assets-label-icon"
src="/static/user/userAssets_tips.png" />
</view>
@@ -138,7 +138,7 @@
<view class="assets-label-number">{{userData.account.cash || 0}}</view>
</view>
<view class="assets-label" @click="$Router.push({name:'Fragment'})">
<view class="assets-label-name">能量碎片
<view class="assets-label-name">积分
<image @click.stop="showHelp('chip')" class="assets-label-icon"
src="/static/user/userAssets_tips.png" />
</view>
@@ -383,9 +383,9 @@
},
// 友情提示信息
showHelp(type) {
let title = '能量球',
let title = '通证',
content = this.helpDoc.energy_ball.description
if (type == 'chip') title = '能量碎片'
if (type == 'chip') title = '积分'
if (type == 'chip') content = this.helpDoc.energy_shard.description
uni.showModal({
title: title,

View File

@@ -248,8 +248,9 @@
wechatAppPay(orderId){
vipWechatPay(orderId,{
type: 'app'
}).then(res=>{
}).then(res=>{
let payConfig = JSON.parse(res)
console.log(payConfig,'console.log(res)')
uni.requestPayment({
provider: 'wxpay',
orderInfo: {...payConfig},
@@ -259,13 +260,14 @@
content : "支付成功,已成功开通/升级节点身份",
showCancel : false,
success : ()=> {
this.idenInfo()
this.idenInfo()
}
})
},
fail: payErr => {
fail: payErr => {
console.log(payErr,'console.log(payErr)')
uni.showToast({
title: '支付已被取消',
title: '支付失败,原因:' + payErr.errMsg,
icon : 'none'
})
}

View File

@@ -3,7 +3,7 @@
<view class="propery">
<image src="/static/imgs/account-bg.png" mode="aspectFill" class="record-bg" />
<view class="propery-content">
<view class="currency">能量球钱包
<view class="currency">通证钱包
<span>( {{ cost || '0.00' }} CNY)</span>
</view>
<view class="balance">{{ balance || '0.00' }}</view>
@@ -38,12 +38,12 @@
export default {
data() {
return {
balance: 0, // 钱包能量球数量
balance: 0, // 钱包通证数量
tax: 0, // 当前手续费
cost: 1, // 每个能量球的价格
cost: 1, // 每个通证的价格
total: 0, // 约合人民币
card: '', // 银行卡号
withdraw_input: '', // 提现能量球数量
withdraw_input: '', // 提现通证数量
bank_accounts: 0,
bankInfo: {}
};
@@ -73,7 +73,7 @@
})
})
},
// 输入提现能量球数量
// 输入提现通证数量
inputNum(e) {
let number = Number(e.detail.value)
if (number <= Number(this.balance)) {
@@ -120,7 +120,7 @@
}
if (data.amount === 0) {
uni.showToast({
title: '请输入能量球数量',
title: '请输入通证数量',
icon: 'none'
})
return;

View File

@@ -44,12 +44,12 @@
export default {
data() {
return {
balance: 0, // 钱包能量球金额
balance: 0, // 钱包通证金额
tax: 0, // 当前手续费
cost: 1, // 每个能量球的价格
cost: 1, // 每个通证的价格
total: 0, // 约合人民币
card: '', // 银行卡号
withdraw_input: '', // 提现能量球金额
withdraw_input: '', // 提现通证金额
bank_accounts: 0,
bankInfo: {}
};
@@ -81,7 +81,7 @@
})
})
},
// 输入提现能量球金额
// 输入提现通证金额
inputNum(e) {
let number = Number(e.detail.value)
console.log(number, this.balance)
@@ -140,7 +140,7 @@
}
if (data.amount === 0) {
uni.showToast({
title: '请输入能量球金额',
title: '请输入通证金额',
icon: 'none'
})
return;

View File

@@ -3,7 +3,7 @@
<view class="propery">
<image src="/static/imgs/account-bg.png" mode="aspectFill" class="record-bg" />
<view class="propery-content">
<view class="currency">能量球钱包
<view class="currency">通证钱包
<span>( {{ price || '0.00' }} CNY)</span>
</view>
<view class="balance">{{ balance.balance || '0.00' }}</view>
@@ -11,7 +11,7 @@
<view class="balance-flex">
<view class="balance-flex-item" @click="showAddress">区块链地址</view>
<!-- <view class="balance-flex-item" @click="showPrivatekey('privatekey')">我的私钥</view> -->
<view class="balance-flex-item" @click="$Router.push({name: 'Extract'})">能量球转红包</view>
<view class="balance-flex-item" @click="$Router.push({name: 'Extract'})">通证转红包</view>
</view>
</view>
</view>

View File

@@ -11,7 +11,7 @@
</view>
<view class="record-mouth-year">
<view class="record-type-right">
<view class="record-title">当前能量球
<view class="record-title">当前通证
<view class="record-type-left">
<u-picker mode="time" v-model="show" :params="params" @confirm='confirm' title='筛选日期'
start-year='2021' :end-year='currentYear' />