diff --git a/.env b/.env index 41a0b9fd..041ae07a 100644 --- a/.env +++ b/.env @@ -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 diff --git a/src/App.vue b/src/App.vue index f087ea1a..023064e0 100644 --- a/src/App.vue +++ b/src/App.vue @@ -1,619 +1,616 @@ diff --git a/src/pages.json b/src/pages.json index 509dec27..a14eeb03 100644 --- a/src/pages.json +++ b/src/pages.json @@ -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": "荷塘月色交友聊天", diff --git a/src/pages/home/detail.vue b/src/pages/home/detail.vue index a3089ec2..50229439 100644 --- a/src/pages/home/detail.vue +++ b/src/pages/home/detail.vue @@ -156,7 +156,8 @@ - + 今日vip特权已使用{{ lookWechatDetail.todayCount }}/{{ + lookWechatDetail.todayCountTotal }}次 使用VIP特权免费解锁 @@ -172,7 +173,10 @@ 解锁微信只能展示24小时 添加备注"荷塘月色App"会快速通过哟 - 复制微信号 + 今日vip特权已使用{{ lookWechatDetail.todayCount }}/{{ + lookWechatDetail.todayCountTotal }}次 + + 复制微信号 搜索不到微信?点击【 @@ -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); + } } // 私聊 diff --git a/src/pages/tabbar/message.vue b/src/pages/tabbar/message.vue index cd9363c8..5129a695 100644 --- a/src/pages/tabbar/message.vue +++ b/src/pages/tabbar/message.vue @@ -5,11 +5,7 @@ diff --git a/src/sheep/api/member/recent.ts b/src/sheep/api/member/recent.ts index e386f150..64d6e1fe 100644 --- a/src/sheep/api/member/recent.ts +++ b/src/sheep/api/member/recent.ts @@ -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;