checkpoint: 冻结资金开工前龙先生小程序本地备份(不推远程)
Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
@@ -193,6 +193,11 @@ Page(createPage({
|
||||
goToAuth(e) {
|
||||
const type = e.currentTarget.dataset.type;
|
||||
if (!type || !['dashou', 'shangjia'].includes(type)) return;
|
||||
// 龙先生:商家只能后台开通,前端禁止自助认证
|
||||
if (type === 'shangjia' && !isRoleStatusActive(wx.getStorageSync('shangjiastatus'))) {
|
||||
wx.showToast({ title: '请联系客服开通商家', icon: 'none' });
|
||||
return;
|
||||
}
|
||||
ensureLogin({ silent: false, page: this })
|
||||
.then(() => restoreStaffContextAfterAuth())
|
||||
.then(() => {
|
||||
|
||||
@@ -2,7 +2,8 @@
|
||||
"usingComponents": {
|
||||
"global-notification": "/components/global-notification/global-notification",
|
||||
"tab-bar": "/tab-bar/index",
|
||||
"pindao-modal": "/components/pindao-modal/pindao-modal"
|
||||
"pindao-modal": "/components/pindao-modal/pindao-modal",
|
||||
"tousu-float": "/components/tousu-float/tousu-float"
|
||||
},
|
||||
"navigationBarTitleText": "个人中心",
|
||||
"navigationBarBackgroundColor": "#F7F3ED",
|
||||
|
||||
@@ -66,10 +66,6 @@
|
||||
<view class="icon-bg"><image src="{{kefuIcon}}" mode="aspectFit" class="icon-color icon-size" /></view>
|
||||
<text class="service-name">在线客服</text>
|
||||
</view>
|
||||
<view class="service-unit" bindtap="goToGuanzhuA">
|
||||
<view class="icon-bg"><image src="{{guanzhualongIcon}}" mode="aspectFit" class="icon-color icon-size" /></view>
|
||||
<text class="service-name">关注快手</text>
|
||||
</view>
|
||||
<view class="service-unit" wx:if="{{showPindaoEntry}}" bindtap="openPindaoModal">
|
||||
<view class="icon-bg"><image src="{{pindaoIcon}}" mode="aspectFit" class="icon-color icon-size" /></view>
|
||||
<text class="service-name">频道</text>
|
||||
@@ -77,7 +73,7 @@
|
||||
</view>
|
||||
</view>
|
||||
|
||||
<!-- 身份认证(与更多服务同款紧凑布局) -->
|
||||
<!-- 身份:仅接单员 + 商家客服;已开通商家才显示「进入商家」 -->
|
||||
<view class="section">
|
||||
<view class="title-line gradient-bg">
|
||||
<text class="title-text">身份认证</text>
|
||||
@@ -90,13 +86,6 @@
|
||||
<text class="service-name">接单员</text>
|
||||
<text class="auth-tag {{dashouCertified ? 'auth-tag-done' : ''}}">{{dashouCertified ? '已认证' : '去认证'}}</text>
|
||||
</view>
|
||||
<view class="service-unit" bindtap="goToAuth" data-type="shangjia">
|
||||
<view class="icon-bg icon-bg-sm">
|
||||
<image src="{{shangjiaIcon}}" mode="aspectFit" class="icon-dark icon-size-sm" />
|
||||
</view>
|
||||
<text class="service-name">商家</text>
|
||||
<text class="auth-tag {{shangjiaCertified ? 'auth-tag-done' : ''}}">{{shangjiaCertified ? '已认证' : '去认证'}}</text>
|
||||
</view>
|
||||
<view class="service-unit" bindtap="goToStaffJoin">
|
||||
<view class="icon-bg icon-bg-sm">
|
||||
<image src="{{kefuIcon}}" mode="aspectFit" class="icon-dark icon-size-sm" />
|
||||
@@ -104,6 +93,13 @@
|
||||
<text class="service-name">商家客服</text>
|
||||
<text class="auth-tag {{staffCertified ? 'auth-tag-done' : ''}}">{{staffTag}}</text>
|
||||
</view>
|
||||
<view class="service-unit" wx:if="{{shangjiaCertified}}" bindtap="goToAuth" data-type="shangjia">
|
||||
<view class="icon-bg icon-bg-sm">
|
||||
<image src="{{shangjiaIcon}}" mode="aspectFit" class="icon-dark icon-size-sm" />
|
||||
</view>
|
||||
<text class="service-name">进入商家</text>
|
||||
<text class="auth-tag auth-tag-done">已开通</text>
|
||||
</view>
|
||||
</view>
|
||||
</view>
|
||||
|
||||
@@ -121,7 +117,7 @@
|
||||
|
||||
<!-- 底部 -->
|
||||
<view class="footer">
|
||||
<text class="copyright">© 2026 星阙网络技术</text>
|
||||
<text class="copyright">© 2026 龙先生电竞</text>
|
||||
<text class="divider">|</text>
|
||||
<text class="coop" bindtap="goToCustomService">我要做同款</text>
|
||||
</view>
|
||||
@@ -130,6 +126,7 @@
|
||||
</view>
|
||||
|
||||
<tab-bar />
|
||||
<tousu-float />
|
||||
<global-notification id="global-notification" />
|
||||
<pindao-modal
|
||||
visible="{{pindaoVisible}}"
|
||||
|
||||
Reference in New Issue
Block a user