第一次提交

This commit is contained in:
dt_2916866708
2024-02-28 17:26:46 +08:00
commit f756390529
991 changed files with 126914 additions and 0 deletions

View File

@@ -0,0 +1 @@
(global["webpackJsonp"]=global["webpackJsonp"]||[]).push([["ChargingStation/pages/chooseLocation/index"],{"0c3c":function(e,n,t){},"351d":function(e,n,t){"use strict";t.d(n,"b",(function(){return a})),t.d(n,"c",(function(){return o})),t.d(n,"a",(function(){return i}));var i={uniIcons:function(){return Promise.all([t.e("common/vendor"),t.e("uni_modules/uni-icons/components/uni-icons/uni-icons")]).then(t.bind(null,"e4f7"))}},a=function(){var e=this.$createElement,n=(this._self._c,Boolean(Number(this.List.length)));this.$mp.data=Object.assign({},{$root:{m0:n}})},o=[]},"560c":function(e,n,t){"use strict";var i=t("0c3c"),a=t.n(i);a.a},"5e06":function(e,n,t){"use strict";(function(e,n){var i=t("4ea4");t("9773");i(t("66fd"));var a=i(t("7a4c"));e.__webpack_require_UNI_MP_PLUGIN__=t,n(a.default)}).call(this,t("bc2e")["default"],t("543d")["createPage"])},"748c":function(e,n,t){"use strict";t.r(n);var i=t("8d1b"),a=t.n(i);for(var o in i)["default"].indexOf(o)<0&&function(e){t.d(n,e,(function(){return i[e]}))}(o);n["default"]=a.a},"7a4c":function(e,n,t){"use strict";t.r(n);var i=t("351d"),a=t("748c");for(var o in a)["default"].indexOf(o)<0&&function(e){t.d(n,e,(function(){return a[e]}))}(o);t("560c");var s=t("f0c5"),c=Object(s["a"])(a["default"],i["b"],i["c"],!1,null,"0c2d8880",null,!1,i["a"],void 0);n["default"]=c.exports},"8d1b":function(e,n,t){"use strict";(function(e){var i=t("4ea4");Object.defineProperty(n,"__esModule",{value:!0}),n.default=void 0;var a=i(t("2482")),o={components:{charge:function(){Promise.all([t.e("common/vendor"),t.e("ChargingStation/components/charge/index")]).then(function(){return resolve(t("16ee"))}.bind(null,t)).catch(t.oe)}},data:function(){return{params:{province:!0,city:!0,area:!0},isShow:{address:!1},type:1,seachValue:"",List:[],TXSDK:null,location:"",addressData:{province:"",city:"",area:""},pageSize:{page_size:15,page:1}}},onLoad:function(e){var n=this;e.type&&(this.type=e.type.split("/")[0],this.location=e.type.split("/")[1],console.log(this.List,Boolean(Number(this.List))),this.TXSDK.reverseGeocoder({sig:"mOPvEv4WmyaxymycTYy00pSiad2jnQil",location:n.location,success:function(e){var t=e.result.address_component;n.addressData.province=t.province,n.addressData.city=t.city,n.addressData.area=t.district,console.log(e,n.addressData,"地址逆解析")},fail:function(e){console.log(e,"地址逆解析 错误")}}))},created:function(){this.TXSDK=new a.default({key:"UTXBZ-BUH6D-TQD44-HCEG4-UKOFT-U2BDN"})},methods:{seleClick:function(n){e.$emit("UpdateAddress",n,this.type),e.navigateBack()},chargeChange:function(e){this.addressData=Object.assign(this.addressData,e),console.log(e)},isShowFn:function(){this.isShow.address=!0},loding:function(n){n?e.showLoading({title:"加载中",mask:!0}):setTimeout((function(){e.hideLoading()}),500)},getRegion:function(){var n=this;this.loding(!0),this.TXSDK.search({sig:"mOPvEv4WmyaxymycTYy00pSiad2jnQil",keyword:n.seachValue,auto_extend:"0",region:-1!==n.addressData.province.indexOf("市")?n.addressData.province:n.addressData.province+n.addressData.city,page_size:n.pageSize.page_size,location:n.location||"",page_index:n.pageSize.page,success:function(t){n.loding(!1),"query ok"===t.message&&(0==t.data.length&&e.showToast({title:"没有数据了",icon:"none"}),n.pageSize.page>1?n.List=n.List.concat(t.data):n.List=t.data)},fail:function(e){n.loding(!1),console.log(e,"错误")}})},seachFn:function(e){this.pageSize.page=1,this.getRegion()},lower:function(){this.pageSize.page+=1,this.getRegion()}}};n.default=o}).call(this,t("543d")["default"])}},[["5e06","common/runtime","common/vendor"]]]);

View File

@@ -0,0 +1,9 @@
{
"navigationBarTitleText": "选择位置",
"enablePullDownRefresh": false,
"navigationBarBackgroundColor": "#F1F8FD",
"usingComponents": {
"uni-icons": "/uni_modules/uni-icons/components/uni-icons/uni-icons",
"charge": "/ChargingStation/components/charge/index"
}
}

View File

@@ -0,0 +1 @@
<view class="seach_body data-v-0c2d8880"><view class="seach_input data-v-0c2d8880"><view data-event-opts="{{[['tap',[['isShowFn',['$event']]]]]}}" class="seach_input_left color-66 data-v-0c2d8880" bindtap="__e"><uni-icons class="mar data-v-0c2d8880" vue-id="7e9410f2-1" type="search" size="20" bind:__l="__l"></uni-icons><view class="data-v-0c2d8880">{{addressData.city}}</view><uni-icons class="bottom data-v-0c2d8880" vue-id="7e9410f2-2" color="#bbbbbb" type="back" size="15" bind:__l="__l"></uni-icons></view><view class="seach_input_right data-v-0c2d8880"><input style="flex:1;" placeholder="请输入地址" type="text" data-event-opts="{{[['confirm',[['seachFn',['$event']]]],['input',[['__set_model',['','seachValue','$event',[]]]]]]}}" value="{{seachValue}}" bindconfirm="__e" bindinput="__e" class="data-v-0c2d8880"/><view data-event-opts="{{[['tap',[['seachFn',['$event']]]]]}}" class="seach_input_butten data-v-0c2d8880" bindtap="__e">搜索</view></view></view><view class="seach_list data-v-0c2d8880" style="{{'height:'+($root.m0?'calc(100vh - 80rpx - 38rpx)':'0px')+';'}}"><scroll-view class="scroll-Y data-v-0c2d8880" scroll-y="true" data-event-opts="{{[['scrolltolower',[['lower',['$event']]]]]}}" bindscrolltolower="__e"><block wx:for="{{List}}" wx:for-item="item" wx:for-index="index"><view data-event-opts="{{[['tap',[['seleClick',['$0'],[[['List','',index]]]]]]]}}" class="list_item data-v-0c2d8880" bindtap="__e"><view class="list_item_size data-v-0c2d8880">{{item.title}}</view><view class="list_item_samall_size data-v-0c2d8880">{{item.address}}</view></view></block></scroll-view></view><charge vue-id="7e9410f2-3" addressData="{{addressData}}" value="{{isShow.address}}" data-event-opts="{{[['^chargeChange',[['chargeChange']]],['^input',[['__set_model',['$0','address','$event',[]],['isShow']]]]]}}" bind:chargeChange="__e" bind:input="__e" class="data-v-0c2d8880" bind:__l="__l"></charge></view>

View File

@@ -0,0 +1 @@
.seach_input_butten.data-v-0c2d8880{color:#ff6700;height:100%;white-space:nowrap;display:flex;align-items:center;padding:0 10rpx}.list_item_samall_size.data-v-0c2d8880{color:#bbb;font-size:24rpx}.list_item_size.data-v-0c2d8880{color:#666;font-size:28rpx}.list_item.data-v-0c2d8880{width:90%;margin:0 auto;border-radius:10px;margin-top:60rpx;padding-left:60rpx}.scroll-Y.data-v-0c2d8880{width:100%;height:100%;overflow:hidden}.data-v-0c2d8880 .uni-combox__no-border{padding:0!important;height:100%}.seach_input_right_input.data-v-0c2d8880{flex:1;height:100%}.color-66.data-v-0c2d8880{color:#666}.mar.data-v-0c2d8880{margin-right:20rpx}.bottom.data-v-0c2d8880{-webkit-transform:rotate(270deg);transform:rotate(270deg);transition:all .3s;margin:0 20rpx}.seach_input_right.data-v-0c2d8880{flex:1;margin:0 10rpx;display:flex;align-items:center}.seach_input_left.data-v-0c2d8880{display:flex;align-items:center;border-right:1rpx #f0f0f0 solid}.seach_input.data-v-0c2d8880{background-color:#fff;border-radius:10px;height:80rpx;display:flex;padding:15rpx 32rpx;box-sizing:border-box}.seach_list.data-v-0c2d8880{background-color:#fff;margin-top:38rpx;border-radius:10px;overflow:hidden;transition:all .3s}.seach_body.data-v-0c2d8880{width:100vw;height:100vh;display:flex;flex-direction:column;padding:0 42rpx;background:#f1f8fd;box-sizing:border-box;font-size:24rpx}