diff --git a/api/channel/index.ts b/api/channel/index.ts index 439f3aa..cbd9548 100644 --- a/api/channel/index.ts +++ b/api/channel/index.ts @@ -93,7 +93,7 @@ export const sendKefuMessage = (params: SingleMessageVo) => { * 获得消息记录分页 */ export const getMessagePage = (params: { pageNo: number; pageSize: number; fromId?: number; msgType?: number; topic: string }) => { - return useFetchRequest.get>('/prod-api/app-api/mqtt/message/page', params) + return useDollarFetchRequest.get>('/prod-api/app-api/mqtt/message/page', {query:params}) } /** diff --git a/api/pay/index.ts b/api/pay/index.ts index b3c8bfd..f02588d 100644 --- a/api/pay/index.ts +++ b/api/pay/index.ts @@ -8,7 +8,7 @@ import type { AppPayWalletPackageRespVO, PayOrderSubmitReqVO, PayOrderRespVO, Pa * @returns */ export const listVip = () => { - return useFetchRequest.get>('/prod-api/app-api/pay/wallet-recharge-package/list-vip', {}) + return useDollarFetchRequest.get>('/prod-api/app-api/pay/wallet-recharge-package/list-vip', {}) } /** @@ -43,7 +43,7 @@ export const listWalletRechargePackage = () => { * 获取支付状态 */ export const getPayStatus = (params: { id: number }) => { - return useDollarFetchRequest.get>('/prod-api/app-api/pay/order/get', params) + return useDollarFetchRequest.get>('/prod-api/app-api/pay/order/get', {query:params}) } /** diff --git a/components/kl-quick-menu/components/kl-service.vue b/components/kl-quick-menu/components/kl-service.vue index 855598b..7fc7ac1 100644 --- a/components/kl-quick-menu/components/kl-service.vue +++ b/components/kl-quick-menu/components/kl-service.vue @@ -28,10 +28,10 @@
{{ msg.content }}
-
- 图片 +
+ 图片
-
+
{{ msg.content.split('/').pop() }}
{{ dayjs(msg.createTime).format('YYYY-MM-DD HH:mm:ss') }}
@@ -299,6 +299,9 @@ inputMessage.value = imageUrl handleSend(msgType) } + img.onerror = () => { + ElMessage.error('图片加载失败') + } } else { inputMessage.value = imageUrl handleSend(msgType) diff --git a/components/kl-quick-menu/components/kl-vip.vue b/components/kl-quick-menu/components/kl-vip.vue index 2181dc3..f5951b4 100644 --- a/components/kl-quick-menu/components/kl-vip.vue +++ b/components/kl-quick-menu/components/kl-vip.vue @@ -5,7 +5,7 @@
-
+
{{ item.name }}
@@ -22,7 +22,7 @@ >
- +
请使用微信扫二维码
@@ -153,7 +153,7 @@ border-radius: 12px; box-shadow: 0 2px 12px rgba(0, 0, 0, 0.06); padding: 24px 32px; - width: 260px; + width: 290px; display: flex; flex-direction: column; align-items: center; @@ -231,5 +231,15 @@ z-index: 1; text-align: center; background-color: #fff; + display: flex; + flex-direction: column; + align-items: center; + justify-content: center; + } + + :deep(.el-dialog__header) { + .el-dialog__close { + top: -10px !important + } } diff --git a/components/kl-quick-menu/index.vue b/components/kl-quick-menu/index.vue index bc186ad..536b095 100644 --- a/components/kl-quick-menu/index.vue +++ b/components/kl-quick-menu/index.vue @@ -2,25 +2,25 @@
- + VIP
- + 客服
- + 签到
- + 发布
-
+
顶部
@@ -36,6 +36,7 @@ import useUserStore from '~/store/user' import { Service, Top, Promotion, Checked, Trophy } from '@element-plus/icons-vue' import KlService from './components/kl-service.vue' + import KlVip from './components/kl-vip.vue' const showVip = ref(false) const handleVip = () => { diff --git a/package.json b/package.json index 1db5b25..b6a7c8f 100644 --- a/package.json +++ b/package.json @@ -20,6 +20,7 @@ "nuxt": "^3.18.1", "pdfjs-dist": "^5.4.54", "pinia": "^3.0.3", + "qrcode.vue": "^3.6.0", "tinymce": "^6.2.0", "vue": "^3.5.18", "vue-pdf-embed": "^2.1.3", diff --git a/yarn.lock b/yarn.lock index 923f874..74cb1cb 100644 --- a/yarn.lock +++ b/yarn.lock @@ -5747,6 +5747,11 @@ pump@^3.0.0: end-of-stream "^1.1.0" once "^1.3.1" +qrcode.vue@^3.6.0: + version "3.6.0" + resolved "https://registry.yarnpkg.com/qrcode.vue/-/qrcode.vue-3.6.0.tgz#d940fe96712922232aa19892bdd68793e62c73e7" + integrity sha512-vQcl2fyHYHMjDO1GguCldJxepq2izQjBkDEEu9NENgfVKP6mv/e2SU62WbqYHGwTgWXLhxZ1NCD1dAZKHQq1fg== + qs@^6.9.6: version "6.14.0" resolved "https://registry.npmmirror.com/qs/-/qs-6.14.0.tgz"