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

1.提交更新;

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