删除不再使用的文件,包括开放 API 鉴权规范文档、数据库迁移脚本和旧版图标组件,优化项目结构和资源管理。更新小程序代码以支持代付功能,增加代付分享弹窗和支付逻辑,提升用户体验。
This commit is contained in:
@@ -288,6 +288,51 @@
|
||||
</view>
|
||||
</view>
|
||||
|
||||
<!-- 代付分享弹窗:阅读页内发起代付并支付 -->
|
||||
<view class="modal-overlay modal-overlay-center" wx:if="{{showGiftModal}}" bindtap="closeGiftModal">
|
||||
<view class="modal-content modal-content-center gift-modal-v2" catchtap="stopPropagation">
|
||||
<view class="modal-header">
|
||||
<text class="modal-title">{{giftPaid ? '代付已完成' : '生成代付链接'}}</text>
|
||||
<view class="modal-close" bindtap="closeGiftModal"><icon name="x" size="36" color="#8e8e93"></icon></view>
|
||||
</view>
|
||||
|
||||
<view class="gift-article-card">
|
||||
<text class="gift-article-title">{{section.title || '代付商品'}}</text>
|
||||
<text class="gift-article-desc" wx:if="{{section.desc}}">{{section.desc}}</text>
|
||||
</view>
|
||||
|
||||
<view wx:if="{{!giftPaid}}">
|
||||
<text class="gift-label">选择代付名额数</text>
|
||||
<view class="gift-spots-grid">
|
||||
<view class="gift-spot-btn {{giftQuantity===6?'gift-spot-active':''}}" bindtap="selectGiftQuantity" data-q="6">6</view>
|
||||
<view class="gift-spot-btn {{giftQuantity===30?'gift-spot-active':''}}" bindtap="selectGiftQuantity" data-q="30">30</view>
|
||||
<view class="gift-spot-btn {{giftQuantity===100?'gift-spot-active':''}}" bindtap="selectGiftQuantity" data-q="100">100</view>
|
||||
<view class="gift-spot-btn {{giftQuantity===1000?'gift-spot-active':''}}" bindtap="selectGiftQuantity" data-q="1000">1000</view>
|
||||
</view>
|
||||
|
||||
<view class="gift-price-box">
|
||||
<text class="gift-price-label">待支付总价格</text>
|
||||
<view class="gift-price-row">
|
||||
<text class="gift-price-formula">¥{{giftUnitPrice}} × {{giftQuantity}} =</text>
|
||||
<text class="gift-price-total">¥{{giftTotalPrice}}</text>
|
||||
</view>
|
||||
</view>
|
||||
|
||||
<button class="gift-pay-btn" bindtap="confirmGiftPay" disabled="{{giftPaying}}">
|
||||
{{giftPaying ? '支付中...' : '确认并支付'}}
|
||||
</button>
|
||||
<view class="gift-cancel-text" bindtap="closeGiftModal">取消</view>
|
||||
</view>
|
||||
|
||||
<view wx:else class="gift-paid-wrap">
|
||||
<text class="gift-paid-tip">支付成功,点击下方按钮直接分享给好友。好友打开阅读页将自动领取并解锁。</text>
|
||||
<button class="gift-share-btn" open-type="share" data-gift="1" data-request-sn="{{giftRequestSn}}">
|
||||
发送给好友
|
||||
</button>
|
||||
</view>
|
||||
</view>
|
||||
</view>
|
||||
|
||||
<!-- 登录弹窗 - 须勾选同意协议,《用户协议》《隐私政策》可点击查看 -->
|
||||
<view class="modal-overlay" wx:if="{{showLoginModal}}" bindtap="closeLoginModal">
|
||||
<view class="modal-content login-modal" catchtap="stopPropagation">
|
||||
|
||||
Reference in New Issue
Block a user