Quellcode durchsuchen

fix:
1. 修改了包名
2. 修改了登录页面中的文案
3. 修正了部分页面的UI

YuJing vor 2 Monaten
Ursprung
Commit
ec2ba51c29

+ 1 - 1
AppScope/app.json5

@@ -1,6 +1,6 @@
 {
   "app": {
-    "bundleName": "com.ytpm.ltlab",
+    "bundleName": "com.ytpm.zmrj",
     "vendor": "example",
     "versionCode": 1000000,
     "versionName": "1.0.0",

+ 3 - 3
build-profile.json5

@@ -5,11 +5,11 @@
         "name": "default",
         "material": {
           "storeFile": "sign/basic.p12",
-          "storePassword": "000000181F0EECD983295AB4504A961E19D1B5914CB198FA414395A09865788F96EFF93C84981A55",
+          "storePassword": "00000018037629724E3117C3F352DE651A3DA377F66B3425918FC935209E426802F107E5600A05AD",
           "keyAlias": "yt112233",
-          "keyPassword": "0000001871572C6DAC842AAE8EF9A99F0F746307476E0F0ACF919CC12B0F81467CF5B0CCDBF97E2D",
+          "keyPassword": "000000189B8E05080F3748E674C733C8454FB661510188FD202AA49D0D43F39F8212FF3BA5AB3890",
           "signAlg": "SHA256withECDSA",
-          "profile": "sign/聊天恋爱宝调试证书.p7b",
+          "profile": "sign/朝暮日记调试证书Debug.p7b",
           "certpath": "sign/调试证书.cer"
         }
       }

+ 1 - 1
features/user/src/main/ets/pages/LoginPage.ets

@@ -44,7 +44,7 @@ struct LoginPage {
             .borderRadius(12)
             .backgroundColor('#4DFFFFFF')
             .margin({ bottom: 24, right: 28, top: 20 })
-          Text('你好,\n欢迎来到盒小仓')
+          Text('HELLLO,\n欢迎来到朝暮日记')
             .lineHeight(40)
             .fontSize(28)
             .fontWeight(600)

+ 4 - 0
features/user/src/main/ets/pages/SettingPage.ets

@@ -15,6 +15,7 @@ import {
   YTUserRequest
 } from 'basic'
 
+
 @Builder
 function settingBuilder() {
   NavDestination() {
@@ -30,6 +31,7 @@ struct SettingPage {
   @State showReviseName: boolean = false
   @State showHeaderImgRevise: boolean = false
   @State value: string = ''
+
   reviseBuilderArr: Array<BasicType<undefined>> = [
     {
       text: '头像修改',
@@ -86,6 +88,8 @@ struct SettingPage {
     colors: [ ['#B9FD2A', 0.01], ['#F5FD6D', 1] ],
     angle: 110
   }
+
+
   build() {
     Column() {
       YTHeader({ title: '用户设置' })

+ 7 - 1
features/user/src/main/ets/pages/SuggestionPage.ets

@@ -13,6 +13,10 @@ struct SuggestionPage {
   @StorageProp(YTAvoid.SAFE_BOTTOM_KEY) private safeBottom: number = 0
   @State private description: string = ''
   @State private contact: string = ''
+  private linearInfo: LinearGradientOptions = {
+    colors: [ ['#B9FD2A', 0.01], ['#F5FD6D', 1] ],
+    angle: 110
+  }
 
   build() {
     Column() {
@@ -125,7 +129,9 @@ struct SuggestionPage {
             YTUserRequest.questionBack(this.description, this.contact)
             // //TODO 发请求提交反馈
             // YTLog.info(this.description + this.contact + '反馈提交了')
-          }
+          },
+          btlinear: this.linearInfo,
+          btFontColor: Color.Black,
         })
       }
       .padding({ left: 18, right: 18 })

+ 33 - 3
features/user/src/main/ets/views/Mine.ets

@@ -8,9 +8,14 @@ import {
   YTLog,
   yTRouter
 } from 'basic'
-import { common, Want } from '@kit.AbilityKit'
+import {  Want } from '@kit.AbilityKit'
 import { BusinessError } from '@kit.BasicServicesKit'
 import { BUNDLE_NAME } from 'BuildProfile'
+import { image } from '@kit.ImageKit'
+import { systemShare } from '@kit.ShareKit'
+import { common } from '@kit.AbilityKit'
+import { uniformTypeDescriptor } from '@kit.ArkData';
+
 
 @Component
 export struct Mine {
@@ -21,7 +26,7 @@ export struct Mine {
       text: '分享给好友',
       message: '去分享',
       click: () => {
-
+        this.share()
       },
       src: $r('app.media.right_arrow')
     },
@@ -63,6 +68,31 @@ export struct Mine {
     }
   ]
 
+
+  private async share() {
+    try {
+      // 构造ShareData,需配置一条有效数据信息
+      const data = new systemShare.SharedData({
+        // utd: uniformTypeDescriptor.UniformDataType.HYPERLINK,
+        utd: uniformTypeDescriptor.UniformDataType.TEXT,
+        title: '朝暮日记',
+        content: 'http://appgallery.huawei.com/app/detail?id=6917582300519105855',
+        description: "http://appgallery.huawei.com/app/detail?id=6917582300519105855"
+      })
+      const controller = new systemShare.ShareController(data)
+      const context = this.getUIContext().getHostContext()! as common.UIAbilityContext;
+      // 进行分享面板显示
+      controller.show(context, {
+        previewMode: systemShare.SharePreviewMode.DEFAULT,
+        selectionMode: systemShare.SelectionMode.SINGLE,
+        // anchor: { windowOffset: { x: 0, y: 0 }, size: { width: this.breakWidth, height: 500 } }
+      })
+    } catch (error) {
+      IBestToast.show({ message: '当前设备不支持', duration: 500 })
+    }
+  }
+
+
   private linearInfo: LinearGradientOptions = {
     colors: [ ['#B9FD2A', 0.01], ['#F5FD6D', 1] ],
     angle: 110
@@ -78,7 +108,7 @@ export struct Mine {
       .height(212)
 
       // 主体
-      Column(){
+      Column({space: 20}){
         // 头像 + 编辑按钮
         Column(){
           // 头像

BIN
sign/朝暮日记调试证书Debug.p7b