2024-04-20 14:58:10 +08:00
|
|
|
<template>
|
|
|
|
<view style="letter-spacing: 1rpx;">
|
|
|
|
<tn-nav-bar :isBack="false" backTitle="" :bottomShadow="true" backgroundColor="#FFFFFF">
|
|
|
|
<view class="custom-nav tn-flex tn-flex-col-center tn-flex-row-left">
|
|
|
|
<view style="padding-left: 15rpx;" @click="goBack()">
|
|
|
|
<text class="tn-icon-left" style="font-size: 40rpx;"></text>
|
|
|
|
</view>
|
|
|
|
<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-08 18:14:41 +08:00
|
|
|
<view style="padding: 30rpx;line-height: 50rpx;">
|
2024-05-31 18:06:24 +08:00
|
|
|
<view v-html="info.association_guizhang"></view>
|
2024-04-20 14:58:10 +08:00
|
|
|
</view>
|
|
|
|
</view>
|
|
|
|
|
|
|
|
</view>
|
|
|
|
</template>
|
|
|
|
|
|
|
|
<script>
|
2024-05-31 18:06:24 +08:00
|
|
|
import {
|
|
|
|
associationInfo,
|
|
|
|
UserApplication
|
|
|
|
} from "@/util/api";
|
|
|
|
import store from "@/store";
|
2024-04-20 14:58:10 +08:00
|
|
|
export default {
|
|
|
|
data() {
|
|
|
|
return {
|
2024-05-08 18:14:41 +08:00
|
|
|
topCurrent: 0,
|
2024-05-31 18:06:24 +08:00
|
|
|
info: {}
|
2024-04-20 14:58:10 +08:00
|
|
|
}
|
|
|
|
},
|
2024-05-31 18:06:24 +08:00
|
|
|
onLoad() {
|
|
|
|
this.getAssociationInfo();
|
|
|
|
},
|
2024-04-20 14:58:10 +08:00
|
|
|
methods: {
|
2024-05-31 18:06:24 +08:00
|
|
|
getAssociationInfo() {
|
|
|
|
console.log('discovery');
|
|
|
|
associationInfo({
|
|
|
|
association_id: store.state.Gid,
|
|
|
|
})
|
|
|
|
.then(res => {
|
|
|
|
console.log(res);
|
|
|
|
if (res.code == 1) {
|
|
|
|
var key = res.data;
|
|
|
|
if (key.association_guizhang.indexOf("<img") != -1) {
|
|
|
|
key.association_guizhang = getApp().addWidthToImages(key.association_guizhang);
|
|
|
|
}
|
|
|
|
this.info = key;
|
|
|
|
}
|
|
|
|
})
|
|
|
|
.catch(error => {
|
|
|
|
uni.showToast({
|
|
|
|
title: error,
|
|
|
|
icon: 'none',
|
|
|
|
duration: 2000
|
|
|
|
});
|
|
|
|
})
|
|
|
|
},
|
2024-04-20 14:58:10 +08:00
|
|
|
goBack() {
|
|
|
|
if (getCurrentPages().length > 1) {
|
|
|
|
uni.navigateBack()
|
|
|
|
} else {
|
|
|
|
uni.redirectTo({
|
|
|
|
url: '/pages/index/index'
|
|
|
|
})
|
|
|
|
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
</script>
|
|
|
|
|
|
|
|
<style>
|
|
|
|
|
2024-05-31 18:06:24 +08:00
|
|
|
</style>
|