对接烟台app的h5页面
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

3 lines
17 KiB

(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["pages-grid-grid"],{"1a16":function(t,e,n){"use strict";n.d(e,"b",(function(){return r})),n.d(e,"c",(function(){return i})),n.d(e,"a",(function(){}));var r=function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("v-uni-view",[n("v-uni-view",{staticClass:"select-position"},[n("v-uni-view",{staticClass:"address"},[n("v-uni-image",{attrs:{mode:"scaleToFill",src:"/static/data/images/grid/position.png"}}),n("v-uni-text",[t._v(t._s(t.curAddress))])],1),n("v-uni-view",{staticClass:"check-position"},[n("v-uni-image",{attrs:{mode:"scaleToFill",src:"/static/data/images/grid/now-position.png"}}),n("v-uni-text",{attrs:{onTap:"reposition"}},[t._v("重新定位")])],1)],1),n("v-uni-view",{staticClass:"search"},[n("v-uni-text",[t._v("网格查找")]),n("v-uni-input",{attrs:{placeholder:"请输入小区楼栋名称,如1号楼",onInput:"onInputChange",onConfirm:"onInputConfirm"}})],1),n("v-uni-view",{staticClass:"list"},[n("v-uni-view",{staticClass:"list-title"},[t._v("楼栋列表")]),n("v-uni-view",{staticClass:"list-content"},t._l(t.list,(function(e,r){return n("v-uni-view",{key:r},[n("v-uni-text",[t._v(t._s(e.neighborhoodName+"-"+e.buildingName+"-"+e.gridName))]),n("v-uni-text",{staticClass:"list-in",attrs:{"data-item":e,onTap:"inGrid"}},[t._v("进入")])],1)})),1)],1)],1)},i=[]},2398:function(t,e,n){"use strict";n("7a82");var r=n("ee27").default;Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var i=r(n("f07e")),o=r(n("c964")),a=n("565d"),u=r(n("c810")),s=n("9105"),c=getApp(),f={data:function(){return{list:[],curAddress:"",searchVal:""}},onLoad:function(){this.fetchNeighBorhoodList(),this.getLocation()},methods:{fetchNeighBorhoodList:function(){var t=this;return(0,o.default)((0,i.default)().mark((function e(){var n,r,o,u;return(0,i.default)().wrap((function(e){while(1)switch(e.prev=e.next){case 0:return n={buildingName:t.searchVal},e.next=3,a.CustomerApi.fetchNeighBorhoodListForDing(n);case 3:r=e.sent,o=r.code,u=r.data,0==o&&u&&t.setData({list:u});case 6:case"end":return e.stop()}}),e)})))()},fetchAutoreGuser:function(t){return(0,o.default)((0,i.default)().mark((function e(){var n,r,o,f;return(0,i.default)().wrap((function(e){while(1)switch(e.prev=e.next){case 0:return n={gridId:t},e.next=3,a.CustomerApi.fetchAutoreGuser(n);case 3:r=e.sent,o=r.code,f=r.data,0==o&&f&&(u.default.setStoreGridInfo(f),(0,s.fetchToken)().then((function(t){u.default.setStoreUserInfo(t.data),uni.reLaunch({url:"/pages/index/index"}),c.globalData.session=!0})));case 6:case"end":return e.stop()}}),e)})))()},onInputChange:function(t){var e=this,n=t.detail.value;n||this.setData({searchVal:n},(function(){e.fetchNeighBorhoodList()}))},onInputConfirm:function(t){var e=this,n=t.detail.value;n&&this.setData({searchVal:n},(function(){e.fetchNeighBorhoodList()}))},reposition:function(){this.getLocation()},inGrid:function(t){var e=t.currentTarget.dataset.item;console.log(e.label,e.gridId),this.fetchAutoreGuser(e.gridId)},getLocation:function(){uni.showLoading({content:""});var t=this;uni.getLocation({success:function(e){uni.hideLoading(),console.log(e),t.setData({curAddress:e.address})},fail:function(){var t=this;uni.confirm({title:"温馨提示",content:"提交随手拍需要获取您的位置信息",confirmButtonText:"确定",success:function(e){e.confirm&&t.getLocation()}})}})}}};e.default=f},"35de":function(t,e,n){"use strict";var r=n("3ca9"),i=n.n(r);i.a},"3ca9":function(t,e,n){var r=n("fba4");r.__esModule&&(r=r.default),"string"===typeof r&&(r=[[t.i,r,""]]),r.locals&&(t.exports=r.locals);var i=n("4f06").default;i("28aaa856",r,!0,{sourceMap:!1,shadowMode:!1})},4090:function(t,e,n){"use strict";n("7a82");var r=n("ee27").default;Object.defineProperty(e,"__esModule",{value:!0}),e.categorytaglist=function(t){return new Promise((function(e,n){(0,o.requestPOST)("/gov/issue/issuecategory/categorytaglist",t).then((function(t){e(t)}))}))},e.closedlist=function(t){return new Promise((function(e,n){(0,o.requestPOST)("/resi/hall/issue/closedlist",t).then((function(t){e(t)}))}))},e.closedpr
/*! regenerator-runtime -- Copyright (c) 2014-present, Facebook, Inc. -- license (MIT): https://github.com/facebook/regenerator/blob/main/LICENSE */
e.default=function(){return t};var t={},n=Object.prototype,i=n.hasOwnProperty,o=Object.defineProperty||function(t,e,n){t[e]=n.value},a="function"==typeof Symbol?Symbol:{},u=a.iterator||"@@iterator",s=a.asyncIterator||"@@asyncIterator",c=a.toStringTag||"@@toStringTag";function f(t,e,n){return Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}),t[e]}try{f({},"")}catch(E){f=function(t,e,n){return t[e]=n}}function l(t,e,n,r){var i=e&&e.prototype instanceof v?e:v,a=Object.create(i.prototype),u=new S(r||[]);return o(a,"_invoke",{value:O(t,n,u)}),a}function d(t,e,n){try{return{type:"normal",arg:t.call(e,n)}}catch(E){return{type:"throw",arg:E}}}t.wrap=l;var h={};function v(){}function p(){}function g(){}var m={};f(m,u,(function(){return this}));var b=Object.getPrototypeOf,w=b&&b(b(j([])));w&&w!==n&&i.call(w,u)&&(m=w);var y=g.prototype=v.prototype=Object.create(m);function P(t){["next","throw","return"].forEach((function(e){f(t,e,(function(t){return this._invoke(e,t)}))}))}function x(t,e){var n;o(this,"_invoke",{value:function(o,a){function u(){return new e((function(n,u){(function n(o,a,u,s){var c=d(t[o],t,a);if("throw"!==c.type){var f=c.arg,l=f.value;return l&&"object"==(0,r.default)(l)&&i.call(l,"__await")?e.resolve(l.__await).then((function(t){n("next",t,u,s)}),(function(t){n("throw",t,u,s)})):e.resolve(l).then((function(t){f.value=t,u(f)}),(function(t){return n("throw",t,u,s)}))}s(c.arg)})(o,a,n,u)}))}return n=n?n.then(u,u):u()}})}function O(t,e,n){var r="suspendedStart";return function(i,o){if("executing"===r)throw new Error("Generator is already running");if("completed"===r){if("throw"===i)throw o;return q()}for(n.method=i,n.arg=o;;){var a=n.delegate;if(a){var u=L(a,n);if(u){if(u===h)continue;return u}}if("next"===n.method)n.sent=n._sent=n.arg;else if("throw"===n.method){if("suspendedStart"===r)throw r="completed",n.arg;n.dispatchException(n.arg)}else"return"===n.method&&n.abrupt("return",n.arg);r="executing";var s=d(t,e,n);if("normal"===s.type){if(r=n.done?"completed":"suspendedYield",s.arg===h)continue;return{value:s.arg,done:n.done}}"throw"===s.type&&(r="completed",n.method="throw",n.arg=s.arg)}}}function L(t,e){var n=e.method,r=t.iterator[n];if(void 0===r)return e.delegate=null,"throw"===n&&t.iterator["return"]&&(e.method="return",e.arg=void 0,L(t,e),"throw"===e.method)||"return"!==n&&(e.method="throw",e.arg=new TypeError("The iterator does not provide a '"+n+"' method")),h;var i=d(r,t.iterator,e.arg);if("throw"===i.type)return e.method="throw",e.arg=i.arg,e.delegate=null,h;var o=i.arg;return o?o.done?(e[t.resultName]=o.value,e.next=t.nextLoc,"return"!==e.method&&(e.method="next",e.arg=void 0),e.delegate=null,h):o:(e.method="throw",e.arg=new TypeError("iterator result is not an object"),e.delegate=null,h)}function T(t){var e={tryLoc:t[0]};1 in t&&(e.catchLoc=t[1]),2 in t&&(e.finallyLoc=t[2],e.afterLoc=t[3]),this.tryEntries.push(e)}function _(t){var e=t.completion||{};e.type="normal",delete e.arg,t.completion=e}function S(t){this.tryEntries=[{tryLoc:"root"}],t.forEach(T,this),this.reset(!0)}function j(t){if(t){var e=t[u];if(e)return e.call(t);if("function"==typeof t.next)return t;if(!isNaN(t.length)){var n=-1,r=function e(){for(;++n<t.length;)if(i.call(t,n))return e.value=t[n],e.done=!1,e;return e.value=void 0,e.done=!0,e};return r.next=r}}return{next:q}}function q(){return{value:void 0,done:!0}}return p.prototype=g,o(y,"constructor",{value:g,configurable:!0}),o(g,"constructor",{value:p,configurable:!0}),p.displayName=f(g,c,"GeneratorFunction"),t.isGeneratorFunction=function(t){var e="function"==typeof t&&t.constructor;return!!e&&(e===p||"GeneratorFunction"===(e.displayName||e.name))},t.mark=function(t){return Object.setPrototypeOf?Object.setPrototypeOf(t,g):(t.__proto__=g,f(t,c,"GeneratorFunction")),t.prototype=Object.create(y),t},t.awrap=function(t){return{__await:t}},P(x.prototype),f(x.prototype,s,(function(){return this})),t.AsyncIterator=x,t.async=function(e,n,r,i,o){void 0===o&&(o=Promise);var a=new x(l(e,n,r,i),o);return t.isGeneratorFunction(n)?a:a.next().then((function(t){return t.do