lifanagju_citu 6 hónapja
szülő
commit
bb2acca6ff
3 módosított fájl, 32 hozzáadás és 12 törlés
  1. 0 2
      api/vip.js
  2. 31 9
      pagesA/vip/blockEnt/index.vue
  3. 1 1
      pagesA/vip/index.vue

+ 0 - 2
api/vip.js

@@ -5,7 +5,6 @@ export const getBlockEnterpriseList = async () => {
   return request({
     url: '/app-api/menduner/system/person/enterprise-block/page',
     method: 'GET',
-    params,
     custom: {
       showLoading: false,
       auth: true
@@ -31,7 +30,6 @@ export const handleUnBlockEnterprise = async (enterpriseId) => {
   return request({
     url: '/app-api/menduner/system/person/enterprise-block/un-block?enterpriseId=' + enterpriseId,
     method: 'DELETE',
-    params,
     custom: {
       showLoading: false,
       auth: true

+ 31 - 9
pagesA/vip/blockEnt/index.vue

@@ -10,19 +10,17 @@
           cancelButton="none"
           :focus="false"
           bgColor="#fff"
-          @confirm="getData($event.value)"
+          @confirm="getEntList($event.value)"
           @clear="query.content = ''"
         >
         </uni-search-bar>
-        <button class="search-btn" @click.stop="getData" :loading="loading">搜索</button>
+        <button class="search-btn" @click.stop="getEntList" :loading="loading">搜索</button>
       </view>
     </view>
     <uni-popup ref="popup" type="bottom" background-color="#fff">
-			<uni-card v-for="(item, index) in list" :key="index" :is-shadow="true" :border='false' shadow="0px 0px 3px 1px rgba(0,0,0,0.1)">
+			<uni-card v-for="item in entList" :key="item.id" :is-shadow="true" :border='false' shadow="0px 0px 3px 1px rgba(0,0,0,0.1)">
 				<view class="d-flex align-center">
-          <view @click="preview(item.url)"  style="flex: 1;">
-            <view class="font-size-14" style="font-weight: bold; margin: 15rpx 0; color: #777;">{{ item.title }}</view>
-          </view>
+          123
         </view>
 			</uni-card>
     </uni-popup>
@@ -40,12 +38,21 @@ import {
 const popup = ref()
 const loading = ref(false)
 const name = ref('')
-const list = ref()
-const getData = async () => {
+const entList = ref([])
+// 获取企业列表
+const getEntList = async (name) => {
+  // if (name) name.value = name
+  // if (!name) {
+  //   uni.showToast({
+  //     title: '请输入公司关键字',
+  //     icon: 'none'
+  //   })
+  //   return
+  // }
   try {
     loading.value = true
     const res = await getBlockEnterpriseList()
-    list.value = res?.data || []
+    entList.value = res?.data?.list || []
     popup.value.open()
   } catch (error) {
     uni.showToast({
@@ -56,6 +63,21 @@ const getData = async () => {
   }
 }
 
+const dataList = ref([])
+const getData = async () => {
+  try {
+    const res = await getBlockEnterpriseList()
+    dataList.value = res?.data?.list || []
+    popup.value.open()
+  } catch (error) {
+    uni.showToast({
+      title: '查询数据失败,请重试',
+      icon: 'none'
+    })
+  }
+}
+getData()
+
 </script>
 <style lang="scss" scoped>
 .stick {

+ 1 - 1
pagesA/vip/index.vue

@@ -51,7 +51,7 @@ const remaining = computed(() => {
 
 const list = ref([
 	{	title: '简历模板',	path: '/pagesA/vip/template/index'	},					
-	{	title: '屏蔽企业',	path: '/pagesA/vip/blockEnt/index'	},			
+	// {	title: '屏蔽企业',	path: '/pagesA/vip/blockEnt/index'	},			
 ])
 
 // 列表跳转