lex-xin 3 mesi fa
parent
commit
41f6d7bb1f

+ 4 - 5
miniprogram/app.ts

@@ -19,11 +19,6 @@ App<IAppOption>({
     // logs.unshift(Date.now())
     // wx.setStorageSync('logs', logs)
 
-    wx.showLoading({
-      mask: true,
-      title: "加载中...",
-    });
-
     this.setAppId();
 
     // 登录
@@ -54,6 +49,10 @@ App<IAppOption>({
   // }
   /** 微信登录 */
   async onLogin(code: string) {
+    wx.showLoading({
+      mask: true,
+      title: "加载中...",
+    });
     try {
       // 开始登录
       const { data } = await api_login({

+ 5 - 1
miniprogram/pages/download/download.ts

@@ -86,6 +86,10 @@ Page({
    * 用户点击右上角分享
    */
   onShareAppMessage() {
-
+    return {
+      title: '音乐数字AI器乐工具',
+      path: '/pages/index/index',
+      imageUrl: 'https://oss.dayaedu.com/ktyq/1733311074676.png'
+    }
   }
 })

+ 14 - 0
miniprogram/pages/index/index.ts

@@ -245,5 +245,19 @@ Page({
         isShowOperation: false
       })
     }
+  },
+  onShareAppMessage() {
+    return {
+      title: '音乐数字AI器乐工具',
+      path: '/pages/index/index',
+      imageUrl: 'https://oss.dayaedu.com/ktyq/1733311074676.png'
+    }
+  },
+  onShareTimeline() {
+    return {
+      title: '音乐数字AI器乐工具',
+      path: '/pages/index/index',
+      imageUrl: 'https://oss.dayaedu.com/ktyq/1733311074676.png'
+    }
   }
 })

+ 5 - 1
miniprogram/pages/login/login.ts

@@ -143,6 +143,10 @@ Page({
    * 用户点击右上角分享
    */
   onShareAppMessage() {
-
+    return {
+      title: '音乐数字AI器乐工具',
+      path: '/pages/index/index',
+      imageUrl: 'https://oss.dayaedu.com/ktyq/1733311074676.png'
+    }
   }
 })

+ 5 - 1
miniprogram/pages/orders/order-detail.ts

@@ -225,6 +225,10 @@ Page({
    * 用户点击右上角分享
    */
   onShareAppMessage() {
-
+    return {
+      title: '音乐数字AI器乐工具',
+      path: '/pages/index/index',
+      imageUrl: 'https://oss.dayaedu.com/ktyq/1733311074676.png'
+    }
   }
 })

+ 7 - 0
miniprogram/pages/orders/order-result.ts

@@ -310,5 +310,12 @@ Page({
         });
       }
     })
+  },
+  onShareAppMessage() {
+    return {
+      title: '音乐数字AI器乐工具',
+      path: '/pages/index/index',
+      imageUrl: 'https://oss.dayaedu.com/ktyq/1733311074676.png'
+    }
   }
 })

+ 7 - 0
miniprogram/pages/orders/orders.ts

@@ -381,5 +381,12 @@ Page({
         this.getList()
       })
     }, 1500);
+  },
+  onShareAppMessage() {
+    return {
+      title: '音乐数字AI器乐工具',
+      path: '/pages/index/index',
+      imageUrl: 'https://oss.dayaedu.com/ktyq/1733311074676.png'
+    }
   }
 })

+ 5 - 1
miniprogram/pages/protocol/register.ts

@@ -92,6 +92,10 @@ Page({
    * 用户点击右上角分享
    */
   onShareAppMessage() {
-
+    return {
+      title: '音乐数字AI器乐工具',
+      path: '/pages/index/index',
+      imageUrl: 'https://oss.dayaedu.com/ktyq/1733311074676.png'
+    }
   }
 })