[个人认证vip会员开通,企业认证才能发布权证首页,]
This commit is contained in:
@@ -97,6 +97,7 @@
|
||||
methods: {
|
||||
// picker选择
|
||||
pickerChange(e, key){
|
||||
console.log(key,e.detail.value)
|
||||
this[key] = e.detail.value
|
||||
},
|
||||
// 图片预览
|
||||
|
||||
@@ -5,8 +5,12 @@
|
||||
<!-- header -->
|
||||
<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 : '查看能量球'}}</view>
|
||||
<view class="item nowrap" @click="navAccount('Fragment')"><image src="@/static/icons/crystal-icon.png"/>{{isAuth ? '能量碎片' + account.crystal : '查看能量碎片'}}</view>
|
||||
<view class="item nowrap" @click="navAccount('walletProperty')">
|
||||
<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 : '查看能量碎片'}}
|
||||
</view>
|
||||
</view>
|
||||
</view>
|
||||
<!-- 矿机 -->
|
||||
@@ -17,7 +21,8 @@
|
||||
</view>
|
||||
<block v-if="isAuth">
|
||||
<view class="ore-lists">
|
||||
<view class="oct-float ore-item" v-for="(item, index) in crystalArr" :key="index" :style="{left: item.left + '%', top: item.top + '%'}" @click="ledCrystal(index)">
|
||||
<view class="oct-float ore-item" v-for="(item, index) in crystalArr" :key="index"
|
||||
:style="{left: item.left + '%', top: item.top + '%'}" @click="ledCrystal(index)">
|
||||
<block v-if="item.amount !== null">
|
||||
<view class="oct-icon">
|
||||
<image src="@/static/icons/crystal-icon.png" mode="widthFix" class="icon" />
|
||||
@@ -29,7 +34,8 @@
|
||||
<view class="oct-icon">
|
||||
<image src="@/static/icons/gemstone-ore-icon.png" mode="widthFix" class="icon" />
|
||||
</view>
|
||||
<view class="text">发权证<uni-icons type="arrowright" color="#FFFFFF" size="12"></uni-icons></view>
|
||||
<view class="text">发权证<uni-icons type="arrowright" color="#FFFFFF" size="12"></uni-icons>
|
||||
</view>
|
||||
</view>
|
||||
</view>
|
||||
</block>
|
||||
@@ -59,27 +65,45 @@
|
||||
<view class="situation">
|
||||
<view class="header">
|
||||
<view class="header-item">
|
||||
<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="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">上期发放能量球<uni-icons class="help-icon" @click="showHelp('stone')" type="help-filled" size="15" color="rgba(255,255,255,.3)" /></view>
|
||||
<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">当前能量球价值<uni-icons class="help-icon" @click="showHelp('up')" type="help-filled" size="15" color="rgba(255,255,255,.3)" /></view>
|
||||
<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">昨日瓜分能量碎片<uni-icons class="help-icon" @click="showHelp('score')" type="help-filled" size="15" color="rgba(255,255,255,.3)" /></view>
|
||||
<view class="title">昨日瓜分能量碎片
|
||||
<uni-icons class="help-icon" @click="showHelp('score')" type="help-filled" size="15"
|
||||
color="rgba(255,255,255,.3)" />
|
||||
</view>
|
||||
<view class="number nowrap">{{chains.score}}</view>
|
||||
</view>
|
||||
<view class="header-item">
|
||||
<view class="title">区块链高度<uni-icons class="help-icon" @click="showHelp('height')" type="help-filled" size="15" color="rgba(255,255,255,.3)" /></view>
|
||||
<view class="title">区块链高度
|
||||
<uni-icons class="help-icon" @click="showHelp('height')" type="help-filled" size="15"
|
||||
color="rgba(255,255,255,.3)" />
|
||||
</view>
|
||||
<view class="number nowrap">{{chains.height}}</view>
|
||||
</view>
|
||||
<view class="header-item">
|
||||
<view class="title">已开通节点数<uni-icons class="help-icon" @click="showHelp('number')" type="help-filled" size="15" color="rgba(255,255,255,.3)" /></view>
|
||||
<view class="title">已开通节点数
|
||||
<uni-icons class="help-icon" @click="showHelp('number')" type="help-filled" size="15"
|
||||
color="rgba(255,255,255,.3)" />
|
||||
</view>
|
||||
<view class="number nowrap">{{chains.number}}</view>
|
||||
</view>
|
||||
</view>
|
||||
@@ -97,7 +121,11 @@
|
||||
</template>
|
||||
|
||||
<script>
|
||||
import { chain, crystals, thawlog } from '@/apis/interfaces/chain'
|
||||
import {
|
||||
chain,
|
||||
crystals,
|
||||
thawlog
|
||||
} from '@/apis/interfaces/chain'
|
||||
import F2 from '@/uni_modules/lime-f2/components/lime-f2/f2.min.js'
|
||||
import lF2 from '@/uni_modules/lime-f2/components/lime-f2/'
|
||||
export default {
|
||||
@@ -150,10 +178,14 @@
|
||||
console.log(1111)
|
||||
|
||||
if (!this.isAuth) {
|
||||
this.$Router.push({name: 'Login'})
|
||||
this.$Router.push({
|
||||
name: 'Login'
|
||||
})
|
||||
return
|
||||
}
|
||||
this.$Router.push({name: pathName})
|
||||
this.$Router.push({
|
||||
name: pathName
|
||||
})
|
||||
},
|
||||
// 发权证
|
||||
issueGoosd() {
|
||||
@@ -161,20 +193,19 @@
|
||||
pathName = ''
|
||||
|
||||
if (this.userAuth.certification && this.userAuth.company && this.userAuth.vip) {
|
||||
this.$Router.push({name: 'goodsManagement'})
|
||||
this.$Router.push({
|
||||
name: 'goodsManagement'
|
||||
})
|
||||
return
|
||||
}
|
||||
if(!this.userAuth.certification) {
|
||||
} else if (!this.userAuth.certification) {
|
||||
typeAuth = '暂未完成个人认证,无法发布商品权证'
|
||||
pathName = 'Personal'
|
||||
}
|
||||
if(!this.userAuth.company) {
|
||||
typeAuth = '暂未开通平台会员节点,无法发布商品权证'
|
||||
} else if (!this.userAuth.vip) {
|
||||
typeAuth = '暂未开通平台VIP会员节点,无法发布商品权证'
|
||||
pathName = 'vipIndex'
|
||||
}
|
||||
if(!this.userAuth.vip) {
|
||||
} else if (!this.userAuth.company) {
|
||||
typeAuth = '企业未认证或企业认证审核中,无法发布商品权证'
|
||||
pathName = 'User'
|
||||
pathName = 'setting'
|
||||
}
|
||||
uni.showModal({
|
||||
title: '提示',
|
||||
@@ -186,11 +217,26 @@
|
||||
success: res => {
|
||||
console.log(pathName)
|
||||
if (res.confirm) {
|
||||
if(pathName === 'User'){
|
||||
this.$Router.pushTab({name: pathName})
|
||||
// if (pathName === 'setting') {
|
||||
// this.$Router.pushTab({
|
||||
// name: pathName
|
||||
// })
|
||||
// return
|
||||
// }
|
||||
if (pathName === 'vipIndex') {
|
||||
console.log(this.userAuth.identity)
|
||||
this.$Router.push({
|
||||
name: 'vipIndex',
|
||||
params: {
|
||||
identity_id: this.userAuth.identity
|
||||
}
|
||||
})
|
||||
return
|
||||
}
|
||||
this.$Router.push({name: pathName})
|
||||
|
||||
this.$Router.push({
|
||||
name: pathName
|
||||
})
|
||||
}
|
||||
}
|
||||
})
|
||||
@@ -240,7 +286,8 @@
|
||||
this.userAuth = {
|
||||
certification: crystalsData.is_certification,
|
||||
company: crystalsData.is_company,
|
||||
vip : crystalsData.is_vip
|
||||
vip: crystalsData.is_vip,
|
||||
identity: crystalsData.identity
|
||||
}
|
||||
this.crystalArr = crystalsData.crystal_array
|
||||
this.allIds = crystalsData.all_ids
|
||||
@@ -302,13 +349,17 @@
|
||||
var type = open.openType;
|
||||
switch (type) {
|
||||
case 'switchTab':
|
||||
this.$Router.pushTab({name: open.path})
|
||||
this.$Router.pushTab({
|
||||
name: open.path
|
||||
})
|
||||
break;
|
||||
case 'web':
|
||||
window.location.href = open.path
|
||||
break;
|
||||
case 'navigateTo':
|
||||
this.$Router.push({name: open.path})
|
||||
this.$Router.push({
|
||||
name: open.path
|
||||
})
|
||||
break;
|
||||
}
|
||||
}
|
||||
@@ -338,6 +389,7 @@
|
||||
animation: move-map 60s infinite linear;
|
||||
box-shadow: 0 0 50rpx 50rpx rgba(31, 25, 34, .2);
|
||||
}
|
||||
|
||||
.shadow {
|
||||
position: absolute;
|
||||
top: 1%;
|
||||
@@ -349,6 +401,7 @@
|
||||
z-index: 3;
|
||||
background: radial-gradient(circle at 50% 0, rgba(255, 255, 255, .6), rgba(255, 255, 255, .0) 58%);
|
||||
}
|
||||
|
||||
.ball:before,
|
||||
.ball::after {
|
||||
position: absolute;
|
||||
@@ -361,30 +414,50 @@
|
||||
filter: blur(5px);
|
||||
z-index: 2;
|
||||
}
|
||||
|
||||
.ball:before {
|
||||
background: radial-gradient(circle at 100% 50%, #5881d3, rgba(255, 255, 255, .0) 45%);
|
||||
}
|
||||
|
||||
.ball::after {
|
||||
background: radial-gradient(circle at 0 50%, #ca66e0, rgba(255, 255, 255, .0) 45%);
|
||||
}
|
||||
|
||||
@-webkit-keyframes move-map {
|
||||
0% {background-position: -1616rpx 0; }
|
||||
100% {background-position: 0 0;}
|
||||
0% {
|
||||
background-position: -1616rpx 0;
|
||||
}
|
||||
|
||||
100% {
|
||||
background-position: 0 0;
|
||||
}
|
||||
}
|
||||
|
||||
@-ms-keyframes move-map {
|
||||
0% {background-position: -1616rpx 0; }
|
||||
100% {background-position: 0 0;}
|
||||
0% {
|
||||
background-position: -1616rpx 0;
|
||||
}
|
||||
|
||||
100% {
|
||||
background-position: 0 0;
|
||||
}
|
||||
}
|
||||
|
||||
@keyframes move-map {
|
||||
0% {background-position: -1616rpx 0; }
|
||||
100% {background-position: 0 0;}
|
||||
0% {
|
||||
background-position: -1616rpx 0;
|
||||
}
|
||||
|
||||
100% {
|
||||
background-position: 0 0;
|
||||
}
|
||||
}
|
||||
|
||||
/* 水晶漂浮动画 */
|
||||
.oct-float {
|
||||
animation: 4s octfloat infinite;
|
||||
}
|
||||
|
||||
@keyframes octfloat {
|
||||
0% {
|
||||
margin-top: 0;
|
||||
@@ -406,28 +479,33 @@
|
||||
background: #1f1922;
|
||||
overflow: hidden;
|
||||
}
|
||||
|
||||
// 平台概况
|
||||
.situation {
|
||||
margin: 0 $margin;
|
||||
background-image: linear-gradient(to bottom, $block-color, #1f1922);
|
||||
border-radius: $radius;
|
||||
padding: $padding $padding/2 $padding*2;
|
||||
|
||||
// 平台统计
|
||||
.header {
|
||||
display: flex;
|
||||
flex-wrap: wrap;
|
||||
padding-bottom: $padding;
|
||||
|
||||
.number {
|
||||
color: white;
|
||||
font-size: $title-size;
|
||||
font-weight: bold;
|
||||
line-height: 70rpx;
|
||||
}
|
||||
|
||||
.title {
|
||||
color: rgba($color: white, $alpha: .4);
|
||||
font-size: $title-size-sm;
|
||||
line-height: 40rpx;
|
||||
}
|
||||
|
||||
.header-item {
|
||||
width: 50%;
|
||||
padding: $padding / 2;
|
||||
@@ -441,22 +519,26 @@
|
||||
// }
|
||||
}
|
||||
}
|
||||
|
||||
// 图表
|
||||
.chart {
|
||||
background: rgba($color: $block-color, $alpha: .8);
|
||||
padding: $padding/2;
|
||||
border-radius: $radius/2;
|
||||
|
||||
.title {
|
||||
text-align: center;
|
||||
line-height: 80rpx;
|
||||
color: rgba($color: #FFFFFF, $alpha: .4);
|
||||
font-size: $title-size-sm;
|
||||
}
|
||||
|
||||
.chart-f2 {
|
||||
height: 200px;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
// 数据统计
|
||||
.header-total {
|
||||
position: fixed;
|
||||
@@ -465,6 +547,7 @@
|
||||
right: 0;
|
||||
z-index: 99;
|
||||
background: #1f1922;
|
||||
|
||||
.total {
|
||||
position: relative;
|
||||
margin: $margin/2 $margin;
|
||||
@@ -472,6 +555,7 @@
|
||||
padding: 0;
|
||||
display: flex;
|
||||
border-radius: $radius;
|
||||
|
||||
.item {
|
||||
width: 50%;
|
||||
padding: 0 $padding;
|
||||
@@ -479,6 +563,7 @@
|
||||
color: white;
|
||||
font-size: $title-size-sm;
|
||||
line-height: 76rpx;
|
||||
|
||||
image {
|
||||
width: 38rpx;
|
||||
height: 38rpx;
|
||||
@@ -499,22 +584,26 @@
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
// 求助icon
|
||||
.help-icon {
|
||||
margin-left: $margin/3;
|
||||
opacity: .7;
|
||||
}
|
||||
|
||||
// 矿石
|
||||
.ore {
|
||||
margin-top: 76rpx;
|
||||
position: relative;
|
||||
padding-top: 120%;
|
||||
|
||||
&>image {
|
||||
width: 100%;
|
||||
position: absolute;
|
||||
top: 0;
|
||||
left: 0;
|
||||
}
|
||||
|
||||
.ore-lists {
|
||||
position: absolute;
|
||||
top: 0;
|
||||
@@ -522,15 +611,18 @@
|
||||
height: 100%;
|
||||
width: 100%;
|
||||
z-index: 1;
|
||||
|
||||
.oct-float-item {
|
||||
position: absolute;
|
||||
text-align: center;
|
||||
|
||||
.text {
|
||||
color: white;
|
||||
font-size: $title-size-sm - 4;
|
||||
line-height: 40rpx;
|
||||
text-shadow: 0 3rpx 3rpx rgba($color: #000000, $alpha: .2);
|
||||
}
|
||||
|
||||
.oct-icon {
|
||||
display: inline-block;
|
||||
width: 58rpx;
|
||||
@@ -539,6 +631,7 @@
|
||||
background: radial-gradient(circle at 50% 50%, rgba(202, 102, 224, .0) 40%, #ca66e0);
|
||||
border-radius: 50%;
|
||||
box-shadow: 0 0 5rpx 5rpx rgba($color: #ca66e0, $alpha: .5);
|
||||
|
||||
.icon {
|
||||
margin-top: 10rpx;
|
||||
height: 38rpx;
|
||||
@@ -546,14 +639,17 @@
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
.ore-item-nav {
|
||||
@extend .oct-float-item;
|
||||
right: $margin;
|
||||
top: 12%;
|
||||
}
|
||||
|
||||
.ore-item {
|
||||
@extend .oct-float-item;
|
||||
}
|
||||
|
||||
.oct-login {
|
||||
@extend .oct-float-item;
|
||||
left: 42%;
|
||||
@@ -561,10 +657,12 @@
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
// 任务
|
||||
.task-block {
|
||||
white-space: nowrap;
|
||||
margin-bottom: $margin;
|
||||
|
||||
.item {
|
||||
background: $block-color;
|
||||
display: inline-block;
|
||||
@@ -573,12 +671,15 @@
|
||||
border-radius: $radius;
|
||||
text-align: center;
|
||||
padding: ($padding - 10) $padding/2;
|
||||
|
||||
&:first-child {
|
||||
margin-left: $margin;
|
||||
}
|
||||
|
||||
&:last-child {
|
||||
margin-right: $margin;
|
||||
}
|
||||
|
||||
.icon {
|
||||
display: inline-block;
|
||||
margin: ($margin/2) 0;
|
||||
@@ -588,23 +689,27 @@
|
||||
background: #1f183d;
|
||||
border-radius: 50%;
|
||||
text-align: center;
|
||||
|
||||
image {
|
||||
width: 56rpx;
|
||||
height: 56rpx;
|
||||
vertical-align: middle;
|
||||
}
|
||||
}
|
||||
|
||||
.text {
|
||||
font-size: $title-size-sm;
|
||||
color: rgba($color: white, $alpha: .4);
|
||||
line-height: 40rpx;
|
||||
}
|
||||
|
||||
.title {
|
||||
font-size: $title-size-lg;
|
||||
color: white;
|
||||
font-weight: bold;
|
||||
line-height: 50rpx;
|
||||
}
|
||||
|
||||
.submit-title {
|
||||
font-size: $title-size-sm - 4;
|
||||
color: rgba($color: white, $alpha: .4);
|
||||
|
||||
@@ -111,7 +111,7 @@
|
||||
<view class="footer" >
|
||||
<image class="footer-btn" v-if="identitie[tabsIndex].can.show_button && voucher === ''" :src="identitie[tabsIndex].button_cover" mode="widthFix" @click="openOrder" />
|
||||
<view class="current-btn-sh" v-if="identitie[tabsIndex].can.show_button && voucher !== ''" @click="openOrder" >{{voucher.status.value === 1?'申请审核中':''}}{{voucher.status.value === 3?'申请被驳回查看原因':''}}</view>
|
||||
<view class="current-btn-sh" v-if="!identitie[tabsIndex].can.show_button && voucher === ''">已开通</view>
|
||||
<!-- <view class="current-btn-sh" v-if="!identitie[tabsIndex].can.show_button && voucher === ''">已开通</view> -->
|
||||
<view class="ios-bottom"></view>
|
||||
</view>
|
||||
</view>
|
||||
@@ -177,7 +177,12 @@
|
||||
});
|
||||
this.identitie = res.identities
|
||||
if (type === 'cre') {
|
||||
this.tabsIndex = res.identities.findIndex(val => val.identity_id == this.$Route.query.identity_id)
|
||||
let Index = res.identities.findIndex(val => val.identity_id == this.$Route.query.identity_id)
|
||||
if(Index+1 === res.identities){
|
||||
this.tabsIndex = Index
|
||||
}else{
|
||||
this.tabsIndex = Index+1
|
||||
}
|
||||
}
|
||||
this.openCondition = res.identities[this.tabsIndex].obj_condition
|
||||
this.rights = res.identities[this.tabsIndex].rights
|
||||
|
||||
110
unpackage/dist/dev/app-plus/app-service.js
vendored
110
unpackage/dist/dev/app-plus/app-service.js
vendored
@@ -2130,6 +2130,30 @@ __webpack_require__.r(__webpack_exports__);
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
@@ -2152,6 +2176,10 @@ __webpack_require__.r(__webpack_exports__);
|
||||
|
||||
|
||||
var _chain = __webpack_require__(/*! @/apis/interfaces/chain */ 25);
|
||||
|
||||
|
||||
|
||||
|
||||
var _f2Min = _interopRequireDefault(__webpack_require__(/*! @/uni_modules/lime-f2/components/lime-f2/f2.min.js */ 31));
|
||||
var _limeF = _interopRequireDefault(__webpack_require__(/*! @/uni_modules/lime-f2/components/lime-f2/ */ 33));function _interopRequireDefault(obj) {return obj && obj.__esModule ? obj : { default: obj };} //
|
||||
//
|
||||
@@ -2251,6 +2279,30 @@ var _limeF = _interopRequireDefault(__webpack_require__(/*! @/uni_modules/lime-f
|
||||
//
|
||||
//
|
||||
//
|
||||
//
|
||||
//
|
||||
//
|
||||
//
|
||||
//
|
||||
//
|
||||
//
|
||||
//
|
||||
//
|
||||
//
|
||||
//
|
||||
//
|
||||
//
|
||||
//
|
||||
//
|
||||
//
|
||||
//
|
||||
//
|
||||
//
|
||||
//
|
||||
//
|
||||
//
|
||||
//
|
||||
//
|
||||
var _default = { components: { lF2: _limeF.default }, data: function data() {return { isAuth: false, chains: { // 区块链统计
|
||||
balance: 0, height: 0, number: 0, score: 0, up: 0, stone: 0 }, account: { // 账户
|
||||
coin: 0, crystal: 0 }, crystalArr: [], // 待领取
|
||||
@@ -2260,23 +2312,17 @@ var _default = { components: { lF2: _limeF.default }, data: function data() {ret
|
||||
userAuth: { // 用户认证状态
|
||||
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:150");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;}if (!this.userAuth.certification) {typeAuth = '暂未完成个人认证,无法发布商品权证';pathName = 'Personal';}if (!this.userAuth.company) {typeAuth = '暂未开通平台会员节点,无法发布商品权证';pathName = 'vipIndex';}if (!this.userAuth.vip) {typeAuth = '企业未认证或企业认证审核中,无法发布商品权证';pathName = 'User';}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:187");if (res.confirm) {if (pathName === 'User') {_this.$Router.pushTab({ name: pathName });return;}_this.$Router.push({ name: pathName });}} });}, // 领取能量碎片
|
||||
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 });}} });}, // 领取能量碎片
|
||||
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',
|
||||
(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 });
|
||||
|
||||
});
|
||||
@@ -2294,7 +2340,8 @@ var _default = { components: { lF2: _limeF.default }, data: function data() {ret
|
||||
_this3.userAuth = {
|
||||
certification: crystalsData.is_certification,
|
||||
company: crystalsData.is_company,
|
||||
vip: crystalsData.is_vip };
|
||||
vip: crystalsData.is_vip,
|
||||
identity: crystalsData.identity };
|
||||
|
||||
_this3.crystalArr = crystalsData.crystal_array;
|
||||
_this3.allIds = crystalsData.all_ids;
|
||||
@@ -2356,13 +2403,17 @@ var _default = { components: { lF2: _limeF.default }, data: function data() {ret
|
||||
var type = open.openType;
|
||||
switch (type) {
|
||||
case 'switchTab':
|
||||
this.$Router.pushTab({ name: open.path });
|
||||
this.$Router.pushTab({
|
||||
name: open.path });
|
||||
|
||||
break;
|
||||
case 'web':
|
||||
window.location.href = open.path;
|
||||
break;
|
||||
case 'navigateTo':
|
||||
this.$Router.push({ name: open.path });
|
||||
this.$Router.push({
|
||||
name: open.path });
|
||||
|
||||
break;}
|
||||
|
||||
} } };exports.default = _default;
|
||||
@@ -14523,20 +14574,9 @@ var render = function() {
|
||||
]
|
||||
)
|
||||
: _vm._e(),
|
||||
_vm._$s(
|
||||
58,
|
||||
"i",
|
||||
!_vm.identitie[_vm.tabsIndex].can.show_button &&
|
||||
_vm.voucher === ""
|
||||
)
|
||||
? _c("view", {
|
||||
staticClass: _vm._$s(58, "sc", "current-btn-sh"),
|
||||
attrs: { _i: 58 }
|
||||
})
|
||||
: _vm._e(),
|
||||
_c("view", {
|
||||
staticClass: _vm._$s(59, "sc", "ios-bottom"),
|
||||
attrs: { _i: 59 }
|
||||
staticClass: _vm._$s(58, "sc", "ios-bottom"),
|
||||
attrs: { _i: 58 }
|
||||
})
|
||||
]
|
||||
)
|
||||
@@ -14773,7 +14813,12 @@ var _uploading = __webpack_require__(/*! @/apis/interfaces/uploading */ 97);func
|
||||
});
|
||||
_this.identitie = res.identities;
|
||||
if (type === 'cre') {
|
||||
_this.tabsIndex = res.identities.findIndex(function (val) {return val.identity_id == _this.$Route.query.identity_id;});
|
||||
var Index = res.identities.findIndex(function (val) {return val.identity_id == _this.$Route.query.identity_id;});
|
||||
if (Index + 1 === res.identities) {
|
||||
_this.tabsIndex = Index;
|
||||
} else {
|
||||
_this.tabsIndex = Index + 1;
|
||||
}
|
||||
}
|
||||
_this.openCondition = res.identities[_this.tabsIndex].obj_condition;
|
||||
_this.rights = res.identities[_this.tabsIndex].rights;
|
||||
@@ -20934,6 +20979,7 @@ var _uploading = __webpack_require__(/*! @/apis/interfaces/uploading */ 97);func
|
||||
methods: {
|
||||
// picker选择
|
||||
pickerChange: function pickerChange(e, key) {
|
||||
__f__("log", key, e.detail.value, " at pages/goods/goodsAuth.vue:100");
|
||||
this[key] = e.detail.value;
|
||||
},
|
||||
// 图片预览
|
||||
|
||||
13
unpackage/dist/dev/app-plus/app-view.js
vendored
13
unpackage/dist/dev/app-plus/app-view.js
vendored
@@ -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.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% {background-position: -1616rpx 0;\n}\n100% {background-position: 0 0;}\n}\n@keyframes move-map-data-v-2be84a3c {\n0% {background-position: -1616rpx 0;\n}\n100% {background-position: 0 0;}\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\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;
|
||||
|
||||
@@ -6381,16 +6381,9 @@ var render = function() {
|
||||
[_vm._v(_vm._$g(57, "t0-0") + _vm._$g(57, "t0-1"))]
|
||||
)
|
||||
: _vm._e(),
|
||||
_vm._$g(58, "i")
|
||||
? _c(
|
||||
"v-uni-view",
|
||||
{ staticClass: _vm._$g(58, "sc"), attrs: { _i: 58 } },
|
||||
[_vm._v("已开通")]
|
||||
)
|
||||
: _vm._e(),
|
||||
_c("v-uni-view", {
|
||||
staticClass: _vm._$g(59, "sc"),
|
||||
attrs: { _i: 59 }
|
||||
staticClass: _vm._$g(58, "sc"),
|
||||
attrs: { _i: 58 }
|
||||
})
|
||||
],
|
||||
1
|
||||
|
||||
Reference in New Issue
Block a user