diff --git a/components/customTabbar.vue b/components/customTabbar.vue
index 86f23e7..614a860 100644
--- a/components/customTabbar.vue
+++ b/components/customTabbar.vue
@@ -57,14 +57,12 @@ export default {
text: "首页",
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-fadanhao-32 g_c_9",
+ selectedIconPath: "icon-fadanhao-32 g_c_main",
+ pagePath: "/pages/home/order",
+ text: "发单号",
+ iconSize: 48,
},
{
@@ -76,11 +74,12 @@ export default {
count: 0,
},
{
- iconPath: "icon-fadanhao-32 g_c_9",
- selectedIconPath: "icon-fadanhao-32 g_c_main",
- pagePath: "/pages/home/order",
- text: "发单号",
- 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-user g_c_9",
@@ -99,14 +98,7 @@ export default {
text: "首页",
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",
selectedIconPath: "icon-order_active g_c_main",
@@ -115,6 +107,14 @@ export default {
iconSize: 48,
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",
selectedIconPath: "icon-user g_c_main",
@@ -187,14 +187,7 @@ export default {
text: "发单号",
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",
selectedIconPath: "icon-order_active g_c_main",
@@ -203,6 +196,14 @@ export default {
iconSize: 48,
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",
selectedIconPath: "icon-user g_c_main",
diff --git a/main.js b/main.js
index 0858c0e..ef63ec3 100644
--- a/main.js
+++ b/main.js
@@ -167,16 +167,55 @@ export function createApp () {
});
}, $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
*/
uploadImgToOss (callback = () => { }, type = 'default', $num = 1, $sourceType = ['album', 'camera']) {
+ var that = this;
G.uploadImage($num, (imgRes) => {
uni.showLoading({
title: '上传中...',
})
- G.Get(apiInfo.getOssInfo, {}, (res) => {
- console.log('uploadImgToOssresresresres', res);
+ G.Get(apiInfo.getOssInfo, {}, ({ data }) => {
+ 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) { },
+ });
})
})
},
diff --git a/pages/NEUIKit/pages/Conversation/conversation-list/conversation-item.vue b/pages/NEUIKit/pages/Conversation/conversation-list/conversation-item.vue
index e9425f5..1d28ccf 100644
--- a/pages/NEUIKit/pages/Conversation/conversation-list/conversation-item.vue
+++ b/pages/NEUIKit/pages/Conversation/conversation-list/conversation-item.vue
@@ -9,7 +9,6 @@
props.heihei,
]"
class="u-skeleton"
-
@touchstart="handleTouchStart"
@touchmove="handleTouchMove"
@click="handleConversationItemClick()"
@@ -23,7 +22,6 @@