From ca73a173f008c8d7a9d700bad897ca24fe2d2203 Mon Sep 17 00:00:00 2001
From: k94314517 <8417338+k94314517@user.noreply.gitee.com>
Date: 星期一, 16 十月 2023 09:29:57 +0800
Subject: [PATCH] 111
---
minipro_standard/pages_adjust/components/location.vue | 36 ++++++++++++++++++++----------------
1 files changed, 20 insertions(+), 16 deletions(-)
diff --git a/minipro_standard/pages_adjust/components/location.vue b/minipro_standard/pages_adjust/components/location.vue
index 1dadea7..abc7135 100644
--- a/minipro_standard/pages_adjust/components/location.vue
+++ b/minipro_standard/pages_adjust/components/location.vue
@@ -1,19 +1,13 @@
<template>
- <u-popup :show="show" mode="bottom" :closeable="true" :round="10" @open="open" @close="close">
+ <u-popup :show="show" mode="bottom" :closeable="true" :round="10" @close="close">
<view class="title">
<text>閫夋嫨璐т綅</text>
</view>
<view class="content">
<view class="content_list">
- <u-list @scrolltolower="scrolltolower">
- <u-list-item v-for="(item, index) in indexList" :key="index">
- <div class="content_list_item">
- <div class="content_list_item_name">
- 璐т綅{{index}}
- </div>
- </div>
- </u-list-item>
- </u-list>
+ <div class="content_list_item" v-for="(item, i) in list" :key="i" @click="jump(item)">
+ <div class="content_list_item_name">{{item.unionName}}</div>
+ </div>
</view>
</view>
</u-popup>
@@ -22,13 +16,23 @@
<script>
export default {
props: {
- show: Boolean
+ show: {
+ type: Boolean,
+ required: true
+ },
+ list: {
+ type: Array,
+ required: true
+ }
},
- data() {
- return {
- indexList: [1,2,3,4,5,6,7,8,9]
- };
- },
+ methods: {
+ close() {
+ this.$emit('close')
+ },
+ jump(item) {
+ this.$emit('value', item)
+ }
+ }
}
</script>
--
Gitblit v1.9.3