d第一次提交
This commit is contained in:
10
unpackage/dist/build/mp-weixin/ChargingStation/components/charge/index.js
vendored
Normal file
10
unpackage/dist/build/mp-weixin/ChargingStation/components/charge/index.js
vendored
Normal file
@@ -0,0 +1,10 @@
|
||||
(global["webpackJsonp"]=global["webpackJsonp"]||[]).push([["ChargingStation/components/charge/index"],{"16ee":function(e,t,n){"use strict";n.r(t);var i=n("b1c2"),s=n("7136");for(var a in s)["default"].indexOf(a)<0&&function(e){n.d(t,e,(function(){return s[e]}))}(a);n("527e");var o=n("f0c5"),c=Object(o["a"])(s["default"],i["b"],i["c"],!1,null,"b429d94e",null,!1,i["a"],void 0);t["default"]=c.exports},"527e":function(e,t,n){"use strict";var i=n("f2ce"),s=n.n(i);s.a},"665b":function(e,t,n){"use strict";(function(e){var i=n("4ea4");Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var s=i(n("b489")),a=i(n("40ac")),o=(i(n("9f6c")),{props:{value:{type:Boolean,default:!1},addressData:{type:Object,default:function(){return null}}},watch:{value:function(e,t){console.log("监听",e),e?this.$refs.popup.open("bottom"):this.$refs.popup.close()},addressData:function(e,t){this.addressDataFilter(this.addressData)}},created:function(){console.log(this.value,"111")},data:function(){return{pickerOpen:!1,determine:null,addressList:{provinces:s.default,citys:a.default},seleData:null,seleIndex:[],seachValue:"",getData:{pageSize:5,currentPage:1,params:{nameOrPhone:"",type:0}}}},methods:{pickstart:function(){this.pickerOpen=!0},pickendFn:function(){this.pickerOpen=!1,console.log("结束"),this.$nextTick((function(){console.log(this.addressList.provinces[this.seleIndex[0]].label,this.addressList.citys[this.seleIndex[0]][this.seleIndex[1]].label)}))},addressDataFilter:function(e){var t=this;console.log(this.seleIndex.length,"***"),this.addressList.provinces.forEach((function(n,i){n.label==e.province&&(t.seleIndex[0]=i,t.addressList.citys[t.seleIndex[0]].forEach((function(n,i){n.label==e.city&&(t.seleIndex[1]=i)})))}))},iconClick:function(){this.getData.params.nameOrPhone||this.getlist()},buttenFn:function(){var t=this;clearTimeout(this.determine),e.showLoading({title:"加载中"}),this.seleData={province:this.addressList.provinces[this.seleIndex[0]].label,city:this.addressList.citys[this.seleIndex[0]][this.seleIndex[1]].label},this.determine=setTimeout((function(){t.$emit("chargeChange",t.seleData),e.hideLoading(),t.$emit("input",!1)}),700)},getlist:function(){},pickerChange:function(e){this.seleIndex=e.detail.value},change:function(e){this.$emit("input",e.show)},confirmFn:function(){this.getlist()}}});t.default=o}).call(this,n("543d")["default"])},7136:function(e,t,n){"use strict";n.r(t);var i=n("665b"),s=n.n(i);for(var a in i)["default"].indexOf(a)<0&&function(e){n.d(t,e,(function(){return i[e]}))}(a);t["default"]=s.a},b1c2:function(e,t,n){"use strict";n.d(t,"b",(function(){return s})),n.d(t,"c",(function(){return a})),n.d(t,"a",(function(){return i}));var i={uniPopup:function(){return n.e("uni_modules/uni-popup/components/uni-popup/uni-popup").then(n.bind(null,"cc5a"))}},s=function(){var e=this.$createElement,t=(this._self._c,this.value?Boolean(Number(this.seleIndex.length)):null);this.$mp.data=Object.assign({},{$root:{m0:t}})},a=[]},f2ce:function(e,t,n){}}]);
|
||||
;(global["webpackJsonp"] = global["webpackJsonp"] || []).push([
|
||||
'ChargingStation/components/charge/index-create-component',
|
||||
{
|
||||
'ChargingStation/components/charge/index-create-component':(function(module, exports, __webpack_require__){
|
||||
__webpack_require__('543d')['createComponent'](__webpack_require__("16ee"))
|
||||
})
|
||||
},
|
||||
[['ChargingStation/components/charge/index-create-component']]
|
||||
]);
|
||||
6
unpackage/dist/build/mp-weixin/ChargingStation/components/charge/index.json
vendored
Normal file
6
unpackage/dist/build/mp-weixin/ChargingStation/components/charge/index.json
vendored
Normal file
@@ -0,0 +1,6 @@
|
||||
{
|
||||
"usingComponents": {
|
||||
"uni-popup": "/uni_modules/uni-popup/components/uni-popup/uni-popup"
|
||||
},
|
||||
"component": true
|
||||
}
|
||||
1
unpackage/dist/build/mp-weixin/ChargingStation/components/charge/index.wxml
vendored
Normal file
1
unpackage/dist/build/mp-weixin/ChargingStation/components/charge/index.wxml
vendored
Normal file
@@ -0,0 +1 @@
|
||||
<view class="data-v-b429d94e"><uni-popup vue-id="24a41100-1" type="bottom" background-color="#fff" data-ref="popup" data-event-opts="{{[['^change',[['change']]]]}}" bind:change="__e" class="data-v-b429d94e vue-ref" bind:__l="__l" vue-slots="{{['default']}}"><block wx:if="{{value}}"><view style="height:35vh;display:flex;flex-direction:column;" class="data-v-b429d94e"><block wx:if="{{$root.m0}}"><picker-view style="flex:1;" value="{{seleIndex}}" data-event-opts="{{[['change',[['pickerChange',['$event']]]],['pickstart',[['pickstart',['$event']]]],['pickend',[['pickendFn',['$event']]]]]}}" bindchange="__e" bindpickstart="__e" bindpickend="__e" class="data-v-b429d94e"><picker-view-column class="data-v-b429d94e"><block wx:for="{{addressList.provinces}}" wx:for-item="item" wx:for-index="index" wx:key="index"><view style="display:flex;align-items:center;justify-content:center;" class="data-v-b429d94e">{{item.label}}</view></block></picker-view-column><picker-view-column class="data-v-b429d94e"><block wx:for="{{addressList.citys[seleIndex[0]]}}" wx:for-item="item" wx:for-index="index" wx:key="index"><view style="display:flex;align-items:center;justify-content:center;" class="data-v-b429d94e">{{item.label}}</view></block></picker-view-column></picker-view></block><button class="butten data-v-b429d94e" disabled="{{pickerOpen}}" loading="{{pickerOpen}}" data-event-opts="{{[['tap',[['buttenFn',['$event']]]]]}}" bindtap="__e"><text class="data-v-b429d94e">{{pickerOpen?'加载中':'确定'}}</text></button></view></block></uni-popup></view>
|
||||
1
unpackage/dist/build/mp-weixin/ChargingStation/components/charge/index.wxss
vendored
Normal file
1
unpackage/dist/build/mp-weixin/ChargingStation/components/charge/index.wxss
vendored
Normal file
@@ -0,0 +1 @@
|
||||
button[disabled].data-v-b429d94e{background:rgba(0,122,255,.3137254901960784);color:hsla(0,0%,100%,.3137254901960784)}.butten.data-v-b429d94e{display:flex;justify-content:center;font-size:35rpx;color:#fff;width:60%;margin:10rpx auto;border-radius:10px;background:#007aff;align-items:center}
|
||||
Reference in New Issue
Block a user