[个人认证vip会员开通,企业认证才能发布权证首页,]

This commit is contained in:
2021-10-25 14:59:19 +08:00
parent cbfca1ad21
commit 2bc9ea63c0
5 changed files with 785 additions and 635 deletions

View File

@@ -97,6 +97,7 @@
methods: {
// picker选择
pickerChange(e, key){
console.log(key,e.detail.value)
this[key] = e.detail.value
},
// 图片预览

View File

@@ -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>
@@ -46,40 +52,58 @@
</view>
<!-- 任务推荐 -->
<scroll-view class="task-block" scroll-x="true">
<view class="item" v-for="(item, index) in categoryArr" :key="index" @click="JumpUrl(item.url, item.title)">
<view class="text nowrap">{{item.sub_title}}</view>
<view class="icon">
<image :src="item.cover" />
</view>
<view class="title nowrap">{{item.title}}</view>
<view class="submit-title nowrap">能量碎片{{item.tips}}</view>
</view>
<view class="item" v-for="(item, index) in categoryArr" :key="index" @click="JumpUrl(item.url, item.title)">
<view class="text nowrap">{{item.sub_title}}</view>
<view class="icon">
<image :src="item.cover" />
</view>
<view class="title nowrap">{{item.title}}</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">平台能量球余量<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,36 +121,40 @@
</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 {
components:{
components: {
lF2
},
data() {
return {
isAuth : false,
chains : { // 区块链统计
balance : 0,
height : 0,
number : 0,
score : 0,
up : 0,
stone : 0
isAuth: false,
chains: { // 区块链统计
balance: 0,
height: 0,
number: 0,
score: 0,
up: 0,
stone: 0
},
account : { // 账户
coin : 0,
crystal : 0
account: { // 账户
coin: 0,
crystal: 0
},
crystalArr : [], // 待领取
allIds : [], // 可领取ids
categoryArr : [], // 推荐列表
help : {}, // 帮助信息
userAuth : { // 用户认证状态
certification : false,
company : false,
vip : false
crystalArr: [], // 待领取
allIds: [], // 可领取ids
categoryArr: [], // 推荐列表
help: {}, // 帮助信息
userAuth: { // 用户认证状态
certification: false,
company: false,
vip: false
}
};
},
@@ -134,7 +162,7 @@
this.isAuth = this.$store.state.token != ''
this.getIndex()
},
methods:{
methods: {
// 求助信息
showHelp(key) {
uni.showModal({
@@ -145,52 +173,70 @@
})
},
// 查看钱包账户
navAccount(pathName){
navAccount(pathName) {
console.log(1111)
if(!this.isAuth){
this.$Router.push({name: 'Login'})
if (!this.isAuth) {
this.$Router.push({
name: 'Login'
})
return
}
this.$Router.push({name: pathName})
this.$Router.push({
name: pathName
})
},
// 发权证
issueGoosd(){
issueGoosd() {
let typeAuth = '',
pathName = ''
if(this.userAuth.certification && this.userAuth.company && this.userAuth.vip){
this.$Router.push({name: 'goodsManagement'})
if (this.userAuth.certification && this.userAuth.company && this.userAuth.vip) {
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: '提示',
content: typeAuth,
cancelColor: '#555',
cancelText: '稍后',
confirmText: pathName === 'vipIndex' ? '去开通': '去认证',
confirmText: pathName === 'vipIndex' ? '去开通' : '去认证',
confirmColor: '#8b64fd',
success: res => {
console.log(pathName)
if(res.confirm) {
if(pathName === 'User'){
this.$Router.pushTab({name: pathName})
if (res.confirm) {
// 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
})
}
}
})
@@ -228,36 +274,37 @@
})
},
// occ信息
getIndex(){
Promise.all([crystals(), chain()]).then(res=>{
getIndex() {
Promise.all([crystals(), chain()]).then(res => {
let crystalsData = res[0],
occData = res[1]
if(!crystalsData.needLogin){
this.account = {
coin : crystalsData.coin,
crystal : crystalsData.crystal
occData = res[1]
if (!crystalsData.needLogin) {
this.account = {
coin: crystalsData.coin,
crystal: crystalsData.crystal
}
this.userAuth = {
certification : crystalsData.is_certification,
company : crystalsData.is_company,
vip : crystalsData.is_vip
this.userAuth = {
certification: crystalsData.is_certification,
company: crystalsData.is_company,
vip: crystalsData.is_vip,
identity: crystalsData.identity
}
this.crystalArr = crystalsData.crystal_array
this.allIds = crystalsData.all_ids
this.allIds = crystalsData.all_ids
}
this.chains = occData.data
this.chains = occData.data
this.categoryArr = occData.tasks
this.help = occData.help
this.help = occData.help
this.showCartc(occData.movement)
}).catch(err => {
uni.showToast({
title: err.message,
icon : 'none'
icon: 'none'
})
})
},
// 绘制图表
showCartc(data){
showCartc(data) {
// 图表信息
this.$refs.chartChange.init(config => {
config.appendPadding = [10, 30, 10, 15]
@@ -279,12 +326,12 @@
});
chart.area()
.position('date*value')
.color('name', [ '#5881d3', '#ca66e0' ])
.color('name', ['#5881d3', '#ca66e0'])
.shape('smooth')
chart.line()
.position('date*value')
.color('name', [ '#5881d3', '#ca66e0' ])
.shape('smooth', name=> {
.color('name', ['#5881d3', '#ca66e0'])
.shape('smooth', name => {
if (name === '预期收益率') {
return 'line';
}
@@ -292,33 +339,37 @@
return 'line';
}
});
chart.render();
chart.render();
return chart;
})
},
// 能量跳转
JumpUrl(open, title) {
var type = open.openType;
switch(type){
case 'switchTab':
this.$Router.pushTab({name: open.path})
break;
case 'web':
window.location.href = open.path
break;
case 'navigateTo':
this.$Router.push({name: open.path})
break;
}
}
// 能量跳转
JumpUrl(open, title) {
var type = open.openType;
switch (type) {
case 'switchTab':
this.$Router.pushTab({
name: open.path
})
break;
case 'web':
window.location.href = open.path
break;
case 'navigateTo':
this.$Router.push({
name: open.path
})
break;
}
}
}
}
</script>
<style scoped>
/* 星球旋转 */
.ball{
.ball {
position: absolute;
height: 480rpx;
width: 480rpx;
@@ -336,9 +387,10 @@
-o-animation: move-map 60s infinite linear;
-ms-animation: move-map 60s infinite linear;
animation: move-map 60s infinite linear;
box-shadow: 0 0 50rpx 50rpx rgba(31,25,34, .2);
box-shadow: 0 0 50rpx 50rpx rgba(31, 25, 34, .2);
}
.shadow{
.shadow {
position: absolute;
top: 1%;
left: 5%;
@@ -347,10 +399,11 @@
border-radius: 50%;
filter: blur(5px);
z-index: 3;
background: radial-gradient(circle at 50% 0, rgba(255,255,255, .6) , rgba(255, 255, 255, .0) 58%);
background: radial-gradient(circle at 50% 0, rgba(255, 255, 255, .6), rgba(255, 255, 255, .0) 58%);
}
.ball:before,
.ball::after{
.ball::after {
position: absolute;
top: 0;
left: 0;
@@ -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%);
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%);
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;
@@ -401,34 +474,39 @@
</style>
<style lang="scss" scoped>
.content{
.content {
min-height: calc(100vh - 60px);
background: #1f1922;
overflow: hidden;
}
// 平台概况
.situation{
.situation {
margin: 0 $margin;
background-image: linear-gradient(to bottom, $block-color, #1f1922);
border-radius: $radius;
padding: $padding $padding/2 $padding*2;
// 平台统计
.header{
.header {
display: flex;
flex-wrap: wrap;
padding-bottom: $padding;
.number{
.number {
color: white;
font-size: $title-size;
font-weight: bold;
line-height: 70rpx;
}
.title{
.title {
color: rgba($color: white, $alpha: .4);
font-size: $title-size-sm;
line-height: 40rpx;
}
.header-item{
.header-item {
width: 50%;
padding: $padding / 2;
padding-bottom: $padding;
@@ -441,30 +519,35 @@
// }
}
}
// 图表
.chart{
.chart {
background: rgba($color: $block-color, $alpha: .8);
padding: $padding/2;
border-radius: $radius/2;
.title{
.title {
text-align: center;
line-height: 80rpx;
color: rgba($color: #FFFFFF, $alpha: .4);
font-size: $title-size-sm;
}
.chart-f2{
.chart-f2 {
height: 200px;
}
}
}
// 数据统计
.header-total{
.header-total {
position: fixed;
top: 0;
left: 0;
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,7 +563,8 @@
color: white;
font-size: $title-size-sm;
line-height: 76rpx;
image{
image {
width: 38rpx;
height: 38rpx;
vertical-align: top;
@@ -499,22 +584,26 @@
}
}
}
// 求助icon
.help-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,16 +611,19 @@
height: 100%;
width: 100%;
z-index: 1;
.oct-float-item{
.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{
.oct-icon {
display: inline-block;
width: 58rpx;
height: 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,25 +639,30 @@
}
}
}
.ore-item-nav{
.ore-item-nav {
@extend .oct-float-item;
right: $margin;
top: 12%;
}
.ore-item {
@extend .oct-float-item;
}
.oct-login{
.oct-login {
@extend .oct-float-item;
left: 42%;
top: 45%;
}
}
}
// 任务
.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,24 +689,28 @@
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{
.submit-title {
font-size: $title-size-sm - 4;
color: rgba($color: white, $alpha: .4);
line-height: 40rpx;

View File

@@ -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

View File

@@ -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;
},
// 图片预览

View File

@@ -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