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.
1 lines
12 KiB
1 lines
12 KiB
(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(!1)}},5350:function(t,e,n){"use strict";var i=n("9d9c"),r=n.n(i);r.a},"53f7":function(t,e,n){"use strict";var i=n("7658"),r=n("57e7");i("Set",(function(t){return function(){return t(this,arguments.length?arguments[0]:void 0)}}),r)},5624:function(t,e,n){var i=n("c86c");e=i(!1),e.push([t.i,'@charset "UTF-8";\n/**\n * 这里是uni-app内置的常用样式变量\n *\n * uni-app 官方扩展插件及插件市场(https://ext.dcloud.net.cn)上很多三方插件均使用了这些样式变量\n * 如果你是插件开发者,建议你使用scss预处理,并在插件代码中直接使用这些变量(无需 import 这个文件),方便用户通过搭积木的方式开发整体风格一致的App\n *\n */\n/**\n * 如果你是App开发者(插件使用者),你可以通过修改这些变量来定制自己的插件主题,实现自定义主题功能\n *\n * 如果你的项目同样使用了scss预处理,你也可以直接在你的 scss 代码中使用如下变量,同时无需 import 这个文件\n */\n/* 颜色变量 */\n/* 行为相关颜色 */\n/* 文字基本颜色 */\n/* 背景颜色 */\n/* 边框颜色 */\n/* 尺寸变量 */\n/* 文字尺寸 */\n/* 图片尺寸 */\n/* Border Radius */\n/* 水平间距 */\n/* 垂直间距 */\n/* 透明度 */\n/* 文章场景相关 */.city[data-v-589cd793]{width:100%;min-height:100vh}.city-hd[data-v-589cd793]{padding:%?20?% %?30?%;background-color:#fff;font-size:%?30?%;color:#212121}.city-bd[data-v-589cd793]{background-color:#fff;font-size:%?30?%;color:#212121;height:calc(100vh - %?50?%);margin-top:%?20?%}.city-bd .dt[data-v-589cd793]{padding:%?20?% %?30?%;border-top:1px solid #f4f4f4;background-color:#f4f4f4}.city-bd .dd[data-v-589cd793]{padding:%?20?% %?30?%;border-top:1px solid #f6f6f6}.city-fd[data-v-589cd793]{width:%?70?%;position:fixed;height:%?1200?%;right:0;top:50%;z-index:12;margin-top:%?-600?%;background-color:#fff}.city-fd .item[data-v-589cd793]{text-align:center;line-height:%?55?%;font-size:%?28?%;color:#080313}.city .showSlectedLetter[data-v-589cd793]{background-color:rgba(0,0,0,.5);color:#fff;display:flex;justify-content:center;align-items:center;position:fixed;top:50%;left:50%;margin:%?-100?%;width:%?200?%;height:%?200?%;border-radius:%?20?%;font-size:%?52?%;z-index:2}',""]),t.exports=e},"57e7":function(t,e,n){"use strict";var i=n("e37c"),r=n("e4ca"),o=n("a74c"),a=n("ae5c"),c=n("b720"),s=n("1eb8"),u=n("5075"),f=n("0cc2"),d=n("97ed"),l=n("437f"),v=n("ab4a"),h=n("d0b1").fastKey,p=n("235c"),b=p.set,y=p.getterFor;t.exports={getConstructor:function(t,e,n,f){var d=t((function(t,r){c(t,l),b(t,{type:e,index:i(null),first:void 0,last:void 0,size:0}),v||(t.size=0),s(r)||u(r,t[f],{that:t,AS_ENTRIES:n})})),l=d.prototype,p=y(e),w=function(t,e,n){var i,r,o=p(t),a=g(t,e);return a?a.value=n:(o.last=a={index:r=h(e,!0),key:e,value:n,previous:i=o.last,next:void 0,removed:!1},o.first||(o.first=a),i&&(i.next=a),v?o.size++:t.size++,"F"!==r&&(o.index[r]=a)),t},g=function(t,e){var n,i=p(t),r=h(e);if("F"!==r)return i.index[r];for(n=i.first;n;n=n.next)if(n.key===e)return n};return o(l,{clear:function(){var t=p(this),e=t.first;while(e)e.removed=!0,e.previous&&(e.previous=e.previous.next=void 0),e=e.next;t.first=t.last=void 0,t.index=i(null),v?t.size=0:this.size=0},delete:function(t){var e=p(this),n=g(this,t);if(n){var i=n.next,r=n.previous;delete e.index[n.index],n.removed=!0,r&&(r.next=i),i&&(i.previous=r),e.first===n&&(e.first=i),e.last===n&&(e.last=r),v?e.size--:this.size--}return!!n},forEach:function(t){var e,n=p(this),i=a(t,arguments.length>1?arguments[1]:void 0);while(e=e?e.next:n.first){i(e.value,e.key,this);while(e&&e.removed)e=e.previous}},has:function(t){return!!g(this,t)}}),o(l,n?{get:function(t){var e=g(this,t);return e&&e.value},set:function(t,e){return w(this,0===t?0:t,e)}}:{add:function(t){return w(this,t=0===t?0:t,t)}}),v&&r(l,"size",{configurable:!0,get:function(){return p(this).size}}),d},setStrong:function(t,e,n){var i=e+" Iterator",r=y(e),o=y(i);f(t,e,(function(t,e){b(this,{type:i,target:t,state:r(t),kind:e,last:void 0})}),(function(){var t=o(this),e=t.kind,n=t.last;while(n&&n.removed)n=n.previous;return t.target&&(t.last=n=n?n.next:t.state.first)?d("keys"===e?n.key:"values"===e?n.value:[n.key,n.value],!1):(t.target=void 0,d(void 0,!0))}),n?"entries":"values",!n,!0),l(e)}}},"5d6e":function(t,e,n){"use strict";var i=n("af9e");t.exports=i((function(){if("function"==typeof ArrayBuffer){var t=new ArrayBuffer(8);Object.isExtensible(t)&&Object.defineProperty(t,"a",{value:8})}}))},7658:function(t,e,n){"use strict";var i=n("8bdb"),r=n("85c1"),o=n("bb80"),a=n("8466"),c=n("81a9"),s=n("d0b1"),u=n("5075"),f=n("b720"),d=n("474f"),l=n("1eb8"),v=n("1c06"),h=n("af9e"),p=n("29ba"),b=n("181d"),y=n("dcda");t.exports=function(t,e,n){var w=-1!==t.indexOf("Map"),g=-1!==t.indexOf("Weak"),x=w?"set":"add",_=r[t],m=_&&_.prototype,k=_,S={},E=function(t){var e=o(m[t]);c(m,t,"add"===t?function(t){return e(this,0===t?0:t),this}:"delete"===t?function(t){return!(g&&!v(t))&&e(this,0===t?0:t)}:"get"===t?function(t){return g&&!v(t)?void 0:e(this,0===t?0:t)}:"has"===t?function(t){return!(g&&!v(t))&&e(this,0===t?0:t)}:function(t,n){return e(this,0===t?0:t,n),this})},O=a(t,!d(_)||!(g||m.forEach&&!h((function(){(new _).entries().next()}))));if(O)k=n.getConstructor(e,t,w,x),s.enable();else if(a(t,!0)){var I=new k,j=I[x](g?{}:-0,1)!==I,z=h((function(){I.has(1)})),L=p((function(t){new _(t)})),T=!g&&h((function(){var t=new _,e=5;while(e--)t[x](e,e);return!t.has(-0)}));L||(k=e((function(t,e){f(t,m);var n=y(new _,t,k);return l(e)||u(e,n[x],{that:n,AS_ENTRIES:w}),n})),k.prototype=m,m.constructor=k),(z||T)&&(E("delete"),E("has"),w&&E("get")),(T||j)&&E(x),g&&m.clear&&delete m.clear}return S[t]=k,i({global:!0,constructor:!0,forced:k!==_},S),b(k,t),g||n.setStrong(k,t,w),k}},"7a91":function(t,e,n){"use strict";n.r(e);var i=n("10a4"),r=n("decf");for(var o in r)["default"].indexOf(o)<0&&function(t){n.d(e,t,(function(){return r[t]}))}(o);n("5350");var a=n("828b"),c=Object(a["a"])(r["default"],i["b"],i["c"],!1,null,"589cd793",null,!1,i["a"],void 0);e["default"]=c.exports},"9d9c":function(t,e,n){var i=n("5624");i.__esModule&&(i=i.default),"string"===typeof i&&(i=[[t.i,i,""]]),i.locals&&(t.exports=i.locals);var r=n("967d").default;r("970bad8c",i,!0,{sourceMap:!1,shadowMode:!1})},b7c7:function(t,e,n){"use strict";n("6a54"),Object.defineProperty(e,"__esModule",{value:!0}),e.default=function(t){return(0,i.default)(t)||(0,r.default)(t)||(0,o.default)(t)||(0,a.default)()};var i=c(n("4733")),r=c(n("d14d")),o=c(n("5d6b")),a=c(n("30f7"));function c(t){return t&&t.__esModule?t:{default:t}}},c238:function(t,e,n){"use strict";var i=n("af9e");t.exports=!i((function(){return Object.isExtensible(Object.preventExtensions({}))}))},d0b1:function(t,e,n){"use strict";var i=n("8bdb"),r=n("bb80"),o=n("11bf"),a=n("1c06"),c=n("338c"),s=n("d6b1").f,u=n("80bb"),f=n("8449"),d=n("1ea2"),l=n("d7b4"),v=n("c238"),h=!1,p=l("meta"),b=0,y=function(t){s(t,p,{value:{objectID:"O"+b++,weakData:{}}})},w=t.exports={enable:function(){w.enable=function(){},h=!0;var t=u.f,e=r([].splice),n={};n[p]=1,t(n).length&&(u.f=function(n){for(var i=t(n),r=0,o=i.length;r<o;r++)if(i[r]===p){e(i,r,1);break}return i},i({target:"Object",stat:!0,forced:!0},{getOwnPropertyNames:f.f}))},fastKey:function(t,e){if(!a(t))return"symbol"==typeof t?t:("string"==typeof t?"S":"P")+t;if(!c(t,p)){if(!d(t))return"F";if(!e)return"E";y(t)}return t[p].objectID},getWeakData:function(t,e){if(!c(t,p)){if(!d(t))return!0;if(!e)return!1;y(t)}return t[p].weakData},onFreeze:function(t){return v&&h&&d(t)&&!c(t,p)&&y(t),t}};o[p]=!0},d14d:function(t,e,n){"use strict";n("6a54"),Object.defineProperty(e,"__esModule",{value:!0}),e.default=function(t){if("undefined"!==typeof Symbol&&null!=t[Symbol.iterator]||null!=t["@@iterator"])return Array.from(t)},n("01a2"),n("e39c"),n("bf0f"),n("844d"),n("18f7"),n("de6c"),n("08eb")},decf:function(t,e,n){"use strict";n.r(e);var i=n("4e7d"),r=n.n(i);for(var o in i)["default"].indexOf(o)<0&&function(t){n.d(e,t,(function(){return i[t]}))}(o);e["default"]=r.a},f3f7:function(t,e,n){"use strict";n("53f7")}}]); |