feat:分包优化
@@ -6,7 +6,6 @@ let i18nConfig = {
|
|||||||
messages
|
messages
|
||||||
}
|
}
|
||||||
|
|
||||||
window.wx = {}
|
|
||||||
// #ifndef VUE3
|
// #ifndef VUE3
|
||||||
import Vue from 'vue'
|
import Vue from 'vue'
|
||||||
import VueI18n from 'vue-i18n'
|
import VueI18n from 'vue-i18n'
|
||||||
|
|||||||
@@ -176,7 +176,9 @@
|
|||||||
</view>
|
</view>
|
||||||
</view>
|
</view>
|
||||||
</up-modal>
|
</up-modal>
|
||||||
<!-- <CustomTabBar :tabIndex="0" /> -->
|
<!-- #ifndef H5 -->
|
||||||
|
<CustomTabBar :tabIndex="0" />
|
||||||
|
<!-- #endif -->
|
||||||
<up-action-sheet :actions="languageList" :show="languageShow" cancelText="取消"
|
<up-action-sheet :actions="languageList" :show="languageShow" cancelText="取消"
|
||||||
@close="languageShow = false"></up-action-sheet>
|
@close="languageShow = false"></up-action-sheet>
|
||||||
<up-overlay :show="bannerShow">
|
<up-overlay :show="bannerShow">
|
||||||
|
|||||||
@@ -109,7 +109,9 @@
|
|||||||
</view>
|
</view>
|
||||||
</view>
|
</view>
|
||||||
</view>
|
</view>
|
||||||
<!-- <CustomTabBar :tabIndex="4" /> -->
|
<!-- #ifndef H5 -->
|
||||||
|
<CustomTabBar :tabIndex="4" />
|
||||||
|
<!-- #endif -->
|
||||||
<!-- 品牌入驻弹框 -->
|
<!-- 品牌入驻弹框 -->
|
||||||
<up-modal :show="brandShow" :showConfirmButton="false">
|
<up-modal :show="brandShow" :showConfirmButton="false">
|
||||||
<view class="slot-content">
|
<view class="slot-content">
|
||||||
|
|||||||
@@ -97,7 +97,11 @@
|
|||||||
|
|
||||||
<up-toast ref="uToastRef"></up-toast>
|
<up-toast ref="uToastRef"></up-toast>
|
||||||
</view>
|
</view>
|
||||||
<!-- <CustomTabBar :tabIndex="3" /> -->
|
|
||||||
|
<!-- #ifndef H5 -->
|
||||||
|
<CustomTabBar :tabIndex="3" />
|
||||||
|
<!-- #endif -->
|
||||||
|
|
||||||
</view>
|
</view>
|
||||||
</template>
|
</template>
|
||||||
|
|
||||||
|
|||||||
@@ -58,7 +58,10 @@
|
|||||||
</view>
|
</view>
|
||||||
</scroll-view>
|
</scroll-view>
|
||||||
</view>
|
</view>
|
||||||
<!-- <CustomTabBar :tabIndex="1" /> -->
|
<!-- #ifndef H5 -->
|
||||||
|
<CustomTabBar :tabIndex="1" />
|
||||||
|
<!-- #endif -->
|
||||||
|
|
||||||
</view>
|
</view>
|
||||||
</template>
|
</template>
|
||||||
|
|
||||||
|
|||||||
@@ -65,7 +65,9 @@
|
|||||||
</scroll-view>
|
</scroll-view>
|
||||||
</view>
|
</view>
|
||||||
<!-- </view> -->
|
<!-- </view> -->
|
||||||
<!-- <CustomTabBar :tabIndex="2" /> -->
|
<!-- #ifndef H5 -->
|
||||||
|
<CustomTabBar :tabIndex="2" />
|
||||||
|
<!-- #endif -->
|
||||||
</view>
|
</view>
|
||||||
</template>
|
</template>
|
||||||
|
|
||||||
|
|||||||
@@ -3,45 +3,44 @@
|
|||||||
<TopSafe></TopSafe>
|
<TopSafe></TopSafe>
|
||||||
<Header title="加速次数" />
|
<Header title="加速次数" />
|
||||||
<view class="contract-view">
|
<view class="contract-view">
|
||||||
<image src="@/static/new/jia_bg.png" class="jia-img"></image>
|
<image src="https://cex-pub.s3.ap-southeast-1.amazonaws.com/static/mine-purse/jia_bg.png" class="jia-img">
|
||||||
|
</image>
|
||||||
<view class="box-panel" style="margin-top:384rpx">
|
<view class="box-panel" style="margin-top:384rpx">
|
||||||
<view class="box-top flex-r-lr" style="margin-bottom:48rpx;">
|
<view class="box-top flex-r-lr" style="margin-bottom:48rpx;">
|
||||||
<view class="flex-c-lr" v-for="(item,index) in tList" :key="index"
|
<view class="flex-c-lr" v-for="(item, index) in tList" :key="index" style="align-items: center;width:40%;">
|
||||||
style="align-items: center;width:40%;">
|
<text class="text-48 text-zu1 text-bold">{{ item.text }}</text>
|
||||||
<text class="text-48 text-zu1 text-bold">{{item.text}}</text>
|
<text class="text-28 text-zu1">{{ item.value }}</text>
|
||||||
<text class="text-28 text-zu1">{{item.value}}</text>
|
|
||||||
</view>
|
</view>
|
||||||
</view>
|
</view>
|
||||||
<view class="box-list flex-r-lr" style="align-items: center;"
|
<view class="box-list flex-r-lr" style="align-items: center;" v-for="(item, index) in topList" :key="item.text">
|
||||||
v-for="(item,index) in topList" :key="item.text">
|
<text class="text-28 text-zu1">{{ item.text }}</text>
|
||||||
<text class="text-28 text-zu1">{{item.text}}</text>
|
<text class="text-32 text-bold text-zu1">{{ item.value }}</text>
|
||||||
<text class="text-32 text-bold text-zu1">{{item.value}}</text>
|
|
||||||
</view>
|
</view>
|
||||||
<text class="text-zu txt-28 mt-24">加速明细</text>
|
<text class="text-zu txt-28 mt-24">加速明细</text>
|
||||||
<view class="mt-12 table-view">
|
<view class="mt-12 table-view">
|
||||||
<view class="table-head ">
|
<view class="table-head ">
|
||||||
<view class="head-box flex-c" :class="{'border-lr':index == 1}"
|
<view class="head-box flex-c" :class="{ 'border-lr': index == 1 }" v-for="(item, index) in tableHead"
|
||||||
v-for="(item,index) in tableHead" :key="index">
|
:key="index">
|
||||||
<text class="text-20 text-zu1">{{item}}</text>
|
<text class="text-20 text-zu1">{{ item }}</text>
|
||||||
</view>
|
</view>
|
||||||
|
|
||||||
</view>
|
</view>
|
||||||
<view class="table-list" v-for="(item,index) in tableList" :key="index">
|
<view class="table-list" v-for="(item, index) in tableList" :key="index">
|
||||||
<view class="list-box flex-c"
|
<view class="list-box flex-c" v-for="(key, indexT) in 3" :key="indexT"
|
||||||
v-for="(key,indexT) in 3" :key="indexT"
|
:style="{ 'border-bottom-right-radius': index == tableList.length - 1 && indexT == 2 ? '16rpx' : 0 }" :class="{
|
||||||
:style="{'border-bottom-right-radius':index == tableList.length -1 && indexT == 2 ? '16rpx' : 0 }"
|
'border-lr': indexT != 1,
|
||||||
:class="{'border-lr':indexT != 1,
|
'border-left-1': index == tableList.length - 1 && indexT == 0
|
||||||
'border-left-1':index == tableList.length -1 && indexT == 0}">
|
}">
|
||||||
<text class="text-20 text-zu text-bold" v-if="indexT == 0">{{item.one}}</text>
|
<text class="text-20 text-zu text-bold" v-if="indexT == 0">{{ item.one }}</text>
|
||||||
<text class="text-20 text-zu text-bold" v-if="indexT == 1">{{item.two}}</text>
|
<text class="text-20 text-zu text-bold" v-if="indexT == 1">{{ item.two }}</text>
|
||||||
<text class="text-20 text-zu text-bold" v-if="indexT == 2">{{item.three}}</text>
|
<text class="text-20 text-zu text-bold" v-if="indexT == 2">{{ item.three }}</text>
|
||||||
</view>
|
</view>
|
||||||
|
|
||||||
</view>
|
</view>
|
||||||
|
|
||||||
</view>
|
</view>
|
||||||
</view>
|
</view>
|
||||||
<view class="box-panel mt-32 mb-32" >
|
<view class="box-panel mt-32 mb-32">
|
||||||
<text class="text-zu text-32">加速说明</text>
|
<text class="text-zu text-32">加速说明</text>
|
||||||
<text class="text-zu1 text-28 mt-24">获取方式: </text>
|
<text class="text-zu1 text-28 mt-24">获取方式: </text>
|
||||||
<text class="text-zu1 text-28">(1)通过购买报单区和好物区商品的直推和间推奖励获得</text>
|
<text class="text-zu1 text-28">(1)通过购买报单区和好物区商品的直推和间推奖励获得</text>
|
||||||
@@ -68,20 +67,20 @@ import { quickens } from '@/api/contract.js'
|
|||||||
import func from '@/utils/func.js';
|
import func from '@/utils/func.js';
|
||||||
|
|
||||||
export default {
|
export default {
|
||||||
components: { Header,TopSafe,DownPopup },
|
components: { Header, TopSafe, DownPopup },
|
||||||
data() {
|
data() {
|
||||||
return {
|
return {
|
||||||
tList:[
|
tList: [
|
||||||
{text:'100',value:'锁仓TBC'},
|
{ text: '100', value: '锁仓TBC' },
|
||||||
{text:'100',value:'剩余加速包'}
|
{ text: '100', value: '剩余加速包' }
|
||||||
],
|
],
|
||||||
topList:[
|
topList: [
|
||||||
{text:'已获得加速包次数',value:'100'},
|
{ text: '已获得加速包次数', value: '100' },
|
||||||
{text:'已释放TBC数量',value:'20000'},
|
{ text: '已释放TBC数量', value: '20000' },
|
||||||
{text:'剩余未使用加速包次数',value:'200'},
|
{ text: '剩余未使用加速包次数', value: '200' },
|
||||||
],
|
],
|
||||||
tableHead:['加速比例','释放TBC数量','时间'],
|
tableHead: ['加速比例', '释放TBC数量', '时间'],
|
||||||
tableList:[
|
tableList: [
|
||||||
|
|
||||||
]
|
]
|
||||||
};
|
};
|
||||||
@@ -90,13 +89,13 @@ export default {
|
|||||||
this.init();
|
this.init();
|
||||||
},
|
},
|
||||||
methods: {
|
methods: {
|
||||||
init(){
|
init() {
|
||||||
// this.isSignContract()
|
// this.isSignContract()
|
||||||
this.getQuichens()
|
this.getQuichens()
|
||||||
},
|
},
|
||||||
getQuichens(){
|
getQuichens() {
|
||||||
quickens().then(res=>{
|
quickens().then(res => {
|
||||||
if(res.bizcode == 100){
|
if (res.bizcode == 100) {
|
||||||
// this.type = res.data;
|
// this.type = res.data;
|
||||||
this.tList[0].text = res.data.vcoinsLock;
|
this.tList[0].text = res.data.vcoinsLock;
|
||||||
this.tList[1].text = res.data.quickenBalance;
|
this.tList[1].text = res.data.quickenBalance;
|
||||||
@@ -104,12 +103,12 @@ export default {
|
|||||||
this.topList[1].value = res.data.quickenValue;
|
this.topList[1].value = res.data.quickenValue;
|
||||||
this.topList[2].value = res.data.quickenBalance;
|
this.topList[2].value = res.data.quickenBalance;
|
||||||
this.tableList = res.data.quickenDetail;
|
this.tableList = res.data.quickenDetail;
|
||||||
this.tableList.forEach(item=>{
|
this.tableList.forEach(item => {
|
||||||
item.one = item.quickenRate * 100 + '%';
|
item.one = item.quickenRate * 100 + '%';
|
||||||
item.two = item.quickenValue;
|
item.two = item.quickenValue;
|
||||||
item.three = func.formatDate(new Date(item.ctdate), 3)
|
item.three = func.formatDate(new Date(item.ctdate), 3)
|
||||||
})
|
})
|
||||||
}else{
|
} else {
|
||||||
this.$refs.uToastRef.show({
|
this.$refs.uToastRef.show({
|
||||||
type: 'error',
|
type: 'error',
|
||||||
message: res.msg,
|
message: res.msg,
|
||||||
@@ -118,13 +117,13 @@ export default {
|
|||||||
})
|
})
|
||||||
},
|
},
|
||||||
|
|
||||||
onBtn(){
|
onBtn() {
|
||||||
if(this.type){
|
if (this.type) {
|
||||||
//查看
|
//查看
|
||||||
uni.navigateTo({
|
uni.navigateTo({
|
||||||
url:`/pages/contract/check`
|
url: `/pages/contract/check`
|
||||||
})
|
})
|
||||||
}else{
|
} else {
|
||||||
//去签署
|
//去签署
|
||||||
|
|
||||||
}
|
}
|
||||||
@@ -134,74 +133,83 @@ export default {
|
|||||||
</script>
|
</script>
|
||||||
|
|
||||||
<style lang="scss" scoped>
|
<style lang="scss" scoped>
|
||||||
.contract-view{
|
.contract-view {
|
||||||
width:100%;
|
width: 100%;
|
||||||
height:calc(100% - 88rpx - var(--status-bar-height));
|
height: calc(100% - 88rpx - var(--status-bar-height));
|
||||||
display: flex;
|
display: flex;
|
||||||
flex-direction: column;
|
flex-direction: column;
|
||||||
align-items: center;
|
align-items: center;
|
||||||
overflow-y: auto;
|
overflow-y: auto;
|
||||||
padding: 0 32rpx;
|
padding: 0 32rpx;
|
||||||
box-sizing: border-box;
|
box-sizing: border-box;
|
||||||
background: linear-gradient( 315deg, #AF39C4 0%, #7732FF 100%);
|
background: linear-gradient(315deg, #AF39C4 0%, #7732FF 100%);
|
||||||
position: relative;
|
position: relative;
|
||||||
.jia-img{
|
|
||||||
width:724rpx;
|
.jia-img {
|
||||||
height:400rpx;
|
width: 724rpx;
|
||||||
|
height: 400rpx;
|
||||||
position: absolute;
|
position: absolute;
|
||||||
z-index: 0;
|
z-index: 0;
|
||||||
margin-top:calc(var(--status-bar-height) + 52rpx);
|
margin-top: calc(var(--status-bar-height) + 52rpx);
|
||||||
}
|
}
|
||||||
.box-panel{
|
|
||||||
|
.box-panel {
|
||||||
position: relative;
|
position: relative;
|
||||||
z-index: 1;
|
z-index: 1;
|
||||||
display: flex;
|
display: flex;
|
||||||
flex-direction: column;
|
flex-direction: column;
|
||||||
padding: 50rpx 32rpx;
|
padding: 50rpx 32rpx;
|
||||||
width:690rpx;
|
width: 690rpx;
|
||||||
border-radius: 36rpx;
|
border-radius: 36rpx;
|
||||||
background-color: #fff;
|
background-color: #fff;
|
||||||
box-sizing: border-box;
|
box-sizing: border-box;
|
||||||
.box-top{
|
|
||||||
width:100%;
|
.box-top {
|
||||||
height:86rpx;
|
width: 100%;
|
||||||
min-height:86rpx;
|
height: 86rpx;
|
||||||
|
min-height: 86rpx;
|
||||||
}
|
}
|
||||||
.box-list{
|
|
||||||
width:100%;
|
.box-list {
|
||||||
min-height:84rpx;
|
width: 100%;
|
||||||
border-bottom:1rpx solid #ececec;
|
min-height: 84rpx;
|
||||||
|
border-bottom: 1rpx solid #ececec;
|
||||||
}
|
}
|
||||||
.table-view{
|
|
||||||
width:100%;
|
.table-view {
|
||||||
|
width: 100%;
|
||||||
display: flex;
|
display: flex;
|
||||||
flex-direction: column;
|
flex-direction: column;
|
||||||
border-radius: 16rpx;
|
border-radius: 16rpx;
|
||||||
overflow: hidden;
|
overflow: hidden;
|
||||||
.table-list{
|
|
||||||
width:100%;
|
.table-list {
|
||||||
height:64rpx;
|
width: 100%;
|
||||||
min-height:64rpx;
|
height: 64rpx;
|
||||||
|
min-height: 64rpx;
|
||||||
display: flex;
|
display: flex;
|
||||||
flex-direction: row;
|
flex-direction: row;
|
||||||
justify-content: space-between;
|
justify-content: space-between;
|
||||||
border-bottom:1rpx solid #EAEAEA;
|
border-bottom: 1rpx solid #EAEAEA;
|
||||||
.list-box{
|
|
||||||
flex:1;
|
.list-box {
|
||||||
height:100%;
|
flex: 1;
|
||||||
|
height: 100%;
|
||||||
box-sizing: border-box;
|
box-sizing: border-box;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
.table-head{
|
|
||||||
width:100%;
|
.table-head {
|
||||||
height:80rpx;
|
width: 100%;
|
||||||
min-height:80rpx;
|
height: 80rpx;
|
||||||
|
min-height: 80rpx;
|
||||||
display: flex;
|
display: flex;
|
||||||
flex-direction: row;
|
flex-direction: row;
|
||||||
justify-content: space-between;
|
justify-content: space-between;
|
||||||
.head-box{
|
|
||||||
flex:1;
|
.head-box {
|
||||||
height:100%;
|
flex: 1;
|
||||||
|
height: 100%;
|
||||||
background-color: #FAF8FE;
|
background-color: #FAF8FE;
|
||||||
box-sizing: border-box;
|
box-sizing: border-box;
|
||||||
}
|
}
|
||||||
@@ -209,11 +217,13 @@ export default {
|
|||||||
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
.border-lr{
|
|
||||||
border-left:1rpx solid #EAEAEA;
|
.border-lr {
|
||||||
border-right:1rpx solid #EAEAEA;
|
border-left: 1rpx solid #EAEAEA;
|
||||||
|
border-right: 1rpx solid #EAEAEA;
|
||||||
}
|
}
|
||||||
.border-left-1{
|
|
||||||
|
.border-left-1 {
|
||||||
border-bottom-left-radius: 16rpx;
|
border-bottom-left-radius: 16rpx;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
|
Before Width: | Height: | Size: 125 KiB |
|
Before Width: | Height: | Size: 489 KiB |
|
Before Width: | Height: | Size: 16 KiB |
|
Before Width: | Height: | Size: 15 KiB |
|
Before Width: | Height: | Size: 18 KiB |
|
Before Width: | Height: | Size: 16 KiB |
|
Before Width: | Height: | Size: 15 KiB |
|
Before Width: | Height: | Size: 16 KiB |
|
Before Width: | Height: | Size: 16 KiB |
|
Before Width: | Height: | Size: 19 KiB |
|
Before Width: | Height: | Size: 17 KiB |
|
Before Width: | Height: | Size: 15 KiB |