|
@@ -26,6 +26,7 @@
|
|
|
<!-- 地区选择 -->
|
|
|
<div class="city">
|
|
|
<SimpleCity
|
|
|
+ ref="citySelect"
|
|
|
@change="onCityChange"
|
|
|
:options="cityList"
|
|
|
labelName="name"
|
|
@@ -97,6 +98,7 @@ export default {
|
|
|
},
|
|
|
total: 0,
|
|
|
cityList: [],
|
|
|
+ selectValue: [],
|
|
|
}
|
|
|
},
|
|
|
computed: {
|
|
@@ -109,15 +111,13 @@ export default {
|
|
|
const cacheData = this.$getStorage(this.routePrefix, 'club_list_data')
|
|
|
if (cacheData) {
|
|
|
this.initFromCache(cacheData)
|
|
|
+ this.$removeStorage(this.routePrefix, 'club_list_data')
|
|
|
} else {
|
|
|
this.initData()
|
|
|
this.fetchCityList()
|
|
|
}
|
|
|
},
|
|
|
beforeDestroy() {
|
|
|
- this.$setStorage(this.routePrefix, 'club_list_data', this.$data, {
|
|
|
- expiredTime: 5 * 60 * 1000,
|
|
|
- })
|
|
|
this.$toast.clear()
|
|
|
},
|
|
|
methods: {
|
|
@@ -125,6 +125,9 @@ export default {
|
|
|
drawLogo,
|
|
|
// 查看详情
|
|
|
toDetail(item) {
|
|
|
+ this.$setStorage(this.routePrefix, 'club_list_data', this.$data, {
|
|
|
+ expiredTime: 5 * 60 * 1000,
|
|
|
+ })
|
|
|
this.$setStorage(this.routePrefix, 'clubInfo', item)
|
|
|
const url = `${this.routePrefix}/approve/club/detail?id=${item.authId}`
|
|
|
this.$router.push(url)
|
|
@@ -138,6 +141,8 @@ export default {
|
|
|
this.listQuery = cacheData.listQuery
|
|
|
this.total = cacheData.total
|
|
|
this.cityList = cacheData.cityList
|
|
|
+ this.selectValue = cacheData.selectValue
|
|
|
+ this.$refs.citySelect.setSelectValue(this.selectValue)
|
|
|
},
|
|
|
// 初始化页面数据
|
|
|
async initData() {
|
|
@@ -196,6 +201,7 @@ export default {
|
|
|
this.listQuery.provinceId = ''
|
|
|
this.listQuery.cityId = ''
|
|
|
this.listQuery.townId = ''
|
|
|
+ this.selectValue = selectValue
|
|
|
|
|
|
selectValue.map((item, index) => {
|
|
|
if (index === 0) {
|
|
@@ -444,6 +450,7 @@ export default {
|
|
|
position: relative;
|
|
|
margin-left: 3.2vw;
|
|
|
.name {
|
|
|
+ width: 48vw;
|
|
|
font-size: 4vw;
|
|
|
color: #101010;
|
|
|
font-weight: bold;
|