充值记录查看凭证,检查二维码和上传凭证问题,首页获取商户列表更改
This commit is contained in:
@@ -1,6 +1,6 @@
|
||||
// pages/rechargeDetail/index.js
|
||||
import { getRechargeDetail } from "../../service/recharge";
|
||||
import { alertError, alertInfo, loadingFunc } from "../../utils/index";
|
||||
import { alertError, alertInfo, loadingFunc, getFileName } from "../../utils/index";
|
||||
import { getRechargeOperateType, getRechargeOperateWay } from "../../utils/data";
|
||||
import request from "../../utils/request"
|
||||
const { OK } = request
|
||||
@@ -29,7 +29,14 @@ Page({
|
||||
return;
|
||||
}
|
||||
this.setData({
|
||||
detail: { ...data, way: getRechargeOperateWay(data.way), type: getRechargeOperateType(data.type) }
|
||||
detail: {
|
||||
...data,
|
||||
way: getRechargeOperateWay(data.way),
|
||||
type: getRechargeOperateType(data.type),
|
||||
fileList: data?.images ? [{
|
||||
url: data.images, name: getFileName(data.images)
|
||||
}] : []
|
||||
}
|
||||
})
|
||||
},
|
||||
record() {
|
||||
|
@@ -2,6 +2,7 @@
|
||||
"usingComponents": {
|
||||
"navigator": "/components/navigator/index",
|
||||
"van-field": "@vant/weapp/field/index",
|
||||
"van-uploader": "@vant/weapp/uploader/index",
|
||||
"van-button": "@vant/weapp/button/index"
|
||||
},
|
||||
"navigationStyle": "custom"
|
||||
|
@@ -114,6 +114,25 @@
|
||||
border="{{ false }}"
|
||||
wx:if="{{detail.orderStatus === 2}}"
|
||||
/>
|
||||
<van-field
|
||||
use-input-slot
|
||||
label="凭证"
|
||||
readonly
|
||||
border="{{ false }}"
|
||||
wx:if="{{detail.images}}"
|
||||
>
|
||||
|
||||
|
||||
</van-field>
|
||||
<view slot="input" style="margin-top: 20rpx; margin-left: 30rpx;">
|
||||
<van-uploader
|
||||
file-list="{{ detail.fileList }}"
|
||||
show-upload="{{false}}"
|
||||
disabled="{{true}}"
|
||||
readonly="{{true}}"
|
||||
deletable="{{false}}"
|
||||
/>
|
||||
</view>
|
||||
</van-cell-group>
|
||||
|
||||
<view class="operate">
|
||||
|
Reference in New Issue
Block a user