|
@@ -70,7 +70,6 @@ import layoutPage from '@/layout'
|
|
import { showAuthModal } from '@/hooks/useModal'
|
|
import { showAuthModal } from '@/hooks/useModal'
|
|
import { onShow } from '@dcloudio/uni-app'
|
|
import { onShow } from '@dcloudio/uni-app'
|
|
import { getJobAdvertisedShareQrcode } from '@/api/user'
|
|
import { getJobAdvertisedShareQrcode } from '@/api/user'
|
|
-// import { base64src } from '@/utils/base64src.js'
|
|
|
|
// 设置自定义tabbar选中值
|
|
// 设置自定义tabbar选中值
|
|
onShow(() => {
|
|
onShow(() => {
|
|
const currentPage = getCurrentPages()[0]; // 获取当前页面实例
|
|
const currentPage = getCurrentPages()[0]; // 获取当前页面实例
|
|
@@ -163,34 +162,31 @@ const handleShareCode = async () => {
|
|
}
|
|
}
|
|
|
|
|
|
// 保存到本地
|
|
// 保存到本地
|
|
-const handleSaveShareUrl = async () => {
|
|
|
|
- // base64src(shareUrl.value, '我的分享码')
|
|
|
|
- const fsm = wx.getFileSystemManager()
|
|
|
|
- const data = shareUrl.value
|
|
|
|
- // console.log('data:', data)
|
|
|
|
- if (!data) return
|
|
|
|
- fsm.writeFile({
|
|
|
|
- filePath:wx.env.USER_DATA_PATH+'/MySharingCode.png',
|
|
|
|
- data: data.slice(22),
|
|
|
|
- encoding:'base64',
|
|
|
|
- success: res => {
|
|
|
|
- wx.saveImageToPhotosAlbum({
|
|
|
|
- filePath: wx.env.USER_DATA_PATH + '/MySharingCode.png',
|
|
|
|
- success: function (res) {
|
|
|
|
- wx.showToast({
|
|
|
|
- title: '保存成功',
|
|
|
|
- })
|
|
|
|
- },
|
|
|
|
- fail: function (err) {
|
|
|
|
- console.log(err)
|
|
|
|
- }
|
|
|
|
- })
|
|
|
|
- // console.log(res)
|
|
|
|
- }, fail: err => {
|
|
|
|
- console.log(err)
|
|
|
|
- }
|
|
|
|
- })
|
|
|
|
-}
|
|
|
|
|
|
+// const handleSaveShareUrl = async () => {
|
|
|
|
+// const fsm = wx.getFileSystemManager()
|
|
|
|
+// const data = shareUrl.value
|
|
|
|
+// if (!data) return
|
|
|
|
+// fsm.writeFile({
|
|
|
|
+// filePath:wx.env.USER_DATA_PATH+'/MySharingCode.png',
|
|
|
|
+// data: data.slice(22),
|
|
|
|
+// encoding:'base64',
|
|
|
|
+// success: res => {
|
|
|
|
+// wx.saveImageToPhotosAlbum({
|
|
|
|
+// filePath: wx.env.USER_DATA_PATH + '/MySharingCode.png',
|
|
|
|
+// success: function (res) {
|
|
|
|
+// wx.showToast({
|
|
|
|
+// title: '保存成功',
|
|
|
|
+// })
|
|
|
|
+// },
|
|
|
|
+// fail: function (err) {
|
|
|
|
+// console.log(err)
|
|
|
|
+// }
|
|
|
|
+// })
|
|
|
|
+// }, fail: err => {
|
|
|
|
+// console.log(err)
|
|
|
|
+// }
|
|
|
|
+// })
|
|
|
|
+// }
|
|
|
|
|
|
// 登录
|
|
// 登录
|
|
const handleTap = () => {
|
|
const handleTap = () => {
|