修改本地连接
This commit is contained in:
@@ -1,4 +1,5 @@
|
||||
import { getRechargeDetail } from "../../service/recharge";
|
||||
import { getRechargeOperateType, getRechargeOperateWay } from "../../utils/data";
|
||||
import request from "../../utils/request"
|
||||
const { OK } = request
|
||||
// pages/rechargeDetail/index.js
|
||||
@@ -21,7 +22,7 @@ Page({
|
||||
async init(id) {
|
||||
const { code, message, data } = await getRechargeDetail(id)
|
||||
this.setData({
|
||||
detail: data
|
||||
detail: { ...data, way: getRechargeOperateWay(data.way), type: getRechargeOperateType(data.type) }
|
||||
})
|
||||
},
|
||||
back() {
|
||||
|
Reference in New Issue
Block a user