98 lines
1.9 KiB
Vue
Raw Normal View History

2023-12-25 17:56:30 +08:00
<template>
2024-07-10 18:13:57 +08:00
<view style="background-color: #F1F2F8;letter-spacing: 1rpx;min-height: 100vh;">
<tn-nav-bar :isBack="false" :bottomShadow="false" backgroundColor="#ffffff">
<view class="custom-nav tn-flex tn-flex-col-center tn-flex-row-left">
<view style="width: 100%;">
<view
style="text-align: center;font-size: 34rpx;color: #000000;letter-spacing: 1px;font-weight: bold;">
<text>青企圈</text>
</view>
2023-12-25 17:56:30 +08:00
</view>
</view>
</tn-nav-bar>
2024-06-28 08:50:34 +08:00
<view :style="{paddingTop: vuex_custom_bar_height + 'px'}"
style="background-color: #ffffff;padding-bottom: 10rpx;">
2024-07-09 18:11:31 +08:00
2023-12-25 17:56:30 +08:00
</view>
</view>
</template>
<script>
2024-05-27 17:40:54 +08:00
import {
associationIndex
} from '@/util/api.js';
import store from '@/store/index.js'
2023-12-25 17:56:30 +08:00
export default {
data() {
return {
2024-04-20 14:57:39 +08:00
topCurrent: 0,
2024-04-23 11:58:07 +08:00
list: [],
2024-05-27 17:40:54 +08:00
apiImgUrl: this.$store.state.imgUrl,
content: ''
2023-12-25 17:56:30 +08:00
}
},
2024-05-27 17:40:54 +08:00
mounted() {
this.getAssociationIndex();
},
2023-12-25 17:56:30 +08:00
methods: {
2024-07-09 18:11:31 +08:00
switchTabbar(d) {
console.log(d);
store.commit('$tStore', {
name: 'Gid',
value: d.id
})
uni.setStorageSync('Gid', d.id);
uni.$emit('getGid', {
gid: d.id
})
uni.$emit('depId', {
index: 0
})
},
2024-05-27 17:40:54 +08:00
onsubmit() {
this.page = 1;
this.list = [];
this.getAssociationIndex();
},
getAssociationIndex() {
associationIndex({
association_name: this.content
})
.then(res => {
console.log(res);
if (res.code == 1) {
this.list.push(...res.data);
}
})
.catch(error => {
uni.showToast({
title: error,
icon: 'none',
duration: 2000
});
})
},
2024-04-20 14:57:39 +08:00
tn(e) {
uni.navigateTo({
url: e
})
}
2023-12-25 17:56:30 +08:00
}
}
</script>
<style>
2024-07-09 18:11:31 +08:00
.triangle {
width: 0;
height: 0;
border-top: 20rpx solid #13C296;
border-right: 20rpx solid transparent;
border-left: 20rpx solid transparent;
position: absolute;
left: 0;
right: 0;
margin: 0 auto;
bottom: -12rpx;
z-index: 100;
}
2024-05-27 17:40:54 +08:00
</style>