1 line
42 KiB
JavaScript
1 line
42 KiB
JavaScript
(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["pages-app-promotionMaterial-upload"],{"0975":function(e,t,n){(function(i){var o;n("c975"),n("ac1f"),n("466d"),n("5319"),n("1276");var r=n("5757");!function(i,r){o=function(){return r(i)}.call(t,n,t,e),void 0===o||(e.exports=o)}(window,(function(e,t){if(!e.jWeixin){var n,o,a={config:"preVerifyJSAPI",onMenuShareTimeline:"menu:share:timeline",onMenuShareAppMessage:"menu:share:appmessage",onMenuShareQQ:"menu:share:qq",onMenuShareWeibo:"menu:share:weiboApp",onMenuShareQZone:"menu:share:QZone",previewImage:"imagePreview",getLocation:"geoLocation",openProductSpecificView:"openProductViewWithPid",addCard:"batchAddCard",openCard:"batchViewCard",chooseWXPay:"getBrandWCPayRequest",openEnterpriseRedPacket:"getRecevieBizHongBaoRequest",startSearchBeacons:"startMonitoringBeacons",stopSearchBeacons:"stopMonitoringBeacons",onSearchBeacons:"onBeaconsInRange",consumeAndShareCard:"consumedShareCard",openAddress:"editAddress"},c=function(){var e={};for(var t in a)e[a[t]]=t;return e}(),s=e.document,l=s.title,u=navigator.userAgent.toLowerCase(),d=navigator.platform.toLowerCase(),f=!(!d.match("mac")&&!d.match("win")),p=-1!=u.indexOf("wxdebugger"),m=-1!=u.indexOf("micromessenger"),g=-1!=u.indexOf("android"),h=-1!=u.indexOf("iphone")||-1!=u.indexOf("ipad"),v=(o=u.match(/micromessenger\/(\d+\.\d+\.\d+)/)||u.match(/micromessenger\/(\d+\.\d+)/))?o[1]:"",b={initStartTime:j(),initEndTime:0,preVerifyStartTime:0,preVerifyEndTime:0},w={version:1,appId:"",initTime:0,preVerifyTime:0,networkType:"",isPreVerifyOk:1,systemType:h?1:g?2:-1,clientVersion:v,url:encodeURIComponent(location.href)},y={},x={_completes:[]},k={state:0,data:{}};V((function(){b.initEndTime=j()}));var _=!1,S=[],A=(n={config:function(t){B("config",y=t);var n=!1!==y.check;V((function(){if(n)C(a.config,{verifyJsApiList:O(y.jsApiList),verifyOpenTagList:O(y.openTagList)},function(){x._complete=function(e){b.preVerifyEndTime=j(),k.state=1,k.data=e},x.success=function(e){w.isPreVerifyOk=0},x.fail=function(e){x._fail?x._fail(e):k.state=-1};var e=x._completes;return e.push((function(){!function(){if(!(f||p||y.debug||v<"6.0.2"||w.systemType<0)){var e=new Image;w.appId=y.appId,w.initTime=b.initEndTime-b.initStartTime,w.preVerifyTime=b.preVerifyEndTime-b.preVerifyStartTime,A.getNetworkType({isInnerInvoke:!0,success:function(t){w.networkType=t.networkType;var n="https://open.weixin.qq.com/sdk/report?v="+w.version+"&o="+w.isPreVerifyOk+"&s="+w.systemType+"&c="+w.clientVersion+"&a="+w.appId+"&n="+w.networkType+"&i="+w.initTime+"&p="+w.preVerifyTime+"&u="+w.url;e.src=n}})}}()})),x.complete=function(t){for(var n=0,i=e.length;n<i;++n)e[n]();x._completes=[]},x}()),b.preVerifyStartTime=j();else{k.state=1;for(var e=x._completes,t=0,i=e.length;t<i;++t)e[t]();x._completes=[]}})),A.invoke||(A.invoke=function(t,n,i){e.WeixinJSBridge&&WeixinJSBridge.invoke(t,E(n),i)},A.on=function(t,n){e.WeixinJSBridge&&WeixinJSBridge.on(t,n)})},ready:function(e){0!=k.state?e():(x._completes.push(e),!m&&y.debug&&e())},error:function(e){v<"6.0.2"||(-1==k.state?e(k.data):x._fail=e)},checkJsApi:function(e){C("checkJsApi",{jsApiList:O(e.jsApiList)},(e._complete=function(e){if(g){var t=e.checkResult;t&&(e.checkResult=JSON.parse(t))}e=function(e){var t=e.checkResult;for(var n in t){var i=c[n];i&&(t[i]=t[n],delete t[n])}return e}(e)},e))},onMenuShareTimeline:function(e){M(a.onMenuShareTimeline,{complete:function(){C("shareTimeline",{title:e.title||l,desc:e.title||l,img_url:e.imgUrl||"",link:e.link||location.href,type:e.type||"link",data_url:e.dataUrl||""},e)}},e)},onMenuShareAppMessage:function(e){M(a.onMenuShareAppMessage,{complete:function(t){"favorite"===t.scene?C("sendAppMessage",{title:e.title||l,desc:e.desc||"",link:e.link||location.href,img_url:e.imgUrl||"",type:e.type||"link",data_url:e.dataUrl||""}):C("sendAppMessage",{title:e.title||l,desc:e.desc||"",link:e.link||location.href,img_url:e.imgUrl||"",type:e.type||"link",data_url:e.dataUrl||""},e)}},e)},onMenuShareQQ:function(e){M(a.onMenuShareQQ,{complete:function(){C("shareQQ",{title:e.title||l,desc:e.desc||"",img_url:e.imgUrl||"",link:e.link||location.href},e)}},e)},onMenuShareWeibo:function(e){M(a.onMenuShareWeibo,{complete:function(){C("shareWeiboApp",{title:e.title||l,desc:e.desc||"",img_url:e.imgUrl||"",link:e.link||location.href},e)}},e)},onMenuShareQZone:function(e){M(a.onMenuShareQZone,{complete:function(){C("shareQZone",{title:e.title||l,desc:e.desc||"",img_url:e.imgUrl||"",link:e.link||location.href},e)}},e)},updateTimelineShareData:function(e){C("updateTimelineShareData",{title:e.title,link:e.link,imgUrl:e.imgUrl},e)},updateAppMessageShareData:function(e){C("updateAppMessageShareData",{title:e.title,desc:e.desc,link:e.link,imgUrl:e.imgUrl},e)},startRecord:function(e){C("startRecord",{},e)},stopRecord:function(e){C("stopRecord",{},e)},onVoiceRecordEnd:function(e){M("onVoiceRecordEnd",e)},playVoice:function(e){C("playVoice",{localId:e.localId},e)},pauseVoice:function(e){C("pauseVoice",{localId:e.localId},e)},stopVoice:function(e){C("stopVoice",{localId:e.localId},e)},onVoicePlayEnd:function(e){M("onVoicePlayEnd",e)},uploadVoice:function(e){C("uploadVoice",{localId:e.localId,isShowProgressTips:0==e.isShowProgressTips?0:1},e)},downloadVoice:function(e){C("downloadVoice",{serverId:e.serverId,isShowProgressTips:0==e.isShowProgressTips?0:1},e)},translateVoice:function(e){C("translateVoice",{localId:e.localId,isShowProgressTips:0==e.isShowProgressTips?0:1},e)},chooseImage:function(e){C("chooseImage",{scene:"1|2",count:e.count||9,sizeType:e.sizeType||["original","compressed"],sourceType:e.sourceType||["album","camera"]},(e._complete=function(e){if(g){var t=e.localIds;try{t&&(e.localIds=JSON.parse(t))}catch(e){}}},e))},getLocation:function(e){},previewImage:function(e){C(a.previewImage,{current:e.current,urls:e.urls},e)},uploadImage:function(e){C("uploadImage",{localId:e.localId,isShowProgressTips:0==e.isShowProgressTips?0:1},e)},downloadImage:function(e){C("downloadImage",{serverId:e.serverId,isShowProgressTips:0==e.isShowProgressTips?0:1},e)},getLocalImgData:function(e){!1===_?(_=!0,C("getLocalImgData",{localId:e.localId},(e._complete=function(e){if(_=!1,0<S.length){var t=S.shift();wx.getLocalImgData(t)}},e))):S.push(e)},getNetworkType:function(e){C("getNetworkType",{},(e._complete=function(e){e=function(e){var t=e.errMsg;e.errMsg="getNetworkType:ok";var n=e.subtype;if(delete e.subtype,n)e.networkType=n;else{var i=t.indexOf(":"),o=t.substring(i+1);switch(o){case"wifi":case"edge":case"wwan":e.networkType=o;break;default:e.errMsg="getNetworkType:fail"}}return e}(e)},e))},openLocation:function(e){C("openLocation",{latitude:e.latitude,longitude:e.longitude,name:e.name||"",address:e.address||"",scale:e.scale||28,infoUrl:e.infoUrl||""},e)}},r(n,"getLocation",(function(e){C(a.getLocation,{type:(e=e||{}).type||"wgs84"},(e._complete=function(e){delete e.type},e))})),r(n,"hideOptionMenu",(function(e){C("hideOptionMenu",{},e)})),r(n,"showOptionMenu",(function(e){C("showOptionMenu",{},e)})),r(n,"closeWindow",(function(e){C("closeWindow",{},e=e||{})})),r(n,"hideMenuItems",(function(e){C("hideMenuItems",{menuList:e.menuList},e)})),r(n,"showMenuItems",(function(e){C("showMenuItems",{menuList:e.menuList},e)})),r(n,"hideAllNonBaseMenuItem",(function(e){C("hideAllNonBaseMenuItem",{},e)})),r(n,"showAllNonBaseMenuItem",(function(e){C("showAllNonBaseMenuItem",{},e)})),r(n,"scanQRCode",(function(e){C("scanQRCode",{needResult:(e=e||{}).needResult||0,scanType:e.scanType||["qrCode","barCode"]},(e._complete=function(e){if(h){var t=e.resultStr;if(t){var n=JSON.parse(t);e.resultStr=n&&n.scan_code&&n.scan_code.scan_result}}},e))})),r(n,"openAddress",(function(e){C(a.openAddress,{},(e._complete=function(e){e=function(e){return e.postalCode=e.addressPostalCode,delete e.addressPostalCode,e.provinceName=e.proviceFirstStageName,delete e.proviceFirstStageName,e.cityName=e.addressCitySecondStageName,delete e.addressCitySecondStageName,e.countryName=e.addressCountiesThirdStageName,delete e.addressCountiesThirdStageName,e.detailInfo=e.addressDetailInfo,delete e.addressDetailInfo,e}(e)},e))})),r(n,"openProductSpecificView",(function(e){C(a.openProductSpecificView,{pid:e.productId,view_type:e.viewType||0,ext_info:e.extInfo},e)})),r(n,"addCard",(function(e){for(var t=e.cardList,n=[],i=0,o=t.length;i<o;++i){var r=t[i],c={card_id:r.cardId,card_ext:r.cardExt};n.push(c)}C(a.addCard,{card_list:n},(e._complete=function(e){var t=e.card_list;if(t){for(var n=0,i=(t=JSON.parse(t)).length;n<i;++n){var o=t[n];o.cardId=o.card_id,o.cardExt=o.card_ext,o.isSuccess=!!o.is_succ,delete o.card_id,delete o.card_ext,delete o.is_succ}e.cardList=t,delete e.card_list}},e))})),r(n,"chooseCard",(function(e){C("chooseCard",{app_id:y.appId,location_id:e.shopId||"",sign_type:e.signType||"SHA1",card_id:e.cardId||"",card_type:e.cardType||"",card_sign:e.cardSign,time_stamp:e.timestamp+"",nonce_str:e.nonceStr},(e._complete=function(e){e.cardList=e.choose_card_info,delete e.choose_card_info},e))})),r(n,"openCard",(function(e){for(var t=e.cardList,n=[],i=0,o=t.length;i<o;++i){var r=t[i],c={card_id:r.cardId,code:r.code};n.push(c)}C(a.openCard,{card_list:n},e)})),r(n,"consumeAndShareCard",(function(e){C(a.consumeAndShareCard,{consumedCardId:e.cardId,consumedCode:e.code},e)})),r(n,"chooseWXPay",(function(e){C(a.chooseWXPay,P(e),e)})),r(n,"openEnterpriseRedPacket",(function(e){C(a.openEnterpriseRedPacket,P(e),e)})),r(n,"startSearchBeacons",(function(e){C(a.startSearchBeacons,{ticket:e.ticket},e)})),r(n,"stopSearchBeacons",(function(e){C(a.stopSearchBeacons,{},e)})),r(n,"onSearchBeacons",(function(e){M(a.onSearchBeacons,e)})),r(n,"openEnterpriseChat",(function(e){C("openEnterpriseChat",{useridlist:e.userIds,chatname:e.groupName},e)})),r(n,"launchMiniProgram",(function(e){C("launchMiniProgram",{targetAppId:e.targetAppId,path:function(e){if("string"==typeof e&&0<e.length){var t=e.split("?")[0],n=e.split("?")[1];return t+=".html",void 0!==n?t+"?"+n:t}}(e.path),envVersion:e.envVersion},e)})),r(n,"openBusinessView",(function(e){C("openBusinessView",{businessType:e.businessType,queryString:e.queryString||"",envVersion:e.envVersion},(e._complete=function(e){if(g){var t=e.extraData;if(t)try{e.extraData=JSON.parse(t)}catch(t){e.extraData={}}}},e))})),r(n,"miniProgram",{navigateBack:function(e){e=e||{},V((function(){C("invokeMiniProgramAPI",{name:"navigateBack",arg:{delta:e.delta||1}},e)}))},navigateTo:function(e){V((function(){C("invokeMiniProgramAPI",{name:"navigateTo",arg:{url:e.url}},e)}))},redirectTo:function(e){V((function(){C("invokeMiniProgramAPI",{name:"redirectTo",arg:{url:e.url}},e)}))},switchTab:function(e){V((function(){C("invokeMiniProgramAPI",{name:"switchTab",arg:{url:e.url}},e)}))},reLaunch:function(e){V((function(){C("invokeMiniProgramAPI",{name:"reLaunch",arg:{url:e.url}},e)}))},postMessage:function(e){V((function(){C("invokeMiniProgramAPI",{name:"postMessage",arg:e.data||{}},e)}))},getEnv:function(t){V((function(){t({miniprogram:"miniprogram"===e.__wxjs_environment})}))}}),n),I=1,T={};return s.addEventListener("error",(function(e){if(!g){var t=e.target,n=t.tagName,i=t.src;if(("IMG"==n||"VIDEO"==n||"AUDIO"==n||"SOURCE"==n)&&-1!=i.indexOf("wxlocalresource://")){e.preventDefault(),e.stopPropagation();var o=t["wx-id"];if(o||(o=I++,t["wx-id"]=o),T[o])return;T[o]=!0,wx.ready((function(){wx.getLocalImgData({localId:i,success:function(e){t.src=e.localData}})}))}}}),!0),s.addEventListener("load",(function(e){if(!g){var t=e.target,n=t.tagName;if(t.src,"IMG"==n||"VIDEO"==n||"AUDIO"==n||"SOURCE"==n){var i=t["wx-id"];i&&(T[i]=!1)}}}),!0),t&&(e.wx=e.jWeixin=A),A}function C(t,n,i){e.WeixinJSBridge?WeixinJSBridge.invoke(t,E(n),(function(e){L(t,e,i)})):B(t,i)}function M(t,n,i){e.WeixinJSBridge?WeixinJSBridge.on(t,(function(e){i&&i.trigger&&i.trigger(e),L(t,e,n)})):B(t,i||n)}function E(e){return(e=e||{}).appId=y.appId,e.verifyAppId=y.appId,e.verifySignType="sha1",e.verifyTimestamp=y.timestamp+"",e.verifyNonceStr=y.nonceStr,e.verifySignature=y.signature,e}function P(e){return{timeStamp:e.timestamp+"",nonceStr:e.nonceStr,package:e.package,paySign:e.paySign,signType:e.signType||"SHA1"}}function L(e,t,n){"openEnterpriseChat"!=e&&"openBusinessView"!==e||(t.errCode=t.err_code),delete t.err_code,delete t.err_desc,delete t.err_detail;var i=t.errMsg;i||(i=t.err_msg,delete t.err_msg,i=function(e,t){var n=e,i=c[n];i&&(n=i);var o="ok";if(t){var r=t.indexOf(":");"confirm"==(o=t.substring(r+1))&&(o="ok"),"failed"==o&&(o="fail"),-1!=o.indexOf("failed_")&&(o=o.substring(7)),-1!=o.indexOf("fail_")&&(o=o.substring(5)),"access denied"!=(o=(o=o.replace(/_/g," ")).toLowerCase())&&"no permission to execute"!=o||(o="permission denied"),"config"==n&&"function not exist"==o&&(o="ok"),""==o&&(o="fail")}return n+":"+o}(e,i),t.errMsg=i),(n=n||{})._complete&&(n._complete(t),delete n._complete),i=t.errMsg||"",y.debug&&!n.isInnerInvoke&&alert(JSON.stringify(t));var o=i.indexOf(":");switch(i.substring(o+1)){case"ok":n.success&&n.success(t);break;case"cancel":n.cancel&&n.cancel(t);break;default:n.fail&&n.fail(t)}n.complete&&n.complete(t)}function O(e){if(e){for(var t=0,n=e.length;t<n;++t){var i=e[t],o=a[i];o&&(e[t]=o)}return e}}function B(e,t){if(!(!y.debug||t&&t.isInnerInvoke)){var n=c[e];n&&(e=n),t&&t._complete&&delete t._complete,i("log",'"'+e+'",',t||""," at weixin.js:1")}}function j(){return(new Date).getTime()}function V(t){m&&(e.WeixinJSBridge?t():s.addEventListener&&s.addEventListener("WeixinJSBridgeReady",t,!1))}}))}).call(this,n("0de9")["log"])},"150a":function(e,t){e.exports="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABAAAAAQCAYAAAAf8/9hAAAA5UlEQVQ4T2NkQAP3fTXs//1njPvP8N+BkYFBCST9n4HhHiMD4wEmxv+LFDffOIishRGZc89HY9Z/BoZUdEPRNMxW2nIjDSYGN+COj8YORgYGd3yaYXL/GRh2qmy54QHigw0gxmZ0gxkZGMAuYYT4meEAMTajq2FiZHBgvOujOZeB4X8SOQYwMDDOY7zjo3EXFtqkGgKOnbs+Gv9hGsVKexm4jG3xmvPt7GGGV93FcDUoBvD7xTGwyijiNeD3k/sMHzctQhhABS9QGIgURyPFCQkWGhQlZZghxCRpWBLGyEwwAVKzMwB5V2gPAYXmLgAAAABJRU5ErkJggg=="},1785:function(e,t,n){"use strict";n.r(t);var i=n("e76c"),o=n("6692");for(var r in o)"default"!==r&&function(e){n.d(t,e,(function(){return o[e]}))}(r);n("7920");var a,c=n("f0c5"),s=Object(c["a"])(o["default"],i["b"],i["c"],!1,null,"0e86e7eb",null,!1,i["a"],a);t["default"]=s.exports},"17fe":function(e,t,n){var i=n("24fb");t=i(!1),t.push([e.i,"uni-page-body[data-v-ac55b180]{background-color:#fff}.submit-box[data-v-ac55b180]{display:-webkit-box;display:-webkit-flex;display:flex;margin-right:%?15?%}.submit-box uni-button[data-v-ac55b180]{margin-left:%?15?%;-webkit-box-orient:horizontal;-webkit-box-direction:normal;-webkit-flex-direction:row;flex-direction:row;width:100%;-webkit-box-pack:justify;-webkit-justify-content:space-between;justify-content:space-between}.notice-box[data-v-ac55b180]{padding:0 %?15?%}.upload-box[data-v-ac55b180]{padding-left:%?15?%}.uni-form-item[data-v-ac55b180]{border-bottom:1px solid #f1f1f1;padding-top:%?20?%;padding-bottom:%?20?%}.title[data-v-ac55b180]{color:#888}.uni-input[data-v-ac55b180]{color:#222;padding:4px 12px 6px 12px;line-height:1.8}body.?%PAGE?%[data-v-ac55b180]{background-color:#fff}",""]),e.exports=t},"1eeb":function(e,t,n){var i=n("2f95");"string"===typeof i&&(i=[[e.i,i,""]]),i.locals&&(e.exports=i.locals);var o=n("4f06").default;o("4c1261b4",i,!0,{sourceMap:!1,shadowMode:!1})},"2f95":function(e,t,n){var i=n("24fb");t=i(!1),t.push([e.i,".w-100[data-v-626772f6]{width:100%}.flex[data-v-626772f6]{\n\t/* 转为弹性盒模型*/display:-webkit-box;display:-webkit-flex;display:flex}.flex_bet[data-v-626772f6]{\n\t/* 两端左右*/display:-webkit-box;display:-webkit-flex;display:flex;-webkit-box-pack:justify;-webkit-justify-content:space-between;justify-content:space-between}.flex_wrap[data-v-626772f6]{\n\t/* 转为弹性盒模型并自动换行*/display:-webkit-box;display:-webkit-flex;display:flex;-webkit-flex-wrap:wrap;flex-wrap:wrap}.upload-img-view[data-v-626772f6]{height:%?200?%;width:31.5%;-webkit-border-radius:0;border-radius:0;border:%?1?% solid #f1f1f1;display:-webkit-box;display:-webkit-flex;display:flex;-webkit-box-pack:center;-webkit-justify-content:center;justify-content:center;-webkit-box-align:center;-webkit-align-items:center;align-items:center}.upload-img-view>uni-image[data-v-626772f6]{width:%?60?%;height:%?60?%}.imgs-view[data-v-626772f6]{height:%?200?%;width:32%;-webkit-border-radius:0;border-radius:0;margin-right:%?12?%;margin-bottom:%?12?%;border:%?1?% solid #f1f1f1;-webkit-box-sizing:border-box;box-sizing:border-box;position:relative}.imgs-view[data-v-626772f6]:last-child{margin-right:0}.imgs-view>uni-image[data-v-626772f6]{width:100%;height:100%;-webkit-border-radius:0;border-radius:0}.tip[data-v-626772f6]{font-size:%?24?%;color:#999;margin-top:%?12?%}.tip > uni-label[data-v-626772f6]{color:#009100}.del-btn[data-v-626772f6]{position:absolute;top:%?2?%;right:%?2?%;width:%?32?%;height:%?32?%;z-index:999}.del-btn>uni-image[data-v-626772f6]{width:100%;height:100%;display:-webkit-box;display:-webkit-flex;display:flex}",""]),e.exports=t},"401d":function(e,t,n){"use strict";n.r(t);var i=n("a0780"),o=n("c0b5");for(var r in o)"default"!==r&&function(e){n.d(t,e,(function(){return o[e]}))}(r);n("cffe");var a,c=n("f0c5"),s=Object(c["a"])(o["default"],i["b"],i["c"],!1,null,"ac55b180",null,!1,i["a"],a);t["default"]=s.exports},"539d":function(e,t,n){var i=n("17fe");"string"===typeof i&&(i=[[e.i,i,""]]),i.locals&&(e.exports=i.locals);var o=n("4f06").default;o("70d97201",i,!0,{sourceMap:!1,shadowMode:!1})},"54f8":function(e,t,n){"use strict";n.r(t),n.d(t,"default",(function(){return o}));n("a4d3"),n("e01a"),n("d28b"),n("e260"),n("d3b7"),n("3ca3"),n("ddb0");var i=n("dde1");function o(e){if("undefined"===typeof Symbol||null==e[Symbol.iterator]){if(Array.isArray(e)||(e=Object(i["a"])(e))){var t=0,n=function(){};return{s:n,n:function(){return t>=e.length?{done:!0}:{done:!1,value:e[t++]}},e:function(e){throw e},f:n}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var o,r,a=!0,c=!1;return{s:function(){o=e[Symbol.iterator]()},n:function(){var e=o.next();return a=e.done,e},e:function(e){c=!0,r=e},f:function(){try{a||null==o["return"]||o["return"]()}finally{if(c)throw r}}}}},5757:function(e,t){function n(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}e.exports=n},"57d8":function(e,t,n){"use strict";n.r(t);var i=n("bed9"),o=n.n(i);for(var r in i)"default"!==r&&function(e){n.d(t,e,(function(){return i[e]}))}(r);t["default"]=o.a},"58fb":function(e,t,n){"use strict";var i=n("1eeb"),o=n.n(i);o.a},6692:function(e,t,n){"use strict";n.r(t);var i=n("a6c2"),o=n.n(i);for(var r in i)"default"!==r&&function(e){n.d(t,e,(function(){return i[e]}))}(r);t["default"]=o.a},7920:function(e,t,n){"use strict";var i=n("c782"),o=n.n(i);o.a},"8e39":function(e,t,n){var i=n("24fb");t=i(!1),t.push([e.i,".uni-noticebar[data-v-0e86e7eb]{\ndisplay:-webkit-box;display:-webkit-flex;display:flex;width:100%;-webkit-box-sizing:border-box;box-sizing:border-box;\n-webkit-box-orient:horizontal;-webkit-box-direction:normal;-webkit-flex-direction:row;flex-direction:row;-webkit-box-align:center;-webkit-align-items:center;align-items:center;padding:6px 12px;margin-bottom:10px}.uni-noticebar-close[data-v-0e86e7eb]{margin-right:5px}.uni-noticebar-icon[data-v-0e86e7eb]{margin-right:5px}.uni-noticebar__content-wrapper[data-v-0e86e7eb]{-webkit-box-flex:1;-webkit-flex:1;flex:1;-webkit-box-orient:vertical;-webkit-box-direction:normal;-webkit-flex-direction:column;flex-direction:column;overflow:hidden}.uni-noticebar__content-wrapper--single[data-v-0e86e7eb]{\nline-height:18px\n}.uni-noticebar__content-wrapper--single[data-v-0e86e7eb],\n.uni-noticebar__content-wrapper--scrollable[data-v-0e86e7eb]{-webkit-box-orient:horizontal;-webkit-box-direction:normal;-webkit-flex-direction:row;flex-direction:row}\n.uni-noticebar__content-wrapper--scrollable[data-v-0e86e7eb]{position:relative;height:18px}\n.uni-noticebar__content--scrollable[data-v-0e86e7eb]{\n\n\n-webkit-box-flex:1;-webkit-flex:1;flex:1;display:block;overflow:hidden\n}.uni-noticebar__content--single[data-v-0e86e7eb]{\ndisplay:-webkit-box;display:-webkit-flex;display:flex;-webkit-box-flex:0;-webkit-flex:none;flex:none;width:100%;-webkit-box-pack:center;-webkit-justify-content:center;justify-content:center\n}.uni-noticebar__content-text[data-v-0e86e7eb]{font-size:14px;line-height:18px;\nword-break:break-all\n}.uni-noticebar__content-text--single[data-v-0e86e7eb]{\n\n\ndisplay:block;width:100%;white-space:nowrap;\noverflow:hidden;text-overflow:ellipsis}.uni-noticebar__content-text--scrollable[data-v-0e86e7eb]{\n\n\nposition:absolute;display:block;height:18px;line-height:18px;white-space:nowrap;padding-left:100%;-webkit-animation:notice-data-v-0e86e7eb 10s 0s linear infinite both;animation:notice-data-v-0e86e7eb 10s 0s linear infinite both;-webkit-animation-play-state:paused;animation-play-state:paused\n}.uni-noticebar__more[data-v-0e86e7eb]{\ndisplay:-webkit-inline-box;display:-webkit-inline-flex;display:inline-flex;\n-webkit-box-orient:horizontal;-webkit-box-direction:normal;-webkit-flex-direction:row;flex-direction:row;-webkit-flex-wrap:nowrap;flex-wrap:nowrap;-webkit-box-align:center;-webkit-align-items:center;align-items:center;padding-left:5px}.uni-noticebar__more-text[data-v-0e86e7eb]{font-size:14px}@-webkit-keyframes notice-data-v-0e86e7eb{100%{-webkit-transform:translate3d(-100%,0,0);transform:translate3d(-100%,0,0)}}@keyframes notice-data-v-0e86e7eb{100%{-webkit-transform:translate3d(-100%,0,0);transform:translate3d(-100%,0,0)}}",""]),e.exports=t},"96cf":function(e,t){!function(t){"use strict";var n,i=Object.prototype,o=i.hasOwnProperty,r="function"===typeof Symbol?Symbol:{},a=r.iterator||"@@iterator",c=r.asyncIterator||"@@asyncIterator",s=r.toStringTag||"@@toStringTag",l="object"===typeof e,u=t.regeneratorRuntime;if(u)l&&(e.exports=u);else{u=t.regeneratorRuntime=l?e.exports:{},u.wrap=y;var d="suspendedStart",f="suspendedYield",p="executing",m="completed",g={},h={};h[a]=function(){return this};var v=Object.getPrototypeOf,b=v&&v(v(L([])));b&&b!==i&&o.call(b,a)&&(h=b);var w=S.prototype=k.prototype=Object.create(h);_.prototype=w.constructor=S,S.constructor=_,S[s]=_.displayName="GeneratorFunction",u.isGeneratorFunction=function(e){var t="function"===typeof e&&e.constructor;return!!t&&(t===_||"GeneratorFunction"===(t.displayName||t.name))},u.mark=function(e){return Object.setPrototypeOf?Object.setPrototypeOf(e,S):(e.__proto__=S,s in e||(e[s]="GeneratorFunction")),e.prototype=Object.create(w),e},u.awrap=function(e){return{__await:e}},A(I.prototype),I.prototype[c]=function(){return this},u.AsyncIterator=I,u.async=function(e,t,n,i){var o=new I(y(e,t,n,i));return u.isGeneratorFunction(t)?o:o.next().then((function(e){return e.done?e.value:o.next()}))},A(w),w[s]="Generator",w[a]=function(){return this},w.toString=function(){return"[object Generator]"},u.keys=function(e){var t=[];for(var n in e)t.push(n);return t.reverse(),function n(){while(t.length){var i=t.pop();if(i in e)return n.value=i,n.done=!1,n}return n.done=!0,n}},u.values=L,P.prototype={constructor:P,reset:function(e){if(this.prev=0,this.next=0,this.sent=this._sent=n,this.done=!1,this.delegate=null,this.method="next",this.arg=n,this.tryEntries.forEach(E),!e)for(var t in this)"t"===t.charAt(0)&&o.call(this,t)&&!isNaN(+t.slice(1))&&(this[t]=n)},stop:function(){this.done=!0;var e=this.tryEntries[0],t=e.completion;if("throw"===t.type)throw t.arg;return this.rval},dispatchException:function(e){if(this.done)throw e;var t=this;function i(i,o){return c.type="throw",c.arg=e,t.next=i,o&&(t.method="next",t.arg=n),!!o}for(var r=this.tryEntries.length-1;r>=0;--r){var a=this.tryEntries[r],c=a.completion;if("root"===a.tryLoc)return i("end");if(a.tryLoc<=this.prev){var s=o.call(a,"catchLoc"),l=o.call(a,"finallyLoc");if(s&&l){if(this.prev<a.catchLoc)return i(a.catchLoc,!0);if(this.prev<a.finallyLoc)return i(a.finallyLoc)}else if(s){if(this.prev<a.catchLoc)return i(a.catchLoc,!0)}else{if(!l)throw new Error("try statement without catch or finally");if(this.prev<a.finallyLoc)return i(a.finallyLoc)}}}},abrupt:function(e,t){for(var n=this.tryEntries.length-1;n>=0;--n){var i=this.tryEntries[n];if(i.tryLoc<=this.prev&&o.call(i,"finallyLoc")&&this.prev<i.finallyLoc){var r=i;break}}r&&("break"===e||"continue"===e)&&r.tryLoc<=t&&t<=r.finallyLoc&&(r=null);var a=r?r.completion:{};return a.type=e,a.arg=t,r?(this.method="next",this.next=r.finallyLoc,g):this.complete(a)},complete:function(e,t){if("throw"===e.type)throw e.arg;return"break"===e.type||"continue"===e.type?this.next=e.arg:"return"===e.type?(this.rval=this.arg=e.arg,this.method="return",this.next="end"):"normal"===e.type&&t&&(this.next=t),g},finish:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var n=this.tryEntries[t];if(n.finallyLoc===e)return this.complete(n.completion,n.afterLoc),E(n),g}},catch:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var n=this.tryEntries[t];if(n.tryLoc===e){var i=n.completion;if("throw"===i.type){var o=i.arg;E(n)}return o}}throw new Error("illegal catch attempt")},delegateYield:function(e,t,i){return this.delegate={iterator:L(e),resultName:t,nextLoc:i},"next"===this.method&&(this.arg=n),g}}}function y(e,t,n,i){var o=t&&t.prototype instanceof k?t:k,r=Object.create(o.prototype),a=new P(i||[]);return r._invoke=T(e,n,a),r}function x(e,t,n){try{return{type:"normal",arg:e.call(t,n)}}catch(i){return{type:"throw",arg:i}}}function k(){}function _(){}function S(){}function A(e){["next","throw","return"].forEach((function(t){e[t]=function(e){return this._invoke(t,e)}}))}function I(e){function t(n,i,r,a){var c=x(e[n],e,i);if("throw"!==c.type){var s=c.arg,l=s.value;return l&&"object"===typeof l&&o.call(l,"__await")?Promise.resolve(l.__await).then((function(e){t("next",e,r,a)}),(function(e){t("throw",e,r,a)})):Promise.resolve(l).then((function(e){s.value=e,r(s)}),(function(e){return t("throw",e,r,a)}))}a(c.arg)}var n;function i(e,i){function o(){return new Promise((function(n,o){t(e,i,n,o)}))}return n=n?n.then(o,o):o()}this._invoke=i}function T(e,t,n){var i=d;return function(o,r){if(i===p)throw new Error("Generator is already running");if(i===m){if("throw"===o)throw r;return O()}n.method=o,n.arg=r;while(1){var a=n.delegate;if(a){var c=C(a,n);if(c){if(c===g)continue;return c}}if("next"===n.method)n.sent=n._sent=n.arg;else if("throw"===n.method){if(i===d)throw i=m,n.arg;n.dispatchException(n.arg)}else"return"===n.method&&n.abrupt("return",n.arg);i=p;var s=x(e,t,n);if("normal"===s.type){if(i=n.done?m:f,s.arg===g)continue;return{value:s.arg,done:n.done}}"throw"===s.type&&(i=m,n.method="throw",n.arg=s.arg)}}}function C(e,t){var i=e.iterator[t.method];if(i===n){if(t.delegate=null,"throw"===t.method){if(e.iterator.return&&(t.method="return",t.arg=n,C(e,t),"throw"===t.method))return g;t.method="throw",t.arg=new TypeError("The iterator does not provide a 'throw' method")}return g}var o=x(i,e.iterator,t.arg);if("throw"===o.type)return t.method="throw",t.arg=o.arg,t.delegate=null,g;var r=o.arg;return r?r.done?(t[e.resultName]=r.value,t.next=e.nextLoc,"return"!==t.method&&(t.method="next",t.arg=n),t.delegate=null,g):r:(t.method="throw",t.arg=new TypeError("iterator result is not an object"),t.delegate=null,g)}function M(e){var t={tryLoc:e[0]};1 in e&&(t.catchLoc=e[1]),2 in e&&(t.finallyLoc=e[2],t.afterLoc=e[3]),this.tryEntries.push(t)}function E(e){var t=e.completion||{};t.type="normal",delete t.arg,e.completion=t}function P(e){this.tryEntries=[{tryLoc:"root"}],e.forEach(M,this),this.reset(!0)}function L(e){if(e){var t=e[a];if(t)return t.call(e);if("function"===typeof e.next)return e;if(!isNaN(e.length)){var i=-1,r=function t(){while(++i<e.length)if(o.call(e,i))return t.value=e[i],t.done=!1,t;return t.value=n,t.done=!0,t};return r.next=r}}return{next:O}}function O(){return{value:n,done:!0}}}(function(){return this||"object"===typeof self&&self}()||Function("return this")())},"971e":function(e,t,n){"use strict";var i,o=function(){var e=this,t=e.$createElement,i=e._self._c||t;return i("v-uni-view",{staticClass:"w-100"},[i("v-uni-view",{staticClass:"w-100 flex_wrap"},[e._l(e.imgArray,(function(t,o){return i("v-uni-view",{key:o,staticClass:"imgs-view"},[i("v-uni-image",{attrs:{src:t},on:{click:function(n){arguments[0]=n=e.$handleEvent(n),e.preview(t,o)}}}),i("v-uni-view",{staticClass:"del-btn",on:{click:function(t){arguments[0]=t=e.$handleEvent(t),e.delImg(o)}}},[i("v-uni-image",{attrs:{src:n("150a")}})],1)],1)})),e.imgArray.length<e.imgCount?i("v-uni-view",{staticClass:"upload-img-view flex_xy_center",on:{click:function(t){arguments[0]=t=e.$handleEvent(t),e.upPhoto.apply(void 0,arguments)}}},[i("v-uni-image",{attrs:{src:n("b0c4")}})],1):e._e()],2),i("v-uni-view",{staticClass:"tip"},[e._v("* 最多上传"+e._s(e.imgCount)+"张图片("),i("v-uni-label",[e._v(e._s(e.imgArray.length))]),e._v("/"+e._s(e.imgCount)+")")],1)],1)},r=[];n.d(t,"b",(function(){return o})),n.d(t,"c",(function(){return r})),n.d(t,"a",(function(){return i}))},a0780:function(e,t,n){"use strict";var i={uniNoticeBar:n("1785").default},o=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("v-uni-view",[n("v-uni-view",{staticClass:"upload-box"},[n("v-uni-view",{staticClass:"uni-form-item"},[n("v-uni-view",{staticClass:"title"},[e._v("位置信息")]),n("v-uni-input",{staticClass:"uni-input",attrs:{disabled:"disabled"},model:{value:e.location,callback:function(t){e.location=t},expression:"location"}})],1),n("v-uni-view",{staticClass:"uni-form-item"},[n("v-uni-view",{staticClass:"title"},[e._v("门店名称")]),n("v-uni-input",{staticClass:"uni-input",attrs:{placeholder:"请输入门店名称"},model:{value:e.name,callback:function(t){e.name=t},expression:"name"}})],1),n("v-uni-view",{staticClass:"uni-form-item",staticStyle:{border:"0"}},[n("img-upload",{ref:"imgUpload",attrs:{imgArr:e.images,imgCount:"3"}})],1)],1),n("v-uni-view",{staticClass:"notice-box"},[n("uni-notice-bar",{attrs:{"show-close":!0,single:!0,text:"页面将在"+e.second+"秒后失效"}})],1),n("v-uni-view",{staticClass:"submit-box"},[n("v-uni-button",{attrs:{type:"primary"},on:{click:function(t){arguments[0]=t=e.$handleEvent(t),e.submit.apply(void 0,arguments)}}},[e._v("提交")]),n("v-uni-button",{attrs:{type:"info"},on:{click:function(t){arguments[0]=t=e.$handleEvent(t),e.refresh.apply(void 0,arguments)}}},[e._v("刷新")])],1)],1)},r=[];n.d(t,"b",(function(){return o})),n.d(t,"c",(function(){return r})),n.d(t,"a",(function(){return i}))},a6c2:function(e,t,n){"use strict";var i=n("ee27");n("a9e3"),n("d3b7"),n("ac1f"),n("25f0"),n("3ca3"),n("ddb0"),Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var o=i(n("8ad6")),r={name:"UniNoticeBar",components:{uniIcons:o.default},props:{text:{type:String,default:""},moreText:{type:String,default:""},backgroundColor:{type:String,default:"#fffbe8"},speed:{type:Number,default:100},color:{type:String,default:"#de8c17"},moreColor:{type:String,default:"#999999"},single:{type:[Boolean,String],default:!1},scrollable:{type:[Boolean,String],default:!1},showIcon:{type:[Boolean,String],default:!1},showGetMore:{type:[Boolean,String],default:!1},showClose:{type:[Boolean,String],default:!1}},data:function(){var e="Uni_".concat(Math.ceil(1e6*Math.random()).toString(36)),t="Uni_".concat(Math.ceil(1e6*Math.random()).toString(36));return{textWidth:0,boxWidth:0,wrapWidth:"",webviewHide:!1,elId:e,elIdBox:t,show:!0,animationDuration:"none",animationPlayState:"paused",animationDelay:"0s"}},mounted:function(){var e=this;this.$nextTick((function(){e.initSize()}))},methods:{initSize:function(){var e=this;if(this.scrollable){var t=[],n=new Promise((function(t,n){uni.createSelectorQuery().in(e).select("#".concat(e.elId)).boundingClientRect().exec((function(n){e.textWidth=n[0].width,t()}))})),i=new Promise((function(t,n){uni.createSelectorQuery().in(e).select("#".concat(e.elIdBox)).boundingClientRect().exec((function(n){e.boxWidth=n[0].width,t()}))}));t.push(n),t.push(i),Promise.all(t).then((function(){e.animationDuration="".concat(e.textWidth/e.speed,"s"),e.animationDelay="-".concat(e.boxWidth/e.speed,"s"),setTimeout((function(){e.animationPlayState="running"}),1e3)}))}},loopAnimation:function(){},clickMore:function(){this.$emit("getmore")},close:function(){this.show=!1,this.$emit("close")},onClick:function(){this.$emit("click")}}};t.default=r},b0c4:function(e,t){e.exports="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAB4AAAAeCAYAAAA7MK6iAAAArklEQVRIS2NkGCDAOED2Mgw9i9vb2xVAoVVZWfmAnFAj28ddXV33QRaWlZUp0tvi/1CLyXI8WZpAFnZ1dY1aTFJUjwY10cE1mriIDiqoQpTEBSoGmZmZ9zMwMICLQyqC08zMzDHFxcW3YGYODotJ8eFo4iIltEBqR0suokNsNHERHVTYSi5SNA9kUJ+CtrnMSHEw1iKTFAN6e3vVQOqRy19S9JOdj0mxBJvakWcxAFpiZB+QSLWnAAAAAElFTkSuQmCC"},b6802:function(e,t,n){"use strict";function i(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,i=new Array(t);n<t;n++)i[n]=e[n];return i}n.d(t,"a",(function(){return i}))},bed9:function(e,t,n){"use strict";var i=n("ee27");n("99af"),n("45fc"),n("a434"),n("a9e3"),n("ac1f"),n("3ca3"),n("1276"),n("ddb0"),Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0,n("96cf");var o=i(n("c964")),r=i(n("d0ff")),a=i(n("54f8")),c={name:"imgUpload",props:{imgArr:{type:[Array]},uploadImgCount:{type:String,default:"3"},imgCount:{type:String,default:"3"},imgSize:{type:Number,default:10},imgType:{type:[Array],default:function(){return["jpeg","png","jpg"]}}},created:function(){this.imgArray=this.imgArr},data:function(){return{imgArray:[]}},watch:{},methods:{upPhoto:function(){var e=this;Number(e.imgCount-e.imgArray.length)<Number(e.uploadImgCount)&&(e.uploadImgCount=Number(e.imgCount-e.imgArray.length)),uni.chooseImage({count:Number(e.uploadImgCount),sizeType:["original","compressed"],sourceType:["camera"],success:function(t){if(t){if(t.tempFiles instanceof Array&&t.tempFiles){var n,i=(0,a.default)(t.tempFiles);try{var o=function(){var t=n.value;if(t.size>1024*e.imgSize*1024)return uni.showToast({title:"图片不能大于".concat(e.imgSize,"M"),icon:"none"}),{v:!1};var i=e.imgType.some((function(e){var n=t.type.split("/");if(n.length)return e===n[1]}));return i?void 0:(uni.showToast({title:"只允许上传".concat(e.imgType,"的类型"),icon:"none"}),{v:!1})};for(i.s();!(n=i.n()).done;){var c=o();if("object"===typeof c)return c.v}}catch(s){i.e(s)}finally{i.f()}}e.imgArray=[].concat((0,r.default)(e.imgArray),(0,r.default)(t.tempFilePaths))}}})},preview:function(e,t){uni.previewImage({urls:[e]})},delImg:function(e){var t=this;uni.showModal({title:"提示",content:"是否删除这张照片?",success:function(n){n.confirm?t.imgArray.splice(e,1):n.cancel}})},upload:function(e){var t=this;return(0,o.default)(regeneratorRuntime.mark((function n(){var i;return regeneratorRuntime.wrap((function(n){while(1)switch(n.prev=n.next){case 0:if(i=t,!i.imgArray){n.next=3;break}return n.delegateYield(regeneratorRuntime.mark((function t(){var n,o,r,c,s;return regeneratorRuntime.wrap((function(t){while(1)switch(t.prev=t.next){case 0:n=0,o=[],r=(0,a.default)(i.imgArray),t.prev=3,r.s();case 5:if((c=r.n()).done){t.next=11;break}return s=c.value,t.next=9,i.uploadImg(s,(function(t){200==t.code?(n++,200==t.data.code&&o.push(t.data.data)):o.push(t),o.length==i.imgArray.length&&e(i.result(o,n))}));case 9:t.next=5;break;case 11:t.next=16;break;case 13:t.prev=13,t.t0=t["catch"](3),r.e(t.t0);case 16:return t.prev=16,r.f(),t.finish(16);case 19:case"end":return t.stop()}}),t,null,[[3,13,16,19]])}))(),"t0",3);case 3:case"end":return n.stop()}}),n)})))()},result:function(e,t){var n={urlArray:e,success:t};return n},uploadImg:function(e,t){uni.uploadFile({url:$config.SERVER_URL+"api/sys/user/modify/uploadPic",filePath:e,name:"file",success:function(e){if(e){var n=JSON.parse(e.data);t(n)}}})}}};t.default=c},c0b5:function(e,t,n){"use strict";n.r(t);var i=n("e40c"),o=n.n(i);for(var r in i)"default"!==r&&function(e){n.d(t,e,(function(){return i[e]}))}(r);t["default"]=o.a},c782:function(e,t,n){var i=n("8e39");"string"===typeof i&&(i=[[e.i,i,""]]),i.locals&&(e.exports=i.locals);var o=n("4f06").default;o("e86dba64",i,!0,{sourceMap:!1,shadowMode:!1})},c964:function(e,t,n){"use strict";n.r(t),n.d(t,"default",(function(){return o}));n("d3b7"),n("e6cf");function i(e,t,n,i,o,r,a){try{var c=e[r](a),s=c.value}catch(l){return void n(l)}c.done?t(s):Promise.resolve(s).then(i,o)}function o(e){return function(){var t=this,n=arguments;return new Promise((function(o,r){var a=e.apply(t,n);function c(e){i(a,o,r,c,s,"next",e)}function s(e){i(a,o,r,c,s,"throw",e)}c(void 0)}))}}},cffe:function(e,t,n){"use strict";var i=n("539d"),o=n.n(i);o.a},d0ff:function(e,t,n){"use strict";n.r(t);var i=n("b6802");function o(e){if(Array.isArray(e))return Object(i["a"])(e)}n("a4d3"),n("e01a"),n("d28b"),n("a630"),n("e260"),n("d3b7"),n("3ca3"),n("ddb0");function r(e){if("undefined"!==typeof Symbol&&Symbol.iterator in Object(e))return Array.from(e)}var a=n("dde1");function c(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}function s(e){return o(e)||r(e)||Object(a["a"])(e)||c()}n.d(t,"default",(function(){return s}))},dde1:function(e,t,n){"use strict";n.d(t,"a",(function(){return o}));n("a630"),n("fb6a"),n("d3b7"),n("25f0"),n("3ca3");var i=n("b6802");function o(e,t){if(e){if("string"===typeof e)return Object(i["a"])(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(n):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?Object(i["a"])(e,t):void 0}}},e40c:function(e,t,n){"use strict";(function(e){var i=n("ee27");n("d81d"),Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var o=i(n("1785")),r=i(n("f8a5")),a=n("0975"),c=null,s={components:{imgUpload:r.default,uniNoticeBar:o.default},data:function(){return{name:"",location:"位置获取中...",promotion_id:0,latitude:0,longitude:0,images:[],second:180}},onLoad:function(e){var t=this;t.promotion_id=e.promotion_id},methods:{getLocation:function(){var t=this;a.getLocation({type:"wgs84",success:function(n){e("log","微信定位成功"," at pages/app/promotionMaterial/upload.vue:103"),t.latitude=n.latitude,t.longitude=n.longitude,t.$api.post("wap/wechat/mapGeocoder",{location:n.latitude+","+n.longitude}).then((function(e){0==e.status&&(t.location=e.result.address)}))},fail:function(t){e("log",t," at pages/app/promotionMaterial/upload.vue:116")}})},setRemainTime:function(){var e=this;e.second>0?e.second=e.second-1:window.clearInterval(c)},refresh:function(){var e=this;e.name="",e.location="",e.latitude=0,e.longitude=0,e.images=[],e.second=180,e.$refs.imgUpload.imgArray=[],e.getLocation()},submit:function(){var e=this;if(e.second<=0)uni.showModal({content:"无法提交,表单已超时",confirmText:"确定",showCancel:!1});else if(""!=e.name)if(""!=e.location)if(0!=e.latitude&&0!=e.longitude)if(0!=e.promotion_id){var t=e.$refs.imgUpload.imgArray.map((function(e,t){return{name:"images["+t+"]",uri:e}}));uni.showLoading({mask:!0,title:"数据处理中..."}),uni.uploadFile({url:e.$api.baseURL+"/promotion/material/store",files:t,formData:{name:e.name,location:e.location,lat:e.latitude,lng:e.longitude,promotion_id:e.promotion_id},header:{"x-auth-token":uni.getStorageSync("token")},success:function(t){uni.hideLoading();var n=JSON.parse(t.data);n.status?uni.redirectTo({url:"/pages/app/promotionMaterial/index?promotion_id="+e.promotion_id}):uni.showModal({content:n.data,confirmText:"确定",showCancel:!1})}})}else uni.showModal({content:"促销编号不能为空",confirmText:"确定",showCancel:!1});else uni.showModal({content:"经纬度不能为空",confirmText:"确定",showCancel:!1});else uni.showModal({content:"位置信息不能为空",confirmText:"确定",showCancel:!1});else uni.showModal({content:"门店信息不能为空",confirmText:"确定",showCancel:!1})}},mounted:function(){var t=this;c=window.setInterval(t.setRemainTime,1e3),t.$api.post("wap/wechat/jsConfig",{url:window.location.href}).then((function(n){a.config(n),a.ready((function(){t.getLocation()})),a.error((function(t){e("log",t.errMsg," at pages/app/promotionMaterial/upload.vue:241")}))})).catch((function(t){e("log",t," at pages/app/promotionMaterial/upload.vue:245")}))}};t.default=s}).call(this,n("0de9")["log"])},e76c:function(e,t,n){"use strict";var i={uniIcons:n("8ad6").default},o=function(){var e=this,t=e.$createElement,n=e._self._c||t;return e.show?n("v-uni-view",{staticClass:"uni-noticebar",style:{backgroundColor:e.backgroundColor},on:{click:function(t){arguments[0]=t=e.$handleEvent(t),e.onClick.apply(void 0,arguments)}}},[!0===e.showClose||"true"===e.showClose?n("uni-icons",{staticClass:"uni-noticebar-close",attrs:{type:"closeempty",color:e.color,size:"12"},on:{click:function(t){arguments[0]=t=e.$handleEvent(t),e.close.apply(void 0,arguments)}}}):e._e(),!0===e.showIcon||"true"===e.showIcon?n("uni-icons",{staticClass:"uni-noticebar-icon",attrs:{type:"sound",color:e.color,size:"14"}}):e._e(),n("v-uni-view",{ref:"textBox",staticClass:"uni-noticebar__content-wrapper",class:{"uni-noticebar__content-wrapper--scrollable":e.scrollable,"uni-noticebar__content-wrapper--single":!e.scrollable&&(e.single||e.moreText)}},[n("v-uni-view",{staticClass:"uni-noticebar__content",class:{"uni-noticebar__content--scrollable":e.scrollable,"uni-noticebar__content--single":!e.scrollable&&(e.single||e.moreText)},attrs:{id:e.elIdBox}},[n("v-uni-text",{ref:"animationEle",staticClass:"uni-noticebar__content-text",class:{"uni-noticebar__content-text--scrollable":e.scrollable,"uni-noticebar__content-text--single":!e.scrollable&&(e.single||e.moreText)},style:{color:e.color,width:e.wrapWidth+"px",animationDuration:e.animationDuration,"-webkit-animationDuration":e.animationDuration,animationPlayState:e.webviewHide?"paused":e.animationPlayState,"-webkit-animationPlayState":e.webviewHide?"paused":e.animationPlayState,animationDelay:e.animationDelay,"-webkit-animationDelay":e.animationDelay},attrs:{id:e.elId}},[e._v(e._s(e.text))])],1)],1),!0===e.showGetMore||"true"===e.showGetMore?n("v-uni-view",{staticClass:"uni-noticebar__more",on:{click:function(t){arguments[0]=t=e.$handleEvent(t),e.clickMore.apply(void 0,arguments)}}},[e.moreText?n("v-uni-text",{staticClass:"uni-noticebar__more-text",style:{color:e.moreColor}},[e._v(e._s(e.moreText))]):e._e(),n("uni-icons",{attrs:{type:"arrowright",color:e.moreColor,size:"14"}})],1):e._e()],1):e._e()},r=[];n.d(t,"b",(function(){return o})),n.d(t,"c",(function(){return r})),n.d(t,"a",(function(){return i}))},f8a5:function(e,t,n){"use strict";n.r(t);var i=n("971e"),o=n("57d8");for(var r in o)"default"!==r&&function(e){n.d(t,e,(function(){return o[e]}))}(r);n("58fb");var a,c=n("f0c5"),s=Object(c["a"])(o["default"],i["b"],i["c"],!1,null,"626772f6",null,!1,i["a"],a);t["default"]=s.exports}}]); |