فهرست منبع

refactor(miniprogram): 优化页面分享标题和导航栏标题

- 在 cert、school、securityCheck 和 shipyard 页面中,优化了分享标题的格式
- 更新了 cert 和 shipyard 页面的导航栏标题
- 调整了 takePhoto 页面搜索框的样式
wzg 8 ماه پیش
والد
کامیت
291a5962b1

+ 1 - 1
miniprogram/pages/cert/cert.js

@@ -212,7 +212,7 @@ Page({
   async onShareAppMessage() {
     let { data } = await getApi("/ship/cert/share/token");
     return {
-      title: this.data.shipName,
+      title: this.data.shipName + " - 证书信息",
       path: `/pages/cert/sharePage/sharePage?token=${data.result.result}`,
       imageUrl: "../../images/logo541.png",
     };

+ 1 - 1
miniprogram/pages/cert/cert.json

@@ -1,4 +1,4 @@
 {
   "usingComponents": {},
-  "navigationBarTitleText": "证书办理"
+  "navigationBarTitleText": "证书信息"
 }

+ 1 - 1
miniprogram/pages/school/school.js

@@ -63,7 +63,7 @@ Page({
   },
   onShareAppMessage() {
     return {
-      title: this.data.shareNoticeTitle,
+      title: this.data.shareNoticeTitle + " - 培训公告",
       path: `/pages/school/sharePage/sharePage?noticeId=${this.data.shareNoticeId}`,
       imageUrl: "../../images/logo541.png",
     };

+ 1 - 1
miniprogram/pages/securityCheck/securityCheck.js

@@ -95,7 +95,7 @@ Page({
   },
   onShareAppMessage() {
     return {
-      title: this.data.shareNoticeTitle,
+      title: "海事年检通知",
       path: `/pages/securityCheck/sharePage/sharePage?noticeId=${this.data.shareNoticeId}`,
       imageUrl: "../../images/logo541.png",
     };

+ 1 - 1
miniprogram/pages/shipyard/shipyard.js

@@ -62,7 +62,7 @@ Page({
   },
   onShareAppMessage() {
     return {
-      title: this.data.shipyardName,
+      title: this.data.shipyardName + " - 船厂信息",
       path: `/pages/shipyard/sharePage/sharePage?shipyardId=${this.data.shipyardId}`,
       imageUrl: "../../images/logo541.png",
     };

+ 2 - 1
miniprogram/pages/shipyard/shipyard.json

@@ -1,3 +1,4 @@
 {
-  "usingComponents": {}
+  "usingComponents": {},
+  "navigationBarTitleText": "船厂服务"
 }

+ 5 - 1
miniprogram/pages/takePhoto/takePhoto.wxss

@@ -108,9 +108,11 @@ page {
 
 .search-input {
   flex: 1;
-  padding: 10px 15px;
+  padding-left: 20rpx;
   border: 1px solid #ddd;
   border-radius: 8px 0 0 8px;
+  height: 88rpx;
+  box-sizing: border-box;
 }
 
 .search-btn {
@@ -120,6 +122,8 @@ page {
   padding: 0 15px;
   border-radius: 0 8px 8px 0;
   line-height: 88rpx;
+  height: 88rpx;
+  box-sizing: border-box;
   font-size: 14px;
 }