bug修复
This commit is contained in:
parent
17d0eebd7f
commit
340f4c5cf7
@ -183,7 +183,7 @@ const groupTypeDetail = computed(() => {
|
||||
});
|
||||
|
||||
const headerTitle = computed(() => {
|
||||
let name = '添加群聊';
|
||||
let name = '群设置';
|
||||
if (groupInfo.isEdit) {
|
||||
name = groupInfo.groupConfig.title;
|
||||
}
|
||||
@ -264,6 +264,7 @@ const submit = () => {
|
||||
};
|
||||
|
||||
const closeCreated = () => {
|
||||
emit('con',1)
|
||||
if (groupInfo.isEdit) {
|
||||
return groupInfo.isEdit = !groupInfo.isEdit;
|
||||
}
|
||||
|
@ -1,5 +1,6 @@
|
||||
<template>
|
||||
<div :class="[(isShowCreateGroup || isShowManageGroup || isShowSelectMember) && 'tui-group']">
|
||||
|
||||
<CreateGroup v-if="isShowCreateGroup" @con="iscon"/>
|
||||
<ManageGroup v-if="isShowManageGroup" />
|
||||
<SelectMember v-if="isShowSelectMember" />
|
||||
|
@ -14,7 +14,7 @@
|
||||
<div class="left">
|
||||
<header class="transfer-header">
|
||||
<!-- PC triggers @keyup.enter -->
|
||||
<input
|
||||
<!-- <input
|
||||
v-if="isPC && isTransferSearch"
|
||||
type="text"
|
||||
:value="searchValue"
|
||||
@ -22,9 +22,9 @@
|
||||
enterkeyhint="search"
|
||||
:class="[isUniFrameWork ? 'left-uniapp-input' : '']"
|
||||
@keyup.enter="handleInput"
|
||||
/>
|
||||
/> -->
|
||||
<!-- not PC triggers blur -->
|
||||
<input
|
||||
<!-- <input
|
||||
v-if="!isPC && isTransferSearch"
|
||||
type="text"
|
||||
:placeholder="TUITranslateService.t('component.请输入userID')"
|
||||
@ -33,7 +33,7 @@
|
||||
:class="[isUniFrameWork ? 'left-uniapp-input' : '']"
|
||||
@blur="handleInput"
|
||||
@confirm="handleInput"
|
||||
/>
|
||||
/> -->
|
||||
</header>
|
||||
<main class="transfer-left-main">
|
||||
<ul class="transfer-list">
|
||||
|
@ -16,7 +16,7 @@ const TUIContact = {
|
||||
"接受": "Accept",
|
||||
"拒绝": "Refuse",
|
||||
"已处理": "Handled",
|
||||
"添加群聊": "add group chat",
|
||||
"群设置": "add group chat",
|
||||
"已加入": "joined",
|
||||
"该群组不存在": "The group does not exist",
|
||||
"加群": "join",
|
||||
|
@ -50,7 +50,7 @@ const TUIGroup = {
|
||||
"请先注册 TUIGroup 模块": "Please register the TUIGroup module first",
|
||||
"该用户不存在": "The user does not exist",
|
||||
"该用户不在群组内": "The user is not in the group",
|
||||
"添加群聊": "Add a group chat",
|
||||
"群设置": "Add a group chat",
|
||||
"该群组不存在": "The group does not exist",
|
||||
"创建群聊,请注册 TUIGroup 模块": "To create a group chat, please register the TUIGroup module",
|
||||
"创建成功": "Creation successful",
|
||||
|
@ -18,7 +18,7 @@ const TUIContact = {
|
||||
"接受": "接受",
|
||||
"拒绝": "拒绝",
|
||||
"已处理": "已处理",
|
||||
"添加群聊": "添加群聊",
|
||||
"群设置": "群设置",
|
||||
"已加入": "已加入",
|
||||
"该群组不存在": "该群组不存在",
|
||||
"加群": "加群",
|
||||
|
@ -51,7 +51,7 @@ const TUIGroup = {
|
||||
"请先注册 TUIGroup 模块": "请先注册 TUIGroup 模块",
|
||||
"该用户不存在": "该用户不存在",
|
||||
"该用户不在群组内": "该用户不在群组内",
|
||||
"添加群聊": "添加群聊",
|
||||
"群设置": "群设置",
|
||||
"该群组不存在": "该群组不存在",
|
||||
"创建群聊,请注册 TUIGroup 模块": "创建群聊,请注册 TUIGroup 模块",
|
||||
"创建成功": "创建成功",
|
||||
|
@ -16,7 +16,7 @@ const TUIContact = {
|
||||
"接受": "接受",
|
||||
"拒绝": "拒絕",
|
||||
"已处理": "已處理",
|
||||
"添加群聊": "添加群聊",
|
||||
"群设置": "群设置",
|
||||
"已加入": "已加入",
|
||||
"该群组不存在": "該群組不存在",
|
||||
"加群": "加群",
|
||||
|
@ -51,7 +51,7 @@ const TUIGroup = {
|
||||
"请先注册 TUIGroup 模块": "請先註冊 TUIGroup 模塊",
|
||||
"该用户不存在": "該用戶不存在",
|
||||
"该用户不在群组内": "該用戶不在群組內",
|
||||
"添加群聊": "添加群聊",
|
||||
"群设置": "群设置",
|
||||
"该群组不存在": "該群組不存在",
|
||||
"创建群聊,请注册 TUIGroup 模块": "創建群聊,請註冊 TUIGroup 模塊",
|
||||
"创建成功": "創建成功",
|
||||
|
@ -3,6 +3,7 @@
|
||||
"@dcloudio/uni-app": "^2.0.2-4050720250324001",
|
||||
"@tencentcloud/chat-uikit-uniapp": "^2.4.3",
|
||||
"@vue/runtime-core": "^3.5.13",
|
||||
"qrcodejs2": "0.0.2",
|
||||
"unplugin-vue2-script-setup": "^0.11.4",
|
||||
"vue": "^3.2.0",
|
||||
"ws": "^8.18.1"
|
||||
|
@ -513,6 +513,12 @@
|
||||
"navigationBarTitleText": "用户"
|
||||
}
|
||||
},
|
||||
{
|
||||
"path": "share",
|
||||
"style": {
|
||||
"navigationBarTitleText": "分享"
|
||||
}
|
||||
},
|
||||
{
|
||||
"path": "mydistribution/my/income",
|
||||
"style": {
|
||||
|
43
pages/mine/share.vue
Normal file
43
pages/mine/share.vue
Normal file
@ -0,0 +1,43 @@
|
||||
<template>
|
||||
<view class="container">
|
||||
<!-- 用于显示二维码的容器 -->
|
||||
<view id="qrcode"></view>
|
||||
</view>
|
||||
</template>
|
||||
|
||||
<script>
|
||||
import QRCode from 'qrcodejs2';
|
||||
import config from "@/config/config.js";
|
||||
|
||||
export default {
|
||||
data() {
|
||||
return {
|
||||
// ... existing code ...
|
||||
};
|
||||
},
|
||||
onReady() {
|
||||
this.generateQRCode();
|
||||
},
|
||||
methods: {
|
||||
generateQRCode() {
|
||||
if (config.downloadLink) {
|
||||
new QRCode(document.getElementById('qrcode'), {
|
||||
text: config.downloadLink,
|
||||
width: 200,
|
||||
height: 200,
|
||||
colorDark : "#000000",
|
||||
colorLight : "#ffffff",
|
||||
correctLevel : QRCode.CorrectLevel.H
|
||||
});
|
||||
}
|
||||
}
|
||||
}
|
||||
};
|
||||
</script>
|
||||
|
||||
<style scoped>
|
||||
#qrcode {
|
||||
margin: 20px auto;
|
||||
text-align: center;
|
||||
}
|
||||
</style>
|
@ -29,7 +29,7 @@
|
||||
<!-- 弹出框 -->
|
||||
<view v-if="isPopupVisible" class="popup" ref="popup">
|
||||
<ul>
|
||||
<li @click.stop="handleAddFriend">添加好友/群聊</li>
|
||||
<li @click.stop="handleAddFriend">添加好友</li>
|
||||
<li @click.stop="handleMenu()">发起群聊</li>
|
||||
<li @click.stop="handleScan">扫一扫</li>
|
||||
</ul>
|
||||
@ -50,8 +50,8 @@
|
||||
/>
|
||||
<!-- 群类型 -->
|
||||
<CreateGroup v-else-if="statue == 10" @con="confn" />
|
||||
<SelectFriendqlioa v-else-if="statue == 4" @concen="concen" />
|
||||
<ContactInfo v-else-if="statue == 7" @concen="concen" />
|
||||
<SelectFriendqlioa v-else-if="statue == 4" @con="confn"/>
|
||||
<ContactInfo v-else-if="statue == 7" @con="confn" />
|
||||
<!-- 站内信数据 -->
|
||||
<!-- <div > -->
|
||||
<scroll-view
|
||||
|
@ -4,6 +4,14 @@
|
||||
<view class="interact-tools" style="margin-bottom: 15px">
|
||||
<div class="paddingBox">
|
||||
<view class="interact-container">
|
||||
<!-- <view
|
||||
class="interact-item"
|
||||
@click="navigateTo('/pages/mine/share')"
|
||||
> -->
|
||||
<view class="interact-item" @click="shareApp">
|
||||
<image src="/static/mine/share.png" mode=""></image>
|
||||
<view>分享</view>
|
||||
</view>
|
||||
<view
|
||||
class="interact-item"
|
||||
@click="navigateTo('/pages/mine/invite')"
|
||||
@ -140,7 +148,7 @@
|
||||
v-if="userInfonew.storeId != ''"
|
||||
>
|
||||
<image src="/static/mine/somp.png" mode=""></image>
|
||||
<view>核销</view>
|
||||
<view>扫码核销</view>
|
||||
</view>
|
||||
</view>
|
||||
</div>
|
||||
@ -151,6 +159,7 @@
|
||||
<script>
|
||||
import { distribution, getGoodstake } from "@/api/goods";
|
||||
import { getUserInfo } from "@/api/members";
|
||||
import config from "@/config/config.js";
|
||||
export default {
|
||||
props: {
|
||||
userInfo: {
|
||||
@ -196,7 +205,28 @@ export default {
|
||||
},
|
||||
});
|
||||
},
|
||||
|
||||
shareApp() {
|
||||
uni.share({
|
||||
provider: "weixin",
|
||||
scene: "WXSceneSession", // 分享到聊天会话
|
||||
type: 2, // 分享纯文本
|
||||
content: `快来访问这个链接吧:${config.downloadLink}`, // 纯文本内容,可以根据需求修改
|
||||
success: function () {
|
||||
console.log("分享成功");
|
||||
uni.showToast({
|
||||
title: '分享成功',
|
||||
icon: 'success'
|
||||
});
|
||||
},
|
||||
fail: function (err) {
|
||||
console.log("分享失败", err);
|
||||
uni.showToast({
|
||||
title: '分享失败,请稍后重试',
|
||||
icon: 'none'
|
||||
});
|
||||
},
|
||||
});
|
||||
},
|
||||
navigateTo(url) {
|
||||
uni.navigateTo({
|
||||
url,
|
||||
|
BIN
static/mine/share.png
Normal file
BIN
static/mine/share.png
Normal file
Binary file not shown.
After Width: | Height: | Size: 825 B |
Loading…
x
Reference in New Issue
Block a user