d第一次提交

This commit is contained in:
dt_2916866708
2024-02-28 17:34:03 +08:00
commit 0689cf2677
1234 changed files with 144804 additions and 0 deletions

View File

@@ -0,0 +1 @@
(global["webpackJsonp"]=global["webpackJsonp"]||[]).push([["pages/home/index"],{"028b":function(t,e,n){"use strict";var a=n("287e"),i=n.n(a);i.a},"287e":function(t,e,n){},"3e98":function(t,e,n){"use strict";n.r(e);var a=n("c75e"),i=n.n(a);for(var o in a)["default"].indexOf(o)<0&&function(t){n.d(e,t,(function(){return a[t]}))}(o);e["default"]=i.a},"4d58":function(t,e,n){"use strict";n.d(e,"b",(function(){return i})),n.d(e,"c",(function(){return o})),n.d(e,"a",(function(){return a}));var a={uniIcons:function(){return Promise.all([n.e("common/vendor"),n.e("uni_modules/uni-icons/components/uni-icons/uni-icons")]).then(n.bind(null,"e4f7"))}},i=function(){var t=this,e=t.$createElement,n=(t._self._c,t.viewData?t.viewData.list.length:null);t._isMounted||(t.e0=function(e){t.pageData.stationName="",t.getList()},t.e1=function(e,n){var a=arguments[arguments.length-1].currentTarget.dataset,i=a.eventParams||a["event-params"];n=i.item;t.pageData.sortType=n.value}),t.$mp.data=Object.assign({},{$root:{g0:n}})},o=[]},"8d90":function(t,e,n){"use strict";n.r(e);var a=n("4d58"),i=n("3e98");for(var o in i)["default"].indexOf(o)<0&&function(t){n.d(e,t,(function(){return i[t]}))}(o);n("028b");var r=n("f0c5"),u=Object(r["a"])(i["default"],a["b"],a["c"],!1,null,"1b2312ce",null,!1,a["a"],void 0);e["default"]=u.exports},c75e:function(t,e,n){"use strict";(function(t,a){var i=n("4ea4");Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var o=i(n("2eee")),r=i(n("c973")),u=i(n("2303")),c=(i(n("76d8")),n("fdba")),s={components:{stationItem:function(){n.e("components/stationItem/stationItem").then(function(){return resolve(n("6815"))}.bind(null,n)).catch(n.oe)},skeleton:function(){n.e("pages/home/skeleton").then(function(){return resolve(n("b1ff"))}.bind(null,n)).catch(n.oe)}},data:function(){return{agreementList:t.getStorageSync("agreementList"),token:t.getStorageSync("Authorization"),user:t.getStorageSync("user"),location:null,refresherTriggered:!1,pageData:{currentPage:1,stationName:"",stationLng:116.38,stationLat:39.9,sortType:""},viewData:null,titleStyle:{},selectOptions:0,options:[{label:"距离最近",value:""},{label:"最便宜",value:"cheap"},{label:"快充",value:"fast"},{label:"空闲",value:"idle"}]}},created:function(){this.init()},watch:{"pageData.sortType":function(t){this.seach()}},onShow:function(){this.showInit()},methods:{showInit:function(){this.tool.getCards()},refresherrefresh:function(){this.refresherTriggered=!0,this.seach()},seach:function(){this.pageData.currentPage=1,this.getList()},scrolltolower:function(){this.pageData.currentPage+=1,this.getList()},init:function(){var t=this;return(0,r.default)(o.default.mark((function e(){return o.default.wrap((function(e){while(1)switch(e.prev=e.next){case 0:return t.titleStyle=a.getMenuButtonBoundingClientRect(),e.next=3,t.getPosition();case 3:t.getList();case 4:case"end":return e.stop()}}),e)})))()},getPosition:function(){var e=this;return(0,r.default)(o.default.mark((function n(){return o.default.wrap((function(n){while(1)switch(n.prev=n.next){case 0:if(e.user){n.next=2;break}return n.abrupt("return",Promise.resolve());case 2:return n.next=4,e.tool.userLocationChenk().then((function(t){})).catch((function(t){}));case 4:return n.next=6,e.tool.getLocation().then((function(n){e.location=t.getStorageSync("location")})).catch((function(t){e.location=null}));case 6:case"end":return n.stop()}}),n)})))()},getList:function(){var t=this;return(0,r.default)(o.default.mark((function e(){return o.default.wrap((function(e){while(1)switch(e.prev=e.next){case 0:t.location&&(t.pageData.stationLat=t.location.latitude,t.pageData.stationLng=t.location.longitude),u.default[t.token?"getNearbySites":"getTouristSites"](t.pageData).then((function(e){if(2e4==e.code)if(t.tool.difTags(e),1!==t.pageData.currentPage){var n=new t.tool.Anticorrosive(e,c.page);t.viewData.list=t.viewData.list.concat(n.list)}else t.viewData=new t.tool.Anticorrosive(e,c.page);t.refresherTriggered=!1}));case 2:case"end":return e.stop()}}),e)})))()}}};e.default=s}).call(this,n("543d")["default"],n("bc2e")["default"])},d4d7:function(t,e,n){"use strict";(function(t,e){var a=n("4ea4");n("9773");a(n("66fd"));var i=a(n("8d90"));t.__webpack_require_UNI_MP_PLUGIN__=n,e(i.default)}).call(this,n("bc2e")["default"],n("543d")["createPage"])}},[["d4d7","common/runtime","common/vendor"]]]);

View File

@@ -0,0 +1,10 @@
{
"navigationBarTitleText": "",
"enablePullDownRefresh": false,
"navigationStyle": "custom",
"usingComponents": {
"uni-icons": "/uni_modules/uni-icons/components/uni-icons/uni-icons",
"station-item": "/components/stationItem/stationItem",
"skeleton": "/pages/home/skeleton"
}
}

View File

@@ -0,0 +1 @@
<view style="width:100vw;height:100%;" class="data-v-1b2312ce"><block wx:if="{{viewData}}"><view class="home_container data-v-1b2312ce" style="height:100%;overflow:hidden;"><view data-event-opts="{{[['tap',[['init',['$event']]]]]}}" class="home_title flex data-v-1b2312ce" style="{{'height:'+(titleStyle.height+'px')+';'+('padding-right:'+(titleStyle.width+10+'px')+';')}}" bindtap="__e"><image class="home_title_logo data-v-1b2312ce" src="../../static/position.png"></image><view class="oneflex textov data-v-1b2312ce">{{''+(location.address?location.address:'北京市天安门')}}</view></view><view class="home_list_container flex column data-v-1b2312ce" style="overflow:hidden;"><view class="home_list_header data-v-1b2312ce"><view class="home_list_header_input data-v-1b2312ce"><uni-icons class="home_list_header_input_icon data-v-1b2312ce" vue-id="6b3d36ea-1" type="search" size="20" bind:__l="__l"></uni-icons><input placeholder="搜索" type="text" data-event-opts="{{[['confirm',[['seach',['$event']]]],['input',[['__set_model',['$0','stationName','$event',[]],['pageData']]]]]}}" value="{{pageData.stationName}}" bindconfirm="__e" bindinput="__e" class="data-v-1b2312ce"/><block wx:if="{{pageData.stationName!==''}}"><uni-icons vue-id="6b3d36ea-2" type="clear" size="20" data-event-opts="{{[['^click',[['e0']]]]}}" bind:click="__e" class="data-v-1b2312ce" bind:__l="__l"></uni-icons></block></view><view class="home_list_option_list flex around data-v-1b2312ce"><block wx:for="{{options}}" wx:for-item="item" wx:for-index="index" wx:key="index"><view data-event-opts="{{[['tap',[['e1',['$event']]]]]}}" data-event-params="{{({item})}}" class="{{['data-v-1b2312ce','home_list_option_list_item flex jc ac'+(item.value==pageData.sortType?' select_home_list_option_list_item':'')]}}" bindtap="__e">{{''+item.label+''}}</view></block></view></view><view class="home_list data-v-1b2312ce"><block wx:if="{{$root.g0}}"><scroll-view style="height:100%;" refresher-enabled="{{true}}" refresher-triggered="{{refresherTriggered}}" scroll-y="true" data-event-opts="{{[['refresherrefresh',[['refresherrefresh',['$event']]]],['scrolltolower',[['scrolltolower',['$event']]]]]}}" bindrefresherrefresh="__e" bindscrolltolower="__e" class="data-v-1b2312ce"><block wx:for="{{viewData.list}}" wx:for-item="item" wx:for-index="index" wx:key="index"><station-item vue-id="{{'6b3d36ea-3-'+index}}" data="{{item}}" class="data-v-1b2312ce" bind:__l="__l"></station-item></block></scroll-view></block><block wx:else><image class="qx data-v-1b2312ce" src="../../static/qs.png" mode></image></block></view></view></view></block><block wx:else><view class="data-v-1b2312ce"><skeleton vue-id="6b3d36ea-4" class="data-v-1b2312ce" bind:__l="__l"></skeleton></view></block></view>

View File

@@ -0,0 +1 @@
.home_container.data-v-1b2312ce{display:flex;flex-direction:column}.home_container .home_list_container.data-v-1b2312ce{flex:1;background:#fff;border-radius:70rpx 70rpx 0rpx 0rpx;padding:44rpx 0;box-sizing:border-box;padding-bottom:0;overflow:hidden}.home_container .home_list_container .home_list_header.data-v-1b2312ce{padding:0 31rpx}.home_container .home_list_container .home_list_header .home_list_header_input.data-v-1b2312ce{background:#f7f7f7;border-radius:81rpx;overflow-x:hidden;display:flex;padding:10rpx 31rpx}.home_container .home_list_container .home_list_header .home_list_header_input .home_list_header_input_icon.data-v-1b2312ce{margin-right:10rpx}.home_container .home_list_container .home_list_header .home_list_header_input input.data-v-1b2312ce{flex:1;font-size:26rpx}.home_container .home_list_container .home_list_header .home_list_option_list.data-v-1b2312ce{font-size:24rpx;margin-top:41rpx}.home_container .home_list_container .home_list_header .home_list_option_list .home_list_option_list_item.data-v-1b2312ce{width:142rpx;height:40rpx;border-radius:48rpx 48rpx 48rpx 48rpx;border:1rpx solid #121836;box-sizing:border-box;color:#121836}.home_container .home_list_container .home_list_header .home_list_option_list .select_home_list_option_list_item.data-v-1b2312ce{background-color:#0b1123;color:#fff}.home_container .home_list_container .home_list.data-v-1b2312ce{flex:1;overflow:hidden}.home_container .home_list_container .home_list.data-v-1b2312ce ::-webkit-scrollbar{width:0;height:0;background-color:initial}.home_container .home_title.data-v-1b2312ce{width:100%;box-sizing:border-box;display:flex;align-items:center;margin-bottom:32rpx;padding-left:31rpx;font-size:26rpx;color:#333}.home_container .home_title .home_title_logo.data-v-1b2312ce{width:38rpx;height:38rpx;margin-right:18rpx}.page_body.data-v-1b2312ce{width:100vw;height:100vh;display:flex;flex-direction:column;box-sizing:border-box;background:linear-gradient(133deg,rgba(219,235,250,.9) 2%,rgba(241,248,253,.9))}.page_body .page_container.data-v-1b2312ce{flex:1;overflow:hidden}

View File

@@ -0,0 +1,10 @@
(global["webpackJsonp"]=global["webpackJsonp"]||[]).push([["pages/home/skeleton"],{"41c8":function(n,t,e){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;t.default={}},"54fc":function(n,t,e){"use strict";e.r(t);var u=e("41c8"),c=e.n(u);for(var f in u)["default"].indexOf(f)<0&&function(n){e.d(t,n,(function(){return u[n]}))}(f);t["default"]=c.a},"8ace":function(n,t,e){"use strict";e.d(t,"b",(function(){return u})),e.d(t,"c",(function(){return c})),e.d(t,"a",(function(){}));var u=function(){var n=this.$createElement;this._self._c},c=[]},"8b4f":function(n,t,e){"use strict";var u=e("d158"),c=e.n(u);c.a},b1ff:function(n,t,e){"use strict";e.r(t);var u=e("8ace"),c=e("54fc");for(var f in c)["default"].indexOf(f)<0&&function(n){e.d(t,n,(function(){return c[n]}))}(f);e("8b4f");var a=e("f0c5"),r=Object(a["a"])(c["default"],u["b"],u["c"],!1,null,"21e8aa61",null,!1,u["a"],void 0);t["default"]=r.exports},d158:function(n,t,e){}}]);
;(global["webpackJsonp"] = global["webpackJsonp"] || []).push([
'pages/home/skeleton-create-component',
{
'pages/home/skeleton-create-component':(function(module, exports, __webpack_require__){
__webpack_require__('543d')['createComponent'](__webpack_require__("b1ff"))
})
},
[['pages/home/skeleton-create-component']]
]);

View File

@@ -0,0 +1,4 @@
{
"usingComponents": {},
"component": true
}

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long