Browse Source

no message

xiaoxin 2 years ago
parent
commit
84bcff1cc6
3 changed files with 9 additions and 3 deletions
  1. 7 1
      components/search.vue
  2. 1 1
      pages/home/home.vue
  3. 1 1
      pages/my/my.vue

+ 7 - 1
components/search.vue

@@ -18,10 +18,12 @@
 
 <script setup>
 import { ref } from 'vue'
+import { onLoad } from '@dcloudio/uni-app'
 
 const props = defineProps({
 	typeList: Array,
-	timeList: Array
+	timeList: Array,
+	result_state: Number
 })
 
 const typeValue = ref(0)
@@ -29,6 +31,10 @@ const timeValue = ref(0)
 
 const conveyData = defineEmits(['handLeConveyData'])
 
+onLoad(() => {
+	typeValue.value = props.result_state
+})
+
 const onnodeclick = () => {
 	conveyData('handLeConveyData', {
 		typeIndex: typeValue.value,

+ 1 - 1
pages/home/home.vue

@@ -103,7 +103,7 @@ import { filterIdentity } from '@/util/filterIdentity.js'
 
 onLoad(() => {
 	if (isWeixin()) {
-		// filterIdentity()
+		filterIdentity()
 		card_number.value = uni.getStorageSync('bus_card_number')
 	} else {
 		uni.redirectTo({

+ 1 - 1
pages/my/my.vue

@@ -1,7 +1,7 @@
 <template>
 	<view class="container">
 		<!-- 筛选区域 -->
-		<Search :typeList="typeList" :timeList="timeList" @handLeConveyData="getConveyData" />
+		<Search :result_state="result_state" :typeList="typeList" :timeList="timeList" @handLeConveyData="getConveyData" />
 
 		<!-- 列表区域 -->
 		<view class="list" v-for="(item, index) in listData" :key="index">