|
@@ -2,7 +2,7 @@
|
|
|
<view class="pagesCons">
|
|
|
<view class="utabs">
|
|
|
<u-tabs-swiper ref="uTabs" :list="tabList" name="dispName" :current="current" @change="tabsChange" :is-scroll="false" swiperWidth="750"></u-tabs-swiper>
|
|
|
- <view class="message">我的邀请码:1A2B <copyText text="1A2B" label="邀请码"></copyText></view>
|
|
|
+ <view class="message">我的邀请码:{{yqcode}} <copyText :text="yqcode" label="邀请码"></copyText></view>
|
|
|
</view>
|
|
|
<swiper class="check-list" :current="swiperCurrent" @transition="transition" @change="swiperChange" @animationfinish="animationfinish">
|
|
|
<swiper-item class="swiper-item" v-for="(tabs, index) in tabList" :key="index">
|
|
@@ -68,13 +68,16 @@
|
|
|
background: this.$config('primaryColor'),
|
|
|
marginLeft: '20rpx'
|
|
|
},
|
|
|
+ yqcode: ''
|
|
|
}
|
|
|
},
|
|
|
onLoad(options) {
|
|
|
const _this = this
|
|
|
_this.tabList = this.$store.state.vuex_storeAuthState
|
|
|
- _this.getRow()
|
|
|
-
|
|
|
+ // 邀请码
|
|
|
+ _this.yqcode = this.$store.state.vuex_userData.extInfo.dealer.dealerInviteCode
|
|
|
+ // 获取数据
|
|
|
+ _this.getRow(1)
|
|
|
uni.$on("updateAuthState",function(){
|
|
|
_this.getRow(1)
|
|
|
})
|