|
@ -5,45 +5,40 @@ |
|
|
|
|
|
|
|
|
<view class="content"> |
|
|
<view class="content"> |
|
|
<navbar title="首页" bgColor="transparent" color="#FFFFFF" /> |
|
|
<navbar title="首页" bgColor="transparent" color="#FFFFFF" /> |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
<view class="btns"> |
|
|
<view class="btns"> |
|
|
<button |
|
|
|
|
|
v-for="item in list" |
|
|
|
|
|
:key="item.title" |
|
|
|
|
|
class="btn" |
|
|
|
|
|
plain |
|
|
|
|
|
@click="onClick(item.path)" |
|
|
|
|
|
> |
|
|
|
|
|
|
|
|
<button v-for="item in list" :key="item.title" class="btn" plain @click="onClick(item.path)"> |
|
|
{{ item.title }} |
|
|
{{ item.title }} |
|
|
</button> |
|
|
</button> |
|
|
</view> |
|
|
</view> |
|
|
</view> |
|
|
</view> |
|
|
|
|
|
|
|
|
<popupAuditMsg ref="popupAuditMsgRef"></popupAuditMsg> |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
<popupAuditMsg ref="popupAuditMsgRef" count="15"></popupAuditMsg> |
|
|
|
|
|
|
|
|
<popupActivate ref="popupActivate"></popupActivate> |
|
|
<popupActivate ref="popupActivate"></popupActivate> |
|
|
|
|
|
|
|
|
<tabber select="home"/> |
|
|
|
|
|
|
|
|
<tabber select="home" /> |
|
|
|
|
|
|
|
|
</view> |
|
|
</view> |
|
|
</template> |
|
|
</template> |
|
|
|
|
|
|
|
|
<script> |
|
|
|
|
|
import { mapState } from 'vuex' |
|
|
|
|
|
|
|
|
<script> |
|
|
|
|
|
import { |
|
|
|
|
|
mapState |
|
|
|
|
|
} from 'vuex' |
|
|
import tabber from '@/components/base/tabbar.vue' |
|
|
import tabber from '@/components/base/tabbar.vue' |
|
|
import popupAuditMsg from '@/components/home/popupAuditMsg.vue' |
|
|
import popupAuditMsg from '@/components/home/popupAuditMsg.vue' |
|
|
import popupActivate from '@/components/center/popupActivate.vue' |
|
|
import popupActivate from '@/components/center/popupActivate.vue' |
|
|
|
|
|
|
|
|
export default { |
|
|
export default { |
|
|
components : { |
|
|
|
|
|
|
|
|
components: { |
|
|
tabber, |
|
|
tabber, |
|
|
popupAuditMsg, |
|
|
popupAuditMsg, |
|
|
popupActivate, |
|
|
popupActivate, |
|
|
}, |
|
|
}, |
|
|
data() { |
|
|
data() { |
|
|
return { |
|
|
return { |
|
|
list: [ |
|
|
|
|
|
{ |
|
|
|
|
|
|
|
|
list: [{ |
|
|
title: '个人分享', |
|
|
title: '个人分享', |
|
|
path: '/pages_order/record/personalSharing' |
|
|
path: '/pages_order/record/personalSharing' |
|
|
}, |
|
|
}, |
|
@ -66,26 +61,30 @@ |
|
|
], |
|
|
], |
|
|
} |
|
|
} |
|
|
}, |
|
|
}, |
|
|
computed: { |
|
|
|
|
|
|
|
|
computed: { |
|
|
...mapState(['userInfo']), |
|
|
...mapState(['userInfo']), |
|
|
}, |
|
|
}, |
|
|
onLoad(option) { |
|
|
onLoad(option) { |
|
|
const { id, state, shareId } = option |
|
|
|
|
|
|
|
|
const { |
|
|
|
|
|
id, |
|
|
|
|
|
state, |
|
|
|
|
|
shareId |
|
|
|
|
|
} = option |
|
|
|
|
|
|
|
|
if (shareId) { |
|
|
if (shareId) { |
|
|
uni.setStorageSync('shareId', shareId) |
|
|
uni.setStorageSync('shareId', shareId) |
|
|
} |
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
if (state) { |
|
|
if (state) { |
|
|
uni.setStorageSync('state', state) |
|
|
uni.setStorageSync('state', state) |
|
|
} |
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
if (id) { |
|
|
if (id) { |
|
|
uni.setStorageSync('id', id) |
|
|
uni.setStorageSync('id', id) |
|
|
} |
|
|
} |
|
|
|
|
|
|
|
|
if (shareId && !uni.getStorageSync('token')) { |
|
|
if (shareId && !uni.getStorageSync('token')) { |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
uni.navigateTo({ |
|
|
uni.navigateTo({ |
|
|
url: '/pages_order/auth/wxLogin' |
|
|
url: '/pages_order/auth/wxLogin' |
|
|
}) |
|
|
}) |
|
@ -97,6 +96,9 @@ |
|
|
this.$store.commit('getUserInfo') |
|
|
this.$store.commit('getUserInfo') |
|
|
} |
|
|
} |
|
|
}, |
|
|
}, |
|
|
|
|
|
onShow() { |
|
|
|
|
|
this.getMsg() |
|
|
|
|
|
}, |
|
|
methods: { |
|
|
methods: { |
|
|
onClick(url) { |
|
|
onClick(url) { |
|
|
if (!uni.getStorageSync('token')) { |
|
|
if (!uni.getStorageSync('token')) { |
|
@ -111,21 +113,23 @@ |
|
|
return |
|
|
return |
|
|
} |
|
|
} |
|
|
this.$utils.navigateTo(url) |
|
|
this.$utils.navigateTo(url) |
|
|
} |
|
|
|
|
|
|
|
|
}, |
|
|
|
|
|
getMsg(){ |
|
|
|
|
|
this.$refs.popupAuditMsgRef.open() |
|
|
|
|
|
}, |
|
|
}, |
|
|
}, |
|
|
} |
|
|
} |
|
|
</script> |
|
|
</script> |
|
|
|
|
|
|
|
|
<style scoped lang="scss"> |
|
|
<style scoped lang="scss"> |
|
|
|
|
|
|
|
|
.page{ |
|
|
|
|
|
& /deep/ .uv-icon__icon{ |
|
|
|
|
|
|
|
|
.page { |
|
|
|
|
|
& /deep/ .uv-icon__icon { |
|
|
font-size: 30rpx !important; |
|
|
font-size: 30rpx !important; |
|
|
} |
|
|
} |
|
|
|
|
|
|
|
|
position: relative; |
|
|
position: relative; |
|
|
height: 100vh; |
|
|
height: 100vh; |
|
|
overflow: hidden; |
|
|
|
|
|
|
|
|
overflow: hidden; |
|
|
|
|
|
|
|
|
.btns { |
|
|
.btns { |
|
|
display: grid; |
|
|
display: grid; |
|
@ -158,5 +162,4 @@ |
|
|
height: 100vh; |
|
|
height: 100vh; |
|
|
top: 0; |
|
|
top: 0; |
|
|
} |
|
|
} |
|
|
|
|
|
|
|
|
</style> |
|
|
|
|
|
|
|
|
</style> |