1 |
- (window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["other-page-selectAddresss-selectAddresss"],{"2c26":function(e,a,t){"use strict";t("6a54");var s=t("f5bd").default;Object.defineProperty(a,"__esModule",{value:!0}),a.default=void 0,t("f7a5");var r=s(t("05d8")),i=t("f0de"),n={data:function(){return{addresses:[],showSearch:!1,key:"",searchAddress:[],addressSearchHistory:[],getNowLocationing:!1,MapType:"gaode"}},onLoad:function(e){var a=this;r.default.getLocation((function(e){var t=e.data.message.message;a.setData({location:t.address,location_x:t.location_x,location_y:t.location_y,pois:t.pois.slice(0,10),MapType:r.default.getStorageSync("MapType")},(function(){r.default.loaded()}))}))},methods:{onInput:function(){var e=this.key;if(this.showSearch=!!e,e){var a=this.MapType,t="system/common/map/suggestion";"google"==a&&(t="system/common/map/suggestion_google"),r.default.request({url:t,data:{key:e},success:function(e){console.log(e,5555)}})}else(0,i.setData)({showSearch:!1})}}};a.default=n},"363d":function(e,a,t){var s=t("c86c");a=s(!1),a.push([e.i,'@charset "UTF-8";\n/**\n * 下方引入的为Tuniao UI的集成样式文件,为scss预处理器,其中包含了一些"tn-"开头的自定义变量\n * 使用的时候,请将下面的一行复制到您的uniapp项目根目录的uni.scss中即可\n * Tuniao UI自定义的css类名和scss变量,均以"tn-"开头,不会造成冲突,请放心使用 \n */uni-page-body[data-v-ee182d5c]{background:#f5f5f5;font-size:14px}body.?%PAGE?%[data-v-ee182d5c]{background:#f5f5f5}\n/* 搜索框 */.search-header-wrap[data-v-ee182d5c]{border-bottom:%?1?% solid #e5e5e5}.search-header-wrap .search-header[data-v-ee182d5c]{position:relative;padding-bottom:%?15?%;background-color:#fff}.search-header-wrap .search-header .search-sec[data-v-ee182d5c]{position:relative;margin:0 77px 0 15px;padding-top:7px}.search-header-wrap .search-header .search-sec .icon-search[data-v-ee182d5c]{position:absolute;left:10px;top:16px;width:15px;height:15px;font-size:18px;text-align:center;line-height:15px;color:grey;display:inline-block}.search-header-wrap .search-header .search-sec .search-input[data-v-ee182d5c]{display:block;width:100%;padding:%?30?% 0 %?30?% %?70?%;border:0;-webkit-border-radius:20px;-moz-border-radius:20px;border-radius:%?10?%;background:#f2f2f2;font-size:%?30?%}.search-header-wrap .search-header .search-btn[data-v-ee182d5c]{position:absolute;top:8px;right:11px;font-size:14px;color:#33aafc;display:inline-block}.location[data-v-ee182d5c]{text-align:center;padding:10px;background:#fff;margin-top:10px;font-size:15px}.item-title[data-v-ee182d5c]{padding:10px 0 10px 15px;font-size:%?30?%;color:#b2b2b2}.item-title .icon[data-v-ee182d5c]{margin-right:5px}.container .content .address-list[data-v-ee182d5c]{margin-top:15px}',""]),e.exports=a},4913:function(e,a,t){var s=t("363d");s.__esModule&&(s=s.default),"string"===typeof s&&(s=[[e.i,s,""]]),s.locals&&(e.exports=s.locals);var r=t("967d").default;r("472c42b6",s,!0,{sourceMap:!1,shadowMode:!1})},9037:function(e,a,t){"use strict";t.d(a,"b",(function(){return r})),t.d(a,"c",(function(){return i})),t.d(a,"a",(function(){return s}));var s={tnNavBar:t("3703").default},r=function(){var e=this,a=e.$createElement,t=e._self._c||a;return t("v-uni-view",[t("tn-nav-bar",{attrs:{fixed:!0}},[e._v("选择地址")]),t("v-uni-view",{staticClass:"container",style:{marginTop:e.vuex_custom_bar_height+"px"}},[t("v-uni-view",{staticClass:"content"},[t("v-uni-view",{staticClass:"search-header-wrap"},[t("v-uni-view",{staticClass:"search-header"},[t("v-uni-view",{staticClass:"search-sec tn-flex-col-center"},[t("v-uni-form",{},[t("v-uni-view",{staticClass:"tn-icon-location icon-search"}),t("v-uni-input",{staticClass:"search-input",attrs:{placeholder:"请输入您的地址"},on:{click:function(a){arguments[0]=a=e.$handleEvent(a),e.onInput.apply(void 0,arguments)}},model:{value:e.key,callback:function(a){e.key=a},expression:"key"}})],1)],1),t("v-uni-view",{staticClass:"search-btn"},[e._v("搜索")])],1)],1),e.showSearch?e._e():t("v-uni-view",{staticClass:"location"},[t("v-uni-view"),e._v("点击定位当前位置")],1),e.showSearch?e._e():t("v-uni-view",{staticClass:"item-title tn-flex tn-flex-col-center"},[t("v-uni-view",{staticClass:"tn-icon-location icon-location"}),t("v-uni-view",[e._v("附近的地址")])],1),e.showSearch?e._e():t("v-uni-view",{staticClass:"item"}),e.showSearch?e._e():t("v-uni-view",{staticClass:"address-list"})],1)],1)],1)},i=[]},ce21:function(e,a,t){"use strict";var s=t("4913"),r=t.n(s);r.a},dae0:function(e,a,t){"use strict";t.r(a);var s=t("2c26"),r=t.n(s);for(var i in s)["default"].indexOf(i)<0&&function(e){t.d(a,e,(function(){return s[e]}))}(i);a["default"]=r.a},f0de:function(e,a,t){"use strict";t("6a54");var s=t("f5bd").default;Object.defineProperty(a,"__esModule",{value:!0}),a.getData=function(e){return e.vue.util.request({url:e.url,data:e.data}).then((function(a){e.vue.showPreLoading&&(e.vue.showPreLoading=!1);var t=a.data.message;return t.errno?e.fail&&"function"===typeof e.fail?(e.fail(t),!1):(e.vue.util.$toast(t.message),!1):(t=t.message,e.data&&1==e.data.menufooter&&(e.vue.menufooter=window.immenufooter),e.autoAssign&&e.variable&&t[e.variable]&&(e.vue[e.variable]=e.vue.util.extend(e.vue[e.variable],t[e.variable])),!e.success||"function"!==typeof e.success||(e.success(t),!1))})),!0},a.getRecords=function(e){e.force&&(e.vue.records={page:1,psize:15,loading:!0,finished:!1,empty:!1,data:[]});if(e.vue.records.finished)return!1;var a={page:e.vue.records.page,psize:e.vue.records.psize};e.data&&(a=Object.assign(e.data,a));e.vue.filter&&(a.filter=JSON.stringify(e.vue.filter.items));return e.vue.util.request({url:e.url,data:a}).then((function(a){e.vue.showPreLoading&&(e.vue.showPreLoading=!1);var t=a.data.message;if(t.errno)return e.vue.util.$toast(t.message),!1;if(e.data&&1==e.data.menufooter&&(e.vue.menufooter=window.immenufooter),e.recordsName)var s=t.message[e.recordsName];else s=t.message.records;return e.vue.records.data=[].concat((0,r.default)(e.vue.records.data),(0,r.default)(s)),e.vue.records.data.length||(e.vue.records.empty=!0),s&&s.length<e.vue.records.psize&&(e.vue.records.finished=!0),e.vue.records.page++,e.vue.records.loading=!1,e.vue.isRefresh=!1,t.message.filter&&(e.vue.condition.items=t.message.filter),e.data&&1==e.data.menufooter&&(e.vue.menufooter=window.immenufooter),e.success&&"function"===typeof e.success?(e.success(t.message),!1):void 0})),!0},a.setData=function(e){var a=function(){e.vue.util.request({method:"post",url:e.url,data:e.data}).then((function(a){var t=a.data.message;if(t.errno)return e.fail&&"function"===typeof e.fail?(e.fail(t),!1):(e.vue.util.$toast(t.message),!1);if(t=t.message,e.success&&"function"===typeof e.success)return e.success(t),!1;e.redirect||(e.redirect="refresh"),e.message||(e.message="保存成功");var s=e.redirectType?e.redirectType:"push";return e.vue.util.$toast(e.message,e.redirect,1e3,s),!0}))};e.confirm?uni.showModal({title:"温馨提示",cancelText:"取消",content:e.confirm,success:function(e){e.cancel||a()}}):a()};var r=s(t("b7c7"));t("8f71"),t("bf0f"),t("d4b5"),t("c223");s(t("05d8"))},fa49:function(e,a,t){"use strict";t.r(a);var s=t("9037"),r=t("dae0");for(var i in r)["default"].indexOf(i)<0&&function(e){t.d(a,e,(function(){return r[e]}))}(i);t("ce21");var n=t("828b"),o=Object(n["a"])(r["default"],s["b"],s["c"],!1,null,"ee182d5c",null,!1,s["a"],void 0);a["default"]=o.exports}}]);
|