cyl/master-0819
wangxia 3 months ago
parent 195216e2f1
commit 1e5a475195

@ -57,14 +57,12 @@ export default {
text: "首页", text: "首页",
iconSize: 48, iconSize: 48,
}, },
{ {
iconPath: "icon-message g_c_9", iconPath: "icon-fadanhao-32 g_c_9",
selectedIconPath: "icon-message g_c_main", selectedIconPath: "icon-fadanhao-32 g_c_main",
pagePath: "/pages/message/index", pagePath: "/pages/home/order",
text: "消息", text: "发单号",
iconSize: 78, iconSize: 48,
iconType: "custom",
}, },
{ {
@ -76,11 +74,12 @@ export default {
count: 0, count: 0,
}, },
{ {
iconPath: "icon-fadanhao-32 g_c_9", iconPath: "icon-message g_c_9",
selectedIconPath: "icon-fadanhao-32 g_c_main", selectedIconPath: "icon-message g_c_main",
pagePath: "/pages/home/order", pagePath: "/pages/message/index",
text: "发单号", text: "消息",
iconSize: 48, iconSize: 78,
iconType: "custom",
}, },
{ {
iconPath: "icon-user g_c_9", iconPath: "icon-user g_c_9",
@ -99,14 +98,7 @@ export default {
text: "首页", text: "首页",
iconSize: 48, iconSize: 48,
}, },
{
iconPath: "icon-message g_c_9",
selectedIconPath: "icon-message g_c_main",
pagePath: "/pages/message/index",
text: "消息",
iconSize: 78,
iconType: "custom",
},
{ {
iconPath: "icon-order_active g_c_9", iconPath: "icon-order_active g_c_9",
selectedIconPath: "icon-order_active g_c_main", selectedIconPath: "icon-order_active g_c_main",
@ -115,6 +107,14 @@ export default {
iconSize: 48, iconSize: 48,
count: 0, count: 0,
}, },
{
iconPath: "icon-message g_c_9",
selectedIconPath: "icon-message g_c_main",
pagePath: "/pages/message/index",
text: "消息",
iconSize: 78,
iconType: "custom",
},
{ {
iconPath: "icon-user g_c_9", iconPath: "icon-user g_c_9",
selectedIconPath: "icon-user g_c_main", selectedIconPath: "icon-user g_c_main",
@ -187,14 +187,7 @@ export default {
text: "发单号", text: "发单号",
iconSize: 48, iconSize: 48,
}, },
{
iconPath: "icon-message g_c_9",
selectedIconPath: "icon-message g_c_main",
pagePath: "/pages/message/index",
text: "消息",
iconSize: 78,
iconType: "custom",
},
{ {
iconPath: "icon-order_active g_c_9", iconPath: "icon-order_active g_c_9",
selectedIconPath: "icon-order_active g_c_main", selectedIconPath: "icon-order_active g_c_main",
@ -203,6 +196,14 @@ export default {
iconSize: 48, iconSize: 48,
count: 0, count: 0,
}, },
{
iconPath: "icon-message g_c_9",
selectedIconPath: "icon-message g_c_main",
pagePath: "/pages/message/index",
text: "消息",
iconSize: 78,
iconType: "custom",
},
{ {
iconPath: "icon-user g_c_9", iconPath: "icon-user g_c_9",
selectedIconPath: "icon-user g_c_main", selectedIconPath: "icon-user g_c_main",

@ -167,16 +167,55 @@ export function createApp () {
}); });
}, $sourceType); }, $sourceType);
}, },
// 新增方法:生成 UUID
getUUID () {
return "xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx".replace(/[xy]/g, function (c) {
const r = (Math.random() * 16) | 0;
const v = c === "x" ? r : (r & 0x3) | 0x8;
return v.toString(16);
});
},
/** /**
* 上传到oss * 上传到oss
*/ */
uploadImgToOss (callback = () => { }, type = 'default', $num = 1, $sourceType = ['album', 'camera']) { uploadImgToOss (callback = () => { }, type = 'default', $num = 1, $sourceType = ['album', 'camera']) {
var that = this;
G.uploadImage($num, (imgRes) => { G.uploadImage($num, (imgRes) => {
uni.showLoading({ uni.showLoading({
title: '上传中...', title: '上传中...',
}) })
G.Get(apiInfo.getOssInfo, {}, (res) => { G.Get(apiInfo.getOssInfo, {}, ({ data }) => {
console.log('uploadImgToOssresresresres', res); console.log('uploadImgToOssresresresres', data);
const { policy, signature, accessid, dir, host } = data;
const dataObj = {
policy,
signature,
ossaccessKeyId: accessid,
key: dir + that.getUUID() + "_${filename}",
dir,
host,
};
const formData = new FormData();
formData.append("key", dataObj.key);
formData.append("OSSAccessKeyId", dataObj.ossaccessKeyId);
formData.append("policy", dataObj.policy);
formData.append("Signature", dataObj.signature);
formData.append("success_action_status", "200");
uni.uploadFile({
url: dataObj.host,
method: "post",
filePath: JSON.parse(imgRes)[0],
name: "uploadFile",
header: Object.assign({
Authorization: 'Bearer ' + uni.getStorageSync("apply-token")
}, Ajax.setPublicParams()),
formData: formData,
success: function (res) {
console.log('resresresresresresres', res);
},
fail: function (res) { },
});
}) })
}) })
}, },

@ -9,7 +9,6 @@
props.heihei, props.heihei,
]" ]"
class="u-skeleton" class="u-skeleton"
@touchstart="handleTouchStart" @touchstart="handleTouchStart"
@touchmove="handleTouchMove" @touchmove="handleTouchMove"
@click="handleConversationItemClick()" @click="handleConversationItemClick()"
@ -23,7 +22,6 @@
<Avatar class="u-skeleton-fillet" :account="to" size="48" :avatar="teamAvatar" /> <Avatar class="u-skeleton-fillet" :account="to" size="48" :avatar="teamAvatar" />
</div> </div>
<div class="conversation-item-right"> <div class="conversation-item-right">
<div class="conversation-item-top"> <div class="conversation-item-top">
<Appellation class="conversation-item-title u-skeleton-fillet" fontSize="17" v-if="conversation.type === V2NIMConst.V2NIMConversationType.V2NIM_CONVERSATION_TYPE_P2P" :account="to" /> <Appellation class="conversation-item-title u-skeleton-fillet" fontSize="17" v-if="conversation.type === V2NIMConst.V2NIMConversationType.V2NIM_CONVERSATION_TYPE_P2P" :account="to" />
<span v-else class="conversation-item-title u-skeleton-fillet"> <span v-else class="conversation-item-title u-skeleton-fillet">
@ -66,7 +64,7 @@ const props = withDefaults(
conversation: V2NIMConversationForUI; conversation: V2NIMConversationForUI;
showMoreActions?: boolean; showMoreActions?: boolean;
loading: boolean; loading: boolean;
heihei:"" heihei: "";
}>(), }>(),
{ showMoreActions: false } { showMoreActions: false }
); );
@ -179,9 +177,6 @@ const date = computed(() => {
// console.log(dayjs(props.conversation.lastMessage?.messageRefer.createTime).format('YYYY-MM-DD HH:mm') +" "); // console.log(dayjs(props.conversation.lastMessage?.messageRefer.createTime).format('YYYY-MM-DD HH:mm') +" ");
// console.log(dayjs(props.conversation.updateTime).format('YYYY-MM-DD HH:mm') +" "); // console.log(dayjs(props.conversation.updateTime).format('YYYY-MM-DD HH:mm') +" ");
const time = props.conversation.lastMessage?.messageRefer.createTime || props.conversation.updateTime; const time = props.conversation.lastMessage?.messageRefer.createTime || props.conversation.updateTime;
// const time = props.conversation.updateTime; // const time = props.conversation.updateTime;
if (!time) { if (!time) {
@ -297,6 +292,7 @@ $cellHeight: 72px;
position: relative; position: relative;
transition: transform 0.3s; transition: transform 0.3s;
background-color: #fff; background-color: #fff;
padding: 0 10px;
&.show-action-list { &.show-action-list {
transform: translateX(-200px); transform: translateX(-200px);
} }
@ -347,6 +343,7 @@ $cellHeight: 72px;
padding: 10px 16px; padding: 10px 16px;
height: $cellHeight; height: $cellHeight;
box-sizing: border-box; box-sizing: border-box;
// background-color: #fff;
} }
.conversation-item-left { .conversation-item-left {

@ -278,6 +278,8 @@ onUnmounted(() => {
width: 100%; width: 100%;
overflow-y: auto; overflow-y: auto;
overflow-x: hidden; overflow-x: hidden;
} }
.logo-box { .logo-box {

@ -59,7 +59,7 @@
</view> </view>
<div class="g_h_10"></div> <div class="g_h_10"></div>
<div class="r_box g_ml_10 g_mr_10" style="overflow: hidden"> <div class="r_box g_ml_10 g_mr_10" style="overflow: hidden">
<view class="item g_flex_row_between g_pl_16 g_pr_16 g_pb_6 g_pt_6 g_bg_f" hover-class="g_bg_e" v-for="(item, index) in query.list" :key="index" @click="goMain(item)" :class="index == 0 ? 'g_pt_12' : ''" :style="{ 'border-bottom': index == query.list.length - 1 ? '1rpx solid #fff' : '1rpx solid #eee' }"> <view class="item g_flex_row_between g_pl_16 g_pr_16 g_pb_6 g_pt_6 g_bg_f" hover-class="g_bg_e" v-for="(item, index) in query.list" :key="index" @click="goMain(item)" :class="index == 0 ? 'g_pt_6 ' : ''" :style="{ 'border-bottom': index == query.list.length - 1 ? '1rpx solid #fff' : '1rpx solid #eee' }">
<view class="g_flex_none g_flex_row_start"> <view class="g_flex_none g_flex_row_start">
<view class="g_flex_column_center g_pr_16 g_flex_none" style="position: relative"> <view class="g_flex_column_center g_pr_16 g_flex_none" style="position: relative">
<g-panel-image :url="item.logo || 'https://matripe-cms.oss-cn-beijing.aliyuncs.com/dailibaoming/qiyelogo0610.svg'" size="96" radius="50" /> <g-panel-image :url="item.logo || 'https://matripe-cms.oss-cn-beijing.aliyuncs.com/dailibaoming/qiyelogo0610.svg'" size="96" radius="50" />

@ -6,8 +6,9 @@
</view> --> </view> -->
<!-- - ${isLogin ? tabbarHeight + 43 : 0}px --> <!-- - ${isLogin ? tabbarHeight + 43 : 0}px -->
<!-- isLogin ? '43px' : --> <!-- isLogin ? '43px' : -->
<scroll-view @scroll="getScrollInfo" :scroll-top="resetScroll" :style="{ height: `calc(100vh - ${tabbarHeight})`, 'padding-top': '10px' }" :scroll-y="true" v-if="isLogin"> <scroll-view @scroll="getScrollInfo" :scroll-top="resetScroll" :style="{ minHeight: `calc(100vh - ${tabbarHeight}px)`, 'padding-top': '' }" :scroll-y="true" v-if="isLogin">
<view class="" v-show="current == 0"> <view class="" v-show="current == 0">
<view class="g_h_10"></view>
<view class="g_bg_f"> <view class="g_bg_f">
<ConversationList ref="contactList" /> <ConversationList ref="contactList" />
</view> </view>

@ -73,8 +73,8 @@ export default {
}, },
setAvatar($type) { setAvatar($type) {
let that = this; let that = this;
// that.G.uploadImgToOss() that.G.uploadImgToOss()
// return return
that.G.uploadImg( that.G.uploadImg(
(res) => { (res) => {
console.log("获取数据", res); console.log("获取数据", res);

@ -291,10 +291,11 @@ export default {
@import "../../iconfont.css"; @import "../../iconfont.css";
@font-face { @font-face {
font-family: "iconfont"; /* Project id 4374774 */ font-family: "iconfont"; /* Project id 4374774 */
src: url('//at.alicdn.com/t/c/font_4374774_zuuyrxlecbi.woff2?t=1755592111683') format('woff2'), src: url('//at.alicdn.com/t/c/font_4374774_pm01bomgppe.woff2?t=1755661995542') format('woff2'),
url('//at.alicdn.com/t/c/font_4374774_zuuyrxlecbi.woff?t=1755592111683') format('woff'), url('//at.alicdn.com/t/c/font_4374774_pm01bomgppe.woff?t=1755661995542') format('woff'),
url('//at.alicdn.com/t/c/font_4374774_zuuyrxlecbi.ttf?t=1755592111683') format('truetype'); url('//at.alicdn.com/t/c/font_4374774_pm01bomgppe.ttf?t=1755661995542') format('truetype');
} }
.iconfont { .iconfont {
font-family: "iconfont" !important; font-family: "iconfont" !important;
font-size: 24px; font-size: 24px;

Loading…
Cancel
Save