任重 hai 2 meses
pai
achega
ebfea24391

+ 2 - 1
packages/app/project.config.json

@@ -24,5 +24,6 @@
   "editorSetting": {
     "tabIndent": "insertSpaces",
     "tabSize": 2
-  }
+  },
+  "simulatorPluginLibVersion": {}
 }

+ 1 - 1
packages/app/src/core/libs/net-images.ts

@@ -14,7 +14,7 @@ export enum NetImages {
   CyclingRankingsHeaderBg = 'https://image.zhuchaohui.com/zhucaohui/2351014a57a0df427516c4993876ade7e3695ce33b1f227c52c8381aa631ba02.png',
   HonorsLogo = 'https://image.zhuchaohui.com/zhucaohui/109805f7e6a8866e6484eea793de572e97cde85c5d65a2f514cf66aacc41609d.svg',
   WechatChannelsGuide = 'https://image.zhuchaohui.com/zhucaohui/4127d21eb75ab479b89f566f0d9479664d595091098acedf0ec29d696a60d034.png',
-  VideoTutorial = '',
+  VideoTutorial = 'https://image.zhuchaohui.com/zhucaohui/41c03bb6b16badf1ce018b20fbfe0022464a70f28574c97d88f383b6f1fd0ac4.mp4',
   RankingOne = 'https://image.zhuchaohui.com/zhucaohui/5743d060b96571f4540adf66b1f40ed8f0c313d721ce0932d06227b4e31e6a48.svg',
   RankingTwo = 'https://image.zhuchaohui.com/zhucaohui/2709798b4445b57e349b8e244825885983bf634e2b7f3706f181912753e2d567.svg',
   RankingThree = 'https://image.zhuchaohui.com/zhucaohui/d70fae2ba6688e0e82bfc1025f2005432de2dc1a1353eddb0da061245b37d970.svg',

+ 3 - 3
packages/app/src/core/utils/common.ts

@@ -1,5 +1,5 @@
 import dayjs from 'dayjs'
-import {AgreementType} from "@/core/libs/enums";
+import { AgreementType } from '@/core/libs/enums'
 export const handleCall = (phone: string) => {
   uni.makePhoneCall({ phoneNumber: phone }).then()
 }
@@ -57,7 +57,7 @@ export const requestToast = async <T>(
   },
 ) => {
   const { code, data, msg } = await func()
-  const duration = options.duration || 3000
+  const duration = options.duration || 2000
   if (code === 0 && options.success) {
     await uni.showToast({
       title: options.successTitle,
@@ -69,7 +69,7 @@ export const requestToast = async <T>(
     await uni.showToast({
       title: options.errorTitle || msg,
       icon: 'none',
-      duration: 5000,
+      duration: 3000,
     })
   }
   return { code, data, msg, duration }

+ 6 - 1
packages/app/src/pages/mine/index.vue

@@ -61,7 +61,12 @@ const { data: taskStatusData, run: setTaskStatus } = useRequest(
       {
         btnProps: {
           content: '去邀请',
-          onClick: () => router.push('/pages/mine/invite/index'),
+          onClick: () => {
+            console.log(userInfo.value.homePageUrl, 'userInfo.value.homePageUrl')
+            userInfo.value.homePageUrl == null
+              ? uni.showToast({ title: '请先配置个人主页全部信息', icon: 'none' })
+              : router.push('/pages/mine/invite/index')
+          },
         },
       },
       {

+ 2 - 2
packages/app/src/pages/mine/invite/index.vue

@@ -75,8 +75,8 @@ const createPoster = () => {
           ctx.draw(true, () => {
             uni.canvasToTempFilePath({
               canvasId: 'firstCanvas',
-              width: 300,
-              height: 460,
+              width: 150,
+              height: 160,
               success: (res) => {
                 // console.log('生成海报', res)
                 uni.hideLoading()

+ 1 - 1
packages/app/src/pages/publish/moment/index.vue

@@ -21,7 +21,7 @@ import { requestToast, toast } from '../../../core/utils/common'
 import { messages } from '../../../core/libs/messages'
 import { DataFormSchema } from '../../../components/data-form'
 import { ComponentExposed } from 'vue-component-type-helpers'
-import {AnalysisEventType, useAnalysis} from '@/composables/analysis'
+import { AnalysisEventType, useAnalysis } from '@/composables/analysis'
 
 const { report } = useAnalysis(false)
 const router = useRouter()