no message
This commit is contained in:
1
unpackage/dist/build/mp-weixin/pages/index/index.js
vendored
Normal file
1
unpackage/dist/build/mp-weixin/pages/index/index.js
vendored
Normal file
@@ -0,0 +1 @@
|
||||
"use strict";const e=require("../../common/vendor.js"),n=require("../../common/assets.js"),t=require("../../api/api.js");if(!Array){(e.resolveComponent("uni-transition")+e.resolveComponent("orderList")+e.resolveComponent("cc-myTabbar"))()}Math||((()=>"../../uni_modules/uni-transition/components/uni-transition/uni-transition.js")+(()=>"../../components/orderList/orderList.js")+(()=>"../../uni_modules/cc-myTabbar/components/cc-myTabbar/cc-myTabbar.js"))();const o={__name:"index",setup(o){let a=e.ref(113.675688),i=e.ref(34.75527700365562),r=e.ref(null),u=e.ref(!1),s=e.ref(),l=e.ref([]),c=e.ref([]);e.onLoad((async()=>{r.value=e.index.createMapContext("map");const{longitude:n,latitude:t}=await e.index.getLocation({type:"gcj02"});i.value=t,a.value=n,d(),setTimeout((()=>{m()}),300)}));let d=async()=>{let e=(await t.aroundAreaMap({orderByType:1,lat:i.value,lon:a.value})).map(((e,n)=>({id:e.id,longitude:e.location.lng,latitude:e.location.lat,iconPath:"/static/icon/marker-pointer.png",width:20,height:23,content:"2",gunUseCount:e.gunUseCount,gunCount:e.gunCount,distance:e.distance,customCallout:{display:"ALWAYS",anchorX:0,anchorY:-10}})));e.unshift({longitude:a.value,latitude:i.value,iconPath:"/static/icon/my-location-default.png",width:45,height:45,id:-1}),c.value=e};const m=()=>{const e=a.value,n=i.value;r.value.moveToLocation({longitude:e,latitude:n})},p=e=>{"end"==e.type&&(console.log(e),console.log(e.detail.scale),u.value=!1,g(!1))},f=async n=>{var o;if(console.log(n,"eeeeeee"),-1==n.markerId)return;e.index.showLoading();let a=await t.infoAroundApi({id:n.markerId}),i=c.value.find((e=>e.id==n.markerId)),r=null==(o=null==a?void 0:a.priceList)?void 0:o.find((e=>1==e.isCurrent));l.value={...a,distance:i.distance,priceAmount:r.totalAmount},console.log(l,"infoDzinfoDz"),e.index.hideLoading(),u.value=!0,g(!0)},g=e=>{e?s.value.step({translateY:"-200rpx"},{timingFunction:"ease-in",duration:100}):s.value.step({translateY:"0rpx"},{timingFunction:"ease",duration:500}),s.value.run()};return(t,o)=>({a:e.f(e.unref(c),((n,t,o)=>({a:e.t(n.gunUseCount||0),b:e.t(n.gunCount||0),c:n.id}))),b:n._imports_0$1,c:e.unref(a),d:e.o(f),e:e.o(f),f:e.o(p),g:e.unref(c),h:e.unref(i),i:n._imports_1$1,j:e.o(m),k:e.sr(s,"1a922a9b-0",{k:"mapLocationRef"}),l:e.p({show:!0}),m:e.p({toNav:!0,Image:!0,info:e.unref(l),list:e.unref(l).pictures}),n:e.p({modeClass:"fade",show:e.unref(u)}),o:e.p({tabBarShow:1})})}};wx.createPage(o);
|
||||
9
unpackage/dist/build/mp-weixin/pages/index/index.json
vendored
Normal file
9
unpackage/dist/build/mp-weixin/pages/index/index.json
vendored
Normal file
@@ -0,0 +1,9 @@
|
||||
{
|
||||
"navigationBarTitleText": "",
|
||||
"navigationStyle": "custom",
|
||||
"usingComponents": {
|
||||
"uni-transition": "../../uni_modules/uni-transition/components/uni-transition/uni-transition",
|
||||
"order-list": "../../components/orderList/orderList",
|
||||
"cc-my-tabbar": "../../uni_modules/cc-myTabbar/components/cc-myTabbar/cc-myTabbar"
|
||||
}
|
||||
}
|
||||
1
unpackage/dist/build/mp-weixin/pages/index/index.wxml
vendored
Normal file
1
unpackage/dist/build/mp-weixin/pages/index/index.wxml
vendored
Normal file
@@ -0,0 +1 @@
|
||||
<view class="content"><map id="map" longitude="{{c}}" bindmarkertap="{{d}}" bindcallouttap="{{e}}" bindregionchange="{{f}}" height="90" width="90" markers="{{g}}" latitude="{{h}}" class="map_content"><cover-view slot="callout"><block wx:for="{{a}}" wx:for-item="item"><cover-view class="callout" marker-id="{{item.c}}"><cover-view class="callout_item"><cover-image class="callout_item_img" src="{{b}}"></cover-image><cover-view class="callout_item_view">闲 {{item.a}}/{{item.b}}</cover-view></cover-view></cover-view></block></cover-view></map><uni-transition wx:if="{{l}}" class="r" u-s="{{['d']}}" u-r="mapLocationRef" u-i="1a922a9b-0" bind:__l="__l" u-p="{{l}}"><view class="map-location" bindtap="{{j}}"><image src="{{i}}" mode="widthFix"></image></view></uni-transition><uni-transition wx:if="{{n}}" u-s="{{['d']}}" u-i="1a922a9b-1" bind:__l="__l" u-p="{{n}}"><view class="map_box"><order-list wx:if="{{m}}" u-i="1a922a9b-2,1a922a9b-1" bind:__l="__l" u-p="{{m}}"/></view></uni-transition><cc-my-tabbar wx:if="{{o}}" u-i="1a922a9b-3" bind:__l="__l" u-p="{{o}}"></cc-my-tabbar></view>
|
||||
1
unpackage/dist/build/mp-weixin/pages/index/index.wxss
vendored
Normal file
1
unpackage/dist/build/mp-weixin/pages/index/index.wxss
vendored
Normal file
@@ -0,0 +1 @@
|
||||
.map_content{width:750rpx;height:100vh}.map-location{width:90rpx;height:90rpx;background-color:#fff;position:fixed;left:30rpx;bottom:570rpx;border-radius:20rpx;display:flex;align-items:center;justify-content:center;box-shadow:0 5px 11px rgba(0,0,0,.2)}.map-location image{width:45rpx;height:45rpx}.callout{box-sizing:border-box;background:rgba(15,75,203,.26);border-radius:15rpx 15rpx 15rpx 0;padding:10rpx 15rpx;display:flex;align-items:center;flex-direction:column;justify-content:start}.callout_item{display:flex;align-items:center;flex-direction:row;justify-content:start;font-weight:700;font-size:28rpx;color:#fff;box-sizing:border-box}.callout_item_img{width:40rpx;height:40rpx;margin-right:15rpx}.callout_item:nth-child(1){margin-bottom:15rpx}.recharge{width:690rpx;background-color:#fff;min-height:300rpx;position:fixed;left:30rpx;bottom:250rpx;border-radius:20rpx;padding:20rpx;box-shadow:0 5px 11px rgba(0,0,0,.2)}.recharge_title{font-size:36rpx;margin-bottom:20rpx}.recharge_con{font-size:26rpx}.map_box{width:690rpx;position:fixed;left:30rpx;bottom:230rpx;z-index:999}
|
||||
Reference in New Issue
Block a user