From c01448694740e96aa3df0c90a100da71ca18431c Mon Sep 17 00:00:00 2001
From: xpz2018 <107107461@qq.com>
Date: Tue, 19 Oct 2021 17:06:26 +0800
Subject: [PATCH] no message
---
pages/agent/fragment/index.js | 20 ++------------------
pages/agent/fragment/index.wxml | 7 -------
2 files changed, 2 insertions(+), 25 deletions(-)
diff --git a/pages/agent/fragment/index.js b/pages/agent/fragment/index.js
index 89617d0..6766dc0 100644
--- a/pages/agent/fragment/index.js
+++ b/pages/agent/fragment/index.js
@@ -1,5 +1,5 @@
import util from "../../../utils/util"
-import { getFactoryPrice, getFactoryCity, hasActivity } from "../../../api/ztb"
+import { getFactoryPrice, getFactoryCity } from "../../../api/ztb"
const event = require('../../../utils/event')
const app = getApp()
@@ -35,8 +35,7 @@ Component({
listType: 0
},
triggered: false,
- firstShow: false,
- hasActivity: false
+ firstShow: false
},
lifetimes: {
// 生命周期函数,可以为函数,或一个在methods段中定义的方法名
@@ -53,11 +52,6 @@ Component({
onRestart: function(){
this.fetchRegionList()
if(!this.data.firstShow){
- if(app.globalData.userInfo){
- hasActivity().then(result => {
- this.setData({ hasActivity: result.data })
- })
- }
this.setData({mHeight: app.globalData.safeFragmentHeight - 190 })
this.fetchPapersList()
}
@@ -74,13 +68,6 @@ Component({
} else if(message.what == 888){
this.setData({ orderList: [], tabIndex: this.data.tabIndex, ['form.pageNum']: 1, loading: true, finished: false })
this.fetchPapersList()
- if(app.globalData.userInfo){
- hasActivity().then(result => {
- this.setData({ hasActivity: result.data })
- })
- } else {
- this.setData({ hasActivity: false })
- }
}
},
searchList: function(){
@@ -89,9 +76,6 @@ Component({
chooseCity: function(){
this.triggerEvent("picker", {type: 2, cityId: this.data.form.cityId})
},
- toAbility: function(){
- util.navigateTo('/pages/agent/ability/index')
- },
fetchRegionList: function () {
if(this.data.tabList.length > 0){
return
diff --git a/pages/agent/fragment/index.wxml b/pages/agent/fragment/index.wxml
index 7091a3b..9b82958 100644
--- a/pages/agent/fragment/index.wxml
+++ b/pages/agent/fragment/index.wxml
@@ -31,13 +31,6 @@
暂无数据,点击重新加载
-
-
-
-
-
-
-