Commit f04e0a10 authored by 李智书's avatar 李智书

1.提交更新;

parent 2663f553
......@@ -99,15 +99,20 @@ function postRequest(params, data = {}) {
} else {
duration = 3000
}
//token
let personalInfo = uni.getStorageSync("personalInfo");
params.header = {
// seesionID: personalInfo.seesionID || '',
// sessionid: personalInfo.seesionID || '',
// token: personalInfo.seesionID || '',
// wechattype: 1
};
data = Object.assign({
seesionID: personalInfo.seesionID || '',
sessionid: personalInfo.seesionID || '',
token: personalInfo.seesionID || '',
wechattype: 1
};
}, data)
params.method = "POST";
params.dataType = "JSON"
if (!params.url) {
......
......@@ -127,6 +127,7 @@
}
return outS;
}
let orderApi = 'https://dev-az-order-api.xiaopay.net'
export default {
name: "PayOrderDetails",
data() {
......@@ -206,7 +207,7 @@
async queryChargeProDetail() {
try {
let data = await this.$http.post({
url: 'https://dev-az-order-api.xiaopay.net/order-charge/app/charge/project/queryChargeProDetail'
url: orderApi + '/order-charge/app/charge/project/queryChargeProDetail'
}, {
"chargeId": this.allData.chargeId,
"schoolId": this.allData.schoolId,
......@@ -342,7 +343,7 @@
}
}
let data = await this.$http.post({
url: 'https://dev-az-order-api.xiaopay.net/order-charge/app/charge/project/createOrder'
url: orderApi + '/order-charge/app/charge/project/createOrder'
}, {
amount: this.selectCount * 100, // 金额 false
chargeItemIds: this.chargeItemIds.join(","), // 交费用项id集合多个交费项之间使用逗号分隔 false
......@@ -383,7 +384,7 @@
async getPayParams(prepayId) {
try {
let data = await this.$http.post({
url: 'https://dev-az-order-api.xiaopay.net/order-charge/app/charge/project/getPayParams'
url: orderApi + '/order-charge/app/charge/project/getPayParams'
}, prepayId)
if (data.code != 200 || !data.data) {
uni.showToast({
......@@ -412,7 +413,7 @@
async returnPaymentResult(tradeId) {
try {
let data = await this.$http.get({
url: 'https://dev-az-order-api.xiaopay.net/order-charge/app/charge/project/returnPaymentResult'
url: orderApi + '/order-charge/app/charge/project/returnPaymentResult'
}, {
tradeId
})
......
......@@ -78,6 +78,7 @@
<script>
// 时间处理模块
import dayjs from 'dayjs'
let orderApi = 'https://dev-az-order-api.xiaopay.net'
export default {
name: "PayProject",
data() {
......@@ -133,7 +134,7 @@
async getPayProject(index) {
try {
let data = await this.$http.post({
url: 'https://dev-az-order-api.xiaopay.net/order-charge/app/charge/project/queryChargeProjectPage'
url: orderApi + '/order-charge/app/charge/project/queryChargeProjectPage'
}, {
"pageCurrent": this.pageCurrent,
"pageSize": this.pageSize,
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment