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

1.提交更新;

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