35 lines
1011 B
Plaintext
35 lines
1011 B
Plaintext
|
|
<view class="container">
|
||
|
|
<view class="header">
|
||
|
|
<text class="title">微信支付测试页面</text>
|
||
|
|
<text class="subtitle">用于诊断total_fee参数问题</text>
|
||
|
|
</view>
|
||
|
|
|
||
|
|
<view class="test-section">
|
||
|
|
<view class="section-title">测试用例</view>
|
||
|
|
|
||
|
|
<button class="test-btn" bindtap="testWechatPayment">
|
||
|
|
测试标准支付参数
|
||
|
|
</button>
|
||
|
|
|
||
|
|
<button class="test-btn warning" bindtap="testWrongPackageFormat">
|
||
|
|
测试错误package格式
|
||
|
|
</button>
|
||
|
|
|
||
|
|
<button class="test-btn error" bindtap="testEmptyPackage">
|
||
|
|
测试空package参数
|
||
|
|
</button>
|
||
|
|
|
||
|
|
<button class="test-btn primary" bindtap="testRealPaymentAPI">
|
||
|
|
测试真实后端API
|
||
|
|
</button>
|
||
|
|
|
||
|
|
<button class="test-btn secondary" bindtap="clearResult">
|
||
|
|
清除结果
|
||
|
|
</button>
|
||
|
|
</view>
|
||
|
|
|
||
|
|
<view class="result-section" wx:if="{{testResult}}">
|
||
|
|
<view class="section-title">测试结果</view>
|
||
|
|
<view class="result-content">{{testResult}}</view>
|
||
|
|
</view>
|
||
|
|
</view>
|