PDF需求全面修复 - v1.15
## 后端 1. 数据概览改为从API获取真实用户/订单数 2. 提现API增加容错和withdrawals表自动创建 ## 小程序 1. 设置页:去掉支付宝,微信号直接输入 2. 我的页面:优先显示微信号 3. 找伙伴-资源对接:新增三项填写(能帮到什么/需要什么/擅长什么) ## 部署配置 - 更新为小型宝塔 42.194.232.22
This commit is contained in:
@@ -77,10 +77,14 @@ Page({
|
||||
const userId = userInfo.id || ''
|
||||
const userIdShort = userId.length > 20 ? userId.slice(0, 10) + '...' + userId.slice(-6) : userId
|
||||
|
||||
// 获取微信号(优先显示)
|
||||
const userWechat = wx.getStorageSync('user_wechat') || userInfo.wechat || ''
|
||||
|
||||
this.setData({
|
||||
isLoggedIn: true,
|
||||
userInfo,
|
||||
userIdShort,
|
||||
userWechat,
|
||||
purchasedCount: hasFullBook ? this.data.totalSections : (purchasedSections?.length || 0),
|
||||
referralCount: userInfo.referralCount || 0,
|
||||
earnings: userInfo.earnings || 0,
|
||||
|
||||
@@ -42,7 +42,7 @@
|
||||
<text class="edit-icon-small">✎</text>
|
||||
</view>
|
||||
<view class="user-id-row" bindtap="copyUserId">
|
||||
<text class="user-id">ID: {{userIdShort}}</text>
|
||||
<text class="user-id">{{userWechat ? '微信: ' + userWechat : 'ID: ' + userIdShort}}</text>
|
||||
<text class="copy-icon">📋</text>
|
||||
</view>
|
||||
</view>
|
||||
|
||||
Reference in New Issue
Block a user