diff --git a/commons/js/config.js b/commons/js/config.js index dd26cfa..7eb5f8e 100644 --- a/commons/js/config.js +++ b/commons/js/config.js @@ -1,4 +1,4 @@ -const env = "d"; +const env = "p"; const version = 1, diff --git a/pages/distribute/storePoster/index.js b/pages/distribute/storePoster/index.js index 17a597c..84406cc 100644 --- a/pages/distribute/storePoster/index.js +++ b/pages/distribute/storePoster/index.js @@ -118,7 +118,9 @@ Page({ }) //上传图片-保存店铺海报 - 作废 - // wx.showLoading(); + // wx.showLoading({ + // title: '上传中', + // }) // wx.uploadFile({ // url:_.config.api.upImg, // filePath:res.tempFilePaths[0], diff --git a/pages/order/detail/index.js b/pages/order/detail/index.js index 8316d84..4cbb6c9 100644 --- a/pages/order/detail/index.js +++ b/pages/order/detail/index.js @@ -340,7 +340,9 @@ Page({ sourceType: ['album', 'camera'], // 可以指定来源是相册还是相机,默认二者都有 success(res) { - wx.showLoading(); + wx.showLoading({ + title: '上传中', + }) wx.uploadFile({ url:_.config.api.upImg, filePath:res.tempFilePaths[0], diff --git a/pages/order/detail/index2.js b/pages/order/detail/index2.js index 3ee8fe5..3baba57 100644 --- a/pages/order/detail/index2.js +++ b/pages/order/detail/index2.js @@ -214,7 +214,9 @@ Page({ sizeType: ['original', 'compressed'], // 可以指定是原图还是压缩图,默认二者都有 sourceType: ['album', 'camera'], // 可以指定来源是相册还是相机,默认二者都有 success(res) { - wx.showLoading(); + wx.showLoading({ + title: '上传中', + }) wx.uploadFile({ url:_.config.api.upImg, filePath:res.tempFilePaths[0], @@ -265,7 +267,9 @@ Page({ sizeType: ['original', 'compressed'], // 可以指定是原图还是压缩图,默认二者都有 sourceType: ['album', 'camera'], // 可以指定来源是相册还是相机,默认二者都有 success(res) { - wx.showLoading(); + wx.showLoading({ + title: '上传中', + }) wx.uploadFile({ url:_.config.api.upImg, filePath:res.tempFilePaths[0], @@ -316,7 +320,9 @@ Page({ sizeType: ['original', 'compressed'], // 可以指定是原图还是压缩图,默认二者都有 sourceType: ['album', 'camera'], // 可以指定来源是相册还是相机,默认二者都有 success(res) { - wx.showLoading(); + wx.showLoading({ + title: '上传中', + }) wx.uploadFile({ url:_.config.api.upImg, filePath:res.tempFilePaths[0], @@ -367,7 +373,9 @@ Page({ sizeType: ['original', 'compressed'], // 可以指定是原图还是压缩图,默认二者都有 sourceType: ['album', 'camera'], // 可以指定来源是相册还是相机,默认二者都有 success(res) { - wx.showLoading(); + wx.showLoading({ + title: '上传中', + }) wx.uploadFile({ url:_.config.api.upImg, filePath:res.tempFilePaths[0], @@ -409,7 +417,9 @@ Page({ sizeType: ['original', 'compressed'], // 可以指定是原图还是压缩图,默认二者都有 sourceType: ['album', 'camera'], // 可以指定来源是相册还是相机,默认二者都有 success(res) { - wx.showLoading(); + wx.showLoading({ + title: '上传中', + }) wx.uploadFile({ url:_.config.api.upImg, filePath:res.tempFilePaths[0], @@ -451,7 +461,9 @@ Page({ sizeType: ['original', 'compressed'], // 可以指定是原图还是压缩图,默认二者都有 sourceType: ['album', 'camera'], // 可以指定来源是相册还是相机,默认二者都有 success(res1) { - wx.showLoading(); + wx.showLoading({ + title: '上传中', + }) let ins_img=that.data.ins_img for (let i = 0; i < res1.tempFilePaths.length; i++) { //上传图片 @@ -513,7 +525,9 @@ Page({ sizeType: ['original', 'compressed'], // 可以指定是原图还是压缩图,默认二者都有 sourceType: ['album', 'camera'], // 可以指定来源是相册还是相机,默认二者都有 success(res1) { - wx.showLoading(); + wx.showLoading({ + title: '上传中', + }) let other_img=that.data.other_img for (let i = 0; i < res1.tempFilePaths.length; i++) { //上传图片 diff --git a/pages/order/editFinance/index.js b/pages/order/editFinance/index.js index 78c2194..bf90ae7 100644 --- a/pages/order/editFinance/index.js +++ b/pages/order/editFinance/index.js @@ -139,7 +139,9 @@ Page({ sizeType: ['original', 'compressed'], // 可以指定是原图还是压缩图,默认二者都有 sourceType: ['album', 'camera'], // 可以指定来源是相册还是相机,默认二者都有 success(res) { - wx.showLoading(); + wx.showLoading({ + title: '上传中', + }) wx.uploadFile({ url:_.config.api.upImg, filePath:res.tempFilePaths[0], @@ -174,7 +176,9 @@ Page({ sizeType: ['original', 'compressed'], // 可以指定是原图还是压缩图,默认二者都有 sourceType: ['album', 'camera'], // 可以指定来源是相册还是相机,默认二者都有 success(res) { - wx.showLoading(); + wx.showLoading({ + title: '上传中', + }) wx.uploadFile({ url:_.config.api.upImg, filePath:res.tempFilePaths[0], diff --git a/pages/order/editOwner/index.js b/pages/order/editOwner/index.js index 179bfe7..5fd95f4 100644 --- a/pages/order/editOwner/index.js +++ b/pages/order/editOwner/index.js @@ -246,7 +246,9 @@ Page({ sizeType: ['original', 'compressed'], // 可以指定是原图还是压缩图,默认二者都有 sourceType: ['album', 'camera'], // 可以指定来源是相册还是相机,默认二者都有 success(res) { - wx.showLoading(); + wx.showLoading({ + title: '识别中', + }) wx.uploadFile({ url:_.config.api.upImg, filePath:res.tempFilePaths[0], @@ -256,11 +258,11 @@ Page({ }, success: (resp) => { resp.data = JSON.parse(resp.data); - wx.hideLoading(); if (resp.data.code == 200) { let params = {}; params['img'] = resp.data.data.url; _.apiQuery.getAppIdcardInfo(params).then(res2 => { + wx.hideLoading(); that.setData({ owner_cardid:res2.data.IdNum, owner_name:res2.data.Name, @@ -269,6 +271,9 @@ Page({ }) } }, + fail: res => { + wx.hideLoading(); + } }) }, fail: res => { diff --git a/pages/order/register/index.js b/pages/order/register/index.js index 429ce2d..0d14904 100644 --- a/pages/order/register/index.js +++ b/pages/order/register/index.js @@ -1180,7 +1180,9 @@ Page({ sizeType: ['original', 'compressed'], // 可以指定是原图还是压缩图,默认二者都有 sourceType: ['album', 'camera'], // 可以指定来源是相册还是相机,默认二者都有 success(res) { - wx.showLoading(); + wx.showLoading({ + title: '识别中', + }) wx.uploadFile({ url:_.config.api.upImg, filePath:res.tempFilePaths[0], @@ -1190,11 +1192,11 @@ Page({ }, success: (resp) => { resp.data = JSON.parse(resp.data); - wx.hideLoading(); if (resp.data.code == 200) { let params = {}; params['img'] = resp.data.data.url; _.apiQuery.getAppIdcardInfo(params).then(res2 => { + wx.hideLoading(); that.setData({ cardid:res2.data.IdNum, name:res2.data.Name, @@ -1203,6 +1205,9 @@ Page({ }) } }, + fail: res => { + wx.hideLoading(); + } }) }, fail: res => { @@ -1222,7 +1227,9 @@ Page({ sizeType: ['original', 'compressed'], // 可以指定是原图还是压缩图,默认二者都有 sourceType: ['album', 'camera'], // 可以指定来源是相册还是相机,默认二者都有 success(res) { - wx.showLoading(); + wx.showLoading({ + title: '识别中', + }) wx.uploadFile({ url:_.config.api.upImg, filePath:res.tempFilePaths[0], @@ -1232,11 +1239,11 @@ Page({ }, success: (resp) => { resp.data = JSON.parse(resp.data); - wx.hideLoading(); if (resp.data.code == 200) { let params = {}; params['img'] = resp.data.data.url; _.apiQuery.getAppIdcardInfo(params).then(res2 => { + wx.hideLoading(); that.setData({ owner_cardid:res2.data.IdNum, owner_name:res2.data.Name, @@ -1245,6 +1252,9 @@ Page({ }) } }, + fail: res => { + wx.hideLoading(); + } }) }, fail: res => {