瀏覽代碼

commit -m 修改

zhengjinyi 4 年之前
父節點
當前提交
fa74494804
共有 2 個文件被更改,包括 4 次插入4 次删除
  1. 1 1
      pages/index/index.vue
  2. 3 3
      pages/user/club/club-list.vue

+ 1 - 1
pages/index/index.vue

@@ -87,7 +87,7 @@
 			<!-- 帮机构下单 -->
 			<view
 				class="place-order"
-				@click="navigator(`/pages/user/club/club-list?id=${organizeId}`)"
+				@click="navigator(`/pages/user/club/club-list`)"
 			>
 				<view class="place-left">
 					<text class="iconfont icon-bangjigouxiadan"></text>

+ 3 - 3
pages/user/club/club-list.vue

@@ -124,14 +124,14 @@ export default {
 			isIphoneX: false
 		}
 	},
-	onLoad(data) {
+	onLoad() {
 		this.isIphoneX = this.$store.state.isIphoneX
 		this.setScrollHeight()
 		// 获取传过来的organizeId
-		this.organizeId = data.id
+		const userInfo = uni.getStorageSync('userInfo')
+		this.organizeId = userInfo.organizeId
 		// 初始化列表
 		this.init()
-		console.log(this.clubList)
 	},
 	methods: {
 		// 初始化机构列表