From d77e175b52ebbd995d80b9fe097cc161ec8ff862 Mon Sep 17 00:00:00 2001 From: lr Date: Tue, 18 Feb 2025 11:38:36 +0800 Subject: [PATCH] =?UTF-8?q?=E6=A6=B4=E8=8E=B2=E6=9E=9C=E9=85=8D=E7=BD=AE?= =?UTF-8?q?=20=20=E6=89=AB=E7=A0=81=E5=8A=A0=E5=A5=BD=E5=8F=8B?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- jiuyi2/api/durian.js | 10 + jiuyi2/api/shop.js | 27 +- jiuyi2/common/js/config.js | 1 + jiuyi2/components/news/msgList.vue | 27 +- .../public/jy-commodity-information/index.vue | 16 +- jiuyi2/components/shop/detail/footerMenu.vue | 33 +- .../.vue-global-types/vue_2.6_0_0_0.d.ts | 133 +++++ jiuyi2/pages/index/durian.vue | 518 +++++++++--------- jiuyi2/pages/news/addFriend.vue | 311 ++++++----- jiuyi2/pages/news/chat/chat.vue | 4 +- jiuyi2/pages/news/chat/jy-plus.vue | 56 +- jiuyi2/pages/news/goodsList/index.vue | 118 +++- jiuyi2/pages/news/myQr.vue | 112 ++-- jiuyi2/vite.config.js | 1 + service/App.vue | 21 +- service/api/login.js | 7 +- service/common/js/config.js | 2 +- service/common/js/util.js | 47 +- service/pages/index/index.vue | 278 ++++++++-- service/vite.config.js | 2 +- 20 files changed, 1123 insertions(+), 601 deletions(-) create mode 100644 jiuyi2/node_modules/.vue-global-types/vue_2.6_0_0_0.d.ts diff --git a/jiuyi2/api/durian.js b/jiuyi2/api/durian.js index 7b6cc3ea..36bf2d11 100644 --- a/jiuyi2/api/durian.js +++ b/jiuyi2/api/durian.js @@ -72,5 +72,15 @@ export const durian = { load: true, }) }, + /** + * 榴莲果配置 + * @param {Object} param + */ + durianFruitConfig() { + return util.request({ + url: `/coreplay/durianFruitTransactionType/10`, + method: 'GET', + }) + }, } export default durian \ No newline at end of file diff --git a/jiuyi2/api/shop.js b/jiuyi2/api/shop.js index 78776834..3170fbde 100644 --- a/jiuyi2/api/shop.js +++ b/jiuyi2/api/shop.js @@ -444,7 +444,32 @@ const shop = { */ getCustomerService(param) { return util.request({ - url: `/user/MCustomerService/random`, + url: `/user/MCustomerService/random`, + method: 'GET', + query: param, + }) + }, + + + /** + * 根据店铺id查商品列表 + * @param {Object} param + */ + getShopProductList(param) { + return util.request({ + url: `/shopify/appProductionApi/getProductionList`, + method: 'GET', + query: param, + }) + }, + + /** + * 查询用户在当前商铺的订单列表 + * @param {Object} param + */ + getShopOrderList(param) { + return util.request({ + url: `/shopify/appOrder/getOrderList`, method: 'GET', query: param, }) diff --git a/jiuyi2/common/js/config.js b/jiuyi2/common/js/config.js index 4500abc9..c6bbe709 100644 --- a/jiuyi2/common/js/config.js +++ b/jiuyi2/common/js/config.js @@ -8,6 +8,7 @@ const config = { // #ifndef H5 // host: 'http://91f.xyz:8080', host: 'https://b433d23.r24.cpolar.top/', + // host: 'http://hvw2rn.natappfree.cc', // #endif // 支付方式配置 payType: { diff --git a/jiuyi2/components/news/msgList.vue b/jiuyi2/components/news/msgList.vue index 89288f74..ab9a87cf 100644 --- a/jiuyi2/components/news/msgList.vue +++ b/jiuyi2/components/news/msgList.vue @@ -110,6 +110,28 @@ function handleList(list) { if (item.groupId != null) { item.unreadCount = getGroupNoReadNum(item.groupId) } + if (item.callbackJson.callback_json.length) { + let msgType = item.callbackJson.callback_json[0].MsgType; + if (msgType == TencentCloudChat.TYPES.MSG_TEXT) { + item.chatText = item.callbackJson.callback_json[0].MsgContent.Text + } else if (msgType == TencentCloudChat.TYPES.MSG_IMAGE) { + item.chatText = '[图片]' + } else if (msgType == TencentCloudChat.TYPES.MSG_AUDIO) { + item.chatText = '[语音]' + } else if (msgType == TencentCloudChat.TYPES.MSG_VIDEO) { + item.chatText = '[视频]' + } else if (msgType == TencentCloudChat.TYPES.MSG_CUSTOM) { + if (item.callbackJson.callback_json[0].businessType == 'redPacket') { + item.chatText = `[红包] ${item.callbackJson.blessing}` + } else if (item.callbackJson.callback_json[0].businessType == '1') { + // if (item.callbackJson.callback_json[0].call_type == '1') { + // item.chatText = '[语音通话]' + // } else if (item.callbackJson.callback_json[0].call_type == '2') { + // item.chatText = '[视频通话]' + // } + } + } + } }) return list @@ -193,7 +215,7 @@ function delMsg(item) { let conversationId = item.groupId == null ? `C2C${item.fromId}` : `GROUP${item.groupId}`; - uni.$chat.deleteConversation(conversationId).then(rs => { + uni.$chat.deleteConversation(conversationId).then(rs => { getList() }) } @@ -297,8 +319,7 @@ function setRead(item) { {{ util.formatTime('MM-dd HH:mm', item.createTime) }} - {{ - item.callbackJson.callback_json[0].MsgContent.Text }} + {{ item.chatText }} diff --git a/jiuyi2/components/public/jy-commodity-information/index.vue b/jiuyi2/components/public/jy-commodity-information/index.vue index 8e45ca3f..ee0462f5 100644 --- a/jiuyi2/components/public/jy-commodity-information/index.vue +++ b/jiuyi2/components/public/jy-commodity-information/index.vue @@ -4,15 +4,15 @@