将多个页面中的API请求路径统一为相对路径,并在`utils/login.js`中自动补全为完整URL。优化了请求方法,默认为POST,同时支持GET请求。简化了代码结构,提高了代码的可维护性和一致性。
14 lines
464 B
Plaintext
14 lines
464 B
Plaintext
<view class="contain">
|
|
<image src="{{pic}}" mode="widthFix" class="pic"></image>
|
|
<view class="content">
|
|
<view class="title">请输入券码</view>
|
|
<form bindsubmit="onSubmitToGroup">
|
|
<input class="input" name="code" auto-focus placeholder="支持抖音/美团/聚美券码"/>
|
|
<button class="button" form-type="submit" type="primary">立即兑换</button>
|
|
</form>
|
|
|
|
<text class="tips">
|
|
{{tips}}
|
|
</text>
|
|
</view>
|
|
</view> |