From 65c4a68484a8d6fee25d3bb94bb7a24da6dfc147 Mon Sep 17 00:00:00 2001 From: Sanakey <714737083@qq.com> Date: 星期五, 06 十一月 2020 18:01:04 +0800 Subject: [PATCH] 优化小程序页面加载速度 --- pages/refund/refund.js | 27 +++++++++++++++------------ 1 files changed, 15 insertions(+), 12 deletions(-) diff --git a/pages/refund/refund.js b/pages/refund/refund.js index 2282109..ffde7d2 100644 --- a/pages/refund/refund.js +++ b/pages/refund/refund.js @@ -9,6 +9,7 @@ var doccode = ""; var rowid = ""; var mIndex = ""; +let formid = ''; Page({ @@ -96,24 +97,25 @@ }) }, - // inputChange:function(e){ - // var length = e.detail.value.length; - // this.setData({ - // inputLength:length - // }) - // }, + inputChange:function(e){ + let explain = e.detail.value; + this.setData({ + explain + }) + }, // 鎻愪氦鎸夐挳 submitForm:function(e){ - let reasonid = e.detail.value.why; - let hdmemo = e.detail.value.explain; + let reasonid = this.data.index; + // let reasonid = e.detail.value.why; + let hdmemo = this.data.explain; var that = this; var imageList = this.data.imageList; console.log(e.detail.value); - if (e.detail.value.why == null || e.detail.value.why == ""){ + if (reasonid == null || reasonid == ""){ utils.showTopTips(this,"璇烽�夋嫨閫�娆剧悊鐢�"); return false; } @@ -124,7 +126,7 @@ // wx.navigateTo({ // url: '../orderlistGuide/orderlistGuide', // }) - + // if (imageList.length==0){ // utils.showTopTips(this,"璇烽�夋嫨涓婁紶鍥剧墖"); // return false; @@ -173,7 +175,7 @@ } }) - + @@ -219,7 +221,8 @@ // price:sumPrice // }) - + console.log(options); + wx.request({ url: utils.getUrl('/shopping/pay/getReturnReasonList.do'), -- Gitblit v1.8.0