|
@@ -29,9 +29,15 @@
|
|
|
<div class="col content">{{ clubInfo.area }}</div>
|
|
|
</div>
|
|
|
<div class="row">
|
|
|
- <div class="col label">所在位置:</div>
|
|
|
+ <div class="col label">详细地址:</div>
|
|
|
<div class="col content">{{ clubInfo.address }}</div>
|
|
|
</div>
|
|
|
+ <div class="row">
|
|
|
+ <div class="col label">所在位置:</div>
|
|
|
+ <div class="col content">
|
|
|
+ <div class="postion-btn" @click="initMap">查看定位</div>
|
|
|
+ </div>
|
|
|
+ </div>
|
|
|
<div class="row block">
|
|
|
<div class="col label">logo:</div>
|
|
|
<div class="col content">
|
|
@@ -69,6 +75,21 @@
|
|
|
</div>
|
|
|
</template>
|
|
|
</div>
|
|
|
+
|
|
|
+ <div class="position-select" v-if="mapVisiable">
|
|
|
+ <div class="position-select-container">
|
|
|
+ <SimpleAMap ref="aMap" :lnglat="lnglat" />
|
|
|
+ <div class="position-select-footer">
|
|
|
+ <div class="lnglat">当前经纬度:{{ clubInfo.lngAndLat }}</div>
|
|
|
+ <div
|
|
|
+ class="position-confirm postion-control"
|
|
|
+ @click="mapVisiable = false"
|
|
|
+ >
|
|
|
+ 确定
|
|
|
+ </div>
|
|
|
+ </div>
|
|
|
+ </div>
|
|
|
+ </div>
|
|
|
</div>
|
|
|
</template>
|
|
|
|
|
@@ -78,13 +99,14 @@ export default {
|
|
|
layout: 'app-ross',
|
|
|
data() {
|
|
|
return {
|
|
|
+ mapVisiable: false,
|
|
|
clubInfo: {},
|
|
|
}
|
|
|
},
|
|
|
computed: {
|
|
|
...mapGetters(['userInfo', 'routePrefix']),
|
|
|
isAuth() {
|
|
|
- return this.userInfo && this.userInfo.authId
|
|
|
+ return this.clubInfo.auditStatus === 1
|
|
|
},
|
|
|
firstClubTypeName() {
|
|
|
if (!this.clubInfo.firstClubType) return '其他'
|
|
@@ -98,16 +120,20 @@ export default {
|
|
|
this.clubInfo.secondClubType - 1
|
|
|
]
|
|
|
},
|
|
|
+ lnglat() {
|
|
|
+ return this.clubInfo.lngAndLat ? this.clubInfo.lngAndLat.split(',') : null
|
|
|
+ },
|
|
|
},
|
|
|
created() {
|
|
|
this.fetchClubDetail()
|
|
|
},
|
|
|
methods: {
|
|
|
+ // 获取机构详情
|
|
|
async fetchClubDetail() {
|
|
|
try {
|
|
|
const authId = this.userInfo.authId
|
|
|
if (!authId) return
|
|
|
- const res = await this.$http.api.getAuthClubDetail({ authId })
|
|
|
+ const res = await this.$http.api.fetchClubAuthInfoData({ authId })
|
|
|
this.clubInfo = res.data
|
|
|
} catch (error) {
|
|
|
console.log(error)
|
|
@@ -117,6 +143,13 @@ export default {
|
|
|
toAuth() {
|
|
|
this.$router.push(`${this.routePrefix}/form/club-register`)
|
|
|
},
|
|
|
+ // 地图定位
|
|
|
+ initMap() {
|
|
|
+ this.mapVisiable = true
|
|
|
+ this.$nextTick(() => {
|
|
|
+ this.$refs.aMap.init()
|
|
|
+ })
|
|
|
+ },
|
|
|
},
|
|
|
}
|
|
|
</script>
|
|
@@ -128,6 +161,67 @@ export default {
|
|
|
justify-content: center;
|
|
|
}
|
|
|
|
|
|
+ .position-select {
|
|
|
+ width: 100vw;
|
|
|
+ height: 100vh;
|
|
|
+ background: rgba(0, 0, 0, 0.39);
|
|
|
+ position: fixed;
|
|
|
+ top: 0;
|
|
|
+ left: 0;
|
|
|
+ z-index: 999;
|
|
|
+
|
|
|
+ display: flex;
|
|
|
+ justify-content: center;
|
|
|
+ align-items: center;
|
|
|
+
|
|
|
+ .position-select-container {
|
|
|
+ background: #fff;
|
|
|
+ width: 60%;
|
|
|
+ box-sizing: border-box;
|
|
|
+ padding: 24px;
|
|
|
+
|
|
|
+ .position-select-footer {
|
|
|
+ position: relative;
|
|
|
+ display: flex;
|
|
|
+ justify-content: flex-end;
|
|
|
+ align-items: center;
|
|
|
+ padding-top: 24px;
|
|
|
+
|
|
|
+ .lnglat {
|
|
|
+ position: absolute;
|
|
|
+ font-size: 14px;
|
|
|
+ color: #666;
|
|
|
+
|
|
|
+ left: 0;
|
|
|
+ top: 50%;
|
|
|
+ transform: translateY(-50%);
|
|
|
+ }
|
|
|
+ }
|
|
|
+
|
|
|
+ .postion-control {
|
|
|
+ width: 120px;
|
|
|
+ height: 40px;
|
|
|
+ font-size: 14px;
|
|
|
+ border-radius: 4px;
|
|
|
+ display: flex;
|
|
|
+ justify-content: center;
|
|
|
+ align-items: center;
|
|
|
+ cursor: pointer;
|
|
|
+ margin-left: 16px;
|
|
|
+
|
|
|
+ &.position-confirm {
|
|
|
+ background: #f56c6c;
|
|
|
+ color: #fff;
|
|
|
+ }
|
|
|
+
|
|
|
+ &.position-cancel {
|
|
|
+ background: #b1b1b1;
|
|
|
+ color: #fff;
|
|
|
+ }
|
|
|
+ }
|
|
|
+ }
|
|
|
+ }
|
|
|
+
|
|
|
.page-content {
|
|
|
max-width: 760px;
|
|
|
padding-bottom: 167px;
|
|
@@ -185,6 +279,30 @@ export default {
|
|
|
margin-right: 0;
|
|
|
}
|
|
|
}
|
|
|
+
|
|
|
+ .postion-btn {
|
|
|
+ height: 28px;
|
|
|
+ line-height: 28px;
|
|
|
+ font-size: 14px;
|
|
|
+ color: #fff;
|
|
|
+ background: #1890ff;
|
|
|
+ display: flex;
|
|
|
+ justify-content: center;
|
|
|
+ align-items: center;
|
|
|
+ cursor: pointer;
|
|
|
+ border-radius: 4px;
|
|
|
+ padding: 0 8px;
|
|
|
+
|
|
|
+ &::before {
|
|
|
+ content: '';
|
|
|
+ display: inline-block;
|
|
|
+ width: 16px;
|
|
|
+ height: 16px;
|
|
|
+ background: url(~assets/theme-images/common/icon-position.png)
|
|
|
+ no-repeat center;
|
|
|
+ background-size: 16px 16px;
|
|
|
+ }
|
|
|
+ }
|
|
|
}
|
|
|
}
|
|
|
}
|
|
@@ -196,6 +314,67 @@ export default {
|
|
|
justify-content: center;
|
|
|
}
|
|
|
|
|
|
+ .position-select {
|
|
|
+ width: 100vw;
|
|
|
+ height: 100vh;
|
|
|
+ background: rgba(0, 0, 0, 0.39);
|
|
|
+ position: fixed;
|
|
|
+ top: 0;
|
|
|
+ left: 0;
|
|
|
+ z-index: 999;
|
|
|
+
|
|
|
+ display: flex;
|
|
|
+ justify-content: center;
|
|
|
+ align-items: center;
|
|
|
+
|
|
|
+ .position-select-container {
|
|
|
+ background: #fff;
|
|
|
+ width: 80%;
|
|
|
+ box-sizing: border-box;
|
|
|
+ padding: 3.2vw;
|
|
|
+
|
|
|
+ .position-select-footer {
|
|
|
+ padding-top: 10vw;
|
|
|
+ position: relative;
|
|
|
+ display: flex;
|
|
|
+ justify-content: flex-end;
|
|
|
+ align-items: center;
|
|
|
+
|
|
|
+ .lnglat {
|
|
|
+ position: absolute;
|
|
|
+ font-size: 3.2vw;
|
|
|
+ color: #666;
|
|
|
+
|
|
|
+ left: 0;
|
|
|
+ top: 5vw;
|
|
|
+ transform: translateY(-50%);
|
|
|
+ }
|
|
|
+ }
|
|
|
+
|
|
|
+ .postion-control {
|
|
|
+ width: 16vw;
|
|
|
+ height: 7vw;
|
|
|
+ font-size: 3.4vw;
|
|
|
+ border-radius: 0.4vw;
|
|
|
+ display: flex;
|
|
|
+ justify-content: center;
|
|
|
+ align-items: center;
|
|
|
+ cursor: pointer;
|
|
|
+ margin-left: 3.6vw;
|
|
|
+
|
|
|
+ &.position-confirm {
|
|
|
+ background: #f56c6c;
|
|
|
+ color: #fff;
|
|
|
+ }
|
|
|
+
|
|
|
+ &.position-cancel {
|
|
|
+ background: #b1b1b1;
|
|
|
+ color: #fff;
|
|
|
+ }
|
|
|
+ }
|
|
|
+ }
|
|
|
+ }
|
|
|
+
|
|
|
.page-content {
|
|
|
padding: 0 4vw;
|
|
|
.title {
|
|
@@ -258,6 +437,30 @@ export default {
|
|
|
margin-right: 0;
|
|
|
}
|
|
|
}
|
|
|
+
|
|
|
+ .postion-btn {
|
|
|
+ height: 6.8vw;
|
|
|
+ line-height: 6.8vw;
|
|
|
+ font-size: 3.2vw;
|
|
|
+ color: #fff;
|
|
|
+ background: #1890ff;
|
|
|
+ display: flex;
|
|
|
+ justify-content: center;
|
|
|
+ align-items: center;
|
|
|
+ cursor: pointer;
|
|
|
+ border-radius: 0.4vw;
|
|
|
+ padding: 0 1.2vw;
|
|
|
+
|
|
|
+ &::before {
|
|
|
+ content: '';
|
|
|
+ display: inline-block;
|
|
|
+ width: 3.58vw;
|
|
|
+ height: 3.58vw;
|
|
|
+ background: url(~assets/theme-images/common/icon-position.png)
|
|
|
+ no-repeat center;
|
|
|
+ background-size: 3.58vw;
|
|
|
+ }
|
|
|
+ }
|
|
|
}
|
|
|
}
|
|
|
}
|