dingdong-mall/pages/index/msg-home.vue

61 lines
1.2 KiB
Vue
Raw Permalink Normal View History

2022-04-23 23:13:29 +08:00
<template>
2024-07-30 10:15:19 +08:00
<c-tabbar :current="3">
2022-04-23 23:13:29 +08:00
<view class="margin-bottom-lg">
<!-- 顶部操作条 -->
<cu-custom :bgColor="'bg-main-color'">
<block slot="content">我的消息</block>
</cu-custom>
<bg-toast :icon="'repair'" :msg="'开发中'"></bg-toast>
2022-04-23 23:13:29 +08:00
</view>
2024-07-30 10:15:19 +08:00
</c-tabbar>
2022-04-23 23:13:29 +08:00
</template>
<script>
2024-07-30 10:15:19 +08:00
import bgToast from '@/components/default-toast/bg-toast.vue';
import CTabbar from '@/components/CTabbar.vue';
2022-04-23 23:13:29 +08:00
export default {
2022-06-25 17:31:17 +08:00
name: 'msgPage',
components: {
2024-07-30 10:15:19 +08:00
bgToast,
CTabbar
},
2022-04-23 23:13:29 +08:00
data() {
return {
}
},
2024-07-30 10:15:19 +08:00
async onShareAppMessage(e) {
let shareInfo = null;
if (e && e.target && e.target.dataset) {
shareInfo = e.target.dataset.shareInfo;
}
if (!this.curUserInfo) {
this.curUserInfo = await this.$request.getCurUserNoCache();
if (!this.curUserInfo) {
uni.showToast({
title: '请前往“我的”完成登录',
icon: 'none'
})
return;
}
}
if (!shareInfo) {
shareInfo = {
title: '家政服务就找工圈子',
path: '/pages/index/home?distributor=' + this.curUserInfo.customerId,
imageUrl: 'http://gqz.opsoul.com/sys/group-selfie.png'
}
}
return shareInfo;
},
2022-04-23 23:13:29 +08:00
methods: {
}
}
</script>
<style>
</style>