|
@@ -1,54 +1,5 @@
|
|
|
<template>
|
|
|
<div class="bg-F5">
|
|
|
- <div class="header">
|
|
|
- <div class="topDiv">
|
|
|
- <div class="container">
|
|
|
- <lang-select />
|
|
|
- <div class="login">
|
|
|
- <router-link to="/login">请登录</router-link>
|
|
|
- </div>
|
|
|
- <div class="register">
|
|
|
- <router-link to="/register">免费注册</router-link>
|
|
|
- </div>
|
|
|
- <div class="rightDiv">
|
|
|
- <div class="sjrz">
|
|
|
- <router-link to="/merchantEntry">
|
|
|
- <img src="@assets/sjrz.png" alt="" />
|
|
|
- 商家入驻
|
|
|
- </router-link>
|
|
|
- </div>
|
|
|
- <div class="line"></div>
|
|
|
- <div class="spfb">
|
|
|
- <img src="@assets/spfb.png" alt="" />
|
|
|
- 商品发布
|
|
|
- </div>
|
|
|
- <div class="line"></div>
|
|
|
- <div class="spfb">
|
|
|
- 个人中心
|
|
|
- </div>
|
|
|
- </div>
|
|
|
- </div>
|
|
|
- </div>
|
|
|
- <div class="logoDiv container">
|
|
|
- <div class="logoTitle">中国钢制家具产业聚集网</div>
|
|
|
- <div class="searchDiv">
|
|
|
- <el-select class="searchFl" v-model="homeSearchOption" placeholder="">
|
|
|
- <el-option label="产品" value="1"></el-option>
|
|
|
- <el-option label="企业" value="2"></el-option>
|
|
|
- </el-select>
|
|
|
- <span class="line"></span>
|
|
|
- <el-input
|
|
|
- placeholder="请输入内容"
|
|
|
- v-model="homeSearchVal"
|
|
|
- class="input-with-select"
|
|
|
- >
|
|
|
- <i slot="prefix" class="el-input__icon el-icon-search"></i>
|
|
|
- </el-input>
|
|
|
- <el-button class="searchBtn">搜索</el-button>
|
|
|
- </div>
|
|
|
- </div>
|
|
|
- <y-nav />
|
|
|
- </div>
|
|
|
<div class="container">
|
|
|
<div class="partTitle"><span class="orangeLine"></span>商户入驻申请</div>
|
|
|
<el-form class="formPanel" ref="form" :model="form" label-width="280px">
|
|
@@ -115,7 +66,9 @@
|
|
|
<span>纬度</span>
|
|
|
<el-input class="input" v-model="form.lat"></el-input>
|
|
|
</div>
|
|
|
- <el-button class="submitBtn" @click="mapAddress">{{ mapVisible ? "关闭" : "选择" }}</el-button>
|
|
|
+ <el-button class="submitBtn" @click="mapAddress">{{
|
|
|
+ mapVisible ? "关闭" : "选择"
|
|
|
+ }}</el-button>
|
|
|
<div :class="{ map: true, show: mapVisible }" id="map"></div>
|
|
|
</el-form-item>
|
|
|
<el-form-item class="formItem" label="企业法人">
|
|
@@ -138,7 +91,9 @@
|
|
|
<div class="txt">上传图片</div>
|
|
|
</div>
|
|
|
</el-upload>
|
|
|
- <div class="info">有效期内的企业营业执照,图片仅支持JPG,PNG格式,大小小于2M</div>
|
|
|
+ <div class="info">
|
|
|
+ 有效期内的企业营业执照,图片仅支持JPG,PNG格式,大小小于2M
|
|
|
+ </div>
|
|
|
</el-form-item>
|
|
|
<el-form-item class="formItem" label="企业默认图片">
|
|
|
<el-upload class="avatar-uploader" action="" :show-file-list="false">
|
|
@@ -177,17 +132,11 @@
|
|
|
<script>
|
|
|
import { Component, Vue } from "vue-property-decorator";
|
|
|
import BMap from "BMap";
|
|
|
-import langSelect from "@/components/LangSelect.vue";
|
|
|
-import yNav from "@/layout/components/nav.vue";
|
|
|
export default {
|
|
|
name: "app",
|
|
|
- components: {
|
|
|
- yNav,
|
|
|
- },
|
|
|
+ components: {},
|
|
|
data() {
|
|
|
return {
|
|
|
- homeSearchVal: "",
|
|
|
- homeSearchOption: "1",
|
|
|
form: {
|
|
|
name: "",
|
|
|
password: "",
|
|
@@ -203,7 +152,7 @@ export default {
|
|
|
lat: ""
|
|
|
},
|
|
|
mapVisible: false,
|
|
|
- local:null,
|
|
|
+ local: null
|
|
|
};
|
|
|
},
|
|
|
methods: {
|
|
@@ -231,64 +180,71 @@ export default {
|
|
|
});
|
|
|
return map;
|
|
|
},
|
|
|
- provinceChange(val){
|
|
|
+ provinceChange(val) {
|
|
|
var that = this;
|
|
|
var map = that.createMap();
|
|
|
- map.centerAndZoom(val,11);
|
|
|
+ map.centerAndZoom(val, 11);
|
|
|
},
|
|
|
- cityChange(val){
|
|
|
+ cityChange(val) {
|
|
|
var that = this;
|
|
|
var map = that.createMap();
|
|
|
- map.centerAndZoom(val,13);
|
|
|
+ map.centerAndZoom(val, 13);
|
|
|
},
|
|
|
- countyChange(val){
|
|
|
+ countyChange(val) {
|
|
|
var that = this;
|
|
|
var map = that.createMap();
|
|
|
var myGeo = new BMap.Geocoder();
|
|
|
- map.centerAndZoom(val,15);
|
|
|
- myGeo.getPoint(that.form.shi + that.form.qu, function(point) {
|
|
|
+ map.centerAndZoom(val, 15);
|
|
|
+ myGeo.getPoint(
|
|
|
+ that.form.shi + that.form.qu,
|
|
|
+ function(point) {
|
|
|
if (point) {
|
|
|
- map.clearOverlays();
|
|
|
- map.centerAndZoom(point, 12);
|
|
|
- map.addOverlay(new BMap.Marker(point));
|
|
|
- that.form.lng = point.lng;
|
|
|
- that.form.lat = point.lat;
|
|
|
+ map.clearOverlays();
|
|
|
+ map.centerAndZoom(point, 12);
|
|
|
+ map.addOverlay(new BMap.Marker(point));
|
|
|
+ that.form.lng = point.lng;
|
|
|
+ that.form.lat = point.lat;
|
|
|
} else {
|
|
|
- that.$message('无法解析地址,请完善详细地址信息或者手动点击地图选择');
|
|
|
+ that.$message(
|
|
|
+ "无法解析地址,请完善详细地址信息或者手动点击地图选择"
|
|
|
+ );
|
|
|
}
|
|
|
- },that.form.sheng);
|
|
|
+ },
|
|
|
+ that.form.sheng
|
|
|
+ );
|
|
|
},
|
|
|
- mapFun(){
|
|
|
+ mapFun() {
|
|
|
var that = this;
|
|
|
var map = that.createMap();
|
|
|
if (that.local.getResults().getPoi(0)) {
|
|
|
- var pp = that.local.getResults().getPoi(0).point; //获取第一个智能搜索的结果
|
|
|
- map.centerAndZoom(pp, 18);
|
|
|
- map.addOverlay(new BMap.Marker(pp)); //添加标注
|
|
|
- that.form.lng = pp.lng;
|
|
|
- that.form.lat = pp.lat;
|
|
|
+ var pp = that.local.getResults().getPoi(0).point; //获取第一个智能搜索的结果
|
|
|
+ map.centerAndZoom(pp, 18);
|
|
|
+ map.addOverlay(new BMap.Marker(pp)); //添加标注
|
|
|
+ that.form.lng = pp.lng;
|
|
|
+ that.form.lat = pp.lat;
|
|
|
} else {
|
|
|
- that.$message("无法解析地址,请完善详细地址信息或者手动点击地图选择");
|
|
|
+ that.$message("无法解析地址,请完善详细地址信息或者手动点击地图选择");
|
|
|
}
|
|
|
},
|
|
|
- mapAddress(){
|
|
|
+ mapAddress() {
|
|
|
var that = this;
|
|
|
- if(that.form.sheng=='' || that.form.shi=='' || that.form.qu==''){
|
|
|
- that.$message('请选择区域!');
|
|
|
+ if (that.form.sheng == "" || that.form.shi == "" || that.form.qu == "") {
|
|
|
+ that.$message("请选择区域!");
|
|
|
return;
|
|
|
}
|
|
|
- if(that.form.address == ''){
|
|
|
- that.$message('输入详细地址后定位!');
|
|
|
+ if (that.form.address == "") {
|
|
|
+ that.$message("输入详细地址后定位!");
|
|
|
return;
|
|
|
}
|
|
|
that.mapVisible = !that.mapVisible;
|
|
|
var map = that.createMap();
|
|
|
map.clearOverlays();
|
|
|
- that.local = new BMap.LocalSearch(map, { //智能搜索
|
|
|
- onSearchComplete: that.mapFun
|
|
|
+ that.local = new BMap.LocalSearch(map, {
|
|
|
+ //智能搜索
|
|
|
+ onSearchComplete: that.mapFun
|
|
|
});
|
|
|
- that.local.search(that.form.shi +that.form.qu + that.form.address);
|
|
|
- },
|
|
|
+ that.local.search(that.form.shi + that.form.qu + that.form.address);
|
|
|
+ }
|
|
|
},
|
|
|
mounted() {
|
|
|
var that = this;
|
|
@@ -326,11 +282,11 @@ export default {
|
|
|
margin-right: 0;
|
|
|
}
|
|
|
}
|
|
|
- .info{
|
|
|
+ .info {
|
|
|
height: 3rem;
|
|
|
line-height: 3rem;
|
|
|
font-size: 1.2rem;
|
|
|
- color:#666;
|
|
|
+ color: #666;
|
|
|
}
|
|
|
}
|
|
|
.formTitle {
|
|
@@ -389,7 +345,7 @@ export default {
|
|
|
color: #333;
|
|
|
}
|
|
|
}
|
|
|
-.map{
|
|
|
+.map {
|
|
|
width: 100%;
|
|
|
height: 50rem;
|
|
|
position: absolute;
|
|
@@ -398,8 +354,8 @@ export default {
|
|
|
z-index: 1;
|
|
|
display: none;
|
|
|
&.show {
|
|
|
- display: block;
|
|
|
- }
|
|
|
+ display: block;
|
|
|
+ }
|
|
|
}
|
|
|
.avatar {
|
|
|
width: 178px;
|