修改本地连接

This commit is contained in:
2024-04-10 15:36:38 +08:00
parent 7249c430b8
commit cae7b2767f
15 changed files with 283 additions and 19 deletions

View File

@@ -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() {