yunshangxie/pages/index/pizz.vue

143 lines
5.4 KiB
Vue
Raw Normal View History

2023-12-25 17:56:30 +08:00
<template>
2024-04-20 14:57:39 +08:00
<view style="background-color: #EBF4F7;letter-spacing: 1rpx;min-height: 100vh;">
2023-12-25 17:56:30 +08:00
<tn-nav-bar :isBack="false" :bottomShadow="true" backgroundColor="#FFFFFF">
<view class="custom-nav tn-flex tn-flex-col-center tn-flex-row-left">
<view class="tn-margin-top"
style="text-shadow: 1rpx 0 0 #FFF, 0 1rpx 0 #FFF, -1rpx 0 0 #FFF , 0 -1rpx 0 #FFF;">
<tn-tabs :list="[{name:'发现'}]" :current="topCurrent" activeColor="#000" :bold="false"
:fontSize="36"></tn-tabs>
</view>
</view>
</tn-nav-bar>
<view :style="{paddingTop: vuex_custom_bar_height + 'px'}">
2024-05-27 17:40:54 +08:00
<view class="tn-flex tn-flex-row-between tn-flex-col-center tn-margin">
<view class="justify-content-item align-content-item" style="width: 100%;">
<view class="tn-flex tn-flex-col-center"
style="border-radius: 100rpx;padding: 10rpx 20rpx 10rpx 20rpx;width: 95%;background-color: rgba(255, 255, 255, 0.9);">
<text
class="tn-icon-search justify-content-item tn-padding-right-xs tn-color-gray tn-text-lg"></text>
<input v-model="content" class="justify-content-item" placeholder="请填写协会名称" name="input"
placeholder-style="color:#AAAAAA" style="width: 90%;"></input>
</view>
</view>
2024-04-23 11:58:07 +08:00
2024-05-27 17:40:54 +08:00
<view>
<view class="justify-content-item tn-text-center">
<tn-button backgroundColor="#3668fc" shape="round" padding="20rpx 20rpx" width="150rpx"
@click="onsubmit()">
<text class="tn-color-white"> </text>
</tn-button>
2024-04-23 11:58:07 +08:00
2024-05-27 17:40:54 +08:00
</view>
</view>
</view>
<!-- <view class="tn-flex tn-flex-row-around tn-flex-center tn-flex-col-center" style="padding: 30rpx;">-->
<!-- <view style="color: #E15033;">-->
<!-- <text class="tn-icon-sequence-vertical" style="vertical-align: middle;"></text>-->
<!-- <text style="margin-left: 15rpx;vertical-align: middle;">全部排序</text>-->
<!-- </view>-->
<!-- <view style="height: 25rpx;width: 2rpx;background-color: #808080;"></view>-->
<!-- <view>-->
<!-- <text class="tn-icon-first" style="vertical-align: middle;"></text>-->
<!-- <text style="margin-left: 15rpx;vertical-align: middle;">人气榜</text>-->
<!-- </view>-->
<!-- <view style="height: 25rpx;width: 2rpx;background-color: #808080;"></view>-->
<!-- <view>-->
<!-- <text class="tn-icon-light" style="vertical-align: middle;"></text>-->
<!-- <text style="margin-left: 15rpx;vertical-align: middle;">最新入驻</text>-->
<!-- </view>-->
<!-- </view>-->
2023-12-25 17:56:30 +08:00
</view>
2024-05-27 17:40:54 +08:00
<!-- <view class="tn-flex tn-flex-row-between tn-flex-center tn-flex-col-center" style="padding: 30rpx;">-->
<!-- <view style="text-align: center;background-color: #FFF;padding:10rpx 30rpx;width: 48%;border-radius: 5rpx;">-->
<!-- <text>省协会</text>-->
<!-- <text class="tn-icon-down-triangle"></text>-->
<!-- </view>-->
<!-- <view style="text-align: center;background-color: #FFF;padding:10rpx 30rpx;width: 48%;border-radius: 5rpx;">-->
<!-- <text>市协会</text>-->
<!-- <text class="tn-icon-down-triangle"></text>-->
<!-- </view>-->
<!-- </view>-->
2023-12-25 17:56:30 +08:00
<view style="padding:0rpx 30rpx 180rpx 30rpx;">
2024-04-20 14:57:39 +08:00
<view v-for="(item,index) in list" style="position: relative;"
2024-04-24 17:34:38 +08:00
@click="tn('/pages/index/pizz_info?id='+item.id)">
2023-12-25 17:56:30 +08:00
<view class="tn-flex tn-flex-center tn-flex-col-center"
style="background-color: #ffffff;padding:60rpx 30rpx;border-radius: 15rpx;margin-bottom: 20rpx;">
<view>
2024-05-27 17:40:54 +08:00
<image :src="apiImgUrl+item.association_image"
style="width: 100rpx;height: 100rpx;border-radius: 50%;"></image>
2023-12-25 17:56:30 +08:00
</view>
<view style="margin-left: 20rpx;">
2024-05-27 17:40:54 +08:00
<view style="font-size: 31rpx;font-weight: 600;letter-spacing: 5rpx;">{{item.association_name}}
</view>
2024-04-23 11:58:07 +08:00
<view style="font-size: 24rpx;color: #808080;margin-top: 15rpx;">成立时间{{item.createtime}}</view>
2023-12-25 17:56:30 +08:00
</view>
</view>
<view
style="font-size: 20rpx;color: #43A9F8;background-color: #CAE5FF;position: absolute;top: 0;right: 0;border-radius: 0px 15rpx 0px 15rpx;padding:10rpx 10rpx;">
<text class="tn-icon-success-circle-fill" style="vertical-align: middle;"></text>
<text style="vertical-align: middle;margin-left: 5rpx;">已认证</text>
</view>
</view>
</view>
2024-05-27 17:40:54 +08:00
<!-- <view style="position: fixed;bottom: 13%;width: 100%;">-->
<!-- <view @click="tn('/pages/index/enter_in')"-->
<!-- style="margin: 0 auto;color: #fff;letter-spacing: 10rpx;line-height: 70rpx;;text-align: center;width: 70%;height: 70rpx;background: linear-gradient(270deg, #EE7E45, #EE9657);border-radius: 50rpx;">-->
<!-- 快速入驻</view>-->
<!-- </view>-->
2023-12-25 17:56:30 +08:00
</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-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-05-27 17:40:54 +08:00
</style>