1.优化一些内容

This commit is contained in:
王创世 2025-04-23 19:21:20 +08:00
parent 233de6bb09
commit 8c0c4516a8
7 changed files with 63 additions and 50 deletions

View File

@ -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

View File

@ -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;

View File

@ -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';

View File

@ -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';

View File

@ -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;
})

View File

@ -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,

View File

@ -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': ''
},