From 64bda9e8889704e19724eeec1811b695839a7ae5 Mon Sep 17 00:00:00 2001
From: MrShi <1878285526@qq.com>
Date: 星期二, 18 三月 2025 11:59:08 +0800
Subject: [PATCH] 1
---
bicycle/pages/maps/maps.vue | 40 +++++++++++++++++++++++++++-------------
1 files changed, 27 insertions(+), 13 deletions(-)
diff --git a/bicycle/pages/maps/maps.vue b/bicycle/pages/maps/maps.vue
index c36fb1a..37c3604 100644
--- a/bicycle/pages/maps/maps.vue
+++ b/bicycle/pages/maps/maps.vue
@@ -36,19 +36,14 @@
</u-popup>
<view class="search">
- <view class="search_left">
- <image src="@/static/icon/ic_search@2x.png" mode="widthFix"></image>
- <text>鎼滃仠杞︾偣</text>
- <view class="search_left_x"></view>
- <input type="text" placeholder="杈撳叆鐩殑鍦�" />
- </view>
+ <view class="search_left"></view>
<image class="dw" @click="clickcontrol" src="@/static/icon/map_relocation@2x.png" mode="widthFix"></image>
</view>
- <view class="index_scancode">
+ <view class="index_scancode" v-if="!userInfo.mobile || isShow">
<button class="index_scancode_bottom" open-type="getPhoneNumber" @getphonenumber="getPhone"
v-if="!userInfo.mobile">鎵爜绉熻溅</button>
- <view class="index_scancode_bottom" v-else>鎵爜绉熻溅</view>
+ <view class="index_scancode_bottom" v-else-if="isShow" @click="saoma">鎵爜绉熻溅</view>
<view class="index_scancode_zw"></view>
</view>
</view>
@@ -56,6 +51,7 @@
<script>
import { distance } from '@/utils/utils.js'
+ import { mapState } from 'vuex'
export default {
data() {
return {
@@ -66,15 +62,33 @@
markers: [],
info: {},
rice: '',
-
- eleBusinessArea: []
+ infoData: {},
+ eleBusinessArea: [],
+ isShow: false
};
+ },
+ computed: {
+ ...mapState(['userInfo'])
},
onLoad(options) {
this.type = options.type
this.getAddress()
+ this.refresh()
},
methods: {
+ saoma() {
+ uni.$emit('update', { msg:'椤甸潰鏇存柊' })
+ uni.navigateBack({ delta: 1 });
+ },
+ // 鍒锋柊棣栭〉淇℃伅
+ refresh() {
+ this.$u.api.home()
+ .then(res => {
+ if (res.code === 200) {
+ this.isShow = res.data.memberRidesResponse ? false : true
+ }
+ })
+ },
// 鑾峰彇缁忕含搴�
getAddress() {
let that = this;
@@ -148,7 +162,7 @@
distance: this.latitude && this.longitude ? num : '鏈煡璺濈',
latitude: item.latitude,
longitude: item.longitude,
- title: item.name,
+ title: item.code,
iconPath: '/static/icon/ic_bike@2x.png',
customCallout: {
anchorY: 0,
@@ -503,8 +517,8 @@
.search_left {
width: 400rpx;
height: 60rpx;
- background: #FFFFFF;
- box-shadow: 0rpx 0rpx 12rpx 0rpx rgba(0,0,0,0.08);
+ // background: #FFFFFF;
+ // box-shadow: 0rpx 0rpx 12rpx 0rpx rgba(0,0,0,0.08);
border-radius: 30rpx;
display: flex;
align-items: center;
--
Gitblit v1.9.3