Bläddra i källkod

求职自定义消息

suyuanyuan 1 dag sedan
förälder
incheckning
21c0cadac1

+ 1 - 1
TUIKit-House/components/TUIChat/message-list/message-elements/message-bubble.vue

@@ -312,7 +312,7 @@ function openReadUserPanel() {
         }
 
         .content-in {
-          background: #fbfbfb;
+          background: #fff;
           border-radius: 0 10px 10px;
         }
 

+ 1 - 1
TUIKit/components/TUIChat/message-list/message-elements/message-bubble.vue

@@ -330,7 +330,7 @@ function openReadUserPanel() {
         }
 
         .content-in {
-          background: #fbfbfb;
+          background: #fff;
           border-radius: 0 10px 10px;
         }
 

+ 18 - 22
TUIKit/components/TUIChat/message-list/message-elements/message-custom.vue

@@ -18,11 +18,11 @@
             >
           </div>
         </div>
-        <div class="tips">{{isCustom.desc}}</div>
+        <div class="tips">{{ isCustom.desc }}</div>
       </div>
     </template>
     <!-- 发送联系方式 -->
-    <template v-else-if="isCustom.businessID === CHAT_MSG_CUSTOM_TYPE.PHONE">
+    <!-- <template v-else-if="isCustom.businessID === CHAT_MSG_CUSTOM_TYPE.PHONE">
       <div class="phone">
         <img
           src="https://qcloudimg.tencent-cloud.cn/trisys/assets/product/images/SOOZNXCHkHcm50wX2ndp4.png"
@@ -40,43 +40,39 @@
         >
         <span>复制</span>
       </div>
-    </template>
+    </template> -->
     <!-- 面试邀请 -->
-    <template v-else-if="isCustom.businessID === CHAT_MSG_CUSTOM_TYPE.ORDER">
+    <template v-else-if="isCustom.businessID === 'interview_message'">
       <div class="order">
         <div class="header">
-          <img :src="isCustom.imageUrl" />
+          <img
+            :src="
+              isCustom.companyLogo
+                ? isCustom.companyLogo
+                : 'https://oss.qianzhi-y.com/h5/images/static/my/set/my-head-ico.png'
+            "
+          />
           <div class="main">
-            <h1>您已发起面试邀请</h1>
-            <span></span>
+            <h1>发起面试邀请</h1>
+            <span>{{ isCustom.companyName }}</span>
           </div>
         </div>
-        <div class="xian"></div>
         <div class="contont">
           <div>
             <p class="title">面试时间</p>
-            <p class="value">{{ isCustom.interviewtime }}</p>
+            <p class="value">{{ isCustom.interviewTime }}</p>
           </div>
           <div>
             <p class="title">面试地点</p>
-            <p class="value">{{ isCustom.Interviewlocation }}</p>
+            <p class="value">{{ isCustom.interviewAddress }}</p>
           </div>
           <div>
             <p class="title">联系方式</p>
-            <p class="value">{{ isCustom.name }}{{ isCustom.iphone }}</p>
+            <p class="value">{{ isCustom.contact }}</p>
           </div>
         </div>
-        <div class="xian"></div>
-        <div class="phone_footer">
-          <!-- <span style="color: #04c4ab">信息费:4HC</span> -->
-          <span>等待接受</span>
-        </div>
       </div>
     </template>
-    
-    <template v-else>
-      <span v-html="content.custom" ></span>
-    </template>
   </div>
 </template>
 
@@ -100,7 +96,7 @@ const props = withDefaults(defineProps<Props>(), {
   messageItem: undefined,
   content: undefined,
 });
-const userType = ref(uni.getStorageSync("userId").includes("A"));
+const userType = ref(uni.getStorageSync("recruitUserId").includes("A"));
 console.log("1123123", userType);
 
 const custom = ref();
@@ -140,6 +136,7 @@ watchEffect(() => {
   const { payload } = props.messageItem;
   isCustom.value = payload.data || "";
   isCustom.value = JSONToObject(payload.data);
+  console.log(isCustom.value)
   if (payload.data === CHAT_MSG_CUSTOM_TYPE.SERVICE) {
     extension.value = JSONToObject(payload.extension);
   }
@@ -157,7 +154,6 @@ const openLink = (url: any) => {
   background: linear-gradient(180deg, #ffdeb2 0%, #ffecc7 100%);
   border-radius: 16rpx;
   .contont {
-    
     display: flex;
     flex-direction: row;
     align-items: center;

+ 114 - 116
manifest.json

@@ -1,34 +1,34 @@
 {
-    "name": "消息",
-    "appid": "__UNI__EC201C9",
-    "description": "",
-    "versionName": "1.0.0",
-    "versionCode": "100",
-    "transformPx": false,
-    "sassImplementationName": "node-sass",
+    "name" : "消息",
+    "appid" : "__UNI__A4F3911",
+    "description" : "",
+    "versionName" : "1.0.0",
+    "versionCode" : "100",
+    "transformPx" : false,
+    "sassImplementationName" : "node-sass",
     /* 5+App特有相关 */
-    "app-plus": {
-        "usingComponents": true,
-        "nvueStyleCompiler": "uni-app",
-        "compilerVersion": 3,
-        "splashscreen": {
-            "alwaysShowBeforeRender": true,
-            "waiting": true,
-            "autoclose": true,
-            "delay": 0
+    "app-plus" : {
+        "usingComponents" : true,
+        "nvueStyleCompiler" : "uni-app",
+        "compilerVersion" : 3,
+        "splashscreen" : {
+            "alwaysShowBeforeRender" : true,
+            "waiting" : true,
+            "autoclose" : true,
+            "delay" : 0
         },
         /* 模块配置 */
-        "modules": {
-            "Push": {},
-            "Record": {},
-            "VideoPlayer": {},
-            "Camera": {}
+        "modules" : {
+            "Push" : {},
+            "Record" : {},
+            "VideoPlayer" : {},
+            "Camera" : {}
         },
         /* 应用发布信息 */
-        "distribute": {
+        "distribute" : {
             /* android打包配置 */
-            "android": {
-                "permissions": [
+            "android" : {
+                "permissions" : [
                     "<uses-permission android:name=\"android.permission.CHANGE_NETWORK_STATE\"/>",
                     "<uses-permission android:name=\"android.permission.MOUNT_UNMOUNT_FILESYSTEMS\"/>",
                     "<uses-permission android:name=\"android.permission.VIBRATE\"/>",
@@ -47,103 +47,101 @@
                 ]
             },
             /* ios打包配置 */
-            "ios": {
-                "capabilities": {
-                    "entitlements": {
-                        "com.apple.security.application-groups": [
-                            ""
-                        ]
+            "ios" : {
+                "capabilities" : {
+                    "entitlements" : {
+                        "com.apple.security.application-groups" : [ "" ]
                     }
                 },
-                "dSYMs": false
+                "dSYMs" : false
             },
             /* SDK配置 */
-            "sdkConfigs": {
-                "push": {},
-                "ad": {}
+            "sdkConfigs" : {
+                "push" : {},
+                "ad" : {}
             }
         },
-        "nativePlugins": {
-            "TencentCloud-TIMPush": {
-                "TIMPushAppGroupID": "0",
-                "com.hihonor.push.app_id": "0",
-                "com.vivo.push.api_key": "0",
-                "com.vivo.push.app_id": "0",
-                "__plugin_info__": {
-                    "name": "【官方】uni-app 推送插件 TencentCloud-TIMPush",
-                    "description": "腾讯云即时通信 IM Push 插件,目前推送支持小米、华为、荣耀、OPPO、vivo、魅族、APNs、一加、realme、iQOO 和 苹果等厂商通道。",
-                    "platforms": "Android,iOS",
-                    "url": "https://ext.dcloud.net.cn/plugin?id=16428",
-                    "android_package_name": "",
-                    "ios_bundle_id": "",
-                    "isCloud": true,
-                    "bought": 1,
-                    "pid": "16428",
-                    "parameters": {
-                        "TIMPushAppGroupID": {
-                            "des": "iOS平台的AppGroupID",
-                            "key": "TIMPushAppGroupID",
-                            "value": ""
+        "nativePlugins" : {
+            "TencentCloud-TIMPush" : {
+                "TIMPushAppGroupID" : "0",
+                "com.hihonor.push.app_id" : "0",
+                "com.vivo.push.api_key" : "0",
+                "com.vivo.push.app_id" : "0",
+                "__plugin_info__" : {
+                    "name" : "【官方】uni-app 推送插件 TencentCloud-TIMPush",
+                    "description" : "腾讯云即时通信 IM Push 插件,目前推送支持小米、华为、荣耀、OPPO、vivo、魅族、APNs、一加、realme、iQOO 和 苹果等厂商通道。",
+                    "platforms" : "Android,iOS",
+                    "url" : "https://ext.dcloud.net.cn/plugin?id=16428",
+                    "android_package_name" : "",
+                    "ios_bundle_id" : "",
+                    "isCloud" : true,
+                    "bought" : 1,
+                    "pid" : "16428",
+                    "parameters" : {
+                        "TIMPushAppGroupID" : {
+                            "des" : "iOS平台的AppGroupID",
+                            "key" : "TIMPushAppGroupID",
+                            "value" : ""
                         },
-                        "com.hihonor.push.app_id": {
-                            "des": "Honor推送 app_id",
-                            "key": "com.hihonor.push.app_id",
-                            "value": ""
+                        "com.hihonor.push.app_id" : {
+                            "des" : "Honor推送 app_id",
+                            "key" : "com.hihonor.push.app_id",
+                            "value" : ""
                         },
-                        "com.vivo.push.api_key": {
-                            "des": "VIVO推送 api_key",
-                            "key": "",
-                            "value": ""
+                        "com.vivo.push.api_key" : {
+                            "des" : "VIVO推送 api_key",
+                            "key" : "",
+                            "value" : ""
                         },
-                        "com.vivo.push.app_id": {
-                            "des": "VIVO推送 app_id",
-                            "key": "",
-                            "value": ""
+                        "com.vivo.push.app_id" : {
+                            "des" : "VIVO推送 app_id",
+                            "key" : "",
+                            "value" : ""
                         }
                     }
                 }
             },
-            "TencentCloud-TUICallKit": {
-                "__plugin_info__": {
-                    "name": "【官方】腾讯云音视频通话插件TencentCloud-TUICallKit",
-                    "description": "TUICallKit 是腾讯云官方推出的音视频通话插件,支持 1v1 通话和群组通话,并提供“类微信\"的 UI 交互,开发者仅需三个 API 就可实现。",
-                    "platforms": "Android,iOS",
-                    "url": "https://ext.dcloud.net.cn/plugin?id=9035",
-                    "android_package_name": "",
-                    "ios_bundle_id": "",
-                    "isCloud": true,
-                    "bought": 1,
-                    "pid": "9035",
-                    "parameters": {}
+            "TencentCloud-TUICallKit" : {
+                "__plugin_info__" : {
+                    "name" : "【官方】腾讯云音视频通话插件TencentCloud-TUICallKit",
+                    "description" : "TUICallKit 是腾讯云官方推出的音视频通话插件,支持 1v1 通话和群组通话,并提供“类微信\"的 UI 交互,开发者仅需三个 API 就可实现。",
+                    "platforms" : "Android,iOS",
+                    "url" : "https://ext.dcloud.net.cn/plugin?id=9035",
+                    "android_package_name" : "",
+                    "ios_bundle_id" : "",
+                    "isCloud" : true,
+                    "bought" : 1,
+                    "pid" : "9035",
+                    "parameters" : {}
                 }
             }
         }
     },
     /* 快应用特有相关 */
-    "quickapp": {},
+    "quickapp" : {},
     /* H5 特有相关 :关闭 treeshaking 是为了规避 uni[methond]() is not a function 的问题 */
-    "h5": {
-        "devServer": {
-            "port": 8080,
-            "disableHostCheck": true,
-            "proxy": {
-                "/dev-api": {
+    "h5" : {
+        "devServer" : {
+            "port" : 8080,
+            "disableHostCheck" : true,
+            "proxy" : {
+                "/dev-api" : {
                     // "target": "http://47.109.135.147:30000",
-                    "target": "http://192.168.0.17:30000",
+                    "target" : "http://192.168.0.17:30000",
                     // "target": "https://applet-dev.qianzhi-y.com/api",
-                    "changeOrigin": true,
-                    "secure": false,
-                    "pathRewrite": {
-                        "^/dev-api": ""
+                    "changeOrigin" : true,
+                    "secure" : false,
+                    "pathRewrite" : {
+                        "^/dev-api" : ""
                     }
                 }
             },
-            "https": false
+            "https" : false
         },
-        "template": "index.html",
-        "router": {
-            "base": "./",
-            "mode": "hash"
+        "template" : "index.html",
+        "router" : {
+            "base" : "./",
+            "mode" : "hash"
         }
     },
     // "optimization" : {
@@ -173,29 +171,29 @@
     //     "mode" : "hash"
     // }
     /* 小程序特有相关 */
-    "mp-weixin": {
-        "libVersion": "latest",
-        "appid": "",
-        "setting": {
-            "urlCheck": false,
-            "es6": true,
-            "minified": true,
-            "ignoreDevUnusedFiles": false,
-            "ignoreUploadUnusedFiles": false
+    "mp-weixin" : {
+        "libVersion" : "latest",
+        "appid" : "",
+        "setting" : {
+            "urlCheck" : false,
+            "es6" : true,
+            "minified" : true,
+            "ignoreDevUnusedFiles" : false,
+            "ignoreUploadUnusedFiles" : false
         },
-        "usingComponents": true
+        "usingComponents" : true
     },
-    "mp-alipay": {
-        "usingComponents": true
+    "mp-alipay" : {
+        "usingComponents" : true
     },
-    "mp-baidu": {
-        "usingComponents": true
+    "mp-baidu" : {
+        "usingComponents" : true
     },
-    "mp-toutiao": {
-        "usingComponents": true
+    "mp-toutiao" : {
+        "usingComponents" : true
     },
-    "uniStatistics": {
-        "enable": false
+    "uniStatistics" : {
+        "enable" : false
     },
-    "vueVersion": "2"
-}
+    "vueVersion" : "2"
+}