master
wangxia 3 months ago
commit 3fb1bfa16a

@ -26,6 +26,7 @@
" "
:conversation-type="conversationType" :conversation-type="conversationType"
:to="to" :to="to"
@exportPointJob="exportPointJob"
/> />
<!-- </div> --> <!-- </div> -->
@ -76,7 +77,7 @@ const requestComeFrom = computed(() => {
val = "isToB"; val = "isToB";
} }
return val; // return val; //
}); // });
export interface YxReplyMsg { export interface YxReplyMsg {
messageClientId: string; messageClientId: string;
scene: V2NIMConst.V2NIMConversationType; scene: V2NIMConst.V2NIMConversationType;
@ -500,6 +501,7 @@ onUnmounted(() => {
connectedWatch(); connectedWatch();
msgsWatch(); msgsWatch();
conversationTypeWatch(); conversationTypeWatch();
uni.removeStorageSync('im_sendParams');
}); });
const query = ref({ const query = ref({
page: 1, page: 1,
@ -702,6 +704,9 @@ onUnload(() => {
uni.$off(events.CONFIRM_FORWARD_MSG); uni.$off(events.CONFIRM_FORWARD_MSG);
uni.$off(events.CANCEL_FORWARD_MSG); uni.$off(events.CANCEL_FORWARD_MSG);
}); });
const exportPointJob = ()=>{
}
</script> </script>
<style lang="scss"> <style lang="scss">

@ -1,6 +1,6 @@
<template> <template>
<div style="" class="pbInput" :style="writeStyle"> <div style="" class="pbInput" :style="writeStyle">
<div class="input-root"> <div class="input-root" style="position: relative;">
<!-- 以下这个 div 用于确保 vue2 ref 会更新 --> <!-- 以下这个 div 用于确保 vue2 ref 会更新 -->
<div style="display: none"> <div style="display: none">
<div>{{ teamMute ? "禁言" : "不禁言" }}</div> <div>{{ teamMute ? "禁言" : "不禁言" }}</div>
@ -158,6 +158,56 @@
<UniPopup ref="popupRef" background-color="#ffffff" type="bottom" mask-background-color="rgba(0,0,0,0.4)" @change="onPopupChange"> <UniPopup ref="popupRef" background-color="#ffffff" type="bottom" mask-background-color="rgba(0,0,0,0.4)" @change="onPopupChange">
<MentionMemberList :team-id="to"></MentionMemberList> <MentionMemberList :team-id="to"></MentionMemberList>
</UniPopup> </UniPopup>
<div class="choose-job-send"
style="
width: calc(100vw - 48px);
min-height: 50px;
background-color: #fff;
position: absolute;
left: 50%;
transform: translateX(-50%);
top: -92px;
padding: 12px;
border-radius: 12px;
"
v-if="chooseData && chooseData.title && false"
>
<div class="g_w_all g_h_all">
<div class="g_mb_12 g_flex_row_between">
<div style="font-weight:bold;font-size:16px;color:#000" class="g_flex_1">{{ chooseData.title }}</div>
<div class="g_flex_none g_flex_column_center">
<i class="iconfont icon-guanbi" style="font-size: 14px;color: #666;"></i>
</div>
</div>
<div class="g_flex_row_between">
<div class="g_flex_1 g_flex_column_center">
<div class="g_flex_row_start">
<view class="g_fs_16 g_fw_600 g_c_f40 g_lh_1_2 g_flex_column_center"
v-if="chooseData.salaryClassifyValue"
v-html="chooseData.salaryClassifyValue"> </view>
<view class="g_fs_14 g_c_9" v-if="chooseData.monthPay">
{{ chooseData.monthPay ? "丨" + chooseData.monthPay : "" }}
</view>
</div>
</div>
<div class="g_flex_none g_flex_column_center" @tap="sendPointJob">
<div style="
font-size: 12px;
border-radius: 20px;
height: 26px;
line-height: 26px;
width: 70px;
text-align: center;
background-color: #1890ff;
color: #fff;
">
发送职位
</div>
</div>
</div>
</div>
</div>
</div> </div>
</div> </div>
</template> </template>
@ -528,6 +578,9 @@ const handleSendJob = () => {
console.log("props.jobListShow", props.jobListShow); console.log("props.jobListShow", props.jobListShow);
emits("jobListShow", true); emits("jobListShow", true);
}; };
const sendPointJob = () => {
emits("exportPointJob");
};
const handleSendCustomMsg = () => { const handleSendCustomMsg = () => {
const customMsg = uni.$UIKitNIM.V2NIMMessageCreator.createCustomMessage( const customMsg = uni.$UIKitNIM.V2NIMMessageCreator.createCustomMessage(
"这是PGQ的自定义消息", "这是PGQ的自定义消息",
@ -756,8 +809,11 @@ let uninstallTeamWatch = () => {};
const msgHeight = ref(0); const msgHeight = ref(0);
const screenHeight = ref(0); const screenHeight = ref(0);
screenHeight.value = uni.getSystemInfoSync().windowHeight; screenHeight.value = uni.getSystemInfoSync().windowHeight;
const chooseData = ref({});
onMounted(() => { onMounted(() => {
if(uni.getStorageSync("im_sendParams")){
chooseData.value = JSON.parse(uni.getStorageSync("im_sendParams")).jobDetail;
}
uninstallTeamWatch = autorun(() => { uninstallTeamWatch = autorun(() => {
if (props.conversationType === V2NIMConst.V2NIMConversationType.V2NIM_CONVERSATION_TYPE_TEAM) { if (props.conversationType === V2NIMConst.V2NIMConversationType.V2NIM_CONVERSATION_TYPE_TEAM) {
const _team: V2NIMTeam = deepClone(uni.$UIKitStore.teamStore.teams.get(props.to)); const _team: V2NIMTeam = deepClone(uni.$UIKitStore.teamStore.teams.get(props.to));

@ -31,7 +31,7 @@
cusMessage: { cusMessage: {
handler(newVal) { handler(newVal) {
console.log('newVal',newVal) console.log('newVal',newVal)
const hasDot = newVal.endsWith('。'); const hasDot = String(newVal).endsWith('。');
const messageWithoutDot = hasDot ? newVal.slice(0, -1) : newVal; const messageWithoutDot = hasDot ? newVal.slice(0, -1) : newVal;
this.displayedMessage = messageWithoutDot; this.displayedMessage = messageWithoutDot;
if (this.isShow) { if (this.isShow) {
@ -45,9 +45,12 @@
'isRender': { 'isRender': {
handler(newVal) { handler(newVal) {
this.isShow = newVal; this.isShow = newVal;
const hasDot = this.cusMessage.endsWith('。'); if(this.cusMessage){
const messageWithoutDot = hasDot ? this.cusMessage.slice(0, -1) : this.cusMessage; let _str = String(this.cusMessage);
const hasDot = _str.endsWith('。');
const messageWithoutDot = hasDot ? _str.slice(0, -1) : _str;
this.displayedMessage = this.isShow ? messageWithoutDot + '...' : (hasDot ? messageWithoutDot + '。' : messageWithoutDot); this.displayedMessage = this.isShow ? messageWithoutDot + '...' : (hasDot ? messageWithoutDot + '。' : messageWithoutDot);
}
}, },
immediate: true immediate: true
} }

@ -1383,12 +1383,8 @@ export default {
} }
}); });
that.jobDetail.info = newList.join("丨"); that.jobDetail.info = newList.join("丨");
that.F.wyyxPost( let sendParams = {
that.api.wyyx_sendCard,
{
conversationType: 1, conversationType: 1,
// senderUserId: uni.getStorageSync("apply-uid"), // id id
// receiverUserId: cusData, // id
senderAccid: uni.getStorageSync("im-accid"), senderAccid: uni.getStorageSync("im-accid"),
receiverAccid: cusData.accid, receiverAccid: cusData.accid,
type: 100000, type: 100000,
@ -1401,8 +1397,8 @@ export default {
monthPay: that.jobDetail.monthPay, monthPay: that.jobDetail.monthPay,
jobId: that.uid, jobId: that.uid,
}, },
}, }
() => { uni.setStorageSync("im_sendParams", JSON.stringify(sendParams));
uni.navigateTo({ uni.navigateTo({
url: "/root/NEUIKit/pages/Chat/index", url: "/root/NEUIKit/pages/Chat/index",
}); });
@ -1410,9 +1406,6 @@ export default {
}, },
() => {} () => {}
); );
},
() => {}
);
}); });
}, },
// //

Loading…
Cancel
Save