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

@@ -138,7 +138,7 @@ const keyrules = () => {
})
}
// 能量球转红包前置,获取能量球的基本信息
// 通证转红包前置,获取通证的基本信息
const accountCashs = (data) => {
return request({
url: 'user/account/cashs',

View File

@@ -82,7 +82,7 @@ const withdrawsIndexLists = (data) => {
})
}
// 能量碎片记录
// 积分记录
const userAccoutScores = (data) => {
return request({
url: 'user/account/scores',
@@ -91,7 +91,7 @@ const withdrawsIndexLists = (data) => {
})
}
// 能量球转红包前置
// 通证转红包前置
const cashsCreate = () => {
return request({
url: 'user/account/cashs/create',
@@ -99,7 +99,7 @@ const withdrawsIndexLists = (data) => {
})
}
// 能量球转红包
// 通证转红包
const accountCashs = (data) => {
return request({
url: 'user/account/cashs',

View File

@@ -2,7 +2,7 @@
<view>
<block v-if="list.length > 0">
<view class="record--item" v-for="(item, index) in list" :key="index" v-if="item && !hash">
<view class="title ellipsis-1">{{item.rule.title}} <span> {{item.coin?' ('+item.coin+'个能量球) ':''}} </span></view>
<view class="title ellipsis-1">{{item.rule.title}} <span> {{item.coin?' ('+item.coin+'个通证) ':''}} </span></view>
<view class="time ellipsis-1">{{item.created_at || '-'}}</view>
<view class="webkit-box variation">
<view class="ellipsis" :class="item.amount<0 ? 'add': 'remove'">{{item.amount}}</view>

View File

@@ -242,7 +242,7 @@
"path": "pages/wallet/property",
"name": "walletProperty",
"style": {
"navigationBarTitleText": "能量钱包",
"navigationBarTitleText": "通证钱包",
"enablePullDownRefresh": false,
"navigationBarTextStyle": "white",
"navigationBarBackgroundColor":"#976dff"
@@ -261,7 +261,7 @@
"path": "pages/wallet/extract",
"name": "Extract",
"style": {
"navigationBarTitleText": "提现能量",
"navigationBarTitleText": "提现通证",
"enablePullDownRefresh": false,
"navigationBarBackgroundColor": "#976dff",
"navigationBarTextStyle": "white"
@@ -376,7 +376,7 @@
"path": "pages/wallet/fragment",
"name": "Fragment",
"style": {
"navigationBarTitleText": "能量碎片记录",
"navigationBarTitleText": "积分记录",
"enablePullDownRefresh": false,
"navigationBarBackgroundColor": "#774ffd",
"navigationBarTextStyle": "white"
@@ -434,7 +434,7 @@
"spacing": "0",
"height": "60px",
"list": [{
"text": "发现能量",
"text": "发现通证",
"iconPath": "static/tabBar/tabBar_icon_00.png",
"selectedIconPath": "static/tabBar/tabBar_show_00.png",
"pagePath": "pages/index/index"

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();

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

@@ -250,6 +250,7 @@
type: 'app'
}).then(res=>{
let payConfig = JSON.parse(res)
console.log(payConfig,'console.log(res)')
uni.requestPayment({
provider: 'wxpay',
orderInfo: {...payConfig},
@@ -264,8 +265,9 @@
})
},
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' />

File diff suppressed because one or more lines are too long

View File

@@ -240,7 +240,7 @@ var render = function() {
4,
"t1-0",
_vm._s(
_vm.isAuth ? "能量球" + _vm.account.coin : "查看能量球"
_vm.isAuth ? "通证" + _vm.account.coin : "查看通证"
)
)
)
@@ -264,9 +264,7 @@ var render = function() {
6,
"t1-0",
_vm._s(
_vm.isAuth
? "能量碎片" + _vm.account.crystal
: "查看能量碎片"
_vm.isAuth ? "积分" + _vm.account.crystal : "查看积分"
)
)
)
@@ -2313,17 +2311,10 @@ var _default = { components: { lF2: _limeF.default }, data: function data() {ret
certification: false, company: false, vip: false } };}, onShow: function onShow() {this.isAuth = this.$store.state.token != '';this.getIndex();}, methods: { // 求助信息
showHelp: function showHelp(key) {uni.showModal({ title: '提示', content: this.help[key], showCancel: false, confirmColor: '#8b64fd' });}, // 查看钱包账户
navAccount: function navAccount(pathName) {__f__("log", 1111, " at pages/index/index.vue:178");if (!this.isAuth) {this.$Router.push({ name: 'Login' });return;}this.$Router.push({ name: pathName });}, // 发权证
issueGoosd: function issueGoosd() {var _this = this;var typeAuth = '',pathName = '';if (this.userAuth.certification && this.userAuth.company && this.userAuth.vip) {this.$Router.push({ name: 'goodsManagement' });return;} else if (!this.userAuth.certification) {typeAuth = '暂未完成个人认证,无法发布商品权证';pathName = 'Personal';} else if (!this.userAuth.vip) {typeAuth = '暂未开通平台VIP会员节点无法发布商品权证';pathName = 'vipIndex';} else if (!this.userAuth.company) {typeAuth = '企业未认证或企业认证审核中,无法发布商品权证';pathName = 'setting';}uni.showModal({ title: '提示', content: typeAuth, cancelColor: '#555', cancelText: '稍后', confirmText: pathName === 'vipIndex' ? '去开通' : '去认证', confirmColor: '#8b64fd', success: function success(res) {__f__("log", pathName, " at pages/index/index.vue:218");if (res.confirm) {// if (pathName === 'setting') {
// this.$Router.pushTab({
// name: pathName
// })
// return
// }
if (pathName === 'vipIndex') {__f__("log", _this.userAuth.identity, " at pages/index/index.vue:227");_this.$Router.push({ name: 'vipIndex', params: { identity_id: _this.userAuth.identity } });return;}_this.$Router.push({ name: pathName });}} });}, // 领取能量碎片
issueGoosd: function issueGoosd() {var _this = this;var typeAuth = '',pathName = '';if (this.userAuth.certification && this.userAuth.company && this.userAuth.vip) {this.$Router.push({ name: 'goodsManagement' });return;} else if (!this.userAuth.certification) {typeAuth = '暂未完成个人认证,无法发布商品权证';pathName = 'Personal';} else if (!this.userAuth.vip) {typeAuth = '暂未开通平台VIP会员节点无法发布商品权证';pathName = 'vipIndex';} else if (!this.userAuth.company) {typeAuth = '企业未认证或企业认证审核中,无法发布商品权证';pathName = 'setting';}uni.showModal({ title: '提示', content: typeAuth, cancelColor: '#555', cancelText: '稍后', confirmText: pathName === 'vipIndex' ? '去开通' : '去认证', confirmColor: '#8b64fd', success: function success(res) {if (res.confirm) {if (pathName === 'vipIndex') {__f__("log", _this.userAuth.identity, " at pages/index/index.vue:220");_this.$Router.push({ name: 'vipIndex', params: { identity_id: _this.userAuth.identity } });return;}_this.$Router.push({ name: pathName });}} });}, // 领取积分
ledCrystal: function ledCrystal(index) {var _this2 = this; // 播放音频
var innerAudioContext = uni.createInnerAudioContext();innerAudioContext.autoplay = true;innerAudioContext.src = __webpack_require__(/*! @/static/mp3/crystal.mp3 */ 43); // 请求接口
(0, _chain.thawlog)({ thaw_id: this.crystalArr[index].log_id, all_ids: this.allIds }).then(function (res) {uni.showToast({ image: __webpack_require__(/*! @/static/icons/crystal-icon.png */ 44), title: '+' + _this2.crystalArr[index].amount, duration: 2000 });_this2.$set(_this2.account, 'crystal', res.crystal);_this2.ids = res.all_ids;if (JSON.stringify(res.last) === '[]') {_this2.$set(_this2.crystalArr, index, { amount: null });return;}_this2.$set(_this2.crystalArr, index, res.last);}).catch(function (err) {uni.showToast({ icon: 'none',
title: err });
(0, _chain.thawlog)({ thaw_id: this.crystalArr[index].log_id, all_ids: this.allIds }).then(function (res) {uni.showToast({ image: __webpack_require__(/*! @/static/icons/crystal-icon.png */ 44), title: '+' + _this2.crystalArr[index].amount, duration: 2000 });_this2.$set(_this2.account, 'crystal', res.crystal);_this2.ids = res.all_ids;if (JSON.stringify(res.last) === '[]') {_this2.$set(_this2.crystalArr, index, { amount: null });return;}_this2.$set(_this2.crystalArr, index, res.last);}).catch(function (err) {uni.showToast({ icon: 'none', title: err });
});
},
@@ -7002,8 +6993,8 @@ var _default = { data: function data() {return { task: [], sign: { signArr: [],
(0, _crystal.task)().then(function (res) {uni.hideLoading();_this.task = res;}).catch(function (err) {uni.showToast({ icon: 'none', title: err.message });}); // 读取配置信息
(0, _user.userIndex)().then(function (res) {_this.energyShard = res.help_doc.energy_shard;}).catch(function (err) {uni.showToast({ title: err.message, icon: 'none' });}); // 获取水晶签到信息
this.signInfo();}, methods: { // 水晶签到信息
signInfo: function signInfo() {var _this2 = this;(0, _crystal.sign)().then(function (res) {_this2.sign.signArr = res.lists;_this2.sign.nextTask = res.next_task;_this2.sign.signCan = res.can_sign;}).catch(function (err) {uni.showToast({ icon: 'none', title: err });});}, // 能量碎片提示信息
showHelp: function showHelp() {uni.showModal({ title: '能量碎片', confirmColor: '#8b64fd', content: this.energyShard.description, showCancel: false });}, // 签到
signInfo: function signInfo() {var _this2 = this;(0, _crystal.sign)().then(function (res) {_this2.sign.signArr = res.lists;_this2.sign.nextTask = res.next_task;_this2.sign.signCan = res.can_sign;}).catch(function (err) {uni.showToast({ icon: 'none', title: err });});}, // 积分提示信息
showHelp: function showHelp() {uni.showModal({ title: '积分', confirmColor: '#8b64fd', content: this.energyShard.description, showCancel: false });}, // 签到
signClick: function signClick() {var _this3 = this;(0, _crystal.operateSign)().then(function (res) {_this3.sign.signSuccess = res.task_crystals; // 获取水晶签到信息
_this3.sign.signShow = true;_this3.signInfo();}).catch(function (err) {uni.showToast({ icon: 'none', title: err });});},
@@ -8867,9 +8858,9 @@ var _junyiH5Copy = _interopRequireDefault(__webpack_require__(/*! @/js_sdk/junyi
},
// 友情提示信息
showHelp: function showHelp(type) {
var title = '能量球',
var 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,
@@ -14634,7 +14625,7 @@ __webpack_require__.r(__webpack_exports__);
/***/ (function(module, exports, __webpack_require__) {
"use strict";
Object.defineProperty(exports, "__esModule", { value: true });exports.default = void 0;
/* WEBPACK VAR INJECTION */(function(__f__) {Object.defineProperty(exports, "__esModule", { value: true });exports.default = void 0;
@@ -14886,6 +14877,7 @@ var _uploading = __webpack_require__(/*! @/apis/interfaces/uploading */ 97);func
type: 'app' }).
then(function (res) {
var payConfig = JSON.parse(res);
__f__("log", payConfig, 'console.log(res)', " at pages/vip/vip.vue:253");
uni.requestPayment({
provider: 'wxpay',
orderInfo: _objectSpread({}, payConfig),
@@ -14900,8 +14892,9 @@ var _uploading = __webpack_require__(/*! @/apis/interfaces/uploading */ 97);func
},
fail: function fail(payErr) {
__f__("log", payErr, 'console.log(payErr)', " at pages/vip/vip.vue:268");
uni.showToast({
title: '支付已被取消',
title: '支付失败,原因:' + payErr.errMsg,
icon: 'none' });
} });
@@ -14997,6 +14990,7 @@ var _uploading = __webpack_require__(/*! @/apis/interfaces/uploading */ 97);func
});
} } };exports.default = _default;
/* WEBPACK VAR INJECTION */}.call(this, __webpack_require__(/*! ./node_modules/@dcloudio/vue-cli-plugin-uni/lib/format-log.js */ 24)["default"]))
/***/ }),
/* 95 */
@@ -32727,9 +32721,7 @@ var render = function() {
"4-" + $30,
"t0-0",
_vm._s(
item.coin
? " (" + item.coin + "个能量球) "
: ""
item.coin ? " (" + item.coin + "个通证) " : ""
)
)
)
@@ -33187,7 +33179,7 @@ exports.cmsWithdraw = cmsWithdraw;var keyrules = function keyrules() {
};
// 能量球转红包前置,获取能量球的基本信息
// 通证转红包前置,获取通证的基本信息
exports.keyrules = keyrules;var accountCashs = function accountCashs(data) {
return (0, _index.request)({
url: 'user/account/cashs',
@@ -34243,12 +34235,12 @@ var _withdraws = __webpack_require__(/*! @/apis/interfaces/withdraws */ 292); //
//
//
//
var _default = { data: function data() {return { balance: 0, // 钱包能量球数量
var _default = { data: function data() {return { balance: 0, // 钱包通证数量
tax: 0, // 当前手续费
cost: 1, // 每个能量球的价格
cost: 1, // 每个通证的价格
total: 0, // 约合人民币
card: '', // 银行卡号
withdraw_input: '', // 提现能量球数量
withdraw_input: '', // 提现通证数量
bank_accounts: 0, bankInfo: {} };}, onLoad: function onLoad() {this.getInfo();}, onShow: function onShow() {if (uni.getStorageSync('refresh')) {this.bankInfo = {};this.getInfo();}}, methods: { // 提现基本信息
getInfo: function getInfo() {var _this = this;(0, _withdraws.cashsCreate)().then(function (res) {_this.withdraw_input = Number(res.balance);_this.balance = res.balance;_this.cost = res.cost;_this.total = Number(res.balance) * Number(res.cost);uni.setStorageSync('refresh', false);}).catch(function (err) {
uni.showToast({
@@ -34257,7 +34249,7 @@ var _default = { data: function data() {return { balance: 0, // 钱包能量球
});
},
// 输入提现能量球数量
// 输入提现通证数量
inputNum: function inputNum(e) {
var number = Number(e.detail.value);
if (number <= Number(this.balance)) {
@@ -34304,7 +34296,7 @@ var _default = { data: function data() {return { balance: 0, // 钱包能量球
if (data.amount === 0) {
uni.showToast({
title: '请输入能量球数量',
title: '请输入通证数量',
icon: 'none' });
return;
@@ -34444,7 +34436,7 @@ exports.withdrawsIndex = withdrawsIndex;var withdrawsIndexLists = function withd
};
// 能量碎片记录
// 积分记录
exports.withdrawsIndexLists = withdrawsIndexLists;var userAccoutScores = function userAccoutScores(data) {
return (0, _index.request)({
url: 'user/account/scores',
@@ -34453,7 +34445,7 @@ exports.withdrawsIndexLists = withdrawsIndexLists;var userAccoutScores = functio
};
// 能量球转红包前置
// 通证转红包前置
exports.userAccoutScores = userAccoutScores;var cashsCreate = function cashsCreate() {
return (0, _index.request)({
url: 'user/account/cashs/create',
@@ -34461,7 +34453,7 @@ exports.userAccoutScores = userAccoutScores;var cashsCreate = function cashsCrea
};
// 能量球转红包
// 通证转红包
exports.cashsCreate = cashsCreate;var accountCashs = function accountCashs(data) {
return (0, _index.request)({
url: 'user/account/cashs',
@@ -34837,14 +34829,14 @@ var _withdraws = __webpack_require__(/*! @/apis/interfaces/withdraws */ 292); //
//
//
//
var _default = { data: function data() {return { balance: 0, // 钱包能量球金额
var _default = { data: function data() {return { balance: 0, // 钱包通证金额
tax: 0, // 当前手续费
cost: 1, // 每个能量球的价格
cost: 1, // 每个通证的价格
total: 0, // 约合人民币
card: '', // 银行卡号
withdraw_input: '', // 提现能量球金额
withdraw_input: '', // 提现通证金额
bank_accounts: 0, bankInfo: {} };}, onLoad: function onLoad() {this.getInfo();}, onShow: function onShow() {if (uni.getStorageSync('refresh')) {this.bankInfo = {};this.getInfo();}}, methods: { // 提现基本信息
getInfo: function getInfo() {var _this = this;(0, _withdraws.withdrawsIndexCreate)().then(function (res) {_this.balance = res.balance;_this.tax = res.tax;_this.cost = res.cost;_this.bank_accounts = res.bank_accounts.length;_this.withdraw_input = Number(res.balance);_this.total = Number(res.balance) * Number(res.cost);uni.setStorageSync('refresh', false);}).catch(function (err) {uni.showToast({ title: err.message, icon: 'none' });});}, // 输入提现能量球金额
getInfo: function getInfo() {var _this = this;(0, _withdraws.withdrawsIndexCreate)().then(function (res) {_this.balance = res.balance;_this.tax = res.tax;_this.cost = res.cost;_this.bank_accounts = res.bank_accounts.length;_this.withdraw_input = Number(res.balance);_this.total = Number(res.balance) * Number(res.cost);uni.setStorageSync('refresh', false);}).catch(function (err) {uni.showToast({ title: err.message, icon: 'none' });});}, // 输入提现通证金额
inputNum: function inputNum(e) {var number = Number(e.detail.value);
__f__("log", number, this.balance, " at pages/wallet/extractRed.vue:87");
if (number <= Number(this.balance)) {
@@ -34902,7 +34894,7 @@ var _default = { data: function data() {return { balance: 0, // 钱包能量球
}
if (data.amount === 0) {
uni.showToast({
title: '请输入能量球金额',
title: '请输入通证金额',
icon: 'none' });
return;

View File

@@ -574,7 +574,7 @@ var render = function() {
staticClass: _vm._$g("36-" + $31, "sc"),
attrs: { _i: "36-" + $31 }
},
[_vm._v("能量碎片" + _vm._$g("36-" + $31, "t0-0"))]
[_vm._v("积分" + _vm._$g("36-" + $31, "t0-0"))]
)
],
1
@@ -598,7 +598,7 @@ var render = function() {
"v-uni-view",
{ staticClass: _vm._$g(40, "sc"), attrs: { _i: 40 } },
[
_vm._v("平台能量球余量"),
_vm._v("平台通证余量"),
_c("uni-icons", {
staticClass: _vm._$g(41, "sc"),
attrs: { _i: 41 },
@@ -627,7 +627,7 @@ var render = function() {
"v-uni-view",
{ staticClass: _vm._$g(44, "sc"), attrs: { _i: 44 } },
[
_vm._v("上期发放能量球"),
_vm._v("上期发放通证"),
_c("uni-icons", {
staticClass: _vm._$g(45, "sc"),
attrs: { _i: 45 },
@@ -656,7 +656,7 @@ var render = function() {
"v-uni-view",
{ staticClass: _vm._$g(48, "sc"), attrs: { _i: 48 } },
[
_vm._v("当前能量球价值"),
_vm._v("当前通证价值"),
_c("uni-icons", {
staticClass: _vm._$g(49, "sc"),
attrs: { _i: 49 },
@@ -685,7 +685,7 @@ var render = function() {
"v-uni-view",
{ staticClass: _vm._$g(52, "sc"), attrs: { _i: 52 } },
[
_vm._v("昨日瓜分能量碎片"),
_vm._v("昨日瓜分积分"),
_c("uni-icons", {
staticClass: _vm._$g(53, "sc"),
attrs: { _i: 53 },
@@ -774,7 +774,7 @@ var render = function() {
_c(
"v-uni-view",
{ staticClass: _vm._$g(64, "sc"), attrs: { _i: 64 } },
[_vm._v("累计盈利和能量球价值走势图")]
[_vm._v("累计盈利和通证价值走势图")]
),
_c(
"v-uni-view",
@@ -2401,7 +2401,7 @@ var ___CSS_LOADER_URL_IMPORT_0___ = __webpack_require__(/*! @/static/background/
exports = ___CSS_LOADER_API_IMPORT___(false);
var ___CSS_LOADER_URL_REPLACEMENT_0___ = ___CSS_LOADER_GET_URL_IMPORT___(___CSS_LOADER_URL_IMPORT_0___);
// Module
exports.push([module.i, "\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n/* 星球旋转 */\n.ball[data-v-2be84a3c] {\n\tposition: absolute;\n\theight: 480rpx;\n\twidth: 480rpx;\n\ttop: 50%;\n\tleft: 50%;\n\tmargin-top: -240rpx;\n\tmargin-left: -240rpx;\n\tborder-radius: 50%;\n\t-webkit-transform-style: preserve-3d;\n\tbackground: url(" + ___CSS_LOADER_URL_REPLACEMENT_0___ + ") repeat-x;\n\t/* background-size: auto 100%; */\n\tbackground-size: 1616rpx;\n\t-webkit-animation: move-map-data-v-2be84a3c 60s infinite linear;\n\tanimation: move-map-data-v-2be84a3c 60s infinite linear;\n\tbox-shadow: 0 0 50rpx 50rpx rgba(31, 25, 34, .2);\n}\n.shadow[data-v-2be84a3c] {\n\tposition: absolute;\n\ttop: 1%;\n\tleft: 5%;\n\twidth: 90%;\n\theight: 90%;\n\tborder-radius: 50%;\n\t-webkit-filter: blur(5px);\n\t filter: blur(5px);\n\tz-index: 3;\n\tbackground: radial-gradient(circle at 50% 0, rgba(255, 255, 255, .6), rgba(255, 255, 255, .0) 58%);\n}\n.ball[data-v-2be84a3c]:before,\n.ball[data-v-2be84a3c]::after {\n\tposition: absolute;\n\ttop: 0;\n\tleft: 0;\n\tcontent: \"\";\n\twidth: 100%;\n\theight: 100%;\n\tborder-radius: 50%;\n\t-webkit-filter: blur(5px);\n\t filter: blur(5px);\n\tz-index: 2;\n}\n.ball[data-v-2be84a3c]:before {\n\tbackground: radial-gradient(circle at 100% 50%, #5881d3, rgba(255, 255, 255, .0) 45%);\n}\n.ball[data-v-2be84a3c]::after {\n\tbackground: radial-gradient(circle at 0 50%, #ca66e0, rgba(255, 255, 255, .0) 45%);\n}\n@-webkit-keyframes move-map-data-v-2be84a3c {\n0% {\n\t\tbackground-position: -1616rpx 0;\n}\n100% {\n\t\tbackground-position: 0 0;\n}\n}\n@keyframes move-map-data-v-2be84a3c {\n0% {\n\t\tbackground-position: -1616rpx 0;\n}\n100% {\n\t\tbackground-position: 0 0;\n}\n}\n/* 水晶漂浮动画 */\n.oct-float[data-v-2be84a3c] {\n\t-webkit-animation: 4s octfloat-data-v-2be84a3c infinite;\n\t animation: 4s octfloat-data-v-2be84a3c infinite;\n}\n@-webkit-keyframes octfloat-data-v-2be84a3c {\n0% {\n\t\tmargin-top: 0;\n}\n50% {\n\t\tmargin-top: 10rpx;\n}\n100% {\n\t\tmargin-top: 0;\n}\n}\n@keyframes octfloat-data-v-2be84a3c {\n0% {\n\t\tmargin-top: 0;\n}\n50% {\n\t\tmargin-top: 10rpx;\n}\n100% {\n\t\tmargin-top: 0;\n}\n}\n", ""]);
exports.push([module.i, "\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n/* 星球旋转 */\n.ball[data-v-2be84a3c] {\n\tposition: absolute;\n\theight: 480rpx;\n\twidth: 480rpx;\n\ttop: 50%;\n\tleft: 50%;\n\tmargin-top: -240rpx;\n\tmargin-left: -240rpx;\n\tborder-radius: 50%;\n\t-webkit-transform-style: preserve-3d;\n\tbackground: url(" + ___CSS_LOADER_URL_REPLACEMENT_0___ + ") repeat-x;\n\t/* background-size: auto 100%; */\n\tbackground-size: 1616rpx;\n\t-webkit-animation: move-map-data-v-2be84a3c 60s infinite linear;\n\tanimation: move-map-data-v-2be84a3c 60s infinite linear;\n\tbox-shadow: 0 0 50rpx 50rpx rgba(31, 25, 34, .2);\n}\n.shadow[data-v-2be84a3c] {\n\tposition: absolute;\n\ttop: 1%;\n\tleft: 5%;\n\twidth: 90%;\n\theight: 90%;\n\tborder-radius: 50%;\n\t-webkit-filter: blur(5px);\n\t filter: blur(5px);\n\tz-index: 3;\n\tbackground: radial-gradient(circle at 50% 0, rgba(255, 255, 255, .6), rgba(255, 255, 255, .0) 58%);\n}\n.ball[data-v-2be84a3c]:before,\n.ball[data-v-2be84a3c]::after {\n\tposition: absolute;\n\ttop: 0;\n\tleft: 0;\n\tcontent: \"\";\n\twidth: 100%;\n\theight: 100%;\n\tborder-radius: 50%;\n\t-webkit-filter: blur(5px);\n\t filter: blur(5px);\n\tz-index: 2;\n}\n.ball[data-v-2be84a3c]:before {\n\tbackground: radial-gradient(circle at 100% 50%, #5881d3, rgba(255, 255, 255, .0) 45%);\n}\n.ball[data-v-2be84a3c]::after {\n\tbackground: radial-gradient(circle at 0 50%, #ca66e0, rgba(255, 255, 255, .0) 45%);\n}\n@-webkit-keyframes move-map-data-v-2be84a3c {\n0% {\n\t\tbackground-position: -1616rpx 0;\n}\n100% {\n\t\tbackground-position: 0 0;\n}\n}\n@keyframes move-map-data-v-2be84a3c {\n0% {\n\t\tbackground-position: -1616rpx 0;\n}\n100% {\n\t\tbackground-position: 0 0;\n}\n}\n/* 水晶漂浮动画 */\n.oct-float[data-v-2be84a3c] {\n\t-webkit-animation: 4s octfloat-data-v-2be84a3c infinite;\n\t animation: 4s octfloat-data-v-2be84a3c infinite;\n}\n@-webkit-keyframes octfloat-data-v-2be84a3c {\n0% {\n\t\tmargin-top: 0;\n}\n50% {\n\t\tmargin-top: 10rpx;\n}\n100% {\n\t\tmargin-top: 0;\n}\n}\n@keyframes octfloat-data-v-2be84a3c {\n0% {\n\t\tmargin-top: 0;\n}\n50% {\n\t\tmargin-top: 10rpx;\n}\n100% {\n\t\tmargin-top: 0;\n}\n}\n", ""]);
// Exports
module.exports = exports;
@@ -2600,7 +2600,7 @@ var render = function() {
"v-uni-view",
{ staticClass: _vm._$g(6, "sc"), attrs: { _i: 6 } },
[
_vm._v("能量碎片"),
_vm._v("积分"),
_c(
"v-uni-view",
{ staticClass: _vm._$g(7, "sc"), attrs: { _i: 7 } },
@@ -2628,7 +2628,7 @@ var render = function() {
_c(
"v-uni-view",
{ staticClass: _vm._$g(10, "sc"), attrs: { _i: 10 } },
[_vm._v("海量能量碎片等你解锁")]
[_vm._v("海量积分等你解锁")]
),
_c(
"v-uni-view",
@@ -2707,7 +2707,7 @@ var render = function() {
_vm._$g(20, "t0-0") +
"天额外赠送" +
_vm._$g(20, "t0-1") +
"个能量碎片"
"个积分"
)
]
)
@@ -2732,10 +2732,7 @@ var render = function() {
}
}
},
[
_c("u-icon", { attrs: { _i: 24 } }),
_vm._v("签到领取能量碎片")
],
[_c("u-icon", { attrs: { _i: 24 } }), _vm._v("签到领取积分")],
1
)
]
@@ -2752,7 +2749,7 @@ var render = function() {
}
},
[
_vm._v("能量碎片记录"),
_vm._v("积分记录"),
_c("v-uni-image", {
staticClass: _vm._$g(27, "sc"),
attrs: {
@@ -2775,7 +2772,7 @@ var render = function() {
_c(
"v-uni-view",
{ staticClass: _vm._$g(29, "sc"), attrs: { _i: 29 } },
[_vm._v("能量碎片任务")]
[_vm._v("积分任务")]
),
_vm._l(_vm._$g(30, "f"), function(item, index, $21, $31) {
return [
@@ -3531,7 +3528,7 @@ var render = function() {
attrs: { _i: 51 }
},
[
_vm._v("当前能量球价值"),
_vm._v("当前通证价值"),
_c(
"v-uni-view",
{
@@ -3596,7 +3593,7 @@ var render = function() {
attrs: { _i: 58 }
},
[
_vm._v("能量球钱包"),
_vm._v("通证钱包"),
_c("v-uni-image", {
staticClass: _vm._$g(59, "sc"),
attrs: {
@@ -3696,7 +3693,7 @@ var render = function() {
attrs: { _i: 66 }
},
[
_vm._v("能量碎片"),
_vm._v("积分"),
_c("v-uni-image", {
staticClass: _vm._$g(67, "sc"),
attrs: {
@@ -4547,7 +4544,7 @@ var render = function() {
{ staticClass: _vm._$g(18, "sc"), attrs: { _i: 18 } },
[
_vm._v(
"朋友通过你的邀请注册成功后,将与您绑定好友关系通过成为平台用户,你都可以获得能量碎片奖励。"
"朋友通过你的邀请注册成功后,将与您绑定好友关系通过成为平台用户,你都可以获得积分奖励。"
)
]
),
@@ -17299,7 +17296,7 @@ var render = function() {
"v-uni-view",
{ staticClass: _vm._$g(4, "sc"), attrs: { _i: 4 } },
[
_vm._v("能量球钱包"),
_vm._v("通证钱包"),
_c("span", { attrs: { _i: 5 } }, [
_vm._v("(≈ " + _vm._$g(5, "t0-0") + " CNY)")
])
@@ -17339,7 +17336,7 @@ var render = function() {
}
}
},
[_vm._v("能量球转红包")]
[_vm._v("通证转红包")]
)
],
1
@@ -18224,7 +18221,7 @@ var render = function() {
"v-uni-view",
{ staticClass: _vm._$g(4, "sc"), attrs: { _i: 4 } },
[
_vm._v("能量球钱包"),
_vm._v("通证钱包"),
_c("span", { attrs: { _i: 5 } }, [
_vm._v("(≈ " + _vm._$g(5, "t0-0") + " CNY)")
])
@@ -26876,7 +26873,7 @@ var render = function() {
"v-uni-view",
{ staticClass: _vm._$g(9, "sc"), attrs: { _i: 9 } },
[
_vm._v("当前能量球"),
_vm._v("当前通证"),
_c(
"v-uni-view",
{ staticClass: _vm._$g(10, "sc"), attrs: { _i: 10 } },

File diff suppressed because one or more lines are too long