1.优化一些内容
This commit is contained in:
parent
233de6bb09
commit
8c0c4516a8
39
README.md
39
README.md
@ -1,41 +1,4 @@
|
||||
<p style="display:flex; justify-content: center">
|
||||
|
||||
</p>
|
||||
<p align="center">
|
||||
<a href="https://tdesign.tencent.com/starter/vue/#/dashboard/base" target="_blank">
|
||||
<img alt="TDesign Logo" width="200" src="https://tdesign.gtimg.com/starter/brand-logo.svg">
|
||||
</a>
|
||||
</p>
|
||||
|
||||
<p align="center">
|
||||
<a href="https://nodejs.org/en/about/releases/"><img src="https://img.shields.io/node/v/vite.svg" alt="node compatility"></a>
|
||||
<a href="https://github.com/Tencent/tdesign-vue/blob/develop/LICENSE">
|
||||
<img src="https://img.shields.io/npm/l/tdesign-vue.svg?sanitize=true" alt="License">
|
||||
</a>
|
||||
</p>
|
||||
|
||||
English | [简体中文](./README-zh_CN.md)
|
||||
### Introduction
|
||||
|
||||
TDesign Vue Starter is a TDesign-based project developed with `Vue2`, `Vite`. It can be customized theme configuration, and aims to provide project out-of-the-box, configuration-style middle and background projects.
|
||||
|
||||
<p>
|
||||
<a href="http://tdesign.tencent.com/starter/vue/">Live Preview</a>
|
||||
·
|
||||
<a href="https://tdesign.tencent.com/starter/docs/vue/get-started">Documentation</a>
|
||||
</p>
|
||||
|
||||
<img src="docs/docs-starter.png">
|
||||
|
||||
### Features
|
||||
|
||||
- Various provided pages for develop
|
||||
- Complete directory structure for develop
|
||||
- Code specification configuration
|
||||
- Support dark mode
|
||||
- Custom theme colors
|
||||
- Various space layouts
|
||||
- Mock data scheme
|
||||
需要把图片复制过来
|
||||
|
||||
### Usage
|
||||
|
||||
|
@ -1044,7 +1044,8 @@
|
||||
</template>
|
||||
<template #default>
|
||||
<div v-for="(v, k) in item.content" :key="k">
|
||||
<div style="display: flex;justify-content: space-between;align-items: center;padding-bottom: 10px;width: 159px;">
|
||||
<div
|
||||
style="display: flex;justify-content: space-between;align-items: center;padding-bottom: 10px;width: 159px;">
|
||||
<div>
|
||||
<a :href="'#' + v.id" :class="v.active ? 'nei_color_active' : 'nei_color'"
|
||||
@click="scrollTo(v, k, item, index)">{{ v.title }}</a>
|
||||
@ -1483,6 +1484,27 @@ export default {
|
||||
this.right_card_list[4].content[0].ok = false;
|
||||
}
|
||||
if (newVal.if_abroad == 1) {
|
||||
if (this.right_card_list[4].content.length > 1) {
|
||||
this.right_card_list[4].content.push(
|
||||
{
|
||||
title: '2.区域与资源',
|
||||
active: false,
|
||||
id: 'haiwiquyu',
|
||||
ok: false,
|
||||
},
|
||||
{
|
||||
title: '3.财务与运营',
|
||||
active: false,
|
||||
id: 'caiwuyunying',
|
||||
ok: false,
|
||||
},
|
||||
{
|
||||
title: '4.对华合作',
|
||||
active: false,
|
||||
id: 'duihuahezuo',
|
||||
ok: false,
|
||||
});
|
||||
}
|
||||
if (newVal.abroad_region_arr.length > 0 || newVal.abroad_region_id != '') {
|
||||
if (newVal.staff_size != '' && newVal.business_case != '') {
|
||||
this.right_card_list[4].content[1].ok = true;
|
||||
@ -1683,7 +1705,7 @@ export default {
|
||||
return;
|
||||
}
|
||||
const link = document.createElement('a');
|
||||
link.href = `http://192.168.10.140/api/move/pdf_member/exportPdf?openid=${this.formData.openid}`;
|
||||
link.href = `https://hnyea.0rui.cn/api/move/pdf_member/exportPdf?openid=${this.formData.openid}`;
|
||||
link.target = '_blank'; // 新标签页打开
|
||||
link.rel = 'noopener noreferrer'; // 安全考虑
|
||||
link.style.display = 'none';
|
||||
@ -1776,7 +1798,11 @@ export default {
|
||||
this.$message.error('入会链接有误,请前往小程序重新获取!', 5000);
|
||||
} else {
|
||||
//推荐方式
|
||||
this.formData.reporting_method = parseInt(res.data.reporting_method);
|
||||
if (res.data.reporting_method == '' || res.data.reporting_method == null) {
|
||||
this.formData.reporting_method = null;;
|
||||
} else {
|
||||
this.formData.reporting_method = parseInt(res.data.reporting_method);
|
||||
}
|
||||
//来源渠道
|
||||
this.formData.source_channel = res.data.source_channel;
|
||||
//推荐城市
|
||||
@ -1830,7 +1856,11 @@ export default {
|
||||
//固定电话
|
||||
this.formData.fixed_telephone = res.data.fixed_telephone;
|
||||
//所在区域
|
||||
this.formData.region_id = res.data.region_id;
|
||||
if(res.data.region_id=='' || res.data.region_id==null || res.data.region_id==0){
|
||||
this.formData.region_id = null;
|
||||
}else{
|
||||
this.formData.region_id = res.data.region_id;
|
||||
}
|
||||
//所在区域详细信息
|
||||
this.formData.mail_address = res.data.mail_address;
|
||||
//个人简介
|
||||
@ -2123,6 +2153,11 @@ export default {
|
||||
if (this.formData.card_number == '') {
|
||||
this.$message.error('请输入身份证号码!');
|
||||
return;
|
||||
} else {
|
||||
if (this.checkCardNumber() == 'error') {
|
||||
this.$message.error('请输入正确的身份证号码!');
|
||||
return;
|
||||
}
|
||||
}
|
||||
if (this.formData.work_unit == '') {
|
||||
this.$message.error('请输入工作单位!');
|
||||
@ -2621,10 +2656,10 @@ export default {
|
||||
this.collapse = [7];
|
||||
this.clearActive();
|
||||
this.right_card_list[6].active = true;
|
||||
}else{
|
||||
} else {
|
||||
//模拟点击a标签,进行锚点跳转
|
||||
window.location.hash = item.content[0].id;
|
||||
this.right_card_list[item.key-1].active=true;
|
||||
this.right_card_list[item.key - 1].active = true;
|
||||
}
|
||||
},
|
||||
checkPhoneAll(phone, index) {
|
||||
@ -2678,6 +2713,20 @@ export default {
|
||||
const labelPath = path.map((item) => item.label).join(' / ');
|
||||
this.inputProps.value = labelPath;
|
||||
},
|
||||
checkCardNumber() {
|
||||
if (this.formData.card_number == '') {
|
||||
return 'error';
|
||||
}
|
||||
var idCard = this.formData.card_number;
|
||||
// 身份证号码格式正则表达式
|
||||
const regIdCard = /(^\d{15}$)|(^\d{18}$)|(^\d{17}(\d|X|x)$)/;
|
||||
|
||||
if (!regIdCard.test(idCard)) {
|
||||
this.$message.error('身份证号码格式不正确');
|
||||
return 'error';
|
||||
}
|
||||
return 'success';
|
||||
}
|
||||
},
|
||||
|
||||
};
|
||||
@ -2936,6 +2985,7 @@ export default {
|
||||
left: 0;
|
||||
z-index: 100;
|
||||
}
|
||||
|
||||
.rongyu:hover {
|
||||
background-image: url(@/assets/del_da.png);
|
||||
background-repeat: no-repeat;
|
||||
|
@ -1437,7 +1437,7 @@ export default {
|
||||
return;
|
||||
}
|
||||
const link = document.createElement('a');
|
||||
link.href = `http://192.168.10.140/api/move/pdf_member/exportPdf?openid=${this.formData.openid}`;
|
||||
link.href = `https://hnyea.0rui.cn/api/move/pdf_member/exportPdf?openid=${this.formData.openid}`;
|
||||
link.target = '_blank'; // 新标签页打开
|
||||
link.rel = 'noopener noreferrer'; // 安全考虑
|
||||
link.style.display = 'none';
|
||||
|
@ -1440,7 +1440,7 @@ export default {
|
||||
return;
|
||||
}
|
||||
const link = document.createElement('a');
|
||||
link.href = `http://192.168.10.140/api/move/pdf_member/exportPdf?openid=${this.formData.openid}`;
|
||||
link.href = `https://hnyea.0rui.cn/api/move/pdf_member/exportPdf?openid=${this.formData.openid}`;
|
||||
link.target = '_blank'; // 新标签页打开
|
||||
link.rel = 'noopener noreferrer'; // 安全考虑
|
||||
link.style.display = 'none';
|
||||
|
@ -673,7 +673,7 @@ export default {
|
||||
key.achievement_award='';
|
||||
key.enterprise_honor ='';
|
||||
}
|
||||
key.enterprise_honor = key.enterprise_honor != '' ? JSON.parse(key.enterprise_honor) : '';
|
||||
//key.enterprise_honor = key.enterprise_honor != '' ? JSON.parse(key.enterprise_honor) : '';
|
||||
key.party_json = key.party_json != '' ? JSON.parse(key.party_json) : '';
|
||||
this.info = key;
|
||||
})
|
||||
|
@ -2,8 +2,8 @@ import axios from 'axios';
|
||||
import store from '../store';
|
||||
//const API_HOST = env === 'mock' ? '/' : proxy[env].API; // 如果是mock模式 就不配置host 会走本地Mock拦截
|
||||
//const API_HOST = 'https://hnyea.0rui.cn/api/';
|
||||
//const API_HOST = 'http://192.168.10.140/api/';
|
||||
const API_HOST = '/api/';
|
||||
const API_HOST = 'https://hnyea.0rui.cn/api/';
|
||||
//const API_HOST = '/api/';
|
||||
const CODE = {
|
||||
LOGIN_TIMEOUT: 1000000,
|
||||
REQUEST_SUCCESS: 0,
|
||||
|
@ -47,7 +47,7 @@ export default ({ mode }) => {
|
||||
'/api': {
|
||||
// 用于开发环境下的转发请求
|
||||
// 更多请参考:https://vitejs.dev/config/#server-proxy
|
||||
target: 'http://192.168.10.140/',
|
||||
target: 'https://hnyea.0rui.cn/',
|
||||
pathRewrite: {
|
||||
'^/api': ''
|
||||
},
|
||||
|
Loading…
x
Reference in New Issue
Block a user