Initial commit (code only without large binaries)

This commit is contained in:
robin
2026-02-15 18:58:44 +08:00
commit 35df75498f
9442 changed files with 1495866 additions and 0 deletions

View File

@@ -0,0 +1,37 @@
{$layout}
<div class="margin"></div>
<div v-if="!config.enablePay">
<div class="ui message" v-if="config.disablePageHTML.length == 0">暂不提供在线充值功能,请联系管理员充值。</div>
<div v-if="config.disablePageHTML.length > 0" v-html="config.disablePageHTML"></div>
</div>
<div v-if="config.enablePay">
<form class="ui form" data-tea-action="$" data-tea-success="success">
<csrf-token></csrf-token>
<table class="ui table definition">
<tr>
<td class="title">充值金额 *</td>
<td>
<div class="ui left labeled input">
<span class="ui label"></span>
<input type="text" name="amount" maxlength="10" style="width: 10em" ref="focus"/>
</div>
</td>
</tr>
<tr>
<td>选择支付方式 *</td>
<td>
<div class="methods-box">
<div class="method-box" :class="{active: methodCode == method.code}" v-for="method in methods" @click.event="selectMethod(method)">
<radio name="methodCode" :value="method.code" :v-value="method.code" v-model="methodCode">{{method.name}}</radio>
<p class="comment">{{method.description}}</p>
</div>
</div>
</td>
</tr>
</table>
<submit-btn>下一步 &raquo;</submit-btn>
</form>
</div>

View File

@@ -0,0 +1,14 @@
Tea.context(function () {
this.methodCode = 0
if (this.methods.length > 0) {
this.methodCode = this.methods[0].code
}
this.selectMethod = function (method) {
this.methodCode = method.code
}
this.success = function (resp) {
window.location = "/finance/pay?code=" + resp.data.code + "&from=" + this.currentURL
}
})