Commit 5e912f57 authored by 李智书's avatar 李智书

1.提交更新;

parent 06f349f8
......@@ -89,7 +89,8 @@ function request(params, data) {
function postRequest(params, data = {}) {
return new Promise((resolve, reject) => {
uni.showLoading({
title: params.Ltitle ? params.Ltitle : "加载中..."
title: params.Ltitle ? params.Ltitle : "加载中...",
mask: true
});
try {
//登录错误提示
......@@ -157,7 +158,8 @@ function postRequest(params, data = {}) {
function getRequest(params, data) {
return new Promise((resolve, reject) => {
uni.showLoading({
title: params.Ltitle ? params.Ltitle : "加载中..."
title: params.Ltitle ? params.Ltitle : "加载中...",
mask: true
});
try {
//token
......@@ -219,7 +221,8 @@ function getRequest(params, data) {
async function Login(params, data) {
try {
await uni.showLoading({
title: params.Ltitle ? params.Ltitle : "加载中..."
title: params.Ltitle ? params.Ltitle : "加载中...",
mask: true
});
params.method = "POST";
params.dataType = "JSON"
......
......@@ -325,6 +325,7 @@
async clickPay() {
try {
console.log(this.JSBridge);
this.dialogShow = false
if (this.selectCount == 0) {
uni.showToast({
icon: "none",
......@@ -424,11 +425,11 @@
payStatus
})
console.log(data)
if (data.code != 200 || !data.data) {
if (data.code != 200) {
uni.showToast({
icon: "none",
mask: true,
title: data.data.msg || "返回支付结果失败"
title: data.msg || "返回支付结果失败"
})
return
}
......
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