Xiao_123 6 mesi fa
parent
commit
07ade8bcf5
4 ha cambiato i file con 80 aggiunte e 6 eliminazioni
  1. 19 1
      pages/index/communicate.vue
  2. 20 3
      pages/index/crowdsourcing.vue
  3. 20 1
      pages/index/my.vue
  4. 21 1
      pages/index/welfare.vue

+ 19 - 1
pages/index/communicate.vue

@@ -50,7 +50,7 @@ import layoutPage from '@/layout'
 // import { getAccessToken } from '@/utils/request'
 // import { showAuthModal } from '@/hooks/useModal'
 import { getConversationSync } from '@/api/common'
-import { onShow } from '@dcloudio/uni-app'
+import { onShow, onLoad } from '@dcloudio/uni-app'
 import { getUserAvatar } from '@/utils/avatar'
 import { timesTampChange } from '@/utils/date'
 import { userStore } from '@/store/user'
@@ -85,6 +85,24 @@ onShow(() => {
 	currentTabBar?.setData({ selected: 1 });
 	init()
 })
+onLoad(() => {
+  wx.showShareMenu({
+    withShareTicket: true,
+    menus: ['shareAppMessage', 'shareTimeline']
+  })
+  onShareAppMessage(() => {
+    return {
+      title: '门墩儿 专注顶尖招聘',
+      path: '/pages/index/position'
+    }
+  })
+  onShareTimeline(() => {
+    return {
+      title: '门墩儿 专注顶尖招聘',
+      path: '/pages/index/position'
+    }
+  })
+})
 
 
 

+ 20 - 3
pages/index/crowdsourcing.vue

@@ -59,9 +59,6 @@ onShow(() => {
     // 设置当前tab页的下标index
     currentTabBar?.setData({ selected: 3 });
 })
-onLoad(() => {
-	getList()
-})
 const swiperAdList = [
   { src: 'https://minio.menduner.com/dev/menduner/banner/IHG.gif', id: '577540545828753408' },
   { src: 'https://minio.menduner.com/dev/menduner/banner/Marriott.jpg', id: '734173233779183616' },
@@ -87,6 +84,26 @@ const handleToDetails = ({ id }) => {
   })
 }
 
+onLoad(() => {
+	getList()
+  wx.showShareMenu({
+    withShareTicket: true,
+    menus: ['shareAppMessage', 'shareTimeline']
+  })
+  onShareAppMessage(() => {
+    return {
+      title: '门墩儿 专注顶尖招聘',
+      path: '/pages/index/position'
+    }
+  })
+  onShareTimeline(() => {
+    return {
+      title: '门墩儿 专注顶尖招聘',
+      path: '/pages/index/position'
+    }
+  })
+})
+
 const loadingMore = (e) => {
 	if (total.value === items.length) {
 		return

+ 20 - 1
pages/index/my.vue

@@ -78,7 +78,7 @@ import { getUserAvatar } from '@/utils/avatar'
 import { getAccessToken } from '@/utils/request'
 import layoutPage from '@/layout'
 import { showAuthModal } from '@/hooks/useModal'
-import { onShow } from '@dcloudio/uni-app'
+import { onShow, onLoad } from '@dcloudio/uni-app'
 import { getJobAdvertisedShareQrcode } from '@/api/user'
 // 设置自定义tabbar选中值
 onShow(() => {
@@ -122,6 +122,25 @@ watch(
   // { deep: true }
 )
 
+onLoad(() => {
+  wx.showShareMenu({
+    withShareTicket: true,
+    menus: ['shareAppMessage', 'shareTimeline']
+  })
+  onShareAppMessage(() => {
+    return {
+      title: '门墩儿 专注顶尖招聘',
+      path: '/pages/index/position'
+    }
+  })
+  onShareTimeline(() => {
+    return {
+      title: '门墩儿 专注顶尖招聘',
+      path: '/pages/index/position'
+    }
+  })
+})
+
 // 列表跳转
 const dialogType = ref('')
 const handleToLink = (item) => {

+ 21 - 1
pages/index/welfare.vue

@@ -108,7 +108,7 @@ import {
   getUserAccount,
 } from '@/api/sign'
 import { getTaskList } from '@/api/integral'
-import { onShow } from '@dcloudio/uni-app'
+import { onShow, onLoad } from '@dcloudio/uni-app'
 import { userStore } from '@/store/user'
 import { showAuthModal } from '@/hooks/useModal'
 
@@ -131,6 +131,26 @@ const goodsList = [
   { name: '瑞幸咖啡券-瑞幸咖啡精致享受券', point: 2000, url: 'https://minio.menduner.com/dev/menduner/coffee.png' },
   { name: '减压捏捏乐', point: 500, url: 'https://minio.menduner.com/dev/menduner/pinchMusic.png' }
 ]
+
+onLoad(() => {
+  wx.showShareMenu({
+    withShareTicket: true,
+    menus: ['shareAppMessage', 'shareTimeline']
+  })
+  onShareAppMessage(() => {
+    return {
+      title: '门墩儿 专注顶尖招聘',
+      path: '/pages/index/position'
+    }
+  })
+  onShareTimeline(() => {
+    return {
+      title: '门墩儿 专注顶尖招聘',
+      path: '/pages/index/position'
+    }
+  })
+})
+
 const handleClickGoods = () => {
   // uni.showToast({
   //   icon: 'none',