连云港陪玩陪聊
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.
chunwan/unpackage/dist/build/web/static/js/pages-index-cityList.033884...

1 line
12 KiB

1 month ago
(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["pages-index-cityList"],{"10a4":function(t,e,n){"use strict";n.d(e,"b",(function(){return i})),n.d(e,"c",(function(){return r})),n.d(e,"a",(function(){}));var i=function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("v-uni-view",{staticClass:"city"},[n("v-uni-view",{staticClass:"city-hd"},[t._v("当前:"+t._s(t.city?t.city:"全国"))]),t.list.length>0?n("v-uni-scroll-view",{staticClass:"city-bd",attrs:{"scroll-y":!0,"scroll-with-animation":!0,"scroll-into-view":t.scrollTopId}},t._l(t.list,(function(e,i){return n("v-uni-view",{key:i,staticClass:"dl"},[n("v-uni-view",{staticClass:"dt",attrs:{id:e.initial}},[t._v(t._s(e.initial))]),t._l(e.cityInfo,(function(e,i){return n("v-uni-view",{key:i,staticClass:"dd",on:{click:function(n){arguments[0]=n=t.$handleEvent(n),t.toSelect(e)}}},[t._v(t._s(e.name))])}))],2)})),1):t._e(),n("v-uni-view",{staticClass:"city-fd"},t._l(t.flist,(function(e,i){return n("v-uni-view",{key:i,staticClass:"item",on:{click:function(n){arguments[0]=n=t.$handleEvent(n),t.clickLetter(e)}}},[t._v(t._s(e))])})),1),t.isShowLetter?n("v-uni-view",{staticClass:"showSlectedLetter"},[t._v(t._s(t.scrollTopId))]):t._e()],1)},r=[]},"1ea2":function(t,e,n){"use strict";var i=n("af9e"),r=n("1c06"),o=n("ada5"),a=n("5d6e"),c=Object.isExtensible,s=i((function(){c(1)}));t.exports=s||a?function(t){return!!r(t)&&((!a||"ArrayBuffer"!==o(t))&&(!c||c(t)))}:c},"30f7":function(t,e,n){"use strict";n("6a54"),Object.defineProperty(e,"__esModule",{value:!0}),e.default=function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")},n("7a76"),n("c9b5")},4733:function(t,e,n){"use strict";n("6a54"),Object.defineProperty(e,"__esModule",{value:!0}),e.default=function(t){if(Array.isArray(t))return(0,i.default)(t)};var i=function(t){return t&&t.__esModule?t:{default:t}}(n("8d0b"))},"4e7d":function(t,e,n){"use strict";n("6a54");var i=n("f5bd").default;Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var r=i(n("2634")),o=i(n("b7c7")),a=i(n("2fdc"));n("aa9c"),n("fd3c"),n("4100"),n("bf0f"),n("f3f7"),n("18f7"),n("de6c");var c={data:function(){return{city:"",list:[],flist:[],scrollTopId:"",isShowLetter:!1}},onLoad:function(){this.city=uni.getStorageSync("jingweiInfo").city,this.getList()},methods:{clickLetter:function(t){var e=this;e.scrollTopId=t,e.isShowLetter=!0,setTimeout((function(){e.isShowLetter=!1}),1500)},cityFilter:function(t,e){for(var n=[],i=0;i<t.length;i++)if(t[i]){var r=t[i],o=[],a={};a.initial=r;for(var c=0;c<e.length;c++)r==e[c].firstLetter&&o.push(e[c]);a.cityInfo=o,n.push(a)}return n},getList:function(){var t=this;return(0,a.default)((0,r.default)().mark((function e(){var n,i,a,c;return(0,r.default)().wrap((function(e){while(1)switch(e.prev=e.next){case 0:return e.next=2,t.$api.cityList();case 2:n=e.sent,i=n.code,a=n.data,200==i&&([],c=[],a&&a.length>0&&(a.map((function(t){c.push(t.firstLetter)})),c.sort()),t.flist=(0,o.default)(new Set(c)),t.list=t.cityFilter(t.flist,a),console.log(t.list));case 6:case"end":return e.stop()}}),e)})))()},toSelect:function(t){uni.$emit("watchCity",t),uni.navigateBack({delta:1})}}};e.default=c},5075:function(t,e,n){"use strict";var i=n("ae5c"),r=n("71e9"),o=n("e7e3"),a=n("52df"),c=n("81a7"),s=n("1fc1"),u=n("1297"),f=n("d67c"),d=n("5112"),l=n("7e91"),v=TypeError,h=function(t,e){this.stopped=t,this.result=e},p=h.prototype;t.exports=function(t,e,n){var b,y,w,g,x,_,m,k=n&&n.that,S=!(!n||!n.AS_ENTRIES),E=!(!n||!n.IS_RECORD),O=!(!n||!n.IS_ITERATOR),I=!(!n||!n.INTERRUPTED),j=i(e,k),z=function(t){return b&&l(b,"normal",t),new h(!0,t)},L=function(t){return S?(o(t),I?j(t[0],t[1],z):j(t[0],t[1])):I?j(t,z):j(t)};if(E)b=t.iterator;else if(O)b=t;else{if(y=d(t),!y)throw new v(a(t)+" is not iterable");if(c(y)){for(w=0,g=s(t);g>w;w++)if(x=L(t[w]),x&&u(p,x))return x;return new h(!1)}b=f(t,y)}_=E?t.next:b.next;while(!(m=r(_,b)).done){try{x=L(m.value)}catch(T){l(b,"throw",T)}if("object"==typeof x&&x&&u(p,x))return x}return new h(!