Merge branch 'main' of https://dd3skj.picp.vip/zhaoxinyu/zhgh_njnu
This commit is contained in:
@@ -258,6 +258,7 @@
|
||||
//挂载
|
||||
Vue.prototype.$moment = moment
|
||||
Vue.prototype.$businessTool = businessTool
|
||||
Vue.prototype.$commonUtil = commonUtil
|
||||
Vue.prototype.$auth = commonUtil.authService()
|
||||
Vue.prototype.$axios = commonUtil.axiosService()
|
||||
Vue.prototype.$downLoad = commonUtil.downLoadService.bind(commonUtil)
|
||||
@@ -277,6 +278,7 @@
|
||||
Vue.component("enum-tag", httpVueLoader("/components/plugins/sysEnum/EnumTag.vue?v=" + new Date().getTime()))
|
||||
Vue.component("table-list", httpVueLoader("/components/plugins/h5/TableList.vue?v=" + new Date().getTime()))
|
||||
Vue.component("table-column", httpVueLoader("/components/plugins/h5/TableColumn.vue?v=" + new Date().getTime()))
|
||||
Vue.component("file-preview", httpVueLoader("/components/plugins/sysFilePreview/H5Index.vue?v=" + new Date().getTime()))
|
||||
</script>
|
||||
</head>
|
||||
<body>
|
||||
|
||||
@@ -113,6 +113,17 @@ layout("/layouts/platform_h5.html"){
|
||||
class="picker-style"
|
||||
></van-picker>
|
||||
</van-popup>
|
||||
<van-cell class="table-card-footer">
|
||||
<div style="display: flex; justify-content: flex-end; width: 100%;">
|
||||
<van-button
|
||||
type="info"
|
||||
size="small"
|
||||
@click.prevent="onOpen(formData.clubId)"
|
||||
:disabled="!formData.clubId"
|
||||
>查看
|
||||
</van-button>
|
||||
</div>
|
||||
</van-cell>
|
||||
</van-cell-group>
|
||||
|
||||
<!-- 基本信息 -->
|
||||
@@ -195,15 +206,27 @@ layout("/layouts/platform_h5.html"){
|
||||
<van-button round block type="info">提交申请</van-button>
|
||||
</div>
|
||||
</van-form>
|
||||
<van-popup :style="{ height: '100%',width: '100%'}" position="right" safe-area-inset-bottom v-model="viewShow">
|
||||
<van-sticky>
|
||||
<van-nav-bar @click-left="viewShow = false" left-arrow left-text="返回" title="详细信息"></van-nav-bar>
|
||||
</van-sticky>
|
||||
<div style="height: calc(100vh - 44px); overflow-y: auto">
|
||||
<info ref="infoRef"></info>
|
||||
</div>
|
||||
</van-popup>
|
||||
</div>
|
||||
|
||||
<script>
|
||||
<!--#include('../common/clubInfo.js'){}#-->
|
||||
const vue = new Vue({
|
||||
el: "#app",
|
||||
store,
|
||||
components: {},
|
||||
components: {
|
||||
info: clubInfo
|
||||
},
|
||||
data() {
|
||||
return {
|
||||
viewShow: false,
|
||||
formData: {
|
||||
clubId: "",
|
||||
clubName: "",
|
||||
@@ -230,6 +253,12 @@ layout("/layouts/platform_h5.html"){
|
||||
}
|
||||
},
|
||||
methods: {
|
||||
onOpen(clubId) {
|
||||
this.viewShow = true
|
||||
this.$nextTick(() => {
|
||||
this.$refs.infoRef.onOpen(clubId)
|
||||
})
|
||||
},
|
||||
onClubConfirm(value, index) {
|
||||
this.formData.clubId = this.clubOptions[index].id;
|
||||
this.formData.clubName = value;
|
||||
|
||||
@@ -0,0 +1,62 @@
|
||||
const clubInfo = {
|
||||
template:
|
||||
/*language=HTML*/
|
||||
`
|
||||
<div>
|
||||
<van-cell-group>
|
||||
<!-- <van-cell>-->
|
||||
<!-- <div slot="title" class="font-size4 bold">-->
|
||||
<!-- 协会信息-->
|
||||
<!-- </div>-->
|
||||
<!-- </van-cell>-->
|
||||
<van-cell title="协会名称">{{ viewData.clubName }}</van-cell>
|
||||
<van-cell title="成立时间">{{ viewData.foundTime }}</van-cell>
|
||||
<van-cell title="协会编码">{{ viewData.clubCode }}</van-cell>
|
||||
<van-cell title="协会类型">{{ viewData.typeName }}</van-cell>
|
||||
<van-cell title="发起人">{{ viewData.sponsorName }}</van-cell>
|
||||
<van-cell title="会费标准">{{ viewData.due }}</van-cell>
|
||||
<van-cell title="当前人数">{{ viewData.currentPeopleNum }}</van-cell>
|
||||
<van-cell class="more-text" title="协会介绍">
|
||||
<div v-html="viewData.introduce"></div>
|
||||
</van-cell>
|
||||
<van-cell class="more-text" title="协会宗旨">
|
||||
<div v-html="viewData.purpose"></div>
|
||||
</van-cell>
|
||||
|
||||
<van-cell class="more-text" title="协会章程" v-if="viewData.rulesFile">
|
||||
<file-preview :files="viewData.rulesFile" complete_result></file-preview>
|
||||
</van-cell>
|
||||
<van-cell class="more-text" title="年度活动计划" v-if="viewData.yearPlanFile">
|
||||
<file-preview :files="viewData.yearPlanFile" complete_result></file-preview>
|
||||
</van-cell>
|
||||
</van-cell-group>
|
||||
</div>
|
||||
`,
|
||||
data() {
|
||||
return {
|
||||
viewData: {},
|
||||
activeName: "first",
|
||||
isScrollNow: "0"
|
||||
}
|
||||
},
|
||||
methods: {
|
||||
onOpen(id) {
|
||||
this.$axios.post("/platform/club/applyJoin/apply/findOne", { id }).then((res) => {
|
||||
if (res.code === 0) {
|
||||
this.viewData = res.data
|
||||
}
|
||||
})
|
||||
}
|
||||
},
|
||||
style: /*language=CSS*/ `
|
||||
.more-text .van-field__label{
|
||||
width: 100%;
|
||||
}
|
||||
.more-text {
|
||||
display: inline-block;
|
||||
}
|
||||
.more-text .van-cell__value{
|
||||
text-align: left;
|
||||
}
|
||||
`
|
||||
}
|
||||
Reference in New Issue
Block a user