修改聊天记录头像不一致
This commit is contained in:
parent
0afeee6877
commit
c1e32ecc20
|
@ -217,6 +217,17 @@ export const news = {
|
|||
method: 'GET'
|
||||
})
|
||||
},
|
||||
|
||||
|
||||
// 客服发消息
|
||||
sendCusomterService(param) {
|
||||
return util.request({
|
||||
url: `/user/chat/sendMsgToPlatformService`,
|
||||
query: param.query,
|
||||
data: param.data,
|
||||
method: 'POST',
|
||||
})
|
||||
},
|
||||
}
|
||||
|
||||
export default news
|
|
@ -437,6 +437,18 @@ const shop = {
|
|||
method: 'GET',
|
||||
})
|
||||
},
|
||||
|
||||
/**
|
||||
* 获取店铺客服信息
|
||||
* @param {Object} param
|
||||
*/
|
||||
getCustomerService(param) {
|
||||
return util.request({
|
||||
url: `/user/MCustomerService/random`,
|
||||
method: 'GET',
|
||||
query: param,
|
||||
})
|
||||
},
|
||||
}
|
||||
|
||||
export default shop
|
|
@ -7,7 +7,7 @@ const config = {
|
|||
// #endif
|
||||
// #ifndef H5
|
||||
// host: 'http://91f.xyz:8080',
|
||||
host: 'http://d5si5v.natappfree.cc',
|
||||
host: 'https://b433d23.r24.cpolar.top/',
|
||||
// #endif
|
||||
// 支付方式配置
|
||||
payType: {
|
||||
|
|
|
@ -1,90 +1,121 @@
|
|||
<script setup>
|
||||
// 店铺 客服 收藏 支付
|
||||
import {
|
||||
ref,
|
||||
reactive,
|
||||
getCurrentInstance,
|
||||
computed,
|
||||
defineEmits,
|
||||
onMounted
|
||||
} from 'vue'
|
||||
//
|
||||
import util from '@/common/js/util.js'
|
||||
//
|
||||
import api from '@/api/index.js'
|
||||
//
|
||||
import {
|
||||
useStore
|
||||
} from 'vuex'
|
||||
// 店铺 客服 收藏 支付
|
||||
import {
|
||||
ref,
|
||||
reactive,
|
||||
getCurrentInstance,
|
||||
computed,
|
||||
defineEmits,
|
||||
onMounted
|
||||
} from 'vue'
|
||||
//
|
||||
import util from '@/common/js/util.js'
|
||||
//
|
||||
import api from '@/api/index.js'
|
||||
//
|
||||
import {
|
||||
useStore
|
||||
} from 'vuex'
|
||||
|
||||
const {
|
||||
proxy
|
||||
} = getCurrentInstance()
|
||||
//
|
||||
const store = useStore()
|
||||
//
|
||||
const props = defineProps({
|
||||
// 商品信息
|
||||
detail: {
|
||||
type: Object,
|
||||
default: () => ({})
|
||||
},
|
||||
})
|
||||
//
|
||||
const emit = defineEmits(['update', 'buy'])
|
||||
// 用户信息
|
||||
const userinfo = computed(() => store.state.userinfo)
|
||||
const {
|
||||
proxy
|
||||
} = getCurrentInstance()
|
||||
//
|
||||
const store = useStore()
|
||||
//
|
||||
const props = defineProps({
|
||||
// 商品信息
|
||||
detail: {
|
||||
type: Object,
|
||||
default: () => ({})
|
||||
},
|
||||
})
|
||||
//
|
||||
const emit = defineEmits(['update', 'buy'])
|
||||
// 用户信息
|
||||
const userinfo = computed(() => store.state.userinfo)
|
||||
|
||||
// 商品收藏
|
||||
function handleCollect() {
|
||||
util.isLogin().then(rs => {
|
||||
//
|
||||
api.shop.addProductCollect({
|
||||
query: {
|
||||
productId: props.detail.id,
|
||||
type: {
|
||||
0: 1,
|
||||
1: 0,
|
||||
} [props.detail.isCollect]
|
||||
}
|
||||
}).then(rs => {
|
||||
if (rs.code == 200) {
|
||||
// 关注状态
|
||||
props.detail.isCollect = {
|
||||
0: 1,
|
||||
1: 0,
|
||||
} [props.detail.isCollect]
|
||||
// 关注数量
|
||||
props.detail.collectNumber = rs.data
|
||||
return
|
||||
}
|
||||
util.alert({
|
||||
content: rs.msg,
|
||||
showCancel: false,
|
||||
})
|
||||
})
|
||||
}).catch(() => {
|
||||
// 登录
|
||||
uni.navigateTo({
|
||||
url: '/pages/login/loginPhone'
|
||||
// 商品收藏
|
||||
function handleCollect() {
|
||||
util.isLogin().then(rs => {
|
||||
//
|
||||
api.shop.addProductCollect({
|
||||
query: {
|
||||
productId: props.detail.id,
|
||||
type: {
|
||||
0: 1,
|
||||
1: 0,
|
||||
}[props.detail.isCollect]
|
||||
}
|
||||
}).then(rs => {
|
||||
if (rs.code == 200) {
|
||||
// 关注状态
|
||||
props.detail.isCollect = {
|
||||
0: 1,
|
||||
1: 0,
|
||||
}[props.detail.isCollect]
|
||||
// 关注数量
|
||||
props.detail.collectNumber = rs.data
|
||||
return
|
||||
}
|
||||
util.alert({
|
||||
content: rs.msg,
|
||||
showCancel: false,
|
||||
})
|
||||
})
|
||||
}
|
||||
|
||||
/**
|
||||
* 跳转
|
||||
* @param {Object} url 跳转路径
|
||||
*/
|
||||
function link(url) {
|
||||
}).catch(() => {
|
||||
// 登录
|
||||
uni.navigateTo({
|
||||
url,
|
||||
url: '/pages/login/loginPhone'
|
||||
})
|
||||
}
|
||||
})
|
||||
}
|
||||
|
||||
// 商品购买
|
||||
function handleBuy() {
|
||||
emit('buy')
|
||||
}
|
||||
/**
|
||||
* 跳转
|
||||
* @param {Object} url 跳转路径
|
||||
*/
|
||||
function link(url) {
|
||||
uni.navigateTo({
|
||||
url,
|
||||
})
|
||||
}
|
||||
|
||||
// 商品购买
|
||||
function handleBuy() {
|
||||
emit('buy')
|
||||
}
|
||||
|
||||
|
||||
// 客服
|
||||
function toCustomer() {
|
||||
api.shop.getCustomerService({ merchantId: props.detail.merId }).then(rs => {
|
||||
console.log(rs);
|
||||
|
||||
//
|
||||
if (rs.code == 200) {
|
||||
|
||||
} else {
|
||||
util.alert(rs.msg)
|
||||
}
|
||||
})
|
||||
|
||||
|
||||
let param = {};
|
||||
param.type = 'C2C'
|
||||
param.name = `${props.detail.merName}`
|
||||
param.msgId = `${props.detail.merId}`
|
||||
param.isCustomer = true
|
||||
|
||||
util.toChat(param)
|
||||
|
||||
|
||||
uni.navigateTo({
|
||||
url: util.setUrl('/pages/news/chat/chat', param)
|
||||
})
|
||||
|
||||
|
||||
}
|
||||
</script>
|
||||
|
||||
<template>
|
||||
|
@ -107,10 +138,10 @@
|
|||
</view>
|
||||
</view>
|
||||
|
||||
<view class="option ver " v-if="0">
|
||||
<!-- <view class="option ver" @click="toCustomer">
|
||||
<image class="wh30" src="/static/customer-service.png" mode="aspectFit" />
|
||||
<text class="text mt10">客服</text>
|
||||
</view>
|
||||
</view> -->
|
||||
</view>
|
||||
|
||||
<!-- 下单 -->
|
||||
|
@ -121,17 +152,17 @@
|
|||
</template>
|
||||
|
||||
<style scoped lang="scss">
|
||||
// 底部菜单
|
||||
.footerMneu {
|
||||
// 底部菜单
|
||||
.footerMneu {
|
||||
|
||||
// 选项
|
||||
.option {
|
||||
width: 80rpx;
|
||||
// 选项
|
||||
.option {
|
||||
width: 80rpx;
|
||||
|
||||
.text {
|
||||
color: #999;
|
||||
font-size: 24rpx;
|
||||
}
|
||||
.text {
|
||||
color: #999;
|
||||
font-size: 24rpx;
|
||||
}
|
||||
}
|
||||
}
|
||||
</style>
|
|
@ -1,6 +1,5 @@
|
|||
{
|
||||
"pages": [
|
||||
|
||||
{
|
||||
"path": "pages/index/index",
|
||||
"style": {
|
||||
|
@ -92,12 +91,24 @@
|
|||
"navigationBarTitleText": "问答页"
|
||||
}
|
||||
},
|
||||
{
|
||||
"path": "pages/news/chat/customeChat",
|
||||
"style": {
|
||||
"navigationBarTitleText": "客服聊天"
|
||||
}
|
||||
},
|
||||
{
|
||||
"path": "pages/news/red-envelope/index",
|
||||
"style": {
|
||||
"navigationBarTitleText": "红包详情"
|
||||
}
|
||||
},
|
||||
{
|
||||
"path": "pages/news/goodsList/index",
|
||||
"style": {
|
||||
"navigationBarTitleText": "商品列表"
|
||||
}
|
||||
},
|
||||
{
|
||||
"path": "pages/mine/mine",
|
||||
"style": {
|
||||
|
@ -219,7 +230,6 @@
|
|||
"navigationBarTitleText": "我的分享"
|
||||
}
|
||||
},
|
||||
|
||||
{
|
||||
"path": "pages/index/deal",
|
||||
"style": {
|
||||
|
@ -453,7 +463,6 @@
|
|||
"style": {
|
||||
"navigationBarTitleText": "账单详情",
|
||||
"navigationBarBackgroundColor": "#fff"
|
||||
|
||||
}
|
||||
},
|
||||
{
|
||||
|
@ -724,57 +733,59 @@
|
|||
}
|
||||
}
|
||||
],
|
||||
|
||||
"subPackages": [{
|
||||
"root": "TUIKit",
|
||||
"pages": [{
|
||||
"path": "components/TUIConversation/index",
|
||||
"style": {
|
||||
"navigationBarTitleText": "消息"
|
||||
"subPackages": [
|
||||
{
|
||||
"root": "TUIKit",
|
||||
"pages": [
|
||||
{
|
||||
"path": "components/TUIConversation/index",
|
||||
"style": {
|
||||
"navigationBarTitleText": "消息"
|
||||
}
|
||||
},
|
||||
{
|
||||
"path": "components/TUIChat/index",
|
||||
"style": {
|
||||
"navigationBarTitleText": "消息"
|
||||
}
|
||||
},
|
||||
// 集成 chat 组件,必须配置该路径: 视频播放
|
||||
{
|
||||
"path": "components/TUIChat/video-play",
|
||||
"style": {
|
||||
"navigationBarTitleText": "消息"
|
||||
}
|
||||
},
|
||||
{
|
||||
"path": "components/TUIChat/web-view",
|
||||
"style": {
|
||||
"navigationBarTitleText": "消息"
|
||||
}
|
||||
},
|
||||
{
|
||||
"path": "components/TUIContact/index",
|
||||
"style": {
|
||||
"navigationBarTitleText": "消息"
|
||||
}
|
||||
},
|
||||
{
|
||||
"path": "components/TUIGroup/index",
|
||||
"style": {
|
||||
"navigationBarTitleText": "消息"
|
||||
}
|
||||
},
|
||||
{
|
||||
"path": "components/TUISearch/index",
|
||||
"style": {
|
||||
"navigationBarTitleText": "聊天记录"
|
||||
}
|
||||
}
|
||||
},
|
||||
{
|
||||
"path": "components/TUIChat/index",
|
||||
"style": {
|
||||
"navigationBarTitleText": "消息"
|
||||
}
|
||||
},
|
||||
// 集成 chat 组件,必须配置该路径: 视频播放
|
||||
{
|
||||
"path": "components/TUIChat/video-play",
|
||||
"style": {
|
||||
"navigationBarTitleText": "消息"
|
||||
}
|
||||
},
|
||||
{
|
||||
"path": "components/TUIChat/web-view",
|
||||
"style": {
|
||||
"navigationBarTitleText": "消息"
|
||||
}
|
||||
},
|
||||
{
|
||||
"path": "components/TUIContact/index",
|
||||
"style": {
|
||||
"navigationBarTitleText": "消息"
|
||||
}
|
||||
},
|
||||
{
|
||||
"path": "components/TUIGroup/index",
|
||||
"style": {
|
||||
"navigationBarTitleText": "消息"
|
||||
}
|
||||
},
|
||||
{
|
||||
"path": "components/TUISearch/index",
|
||||
"style": {
|
||||
"navigationBarTitleText": "聊天记录"
|
||||
}
|
||||
}
|
||||
]
|
||||
}],
|
||||
|
||||
]
|
||||
}
|
||||
],
|
||||
"tabBar": {
|
||||
"list": [{
|
||||
"list": [
|
||||
{
|
||||
"text": "视频",
|
||||
"pagePath": "pages/index/index"
|
||||
},
|
||||
|
@ -796,7 +807,6 @@
|
|||
}
|
||||
]
|
||||
},
|
||||
|
||||
"globalStyle": {
|
||||
"navigationBarTextStyle": "black",
|
||||
"navigationBarTitleText": "九亿",
|
||||
|
@ -806,14 +816,14 @@
|
|||
"bounce": "none" //关闭窗口回弹效果
|
||||
}
|
||||
},
|
||||
|
||||
"condition": {
|
||||
"current": 0,
|
||||
"list": [{
|
||||
"name": "test",
|
||||
"path": "pages/index/index"
|
||||
}]
|
||||
"list": [
|
||||
{
|
||||
"name": "test",
|
||||
"path": "pages/index/index"
|
||||
}
|
||||
]
|
||||
},
|
||||
|
||||
"uniIdRouter": {}
|
||||
}
|
File diff suppressed because it is too large
Load Diff
|
@ -1,197 +1,204 @@
|
|||
<script setup>
|
||||
// + 页面
|
||||
// 腾讯云聊天
|
||||
import TencentCloudChat from '@tencentcloud/chat';
|
||||
import {
|
||||
ref,
|
||||
reactive,
|
||||
nextTick,
|
||||
computed,
|
||||
} from 'vue'
|
||||
import {
|
||||
screenHeight
|
||||
} from '@/components/public/Mixins'
|
||||
import JyCommodityInformation from '@/components/public/jy-commodity-information'
|
||||
// 工具库
|
||||
import util from '@/common/js/util.js'
|
||||
//
|
||||
const props = defineProps({
|
||||
msg: {
|
||||
type: Object,
|
||||
},
|
||||
})
|
||||
// + 页面
|
||||
// 腾讯云聊天
|
||||
import TencentCloudChat from '@tencentcloud/chat';
|
||||
import {
|
||||
ref,
|
||||
reactive,
|
||||
nextTick,
|
||||
computed,
|
||||
} from 'vue'
|
||||
import {
|
||||
screenHeight
|
||||
} from '@/components/public/Mixins'
|
||||
import JyCommodityInformation from '@/components/public/jy-commodity-information'
|
||||
// 工具库
|
||||
import util from '@/common/js/util.js'
|
||||
import { inject } from 'vue'
|
||||
|
||||
// 调用父级方法
|
||||
const emit = defineEmits(['plusClick', 'send'])
|
||||
// 加号菜单
|
||||
const plusList = computed(() => {
|
||||
let result = [
|
||||
// {
|
||||
// type: 'order.png',
|
||||
// label: '订单',
|
||||
// value: 'chooseOrder'
|
||||
// }, {
|
||||
// type: 'shop.png',
|
||||
// label: '商品',
|
||||
// value: 'chooseShop'
|
||||
// },
|
||||
{
|
||||
type: 'picture.png',
|
||||
label: '照片',
|
||||
value: 'chooseImage'
|
||||
}, {
|
||||
type: 'photograph.png',
|
||||
label: '拍摄',
|
||||
value: 'takePhoto'
|
||||
}, {
|
||||
type: 'red-envelope.png',
|
||||
label: '红包',
|
||||
value: 'redEnvelope'
|
||||
}
|
||||
]
|
||||
// 单聊
|
||||
if (props.msg.type == 'C2C') result.push({
|
||||
type: 'news-voice.png',
|
||||
label: '音视频',
|
||||
value: 'voice'
|
||||
})
|
||||
return result
|
||||
})
|
||||
const { checkLink } = inject('util');
|
||||
//
|
||||
const props = defineProps({
|
||||
msg: {
|
||||
type: Object,
|
||||
},
|
||||
})
|
||||
|
||||
const popupRef = ref(null)
|
||||
const popupRE = ref(null)
|
||||
const formData = reactive({
|
||||
name: ''
|
||||
})
|
||||
const popupData = reactive({
|
||||
show: false,
|
||||
title: '选择订单'
|
||||
})
|
||||
|
||||
// 加号方法对象
|
||||
const plusClickObj = {
|
||||
voice: () => {
|
||||
// 菜单
|
||||
const menu = [{
|
||||
name: '语音通话',
|
||||
type: 1,
|
||||
},
|
||||
{
|
||||
nanme: '视频通话',
|
||||
type: 2,
|
||||
}
|
||||
]
|
||||
|
||||
uni.showActionSheet({
|
||||
itemList: ['语音通话', '视频通话'],
|
||||
success: rs => {
|
||||
uni.$TUICallKit.call({
|
||||
userID: props.msg.id,
|
||||
callMediaType: menu[rs.tapIndex].type,
|
||||
// callParams: {
|
||||
// roomID: 234,
|
||||
// strRoomID: '2323423',
|
||||
// timeout: 30
|
||||
// },
|
||||
}, res => {
|
||||
console.log('[TUICallKit] call params: ', JSON.stringify(res));
|
||||
});
|
||||
}
|
||||
})
|
||||
},
|
||||
|
||||
// 选择订单
|
||||
chooseOrder: () => {
|
||||
nextTick().then(() => {
|
||||
popupRef.value.open()
|
||||
});
|
||||
},
|
||||
|
||||
// 选择商品
|
||||
chooseShop: () => {
|
||||
// checkLink('pages/mine/browsed/index')
|
||||
},
|
||||
|
||||
// 发送红包
|
||||
redEnvelope() {
|
||||
uni.navigateTo({
|
||||
url: util.setUrl('/pages/news/redPacket', {
|
||||
// 聊天对象
|
||||
msgId: props.msg.id,
|
||||
// 发送方式
|
||||
sendType: {
|
||||
'C2C': 1,
|
||||
'GROUP': 2,
|
||||
} [props.msg.type],
|
||||
num: props.msg.num,
|
||||
})
|
||||
})
|
||||
// popupRE.value.open()
|
||||
},
|
||||
|
||||
//拍照
|
||||
takePhoto: () => {
|
||||
console.log('takePhoto')
|
||||
sendMsgImg({
|
||||
sourceType: ['album'],
|
||||
})
|
||||
},
|
||||
|
||||
//选择图片
|
||||
chooseImage: () => {
|
||||
console.log('chooseImage')
|
||||
sendMsgImg({
|
||||
sourceType: ['album'],
|
||||
})
|
||||
// 调用父级方法
|
||||
const emit = defineEmits(['plusClick', 'send'])
|
||||
// 加号菜单
|
||||
const plusList = computed(() => {
|
||||
let result = [
|
||||
{
|
||||
type: 'picture.png',
|
||||
label: '照片',
|
||||
value: 'chooseImage',
|
||||
}, {
|
||||
type: 'photograph.png',
|
||||
label: '拍摄',
|
||||
value: 'takePhoto',
|
||||
}, {
|
||||
type: 'red-envelope.png',
|
||||
label: '红包',
|
||||
value: 'redEnvelope',
|
||||
}
|
||||
}
|
||||
]
|
||||
|
||||
// 发送图片消息
|
||||
function sendMsgImg(option) {
|
||||
util.upload_image({
|
||||
count: 1,
|
||||
const isCustomer = props.msg.isCustomer;
|
||||
|
||||
// 单聊
|
||||
if (props.msg.type == 'C2C' && !isCustomer) result.push({
|
||||
type: 'news-voice.png',
|
||||
label: '音视频',
|
||||
value: 'voice'
|
||||
})
|
||||
// 客服
|
||||
if (isCustomer) result.unshift({
|
||||
type: 'order.png',
|
||||
label: '订单',
|
||||
value: 'chooseOrder',
|
||||
}, {
|
||||
type: 'shop.png',
|
||||
label: '商品',
|
||||
value: 'chooseShop',
|
||||
})
|
||||
return result
|
||||
})
|
||||
|
||||
const popupRef = ref(null)
|
||||
const popupRE = ref(null)
|
||||
const formData = reactive({
|
||||
name: ''
|
||||
})
|
||||
const popupData = reactive({
|
||||
show: false,
|
||||
title: '选择订单'
|
||||
})
|
||||
|
||||
// 加号方法对象
|
||||
const plusClickObj = {
|
||||
voice: () => {
|
||||
// 菜单
|
||||
const menu = [{
|
||||
name: '语音通话',
|
||||
type: 1,
|
||||
},
|
||||
{
|
||||
nanme: '视频通话',
|
||||
type: 2,
|
||||
}
|
||||
]
|
||||
|
||||
uni.showActionSheet({
|
||||
itemList: ['语音通话', '视频通话'],
|
||||
success: rs => {
|
||||
emit('send', {
|
||||
query: {
|
||||
toUserId: props.msg.id,
|
||||
msgType: TencentCloudChat.TYPES.MSG_IMAGE,
|
||||
},
|
||||
data: {
|
||||
imgUrl: rs.value
|
||||
},
|
||||
})
|
||||
uni.$TUICallKit.call({
|
||||
userID: props.msg.id,
|
||||
callMediaType: menu[rs.tapIndex].type,
|
||||
// callParams: {
|
||||
// roomID: 234,
|
||||
// strRoomID: '2323423',
|
||||
// timeout: 30
|
||||
// },
|
||||
}, res => {
|
||||
console.log('[TUICallKit] call params: ', JSON.stringify(res));
|
||||
});
|
||||
}
|
||||
})
|
||||
return
|
||||
// 选择图片
|
||||
uni.chooseImage({
|
||||
count: 1,
|
||||
sourceType: option.sourceType, // 从相册选择
|
||||
success: (res) => {
|
||||
let message = uni.$chat.createImageMessage({
|
||||
to: props.msg.id,
|
||||
conversationType: props.msg.type,
|
||||
payload: {
|
||||
file: res
|
||||
},
|
||||
onProgress: function(event) {
|
||||
console.log('file uploading:', event)
|
||||
}
|
||||
})
|
||||
return
|
||||
}
|
||||
});
|
||||
}
|
||||
},
|
||||
|
||||
// 咨询订单
|
||||
const consult = (content) => {
|
||||
let obj = {
|
||||
content,
|
||||
type: 'order'
|
||||
}
|
||||
popupRef.value.close()
|
||||
// 选择订单
|
||||
chooseOrder: () => {
|
||||
nextTick().then(() => {
|
||||
popupRef.value.open()
|
||||
});
|
||||
},
|
||||
|
||||
// 选择商品
|
||||
chooseShop: () => {
|
||||
checkLink('pages/news/goodsList/index')
|
||||
},
|
||||
|
||||
// 发送红包
|
||||
redEnvelope() {
|
||||
uni.navigateTo({
|
||||
url: util.setUrl('/pages/news/redPacket', {
|
||||
// 聊天对象
|
||||
msgId: props.msg.id,
|
||||
// 发送方式
|
||||
sendType: {
|
||||
'C2C': 1,
|
||||
'GROUP': 2,
|
||||
}[props.msg.type],
|
||||
num: props.msg.num,
|
||||
})
|
||||
})
|
||||
// popupRE.value.open()
|
||||
},
|
||||
|
||||
//拍照
|
||||
takePhoto: () => {
|
||||
console.log('takePhoto')
|
||||
sendMsgImg({
|
||||
sourceType: ['album'],
|
||||
})
|
||||
},
|
||||
|
||||
//选择图片
|
||||
chooseImage: () => {
|
||||
console.log('chooseImage')
|
||||
sendMsgImg({
|
||||
sourceType: ['album'],
|
||||
})
|
||||
}
|
||||
}
|
||||
|
||||
// 发送图片消息
|
||||
function sendMsgImg(option) {
|
||||
util.upload_image({
|
||||
count: 1,
|
||||
type: 1,
|
||||
success: rs => {
|
||||
emit('send', {
|
||||
query: {
|
||||
toUserId: props.msg.id,
|
||||
msgType: TencentCloudChat.TYPES.MSG_IMAGE,
|
||||
},
|
||||
data: {
|
||||
imgUrl: rs.value
|
||||
},
|
||||
})
|
||||
}
|
||||
})
|
||||
return
|
||||
// 选择图片
|
||||
uni.chooseImage({
|
||||
count: 1,
|
||||
sourceType: option.sourceType, // 从相册选择
|
||||
success: (res) => {
|
||||
let message = uni.$chat.createImageMessage({
|
||||
to: props.msg.id,
|
||||
conversationType: props.msg.type,
|
||||
payload: {
|
||||
file: res
|
||||
},
|
||||
onProgress: function (event) {
|
||||
console.log('file uploading:', event)
|
||||
}
|
||||
})
|
||||
return
|
||||
}
|
||||
});
|
||||
}
|
||||
|
||||
// 咨询订单
|
||||
const consult = (content) => {
|
||||
let obj = {
|
||||
content,
|
||||
type: 'order'
|
||||
}
|
||||
popupRef.value.close()
|
||||
}
|
||||
</script>
|
||||
|
||||
<template>
|
||||
|
@ -233,65 +240,65 @@
|
|||
</template>
|
||||
|
||||
<style scoped lang="scss">
|
||||
.NewsPlus {
|
||||
// 一行四个
|
||||
display: grid;
|
||||
grid-template-columns: repeat(4, 1fr);
|
||||
grid-gap: 20rpx;
|
||||
.NewsPlus {
|
||||
// 一行四个
|
||||
display: grid;
|
||||
grid-template-columns: repeat(4, 1fr);
|
||||
grid-gap: 20rpx;
|
||||
|
||||
.imageBox {
|
||||
background-color: #fff;
|
||||
border-radius: 20rpx;
|
||||
}
|
||||
.imageBox {
|
||||
background-color: #fff;
|
||||
border-radius: 20rpx;
|
||||
}
|
||||
}
|
||||
|
||||
.jy-popup {
|
||||
.jy-popup {
|
||||
width: 100%;
|
||||
border-radius: 20px 20px 0px 0px;
|
||||
|
||||
.title {
|
||||
width: 100%;
|
||||
border-radius: 20px 20px 0px 0px;
|
||||
|
||||
.title {
|
||||
width: 100%;
|
||||
display: flex;
|
||||
justify-content: center;
|
||||
align-items: center;
|
||||
padding: 20rpx 0;
|
||||
// 底部边框显示
|
||||
color: #3D3D3D;
|
||||
font-size: 32rpx;
|
||||
}
|
||||
|
||||
.close-btn {
|
||||
position: absolute;
|
||||
top: 40rpx;
|
||||
right: 40rpx;
|
||||
height: 52rpx;
|
||||
line-height: 52rpx;
|
||||
width: 52rpx;
|
||||
background: #D8D8D8;
|
||||
color: #999999;
|
||||
font-size: 30rpx;
|
||||
border-radius: 50%;
|
||||
display: flex;
|
||||
justify-content: center;
|
||||
align-items: center;
|
||||
transform: translate(50%, -50%);
|
||||
}
|
||||
|
||||
.input-view {
|
||||
// 只显示上下边框不显示左右
|
||||
border-top: 1px solid #E5E5E5;
|
||||
border-bottom: 1px solid #E5E5E5;
|
||||
padding: 20rpx;
|
||||
}
|
||||
|
||||
.easyinput {
|
||||
flex: 1;
|
||||
}
|
||||
|
||||
.time {
|
||||
padding: 24rpx 20rpx 0 20rpx;
|
||||
font-size: 22rpx;
|
||||
color: #3D3D3D;
|
||||
}
|
||||
display: flex;
|
||||
justify-content: center;
|
||||
align-items: center;
|
||||
padding: 20rpx 0;
|
||||
// 底部边框显示
|
||||
color: #3D3D3D;
|
||||
font-size: 32rpx;
|
||||
}
|
||||
|
||||
.close-btn {
|
||||
position: absolute;
|
||||
top: 40rpx;
|
||||
right: 40rpx;
|
||||
height: 52rpx;
|
||||
line-height: 52rpx;
|
||||
width: 52rpx;
|
||||
background: #D8D8D8;
|
||||
color: #999999;
|
||||
font-size: 30rpx;
|
||||
border-radius: 50%;
|
||||
display: flex;
|
||||
justify-content: center;
|
||||
align-items: center;
|
||||
transform: translate(50%, -50%);
|
||||
}
|
||||
|
||||
.input-view {
|
||||
// 只显示上下边框不显示左右
|
||||
border-top: 1px solid #E5E5E5;
|
||||
border-bottom: 1px solid #E5E5E5;
|
||||
padding: 20rpx;
|
||||
}
|
||||
|
||||
.easyinput {
|
||||
flex: 1;
|
||||
}
|
||||
|
||||
.time {
|
||||
padding: 24rpx 20rpx 0 20rpx;
|
||||
font-size: 22rpx;
|
||||
color: #3D3D3D;
|
||||
}
|
||||
}
|
||||
</style>
|
|
@ -0,0 +1,22 @@
|
|||
<script setup>
|
||||
|
||||
/**
|
||||
* 客服聊天界面商品列表
|
||||
*/
|
||||
|
||||
// 商品信息
|
||||
import JyCommodityInformation from '@/components/public/jy-commodity-information'
|
||||
|
||||
</script>
|
||||
|
||||
<template>
|
||||
<view class="appbw">
|
||||
<scroll-view scroll-y scroll-with-animation>
|
||||
<view v-for="(item, index) in 10">
|
||||
<JyCommodityInformation :showType="5"></JyCommodityInformation>
|
||||
</view>
|
||||
</scroll-view>
|
||||
</view>
|
||||
</template>
|
||||
|
||||
<style lang="scss" scoped></style>
|
|
@ -160,7 +160,6 @@
|
|||
</view>
|
||||
|
||||
<view class="listArea plr30 bfff">
|
||||
<!-- -->
|
||||
<view class="item ptb30 c333 f32" v-for="(item,index) in userList.data" :key="index" @click="handleUser(item)">
|
||||
<view class="rows">
|
||||
<view class="avatar fs0">
|
||||
|
|
|
@ -2,9 +2,9 @@ import {
|
|||
__commonJS
|
||||
} from "./chunk-TDUMLE5V.js";
|
||||
|
||||
// ../../../../document/九亿商城/jy/jiuyi2/node_modules/@tencentcloud/chat/index.js
|
||||
// ../../../../../桌面/jiuyiUniapp/jiuyi2/node_modules/@tencentcloud/chat/index.js
|
||||
var require_chat = __commonJS({
|
||||
"../../../../document/九亿商城/jy/jiuyi2/node_modules/@tencentcloud/chat/index.js"(exports, module) {
|
||||
"../../../../../桌面/jiuyiUniapp/jiuyi2/node_modules/@tencentcloud/chat/index.js"(exports, module) {
|
||||
!function(e, t) {
|
||||
"object" == typeof exports && "undefined" != typeof module ? module.exports = t() : "function" == typeof define && define.amd ? define(t) : (e = "undefined" != typeof globalThis ? globalThis : e || self).TencentCloudChat = t();
|
||||
}(exports, function() {
|
||||
|
|
|
@ -1,6 +1,6 @@
|
|||
import "./chunk-TDUMLE5V.js";
|
||||
|
||||
// ../../../../document/九亿商城/jy/jiuyi2/node_modules/@tencentcloud/chat/modules/group-module.js
|
||||
// ../../../../../桌面/jiuyiUniapp/jiuyi2/node_modules/@tencentcloud/chat/modules/group-module.js
|
||||
var e = 2;
|
||||
var t = 4;
|
||||
var s = 10;
|
||||
|
|
File diff suppressed because one or more lines are too long
|
@ -1,31 +1,43 @@
|
|||
{
|
||||
"hash": "7c477afd",
|
||||
"configHash": "4d944da7",
|
||||
"hash": "43cb4a2a",
|
||||
"configHash": "e44a9f0c",
|
||||
"lockfileHash": "6e88141a",
|
||||
"browserHash": "dfaf7bb6",
|
||||
"browserHash": "4cf13013",
|
||||
"optimized": {
|
||||
"@tencentcloud/chat": {
|
||||
"src": "../../../../../node_modules/@tencentcloud/chat/index.js",
|
||||
"file": "@tencentcloud_chat.js",
|
||||
"fileHash": "1983df83",
|
||||
"fileHash": "5fdcda29",
|
||||
"needsInterop": true
|
||||
},
|
||||
"@tencentcloud/chat/modules/group-module.js": {
|
||||
"src": "../../../../../node_modules/@tencentcloud/chat/modules/group-module.js",
|
||||
"file": "@tencentcloud_chat_modules_group-module__js.js",
|
||||
"fileHash": "2f88463b",
|
||||
"fileHash": "4785ca3f",
|
||||
"needsInterop": false
|
||||
},
|
||||
"tim-upload-plugin": {
|
||||
"src": "../../../../../node_modules/tim-upload-plugin/index.js",
|
||||
"file": "tim-upload-plugin.js",
|
||||
"fileHash": "a30d877c",
|
||||
"fileHash": "34d0cc3a",
|
||||
"needsInterop": true
|
||||
},
|
||||
"js-pinyin": {
|
||||
"src": "../../../../../node_modules/js-pinyin/index.js",
|
||||
"file": "js-pinyin.js",
|
||||
"fileHash": "382f4499",
|
||||
"needsInterop": true
|
||||
},
|
||||
"lodash": {
|
||||
"src": "../../../../../node_modules/lodash/lodash.js",
|
||||
"file": "lodash.js",
|
||||
"fileHash": "03910375",
|
||||
"needsInterop": true
|
||||
},
|
||||
"crypto-js": {
|
||||
"src": "../../../../../node_modules/crypto-js/index.js",
|
||||
"file": "crypto-js.js",
|
||||
"fileHash": "788aa994",
|
||||
"fileHash": "ae9ab40a",
|
||||
"needsInterop": true
|
||||
}
|
||||
},
|
||||
|
|
|
@ -16,9 +16,9 @@ var require_crypto = __commonJS({
|
|||
}
|
||||
});
|
||||
|
||||
// ../../../../document/九亿商城/jy/jiuyi2/node_modules/crypto-js/core.js
|
||||
// ../../../../../桌面/jiuyiUniapp/jiuyi2/node_modules/crypto-js/core.js
|
||||
var require_core = __commonJS({
|
||||
"../../../../document/九亿商城/jy/jiuyi2/node_modules/crypto-js/core.js"(exports, module) {
|
||||
"../../../../../桌面/jiuyiUniapp/jiuyi2/node_modules/crypto-js/core.js"(exports, module) {
|
||||
(function(root, factory) {
|
||||
if (typeof exports === "object") {
|
||||
module.exports = exports = factory();
|
||||
|
@ -624,9 +624,9 @@ var require_core = __commonJS({
|
|||
}
|
||||
});
|
||||
|
||||
// ../../../../document/九亿商城/jy/jiuyi2/node_modules/crypto-js/x64-core.js
|
||||
// ../../../../../桌面/jiuyiUniapp/jiuyi2/node_modules/crypto-js/x64-core.js
|
||||
var require_x64_core = __commonJS({
|
||||
"../../../../document/九亿商城/jy/jiuyi2/node_modules/crypto-js/x64-core.js"(exports, module) {
|
||||
"../../../../../桌面/jiuyiUniapp/jiuyi2/node_modules/crypto-js/x64-core.js"(exports, module) {
|
||||
(function(root, factory) {
|
||||
if (typeof exports === "object") {
|
||||
module.exports = exports = factory(require_core());
|
||||
|
@ -881,9 +881,9 @@ var require_x64_core = __commonJS({
|
|||
}
|
||||
});
|
||||
|
||||
// ../../../../document/九亿商城/jy/jiuyi2/node_modules/crypto-js/lib-typedarrays.js
|
||||
// ../../../../../桌面/jiuyiUniapp/jiuyi2/node_modules/crypto-js/lib-typedarrays.js
|
||||
var require_lib_typedarrays = __commonJS({
|
||||
"../../../../document/九亿商城/jy/jiuyi2/node_modules/crypto-js/lib-typedarrays.js"(exports, module) {
|
||||
"../../../../../桌面/jiuyiUniapp/jiuyi2/node_modules/crypto-js/lib-typedarrays.js"(exports, module) {
|
||||
(function(root, factory) {
|
||||
if (typeof exports === "object") {
|
||||
module.exports = exports = factory(require_core());
|
||||
|
@ -926,9 +926,9 @@ var require_lib_typedarrays = __commonJS({
|
|||
}
|
||||
});
|
||||
|
||||
// ../../../../document/九亿商城/jy/jiuyi2/node_modules/crypto-js/enc-utf16.js
|
||||
// ../../../../../桌面/jiuyiUniapp/jiuyi2/node_modules/crypto-js/enc-utf16.js
|
||||
var require_enc_utf16 = __commonJS({
|
||||
"../../../../document/九亿商城/jy/jiuyi2/node_modules/crypto-js/enc-utf16.js"(exports, module) {
|
||||
"../../../../../桌面/jiuyiUniapp/jiuyi2/node_modules/crypto-js/enc-utf16.js"(exports, module) {
|
||||
(function(root, factory) {
|
||||
if (typeof exports === "object") {
|
||||
module.exports = exports = factory(require_core());
|
||||
|
@ -1044,9 +1044,9 @@ var require_enc_utf16 = __commonJS({
|
|||
}
|
||||
});
|
||||
|
||||
// ../../../../document/九亿商城/jy/jiuyi2/node_modules/crypto-js/enc-base64.js
|
||||
// ../../../../../桌面/jiuyiUniapp/jiuyi2/node_modules/crypto-js/enc-base64.js
|
||||
var require_enc_base64 = __commonJS({
|
||||
"../../../../document/九亿商城/jy/jiuyi2/node_modules/crypto-js/enc-base64.js"(exports, module) {
|
||||
"../../../../../桌面/jiuyiUniapp/jiuyi2/node_modules/crypto-js/enc-base64.js"(exports, module) {
|
||||
(function(root, factory) {
|
||||
if (typeof exports === "object") {
|
||||
module.exports = exports = factory(require_core());
|
||||
|
@ -1152,9 +1152,9 @@ var require_enc_base64 = __commonJS({
|
|||
}
|
||||
});
|
||||
|
||||
// ../../../../document/九亿商城/jy/jiuyi2/node_modules/crypto-js/enc-base64url.js
|
||||
// ../../../../../桌面/jiuyiUniapp/jiuyi2/node_modules/crypto-js/enc-base64url.js
|
||||
var require_enc_base64url = __commonJS({
|
||||
"../../../../document/九亿商城/jy/jiuyi2/node_modules/crypto-js/enc-base64url.js"(exports, module) {
|
||||
"../../../../../桌面/jiuyiUniapp/jiuyi2/node_modules/crypto-js/enc-base64url.js"(exports, module) {
|
||||
(function(root, factory) {
|
||||
if (typeof exports === "object") {
|
||||
module.exports = exports = factory(require_core());
|
||||
|
@ -1271,9 +1271,9 @@ var require_enc_base64url = __commonJS({
|
|||
}
|
||||
});
|
||||
|
||||
// ../../../../document/九亿商城/jy/jiuyi2/node_modules/crypto-js/md5.js
|
||||
// ../../../../../桌面/jiuyiUniapp/jiuyi2/node_modules/crypto-js/md5.js
|
||||
var require_md5 = __commonJS({
|
||||
"../../../../document/九亿商城/jy/jiuyi2/node_modules/crypto-js/md5.js"(exports, module) {
|
||||
"../../../../../桌面/jiuyiUniapp/jiuyi2/node_modules/crypto-js/md5.js"(exports, module) {
|
||||
(function(root, factory) {
|
||||
if (typeof exports === "object") {
|
||||
module.exports = exports = factory(require_core());
|
||||
|
@ -1450,9 +1450,9 @@ var require_md5 = __commonJS({
|
|||
}
|
||||
});
|
||||
|
||||
// ../../../../document/九亿商城/jy/jiuyi2/node_modules/crypto-js/sha1.js
|
||||
// ../../../../../桌面/jiuyiUniapp/jiuyi2/node_modules/crypto-js/sha1.js
|
||||
var require_sha1 = __commonJS({
|
||||
"../../../../document/九亿商城/jy/jiuyi2/node_modules/crypto-js/sha1.js"(exports, module) {
|
||||
"../../../../../桌面/jiuyiUniapp/jiuyi2/node_modules/crypto-js/sha1.js"(exports, module) {
|
||||
(function(root, factory) {
|
||||
if (typeof exports === "object") {
|
||||
module.exports = exports = factory(require_core());
|
||||
|
@ -1541,9 +1541,9 @@ var require_sha1 = __commonJS({
|
|||
}
|
||||
});
|
||||
|
||||
// ../../../../document/九亿商城/jy/jiuyi2/node_modules/crypto-js/sha256.js
|
||||
// ../../../../../桌面/jiuyiUniapp/jiuyi2/node_modules/crypto-js/sha256.js
|
||||
var require_sha256 = __commonJS({
|
||||
"../../../../document/九亿商城/jy/jiuyi2/node_modules/crypto-js/sha256.js"(exports, module) {
|
||||
"../../../../../桌面/jiuyiUniapp/jiuyi2/node_modules/crypto-js/sha256.js"(exports, module) {
|
||||
(function(root, factory) {
|
||||
if (typeof exports === "object") {
|
||||
module.exports = exports = factory(require_core());
|
||||
|
@ -1662,9 +1662,9 @@ var require_sha256 = __commonJS({
|
|||
}
|
||||
});
|
||||
|
||||
// ../../../../document/九亿商城/jy/jiuyi2/node_modules/crypto-js/sha224.js
|
||||
// ../../../../../桌面/jiuyiUniapp/jiuyi2/node_modules/crypto-js/sha224.js
|
||||
var require_sha224 = __commonJS({
|
||||
"../../../../document/九亿商城/jy/jiuyi2/node_modules/crypto-js/sha224.js"(exports, module) {
|
||||
"../../../../../桌面/jiuyiUniapp/jiuyi2/node_modules/crypto-js/sha224.js"(exports, module) {
|
||||
(function(root, factory, undef) {
|
||||
if (typeof exports === "object") {
|
||||
module.exports = exports = factory(require_core(), require_sha256());
|
||||
|
@ -1707,9 +1707,9 @@ var require_sha224 = __commonJS({
|
|||
}
|
||||
});
|
||||
|
||||
// ../../../../document/九亿商城/jy/jiuyi2/node_modules/crypto-js/sha512.js
|
||||
// ../../../../../桌面/jiuyiUniapp/jiuyi2/node_modules/crypto-js/sha512.js
|
||||
var require_sha512 = __commonJS({
|
||||
"../../../../document/九亿商城/jy/jiuyi2/node_modules/crypto-js/sha512.js"(exports, module) {
|
||||
"../../../../../桌面/jiuyiUniapp/jiuyi2/node_modules/crypto-js/sha512.js"(exports, module) {
|
||||
(function(root, factory, undef) {
|
||||
if (typeof exports === "object") {
|
||||
module.exports = exports = factory(require_core(), require_x64_core());
|
||||
|
@ -1989,9 +1989,9 @@ var require_sha512 = __commonJS({
|
|||
}
|
||||
});
|
||||
|
||||
// ../../../../document/九亿商城/jy/jiuyi2/node_modules/crypto-js/sha384.js
|
||||
// ../../../../../桌面/jiuyiUniapp/jiuyi2/node_modules/crypto-js/sha384.js
|
||||
var require_sha384 = __commonJS({
|
||||
"../../../../document/九亿商城/jy/jiuyi2/node_modules/crypto-js/sha384.js"(exports, module) {
|
||||
"../../../../../桌面/jiuyiUniapp/jiuyi2/node_modules/crypto-js/sha384.js"(exports, module) {
|
||||
(function(root, factory, undef) {
|
||||
if (typeof exports === "object") {
|
||||
module.exports = exports = factory(require_core(), require_x64_core(), require_sha512());
|
||||
|
@ -2035,9 +2035,9 @@ var require_sha384 = __commonJS({
|
|||
}
|
||||
});
|
||||
|
||||
// ../../../../document/九亿商城/jy/jiuyi2/node_modules/crypto-js/sha3.js
|
||||
// ../../../../../桌面/jiuyiUniapp/jiuyi2/node_modules/crypto-js/sha3.js
|
||||
var require_sha3 = __commonJS({
|
||||
"../../../../document/九亿商城/jy/jiuyi2/node_modules/crypto-js/sha3.js"(exports, module) {
|
||||
"../../../../../桌面/jiuyiUniapp/jiuyi2/node_modules/crypto-js/sha3.js"(exports, module) {
|
||||
(function(root, factory, undef) {
|
||||
if (typeof exports === "object") {
|
||||
module.exports = exports = factory(require_core(), require_x64_core());
|
||||
|
@ -2237,9 +2237,9 @@ var require_sha3 = __commonJS({
|
|||
}
|
||||
});
|
||||
|
||||
// ../../../../document/九亿商城/jy/jiuyi2/node_modules/crypto-js/ripemd160.js
|
||||
// ../../../../../桌面/jiuyiUniapp/jiuyi2/node_modules/crypto-js/ripemd160.js
|
||||
var require_ripemd160 = __commonJS({
|
||||
"../../../../document/九亿商城/jy/jiuyi2/node_modules/crypto-js/ripemd160.js"(exports, module) {
|
||||
"../../../../../桌面/jiuyiUniapp/jiuyi2/node_modules/crypto-js/ripemd160.js"(exports, module) {
|
||||
(function(root, factory) {
|
||||
if (typeof exports === "object") {
|
||||
module.exports = exports = factory(require_core());
|
||||
|
@ -2708,9 +2708,9 @@ var require_ripemd160 = __commonJS({
|
|||
}
|
||||
});
|
||||
|
||||
// ../../../../document/九亿商城/jy/jiuyi2/node_modules/crypto-js/hmac.js
|
||||
// ../../../../../桌面/jiuyiUniapp/jiuyi2/node_modules/crypto-js/hmac.js
|
||||
var require_hmac = __commonJS({
|
||||
"../../../../document/九亿商城/jy/jiuyi2/node_modules/crypto-js/hmac.js"(exports, module) {
|
||||
"../../../../../桌面/jiuyiUniapp/jiuyi2/node_modules/crypto-js/hmac.js"(exports, module) {
|
||||
(function(root, factory) {
|
||||
if (typeof exports === "object") {
|
||||
module.exports = exports = factory(require_core());
|
||||
|
@ -2815,9 +2815,9 @@ var require_hmac = __commonJS({
|
|||
}
|
||||
});
|
||||
|
||||
// ../../../../document/九亿商城/jy/jiuyi2/node_modules/crypto-js/pbkdf2.js
|
||||
// ../../../../../桌面/jiuyiUniapp/jiuyi2/node_modules/crypto-js/pbkdf2.js
|
||||
var require_pbkdf2 = __commonJS({
|
||||
"../../../../document/九亿商城/jy/jiuyi2/node_modules/crypto-js/pbkdf2.js"(exports, module) {
|
||||
"../../../../../桌面/jiuyiUniapp/jiuyi2/node_modules/crypto-js/pbkdf2.js"(exports, module) {
|
||||
(function(root, factory, undef) {
|
||||
if (typeof exports === "object") {
|
||||
module.exports = exports = factory(require_core(), require_sha256(), require_hmac());
|
||||
|
@ -2913,9 +2913,9 @@ var require_pbkdf2 = __commonJS({
|
|||
}
|
||||
});
|
||||
|
||||
// ../../../../document/九亿商城/jy/jiuyi2/node_modules/crypto-js/evpkdf.js
|
||||
// ../../../../../桌面/jiuyiUniapp/jiuyi2/node_modules/crypto-js/evpkdf.js
|
||||
var require_evpkdf = __commonJS({
|
||||
"../../../../document/九亿商城/jy/jiuyi2/node_modules/crypto-js/evpkdf.js"(exports, module) {
|
||||
"../../../../../桌面/jiuyiUniapp/jiuyi2/node_modules/crypto-js/evpkdf.js"(exports, module) {
|
||||
(function(root, factory, undef) {
|
||||
if (typeof exports === "object") {
|
||||
module.exports = exports = factory(require_core(), require_sha1(), require_hmac());
|
||||
|
@ -3004,9 +3004,9 @@ var require_evpkdf = __commonJS({
|
|||
}
|
||||
});
|
||||
|
||||
// ../../../../document/九亿商城/jy/jiuyi2/node_modules/crypto-js/cipher-core.js
|
||||
// ../../../../../桌面/jiuyiUniapp/jiuyi2/node_modules/crypto-js/cipher-core.js
|
||||
var require_cipher_core = __commonJS({
|
||||
"../../../../document/九亿商城/jy/jiuyi2/node_modules/crypto-js/cipher-core.js"(exports, module) {
|
||||
"../../../../../桌面/jiuyiUniapp/jiuyi2/node_modules/crypto-js/cipher-core.js"(exports, module) {
|
||||
(function(root, factory, undef) {
|
||||
if (typeof exports === "object") {
|
||||
module.exports = exports = factory(require_core(), require_evpkdf());
|
||||
|
@ -3648,9 +3648,9 @@ var require_cipher_core = __commonJS({
|
|||
}
|
||||
});
|
||||
|
||||
// ../../../../document/九亿商城/jy/jiuyi2/node_modules/crypto-js/mode-cfb.js
|
||||
// ../../../../../桌面/jiuyiUniapp/jiuyi2/node_modules/crypto-js/mode-cfb.js
|
||||
var require_mode_cfb = __commonJS({
|
||||
"../../../../document/九亿商城/jy/jiuyi2/node_modules/crypto-js/mode-cfb.js"(exports, module) {
|
||||
"../../../../../桌面/jiuyiUniapp/jiuyi2/node_modules/crypto-js/mode-cfb.js"(exports, module) {
|
||||
(function(root, factory, undef) {
|
||||
if (typeof exports === "object") {
|
||||
module.exports = exports = factory(require_core(), require_cipher_core());
|
||||
|
@ -3700,9 +3700,9 @@ var require_mode_cfb = __commonJS({
|
|||
}
|
||||
});
|
||||
|
||||
// ../../../../document/九亿商城/jy/jiuyi2/node_modules/crypto-js/mode-ctr.js
|
||||
// ../../../../../桌面/jiuyiUniapp/jiuyi2/node_modules/crypto-js/mode-ctr.js
|
||||
var require_mode_ctr = __commonJS({
|
||||
"../../../../document/九亿商城/jy/jiuyi2/node_modules/crypto-js/mode-ctr.js"(exports, module) {
|
||||
"../../../../../桌面/jiuyiUniapp/jiuyi2/node_modules/crypto-js/mode-ctr.js"(exports, module) {
|
||||
(function(root, factory, undef) {
|
||||
if (typeof exports === "object") {
|
||||
module.exports = exports = factory(require_core(), require_cipher_core());
|
||||
|
@ -3740,9 +3740,9 @@ var require_mode_ctr = __commonJS({
|
|||
}
|
||||
});
|
||||
|
||||
// ../../../../document/九亿商城/jy/jiuyi2/node_modules/crypto-js/mode-ctr-gladman.js
|
||||
// ../../../../../桌面/jiuyiUniapp/jiuyi2/node_modules/crypto-js/mode-ctr-gladman.js
|
||||
var require_mode_ctr_gladman = __commonJS({
|
||||
"../../../../document/九亿商城/jy/jiuyi2/node_modules/crypto-js/mode-ctr-gladman.js"(exports, module) {
|
||||
"../../../../../桌面/jiuyiUniapp/jiuyi2/node_modules/crypto-js/mode-ctr-gladman.js"(exports, module) {
|
||||
(function(root, factory, undef) {
|
||||
if (typeof exports === "object") {
|
||||
module.exports = exports = factory(require_core(), require_cipher_core());
|
||||
|
@ -3815,9 +3815,9 @@ var require_mode_ctr_gladman = __commonJS({
|
|||
}
|
||||
});
|
||||
|
||||
// ../../../../document/九亿商城/jy/jiuyi2/node_modules/crypto-js/mode-ofb.js
|
||||
// ../../../../../桌面/jiuyiUniapp/jiuyi2/node_modules/crypto-js/mode-ofb.js
|
||||
var require_mode_ofb = __commonJS({
|
||||
"../../../../document/九亿商城/jy/jiuyi2/node_modules/crypto-js/mode-ofb.js"(exports, module) {
|
||||
"../../../../../桌面/jiuyiUniapp/jiuyi2/node_modules/crypto-js/mode-ofb.js"(exports, module) {
|
||||
(function(root, factory, undef) {
|
||||
if (typeof exports === "object") {
|
||||
module.exports = exports = factory(require_core(), require_cipher_core());
|
||||
|
@ -3853,9 +3853,9 @@ var require_mode_ofb = __commonJS({
|
|||
}
|
||||
});
|
||||
|
||||
// ../../../../document/九亿商城/jy/jiuyi2/node_modules/crypto-js/mode-ecb.js
|
||||
// ../../../../../桌面/jiuyiUniapp/jiuyi2/node_modules/crypto-js/mode-ecb.js
|
||||
var require_mode_ecb = __commonJS({
|
||||
"../../../../document/九亿商城/jy/jiuyi2/node_modules/crypto-js/mode-ecb.js"(exports, module) {
|
||||
"../../../../../桌面/jiuyiUniapp/jiuyi2/node_modules/crypto-js/mode-ecb.js"(exports, module) {
|
||||
(function(root, factory, undef) {
|
||||
if (typeof exports === "object") {
|
||||
module.exports = exports = factory(require_core(), require_cipher_core());
|
||||
|
@ -3884,9 +3884,9 @@ var require_mode_ecb = __commonJS({
|
|||
}
|
||||
});
|
||||
|
||||
// ../../../../document/九亿商城/jy/jiuyi2/node_modules/crypto-js/pad-ansix923.js
|
||||
// ../../../../../桌面/jiuyiUniapp/jiuyi2/node_modules/crypto-js/pad-ansix923.js
|
||||
var require_pad_ansix923 = __commonJS({
|
||||
"../../../../document/九亿商城/jy/jiuyi2/node_modules/crypto-js/pad-ansix923.js"(exports, module) {
|
||||
"../../../../../桌面/jiuyiUniapp/jiuyi2/node_modules/crypto-js/pad-ansix923.js"(exports, module) {
|
||||
(function(root, factory, undef) {
|
||||
if (typeof exports === "object") {
|
||||
module.exports = exports = factory(require_core(), require_cipher_core());
|
||||
|
@ -3916,9 +3916,9 @@ var require_pad_ansix923 = __commonJS({
|
|||
}
|
||||
});
|
||||
|
||||
// ../../../../document/九亿商城/jy/jiuyi2/node_modules/crypto-js/pad-iso10126.js
|
||||
// ../../../../../桌面/jiuyiUniapp/jiuyi2/node_modules/crypto-js/pad-iso10126.js
|
||||
var require_pad_iso10126 = __commonJS({
|
||||
"../../../../document/九亿商城/jy/jiuyi2/node_modules/crypto-js/pad-iso10126.js"(exports, module) {
|
||||
"../../../../../桌面/jiuyiUniapp/jiuyi2/node_modules/crypto-js/pad-iso10126.js"(exports, module) {
|
||||
(function(root, factory, undef) {
|
||||
if (typeof exports === "object") {
|
||||
module.exports = exports = factory(require_core(), require_cipher_core());
|
||||
|
@ -3944,9 +3944,9 @@ var require_pad_iso10126 = __commonJS({
|
|||
}
|
||||
});
|
||||
|
||||
// ../../../../document/九亿商城/jy/jiuyi2/node_modules/crypto-js/pad-iso97971.js
|
||||
// ../../../../../桌面/jiuyiUniapp/jiuyi2/node_modules/crypto-js/pad-iso97971.js
|
||||
var require_pad_iso97971 = __commonJS({
|
||||
"../../../../document/九亿商城/jy/jiuyi2/node_modules/crypto-js/pad-iso97971.js"(exports, module) {
|
||||
"../../../../../桌面/jiuyiUniapp/jiuyi2/node_modules/crypto-js/pad-iso97971.js"(exports, module) {
|
||||
(function(root, factory, undef) {
|
||||
if (typeof exports === "object") {
|
||||
module.exports = exports = factory(require_core(), require_cipher_core());
|
||||
|
@ -3971,9 +3971,9 @@ var require_pad_iso97971 = __commonJS({
|
|||
}
|
||||
});
|
||||
|
||||
// ../../../../document/九亿商城/jy/jiuyi2/node_modules/crypto-js/pad-zeropadding.js
|
||||
// ../../../../../桌面/jiuyiUniapp/jiuyi2/node_modules/crypto-js/pad-zeropadding.js
|
||||
var require_pad_zeropadding = __commonJS({
|
||||
"../../../../document/九亿商城/jy/jiuyi2/node_modules/crypto-js/pad-zeropadding.js"(exports, module) {
|
||||
"../../../../../桌面/jiuyiUniapp/jiuyi2/node_modules/crypto-js/pad-zeropadding.js"(exports, module) {
|
||||
(function(root, factory, undef) {
|
||||
if (typeof exports === "object") {
|
||||
module.exports = exports = factory(require_core(), require_cipher_core());
|
||||
|
@ -4005,9 +4005,9 @@ var require_pad_zeropadding = __commonJS({
|
|||
}
|
||||
});
|
||||
|
||||
// ../../../../document/九亿商城/jy/jiuyi2/node_modules/crypto-js/pad-nopadding.js
|
||||
// ../../../../../桌面/jiuyiUniapp/jiuyi2/node_modules/crypto-js/pad-nopadding.js
|
||||
var require_pad_nopadding = __commonJS({
|
||||
"../../../../document/九亿商城/jy/jiuyi2/node_modules/crypto-js/pad-nopadding.js"(exports, module) {
|
||||
"../../../../../桌面/jiuyiUniapp/jiuyi2/node_modules/crypto-js/pad-nopadding.js"(exports, module) {
|
||||
(function(root, factory, undef) {
|
||||
if (typeof exports === "object") {
|
||||
module.exports = exports = factory(require_core(), require_cipher_core());
|
||||
|
@ -4028,9 +4028,9 @@ var require_pad_nopadding = __commonJS({
|
|||
}
|
||||
});
|
||||
|
||||
// ../../../../document/九亿商城/jy/jiuyi2/node_modules/crypto-js/format-hex.js
|
||||
// ../../../../../桌面/jiuyiUniapp/jiuyi2/node_modules/crypto-js/format-hex.js
|
||||
var require_format_hex = __commonJS({
|
||||
"../../../../document/九亿商城/jy/jiuyi2/node_modules/crypto-js/format-hex.js"(exports, module) {
|
||||
"../../../../../桌面/jiuyiUniapp/jiuyi2/node_modules/crypto-js/format-hex.js"(exports, module) {
|
||||
(function(root, factory, undef) {
|
||||
if (typeof exports === "object") {
|
||||
module.exports = exports = factory(require_core(), require_cipher_core());
|
||||
|
@ -4088,9 +4088,9 @@ var require_format_hex = __commonJS({
|
|||
}
|
||||
});
|
||||
|
||||
// ../../../../document/九亿商城/jy/jiuyi2/node_modules/crypto-js/aes.js
|
||||
// ../../../../../桌面/jiuyiUniapp/jiuyi2/node_modules/crypto-js/aes.js
|
||||
var require_aes = __commonJS({
|
||||
"../../../../document/九亿商城/jy/jiuyi2/node_modules/crypto-js/aes.js"(exports, module) {
|
||||
"../../../../../桌面/jiuyiUniapp/jiuyi2/node_modules/crypto-js/aes.js"(exports, module) {
|
||||
(function(root, factory, undef) {
|
||||
if (typeof exports === "object") {
|
||||
module.exports = exports = factory(require_core(), require_enc_base64(), require_md5(), require_evpkdf(), require_cipher_core());
|
||||
|
@ -4242,9 +4242,9 @@ var require_aes = __commonJS({
|
|||
}
|
||||
});
|
||||
|
||||
// ../../../../document/九亿商城/jy/jiuyi2/node_modules/crypto-js/tripledes.js
|
||||
// ../../../../../桌面/jiuyiUniapp/jiuyi2/node_modules/crypto-js/tripledes.js
|
||||
var require_tripledes = __commonJS({
|
||||
"../../../../document/九亿商城/jy/jiuyi2/node_modules/crypto-js/tripledes.js"(exports, module) {
|
||||
"../../../../../桌面/jiuyiUniapp/jiuyi2/node_modules/crypto-js/tripledes.js"(exports, module) {
|
||||
(function(root, factory, undef) {
|
||||
if (typeof exports === "object") {
|
||||
module.exports = exports = factory(require_core(), require_enc_base64(), require_md5(), require_evpkdf(), require_cipher_core());
|
||||
|
@ -5023,9 +5023,9 @@ var require_tripledes = __commonJS({
|
|||
}
|
||||
});
|
||||
|
||||
// ../../../../document/九亿商城/jy/jiuyi2/node_modules/crypto-js/rc4.js
|
||||
// ../../../../../桌面/jiuyiUniapp/jiuyi2/node_modules/crypto-js/rc4.js
|
||||
var require_rc4 = __commonJS({
|
||||
"../../../../document/九亿商城/jy/jiuyi2/node_modules/crypto-js/rc4.js"(exports, module) {
|
||||
"../../../../../桌面/jiuyiUniapp/jiuyi2/node_modules/crypto-js/rc4.js"(exports, module) {
|
||||
(function(root, factory, undef) {
|
||||
if (typeof exports === "object") {
|
||||
module.exports = exports = factory(require_core(), require_enc_base64(), require_md5(), require_evpkdf(), require_cipher_core());
|
||||
|
@ -5106,9 +5106,9 @@ var require_rc4 = __commonJS({
|
|||
}
|
||||
});
|
||||
|
||||
// ../../../../document/九亿商城/jy/jiuyi2/node_modules/crypto-js/rabbit.js
|
||||
// ../../../../../桌面/jiuyiUniapp/jiuyi2/node_modules/crypto-js/rabbit.js
|
||||
var require_rabbit = __commonJS({
|
||||
"../../../../document/九亿商城/jy/jiuyi2/node_modules/crypto-js/rabbit.js"(exports, module) {
|
||||
"../../../../../桌面/jiuyiUniapp/jiuyi2/node_modules/crypto-js/rabbit.js"(exports, module) {
|
||||
(function(root, factory, undef) {
|
||||
if (typeof exports === "object") {
|
||||
module.exports = exports = factory(require_core(), require_enc_base64(), require_md5(), require_evpkdf(), require_cipher_core());
|
||||
|
@ -5235,9 +5235,9 @@ var require_rabbit = __commonJS({
|
|||
}
|
||||
});
|
||||
|
||||
// ../../../../document/九亿商城/jy/jiuyi2/node_modules/crypto-js/rabbit-legacy.js
|
||||
// ../../../../../桌面/jiuyiUniapp/jiuyi2/node_modules/crypto-js/rabbit-legacy.js
|
||||
var require_rabbit_legacy = __commonJS({
|
||||
"../../../../document/九亿商城/jy/jiuyi2/node_modules/crypto-js/rabbit-legacy.js"(exports, module) {
|
||||
"../../../../../桌面/jiuyiUniapp/jiuyi2/node_modules/crypto-js/rabbit-legacy.js"(exports, module) {
|
||||
(function(root, factory, undef) {
|
||||
if (typeof exports === "object") {
|
||||
module.exports = exports = factory(require_core(), require_enc_base64(), require_md5(), require_evpkdf(), require_cipher_core());
|
||||
|
@ -5361,9 +5361,9 @@ var require_rabbit_legacy = __commonJS({
|
|||
}
|
||||
});
|
||||
|
||||
// ../../../../document/九亿商城/jy/jiuyi2/node_modules/crypto-js/blowfish.js
|
||||
// ../../../../../桌面/jiuyiUniapp/jiuyi2/node_modules/crypto-js/blowfish.js
|
||||
var require_blowfish = __commonJS({
|
||||
"../../../../document/九亿商城/jy/jiuyi2/node_modules/crypto-js/blowfish.js"(exports, module) {
|
||||
"../../../../../桌面/jiuyiUniapp/jiuyi2/node_modules/crypto-js/blowfish.js"(exports, module) {
|
||||
(function(root, factory, undef) {
|
||||
if (typeof exports === "object") {
|
||||
module.exports = exports = factory(require_core(), require_enc_base64(), require_md5(), require_evpkdf(), require_cipher_core());
|
||||
|
@ -6550,9 +6550,9 @@ var require_blowfish = __commonJS({
|
|||
}
|
||||
});
|
||||
|
||||
// ../../../../document/九亿商城/jy/jiuyi2/node_modules/crypto-js/index.js
|
||||
// ../../../../../桌面/jiuyiUniapp/jiuyi2/node_modules/crypto-js/index.js
|
||||
var require_crypto_js = __commonJS({
|
||||
"../../../../document/九亿商城/jy/jiuyi2/node_modules/crypto-js/index.js"(exports, module) {
|
||||
"../../../../../桌面/jiuyiUniapp/jiuyi2/node_modules/crypto-js/index.js"(exports, module) {
|
||||
(function(root, factory, undef) {
|
||||
if (typeof exports === "object") {
|
||||
module.exports = exports = factory(require_core(), require_x64_core(), require_lib_typedarrays(), require_enc_utf16(), require_enc_base64(), require_enc_base64url(), require_md5(), require_sha1(), require_sha256(), require_sha224(), require_sha512(), require_sha384(), require_sha3(), require_ripemd160(), require_hmac(), require_pbkdf2(), require_evpkdf(), require_cipher_core(), require_mode_cfb(), require_mode_ctr(), require_mode_ctr_gladman(), require_mode_ofb(), require_mode_ecb(), require_pad_ansix923(), require_pad_iso10126(), require_pad_iso97971(), require_pad_zeropadding(), require_pad_nopadding(), require_format_hex(), require_aes(), require_tripledes(), require_rc4(), require_rabbit(), require_rabbit_legacy(), require_blowfish());
|
||||
|
|
File diff suppressed because one or more lines are too long
|
@ -2,9 +2,9 @@ import {
|
|||
__commonJS
|
||||
} from "./chunk-TDUMLE5V.js";
|
||||
|
||||
// ../../../../document/九亿商城/jy/jiuyi2/node_modules/tim-upload-plugin/index.js
|
||||
// ../../../../../桌面/jiuyiUniapp/jiuyi2/node_modules/tim-upload-plugin/index.js
|
||||
var require_tim_upload_plugin = __commonJS({
|
||||
"../../../../document/九亿商城/jy/jiuyi2/node_modules/tim-upload-plugin/index.js"(exports, module) {
|
||||
"../../../../../桌面/jiuyiUniapp/jiuyi2/node_modules/tim-upload-plugin/index.js"(exports, module) {
|
||||
!function(e, t) {
|
||||
"object" == typeof exports && "undefined" != typeof module ? module.exports = t() : "function" == typeof define && define.amd ? define(t) : (e = e || self).TIMUploadPlugin = t();
|
||||
}(exports, function() {
|
||||
|
|
File diff suppressed because one or more lines are too long
|
@ -4,7 +4,7 @@ import {
|
|||
import uni from '@dcloudio/vite-plugin-uni';
|
||||
|
||||
// let target = 'http://91f.xyz:8080'
|
||||
let target = 'http://d5si5v.natappfree.cc'
|
||||
let target = 'https://b433d23.r24.cpolar.top/'
|
||||
|
||||
|
||||
export default defineConfig({
|
||||
|
|
|
@ -18,10 +18,10 @@ export default {
|
|||
value: userinfo
|
||||
})
|
||||
|
||||
// 腾讯im登录
|
||||
util.getUserinfo().then(rs => {
|
||||
util.loginTencent(userinfo)
|
||||
})
|
||||
// // 腾讯im登录
|
||||
// util.getUserinfo().then(rs => {
|
||||
// util.loginTencent(userinfo)
|
||||
// })
|
||||
} else {
|
||||
// 如果未登录,跳转到登录页面
|
||||
uni.redirectTo({
|
||||
|
|
|
@ -7,10 +7,11 @@ const mine = {
|
|||
* 获取用户信息
|
||||
* @param {Object} param
|
||||
*/
|
||||
getUserinfo(param) {
|
||||
getUserinfo(query) {
|
||||
return util.request({
|
||||
url: `/user/getUserData`,
|
||||
url: `/user/MCustomerService/getInfo`,
|
||||
method: 'GET',
|
||||
query: query,
|
||||
})
|
||||
},
|
||||
|
||||
|
|
|
@ -207,6 +207,17 @@ export const news = {
|
|||
method: 'POST'
|
||||
})
|
||||
},
|
||||
|
||||
|
||||
// 获取消息列表
|
||||
getMessageList(param) {
|
||||
return util.request({
|
||||
url: `/user/chat/getMessageList`,
|
||||
query: param.query,
|
||||
data: param.data,
|
||||
method: 'GET'
|
||||
})
|
||||
},
|
||||
}
|
||||
|
||||
export default news
|
|
@ -4,8 +4,9 @@ const config = {
|
|||
// #ifdef H5
|
||||
host: 'http://localhost:5173',
|
||||
// #endif
|
||||
// #ifndef H5
|
||||
host: 'https://1a4b9ed1.r24.cpolar.top/',
|
||||
// #ifndef H5
|
||||
// host: 'http://91f.xyz:8080',
|
||||
host: 'https://b433d23.r24.cpolar.top/',
|
||||
// #endif
|
||||
// 支付方式配置
|
||||
payType: {
|
||||
|
|
|
@ -1411,27 +1411,22 @@ const util = {
|
|||
*/
|
||||
finalLogin(param, cb) {
|
||||
// 登录令牌
|
||||
const token = param.data
|
||||
const token = param.data.token
|
||||
// 缓存token
|
||||
uni.setStorageSync('token', token)
|
||||
|
||||
// 开启加载
|
||||
uni.showLoading({
|
||||
mask: true
|
||||
// 缓存用户信息
|
||||
let userinfo = param.data.customerService;
|
||||
|
||||
uni.setStorageSync('userinfo', JSON.stringify(userinfo))
|
||||
|
||||
store.commit('setState', {
|
||||
key: 'userinfo',
|
||||
value: userinfo
|
||||
})
|
||||
|
||||
// 获取用户信息
|
||||
util.getUserinfo((userinfo) => {
|
||||
// 登录
|
||||
uni.$emit('login')
|
||||
|
||||
setTimeout(() => {
|
||||
uni.reLaunch({
|
||||
url: '/pages/index/index'
|
||||
})
|
||||
}, 500)
|
||||
//
|
||||
cb ? cb() : ''
|
||||
uni.reLaunch({
|
||||
url: '/pages/index/index'
|
||||
})
|
||||
},
|
||||
|
||||
|
@ -1466,34 +1461,34 @@ const util = {
|
|||
})
|
||||
},
|
||||
|
||||
/**
|
||||
* 获取用户信息
|
||||
* @param {Function} cb 回调函数
|
||||
*/
|
||||
getUserinfo(cb) {
|
||||
return new Promise(reslove => {
|
||||
// 请求接口
|
||||
api.mine.getUserinfo().then(rs => {
|
||||
if (rs.code === 200) {
|
||||
reslove(rs.data)
|
||||
const userinfo = rs.data
|
||||
// 如果开启了青少年模式
|
||||
if (userinfo.teenTime) util.getTeenMode(userinfo.teenTime)
|
||||
// 提交
|
||||
store.commit('setState', {
|
||||
key: 'userinfo',
|
||||
value: userinfo
|
||||
})
|
||||
// 用户信息
|
||||
uni.setStorageSync('userinfo', userinfo)
|
||||
cb ? cb(userinfo) : ''
|
||||
}
|
||||
}).finally(() => {
|
||||
// 关闭加载
|
||||
uni.hideLoading()
|
||||
})
|
||||
})
|
||||
},
|
||||
// /**
|
||||
// * 获取用户信息
|
||||
// * @param {Function} cb 回调函数
|
||||
// */
|
||||
// getUserinfo(cb) {
|
||||
// return new Promise(reslove => {
|
||||
// // 请求接口
|
||||
// api.mine.getUserinfo().then(rs => {
|
||||
// if (rs.code === 200) {
|
||||
// reslove(rs.data)
|
||||
// const userinfo = rs.data
|
||||
// // 如果开启了青少年模式
|
||||
// if (userinfo.teenTime) util.getTeenMode(userinfo.teenTime)
|
||||
// // 提交
|
||||
// store.commit('setState', {
|
||||
// key: 'userinfo',
|
||||
// value: userinfo
|
||||
// })
|
||||
// // 用户信息
|
||||
// uni.setStorageSync('userinfo', userinfo)
|
||||
// cb ? cb(userinfo) : ''
|
||||
// }
|
||||
// }).finally(() => {
|
||||
// // 关闭加载
|
||||
// uni.hideLoading()
|
||||
// })
|
||||
// })
|
||||
// },
|
||||
|
||||
// 青少年模式
|
||||
getTeenMode(teenTime) {
|
||||
|
@ -1562,6 +1557,14 @@ const util = {
|
|||
}).catch(rs => {
|
||||
console.log('tim logout error:', rs);
|
||||
});
|
||||
|
||||
api.login.userLoginOut().then(rs => {
|
||||
setTimeout(() => {
|
||||
uni.navigateTo({
|
||||
url: '/pages/login/login',
|
||||
})
|
||||
}, 500)
|
||||
})
|
||||
}
|
||||
|
||||
// 把vuex的值改成未登录的状态
|
||||
|
|
|
@ -1,61 +1,125 @@
|
|||
<script setup>
|
||||
// 消息首页
|
||||
// 消息首页
|
||||
|
||||
import {
|
||||
onMounted,
|
||||
ref,
|
||||
reactive,
|
||||
getCurrentInstance,
|
||||
} from 'vue';
|
||||
import {
|
||||
onLoad,
|
||||
onReady,
|
||||
onHide,
|
||||
onPullDownRefresh,
|
||||
onReachBottom,
|
||||
} from '@dcloudio/uni-app'
|
||||
// 路由
|
||||
import util from '@/common/js/util.js'
|
||||
import api from '@/api/index.js'
|
||||
import {
|
||||
onMounted, onUnmounted,
|
||||
ref,
|
||||
reactive,
|
||||
getCurrentInstance,
|
||||
} from 'vue';
|
||||
import {
|
||||
onLoad,
|
||||
onReady,
|
||||
onHide,
|
||||
onPullDownRefresh,
|
||||
onReachBottom,
|
||||
} from '@dcloudio/uni-app'
|
||||
// 路由
|
||||
import util from '@/common/js/util.js'
|
||||
|
||||
const chatList = reactive([{
|
||||
id: 1,
|
||||
avatar: 'https://p3-flow-imagex-sign.byteimg.com/user-avatar/9f4488a87a17f6f31b9716331e14fe26~tplv-a9rns2rl98-icon-tiny.jpeg?rk3s=98c978ad&x-expires=1740537084&x-signature=OrjX8tZaafN4XJE2o8QzZDs3Q20%3D',
|
||||
name: '客户 A',
|
||||
lastMessage: '您好,商品什么时候发货?',
|
||||
dot: 1,
|
||||
},
|
||||
{
|
||||
id: 2,
|
||||
avatar: 'https://p3-flow-imagex-sign.byteimg.com/user-avatar/9f4488a87a17f6f31b9716331e14fe26~tplv-a9rns2rl98-icon-tiny.jpeg?rk3s=98c978ad&x-expires=1740537084&x-signature=OrjX8tZaafN4XJE2o8QzZDs3Q20%3D',
|
||||
name: '客户 B',
|
||||
lastMessage: '这个商品有优惠吗?',
|
||||
dot: '',
|
||||
const chatList = reactive([{
|
||||
id: 1,
|
||||
avatar: 'https://p3-flow-imagex-sign.byteimg.com/user-avatar/9f4488a87a17f6f31b9716331e14fe26~tplv-a9rns2rl98-icon-tiny.jpeg?rk3s=98c978ad&x-expires=1740537084&x-signature=OrjX8tZaafN4XJE2o8QzZDs3Q20%3D',
|
||||
name: '客户 A',
|
||||
lastMessage: '您好,商品什么时候发货?',
|
||||
dot: 1,
|
||||
},
|
||||
{
|
||||
id: 2,
|
||||
avatar: 'https://p3-flow-imagex-sign.byteimg.com/user-avatar/9f4488a87a17f6f31b9716331e14fe26~tplv-a9rns2rl98-icon-tiny.jpeg?rk3s=98c978ad&x-expires=1740537084&x-signature=OrjX8tZaafN4XJE2o8QzZDs3Q20%3D',
|
||||
name: '客户 B',
|
||||
lastMessage: '这个商品有优惠吗?',
|
||||
dot: '',
|
||||
}
|
||||
])
|
||||
|
||||
|
||||
// 用户信息
|
||||
const userinfo = JSON.parse(uni.getStorageSync('userinfo'))
|
||||
|
||||
|
||||
console.log(userinfo);
|
||||
|
||||
|
||||
|
||||
onMounted(() => {
|
||||
getList()
|
||||
addListener()
|
||||
})
|
||||
|
||||
onUnmounted(() => {
|
||||
removeListener()
|
||||
})
|
||||
|
||||
// 开启监听消息
|
||||
function addListener() {
|
||||
let onMessageReceived = function (event) {
|
||||
getList()
|
||||
}
|
||||
|
||||
uni.$chat.on(TencentCloudChat.EVENT.CONVERSATION_LIST_UPDATED, onMessageReceived);
|
||||
}
|
||||
|
||||
// 移除监听
|
||||
function removeListener() {
|
||||
uni.$chat.on(TencentCloudChat.EVENT.CONVERSATION_LIST_UPDATED);
|
||||
}
|
||||
|
||||
// 获取消息列表
|
||||
function getList() {
|
||||
api.news.getMessageList({
|
||||
query: {
|
||||
userId: userinfo.serviceId,
|
||||
}
|
||||
])
|
||||
|
||||
|
||||
// // 用户信息
|
||||
// const userinfo = computed(() => {
|
||||
// return store.state.userinfo
|
||||
// })
|
||||
|
||||
/**
|
||||
* 去聊天
|
||||
* @param {Number} item 聊天对象
|
||||
*/
|
||||
function handleChat(item) {
|
||||
//
|
||||
}
|
||||
|
||||
/**
|
||||
* 跳转
|
||||
* @param {String} url 路由地址
|
||||
*/
|
||||
function link(url) {
|
||||
uni.navigateTo({
|
||||
url,
|
||||
}).then(rs => {
|
||||
if (rs.code == 200) {
|
||||
// list.data = handleList(rs.data);
|
||||
return
|
||||
}
|
||||
util.alert({
|
||||
content: rs.msg,
|
||||
showCancel: false,
|
||||
})
|
||||
}
|
||||
})
|
||||
}
|
||||
|
||||
|
||||
|
||||
|
||||
/**
|
||||
* 去聊天
|
||||
* @param {Number} item 聊天对象
|
||||
*/
|
||||
function handleChat(item) {
|
||||
//
|
||||
}
|
||||
|
||||
/**
|
||||
* 跳转
|
||||
* @param {String} url 路由地址
|
||||
*/
|
||||
function link(url) {
|
||||
uni.navigateTo({
|
||||
url,
|
||||
})
|
||||
}
|
||||
|
||||
|
||||
// 退出登录
|
||||
function handleLogout() {
|
||||
util.alert({
|
||||
content: '确认退出登录吗?',
|
||||
}).then(rs => {
|
||||
if (!rs.confirm) return
|
||||
|
||||
util.logout(() => {
|
||||
// #ifdef APP
|
||||
plus.runtime.restart()
|
||||
// #endif
|
||||
})
|
||||
})
|
||||
}
|
||||
</script>
|
||||
|
||||
<template>
|
||||
|
@ -69,18 +133,21 @@
|
|||
</view>
|
||||
|
||||
<view class="info f1 ml20">
|
||||
<view class="name c333 f34">客服小A</view>
|
||||
<view class="name c333 f34">{{ userinfo.serviceName }}</view>
|
||||
<view class="mt10 c666 f28">店铺客服</view>
|
||||
</view>
|
||||
</view>
|
||||
<view class="pr login-out">
|
||||
<view class="out-btn" @click="handleLogout">退出登录</view>
|
||||
</view>
|
||||
</view>
|
||||
|
||||
<!-- 商家订单 -->
|
||||
<view class="rows ptb30 plr20">
|
||||
<view class=" rows ptb30 plr20">
|
||||
<view class="">商家订单管理</view>
|
||||
<uni-icons type="right" />
|
||||
</view>
|
||||
|
||||
|
||||
<view class="list">
|
||||
<view class="item rows ptb20 plr20" v-for="(item, index) in chatList" :key="index"
|
||||
@click="handleChat(item)">
|
||||
|
@ -97,7 +164,7 @@
|
|||
<view class="rows">
|
||||
<view class="content mt10 c666 f24">{{ item.lastMessage }}</view>
|
||||
<view class="dot cfff f22">
|
||||
<view class="content" v-if="item.dot">{{item.dot}}</view>
|
||||
<view class="content" v-if="item.dot">{{ item.dot }}</view>
|
||||
</view>
|
||||
</view>
|
||||
</view>
|
||||
|
@ -107,33 +174,45 @@
|
|||
</template>
|
||||
|
||||
<style lang="scss" scoped>
|
||||
// 个人信息
|
||||
.header {
|
||||
.background {
|
||||
width: 100%;
|
||||
height: 100%;
|
||||
}
|
||||
// 个人信息
|
||||
.header {
|
||||
display: flex;
|
||||
justify-content: space-between;
|
||||
|
||||
.background {
|
||||
width: 100%;
|
||||
height: 100%;
|
||||
}
|
||||
|
||||
//
|
||||
.list {
|
||||
.item {
|
||||
border-top: 1rpx solid #eee;
|
||||
.login-out {
|
||||
display: table;
|
||||
|
||||
.dot {
|
||||
padding: 5rpx;
|
||||
border-radius: 100rpx;
|
||||
background-color: #f00;
|
||||
.out-btn {
|
||||
display: table-cell;
|
||||
vertical-align: middle;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
// 内容
|
||||
.content {
|
||||
display: flex;
|
||||
justify-content: center;
|
||||
align-items: center;
|
||||
width: 20rpx;
|
||||
height: 20rpx;
|
||||
}
|
||||
//
|
||||
.list {
|
||||
.item {
|
||||
border-top: 1rpx solid #eee;
|
||||
|
||||
.dot {
|
||||
padding: 5rpx;
|
||||
border-radius: 100rpx;
|
||||
background-color: #f00;
|
||||
|
||||
// 内容
|
||||
.content {
|
||||
display: flex;
|
||||
justify-content: center;
|
||||
align-items: center;
|
||||
width: 20rpx;
|
||||
height: 20rpx;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
</style>
|
|
@ -135,5 +135,4 @@ function handleLogin() {
|
|||
height: 200rpx;
|
||||
}
|
||||
}
|
||||
|
||||
</style>
|
|
@ -2,9 +2,9 @@ import {
|
|||
__commonJS
|
||||
} from "./chunk-TDUMLE5V.js";
|
||||
|
||||
// ../../../../document/九亿商城/jy/service/node_modules/@tencentcloud/chat/index.js
|
||||
// ../../../../../桌面/jiuyiUniapp/service/node_modules/@tencentcloud/chat/index.js
|
||||
var require_chat = __commonJS({
|
||||
"../../../../document/九亿商城/jy/service/node_modules/@tencentcloud/chat/index.js"(exports, module) {
|
||||
"../../../../../桌面/jiuyiUniapp/service/node_modules/@tencentcloud/chat/index.js"(exports, module) {
|
||||
!function(e, t) {
|
||||
"object" == typeof exports && "undefined" != typeof module ? module.exports = t() : "function" == typeof define && define.amd ? define(t) : (e = "undefined" != typeof globalThis ? globalThis : e || self).TencentCloudChat = t();
|
||||
}(exports, function() {
|
||||
|
|
|
@ -1,19 +1,19 @@
|
|||
{
|
||||
"hash": "a409d935",
|
||||
"configHash": "da5c2bdf",
|
||||
"lockfileHash": "7b6ef450",
|
||||
"browserHash": "8066c8cc",
|
||||
"hash": "983ba944",
|
||||
"configHash": "74c0c30e",
|
||||
"lockfileHash": "278dad13",
|
||||
"browserHash": "7f88594e",
|
||||
"optimized": {
|
||||
"@tencentcloud/chat": {
|
||||
"src": "../../../../../node_modules/@tencentcloud/chat/index.js",
|
||||
"file": "@tencentcloud_chat.js",
|
||||
"fileHash": "0e28df2d",
|
||||
"fileHash": "68cefafa",
|
||||
"needsInterop": true
|
||||
},
|
||||
"crypto-js": {
|
||||
"src": "../../../../../node_modules/crypto-js/index.js",
|
||||
"file": "crypto-js.js",
|
||||
"fileHash": "d3e1eda0",
|
||||
"fileHash": "d5371c8c",
|
||||
"needsInterop": true
|
||||
}
|
||||
},
|
||||
|
|
|
@ -16,9 +16,9 @@ var require_crypto = __commonJS({
|
|||
}
|
||||
});
|
||||
|
||||
// ../../../../document/九亿商城/jy/service/node_modules/crypto-js/core.js
|
||||
// ../../../../../桌面/jiuyiUniapp/service/node_modules/crypto-js/core.js
|
||||
var require_core = __commonJS({
|
||||
"../../../../document/九亿商城/jy/service/node_modules/crypto-js/core.js"(exports, module) {
|
||||
"../../../../../桌面/jiuyiUniapp/service/node_modules/crypto-js/core.js"(exports, module) {
|
||||
(function(root, factory) {
|
||||
if (typeof exports === "object") {
|
||||
module.exports = exports = factory();
|
||||
|
@ -624,9 +624,9 @@ var require_core = __commonJS({
|
|||
}
|
||||
});
|
||||
|
||||
// ../../../../document/九亿商城/jy/service/node_modules/crypto-js/x64-core.js
|
||||
// ../../../../../桌面/jiuyiUniapp/service/node_modules/crypto-js/x64-core.js
|
||||
var require_x64_core = __commonJS({
|
||||
"../../../../document/九亿商城/jy/service/node_modules/crypto-js/x64-core.js"(exports, module) {
|
||||
"../../../../../桌面/jiuyiUniapp/service/node_modules/crypto-js/x64-core.js"(exports, module) {
|
||||
(function(root, factory) {
|
||||
if (typeof exports === "object") {
|
||||
module.exports = exports = factory(require_core());
|
||||
|
@ -881,9 +881,9 @@ var require_x64_core = __commonJS({
|
|||
}
|
||||
});
|
||||
|
||||
// ../../../../document/九亿商城/jy/service/node_modules/crypto-js/lib-typedarrays.js
|
||||
// ../../../../../桌面/jiuyiUniapp/service/node_modules/crypto-js/lib-typedarrays.js
|
||||
var require_lib_typedarrays = __commonJS({
|
||||
"../../../../document/九亿商城/jy/service/node_modules/crypto-js/lib-typedarrays.js"(exports, module) {
|
||||
"../../../../../桌面/jiuyiUniapp/service/node_modules/crypto-js/lib-typedarrays.js"(exports, module) {
|
||||
(function(root, factory) {
|
||||
if (typeof exports === "object") {
|
||||
module.exports = exports = factory(require_core());
|
||||
|
@ -926,9 +926,9 @@ var require_lib_typedarrays = __commonJS({
|
|||
}
|
||||
});
|
||||
|
||||
// ../../../../document/九亿商城/jy/service/node_modules/crypto-js/enc-utf16.js
|
||||
// ../../../../../桌面/jiuyiUniapp/service/node_modules/crypto-js/enc-utf16.js
|
||||
var require_enc_utf16 = __commonJS({
|
||||
"../../../../document/九亿商城/jy/service/node_modules/crypto-js/enc-utf16.js"(exports, module) {
|
||||
"../../../../../桌面/jiuyiUniapp/service/node_modules/crypto-js/enc-utf16.js"(exports, module) {
|
||||
(function(root, factory) {
|
||||
if (typeof exports === "object") {
|
||||
module.exports = exports = factory(require_core());
|
||||
|
@ -1044,9 +1044,9 @@ var require_enc_utf16 = __commonJS({
|
|||
}
|
||||
});
|
||||
|
||||
// ../../../../document/九亿商城/jy/service/node_modules/crypto-js/enc-base64.js
|
||||
// ../../../../../桌面/jiuyiUniapp/service/node_modules/crypto-js/enc-base64.js
|
||||
var require_enc_base64 = __commonJS({
|
||||
"../../../../document/九亿商城/jy/service/node_modules/crypto-js/enc-base64.js"(exports, module) {
|
||||
"../../../../../桌面/jiuyiUniapp/service/node_modules/crypto-js/enc-base64.js"(exports, module) {
|
||||
(function(root, factory) {
|
||||
if (typeof exports === "object") {
|
||||
module.exports = exports = factory(require_core());
|
||||
|
@ -1152,9 +1152,9 @@ var require_enc_base64 = __commonJS({
|
|||
}
|
||||
});
|
||||
|
||||
// ../../../../document/九亿商城/jy/service/node_modules/crypto-js/enc-base64url.js
|
||||
// ../../../../../桌面/jiuyiUniapp/service/node_modules/crypto-js/enc-base64url.js
|
||||
var require_enc_base64url = __commonJS({
|
||||
"../../../../document/九亿商城/jy/service/node_modules/crypto-js/enc-base64url.js"(exports, module) {
|
||||
"../../../../../桌面/jiuyiUniapp/service/node_modules/crypto-js/enc-base64url.js"(exports, module) {
|
||||
(function(root, factory) {
|
||||
if (typeof exports === "object") {
|
||||
module.exports = exports = factory(require_core());
|
||||
|
@ -1271,9 +1271,9 @@ var require_enc_base64url = __commonJS({
|
|||
}
|
||||
});
|
||||
|
||||
// ../../../../document/九亿商城/jy/service/node_modules/crypto-js/md5.js
|
||||
// ../../../../../桌面/jiuyiUniapp/service/node_modules/crypto-js/md5.js
|
||||
var require_md5 = __commonJS({
|
||||
"../../../../document/九亿商城/jy/service/node_modules/crypto-js/md5.js"(exports, module) {
|
||||
"../../../../../桌面/jiuyiUniapp/service/node_modules/crypto-js/md5.js"(exports, module) {
|
||||
(function(root, factory) {
|
||||
if (typeof exports === "object") {
|
||||
module.exports = exports = factory(require_core());
|
||||
|
@ -1450,9 +1450,9 @@ var require_md5 = __commonJS({
|
|||
}
|
||||
});
|
||||
|
||||
// ../../../../document/九亿商城/jy/service/node_modules/crypto-js/sha1.js
|
||||
// ../../../../../桌面/jiuyiUniapp/service/node_modules/crypto-js/sha1.js
|
||||
var require_sha1 = __commonJS({
|
||||
"../../../../document/九亿商城/jy/service/node_modules/crypto-js/sha1.js"(exports, module) {
|
||||
"../../../../../桌面/jiuyiUniapp/service/node_modules/crypto-js/sha1.js"(exports, module) {
|
||||
(function(root, factory) {
|
||||
if (typeof exports === "object") {
|
||||
module.exports = exports = factory(require_core());
|
||||
|
@ -1541,9 +1541,9 @@ var require_sha1 = __commonJS({
|
|||
}
|
||||
});
|
||||
|
||||
// ../../../../document/九亿商城/jy/service/node_modules/crypto-js/sha256.js
|
||||
// ../../../../../桌面/jiuyiUniapp/service/node_modules/crypto-js/sha256.js
|
||||
var require_sha256 = __commonJS({
|
||||
"../../../../document/九亿商城/jy/service/node_modules/crypto-js/sha256.js"(exports, module) {
|
||||
"../../../../../桌面/jiuyiUniapp/service/node_modules/crypto-js/sha256.js"(exports, module) {
|
||||
(function(root, factory) {
|
||||
if (typeof exports === "object") {
|
||||
module.exports = exports = factory(require_core());
|
||||
|
@ -1662,9 +1662,9 @@ var require_sha256 = __commonJS({
|
|||
}
|
||||
});
|
||||
|
||||
// ../../../../document/九亿商城/jy/service/node_modules/crypto-js/sha224.js
|
||||
// ../../../../../桌面/jiuyiUniapp/service/node_modules/crypto-js/sha224.js
|
||||
var require_sha224 = __commonJS({
|
||||
"../../../../document/九亿商城/jy/service/node_modules/crypto-js/sha224.js"(exports, module) {
|
||||
"../../../../../桌面/jiuyiUniapp/service/node_modules/crypto-js/sha224.js"(exports, module) {
|
||||
(function(root, factory, undef) {
|
||||
if (typeof exports === "object") {
|
||||
module.exports = exports = factory(require_core(), require_sha256());
|
||||
|
@ -1707,9 +1707,9 @@ var require_sha224 = __commonJS({
|
|||
}
|
||||
});
|
||||
|
||||
// ../../../../document/九亿商城/jy/service/node_modules/crypto-js/sha512.js
|
||||
// ../../../../../桌面/jiuyiUniapp/service/node_modules/crypto-js/sha512.js
|
||||
var require_sha512 = __commonJS({
|
||||
"../../../../document/九亿商城/jy/service/node_modules/crypto-js/sha512.js"(exports, module) {
|
||||
"../../../../../桌面/jiuyiUniapp/service/node_modules/crypto-js/sha512.js"(exports, module) {
|
||||
(function(root, factory, undef) {
|
||||
if (typeof exports === "object") {
|
||||
module.exports = exports = factory(require_core(), require_x64_core());
|
||||
|
@ -1989,9 +1989,9 @@ var require_sha512 = __commonJS({
|
|||
}
|
||||
});
|
||||
|
||||
// ../../../../document/九亿商城/jy/service/node_modules/crypto-js/sha384.js
|
||||
// ../../../../../桌面/jiuyiUniapp/service/node_modules/crypto-js/sha384.js
|
||||
var require_sha384 = __commonJS({
|
||||
"../../../../document/九亿商城/jy/service/node_modules/crypto-js/sha384.js"(exports, module) {
|
||||
"../../../../../桌面/jiuyiUniapp/service/node_modules/crypto-js/sha384.js"(exports, module) {
|
||||
(function(root, factory, undef) {
|
||||
if (typeof exports === "object") {
|
||||
module.exports = exports = factory(require_core(), require_x64_core(), require_sha512());
|
||||
|
@ -2035,9 +2035,9 @@ var require_sha384 = __commonJS({
|
|||
}
|
||||
});
|
||||
|
||||
// ../../../../document/九亿商城/jy/service/node_modules/crypto-js/sha3.js
|
||||
// ../../../../../桌面/jiuyiUniapp/service/node_modules/crypto-js/sha3.js
|
||||
var require_sha3 = __commonJS({
|
||||
"../../../../document/九亿商城/jy/service/node_modules/crypto-js/sha3.js"(exports, module) {
|
||||
"../../../../../桌面/jiuyiUniapp/service/node_modules/crypto-js/sha3.js"(exports, module) {
|
||||
(function(root, factory, undef) {
|
||||
if (typeof exports === "object") {
|
||||
module.exports = exports = factory(require_core(), require_x64_core());
|
||||
|
@ -2237,9 +2237,9 @@ var require_sha3 = __commonJS({
|
|||
}
|
||||
});
|
||||
|
||||
// ../../../../document/九亿商城/jy/service/node_modules/crypto-js/ripemd160.js
|
||||
// ../../../../../桌面/jiuyiUniapp/service/node_modules/crypto-js/ripemd160.js
|
||||
var require_ripemd160 = __commonJS({
|
||||
"../../../../document/九亿商城/jy/service/node_modules/crypto-js/ripemd160.js"(exports, module) {
|
||||
"../../../../../桌面/jiuyiUniapp/service/node_modules/crypto-js/ripemd160.js"(exports, module) {
|
||||
(function(root, factory) {
|
||||
if (typeof exports === "object") {
|
||||
module.exports = exports = factory(require_core());
|
||||
|
@ -2708,9 +2708,9 @@ var require_ripemd160 = __commonJS({
|
|||
}
|
||||
});
|
||||
|
||||
// ../../../../document/九亿商城/jy/service/node_modules/crypto-js/hmac.js
|
||||
// ../../../../../桌面/jiuyiUniapp/service/node_modules/crypto-js/hmac.js
|
||||
var require_hmac = __commonJS({
|
||||
"../../../../document/九亿商城/jy/service/node_modules/crypto-js/hmac.js"(exports, module) {
|
||||
"../../../../../桌面/jiuyiUniapp/service/node_modules/crypto-js/hmac.js"(exports, module) {
|
||||
(function(root, factory) {
|
||||
if (typeof exports === "object") {
|
||||
module.exports = exports = factory(require_core());
|
||||
|
@ -2815,9 +2815,9 @@ var require_hmac = __commonJS({
|
|||
}
|
||||
});
|
||||
|
||||
// ../../../../document/九亿商城/jy/service/node_modules/crypto-js/pbkdf2.js
|
||||
// ../../../../../桌面/jiuyiUniapp/service/node_modules/crypto-js/pbkdf2.js
|
||||
var require_pbkdf2 = __commonJS({
|
||||
"../../../../document/九亿商城/jy/service/node_modules/crypto-js/pbkdf2.js"(exports, module) {
|
||||
"../../../../../桌面/jiuyiUniapp/service/node_modules/crypto-js/pbkdf2.js"(exports, module) {
|
||||
(function(root, factory, undef) {
|
||||
if (typeof exports === "object") {
|
||||
module.exports = exports = factory(require_core(), require_sha256(), require_hmac());
|
||||
|
@ -2913,9 +2913,9 @@ var require_pbkdf2 = __commonJS({
|
|||
}
|
||||
});
|
||||
|
||||
// ../../../../document/九亿商城/jy/service/node_modules/crypto-js/evpkdf.js
|
||||
// ../../../../../桌面/jiuyiUniapp/service/node_modules/crypto-js/evpkdf.js
|
||||
var require_evpkdf = __commonJS({
|
||||
"../../../../document/九亿商城/jy/service/node_modules/crypto-js/evpkdf.js"(exports, module) {
|
||||
"../../../../../桌面/jiuyiUniapp/service/node_modules/crypto-js/evpkdf.js"(exports, module) {
|
||||
(function(root, factory, undef) {
|
||||
if (typeof exports === "object") {
|
||||
module.exports = exports = factory(require_core(), require_sha1(), require_hmac());
|
||||
|
@ -3004,9 +3004,9 @@ var require_evpkdf = __commonJS({
|
|||
}
|
||||
});
|
||||
|
||||
// ../../../../document/九亿商城/jy/service/node_modules/crypto-js/cipher-core.js
|
||||
// ../../../../../桌面/jiuyiUniapp/service/node_modules/crypto-js/cipher-core.js
|
||||
var require_cipher_core = __commonJS({
|
||||
"../../../../document/九亿商城/jy/service/node_modules/crypto-js/cipher-core.js"(exports, module) {
|
||||
"../../../../../桌面/jiuyiUniapp/service/node_modules/crypto-js/cipher-core.js"(exports, module) {
|
||||
(function(root, factory, undef) {
|
||||
if (typeof exports === "object") {
|
||||
module.exports = exports = factory(require_core(), require_evpkdf());
|
||||
|
@ -3648,9 +3648,9 @@ var require_cipher_core = __commonJS({
|
|||
}
|
||||
});
|
||||
|
||||
// ../../../../document/九亿商城/jy/service/node_modules/crypto-js/mode-cfb.js
|
||||
// ../../../../../桌面/jiuyiUniapp/service/node_modules/crypto-js/mode-cfb.js
|
||||
var require_mode_cfb = __commonJS({
|
||||
"../../../../document/九亿商城/jy/service/node_modules/crypto-js/mode-cfb.js"(exports, module) {
|
||||
"../../../../../桌面/jiuyiUniapp/service/node_modules/crypto-js/mode-cfb.js"(exports, module) {
|
||||
(function(root, factory, undef) {
|
||||
if (typeof exports === "object") {
|
||||
module.exports = exports = factory(require_core(), require_cipher_core());
|
||||
|
@ -3700,9 +3700,9 @@ var require_mode_cfb = __commonJS({
|
|||
}
|
||||
});
|
||||
|
||||
// ../../../../document/九亿商城/jy/service/node_modules/crypto-js/mode-ctr.js
|
||||
// ../../../../../桌面/jiuyiUniapp/service/node_modules/crypto-js/mode-ctr.js
|
||||
var require_mode_ctr = __commonJS({
|
||||
"../../../../document/九亿商城/jy/service/node_modules/crypto-js/mode-ctr.js"(exports, module) {
|
||||
"../../../../../桌面/jiuyiUniapp/service/node_modules/crypto-js/mode-ctr.js"(exports, module) {
|
||||
(function(root, factory, undef) {
|
||||
if (typeof exports === "object") {
|
||||
module.exports = exports = factory(require_core(), require_cipher_core());
|
||||
|
@ -3740,9 +3740,9 @@ var require_mode_ctr = __commonJS({
|
|||
}
|
||||
});
|
||||
|
||||
// ../../../../document/九亿商城/jy/service/node_modules/crypto-js/mode-ctr-gladman.js
|
||||
// ../../../../../桌面/jiuyiUniapp/service/node_modules/crypto-js/mode-ctr-gladman.js
|
||||
var require_mode_ctr_gladman = __commonJS({
|
||||
"../../../../document/九亿商城/jy/service/node_modules/crypto-js/mode-ctr-gladman.js"(exports, module) {
|
||||
"../../../../../桌面/jiuyiUniapp/service/node_modules/crypto-js/mode-ctr-gladman.js"(exports, module) {
|
||||
(function(root, factory, undef) {
|
||||
if (typeof exports === "object") {
|
||||
module.exports = exports = factory(require_core(), require_cipher_core());
|
||||
|
@ -3815,9 +3815,9 @@ var require_mode_ctr_gladman = __commonJS({
|
|||
}
|
||||
});
|
||||
|
||||
// ../../../../document/九亿商城/jy/service/node_modules/crypto-js/mode-ofb.js
|
||||
// ../../../../../桌面/jiuyiUniapp/service/node_modules/crypto-js/mode-ofb.js
|
||||
var require_mode_ofb = __commonJS({
|
||||
"../../../../document/九亿商城/jy/service/node_modules/crypto-js/mode-ofb.js"(exports, module) {
|
||||
"../../../../../桌面/jiuyiUniapp/service/node_modules/crypto-js/mode-ofb.js"(exports, module) {
|
||||
(function(root, factory, undef) {
|
||||
if (typeof exports === "object") {
|
||||
module.exports = exports = factory(require_core(), require_cipher_core());
|
||||
|
@ -3853,9 +3853,9 @@ var require_mode_ofb = __commonJS({
|
|||
}
|
||||
});
|
||||
|
||||
// ../../../../document/九亿商城/jy/service/node_modules/crypto-js/mode-ecb.js
|
||||
// ../../../../../桌面/jiuyiUniapp/service/node_modules/crypto-js/mode-ecb.js
|
||||
var require_mode_ecb = __commonJS({
|
||||
"../../../../document/九亿商城/jy/service/node_modules/crypto-js/mode-ecb.js"(exports, module) {
|
||||
"../../../../../桌面/jiuyiUniapp/service/node_modules/crypto-js/mode-ecb.js"(exports, module) {
|
||||
(function(root, factory, undef) {
|
||||
if (typeof exports === "object") {
|
||||
module.exports = exports = factory(require_core(), require_cipher_core());
|
||||
|
@ -3884,9 +3884,9 @@ var require_mode_ecb = __commonJS({
|
|||
}
|
||||
});
|
||||
|
||||
// ../../../../document/九亿商城/jy/service/node_modules/crypto-js/pad-ansix923.js
|
||||
// ../../../../../桌面/jiuyiUniapp/service/node_modules/crypto-js/pad-ansix923.js
|
||||
var require_pad_ansix923 = __commonJS({
|
||||
"../../../../document/九亿商城/jy/service/node_modules/crypto-js/pad-ansix923.js"(exports, module) {
|
||||
"../../../../../桌面/jiuyiUniapp/service/node_modules/crypto-js/pad-ansix923.js"(exports, module) {
|
||||
(function(root, factory, undef) {
|
||||
if (typeof exports === "object") {
|
||||
module.exports = exports = factory(require_core(), require_cipher_core());
|
||||
|
@ -3916,9 +3916,9 @@ var require_pad_ansix923 = __commonJS({
|
|||
}
|
||||
});
|
||||
|
||||
// ../../../../document/九亿商城/jy/service/node_modules/crypto-js/pad-iso10126.js
|
||||
// ../../../../../桌面/jiuyiUniapp/service/node_modules/crypto-js/pad-iso10126.js
|
||||
var require_pad_iso10126 = __commonJS({
|
||||
"../../../../document/九亿商城/jy/service/node_modules/crypto-js/pad-iso10126.js"(exports, module) {
|
||||
"../../../../../桌面/jiuyiUniapp/service/node_modules/crypto-js/pad-iso10126.js"(exports, module) {
|
||||
(function(root, factory, undef) {
|
||||
if (typeof exports === "object") {
|
||||
module.exports = exports = factory(require_core(), require_cipher_core());
|
||||
|
@ -3944,9 +3944,9 @@ var require_pad_iso10126 = __commonJS({
|
|||
}
|
||||
});
|
||||
|
||||
// ../../../../document/九亿商城/jy/service/node_modules/crypto-js/pad-iso97971.js
|
||||
// ../../../../../桌面/jiuyiUniapp/service/node_modules/crypto-js/pad-iso97971.js
|
||||
var require_pad_iso97971 = __commonJS({
|
||||
"../../../../document/九亿商城/jy/service/node_modules/crypto-js/pad-iso97971.js"(exports, module) {
|
||||
"../../../../../桌面/jiuyiUniapp/service/node_modules/crypto-js/pad-iso97971.js"(exports, module) {
|
||||
(function(root, factory, undef) {
|
||||
if (typeof exports === "object") {
|
||||
module.exports = exports = factory(require_core(), require_cipher_core());
|
||||
|
@ -3971,9 +3971,9 @@ var require_pad_iso97971 = __commonJS({
|
|||
}
|
||||
});
|
||||
|
||||
// ../../../../document/九亿商城/jy/service/node_modules/crypto-js/pad-zeropadding.js
|
||||
// ../../../../../桌面/jiuyiUniapp/service/node_modules/crypto-js/pad-zeropadding.js
|
||||
var require_pad_zeropadding = __commonJS({
|
||||
"../../../../document/九亿商城/jy/service/node_modules/crypto-js/pad-zeropadding.js"(exports, module) {
|
||||
"../../../../../桌面/jiuyiUniapp/service/node_modules/crypto-js/pad-zeropadding.js"(exports, module) {
|
||||
(function(root, factory, undef) {
|
||||
if (typeof exports === "object") {
|
||||
module.exports = exports = factory(require_core(), require_cipher_core());
|
||||
|
@ -4005,9 +4005,9 @@ var require_pad_zeropadding = __commonJS({
|
|||
}
|
||||
});
|
||||
|
||||
// ../../../../document/九亿商城/jy/service/node_modules/crypto-js/pad-nopadding.js
|
||||
// ../../../../../桌面/jiuyiUniapp/service/node_modules/crypto-js/pad-nopadding.js
|
||||
var require_pad_nopadding = __commonJS({
|
||||
"../../../../document/九亿商城/jy/service/node_modules/crypto-js/pad-nopadding.js"(exports, module) {
|
||||
"../../../../../桌面/jiuyiUniapp/service/node_modules/crypto-js/pad-nopadding.js"(exports, module) {
|
||||
(function(root, factory, undef) {
|
||||
if (typeof exports === "object") {
|
||||
module.exports = exports = factory(require_core(), require_cipher_core());
|
||||
|
@ -4028,9 +4028,9 @@ var require_pad_nopadding = __commonJS({
|
|||
}
|
||||
});
|
||||
|
||||
// ../../../../document/九亿商城/jy/service/node_modules/crypto-js/format-hex.js
|
||||
// ../../../../../桌面/jiuyiUniapp/service/node_modules/crypto-js/format-hex.js
|
||||
var require_format_hex = __commonJS({
|
||||
"../../../../document/九亿商城/jy/service/node_modules/crypto-js/format-hex.js"(exports, module) {
|
||||
"../../../../../桌面/jiuyiUniapp/service/node_modules/crypto-js/format-hex.js"(exports, module) {
|
||||
(function(root, factory, undef) {
|
||||
if (typeof exports === "object") {
|
||||
module.exports = exports = factory(require_core(), require_cipher_core());
|
||||
|
@ -4088,9 +4088,9 @@ var require_format_hex = __commonJS({
|
|||
}
|
||||
});
|
||||
|
||||
// ../../../../document/九亿商城/jy/service/node_modules/crypto-js/aes.js
|
||||
// ../../../../../桌面/jiuyiUniapp/service/node_modules/crypto-js/aes.js
|
||||
var require_aes = __commonJS({
|
||||
"../../../../document/九亿商城/jy/service/node_modules/crypto-js/aes.js"(exports, module) {
|
||||
"../../../../../桌面/jiuyiUniapp/service/node_modules/crypto-js/aes.js"(exports, module) {
|
||||
(function(root, factory, undef) {
|
||||
if (typeof exports === "object") {
|
||||
module.exports = exports = factory(require_core(), require_enc_base64(), require_md5(), require_evpkdf(), require_cipher_core());
|
||||
|
@ -4242,9 +4242,9 @@ var require_aes = __commonJS({
|
|||
}
|
||||
});
|
||||
|
||||
// ../../../../document/九亿商城/jy/service/node_modules/crypto-js/tripledes.js
|
||||
// ../../../../../桌面/jiuyiUniapp/service/node_modules/crypto-js/tripledes.js
|
||||
var require_tripledes = __commonJS({
|
||||
"../../../../document/九亿商城/jy/service/node_modules/crypto-js/tripledes.js"(exports, module) {
|
||||
"../../../../../桌面/jiuyiUniapp/service/node_modules/crypto-js/tripledes.js"(exports, module) {
|
||||
(function(root, factory, undef) {
|
||||
if (typeof exports === "object") {
|
||||
module.exports = exports = factory(require_core(), require_enc_base64(), require_md5(), require_evpkdf(), require_cipher_core());
|
||||
|
@ -5023,9 +5023,9 @@ var require_tripledes = __commonJS({
|
|||
}
|
||||
});
|
||||
|
||||
// ../../../../document/九亿商城/jy/service/node_modules/crypto-js/rc4.js
|
||||
// ../../../../../桌面/jiuyiUniapp/service/node_modules/crypto-js/rc4.js
|
||||
var require_rc4 = __commonJS({
|
||||
"../../../../document/九亿商城/jy/service/node_modules/crypto-js/rc4.js"(exports, module) {
|
||||
"../../../../../桌面/jiuyiUniapp/service/node_modules/crypto-js/rc4.js"(exports, module) {
|
||||
(function(root, factory, undef) {
|
||||
if (typeof exports === "object") {
|
||||
module.exports = exports = factory(require_core(), require_enc_base64(), require_md5(), require_evpkdf(), require_cipher_core());
|
||||
|
@ -5106,9 +5106,9 @@ var require_rc4 = __commonJS({
|
|||
}
|
||||
});
|
||||
|
||||
// ../../../../document/九亿商城/jy/service/node_modules/crypto-js/rabbit.js
|
||||
// ../../../../../桌面/jiuyiUniapp/service/node_modules/crypto-js/rabbit.js
|
||||
var require_rabbit = __commonJS({
|
||||
"../../../../document/九亿商城/jy/service/node_modules/crypto-js/rabbit.js"(exports, module) {
|
||||
"../../../../../桌面/jiuyiUniapp/service/node_modules/crypto-js/rabbit.js"(exports, module) {
|
||||
(function(root, factory, undef) {
|
||||
if (typeof exports === "object") {
|
||||
module.exports = exports = factory(require_core(), require_enc_base64(), require_md5(), require_evpkdf(), require_cipher_core());
|
||||
|
@ -5235,9 +5235,9 @@ var require_rabbit = __commonJS({
|
|||
}
|
||||
});
|
||||
|
||||
// ../../../../document/九亿商城/jy/service/node_modules/crypto-js/rabbit-legacy.js
|
||||
// ../../../../../桌面/jiuyiUniapp/service/node_modules/crypto-js/rabbit-legacy.js
|
||||
var require_rabbit_legacy = __commonJS({
|
||||
"../../../../document/九亿商城/jy/service/node_modules/crypto-js/rabbit-legacy.js"(exports, module) {
|
||||
"../../../../../桌面/jiuyiUniapp/service/node_modules/crypto-js/rabbit-legacy.js"(exports, module) {
|
||||
(function(root, factory, undef) {
|
||||
if (typeof exports === "object") {
|
||||
module.exports = exports = factory(require_core(), require_enc_base64(), require_md5(), require_evpkdf(), require_cipher_core());
|
||||
|
@ -5361,9 +5361,9 @@ var require_rabbit_legacy = __commonJS({
|
|||
}
|
||||
});
|
||||
|
||||
// ../../../../document/九亿商城/jy/service/node_modules/crypto-js/blowfish.js
|
||||
// ../../../../../桌面/jiuyiUniapp/service/node_modules/crypto-js/blowfish.js
|
||||
var require_blowfish = __commonJS({
|
||||
"../../../../document/九亿商城/jy/service/node_modules/crypto-js/blowfish.js"(exports, module) {
|
||||
"../../../../../桌面/jiuyiUniapp/service/node_modules/crypto-js/blowfish.js"(exports, module) {
|
||||
(function(root, factory, undef) {
|
||||
if (typeof exports === "object") {
|
||||
module.exports = exports = factory(require_core(), require_enc_base64(), require_md5(), require_evpkdf(), require_cipher_core());
|
||||
|
@ -6550,9 +6550,9 @@ var require_blowfish = __commonJS({
|
|||
}
|
||||
});
|
||||
|
||||
// ../../../../document/九亿商城/jy/service/node_modules/crypto-js/index.js
|
||||
// ../../../../../桌面/jiuyiUniapp/service/node_modules/crypto-js/index.js
|
||||
var require_crypto_js = __commonJS({
|
||||
"../../../../document/九亿商城/jy/service/node_modules/crypto-js/index.js"(exports, module) {
|
||||
"../../../../../桌面/jiuyiUniapp/service/node_modules/crypto-js/index.js"(exports, module) {
|
||||
(function(root, factory, undef) {
|
||||
if (typeof exports === "object") {
|
||||
module.exports = exports = factory(require_core(), require_x64_core(), require_lib_typedarrays(), require_enc_utf16(), require_enc_base64(), require_enc_base64url(), require_md5(), require_sha1(), require_sha256(), require_sha224(), require_sha512(), require_sha384(), require_sha3(), require_ripemd160(), require_hmac(), require_pbkdf2(), require_evpkdf(), require_cipher_core(), require_mode_cfb(), require_mode_ctr(), require_mode_ctr_gladman(), require_mode_ofb(), require_mode_ecb(), require_pad_ansix923(), require_pad_iso10126(), require_pad_iso97971(), require_pad_zeropadding(), require_pad_nopadding(), require_format_hex(), require_aes(), require_tripledes(), require_rc4(), require_rabbit(), require_rabbit_legacy(), require_blowfish());
|
||||
|
|
File diff suppressed because one or more lines are too long
|
@ -4,7 +4,7 @@ import {
|
|||
import uni from '@dcloudio/vite-plugin-uni';
|
||||
|
||||
// let target = 'http://91f.xyz:8080'
|
||||
let target = 'http://1a4b9ed1.r24.cpolar.top'
|
||||
let target = 'https://b433d23.r24.cpolar.top/'
|
||||
|
||||
export default defineConfig({
|
||||
plugins: [uni()],
|
||||
|
|
Loading…
Reference in New Issue