feat: 屏蔽积分
This commit is contained in:
+1
-1
@@ -668,7 +668,7 @@
|
|||||||
},
|
},
|
||||||
computed: {
|
computed: {
|
||||||
isBlockedDate() {
|
isBlockedDate() {
|
||||||
return !useTabber(13);
|
return !useTabber(15);
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
};
|
};
|
||||||
|
|||||||
@@ -524,6 +524,9 @@ export default {
|
|||||||
if (result && result.bizcode === 100) {
|
if (result && result.bizcode === 100) {
|
||||||
const data = result.data;
|
const data = result.data;
|
||||||
this.currentUserData = result.data || {};
|
this.currentUserData = result.data || {};
|
||||||
|
if(!this.currentUserData?.isNewUser){
|
||||||
|
this.applyList = this.applyList.filter((item) => item.id !== 5);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
jumpToTrustBridge() {
|
jumpToTrustBridge() {
|
||||||
|
|||||||
@@ -19,7 +19,7 @@
|
|||||||
<view class="contract-view" v-if="topSelect == 0">
|
<view class="contract-view" v-if="topSelect == 0">
|
||||||
<view class="top-head">
|
<view class="top-head">
|
||||||
<text class="text-32 text-zu1 text-bold">股权分布</text>
|
<text class="text-32 text-zu1 text-bold">股权分布</text>
|
||||||
<text class="text-28 text-fu">51%的股权回馈消费者(免费赠予),股权以数字积分形式发放。</text>
|
<text class="text-28 text-fu">51%的股权回馈消费者(免费赠予)。<text v-if="currentUserData?.isNewUser">股权以积分形式发放</text></text>
|
||||||
</view>
|
</view>
|
||||||
<view class="tu-view">
|
<view class="tu-view">
|
||||||
<!-- <view class="tu-box"> -->
|
<!-- <view class="tu-box"> -->
|
||||||
@@ -46,7 +46,7 @@
|
|||||||
:opts="twoOps"
|
:opts="twoOps"
|
||||||
:chartData="twoData"/>
|
:chartData="twoData"/>
|
||||||
</view>
|
</view>
|
||||||
<view class="bottom-view">
|
<view class="bottom-view" v-if="currentUserData?.isNewUser">
|
||||||
<text class="text-32 text-zu1 text-bold">免费赠予详细规则</text>
|
<text class="text-32 text-zu1 text-bold">免费赠予详细规则</text>
|
||||||
<view class="bottom-head">
|
<view class="bottom-head">
|
||||||
<view class="head-one">
|
<view class="head-one">
|
||||||
@@ -189,6 +189,7 @@ import TopSafe from '@/components/common/top-safe.nvue'
|
|||||||
import func from '@/utils/func.js';
|
import func from '@/utils/func.js';
|
||||||
import qiunDataCharts from '@/uni_modules/qiun-data-charts/components/qiun-data-charts/qiun-data-charts.vue'
|
import qiunDataCharts from '@/uni_modules/qiun-data-charts/components/qiun-data-charts/qiun-data-charts.vue'
|
||||||
import { getProfitSharingData } from '@/api/finance.js'
|
import { getProfitSharingData } from '@/api/finance.js'
|
||||||
|
import { getUserInfo } from '@/api/auth.js';
|
||||||
export default {
|
export default {
|
||||||
components: { Header,TopSafe,qiunDataCharts },
|
components: { Header,TopSafe,qiunDataCharts },
|
||||||
data() {
|
data() {
|
||||||
@@ -202,6 +203,7 @@ export default {
|
|||||||
tabOne:['每日','每月'],
|
tabOne:['每日','每月'],
|
||||||
curOne:0,
|
curOne:0,
|
||||||
tabTwo:['数字积分','利润共享计划'],
|
tabTwo:['数字积分','利润共享计划'],
|
||||||
|
// tabTwo:["利润共享计划"],
|
||||||
curTwo:0,
|
curTwo:0,
|
||||||
delayload: false,
|
delayload: false,
|
||||||
oneList:[
|
oneList:[
|
||||||
@@ -313,12 +315,13 @@ export default {
|
|||||||
}
|
}
|
||||||
},
|
},
|
||||||
curData:null,
|
curData:null,
|
||||||
fiveTotal:0
|
fiveTotal:0,
|
||||||
|
currentUserData:{}
|
||||||
};
|
};
|
||||||
},
|
},
|
||||||
onReady(){
|
onReady(){
|
||||||
// this.initTwo();
|
// this.initTwo();
|
||||||
|
this.getUserInfo();
|
||||||
},
|
},
|
||||||
onLoad() {
|
onLoad() {
|
||||||
// setTimeout(()=>{
|
// setTimeout(()=>{
|
||||||
@@ -327,6 +330,17 @@ export default {
|
|||||||
this.profitSharingData();
|
this.profitSharingData();
|
||||||
},
|
},
|
||||||
methods: {
|
methods: {
|
||||||
|
// 查询用户等级
|
||||||
|
async getUserInfo() {
|
||||||
|
const result = await getUserInfo();
|
||||||
|
if (result && result.bizcode === 100) {
|
||||||
|
|
||||||
|
this.currentUserData = result.data || {};
|
||||||
|
if(!this.currentUserData?.isNewUser){
|
||||||
|
this.tabTwo = this.tabTwo.filter((item) => item !== '数字积分');
|
||||||
|
}
|
||||||
|
}
|
||||||
|
},
|
||||||
onTwoTop(index){
|
onTwoTop(index){
|
||||||
if(this.curTopTwo !== index){
|
if(this.curTopTwo !== index){
|
||||||
this.curTopTwo = index;
|
this.curTopTwo = index;
|
||||||
@@ -350,10 +364,16 @@ export default {
|
|||||||
}
|
}
|
||||||
},
|
},
|
||||||
onTwo(index){
|
onTwo(index){
|
||||||
if(this.curTwo !== index){
|
if(!this.currentUserData?.isNewUser){
|
||||||
this.curTwo = index;
|
this.curTwo = 1;
|
||||||
this.getFive();
|
this.getFive();
|
||||||
|
}else{
|
||||||
|
if(this.curTwo !== index){
|
||||||
|
this.curTwo = index;
|
||||||
|
this.getFive();
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
},
|
},
|
||||||
getFive(){
|
getFive(){
|
||||||
this.fiveData.categories = [];
|
this.fiveData.categories = [];
|
||||||
|
|||||||
+4
-4
@@ -2,11 +2,11 @@
|
|||||||
// export const BASE_URL="http://cl55un59859.vicp.fun:24346"; // 测试环境
|
// export const BASE_URL="http://cl55un59859.vicp.fun:24346"; // 测试环境
|
||||||
|
|
||||||
|
|
||||||
export const BASE_URL = "https://api.tbmall.xin"; //生产
|
// export const BASE_URL = "https://api.tbmall.xin"; //生产
|
||||||
export const MILD_BASE_URL = "https://agent.tbmall.xin/"; //中台生产
|
// export const MILD_BASE_URL = "https://agent.tbmall.xin/"; //中台生产
|
||||||
//
|
//
|
||||||
// export const BASE_URL ='https://api.o.tbmall.xin'; // 本地测试
|
export const BASE_URL ='https://api.o.tbmall.xin'; // 本地测试
|
||||||
// export const MILD_BASE_URL = "https://agent.o.tbmall.xin/"; //中台测试
|
export const MILD_BASE_URL = "https://agent.o.tbmall.xin/"; //中台测试
|
||||||
|
|
||||||
|
|
||||||
export const SHARE_URL = 'https://h.tbmall.xin';
|
export const SHARE_URL = 'https://h.tbmall.xin';
|
||||||
|
|||||||
Reference in New Issue
Block a user