JMApp/pages/refund/refund.wxml
XiaoMo 7c8536272c feat: 新增退款和网约车用户管理页面
添加了退款和网约车用户管理相关页面,包括页面配置、样式、逻辑处理等。同时更新了应用配置文件和私有配置文件以支持新页面。
2025-04-14 18:21:46 +08:00

55 lines
2.6 KiB
Plaintext
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

<view class="contain">
<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>
<!-- 显示用户信息 .userInfo -->
<view class="userInfo" wx:if="{{showResult && userInfo}}">
<view class="info">
<view>手机号:<text>{{userInfo.mobile}}</text></view>
<view>用户ID<text>{{userInfo.uid}}</text></view>
<view class="balance-info">
<view class="balance-item">
<view class="label">总余额</view>
<view class="value r">{{userInfo.money}}</view>
</view>
<view class="balance-item">
<view class="label">洗车金</view>
<view class="value g">{{userInfo.principal}}</view>
</view>
<view class="balance-item">
<view class="label">赠送金额</view>
<view class="value b">{{userInfo.givenamount}}</view>
</view>
</view>
</view>
</view>
<block wx:if="{{showResult && userInfo}}">
<form bindsubmit="onSubmitToGroup1" wx:if="{{userInfo.refundType === 'online'}}"> <!-- 查询后 线上退款 -->
<view class="info">
<view>本金:<text class="r">{{userInfo.recharge.money || ''}}</text></view>
<view>赠送:{{userInfo.recharge.bonusamount || ''}}</view>
<view class="mt">订单号:{{userInfo.recharge.orderid || ''}}</view>
<view>充值时间:<text class="r">{{userInfo.recharge.date || ''}}</text></view>
<view>网点:<text class="r">{{userInfo.recharge.agent || ''}}</text></view>
</view>
<button class="button" form-type="submit" type="primary">线上退款</button>
</form>
<form bindsubmit="onSubmitToGroup2" wx:if="{{userInfo.refundType === 'offline'}}"> <!-- 查询后 线下退款 -->
<view class="info">
<view>本金:<text class="r">{{userInfo.recharge.money || ''}}</text></view>
<view>赠送:{{userInfo.recharge.bonusamount || ''}}</view>
<view class="mt">订单号:{{userInfo.recharge.orderid || ''}}</view>
<view>充值时间:<text class="r">{{userInfo.recharge.date || ''}}</text></view>
<view>网点:<text class="r">{{userInfo.recharge.agent || ''}}</text></view>
</view>
<button class="button" form-type="submit" type="warn">线下退款</button>
</form>
</block>
</view>
</view>