Commit 41119f2b authored by 赵啸非's avatar 赵啸非

Merge remote-tracking branch 'origin/master'

parents 7dd8f877 2a6f4d1f
...@@ -22,8 +22,8 @@ import "quill/dist/quill.bubble.css"; ...@@ -22,8 +22,8 @@ import "quill/dist/quill.bubble.css";
import { ColorPicker } from "element-ui"; import { ColorPicker } from "element-ui";
import "element-ui/lib/theme-chalk/index.css"; import "element-ui/lib/theme-chalk/index.css";
Vue.use(ColorPicker); Vue.use(ColorPicker);
// import { VueJsonp } from "vue-jsonp"; import { VueJsonp } from "vue-jsonp";
// Vue.use(VueJsonp); Vue.use(VueJsonp);
// 公共样式 // 公共样式
import "@/assets/css/common.css"; import "@/assets/css/common.css";
Vue.use(VueQuillEditor); Vue.use(VueQuillEditor);
......
...@@ -306,7 +306,6 @@ ...@@ -306,7 +306,6 @@
import { modelList, siteSave } from "@/services/basicsetFun"; import { modelList, siteSave } from "@/services/basicsetFun";
import YCheckbox from "@/components/ycheckbox/YCheckbox.vue"; import YCheckbox from "@/components/ycheckbox/YCheckbox.vue";
import YSwitch from "@/components/yswitch/YSwitch.vue"; import YSwitch from "@/components/yswitch/YSwitch.vue";
import axios from "axios";
// import options from "@/utils/city"; // import options from "@/utils/city";
import { regionData } from "element-china-area-data"; import { regionData } from "element-china-area-data";
export default { export default {
...@@ -725,16 +724,15 @@ export default { ...@@ -725,16 +724,15 @@ export default {
getAddress(address) { getAddress(address) {
this.$refs.ruleForm.validateField("detailAddress", (errVal) => { this.$refs.ruleForm.validateField("detailAddress", (errVal) => {
if (errVal !== "中心详细地址不能为空") { if (errVal !== "中心详细地址不能为空") {
axios this.$jsonp(`https://restapi.amap.com/v3/geocode/geo`, {
.get("https://restapi.amap.com/v3/geocode/geo", { //官方接口
params: { output: "jsonp",
key: "21e7ac78b448640e516f1eddc3ffd720", //key key: "21e7ac78b448640e516f1eddc3ffd720", //key
address: address, //获取输入的位置 address: address, //获取输入的位置
}, })
})
.then((res) => { .then((res) => {
if (res.data.status == 1) { if (res.status == 1) {
let { location } = res.data.geocodes[0]; let { location } = res.geocodes[0];
[ [
this.formInfo.longitude, this.formInfo.longitude,
this.formInfo.latitude, this.formInfo.latitude,
...@@ -744,7 +742,7 @@ export default { ...@@ -744,7 +742,7 @@ export default {
} }
}) })
.catch((err) => { .catch((err) => {
this.$message.error(err); console.log(err);
}); });
} }
}); });
......
...@@ -449,7 +449,7 @@ export default { ...@@ -449,7 +449,7 @@ export default {
idCard: "", // 身份证 idCard: "", // 身份证
userpost: "", // 职务 userpost: "", // 职务
posttitle: "", // 职称 posttitle: "", // 职称
politicalstatus: undefined, // 政治面貌 politicalstatus: 4, // 政治面貌
dangyuan: undefined, // 称号 dangyuan: undefined, // 称号
dangyuanext: "", // 自定义称号 dangyuanext: "", // 自定义称号
phone: "", // 电话 phone: "", // 电话
......
...@@ -93,6 +93,12 @@ ...@@ -93,6 +93,12 @@
:key="index" :key="index"
:src="baseUrl + item" :src="baseUrl + item"
></video> ></video>
<audio
controls
v-if="/\.(mp3|wav|)$/.test(item)"
:key="index"
:src="baseUrl + item"
></audio>
<a-button <a-button
:href="baseUrl + item" :href="baseUrl + item"
v-else v-else
...@@ -292,7 +298,7 @@ export default { ...@@ -292,7 +298,7 @@ export default {
data() { data() {
return { return {
fromData: {}, fromData: {},
baseUrl: process.env.VUE_APP_API_BASE_URL + "/zwfw_api/", baseUrl: process.env.VUE_APP_API_PHP_URL,
}; };
}, },
computed: { computed: {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment