|
|
@@ -9,7 +9,7 @@ Page({
|
|
|
// 物流公司选择
|
|
|
deliveryList:[],
|
|
|
expressId: 0, //物流公司id
|
|
|
-
|
|
|
+ loading:false,
|
|
|
expressName: '', //物流公司名称
|
|
|
expressNo: '', //物流单号
|
|
|
imgs: [], //图片凭证
|
|
|
@@ -49,8 +49,10 @@ Page({
|
|
|
*/
|
|
|
writeLogisticsMsg: function (e) {
|
|
|
wx.showLoading();
|
|
|
+ let that = this
|
|
|
+ if(this.loading) return
|
|
|
if (this.data.expressNo.length == 0) {
|
|
|
- wx.showToast({
|
|
|
+ return wx.showToast({
|
|
|
icon: 'none',
|
|
|
title: '请填写物流单号',
|
|
|
})
|
|
|
@@ -63,6 +65,7 @@ Page({
|
|
|
if (pics != '') {
|
|
|
pics = pics.substring(0, pics.length - 1)
|
|
|
}
|
|
|
+ this.loading = true
|
|
|
var parmas = {
|
|
|
url:this.data.type == 'edit'?"/refund/delivery/update": "/refund/delivery/save",
|
|
|
method: this.data.type == 'edit'?"PUT":"POST",
|
|
|
@@ -78,6 +81,7 @@ Page({
|
|
|
userId:wx.getStorageSync("loginResult").userId
|
|
|
},
|
|
|
callBack: (res) => {
|
|
|
+ that.loading = fasle
|
|
|
wx.hideLoading();
|
|
|
// 物流填写跳转页面
|
|
|
wx.navigateTo({
|