feat:微信号错误审核

This commit is contained in:
dzc committed 2025-12-26 17:29:08 +08:00
1 parent 3a6b2da1dc
commit a280a3a396
6 files changed
+847 -1356

No files matched your search

+1 -1
View File
@@ -7,7 +7,7 @@ SHOPRO_API_PATH=/app-api
# 后端接口 - 测试环境(通过 process.env.NODE_ENV == development)
# SHOPRO_DEV_BASE_URL=http://192.168.68.52:48083
# SHOPRO_DEV_BASE_URL = https://chatapi.zianxin.com
SHOPRO_DEV_BASE_URL=https://rj4jv5rwqs.by.takin.cc
SHOPRO_DEV_BASE_URL=https://dzc001.fy.takin.cc
# 后端接口 - 正式环境(通过 process.env.NODE_ENV != development)
SHOPRO_BASE_URL=https://chatapi.zianxin.com
+571 -574
View File
File diff suppressed because it is too large. Load diff
+79 -599
View File
@@ -150,6 +150,84 @@
}
// #endif
],
// #ifdef MP-WEIXIN
"subPackages": [
{
"root": "pages/profile",
"pages": [
{
"path": "pay-result",
"style": {
"navigationBarTitleText": "支付结果",
"navigationStyle": "custom"
}
},
{
"path": "apply-vip-record",
"style": {
"navigationBarTitleText": "历史记录",
"navigationStyle": "custom"
}
},
{
"path": "apply-vip",
"style": {
"navigationBarTitleText": "开通VIP",
"navigationStyle": "custom"
}
},
{
"path": "recharge",
"style": {
"navigationBarTitleText": "充值",
"navigationStyle": "custom"
}
},
{
"path": "recharge-record",
"style": {
"navigationBarTitleText": "充值记录",
"navigationStyle": "custom"
}
}
]
},
{
"root": "pages/wechat",
"pages": [
{
"path": "pages/gift/index",
"style": {
"navigationBarTitleText": "邀请福利",
"navigationStyle": "custom"
}
},
{
"path": "pages/gift/history",
"style": {
"navigationBarTitleText": "礼物账单",
"navigationStyle": "custom"
}
},
{
"path": "pages/inviter/index",
"style": {
"navigationBarTitleText": "邀请历史",
"navigationStyle": "custom"
}
},
{
"path": "pages/withdraw",
"style": {
"navigationBarTitleText": "提现",
"navigationStyle": "custom"
}
}
]
}
],
// #endif
// #ifndef MP-WEIXIN
"subPackages": [
{
"root": "pages/home",
@@ -427,606 +505,8 @@
}
]
}
// {
// "root": "pages/goods",
// "pages": [
// {
// "path": "index",
// "style": {
// "navigationBarTitleText": "商品详情"
// },
// "meta": {
// "sync": true,
// "title": "普通商品",
// "group": "商品"
// }
// },
// {
// "path": "groupon",
// "style": {
// "navigationBarTitleText": "拼团商品"
// },
// "meta": {
// "sync": true,
// "title": "拼团商品",
// "group": "商品"
// }
// },
// {
// "path": "seckill",
// "style": {
// "navigationBarTitleText": "秒杀商品"
// },
// "meta": {
// "sync": true,
// "title": "秒杀商品",
// "group": "商品"
// }
// },
// {
// "path": "point",
// "style": {
// "navigationBarTitleText": "积分商品"
// },
// "meta": {
// "sync": true,
// "title": "积分商品",
// "group": "商品"
// }
// },
// {
// "path": "list",
// "style": {
// "navigationBarTitleText": "商品列表"
// },
// "meta": {
// "sync": true,
// "title": "商品列表",
// "group": "商品"
// }
// },
// {
// "path": "comment/add",
// "style": {
// "navigationBarTitleText": "评价商品"
// },
// "meta": {
// "auth": true
// }
// },
// {
// "path": "comment/list",
// "style": {
// "navigationBarTitleText": "商品评价"
// }
// }
// ]
// },
// {
// "root": "pages/order",
// "pages": [
// {
// "path": "detail",
// "style": {
// "navigationBarTitleText": "订单详情"
// },
// "meta": {
// "auth": true,
// "title": "订单详情"
// }
// },
// {
// "path": "confirm",
// "style": {
// "navigationBarTitleText": "确认订单"
// },
// "meta": {
// "auth": true,
// "title": "确认订单"
// }
// },
// {
// "path": "list",
// "style": {
// "navigationBarTitleText": "我的订单",
// "enablePullDownRefresh": true
// },
// "meta": {
// "auth": true,
// "sync": true,
// "title": "用户订单",
// "group": "订单中心"
// }
// },
// {
// "path": "aftersale/apply",
// "style": {
// "navigationBarTitleText": "申请售后"
// },
// "meta": {
// "auth": true,
// "title": "申请售后"
// }
// },
// {
// "path": "aftersale/return-delivery",
// "style": {
// "navigationBarTitleText": "退货物流"
// },
// "meta": {
// "auth": true,
// "title": "退货物流"
// }
// },
// {
// "path": "aftersale/list",
// "style": {
// "navigationBarTitleText": "售后列表"
// },
// "meta": {
// "auth": true,
// "sync": true,
// "title": "售后订单",
// "group": "订单中心"
// }
// },
// {
// "path": "aftersale/detail",
// "style": {
// "navigationBarTitleText": "售后详情"
// },
// "meta": {
// "auth": true,
// "title": "售后详情"
// }
// },
// {
// "path": "aftersale/log",
// "style": {
// "navigationBarTitleText": "售后进度"
// },
// "meta": {
// "auth": true,
// "title": "售后进度"
// }
// },
// {
// "path": "express/log",
// "style": {
// "navigationBarTitleText": "物流轨迹"
// },
// "meta": {
// "auth": true,
// "title": "物流轨迹"
// }
// }
// ]
// },
// {
// "root": "pages/user",
// "pages": [
// {
// "path": "info",
// "style": {
// "navigationBarTitleText": "我的信息"
// },
// "meta": {
// "auth": true,
// "sync": true,
// "title": "用户信息",
// "group": "用户中心"
// }
// },
// {
// "path": "goods-collect",
// "style": {
// "navigationBarTitleText": "我的收藏"
// },
// "meta": {
// "auth": true,
// "sync": true,
// "title": "商品收藏",
// "group": "用户中心"
// }
// },
// {
// "path": "goods-log",
// "style": {
// "navigationBarTitleText": "我的足迹"
// },
// "meta": {
// "auth": true,
// "sync": true,
// "title": "浏览记录",
// "group": "用户中心"
// }
// },
// {
// "path": "address/list",
// "style": {
// "navigationBarTitleText": "收货地址"
// },
// "meta": {
// "auth": true,
// "sync": true,
// "title": "地址管理",
// "group": "用户中心"
// }
// },
// {
// "path": "address/edit",
// "style": {
// "navigationBarTitleText": "编辑地址"
// },
// "meta": {
// "auth": true,
// "title": "编辑地址"
// }
// },
// {
// "path": "goods_details_store/index",
// "style": {
// "navigationBarTitleText": "自提门店"
// },
// "meta": {
// "auth": true,
// "sync": true,
// "title": "地址管理",
// "group": "用户中心"
// }
// },
// {
// "path": "wallet/money",
// "style": {
// "navigationBarTitleText": "我的余额"
// },
// "meta": {
// "auth": true,
// "sync": true,
// "title": "用户余额",
// "group": "用户中心"
// }
// },
// {
// "path": "wallet/score",
// "style": {
// "navigationBarTitleText": "我的积分"
// },
// "meta": {
// "auth": true,
// "sync": true,
// "title": "用户积分",
// "group": "用户中心"
// }
// }
// ]
// },
// {
// "root": "pages/commission",
// "pages": [
// {
// "path": "index",
// "style": {
// "navigationBarTitleText": "分销"
// },
// "meta": {
// "auth": true,
// "sync": true,
// "title": "分销中心",
// "group": "分销商城"
// }
// },
// {
// "path": "wallet",
// "style": {
// "navigationBarTitleText": "我的佣金"
// },
// "meta": {
// "auth": true,
// "sync": true,
// "title": "用户佣金",
// "group": "分销中心"
// }
// },
// {
// "path": "goods",
// "style": {
// "navigationBarTitleText": "推广商品"
// },
// "meta": {
// "auth": true,
// "sync": true,
// "title": "推广商品",
// "group": "分销商城"
// }
// },
// {
// "path": "order",
// "style": {
// "navigationBarTitleText": "分销订单"
// },
// "meta": {
// "auth": true,
// "sync": true,
// "title": "分销订单",
// "group": "分销商城"
// }
// },
// {
// "path": "team",
// "style": {
// "navigationBarTitleText": "我的团队"
// },
// "meta": {
// "auth": true,
// "sync": true,
// "title": "我的团队",
// "group": "分销商城"
// }
// },
// {
// "path": "promoter",
// "style": {
// "navigationBarTitleText": "推广人排行榜"
// },
// "meta": {
// "auth": true,
// "sync": true,
// "title": "推广人排行榜",
// "group": "分销商城"
// }
// },
// {
// "path": "commission-ranking",
// "style": {
// "navigationBarTitleText": "佣金排行榜"
// },
// "meta": {
// "auth": true,
// "sync": true,
// "title": "佣金排行榜",
// "group": "分销商城"
// }
// },
// {
// "path": "withdraw",
// "style": {
// "navigationBarTitleText": "申请提现"
// },
// "meta": {
// "auth": true,
// "sync": true,
// "title": "申请提现",
// "group": "分销商城"
// }
// }
// ]
// },
// {
// "root": "pages/app",
// "pages": [
// {
// "path": "sign",
// "style": {
// "navigationBarTitleText": "签到中心"
// },
// "meta": {
// "auth": true,
// "sync": true,
// "title": "签到中心",
// "group": "应用"
// }
// }
// ]
// },
// {
// "root": "pages/public",
// "pages": [
// {
// "path": "setting",
// "style": {
// "navigationBarTitleText": "系统设置"
// },
// "meta": {
// "sync": true,
// "title": "系统设置",
// "group": "通用"
// }
// },
// {
// "path": "richtext",
// "style": {
// "navigationBarTitleText": "富文本"
// },
// "meta": {
// "sync": true,
// "title": "富文本",
// "group": "通用"
// }
// },
// {
// "path": "faq",
// "style": {
// "navigationBarTitleText": "常见问题"
// },
// "meta": {
// "sync": true,
// "title": "常见问题",
// "group": "通用"
// }
// },
// {
// "path": "error",
// "style": {
// "navigationBarTitleText": "错误页面"
// }
// },
// {
// "path": "webview",
// "style": {
// "navigationBarTitleText": ""
// }
// }
// ]
// },
// {
// "root": "pages/coupon",
// "pages": [
// {
// "path": "list",
// "style": {
// "navigationBarTitleText": "领券中心"
// },
// "meta": {
// "sync": true,
// "title": "领券中心",
// "group": "优惠券"
// }
// },
// {
// "path": "detail",
// "style": {
// "navigationBarTitleText": "优惠券"
// },
// "meta": {
// "auth": false,
// "sync": true,
// "title": "优惠券详情",
// "group": "优惠券"
// }
// }
// ]
// },
// {
// "root": "pages/chat",
// "pages": [
// {
// "path": "index",
// "style": {
// "navigationBarTitleText": "客服",
// "app-plus": {
// "softinputMode": "adjustResize"
// }
// },
// "meta": {
// "auth": true,
// "sync": true,
// "title": "客服",
// "group": "客服"
// }
// }
// ]
// },
// {
// "root": "pages/pay",
// "pages": [
// {
// "path": "index",
// "style": {
// "navigationBarTitleText": "收银台"
// }
// },
// {
// "path": "result",
// "style": {
// "navigationBarTitleText": "支付结果"
// }
// },
// {
// "path": "recharge",
// "style": {
// "navigationBarTitleText": "充值余额"
// },
// "meta": {
// "auth": true,
// "sync": true,
// "title": "充值余额",
// "group": "支付"
// }
// },
// {
// "path": "recharge-log",
// "style": {
// "navigationBarTitleText": "充值记录"
// },
// "meta": {
// "auth": true,
// "sync": true,
// "title": "充值记录",
// "group": "支付"
// }
// }
// ]
// },
// {
// "root": "pages/activity",
// "pages": [
// {
// "path": "groupon/detail",
// "style": {
// "navigationBarTitleText": "拼团详情"
// }
// },
// {
// "path": "groupon/order",
// "style": {
// "navigationBarTitleText": "我的拼团",
// "enablePullDownRefresh": true
// },
// "meta": {
// "auth": true,
// "sync": true,
// "title": "拼团订单",
// "group": "营销活动"
// }
// },
// {
// "path": "index",
// "style": {
// "navigationBarTitleText": "营销商品"
// },
// "meta": {
// "sync": true,
// "title": "营销商品",
// "group": "营销活动"
// }
// },
// {
// "path": "groupon/list",
// "style": {
// "navigationBarTitleText": "拼团活动"
// },
// "meta": {
// "sync": true,
// "title": "拼团活动",
// "group": "营销活动"
// }
// },
// {
// "path": "seckill/list",
// "style": {
// "navigationBarTitleText": "秒杀活动"
// },
// "meta": {
// "sync": true,
// "title": "秒杀活动",
// "group": "营销活动"
// }
// },
// {
// "path": "point/list",
// "style": {
// "navigationBarTitleText": "积分商城"
// },
// "meta": {
// "sync": true,
// "title": "积分商城",
// "group": "营销活动"
// }
// }
// ]
// }
],
// #endif
"globalStyle": {
"navigationBarTextStyle": "black",
"navigationBarTitleText": "荷塘月色交友聊天",
+19 -4
View File
@@ -156,7 +156,8 @@
<view class="flex justify-center items-center m-t-30rpx text-color-theme">
<text class="iconfont icon-weixin" />
</view>
<!-- <text class="text-color-theme text-xs m-t-30rpx">今日vip特权已使用4/10次</text> -->
<text class="text-color-theme text-xs m-t-30rpx">今日vip特权已使用{{ lookWechatDetail.todayCount }}/{{
lookWechatDetail.todayCountTotal }}次</text>
<view class="m-t-30rpx p-x-10 p-y-1.5 bg-color-theme-dark text-xs rounded-full" @tap="doSubmitUnlockWechat">
<text class="text-black text-xs">使用VIP特权免费解锁</text>
</view>
@@ -172,7 +173,10 @@
<view>解锁微信只能展示24小时</view>
<view>添加备注"荷塘月色App"会快速通过哟</view>
</view>
<view class="m-t-30rpx p-x-10 p-y-1.5 bg-color-theme-dark text-xs rounded-full" @tap="copyWechatNum">复制微信号
<text class="text-color-theme text-xs m-t-30rpx">今日vip特权已使用{{ lookWechatDetail.todayCount }}/{{
lookWechatDetail.todayCountTotal }}次</text>
<view class="m-t-30rpx p-x-10 p-y-1.5 bg-color-theme-dark text-xs rounded-full" @tap="copyWechatNum">
复制微信号
</view>
<view class="m-t-30rpx text-xs" @tap="wechatJb">
<text>搜索不到微信?点击【</text>
@@ -372,8 +376,19 @@ const previewPhoto = (current: number) => {
};
// 找不到微信举报
const wechatJb = () => {
uni.showToast({ title: '举报成功', icon: "success" });
const wechatJb = async () => {
try {
const { code, data, msg } = await RecentApi.createWecahtErrorAuth({
memberId: params.memberId
})
if (code != 0) {
uni.showToast({ title: msg ?? '举报失败', icon: "none" });
return
}
uni.showToast({ title: '举报成功', icon: "success" });
} catch (error) {
console.log("|找不到微信举报|,意外的错误:error", error);
}
}
// 私聊
+165 -178
View File
@@ -5,11 +5,7 @@
<template #left>
<view class="flex items-center text-base">
<text class="mr-4 c-#D29E52">消息</text>
<navigator
url="/pages/message/friend"
open-type="navigate"
hover-class="navigator-hover"
>
<navigator url="/pages/message/friend" open-type="navigate" hover-class="navigator-hover">
<text>友友</text>
</navigator>
</view>
@@ -20,14 +16,8 @@
</wd-navbar>
<view class="px-4" v-if="showSearch">
<wd-input
v-model="searchText"
placeholder="搜索好友"
prefix-icon="search"
clearable
:maxlength="10"
:focus="true"
/>
<wd-input v-model="searchText" placeholder="搜索好友" prefix-icon="search" clearable :maxlength="10"
:focus="true" />
</view>
<view v-if="loading" class="chat-loading">
@@ -46,11 +36,7 @@
<scroll-view class="scroll-bar" v-else scroll-with-animation="true" scroll-y="true">
<view v-for="(chat, index) in chatStore.chats" :key="index">
<long-press-menu
v-if="isShowChat(chat)"
:items="menu.items"
@select="onSelectMenu($event, index)"
>
<long-press-menu v-if="isShowChat(chat)" :items="menu.items" @select="onSelectMenu($event, index)">
<chat-item :chat="chat" :index="index" :active="menu.chatIdx == index"></chat-item>
</long-press-menu>
</view>
@@ -60,185 +46,186 @@
</template>
<script>
export default {
data() {
return {
showSearch: false,
searchText: '',
menu: {
show: false,
style: '',
chatIdx: -1,
isTouchMove: false,
items: [
{
key: 'DELETE',
name: '删除聊天',
icon: 'trash',
color: '#e64e4e',
export default {
data() {
return {
showSearch: false,
searchText: '',
menu: {
show: false,
style: '',
chatIdx: -1,
isTouchMove: false,
items: [
{
key: 'DELETE',
name: '删除聊天',
icon: 'trash',
color: '#e64e4e',
},
{
key: 'TOP',
name: '置顶聊天',
icon: 'arrow-up',
},
],
},
};
},
methods: {
onSelectMenu(item, chatIdx) {
switch (item.key) {
case 'DELETE':
uni.showModal({
title: '删除聊天',
content: '确定要删除此聊天吗?',
confirmText: '删除',
confirmColor: '#e64e4e',
success: (res) => {
if (res.confirm) {
this.removeChat(chatIdx);
}
},
{
key: 'TOP',
name: '置顶聊天',
icon: 'arrow-up',
},
],
},
};
},
methods: {
onSelectMenu(item, chatIdx) {
switch (item.key) {
case 'DELETE':
uni.showModal({
title: '删除聊天',
content: '确定要删除此聊天吗?',
confirmText: '删除',
confirmColor: '#e64e4e',
success: (res) => {
if (res.confirm) {
this.removeChat(chatIdx);
}
},
});
break;
case 'TOP':
this.moveToTop(chatIdx);
break;
default:
break;
}
this.menu.show = false;
},
removeChat(chatIdx) {
this.chatStore.removeChat(chatIdx);
},
moveToTop(chatIdx) {
this.chatStore.moveTop(chatIdx);
},
isShowChat(chat) {
if (chat.delete) {
return false;
}
return !this.searchText || chat.showName.includes(this.searchText);
},
onSearch() {
this.showSearch = !this.showSearch;
this.searchText = '';
},
refreshUnreadBadge() {
if (this.unreadCount > 0) {
uni.setTabBarBadge({
index: 2,
text: this.unreadCount + '',
});
} else {
uni.removeTabBarBadge({
index: 2,
complete: () => {},
});
}
},
break;
case 'TOP':
this.moveToTop(chatIdx);
break;
default:
break;
}
this.menu.show = false;
},
computed: {
unreadCount() {
let count = 0;
this.chatStore.chats.forEach((chat) => {
if (!chat.isDnd && !chat.delete) {
count += chat.unreadCount;
}
removeChat(chatIdx) {
this.chatStore.removeChat(chatIdx);
},
moveToTop(chatIdx) {
this.chatStore.moveTop(chatIdx);
},
isShowChat(chat) {
if (chat.delete) {
return false;
}
return !this.searchText || chat.showName.includes(this.searchText);
},
onSearch() {
this.showSearch = !this.showSearch;
this.searchText = '';
},
refreshUnreadBadge() {
if (this.unreadCount > 0) {
uni.setTabBarBadge({
index: 2,
text: this.unreadCount + '',
});
return count;
},
loading() {
return this.chatStore.loading;
},
initializing() {
return !this.configStore.appInit;
},
showChats() {
this.chatStore.chats.filter(
(chat) => !chat.delete && chat.showName && chat.showName.includes(this.searchText),
);
},
} else {
uni.removeTabBarBadge({
index: 2,
complete: () => { },
});
}
},
watch: {
unreadCount(newCount, oldCount) {
this.refreshUnreadBadge();
},
},
computed: {
unreadCount() {
let count = 0;
this.chatStore.chats.forEach((chat) => {
if (!chat.isDnd && !chat.delete) {
count += chat.unreadCount;
}
});
return count;
},
onShow() {
loading() {
return this.chatStore.loading;
},
initializing() {
return !this.configStore.appInit;
},
showChats() {
this.chatStore.chats.filter(
(chat) => !chat.delete && chat.showName && chat.showName.includes(this.searchText),
);
},
},
watch: {
unreadCount(newCount, oldCount) {
this.refreshUnreadBadge();
},
};
},
onShow() {
this.refreshUnreadBadge();
this.friendStore.loadFriend();
},
};
</script>
<style lang="scss">
.tab-page {
position: relative;
.tab-page {
position: relative;
display: flex;
flex-direction: column;
.chat-tip {
position: absolute;
top: 50%;
left: 50%;
transform: translate(-50%, -50%);
display: flex;
flex-direction: column;
align-items: center;
padding: 40rpx;
text-align: center;
width: 80%;
.chat-tip {
position: absolute;
top: 50%;
left: 50%;
transform: translate(-50%, -50%);
display: flex;
flex-direction: column;
align-items: center;
padding: 40rpx;
text-align: center;
width: 80%;
.tip-icon {
width: 120rpx;
height: 120rpx;
background: linear-gradient(135deg, #f8f9fa, #e9ecef);
border-radius: 50%;
display: flex;
align-items: center;
justify-content: center;
margin-bottom: 40rpx;
box-shadow: 0 4rpx 12rpx rgba(0, 0, 0, 0.08);
border: 1rpx solid $im-bg-active;
.iconfont {
font-size: 60rpx;
color: $im-text-color-lighter;
}
}
.tip-title {
font-size: $im-font-size-large;
color: $im-text-color;
font-weight: 500;
margin-bottom: 20rpx;
}
.tip-content {
font-size: $im-font-size-smaller;
color: $im-text-color-lighter;
line-height: 1.6;
margin-bottom: 50rpx;
}
}
.chat-loading {
display: block;
width: 100%;
.tip-icon {
width: 120rpx;
height: 120rpx;
background: #222;
color: $im-text-color-lighter;
background: linear-gradient(135deg, #f8f9fa, #e9ecef);
border-radius: 50%;
display: flex;
align-items: center;
justify-content: center;
margin-bottom: 40rpx;
box-shadow: 0 4rpx 12rpx rgba(0, 0, 0, 0.08);
border: 1rpx solid $im-bg-active;
.loading-box {
position: relative;
.iconfont {
font-size: 60rpx;
color: $im-text-color-lighter;
}
}
.scroll-bar {
flex: 1;
height: 100%;
.tip-title {
font-size: $im-font-size-large;
color: $im-text-color;
font-weight: 500;
margin-bottom: 20rpx;
}
.tip-content {
font-size: $im-font-size-smaller;
color: $im-text-color-lighter;
line-height: 1.6;
margin-bottom: 50rpx;
}
}
.chat-loading {
display: block;
width: 100%;
height: 120rpx;
background: #222;
color: $im-text-color-lighter;
.loading-box {
position: relative;
}
}
.scroll-bar {
flex: 1;
height: 100%;
}
}
</style>
+12
View File
@@ -541,6 +541,18 @@ const RecentApi = {
},
});
},
// 创建微信错误认证
createWecahtErrorAuth: (data: { memberId: string }) => {
return request({
url: '/member/com-auth/create-wecaht-error-auth',
method: 'POST',
data,
custom: {
showLoading: true,
loadingMsg: '提交中',
},
});
},
};
export default RecentApi;