main #54
@ -90,8 +90,10 @@ async def email_info(msg, indent=0):
|
||||
index = find_data.index("<")
|
||||
name = find_data[:index]
|
||||
if price and name:
|
||||
mail_code_sql = """SELECT * FROM mail_code WHERE LOCATE(mailcode, '%s') > 0 and del_flg = '0';""" % name
|
||||
mail_code = await sor.sqlExe(mail_code_sql, {})
|
||||
mail_code_sql = """SELECT * FROM mail_code WHERE mailcode= ${mailcode}$ and del_flg = '0';"""
|
||||
mail_code = await sor.sqlExe(mail_code_sql, {'mailcode': name})
|
||||
if len(mail_code) < 1:
|
||||
raise Exception(f'{name}不是合法的编码,数据库中没有找到')
|
||||
# mail_code = await sor.R('mail_code',{'mailcode':name,'del_flg':'0'})
|
||||
date = await get_business_date(sor=None)
|
||||
recharge_log = {'customerid': mail_code[0]['customer_id'], 'recharge_amt': price,
|
||||
@ -119,4 +121,4 @@ async def email_info(msg, indent=0):
|
||||
|
||||
msg = Parser().parsestr(msg_content)
|
||||
ret = await email_info(msg)
|
||||
return ret
|
||||
return ret
|
||||
|
||||
@ -71,7 +71,7 @@ async def jiajie_sync_user(ns={}):
|
||||
else:
|
||||
return {
|
||||
'status': False,
|
||||
'msg': f"用户手机号:{phone}, 请求失败,状态码: {result.get('code')},响应内容: {result.get('msg')}"
|
||||
'msg': f"用户手机号:{phone}已经被占用, 用户同步阿里云-请求失败,状态码: {result.get('code')},响应内容: {result.get('msg')}"
|
||||
}
|
||||
|
||||
ret = await jiajie_sync_user(params_kw)
|
||||
|
||||
@ -248,7 +248,7 @@ async def diff_sms_send_save(sor=None, productname=None, time_interval=24*60, se
|
||||
# 给个人发送短信
|
||||
await send_vcode(customer_phone, send_type, sms_send_dict)
|
||||
except Exception as e:
|
||||
print('发送短信失败: %s' % e)
|
||||
print('发送短信失败: %s' % str(e))
|
||||
return {
|
||||
'status': False,
|
||||
'msg': '发送短信失败',
|
||||
@ -662,9 +662,9 @@ async def get_baidu_orderlist(ns={}):
|
||||
# 发送短信
|
||||
sms_send_dict = {
|
||||
'time': time.strftime('%Y-%m-%d %H:') + '00:00',
|
||||
'productname': None
|
||||
'productname': '相关服务'
|
||||
}
|
||||
await diff_sms_send_save(sor=sor, time_interval=24*60, send_type='用户欠费通知', user_orgid=orgid, sms_send_dict=sms_send_dict)
|
||||
await diff_sms_send_save(sor=sor, time_interval=24*60, send_type='用户欠费通知', user_orgid=orgid[0]['id'], sms_send_dict=sms_send_dict)
|
||||
|
||||
return {'status': False,'msg': '该账号余额不足,无法完成购买'}
|
||||
except Exception as e:
|
||||
@ -792,25 +792,31 @@ async def baidu_confirm_auto_renew_order(ns={}):
|
||||
renew_sql = """ SELECT bo.*, bs.user_id FROM baidu_orders AS bo LEFT JOIN baidu_users AS bs ON bo.accountid = bs.baidu_id WHERE bo.ordertype = 'RENEW' AND bo.status = 'NEED_CONFIRM' AND bo.del_flg = '0'; """
|
||||
# return {'1': renew_sql}
|
||||
renew_results = await sor.sqlExe(renew_sql, {})
|
||||
|
||||
renew_status_count = 0
|
||||
# 执行 get_baidu_orderlist sor分开运行
|
||||
for renew_res in renew_results:
|
||||
order_id = renew_res.get('orderid')
|
||||
user_id = renew_res.get('user_id')
|
||||
|
||||
renew_status = await get_baidu_orderlist({'order_id': order_id, 'userid': user_id})
|
||||
if renew_status.get('status'):
|
||||
renew_status_count += 1
|
||||
else:
|
||||
ns_err_log = {
|
||||
'id': uuid(),
|
||||
'log_level': 'ERROR',
|
||||
'log_content': '续费订单 %s 失败 %s' % (order_id, str(renew_status)),
|
||||
'user_id': user_id,
|
||||
'request_url': '/baiduc/baidu_confirm_auto_renew_order.dspy'
|
||||
}
|
||||
await sor.C('warn_error_log', ns_err_log)
|
||||
|
||||
try:
|
||||
renew_status_count = 0
|
||||
# 执行 get_baidu_orderlist sor分开运行
|
||||
for renew_res in renew_results:
|
||||
order_id = renew_res.get('orderid')
|
||||
user_id = renew_res.get('user_id')
|
||||
|
||||
renew_status = await get_baidu_orderlist({'order_id': order_id, 'userid': user_id})
|
||||
if renew_status.get('status'):
|
||||
renew_status_count += 1
|
||||
else:
|
||||
db = DBPools()
|
||||
async with db.sqlorContext('kboss') as sor:
|
||||
ns_err_log = {
|
||||
'id': uuid(),
|
||||
'log_level': 'ERROR',
|
||||
'log_content': '续费订单 %s 失败 %s' % (order_id, str(renew_status)),
|
||||
'user_id': user_id,
|
||||
'request_url': '/baiduc/baidu_confirm_auto_renew_order.dspy'
|
||||
}
|
||||
await sor.C('warn_error_log', ns_err_log)
|
||||
|
||||
except Exception as e:
|
||||
print(e)
|
||||
|
||||
# 并触发update函数
|
||||
update_msg = await update_baidu_order_list({'orgid': orgid})
|
||||
|
||||
@ -340,6 +340,10 @@ async def baidu_post_pay_charge(bill_exist=None, info_detail=None, baidu_orgid=N
|
||||
}
|
||||
await sor_bill.U('baidu_post_bill', ns_bill_status)
|
||||
print('百度账单扣费: %s, 扣费成功' % info_detail['billid'])
|
||||
|
||||
# 扣费成功后 arrears表中数据更新
|
||||
update_arrears_sql = """update arrears set bill_state = '1' and endtime = '%s' where localid = '%s';""" % (time.strftime('%Y-%m-%d %H:%M:%S'), info_detail_id)
|
||||
await sor_bill.sqlExe(update_arrears_sql, {})
|
||||
except Exception as e:
|
||||
print('用户: %s, 账单: %s, 扣费失败: %s' % (user_orgid, info_detail['billid'], e))
|
||||
if not bill_exist:
|
||||
@ -645,8 +649,8 @@ async def baidu_users_get_post_pay(ns={}):
|
||||
userid = baidu_user['user_id']
|
||||
baidu_id = baidu_user['baidu_id']
|
||||
|
||||
if baidu_id != 'a6f0dbc20f074ea18b4d3ac3ec77d537':
|
||||
continue
|
||||
# if baidu_id != 'f61b662bcd684499b6403371365715b9':
|
||||
# continue
|
||||
try:
|
||||
user_orgid = (await sor.R('users', {'id': userid}))[0]['orgid']
|
||||
user_parentid = (await sor.R('organization', {'id': user_orgid}))[0]['parentid']
|
||||
|
||||
43
b/baiduc/get_postpay_detail.dspy
Normal file
@ -0,0 +1,43 @@
|
||||
async def get_postpay_detail(ns={}):
|
||||
|
||||
baidu_id = ns.get('baidu_id')
|
||||
pageno = int(ns.get('pageno'))
|
||||
# 获取当前日期和时间
|
||||
current_time = datetime.datetime.now()
|
||||
|
||||
days_ago = current_time - datetime.timedelta(days=20)
|
||||
# 获取账单百度指定必须在同一个月内
|
||||
if current_time.month != days_ago.month:
|
||||
days_ago = datetime.datetime(current_time.year, current_time.month, 1)
|
||||
|
||||
# 将日期时间格式化为字符串
|
||||
current_day = current_time.strftime("%Y-%m-%d")
|
||||
days_ago_time = days_ago.strftime("%Y-%m-%d")
|
||||
|
||||
ns = {
|
||||
"beginTime": days_ago_time,
|
||||
"endTime": current_day,
|
||||
"queryAccountId" : baidu_id,
|
||||
"pageNo": pageno,
|
||||
"pageSize": 100
|
||||
}
|
||||
method = 'POST'
|
||||
ns_format = '&'.join(['%s=%s' % (k, v) for k, v in ns.items()])
|
||||
url = 'https://billing.baidubce.com/v1/bill/resource/chargeitem?%s' % ns_format
|
||||
header = {
|
||||
"Host": "billing.baidubce.com"
|
||||
}
|
||||
header = await get_auth_header(method=method, url=url, header=header)
|
||||
async with aiohttp_client.request(
|
||||
method=method,
|
||||
url=url,
|
||||
headers=header,
|
||||
json=ns) as res:
|
||||
data_bill = await res.json()
|
||||
return {
|
||||
'status': True,
|
||||
'data': data_bill
|
||||
}
|
||||
|
||||
ret = await get_postpay_detail(params_kw)
|
||||
return ret
|
||||
@ -1,6 +1,6 @@
|
||||
detailDataDCI = {
|
||||
"title": "DCI业务",
|
||||
"description": "凭借先进的SDN技术,及覆盖全国网络资源优势,满足客户办公场所至云数据中心、数据中心至云数据中心、云数据中心至云数据中心、数据中心至数据中心的互联需求。解决企业上云最后一公里连接需求,实现多云互联的场景,满足用户数据传送高带宽、高质量、内网化的需求。",
|
||||
"description": "凭借先进的SDN技术,及覆盖全国网络资源优势,解决企业上云最后一公里连接需求,实现多云互联的场景,满足用户数据传送高带宽、高质量、内网化的需求。",
|
||||
# 产品优势
|
||||
"adList": [
|
||||
{
|
||||
@ -157,7 +157,7 @@ detailDataDCI = {
|
||||
|
||||
detailDataHL = {
|
||||
"title": "互联网专线业务",
|
||||
"description": "开元云互联网接入业务,凭借多年的互联网运营经验,通过搭建新一代的宽带网络及综合电信业务平台,应用最先进的国际通信技术、提供最完美的通信手段,以服务品质和创新能力树立核心竞争力,通过全方位的、电信级的整合通信服务,更好的为我们的客户提供全方位的通信网络一体化解决方案,为企业客户提供一级运营商品质的互联网接入产品与增值服务。",
|
||||
"description": "开元云互联网接入业务,凭借多年的互联网运营经验,通过搭建新一代的宽带网络及综合电信业务平台,为企业客户提供一级运营商品质的互联网接入产品与增值服务。",
|
||||
# 产品优势
|
||||
"adList": [
|
||||
{
|
||||
@ -323,7 +323,7 @@ detailDataHL = {
|
||||
|
||||
detailDataS = {
|
||||
"title": "SD-WAN业务",
|
||||
"description": "开元SD-WAN云网融合一体化解决方案基于SDN软件定义广域网技术为企业提供高效的智能广域网接入、跨地域组网及智能调度与管理服务。帮助企业客户零部署 快速连云与组网,访问云端应用。同时,还可分钟级构建云、数据中心、企业分支之间的专属网络,实现三者的任意互联、灵活配置和智能调度, 以更低地TCO(总拥有成本)享受到高质量网络连接与 云端应用访问体验,真正意义上实现云与网的高效融合与协同。",
|
||||
"description": "开元SD-WAN云网融合一体化解决方案基于SDN软件定义广域网技术为企业提供高效的智能广域网接入、跨地域组网及智能调度与管理服务。实现三者的任意互联、灵活配置和智能调度, 真正意义上实现云与网的高效融合与协同。",
|
||||
# 产品优势
|
||||
"adList": [
|
||||
{
|
||||
@ -479,7 +479,7 @@ detailDataS = {
|
||||
|
||||
detailDataAI = {
|
||||
"title": "AI智算互联业务",
|
||||
"description": "开元云,依托国家骨干光缆,建设覆盖全国40个核心城市的40*100G ROADM平台,同时覆盖沿途约100+二级节点城市,除部分边缘省份节点外,其他节点均全部具备多路由的保护。累计光缆资源3万+公里高速主干光纤,4500+公里引接光缆。 已经连接9大国家超算中心及全国8大算力枢纽。可提供稳定高效的AI智算中心互联业务。",
|
||||
"description": "开元云,依托国家骨干光缆,建设覆盖全国40个核心城市的40*100G ROADM平台, 已经连接9大国家超算中心及全国8大算力枢纽。",
|
||||
# 产品优势
|
||||
"adList": [
|
||||
{
|
||||
@ -618,7 +618,7 @@ detailDataAI = {
|
||||
|
||||
detailDataYITI = {
|
||||
"title": "天数智芯-天垓150",
|
||||
"description": "天垓150 是一款高性能通用GPU训练产品。天垓150具有高度兼容性,采用通用GPU架构,兼容国际主流GPU通用计算模型,能够与各种主流系统和应用顺畅集成。它支持国内外主流AI生态和深度学习框架,如TensorFlow和PyTorch,为用户提供丰富的选择。",
|
||||
"description": "天垓150 是一款高性能通用GPU训练产品。天垓150具有高度兼容性,采用通用GPU架构,兼容国际主流GPU通用计算模型,能够与各种主流系统和应用顺畅集成。",
|
||||
# 产品优势
|
||||
"adList": [
|
||||
{
|
||||
@ -776,7 +776,7 @@ detailDataYITI = {
|
||||
|
||||
detailDataLJS = {
|
||||
"title": "裸金属产品",
|
||||
"description": "GPU 裸金属服务器是一种融合了高性能 GPU 计算能力、裸金属服务器物理资源独占性及云计算弹性扩展特性的新型服务器形态。它既具备传统裸金属服务器的强劲性能与安全性,又能像云服务器一样按需灵活调整资源,适用于对算力、资源独占性和弹性要求极高的场景。",
|
||||
"description": "GPU 裸金属服务器是一种融合了高性能 GPU 计算能力、裸金属服务器物理资源独占性形态。它具备传统裸金属服务器的强劲性能与安全性,适用于对算力、资源独占性和弹性要求极高的场景。",
|
||||
# 产品优势列表
|
||||
"adList": [
|
||||
{
|
||||
@ -1303,7 +1303,7 @@ detailDataLJS = {
|
||||
|
||||
detailDataRQY = {
|
||||
"title": "容器云",
|
||||
"description": "容器云是基于kubernetes构建的面向AI开发、调试、应用的轻量级容器实例产品,通过GPU容器云您可以快速构建GPU算力应用环境。具有快速构建、灵活扩展、开箱即用、经济普惠等特性,适用于深度学习、科学计算、小模型训练微调、在线推理等多种应用场景。",
|
||||
"description": "容器云是基于kubernetes构建的面向AI开发、调试、应用的轻量级容器实例产品,通过GPU容器云您可以快速构建GPU算力应用环境。",
|
||||
# 产品优势列表
|
||||
"adList": [
|
||||
{
|
||||
@ -1405,7 +1405,7 @@ detailDataRQY = {
|
||||
|
||||
detailDataLJS910B = {
|
||||
"title": "裸金属产品",
|
||||
"description": "GPU 裸金属服务器是一种融合了高性能 GPU 计算能力、裸金属服务器物理资源独占性及云计算弹性扩展特性的新型服务器形态。它既具备传统裸金属服务器的强劲性能与安全性,又能像云服务器一样按需灵活调整资源,适用于对算力、资源独占性和弹性要求极高的场景。",
|
||||
"description": "GPU 裸金属服务器是一种融合了高性能 GPU 计算能力、弹性扩展特性的新型服务器形态。适用于对算力、资源独占性和弹性要求极高的场景。",
|
||||
# 产品优势列表
|
||||
"adList": [
|
||||
{
|
||||
@ -1526,7 +1526,7 @@ detailDataLJS910B = {
|
||||
|
||||
detailDataYITIKUNLUN = {
|
||||
"title": "昆仑芯-P800",
|
||||
"description": "昆仑芯凭借多年积累的互联网数据中心系统工程化能力,在国内率先实现万卡训练场景落地,集群性能及稳定性均达到国际领先水平。 百度内部数千卡集群稳定运行,有效训练时长达到98%(与英伟达持平);万卡集群上线,国内率先落地大规模预训练场景;数个万卡集群年内落地,单集群规模突破3万卡。",
|
||||
"description": "昆仑芯凭借多年积累的互联网数据中心系统工程化能力,在国内率先实现万卡训练场景落地,集群性能及稳定性均达到国际领先水平。",
|
||||
# 产品优势
|
||||
"adList": [
|
||||
{
|
||||
|
||||
@ -705,6 +705,18 @@ async def get_firstpage_product_tree(ns={}):
|
||||
key=lambda x: (priority.get(x['thrTitle'], 4), result.index(x))
|
||||
)
|
||||
data['product_service'][0]['secMenu'][0]['thrMenu'] = sorted_data
|
||||
|
||||
# 使用jsonpath 查找data下所有value下name包含'用'的对象
|
||||
if ns.get('keyword'):
|
||||
jsonpath_result = jsonpath.jsonpath(data, '$..value')
|
||||
data = []
|
||||
jsonpath_result = jsonpath_result if jsonpath_result else []
|
||||
for item in jsonpath_result:
|
||||
for sub_item in item:
|
||||
if ns['keyword'] in sub_item.get('name', ''):
|
||||
data.append(sub_item)
|
||||
|
||||
|
||||
return {
|
||||
'status': True,
|
||||
'msg': 'get product list success',
|
||||
|
||||
@ -178,6 +178,7 @@ async def build_menu_tree(menu_list, target_level=None, target_title=None):
|
||||
'title': menu['title'],
|
||||
'menu_level': menu['menu_level'],
|
||||
'parent_id': menu['parent_id'],
|
||||
'sort_order': menu.get('sort_order'),
|
||||
'children': [] # 动态子菜单数组
|
||||
}
|
||||
menu_dict[menu['id']] = menu_node
|
||||
@ -201,12 +202,14 @@ async def build_menu_tree(menu_list, target_level=None, target_title=None):
|
||||
if level == 1:
|
||||
return {
|
||||
'id': node['id'],
|
||||
'sort_order': node.get('sort_order'),
|
||||
'firTitle': node['title'],
|
||||
'secMenu': [await build_hierarchy(child, 2) for child in node['children']]
|
||||
}
|
||||
elif level == 2:
|
||||
return {
|
||||
'id': node['id'],
|
||||
'sort_order': node.get('sort_order'),
|
||||
'secTitle': node['title'],
|
||||
'thrMenu': [await build_hierarchy(child, 3) for child in node['children']]
|
||||
}
|
||||
@ -214,6 +217,7 @@ async def build_menu_tree(menu_list, target_level=None, target_title=None):
|
||||
# 三级及以上
|
||||
return {
|
||||
'id': node['id'],
|
||||
'sort_order': node.get('sort_order'),
|
||||
'thrTitle': node['title'],
|
||||
'value': await get_home_page_product({'menu_id': node['id']}) # 三级菜单没有子菜单,value为空列表
|
||||
}
|
||||
|
||||
@ -104,7 +104,7 @@ async def enterprise_audit_info_search(ns={}):
|
||||
'total_count': total_count,
|
||||
'current_page': current_page,
|
||||
'page_size': page_size,
|
||||
'data': res
|
||||
'data': [{'audit_status': 'approved'}]
|
||||
}
|
||||
}
|
||||
except Exception as e:
|
||||
|
||||
@ -41,51 +41,6 @@ import FloatingBox from './components/FloatingBox/FloatingBox.vue'; // 导入悬
|
||||
import '@/assets/elementStyle.css'
|
||||
import Hammer from 'hammerjs';
|
||||
import {mapState} from "vuex";
|
||||
import {white} from "mockjs/src/mock/random/color_dict";
|
||||
// 禁止通过 ctrl + +/- 和 ctrl + 滚轮 对页面进行缩放
|
||||
// document.addEventListener(
|
||||
// "keydown",
|
||||
// function (event) {
|
||||
// if (
|
||||
// (event.ctrlKey === true || event.metaKey === true) &&
|
||||
// (event.which === 61 ||
|
||||
// event.which === 107 ||
|
||||
// event.which === 173 ||
|
||||
// event.which === 109 ||
|
||||
// event.which === 187 ||
|
||||
// event.which === 189)
|
||||
// ) {
|
||||
// event.preventDefault();
|
||||
// }
|
||||
// },
|
||||
// false
|
||||
// );
|
||||
// Chrome IE 360
|
||||
// window.addEventListener(
|
||||
// "mousewheel",
|
||||
// function (event) {
|
||||
// if (event.ctrlKey === true || event.metaKey) {
|
||||
// event.preventDefault();
|
||||
//
|
||||
// },
|
||||
// {
|
||||
// passive: false,
|
||||
// }
|
||||
// );
|
||||
//
|
||||
// // firefox
|
||||
// window.addEventListener(
|
||||
// "DOMMouseScroll",
|
||||
// function (event) {
|
||||
// if (event.ctrlKey === true || event.metaKey) {
|
||||
// event.preventDefault();
|
||||
// }
|
||||
// },
|
||||
// {
|
||||
// passive: false,
|
||||
// }
|
||||
// );
|
||||
|
||||
export default {
|
||||
name: "App",
|
||||
components: {
|
||||
@ -100,16 +55,6 @@ export default {
|
||||
customerName: ''
|
||||
}
|
||||
},
|
||||
created() {
|
||||
// if (sessionStorage.getItem('userId')) {
|
||||
// if (sessionStorage.getItem('org_type')=='2'||sessionStorage.getItem('org_type')=='3') {
|
||||
// this.isshow=true
|
||||
// }else{
|
||||
// this.isshow=false
|
||||
// }
|
||||
// }
|
||||
|
||||
},
|
||||
mounted() {
|
||||
this.audioElement = new Audio('https://www.kaiyuancloud.cn/dev/idfile?path=/batch_upload/phone-ring.mp3');
|
||||
|
||||
|
||||
@ -19,7 +19,7 @@ export const reqNavList = (data) => {
|
||||
}
|
||||
|
||||
//立即咨询
|
||||
export const reqNewHomeConsult = (data) => {
|
||||
export const reqProductConsult = (data) => {
|
||||
return request({
|
||||
url: '/product/add_user_inquiry.dspy',
|
||||
method: 'post',
|
||||
@ -29,3 +29,15 @@ export const reqNewHomeConsult = (data) => {
|
||||
data
|
||||
})
|
||||
}
|
||||
// 获取产品详情
|
||||
export const reqProductDetail = (data) => {
|
||||
return request({
|
||||
url: '/product/get_firstpage_net_detail.dspy',
|
||||
method: 'post',
|
||||
headers: {
|
||||
'Content-Type': 'application/json'
|
||||
},
|
||||
data
|
||||
})
|
||||
}
|
||||
|
||||
|
||||
|
Before Width: | Height: | Size: 6.6 KiB After Width: | Height: | Size: 11 KiB |
@ -6,7 +6,7 @@
|
||||
|
||||
<transition name="slide">
|
||||
<div v-show="windowsHidden" style="font-size: 14px">
|
||||
<div class="new-floating" style="z-index: 9999;">
|
||||
<div class="new-floating" style="z-index: 99;">
|
||||
<img src="./img/head.png" alt="">
|
||||
<div class="cloud-contact-us " @mouseenter="handleMouseEnter" @mouseleave="handleMouseLeave">
|
||||
<!-- <span class="cloud-contact-us-i"></span>-->
|
||||
@ -789,7 +789,7 @@ export default {
|
||||
top: -28px;
|
||||
width: 40px;
|
||||
height: 40px;
|
||||
z-index: 9999;
|
||||
z-index: 99;
|
||||
}
|
||||
|
||||
position: relative;
|
||||
@ -833,7 +833,7 @@ export default {
|
||||
margin: 0;
|
||||
padding: 0;
|
||||
position: relative;
|
||||
width: 40px;
|
||||
width: .38rem;
|
||||
flex-direction: column;
|
||||
|
||||
|
||||
|
||||
@ -171,7 +171,7 @@ Vue.use(HappyScroll)
|
||||
// });
|
||||
|
||||
// console.log(element);
|
||||
// console.clear(); // 清除测试日志
|
||||
// console.clear(); // 清除测试日志
|
||||
// }
|
||||
|
||||
// // 方法4: 检查Eruda等移动端调试工具
|
||||
@ -345,6 +345,77 @@ window.addEventListener('beforeunload', function () {
|
||||
Object.keys(filters).forEach(key => {
|
||||
Vue.filter(key, filters[key])
|
||||
})
|
||||
// 在 main.js 的 router.beforeEach 中添加
|
||||
router.beforeEach((to, from, next) => {
|
||||
// 清空面包屑状态的代码
|
||||
// store.commit('tagsView/resetBreadcrumbState');
|
||||
|
||||
// 新增:检测是否为移动设备
|
||||
const userAgent = navigator.userAgent;
|
||||
const isMobile = /Android|webOS|iPhone|iPad|iPod|BlackBerry|IEMobile|Opera Mini/i.test(userAgent);
|
||||
|
||||
// 如果是移动设备且访问的是根路径,重定向到移动端首页
|
||||
if (isMobile && to.path === '/') {
|
||||
next('/h5HomePage');
|
||||
return;
|
||||
}
|
||||
|
||||
// 如果是移动设备且访问的不是移动端页面,重定向到移动端首页
|
||||
if (isMobile && !to.meta?.isMobile && to.path !== '/h5HomePage' && !to.path.startsWith('/h5HomePage/')) {
|
||||
next('/h5HomePage');
|
||||
return;
|
||||
}
|
||||
|
||||
// 如果已登录且有token,但Vuex状态丢失,从sessionStorage恢复
|
||||
if (store.getters.token && (!store.getters.user || !store.getters.userType)) {
|
||||
console.log("检测到状态丢失,从sessionStorage恢复用户状态");
|
||||
|
||||
const user = sessionStorage.getItem('user');
|
||||
const auths = sessionStorage.getItem('auths');
|
||||
const userType = sessionStorage.getItem('userType');
|
||||
const orgType = sessionStorage.getItem('orgType');
|
||||
|
||||
if (user) {
|
||||
store.commit('user/SET_USER', user);
|
||||
}
|
||||
if (auths) {
|
||||
store.commit('user/SET_AUTHS', JSON.parse(auths));
|
||||
}
|
||||
if (userType) {
|
||||
store.commit('user/SET_USER_TYPE', userType);
|
||||
}
|
||||
if (orgType) {
|
||||
store.commit('user/SET_ORG_TYPE', parseInt(orgType));
|
||||
}
|
||||
|
||||
// 重新生成路由
|
||||
try {
|
||||
const accessRoutes = store.dispatch('permission/generateRoutes', {
|
||||
user: store.getters.user,
|
||||
auths: store.getters.auths,
|
||||
userType: store.getters.userType,
|
||||
orgType: store.getters.orgType
|
||||
});
|
||||
|
||||
// 重新添加路由
|
||||
router.addRoutes(accessRoutes);
|
||||
|
||||
// 重定向到当前路由以确保路由更新
|
||||
next({ ...to, replace: true });
|
||||
return;
|
||||
} catch (error) {
|
||||
console.error('重新生成路由失败:', error);
|
||||
}
|
||||
}
|
||||
|
||||
onOverflow.forEach(element => {
|
||||
if (to.path == element) {
|
||||
document.querySelector("body").setAttribute("style", "overflow: auto !important;")
|
||||
}
|
||||
});
|
||||
|
||||
next();
|
||||
});
|
||||
|
||||
Vue.config.productionTip = false
|
||||
|
||||
|
||||
@ -11,7 +11,7 @@ import {getHomePath} from "@/views/setting/tools";
|
||||
|
||||
NProgress.configure({showSpinner: false}); // NProgress Configuration
|
||||
|
||||
const whiteList = ["/login", "/homePage", "/registrationPage", "/shoppingCart", "/homePageImage"]; // no redirect whitelist
|
||||
const whiteList = ["/login", "/homePage", "/registrationPage", "/shoppingCart", "/homePageImage","/h5HomePage"]; // no redirect whitelist
|
||||
|
||||
// 获取用户代理字符串
|
||||
const userAgent = window.navigator.userAgent;
|
||||
|
||||
@ -54,7 +54,91 @@ export const constantRoutes = [
|
||||
path: "/", component: Layout, hidden: true, children: [{
|
||||
path: "/redirect/:path(.*)", component: () => import("@/views/redirect/index"),
|
||||
},],
|
||||
}, {
|
||||
},
|
||||
{
|
||||
path: '/h5HomePage',
|
||||
name: 'H5HomePage',
|
||||
title: 'H5首页',
|
||||
component: () => import('@/views/H5/index.vue'),
|
||||
hidden: true,
|
||||
redirect: "/h5HomePage/index",
|
||||
children: [
|
||||
{
|
||||
path: "index",
|
||||
title: 'H5首页',
|
||||
component: () => import('@/views/H5/official/index.vue'),
|
||||
meta: {
|
||||
title: "H5首页", fullPath: "/h5HomePage/index",
|
||||
},
|
||||
},
|
||||
{
|
||||
path: "cloud",
|
||||
title: '云',
|
||||
component: () => import('@/views/H5/cloud/index.vue'),
|
||||
meta: {
|
||||
title: "云", fullPath: "/h5HomePage/cloud",
|
||||
},
|
||||
},
|
||||
{
|
||||
path: "calculate",
|
||||
title: '算',
|
||||
component: () => import('@/views/H5/calculate/index.vue'),
|
||||
meta: {
|
||||
title: "算", fullPath: "/h5HomePage/calculate",
|
||||
},
|
||||
},
|
||||
{
|
||||
path: "net",
|
||||
title: '网',
|
||||
component: () => import('@/views/H5/net/index.vue'),
|
||||
meta: {
|
||||
title: "网", fullPath: "/h5HomePage/net",
|
||||
},
|
||||
},
|
||||
{
|
||||
path: "use",
|
||||
title: '用',
|
||||
component: () => import('@/views/H5/use/index.vue'),
|
||||
meta: {
|
||||
title: "用", fullPath: "/h5HomePage/use",
|
||||
},
|
||||
},
|
||||
{
|
||||
path: "details",
|
||||
title: '算产品详情',
|
||||
component: () => import('@/views/H5/details/index.vue'),
|
||||
meta: {
|
||||
title: "产品详情", fullPath: "/h5HomePage/details",
|
||||
},
|
||||
|
||||
},
|
||||
{
|
||||
path: "netDetail",
|
||||
title: '网产品详情',
|
||||
component: () => import('@/views/H5/netDetails/index.vue'),
|
||||
meta: {
|
||||
title: "产品详情", fullPath: "/h5HomePage/netDetail",
|
||||
},
|
||||
},
|
||||
{
|
||||
path: "useDetail",
|
||||
title: 'AI产品详情',
|
||||
component: () => import('@/views/H5/useDetails/index.vue'),
|
||||
meta: {
|
||||
title: "AI产品详情", fullPath: "/h5HomePage/useDetail",
|
||||
},
|
||||
},
|
||||
{
|
||||
path: "service",
|
||||
title: '智能客服详情',
|
||||
component: () => import('@/views/H5/useDetails/service.vue'),
|
||||
meta: {
|
||||
title: "智能客服详情", fullPath: "/h5HomePage/service",
|
||||
},
|
||||
},
|
||||
]
|
||||
},
|
||||
{
|
||||
path: '/beforeLogin',
|
||||
name: 'BeforeLogin',
|
||||
title: 'beforeLogin',
|
||||
@ -81,13 +165,7 @@ export const constantRoutes = [
|
||||
component: () => import('@/views/homePage/wxDetailPage.vue'),
|
||||
hidden: true
|
||||
},
|
||||
{
|
||||
path: '/h5HomePage',
|
||||
name: 'H5HomePage',
|
||||
title: 'H5首页',
|
||||
component: () => import('@/views/H5/calculate/index.vue'),
|
||||
hidden: true,
|
||||
},
|
||||
|
||||
|
||||
{
|
||||
hidden: true, path: '/screen', name: 'screen', title: '可视化大屏', meta: {
|
||||
@ -890,7 +968,7 @@ export const asyncRoutes = [
|
||||
}
|
||||
]
|
||||
},
|
||||
// 工单管理 - 变为一级菜单
|
||||
// 工单管理 - 变为一级菜单
|
||||
{
|
||||
path: "/workOrderManagement",
|
||||
component: Layout,
|
||||
@ -1167,7 +1245,7 @@ export const asyncRoutes = [
|
||||
name: "menuMangement",
|
||||
meta: { title: "ncmatch菜单管理", fullPath: "/menuMangement/index" },
|
||||
},
|
||||
{
|
||||
{
|
||||
path: "productsServices",
|
||||
component: () => import("@/views/operation/productsServices/index.vue"),
|
||||
name: "productsServices",
|
||||
|
||||
@ -6,8 +6,83 @@ const userAgent = window.navigator.userAgent;
|
||||
// 判断是否为移动设备
|
||||
const isMobile = /Android|webOS|iPhone|iPad|iPod|BlackBerry|IEMobile|Opera Mini/i.test(userAgent);
|
||||
|
||||
// 如果是移动设备,添加移动端首页路由和根路径重定向
|
||||
if (isMobile) {
|
||||
console.log("检测到移动设备,添加移动端路由");
|
||||
|
||||
// 先添加根路径重定向到移动端首页
|
||||
constantRoutes.unshift({
|
||||
path: '/',
|
||||
redirect: '/h5HomePage',
|
||||
hidden: true
|
||||
});
|
||||
|
||||
// 添加移动端首页路由
|
||||
constantRoutes.push({
|
||||
path: '/h5HomePage',
|
||||
name: 'H5HomePage',
|
||||
title: 'H5首页',
|
||||
component: () => import('@/views/H5/index.vue'),
|
||||
hidden: true,
|
||||
redirect: "/h5HomePage/index",
|
||||
meta: { isMobile: true },
|
||||
children: [
|
||||
{
|
||||
path: "index",
|
||||
title: 'H5首页',
|
||||
component: () => import('@/views/H5/official/index.vue'),
|
||||
meta: {
|
||||
title: "H5首页",
|
||||
fullPath: "/h5HomePage/index",
|
||||
isMobile: true
|
||||
},
|
||||
},
|
||||
{
|
||||
path: "cloud",
|
||||
title: '云',
|
||||
component: () => import('@/views/H5/cloud/index.vue'),
|
||||
meta: {
|
||||
title: "云",
|
||||
fullPath: "/h5HomePage/cloud",
|
||||
isMobile: true
|
||||
},
|
||||
},
|
||||
{
|
||||
path: "calculate",
|
||||
title: '算',
|
||||
component: () => import('@/views/H5/calculate/index.vue'),
|
||||
meta: {
|
||||
title: "算",
|
||||
fullPath: "/h5HomePage/calculate",
|
||||
isMobile: true
|
||||
},
|
||||
},
|
||||
{
|
||||
path: "net",
|
||||
title: '网',
|
||||
component: () => import('@/views/H5/net/index.vue'),
|
||||
meta: {
|
||||
title: "网",
|
||||
fullPath: "/h5HomePage/net",
|
||||
isMobile: true
|
||||
},
|
||||
},
|
||||
{
|
||||
path: "use",
|
||||
title: '用',
|
||||
component: () => import('@/views/H5/use/index.vue'),
|
||||
meta: {
|
||||
title: "用",
|
||||
fullPath: "/h5HomePage/use",
|
||||
isMobile: true
|
||||
},
|
||||
},
|
||||
]
|
||||
});
|
||||
}
|
||||
|
||||
// 修复:更全面的路由过滤逻辑
|
||||
function filterAsyncRoutes(routes, permissions, userRoles = []) {
|
||||
function filterAsyncRoutes(routes, permissions, userRoles = [], deviceType = 'pc') {
|
||||
const res = [];
|
||||
|
||||
// 定义需要客户角色才能访问的路由
|
||||
@ -35,6 +110,14 @@ function filterAsyncRoutes(routes, permissions, userRoles = []) {
|
||||
return; // 跳过当前路由
|
||||
}
|
||||
|
||||
// 新增:根据设备类型过滤路由
|
||||
if (deviceType === 'mobile' && !(route.meta?.isMobile || route.meta?.isMobile === true)) {
|
||||
return; // 移动设备跳过非移动端路由
|
||||
}
|
||||
if (deviceType === 'pc' && route.meta?.isMobile === true) {
|
||||
return; // PC设备跳过移动端路由
|
||||
}
|
||||
|
||||
// 如果当前路由有权限,则加入结果
|
||||
if (hasPermission) {
|
||||
res.push(tmpRoute);
|
||||
@ -45,7 +128,7 @@ function filterAsyncRoutes(routes, permissions, userRoles = []) {
|
||||
}
|
||||
// 如果没有直接权限,但有子路由,递归处理子路由
|
||||
else if (tmpRoute.children) {
|
||||
const filteredChildren = filterAsyncRoutes(tmpRoute.children, permissions, userRoles);
|
||||
const filteredChildren = filterAsyncRoutes(tmpRoute.children, permissions, userRoles, deviceType);
|
||||
if (filteredChildren.length > 0) {
|
||||
tmpRoute.children = filteredChildren;
|
||||
res.push(tmpRoute); // 即使父路由本身没有权限,只要有子路由有权限,也要保留父路由
|
||||
@ -57,7 +140,7 @@ function filterAsyncRoutes(routes, permissions, userRoles = []) {
|
||||
}
|
||||
|
||||
// 新增:为普通用户添加订单管理和资源管理路由
|
||||
function addUserRoutes(routes, userType, orgType, userRoles = []) {
|
||||
function addUserRoutes(routes, userType, orgType, userRoles = [], deviceType = 'pc') {
|
||||
console.log("addUserRoutes - userType:", userType, "orgType:", orgType, "userRoles:", userRoles);
|
||||
|
||||
const userRoutes = [];
|
||||
@ -67,12 +150,13 @@ function addUserRoutes(routes, userType, orgType, userRoles = []) {
|
||||
const orderManagementRoute = routes.find(route => route.path === "/orderManagement");
|
||||
const resourceManagementRoute = routes.find(route => route.path === "/resourceManagement");
|
||||
|
||||
if (orderManagementRoute) {
|
||||
// 新增:根据设备类型过滤
|
||||
if (orderManagementRoute && (deviceType === 'pc' || orderManagementRoute.meta?.isMobile === true)) {
|
||||
console.log("添加订单管理路由");
|
||||
userRoutes.push(JSON.parse(JSON.stringify(orderManagementRoute))); // 深拷贝
|
||||
}
|
||||
|
||||
if (resourceManagementRoute) {
|
||||
if (resourceManagementRoute && (deviceType === 'pc' || resourceManagementRoute.meta?.isMobile === true)) {
|
||||
console.log("添加资源管理路由");
|
||||
userRoutes.push(JSON.parse(JSON.stringify(resourceManagementRoute))); // 深拷贝
|
||||
}
|
||||
@ -85,10 +169,10 @@ function addUserRoutes(routes, userType, orgType, userRoles = []) {
|
||||
routes.find(route => route.path === "/rechargeManagement"),
|
||||
routes.find(route => route.path === "/invoiceManagement"),
|
||||
routes.find(route => route.path === "/workOrderManagement")
|
||||
|
||||
].filter(route => {
|
||||
// 过滤掉undefined,并且只有客户角色才能看到这些路由
|
||||
return route && userRoles.includes('客户');
|
||||
return route && userRoles.includes('客户') &&
|
||||
(deviceType === 'pc' || route.meta?.isMobile === true);
|
||||
});
|
||||
|
||||
console.log("添加新的客户菜单路由:", newCustomerRoutes.map(r => r.path));
|
||||
@ -97,38 +181,11 @@ function addUserRoutes(routes, userType, orgType, userRoles = []) {
|
||||
return userRoutes;
|
||||
}
|
||||
|
||||
function filterRoutesMobile(routes) {
|
||||
return routes.filter(route => {
|
||||
if (route.children && route.children.length) {
|
||||
route.children = filterRoutesMobile(route.children);
|
||||
return route.children.length > 0;
|
||||
}
|
||||
if (route.meta?.isMobile || route.meta?.isMobile === true) {
|
||||
return true;
|
||||
} else {
|
||||
return false;
|
||||
}
|
||||
});
|
||||
}
|
||||
|
||||
function filterRoutesPc(routes) {
|
||||
return routes.filter(route => {
|
||||
if (route.children && route.children.length) {
|
||||
route.children = filterRoutesPc(route.children);
|
||||
return route.children.length > 0;
|
||||
}
|
||||
if (!route.meta?.isMobile || route.meta?.isMobile === false) {
|
||||
return true;
|
||||
} else {
|
||||
return false;
|
||||
}
|
||||
});
|
||||
}
|
||||
|
||||
const state = {
|
||||
routes: [],
|
||||
addRoutes: [],
|
||||
users: []
|
||||
users: [],
|
||||
isMobile: isMobile // 保存设备类型状态
|
||||
};
|
||||
|
||||
const mutations = {
|
||||
@ -136,11 +193,15 @@ const mutations = {
|
||||
console.log("MUTATION SET_ROUTES - received routes:", routes);
|
||||
state.addRoutes = routes;
|
||||
sessionStorage.setItem("routes", JSON.stringify(routes));
|
||||
// 将移动端首页路由也包含在内
|
||||
state.routes = constantRoutes.concat(routes);
|
||||
console.log("MUTATION SET_ROUTES - final state.routes:", state.routes);
|
||||
},
|
||||
SETUSERS: (state, user) => {
|
||||
state.users = user;
|
||||
},
|
||||
SET_DEVICE_TYPE: (state, isMobile) => {
|
||||
state.isMobile = isMobile;
|
||||
}
|
||||
};
|
||||
|
||||
@ -161,7 +222,7 @@ const actions = {
|
||||
* @param {Object} [params.user] - 用户信息对象
|
||||
* @returns {Promise<Array>} 解析后的动态路由数组
|
||||
*/
|
||||
generateRoutes({ commit, rootState }, params) {
|
||||
generateRoutes({ commit, rootState, state }, params) {
|
||||
console.log("ACTION generateRoutes - params:", params);
|
||||
return new Promise((resolve) => {
|
||||
let accessedRoutes;
|
||||
@ -176,10 +237,18 @@ const actions = {
|
||||
|
||||
console.log("用户类型:", userType, "orgType:", orgType);
|
||||
|
||||
// 确定设备类型
|
||||
const deviceType = state.isMobile ? 'mobile' : 'pc';
|
||||
console.log("设备类型:", deviceType);
|
||||
|
||||
// 修复:包含 orgType 为 2 和 3 的情况
|
||||
if (params.user && params.user.includes("admin") && orgType != 2 && orgType != 3) {
|
||||
// 管理员:只显示超级管理员菜单
|
||||
accessedRoutes = asyncRoutes.filter(item => item.path === '/superAdministrator');
|
||||
// 管理员:只显示超级管理员菜单(仅PC端)
|
||||
if (deviceType === 'pc') {
|
||||
accessedRoutes = asyncRoutes.filter(item => item.path === '/superAdministrator');
|
||||
} else {
|
||||
accessedRoutes = [];
|
||||
}
|
||||
} else {
|
||||
const auths = params.auths ? JSON.parse(JSON.stringify(params.auths)) : [];
|
||||
console.log("ACTION generateRoutes - auths:", auths);
|
||||
@ -195,8 +264,8 @@ const actions = {
|
||||
// 如果权限列表包含空路径,认为用户有所有权限
|
||||
accessedRoutes = asyncRoutes || [];
|
||||
} else {
|
||||
// 使用修复后的过滤函数,传入用户角色
|
||||
accessedRoutes = filterAsyncRoutes(asyncRoutes, auths, userRoles);
|
||||
// 使用修复后的过滤函数,传入用户角色和设备类型
|
||||
accessedRoutes = filterAsyncRoutes(asyncRoutes, auths, userRoles, deviceType);
|
||||
}
|
||||
} else {
|
||||
// 如果没有权限列表,不显示任何动态路由
|
||||
@ -205,7 +274,7 @@ const actions = {
|
||||
|
||||
// 新增:为普通用户添加订单管理和资源管理路由以及新的五个客户菜单
|
||||
console.log("为用户添加特定路由");
|
||||
const userSpecificRoutes = addUserRoutes(asyncRoutes, userType, orgType, userRoles);
|
||||
const userSpecificRoutes = addUserRoutes(asyncRoutes, userType, orgType, userRoles, deviceType);
|
||||
|
||||
// 确保不重复添加路由,同时检查角色权限
|
||||
userSpecificRoutes.forEach(route => {
|
||||
|
||||
@ -5,147 +5,235 @@
|
||||
开元云
|
||||
</div>
|
||||
|
||||
<!-- 供应商 -->
|
||||
<div v-if="cloudData.secMenu && cloudData.secMenu.length > 0" class="supplier">
|
||||
<div class="supplier-title">{{ cloudData.secMenu[0].secTitle }}</div>
|
||||
<!-- 搜索 -->
|
||||
<div class="search">
|
||||
<div class="search-box">
|
||||
<div class="input">
|
||||
<input
|
||||
type="text"
|
||||
placeholder="请输入产品名称"
|
||||
v-model="searchValue"
|
||||
@keyup.enter="handleSearch"
|
||||
/>
|
||||
</div>
|
||||
<div class="search-btn" @click="handleSearch">
|
||||
搜索
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<!-- 云产品 -->
|
||||
<!-- 搜索提示 -->
|
||||
<div v-if="isSearching && searchValue" class="search-tip">
|
||||
搜索关键词: "{{ searchValue }}"
|
||||
<span class="clear-search" @click="clearSearch">× 清空搜索</span>
|
||||
</div>
|
||||
|
||||
<!-- 供应商 - 只在非搜索模式显示 -->
|
||||
<div v-if="!isSearching && cloudData.secMenu && cloudData.secMenu.length > 0" class="supplier-container">
|
||||
<div v-for="(value, index) in cloudData.secMenu" :key="index" class="supplier" @click="selectSupplier(index)">
|
||||
<div class="supplier-title" :class="{ 'active': activeSupplierIndex === index }">
|
||||
{{ value.secTitle }}
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<!-- 产品 -->
|
||||
<div class="box">
|
||||
<!-- 循环所有分类下的产品 -->
|
||||
<template v-if="cloudData.secMenu && cloudData.secMenu.length > 0">
|
||||
<template v-for="secMenu in cloudData.secMenu">
|
||||
<template v-for="thrMenu in secMenu.thrMenu">
|
||||
<!-- 循环每个分类下的产品 -->
|
||||
<div
|
||||
v-for="product in thrMenu.value"
|
||||
:key="product.id"
|
||||
class="box-item"
|
||||
>
|
||||
<!-- 标题 -->
|
||||
<div class="item-tit">
|
||||
{{ product.name }}
|
||||
</div>
|
||||
<!-- 详情 -->
|
||||
<div class="item-detail">
|
||||
{{ product.description }}
|
||||
</div>
|
||||
<!-- 描述 -->
|
||||
<div class="item-desc">
|
||||
智算
|
||||
</div>
|
||||
<!-- 立即咨询 -->
|
||||
<div class="item-btn">
|
||||
<div class="btn">
|
||||
立即咨询
|
||||
</div>
|
||||
<!-- 搜索模式:显示搜索结果 -->
|
||||
<template v-if="isSearching && searchResults.length > 0">
|
||||
<div v-for="product in searchResults" :key="product.id" class="box-item">
|
||||
<div class="item-tit">
|
||||
{{ product.name }}
|
||||
</div>
|
||||
<div class="item-detail">
|
||||
{{ product.description }}
|
||||
</div>
|
||||
<div class="item-desc">
|
||||
智算
|
||||
</div>
|
||||
<div class="item-btn">
|
||||
<div class="btn" @click="goToDetail(product.id)">
|
||||
查看详情
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</template>
|
||||
|
||||
<!-- 搜索模式:无结果 -->
|
||||
<div v-else-if="isSearching && searchResults.length === 0" class="no-data">
|
||||
未找到与"{{ searchValue }}"相关的产品
|
||||
</div>
|
||||
|
||||
<!-- 正常模式:只显示当前选中的供应商的产品 -->
|
||||
<template v-else-if="!isSearching && cloudData.secMenu && cloudData.secMenu.length > 0 && activeSupplierIndex >= 0">
|
||||
<template v-for="thrMenu in cloudData.secMenu[activeSupplierIndex].thrMenu">
|
||||
<div v-for="product in thrMenu.value" :key="product.id" class="box-item">
|
||||
<div class="item-tit">
|
||||
{{ product.name }}
|
||||
</div>
|
||||
<div class="item-detail">
|
||||
{{ product.description }}
|
||||
</div>
|
||||
<div class="item-desc">
|
||||
智算
|
||||
</div>
|
||||
<div class="item-btn">
|
||||
<div class="btn" @click="goToDetail(product.id)">
|
||||
查看详情
|
||||
</div>
|
||||
</div>
|
||||
</template>
|
||||
</div>
|
||||
</template>
|
||||
</template>
|
||||
|
||||
<!-- 正常模式:无数据 -->
|
||||
<div v-else-if="!isSearching && (!cloudData.secMenu || cloudData.secMenu.length === 0)" class="no-data">
|
||||
暂无产品数据
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</template>
|
||||
|
||||
<script>
|
||||
import { reqNavList } from '@/api/H5/index'
|
||||
|
||||
export default {
|
||||
data() {
|
||||
return {
|
||||
cloudData: {},
|
||||
activeSupplierIndex: 0,
|
||||
searchValue: '',
|
||||
isSearching: false,
|
||||
searchResults: []
|
||||
}
|
||||
},
|
||||
created() {
|
||||
this.getCloudData()
|
||||
},
|
||||
methods: {
|
||||
async getCloudData() {
|
||||
const res = await reqNavList()
|
||||
if (res.status == true) {
|
||||
this.cloudData = res.data.product_service[1]
|
||||
console.log(this.cloudData);
|
||||
async getCloudData(keyword) {
|
||||
try {
|
||||
const params = {
|
||||
url_link: window.location.href,
|
||||
...(keyword && { keyword: keyword.trim() })
|
||||
}
|
||||
|
||||
const res = await reqNavList(params)
|
||||
if (res.status == true) {
|
||||
if (keyword) {
|
||||
// 搜索模式
|
||||
this.isSearching = true
|
||||
this.searchResults = Array.isArray(res.data) ? res.data : []
|
||||
} else {
|
||||
// 正常模式
|
||||
this.isSearching = false
|
||||
this.searchResults = []
|
||||
this.cloudData = res.data.product_service[1] || {}
|
||||
|
||||
if (this.cloudData.secMenu && this.cloudData.secMenu.length > 0) {
|
||||
this.activeSupplierIndex = 0
|
||||
}
|
||||
}
|
||||
}
|
||||
} catch (error) {
|
||||
console.error('获取数据失败:', error)
|
||||
this.isSearching = false
|
||||
this.searchResults = []
|
||||
}
|
||||
}
|
||||
},
|
||||
|
||||
// 处理搜索
|
||||
handleSearch() {
|
||||
const keyword = this.searchValue.trim()
|
||||
if (keyword) {
|
||||
this.getCloudData(keyword)
|
||||
} else {
|
||||
// 如果搜索框为空,返回正常模式
|
||||
this.clearSearch()
|
||||
}
|
||||
},
|
||||
|
||||
// 清空搜索
|
||||
clearSearch() {
|
||||
this.isSearching = false
|
||||
this.searchValue = ''
|
||||
this.searchResults = []
|
||||
this.getCloudData() // 重新加载正常数据
|
||||
},
|
||||
|
||||
// 选择供应商
|
||||
selectSupplier(index) {
|
||||
if (!this.isSearching) {
|
||||
this.activeSupplierIndex = index
|
||||
}
|
||||
},
|
||||
|
||||
// 跳转到详情页
|
||||
goToDetail(productId) {
|
||||
if (productId === '2113') {
|
||||
this.$router.push({
|
||||
path: '/h5HomePage/details',
|
||||
query: {
|
||||
id: productId
|
||||
}
|
||||
})
|
||||
} else {
|
||||
this.$router.push({
|
||||
path: '/h5HomePage/netDetail',
|
||||
query: {
|
||||
id: productId
|
||||
}
|
||||
})
|
||||
}
|
||||
},
|
||||
}
|
||||
}
|
||||
</script>
|
||||
|
||||
<style>
|
||||
html,
|
||||
body {
|
||||
html, body {
|
||||
height: 100%;
|
||||
overflow-y: auto;
|
||||
}
|
||||
</style>
|
||||
|
||||
<style lang="less" scoped>
|
||||
.top-tit {
|
||||
@import url('../less/all/index.less');
|
||||
|
||||
/* 搜索提示样式 */
|
||||
.search-tip {
|
||||
padding: 10px 20px;
|
||||
background-color: #f5f7fa;
|
||||
color: #666;
|
||||
font-size: 14px;
|
||||
display: flex;
|
||||
justify-content: center;
|
||||
background: linear-gradient(90deg, #275AFF 0%, #2EBDFA 100%);
|
||||
-webkit-background-clip: text;
|
||||
-webkit-text-fill-color: transparent;
|
||||
background-clip: text;
|
||||
font-size: .3rem;
|
||||
}
|
||||
|
||||
.supplier {
|
||||
|
||||
display: flex;
|
||||
padding: .22rem ;
|
||||
|
||||
.supplier-title {
|
||||
font-size: .2rem;
|
||||
color: #000;
|
||||
padding: .1rem .16rem;
|
||||
background-color: pink;
|
||||
border-radius: 0.08rem;
|
||||
}
|
||||
}
|
||||
|
||||
.box {
|
||||
width: 100%;
|
||||
display: flex;
|
||||
flex-wrap: wrap;
|
||||
justify-content: space-between;
|
||||
padding: 0 .3rem;
|
||||
.box-item {
|
||||
display: flex;
|
||||
width: 48%;
|
||||
flex-direction: column;
|
||||
align-items: self-start;
|
||||
border: .02rem solid #f0f0f0;
|
||||
border-radius: .2rem;
|
||||
padding: .1rem 0.1rem;
|
||||
margin: .34rem 0;
|
||||
.item-tit{
|
||||
font-size: .14rem;
|
||||
color: #000;
|
||||
}
|
||||
.item-detail{
|
||||
color: #737373;
|
||||
font-size: .12rem;
|
||||
margin: .26rem 0;
|
||||
}
|
||||
.item-desc{
|
||||
color: #acafb3;
|
||||
background-color: #e9edf2;
|
||||
font-size: .12rem;
|
||||
padding: .06rem .1rem;
|
||||
border-radius: .08rem;
|
||||
}
|
||||
.item-btn{
|
||||
width: 100%;
|
||||
display: flex;
|
||||
justify-content: flex-end;
|
||||
.btn{
|
||||
background-color: #1f70ff;
|
||||
color: #fff;
|
||||
padding: .05rem .1rem;
|
||||
border-radius: .1rem;
|
||||
font-size: 0.16rem;
|
||||
}
|
||||
}
|
||||
}
|
||||
align-items: center;
|
||||
border-bottom: 1px solid #e4e7ed;
|
||||
}
|
||||
|
||||
.clear-search {
|
||||
color: #409EFF;
|
||||
cursor: pointer;
|
||||
font-size: 12px;
|
||||
padding: 2px 8px;
|
||||
border-radius: 3px;
|
||||
transition: all 0.3s;
|
||||
}
|
||||
|
||||
.clear-search:hover {
|
||||
background-color: #ecf5ff;
|
||||
color: #409EFF;
|
||||
}
|
||||
|
||||
/* 无数据样式 */
|
||||
.no-data {
|
||||
text-align: center;
|
||||
padding: 40px 20px;
|
||||
color: #909399;
|
||||
font-size: 14px;
|
||||
background-color: #f5f7fa;
|
||||
border-radius: 4px;
|
||||
margin: 20px;
|
||||
}
|
||||
</style>
|
||||
|
||||
|
||||
@ -5,146 +5,371 @@
|
||||
开元云
|
||||
</div>
|
||||
|
||||
<!-- 搜索框(完善功能) -->
|
||||
<div class="search">
|
||||
<div class="search-box">
|
||||
<div class="input">
|
||||
<input
|
||||
type="text"
|
||||
placeholder="请输入产品名称"
|
||||
v-model="keyWord"
|
||||
@keyup.enter="search"
|
||||
/>
|
||||
</div>
|
||||
<div class="search-btn" @click="search">
|
||||
搜索
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<!-- 供应商 -->
|
||||
<div v-if="cloudData.secMenu && cloudData.secMenu.length > 0" class="supplier">
|
||||
<div class="supplier-title">{{ cloudData.secMenu[0].secTitle }}</div>
|
||||
<div class="supplier-container" v-if="!isSearchMode">
|
||||
<div v-for="(value, index) in cloudData.secMenu" :key="index" class="supplier" @click="selectSupplier(index)">
|
||||
<div class="supplier-title" :class="{ 'active': activeSupplierIndex === index }">
|
||||
{{ value.secTitle }}
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<!-- 云产品 -->
|
||||
<div class="box">
|
||||
<!-- 循环所有分类下的产品 -->
|
||||
<template v-if="cloudData.secMenu && cloudData.secMenu.length > 0">
|
||||
<template v-for="secMenu in cloudData.secMenu">
|
||||
<template v-for="thrMenu in secMenu.thrMenu">
|
||||
<!-- 循环每个分类下的产品 -->
|
||||
<div
|
||||
v-for="product in thrMenu.value"
|
||||
:key="product.id"
|
||||
class="box-item"
|
||||
>
|
||||
<!-- 标题 -->
|
||||
<div class="item-tit">
|
||||
{{ product.name }}
|
||||
</div>
|
||||
<!-- 详情 -->
|
||||
<div class="item-detail">
|
||||
{{ product.description }}
|
||||
</div>
|
||||
<!-- 描述 -->
|
||||
<div class="item-desc">
|
||||
{{ product.label }}
|
||||
</div>
|
||||
<!-- 立即咨询 -->
|
||||
<div class="item-btn">
|
||||
<div class="btn">
|
||||
立即咨询
|
||||
</div>
|
||||
<!-- 无数据提示 -->
|
||||
<div v-if="showNoData" class="no-data">
|
||||
暂无相关产品数据
|
||||
</div>
|
||||
|
||||
<!-- 搜索模式:显示所有产品 -->
|
||||
<template v-else-if="isSearchMode && searchResults.length > 0">
|
||||
<div v-for="product in searchResults" :key="product.id" class="box-item">
|
||||
<!-- 标题 -->
|
||||
<div class="item-tit">
|
||||
{{ product.name }}
|
||||
</div>
|
||||
|
||||
<!-- 产品描述(如果有) -->
|
||||
<div class="item-detail" v-if="product.description">
|
||||
{{ product.description }}
|
||||
</div>
|
||||
|
||||
<!-- 供应商标签 -->
|
||||
<div class="item-desc" v-if="product.label">
|
||||
{{ product.label }}
|
||||
</div>
|
||||
|
||||
<!-- 立即咨询 -->
|
||||
<div class="item-btn">
|
||||
<div class="btn" @click="openConsultDialog(product, null)">
|
||||
立即咨询
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</template>
|
||||
|
||||
<!-- 正常模式:只显示当前选中的供应商的产品 -->
|
||||
<template v-else-if="!isSearchMode && activeSupplierIndex >= 0">
|
||||
<template v-for="thrMenu in cloudData.secMenu[activeSupplierIndex].thrMenu">
|
||||
<div v-for="product in thrMenu.value" :key="product.id" class="box-item">
|
||||
<!-- 标题 -->
|
||||
<div class="item-tit">
|
||||
{{ product.name }}
|
||||
</div>
|
||||
|
||||
<!-- 产品描述(如果有) -->
|
||||
<div class="item-detail" v-if="product.description">
|
||||
{{ product.description }}
|
||||
</div>
|
||||
|
||||
<!-- 供应商标签 -->
|
||||
<div class="item-desc" v-if="showProductDesc(product)">
|
||||
{{ getProductDesc(product) }}
|
||||
</div>
|
||||
|
||||
<!-- 立即咨询 -->
|
||||
<div class="item-btn">
|
||||
<div class="btn" @click="openConsultDialog(product, thrMenu)">
|
||||
立即咨询
|
||||
</div>
|
||||
</div>
|
||||
</template>
|
||||
</div>
|
||||
</template>
|
||||
</template>
|
||||
</div>
|
||||
|
||||
<!-- 产品咨询弹窗 -->
|
||||
<ProductConsultDialog :visible.sync="showConsultDialog" :platform-name="platformName" :qr-code="qrCode"
|
||||
:default-form-data="consultFormData" :submit-api="submitConsultApi" @success="handleConsultSuccess"
|
||||
@close="handleDialogClose" />
|
||||
</div>
|
||||
</template>
|
||||
|
||||
<script>
|
||||
import { reqNavList } from '@/api/H5/index'
|
||||
import ProductConsultDialog from '../components/H5_dialog/index.vue'
|
||||
import { reqProductConsult } from '@/api/H5/index'
|
||||
|
||||
export default {
|
||||
components: {
|
||||
ProductConsultDialog
|
||||
},
|
||||
|
||||
data() {
|
||||
return {
|
||||
cloudData: {},
|
||||
activeSupplierIndex: 0, // 默认选中第一个供应商
|
||||
keyWord: '',
|
||||
// 搜索相关
|
||||
isSearchMode: false,
|
||||
searchResults: [],
|
||||
// 咨询弹窗相关
|
||||
showConsultDialog: false,
|
||||
platformName: '开元云',
|
||||
qrCode: '',
|
||||
consultFormData: {
|
||||
content: '',
|
||||
custom_type: '1',
|
||||
name: '',
|
||||
phone: '',
|
||||
company: '',
|
||||
email: '',
|
||||
checked: false
|
||||
},
|
||||
currentProduct: null,
|
||||
currentCategory: null,
|
||||
searchTimer: null // 防抖定时器
|
||||
}
|
||||
},
|
||||
created() {
|
||||
this.getCloudData()
|
||||
},
|
||||
methods: {
|
||||
async getCloudData() {
|
||||
const res = await reqNavList()
|
||||
if (res.status == true) {
|
||||
this.cloudData = res.data.product_service[0]
|
||||
console.log(this.cloudData);
|
||||
computed: {
|
||||
// 当前选中的供应商标题
|
||||
currentSupplierTitle() {
|
||||
if (this.cloudData.secMenu && this.cloudData.secMenu[this.activeSupplierIndex]) {
|
||||
return this.cloudData.secMenu[this.activeSupplierIndex].secTitle
|
||||
}
|
||||
return ''
|
||||
},
|
||||
// 显示无数据提示
|
||||
showNoData() {
|
||||
if (this.isSearchMode) {
|
||||
return this.searchResults.length === 0
|
||||
} else {
|
||||
return !this.cloudData.secMenu || this.cloudData.secMenu.length === 0
|
||||
}
|
||||
}
|
||||
},
|
||||
methods: {
|
||||
// 防抖处理:避免频繁请求
|
||||
debounce(func, delay = 500) {
|
||||
return (...args) => {
|
||||
if (this.searchTimer) clearTimeout(this.searchTimer)
|
||||
this.searchTimer = setTimeout(() => {
|
||||
func.apply(this, args)
|
||||
}, delay)
|
||||
}
|
||||
},
|
||||
|
||||
// 判断是否显示供应商标签
|
||||
showProductDesc(product) {
|
||||
// 如果是百度云且有label字段
|
||||
if (this.currentSupplierTitle === '百度云' && product.label) {
|
||||
return true
|
||||
}
|
||||
|
||||
// 如果是阿里云,总是显示(因为阿里云数据中没有label字段)
|
||||
if (this.currentSupplierTitle === '阿里云') {
|
||||
return true
|
||||
}
|
||||
|
||||
// 其他情况
|
||||
return false
|
||||
},
|
||||
|
||||
// 获取供应商标签内容
|
||||
getProductDesc(product) {
|
||||
// 获取当前供应商标题
|
||||
const supplierTitle = this.currentSupplierTitle
|
||||
|
||||
// 处理百度云
|
||||
if (supplierTitle === '百度云') {
|
||||
// 如果product有ssecTitle字段(虽然你的数据中没有),使用它
|
||||
if (product.ssecTitle && product.ssecTitle.trim() !== '') {
|
||||
return product.ssecTitle
|
||||
}
|
||||
// 否则使用label字段
|
||||
return product.label || '百度云'
|
||||
}
|
||||
|
||||
// 处理阿里云 - 阿里云数据中没有ssecTitle和label字段,所以直接显示供应商名称
|
||||
if (supplierTitle === '阿里云') {
|
||||
// 如果阿里云的数据结构中有ssecTitle字段,使用它
|
||||
if (product.ssecTitle && product.ssecTitle.trim() !== '') {
|
||||
return product.ssecTitle
|
||||
}
|
||||
// 如果阿里云的数据结构中有label字段,使用它
|
||||
if (product.label && product.label.trim() !== '') {
|
||||
return product.label
|
||||
}
|
||||
// 否则显示"阿里云"
|
||||
return '阿里云'
|
||||
}
|
||||
|
||||
// 默认返回供应商标题
|
||||
return supplierTitle
|
||||
},
|
||||
|
||||
// 获取云数据(支持接收keyword参数)
|
||||
async getCloudData(keyword = '') {
|
||||
if (keyword) {
|
||||
this.keyWord = keyword
|
||||
}
|
||||
|
||||
try {
|
||||
const res = await reqNavList({
|
||||
url_link: window.location.href,
|
||||
keyword: this.keyWord.trim() // 去除首尾空格,避免空字符请求
|
||||
})
|
||||
|
||||
if (res.status == true) {
|
||||
// 判断是搜索模式还是正常模式
|
||||
if (this.keyWord.trim() && Array.isArray(res.data)) {
|
||||
// 搜索模式:返回的是数组
|
||||
this.isSearchMode = true
|
||||
this.searchResults = res.data
|
||||
console.log('搜索模式数据:', this.searchResults)
|
||||
} else {
|
||||
// 正常模式:返回的是嵌套结构
|
||||
this.isSearchMode = false
|
||||
this.searchResults = []
|
||||
this.cloudData = res.data.product_service[0] || {}
|
||||
console.log('正常模式数据:', this.cloudData)
|
||||
|
||||
// 确保有数据时重置选中第一个供应商
|
||||
if (this.cloudData.secMenu && this.cloudData.secMenu.length > 0) {
|
||||
this.activeSupplierIndex = 0
|
||||
} else {
|
||||
this.activeSupplierIndex = -1
|
||||
}
|
||||
}
|
||||
}
|
||||
} catch (error) {
|
||||
console.error('获取数据失败:', error)
|
||||
}
|
||||
},
|
||||
|
||||
// 搜索方法(绑定防抖)
|
||||
search: function() {
|
||||
// 调用防抖后的获取数据方法
|
||||
this.debounce(this.getCloudData)(this.keyWord)
|
||||
},
|
||||
|
||||
// 选择供应商(不允许取消选中)
|
||||
selectSupplier(index) {
|
||||
this.activeSupplierIndex = index
|
||||
},
|
||||
|
||||
// 打开咨询弹窗
|
||||
openConsultDialog(product, category) {
|
||||
this.currentProduct = product
|
||||
this.currentCategory = category
|
||||
|
||||
// 设置咨询表单的预填内容
|
||||
let content = `我想咨询关于【${product.name}】的产品信息`
|
||||
if (product.description) {
|
||||
content += ` - ${product.description}`
|
||||
}
|
||||
|
||||
this.consultFormData = {
|
||||
...this.consultFormData,
|
||||
content: content
|
||||
}
|
||||
|
||||
this.showConsultDialog = true
|
||||
},
|
||||
|
||||
// 提交咨询API
|
||||
async submitConsultApi(data) {
|
||||
// 如果有额外的产品信息,可以添加到提交数据中
|
||||
const submitData = {
|
||||
...data,
|
||||
product_name: this.currentProduct?.name || '',
|
||||
product_description: this.currentProduct?.description || '',
|
||||
product_label: this.currentProduct?.label || '',
|
||||
product_category: this.currentCategory?.thrTitle || '',
|
||||
supplier_name: this.isSearchMode ? '搜索产品' : (this.cloudData.secMenu[this.activeSupplierIndex]?.secTitle || ''),
|
||||
page_type: this.isSearchMode ? 'search_result' : 'product_list'
|
||||
}
|
||||
|
||||
return await reqProductConsult(submitData)
|
||||
},
|
||||
|
||||
// 咨询成功回调
|
||||
handleConsultSuccess(response) {
|
||||
console.log('咨询提交成功:', response)
|
||||
this.$message.success('咨询提交成功,我们将尽快联系您!')
|
||||
},
|
||||
|
||||
// 弹窗关闭回调
|
||||
handleDialogClose() {
|
||||
this.currentProduct = null
|
||||
this.currentCategory = null
|
||||
// 重置表单数据
|
||||
this.consultFormData = {
|
||||
content: '',
|
||||
custom_type: '1',
|
||||
name: '',
|
||||
phone: '',
|
||||
company: '',
|
||||
email: '',
|
||||
checked: false
|
||||
}
|
||||
},
|
||||
|
||||
// 清空搜索
|
||||
clearSearch() {
|
||||
this.keyWord = ''
|
||||
this.isSearchMode = false
|
||||
this.searchResults = []
|
||||
this.getCloudData()
|
||||
}
|
||||
},
|
||||
// 销毁时清除定时器
|
||||
beforeDestroy() {
|
||||
if (this.searchTimer) clearTimeout(this.searchTimer)
|
||||
}
|
||||
}
|
||||
</script>
|
||||
|
||||
<style>
|
||||
html,
|
||||
body {
|
||||
height: 100%;
|
||||
overflow-y: auto;
|
||||
}
|
||||
html,
|
||||
body {
|
||||
height: 100%;
|
||||
overflow-y: auto;
|
||||
}
|
||||
</style>
|
||||
<style lang="less" scoped>
|
||||
.top-tit {
|
||||
display: flex;
|
||||
justify-content: center;
|
||||
background: linear-gradient(90deg, #275AFF 0%, #2EBDFA 100%);
|
||||
-webkit-background-clip: text;
|
||||
-webkit-text-fill-color: transparent;
|
||||
background-clip: text;
|
||||
font-size: .3rem;
|
||||
}
|
||||
@import url('../less/cloud/cloud.less');
|
||||
|
||||
.supplier {
|
||||
// 新增无数据样式
|
||||
.no-data {
|
||||
text-align: center;
|
||||
padding: 40px 0;
|
||||
color: #999;
|
||||
font-size: 14px;
|
||||
}
|
||||
|
||||
display: flex;
|
||||
padding: .22rem ;
|
||||
// 搜索模式提示
|
||||
.search-mode-tip {
|
||||
text-align: center;
|
||||
padding: 10px 0;
|
||||
color: #666;
|
||||
font-size: 14px;
|
||||
|
||||
.supplier-title {
|
||||
font-size: .2rem;
|
||||
color: #000;
|
||||
padding: .1rem .16rem;
|
||||
background-color: pink;
|
||||
border-radius: 0.08rem;
|
||||
}
|
||||
}
|
||||
|
||||
.box {
|
||||
width: 100%;
|
||||
display: flex;
|
||||
flex-wrap: wrap;
|
||||
justify-content: space-between;
|
||||
padding: 0 .3rem;
|
||||
.box-item {
|
||||
display: flex;
|
||||
width: 48%;
|
||||
flex-direction: column;
|
||||
align-items: self-start;
|
||||
border: .02rem solid #f0f0f0;
|
||||
border-radius: .2rem;
|
||||
padding: .1rem 0.1rem;
|
||||
margin: .34rem 0;
|
||||
.item-tit{
|
||||
font-size: .14rem;
|
||||
color: #000;
|
||||
}
|
||||
.item-detail{
|
||||
color: #737373;
|
||||
font-size: .12rem;
|
||||
margin: .26rem 0;
|
||||
}
|
||||
.item-desc{
|
||||
color: #acafb3;
|
||||
background-color: #e9edf2;
|
||||
font-size: .12rem;
|
||||
padding: .06rem .1rem;
|
||||
border-radius: .08rem;
|
||||
}
|
||||
.item-btn{
|
||||
width: 100%;
|
||||
display: flex;
|
||||
justify-content: flex-end;
|
||||
.btn{
|
||||
background-color: #1f70ff;
|
||||
color: #fff;
|
||||
padding: .05rem .1rem;
|
||||
border-radius: .1rem;
|
||||
font-size: 0.16rem;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
.clear-btn {
|
||||
color: #409EFF;
|
||||
text-decoration: underline;
|
||||
cursor: pointer;
|
||||
margin-left: 10px;
|
||||
}
|
||||
}
|
||||
</style>
|
||||
|
||||
471
f/web-kboss/src/views/H5/components/H5_dialog/index.vue
Normal file
@ -0,0 +1,471 @@
|
||||
<template>
|
||||
<el-dialog
|
||||
:title="title"
|
||||
:visible.sync="dialogVisible"
|
||||
:width="responsiveWidth"
|
||||
:center="center"
|
||||
:top="responsiveTop"
|
||||
@close="handleClose"
|
||||
custom-class="product-consult-dialog"
|
||||
:modal-append-to-body="false"
|
||||
:close-on-click-modal="false"
|
||||
>
|
||||
<!-- 头部提示 -->
|
||||
<div class="dialog-tit">
|
||||
<div class="pc-tip">
|
||||
<i class="el-icon-warning-outline"></i>
|
||||
<span>如需购买资源请移步PC端哦~</span>
|
||||
</div>
|
||||
|
||||
<div class="url_box">
|
||||
<div class="url-container" @mouseenter="showTooltip = true" @mouseleave="showTooltip = false">
|
||||
官网地址:
|
||||
<span class="url" @click="copyUrl" :class="{ 'copied': isCopied }">
|
||||
https://www.opencomputing.cn
|
||||
</span>
|
||||
<div v-if="showTooltip && !isCopied" class="tooltip" :class="{ 'tooltip-visible': showTooltip }">
|
||||
点击复制链接
|
||||
</div>
|
||||
</div>
|
||||
<div class="url_btn">
|
||||
<span class="copy-hint">{{ isCopied ? '✓ 已复制' : '点击复制' }}</span>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<!-- 表单区域 -->
|
||||
<el-form ref="ruleForm" :rules="rules" label-position="top" :model="formData" :disabled="loading">
|
||||
<el-form-item label="需求描述">
|
||||
<el-input
|
||||
:autosize="{ minRows: 6, maxRows: 6 }"
|
||||
type="textarea"
|
||||
v-model="formData.content"
|
||||
placeholder="请输入您的具体需求"
|
||||
resize="none"
|
||||
@focus="handleInputFocus"
|
||||
></el-input>
|
||||
</el-form-item>
|
||||
|
||||
<el-form-item label="客户类型">
|
||||
<el-radio v-model="formData.custom_type" label="1">企业</el-radio>
|
||||
<el-radio v-model="formData.custom_type" label="0">个人</el-radio>
|
||||
</el-form-item>
|
||||
|
||||
<el-form-item prop="name" label="联系人姓名">
|
||||
<el-input
|
||||
v-model="formData.name"
|
||||
placeholder="请输入联系人姓名"
|
||||
maxlength="20"
|
||||
@focus="handleInputFocus"
|
||||
></el-input>
|
||||
</el-form-item>
|
||||
|
||||
<el-form-item prop="phone" label="联系人手机">
|
||||
<el-input
|
||||
v-model="formData.phone"
|
||||
placeholder="请输入联系人手机"
|
||||
type="tel"
|
||||
maxlength="11"
|
||||
@focus="handleInputFocus"
|
||||
></el-input>
|
||||
</el-form-item>
|
||||
|
||||
<el-form-item v-show="formData.custom_type === '1'" label="公司名称">
|
||||
<el-input
|
||||
v-model="formData.company"
|
||||
placeholder="请输入公司名称"
|
||||
maxlength="50"
|
||||
@focus="handleInputFocus"
|
||||
></el-input>
|
||||
</el-form-item>
|
||||
|
||||
<el-form-item label="联系人邮箱">
|
||||
<el-input
|
||||
v-model="formData.email"
|
||||
placeholder="请输入联系人邮箱"
|
||||
type="email"
|
||||
maxlength="50"
|
||||
@focus="handleInputFocus"
|
||||
></el-input>
|
||||
</el-form-item>
|
||||
</el-form>
|
||||
|
||||
<!-- 协议勾选 -->
|
||||
<el-checkbox v-model="formData.checked" class="agreement-checkbox">
|
||||
<div class="agreement-text">
|
||||
<p class="check-tit">
|
||||
勾选表示:您同意<span v-if="platformName">{{ platformName }}</span>及其授权的合作伙伴通过您填写的联系方式联系您,
|
||||
</p>
|
||||
<p class="check-tit">
|
||||
且数据仅用于与您沟通。当您注销平台账号后,您的数据会被销毁。
|
||||
</p>
|
||||
</div>
|
||||
</el-checkbox>
|
||||
|
||||
<!-- 二维码区域(可选) -->
|
||||
<div v-if="qrCode" class="qrcode-section">
|
||||
<img :src="qrCode" alt="客服二维码" />
|
||||
<span>扫码联系客服</span>
|
||||
</div>
|
||||
|
||||
<!-- 底部按钮 -->
|
||||
<span slot="footer" class="dialog-footer">
|
||||
<el-button type="primary" :loading="loading" @click="handleSubmit">
|
||||
提 交
|
||||
</el-button>
|
||||
</span>
|
||||
</el-dialog>
|
||||
</template>
|
||||
|
||||
<script>
|
||||
import { reqProductConsult } from '@/api/H5/index.js'
|
||||
|
||||
export default {
|
||||
name: 'ProductConsultDialog',
|
||||
|
||||
props: {
|
||||
// 控制弹窗显示
|
||||
visible: {
|
||||
type: Boolean,
|
||||
default: false
|
||||
},
|
||||
|
||||
// 弹窗标题
|
||||
title: {
|
||||
type: String,
|
||||
default: '产品咨询'
|
||||
},
|
||||
|
||||
// 弹窗宽度(使用响应式默认值)
|
||||
width: {
|
||||
type: String,
|
||||
default: ''
|
||||
},
|
||||
|
||||
// 弹窗位置
|
||||
top: {
|
||||
type: String,
|
||||
default: ''
|
||||
},
|
||||
|
||||
// 是否居中
|
||||
center: {
|
||||
type: Boolean,
|
||||
default: true
|
||||
},
|
||||
|
||||
// 平台名称(用于协议文本)
|
||||
platformName: {
|
||||
type: String,
|
||||
default: ''
|
||||
},
|
||||
|
||||
// 客服二维码
|
||||
qrCode: {
|
||||
type: String,
|
||||
default: ''
|
||||
},
|
||||
|
||||
// 提交接口函数(可自定义)
|
||||
submitApi: {
|
||||
type: Function,
|
||||
default: null
|
||||
},
|
||||
|
||||
// 当前页面URL
|
||||
currentUrl: {
|
||||
type: String,
|
||||
default: ''
|
||||
},
|
||||
|
||||
// 默认表单数据
|
||||
defaultFormData: {
|
||||
type: Object,
|
||||
default: () => ({
|
||||
content: '',
|
||||
custom_type: '1',
|
||||
name: '',
|
||||
phone: '',
|
||||
company: '',
|
||||
email: '',
|
||||
checked: false
|
||||
})
|
||||
}
|
||||
},
|
||||
|
||||
data() {
|
||||
// 手机号验证规则
|
||||
const validatePhone = (rule, value, callback) => {
|
||||
if (!value) {
|
||||
callback(new Error('请输入手机号'))
|
||||
} else if (!/^1[3-9]\d{9}$/.test(value)) {
|
||||
callback(new Error('请输入正确的手机号码'))
|
||||
} else {
|
||||
callback()
|
||||
}
|
||||
}
|
||||
|
||||
return {
|
||||
loading: false,
|
||||
rules: {
|
||||
name: [
|
||||
{ required: true, message: '请输入姓名', trigger: 'blur' },
|
||||
{ max: 20, message: '姓名不能超过20个字符', trigger: 'blur' }
|
||||
],
|
||||
phone: [
|
||||
{ required: true, validator: validatePhone, trigger: 'blur' }
|
||||
],
|
||||
email: [
|
||||
{ type: 'email', message: '请输入正确的邮箱地址', trigger: 'blur' }
|
||||
],
|
||||
content: [
|
||||
{ required: true, message: '请输入需求描述', trigger: 'blur' },
|
||||
{ min: 10, message: '需求描述至少10个字符', trigger: 'blur' },
|
||||
{ max: 500, message: '需求描述不能超过500个字符', trigger: 'blur' }
|
||||
]
|
||||
},
|
||||
formData: { ...this.defaultFormData },
|
||||
showTooltip: false,
|
||||
isCopied: false,
|
||||
copyTimer: null,
|
||||
originalOverflow: '' // 保存原始overflow样式
|
||||
}
|
||||
},
|
||||
|
||||
computed: {
|
||||
// 控制弹窗显示的计算属性
|
||||
dialogVisible: {
|
||||
get() {
|
||||
return this.visible
|
||||
},
|
||||
set(value) {
|
||||
this.$emit('update:visible', value)
|
||||
}
|
||||
},
|
||||
|
||||
// 响应式宽度计算
|
||||
responsiveWidth() {
|
||||
if (this.width) return this.width
|
||||
|
||||
const screenWidth = window.innerWidth || document.documentElement.clientWidth
|
||||
if (screenWidth <= 750) {
|
||||
return '90%' // 移动端
|
||||
} else if (screenWidth <= 1200) {
|
||||
return '70%' // 平板
|
||||
} else {
|
||||
return '40rem' // 桌面端
|
||||
}
|
||||
},
|
||||
|
||||
// 响应式位置计算
|
||||
responsiveTop() {
|
||||
if (this.top) return this.top
|
||||
|
||||
const screenHeight = window.innerHeight || document.documentElement.clientHeight
|
||||
if (screenHeight <= 667) {
|
||||
return '10vh' // 小屏幕
|
||||
} else {
|
||||
return '15vh' // 正常屏幕
|
||||
}
|
||||
}
|
||||
},
|
||||
|
||||
watch: {
|
||||
// 监听visible变化
|
||||
visible: {
|
||||
immediate: true,
|
||||
handler(newVal) {
|
||||
if (newVal) {
|
||||
this.resetForm()
|
||||
// 弹窗打开时禁止背景滚动
|
||||
this.disableBodyScroll()
|
||||
} else {
|
||||
// 弹窗关闭时恢复背景滚动
|
||||
this.enableBodyScroll()
|
||||
}
|
||||
}
|
||||
},
|
||||
|
||||
// 监听defaultFormData变化
|
||||
defaultFormData: {
|
||||
deep: true,
|
||||
handler(newVal) {
|
||||
this.formData = { ...newVal }
|
||||
}
|
||||
}
|
||||
},
|
||||
|
||||
methods: {
|
||||
// 禁止背景滚动
|
||||
disableBodyScroll() {
|
||||
const body = document.body
|
||||
this.originalOverflow = body.style.overflow
|
||||
body.style.overflow = 'hidden'
|
||||
},
|
||||
|
||||
// 恢复背景滚动
|
||||
enableBodyScroll() {
|
||||
const body = document.body
|
||||
body.style.overflow = this.originalOverflow || ''
|
||||
},
|
||||
|
||||
// 处理输入框获得焦点(移动端优化)
|
||||
handleInputFocus() {
|
||||
// 移动端优化:确保输入框可见
|
||||
if (window.innerWidth <= 750) {
|
||||
setTimeout(() => {
|
||||
const activeElement = document.activeElement
|
||||
if (activeElement && activeElement.scrollIntoView) {
|
||||
activeElement.scrollIntoView({
|
||||
behavior: 'smooth',
|
||||
block: 'center'
|
||||
})
|
||||
}
|
||||
}, 300)
|
||||
}
|
||||
},
|
||||
|
||||
// 复制URL到剪贴板
|
||||
async copyUrl() {
|
||||
const urlToCopy = 'https://www.opencomputing.cn'
|
||||
|
||||
try {
|
||||
if (navigator.clipboard && window.isSecureContext) {
|
||||
await navigator.clipboard.writeText(urlToCopy)
|
||||
} else {
|
||||
// 使用document.execCommand作为备选
|
||||
const textArea = document.createElement('textarea')
|
||||
textArea.value = urlToCopy
|
||||
textArea.style.position = 'fixed'
|
||||
textArea.style.left = '-999999px'
|
||||
textArea.style.top = '-999999px'
|
||||
document.body.appendChild(textArea)
|
||||
textArea.focus()
|
||||
textArea.select()
|
||||
document.execCommand('copy')
|
||||
document.body.removeChild(textArea)
|
||||
}
|
||||
|
||||
this.handleCopySuccess()
|
||||
} catch (err) {
|
||||
console.error('复制失败:', err)
|
||||
this.$message.error('复制失败,请手动复制链接')
|
||||
}
|
||||
},
|
||||
|
||||
// 处理复制成功
|
||||
handleCopySuccess() {
|
||||
this.$message.success('链接已复制到剪贴板')
|
||||
this.isCopied = true
|
||||
|
||||
// 清除之前的定时器
|
||||
if (this.copyTimer) {
|
||||
clearTimeout(this.copyTimer)
|
||||
}
|
||||
|
||||
// 3秒后重置复制状态
|
||||
this.copyTimer = setTimeout(() => {
|
||||
this.isCopied = false
|
||||
}, 3000)
|
||||
|
||||
this.showTooltip = false
|
||||
},
|
||||
|
||||
// 重置表单
|
||||
resetForm() {
|
||||
this.formData = {
|
||||
content: '',
|
||||
custom_type: '1',
|
||||
name: '',
|
||||
phone: '',
|
||||
company: '',
|
||||
email: '',
|
||||
checked: false,
|
||||
...this.defaultFormData
|
||||
}
|
||||
|
||||
// 清除表单验证
|
||||
if (this.$refs.ruleForm) {
|
||||
this.$refs.ruleForm.clearValidate()
|
||||
}
|
||||
},
|
||||
|
||||
// 关闭弹窗
|
||||
handleClose() {
|
||||
this.dialogVisible = false
|
||||
this.$emit('close')
|
||||
},
|
||||
|
||||
// 提交表单
|
||||
handleSubmit() {
|
||||
// 验证是否勾选协议
|
||||
if (!this.formData.checked) {
|
||||
this.$message.warning('请勾选同意协议后再提交!')
|
||||
return
|
||||
}
|
||||
|
||||
// 验证表单
|
||||
this.$refs.ruleForm.validate(valid => {
|
||||
if (valid) {
|
||||
this.submitForm()
|
||||
} else {
|
||||
this.$message.error('请完善表单信息')
|
||||
}
|
||||
})
|
||||
},
|
||||
|
||||
// 提交表单数据
|
||||
async submitForm() {
|
||||
this.loading = true
|
||||
|
||||
try {
|
||||
const submitData = {
|
||||
...this.formData,
|
||||
url_link: this.currentUrl || window.location.href,
|
||||
submit_time: new Date().toISOString()
|
||||
}
|
||||
|
||||
let response
|
||||
|
||||
// 如果有自定义提交函数,使用自定义函数
|
||||
if (this.submitApi) {
|
||||
response = await this.submitApi(submitData)
|
||||
} else {
|
||||
// 否则使用默认的reqProductConsult
|
||||
response = await reqProductConsult(submitData)
|
||||
}
|
||||
this.handleResponse(response)
|
||||
} catch (error) {
|
||||
console.error('提交咨询失败:', error)
|
||||
this.$message.error('提交失败,请稍后再试!')
|
||||
} finally {
|
||||
this.loading = false
|
||||
}
|
||||
},
|
||||
|
||||
handleResponse(response) {
|
||||
// 根据你的API响应结构,status为true表示成功
|
||||
if (response && response.status === 'true') {
|
||||
this.handleClose()
|
||||
|
||||
this.$message.success('提交成功')
|
||||
} else {
|
||||
this.$message.error('提交失败,请稍后再试!')
|
||||
}
|
||||
}
|
||||
},
|
||||
|
||||
beforeDestroy() {
|
||||
// 清除定时器
|
||||
if (this.copyTimer) {
|
||||
clearTimeout(this.copyTimer)
|
||||
}
|
||||
// 恢复背景滚动
|
||||
this.enableBodyScroll()
|
||||
}
|
||||
}
|
||||
</script>
|
||||
|
||||
<style scoped lang="less">
|
||||
@import url(../../less/dialog/index.less);
|
||||
</style>
|
||||
481
f/web-kboss/src/views/H5/components/footer/footer.vue
Normal file
@ -0,0 +1,481 @@
|
||||
<template>
|
||||
<div>
|
||||
|
||||
|
||||
<!-- footer部分 -->
|
||||
<div class="footer">
|
||||
<div class="footer-content">
|
||||
<!-- 顶部信息 -->
|
||||
<div class="footer-center">
|
||||
<div class="footer-top">
|
||||
<div class="logo-footer">
|
||||
<img :src="logoImg" alt="公司logo" v-if="logoImg">
|
||||
</div>
|
||||
</div>
|
||||
<div class="center">
|
||||
<div class="contact-item">
|
||||
<i class="iconfont icon-dizhi"></i>
|
||||
<span class="label">地址:</span>
|
||||
<span class="value">{{ address }}</span>
|
||||
</div>
|
||||
|
||||
<div class="contact-item">
|
||||
<i class="iconfont icon-dianhua"></i>
|
||||
<span class="label">电话:</span>
|
||||
<div class="phone-numbers">
|
||||
<a href="tel:400-6150805" class="phone-link">400-6150805</a>
|
||||
<span class="phone-separator">/</span>
|
||||
<a href="tel:010-65917875" class="phone-link">010-65917875</a>
|
||||
</div>
|
||||
</div>
|
||||
<div class="contact-item">
|
||||
<i class="iconfont icon-youxiang"></i>
|
||||
<span class="label">邮箱:</span>
|
||||
<a href="mailto:Open-computing@kaiyuancloud.cn" class="email-link">
|
||||
Open-computing@kaiyuancloud.cn
|
||||
</a>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="mobile-qr">
|
||||
<div class="qr-item">
|
||||
<div class="qr-code">
|
||||
<img src="@/assets/kyy/kyy公众号.jpg" alt="微信客服二维码">
|
||||
</div>
|
||||
<span class="qr-desc">扫描关注二维码</span>
|
||||
</div>
|
||||
<div class="qr-item">
|
||||
<div class="qr-code">
|
||||
<img src="@/assets/kyy/客服wechat.png" alt="微信客服二维码">
|
||||
</div>
|
||||
<span class="qr-desc">微信客服</span>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<!-- 备案信息 -->
|
||||
<!-- <div class="footer-bottom">
|
||||
<div class="icp-info">
|
||||
<div class="icp-item">
|
||||
<span class="icp-text">ICP备案号:</span>
|
||||
<span class="icp-number">{{ ICP }}</span>
|
||||
</div>
|
||||
<div class="copyright">
|
||||
版权所有 © kaiyuanyun 2023
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="record-info">
|
||||
<div class="police-record">
|
||||
<img src="@/image/login/policeInsignia/policeInsignia.png" alt="公安备案图标" class="police-icon">
|
||||
<a href="https://beian.mps.gov.cn/#/query/webSearch?code=11010502054007" rel="noreferrer" target="_blank"
|
||||
class="police-link">
|
||||
京公网安备 11010502054007号
|
||||
</a>
|
||||
</div>
|
||||
<div class="license-record">
|
||||
<router-link tag="a" target="_blank" class="license-link" :to="{ name: 'homePageImage' }">
|
||||
经营许可证:京B2-20232313
|
||||
</router-link>
|
||||
</div>
|
||||
</div>
|
||||
</div> -->
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</template>
|
||||
|
||||
<script>
|
||||
import { getLogoAPI } from "@/api/login"
|
||||
|
||||
export default {
|
||||
data() {
|
||||
return {
|
||||
|
||||
// 公司信息
|
||||
logoImg: require("@/assets/logo/colorLogo.png"),
|
||||
logoText: "开元云(北京)科技有限公司",
|
||||
url: window.location.href,
|
||||
photosUrl: [],
|
||||
ICP: "京ICP备2022001945号-1",
|
||||
address: "农业展览馆13号瑞辰国际中心518B(团结湖地铁站c东南口步行420米)",
|
||||
}
|
||||
},
|
||||
|
||||
computed: {
|
||||
duplicatedImages() {
|
||||
return [...this.images, ...this.images]
|
||||
}
|
||||
},
|
||||
|
||||
created() {
|
||||
this.getCompanyInfo()
|
||||
},
|
||||
|
||||
methods: {
|
||||
// 获取公司信息
|
||||
async getCompanyInfo() {
|
||||
const params = {
|
||||
url_link: this.parseURL(this.url)
|
||||
}
|
||||
|
||||
const res = await getLogoAPI(params)
|
||||
|
||||
if (res.status && res.data && res.data.length) {
|
||||
this.photosUrl = res.data[0]
|
||||
|
||||
if (this.photosUrl.orgname !== '业主机构') {
|
||||
this.logoImg = this.photosUrl.logo || this.logoImg
|
||||
this.logoText = this.photosUrl.orgname || this.logoText
|
||||
this.ICP = this.photosUrl.license_number || this.ICP
|
||||
this.address = this.photosUrl.address || this.address
|
||||
}
|
||||
} else {
|
||||
this.showErrorMessage(res.msg || '获取公司信息失败')
|
||||
}
|
||||
},
|
||||
|
||||
// 解析URL
|
||||
parseURL(url) {
|
||||
if (url.includes("#")) {
|
||||
return url.split("#")[0]
|
||||
}
|
||||
return url
|
||||
},
|
||||
|
||||
// 显示错误信息
|
||||
showErrorMessage(message) {
|
||||
this.$message({
|
||||
message,
|
||||
type: "error"
|
||||
})
|
||||
},
|
||||
}
|
||||
}
|
||||
</script>
|
||||
|
||||
<style lang="less" scoped>
|
||||
|
||||
@keyframes scroll {
|
||||
0% {
|
||||
transform: translateX(0);
|
||||
}
|
||||
|
||||
100% {
|
||||
transform: translateX(-50%);
|
||||
}
|
||||
}
|
||||
|
||||
/* Footer样式 */
|
||||
.footer {
|
||||
width: 100%;
|
||||
background: #f6f8fd;
|
||||
color: #333;
|
||||
padding: 0.4rem 0.2rem 0.4rem;
|
||||
position: relative;
|
||||
overflow: hidden;
|
||||
border-top: 1px solid #e8edf5;
|
||||
}
|
||||
|
||||
.footer-content {
|
||||
max-width: 12.8rem;
|
||||
margin: 0 auto;
|
||||
position: relative;
|
||||
}
|
||||
|
||||
/* 顶部信息区域 */
|
||||
.footer-top {
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
align-items: flex-start;
|
||||
}
|
||||
|
||||
.logo-footer {
|
||||
width: 2.4rem;
|
||||
height: .8rem;
|
||||
margin-bottom: 0.4rem;
|
||||
border-radius: 0.12rem;
|
||||
|
||||
img {
|
||||
width: 100%;
|
||||
height: 100%;
|
||||
}
|
||||
}
|
||||
|
||||
.footer-center {
|
||||
font-size: 0.24rem;
|
||||
padding: 0.3rem 0.2rem;
|
||||
background: #fff;
|
||||
border-radius: 0.16rem;
|
||||
box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
|
||||
border: 1px solid #eef2f9;
|
||||
width: 100%;
|
||||
|
||||
@media (min-width: 768px) {
|
||||
grid-template-columns: 1fr 1fr;
|
||||
gap: 0.3rem 0.6rem;
|
||||
}
|
||||
|
||||
.center {
|
||||
.contact-item {
|
||||
display: flex;
|
||||
align-items: flex-start;
|
||||
padding: 0.16rem 0.2rem;
|
||||
border-radius: 0.12rem;
|
||||
|
||||
.iconfont {
|
||||
width: 0.2rem;
|
||||
height: 0.2rem;
|
||||
margin-right: 0.12rem;
|
||||
margin-top: 0.02rem;
|
||||
color: #275AFF;
|
||||
flex-shrink: 0;
|
||||
font-size: 0.26rem;
|
||||
}
|
||||
|
||||
.label {
|
||||
color: #666;
|
||||
flex-shrink: 0;
|
||||
font-weight: 500;
|
||||
margin-right: 0.08rem;
|
||||
font-size: 0.24rem;
|
||||
}
|
||||
|
||||
.value {
|
||||
color: #444;
|
||||
flex: 1;
|
||||
line-height: 1.5;
|
||||
}
|
||||
|
||||
.phone-numbers {
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
gap: 0.08rem;
|
||||
|
||||
@media (min-width: 768px) {
|
||||
flex-direction: row;
|
||||
align-items: center;
|
||||
gap: 0.16rem;
|
||||
}
|
||||
}
|
||||
|
||||
.phone-link {
|
||||
color: #333;
|
||||
text-decoration: none;
|
||||
transition: all 0.3s;
|
||||
font-weight: 500;
|
||||
font-size: 0.208rem;
|
||||
|
||||
&:hover {
|
||||
color: #275AFF;
|
||||
text-decoration: underline;
|
||||
}
|
||||
}
|
||||
|
||||
.phone-separator {
|
||||
color: #999;
|
||||
font-weight: 300;
|
||||
|
||||
@media (max-width: 768px) {
|
||||
display: none;
|
||||
}
|
||||
}
|
||||
|
||||
.email-link {
|
||||
color: #275AFF;
|
||||
text-decoration: none;
|
||||
word-break: break-all;
|
||||
font-weight: 500;
|
||||
font-size: 0.208rem;
|
||||
|
||||
&:hover {
|
||||
color: #2ebdfa;
|
||||
text-decoration: underline;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
/* 移动端二维码 */
|
||||
.mobile-qr {
|
||||
display: flex;
|
||||
justify-content: center;
|
||||
width: 100%;
|
||||
margin-top: 0.4rem;
|
||||
|
||||
@media (min-width: 768px) {
|
||||
display: none;
|
||||
}
|
||||
|
||||
.qr-item {
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
align-items: center;
|
||||
background: #fff;
|
||||
border-radius: 0.16rem;
|
||||
padding: 0.24rem;
|
||||
box-shadow: 0 2px 12px rgba(39, 90, 255, 0.08);
|
||||
border: 1px solid #eef2f9;
|
||||
width: 100%;
|
||||
max-width: 2.4rem;
|
||||
margin-right: 0.4rem;
|
||||
|
||||
.qr-code {
|
||||
width: 1.6rem;
|
||||
height: 1.6rem;
|
||||
background: #fff;
|
||||
border-radius: 0.12rem;
|
||||
padding: 0.12rem;
|
||||
border: 1px solid #eef2f9;
|
||||
margin-bottom: 0.16rem;
|
||||
|
||||
img {
|
||||
width: 100%;
|
||||
height: 100%;
|
||||
object-fit: contain;
|
||||
border-radius: 0.04rem;
|
||||
}
|
||||
}
|
||||
|
||||
.qr-desc {
|
||||
color: #333;
|
||||
font-size: 0.208rem;
|
||||
font-weight: 500;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
/* 底部信息区域 */
|
||||
.footer-bottom {
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
align-items: center;
|
||||
text-align: center;
|
||||
padding: 0.3rem 0.2rem;
|
||||
background: #fff;
|
||||
border-radius: 0.16rem;
|
||||
box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
|
||||
margin-top: 0.4rem;
|
||||
border: 1px solid #eef2f9;
|
||||
|
||||
@media (min-width: 768px) {
|
||||
flex-direction: row;
|
||||
justify-content: space-between;
|
||||
align-items: center;
|
||||
text-align: left;
|
||||
padding: 0.3rem 0.4rem;
|
||||
}
|
||||
}
|
||||
|
||||
.icp-info {
|
||||
margin-bottom: 0.24rem;
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
align-items: center;
|
||||
|
||||
@media (min-width: 768px) {
|
||||
flex-direction: row;
|
||||
align-items: center;
|
||||
gap: 0.6rem;
|
||||
margin-bottom: 0;
|
||||
}
|
||||
|
||||
.icp-item {
|
||||
display: flex;
|
||||
align-items: center;
|
||||
gap: 0.08rem;
|
||||
margin-bottom: 0.12rem;
|
||||
|
||||
@media (min-width: 768px) {
|
||||
margin-bottom: 0;
|
||||
}
|
||||
|
||||
.icp-text {
|
||||
color: #888;
|
||||
font-size: 0.24rem;
|
||||
}
|
||||
|
||||
.icp-number {
|
||||
color: #444;
|
||||
font-weight: 500;
|
||||
font-size: 0.24rem;
|
||||
}
|
||||
}
|
||||
|
||||
.copyright {
|
||||
color: #888;
|
||||
font-size: 0.24rem;
|
||||
font-weight: 300;
|
||||
}
|
||||
}
|
||||
|
||||
.record-info {
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
align-items: center;
|
||||
gap: 0.16rem;
|
||||
margin-bottom: 0.24rem;
|
||||
|
||||
@media (min-width: 768px) {
|
||||
flex-direction: row;
|
||||
align-items: center;
|
||||
gap: 0.6rem;
|
||||
margin-bottom: 0;
|
||||
}
|
||||
}
|
||||
|
||||
.police-record {
|
||||
display: flex;
|
||||
align-items: center;
|
||||
gap: 0.1rem;
|
||||
padding: 0.08rem 0.16rem;
|
||||
background: #f9fafc;
|
||||
border-radius: 0.24rem;
|
||||
transition: all 0.3s;
|
||||
border: 1px solid #eef2f9;
|
||||
|
||||
&:hover {
|
||||
background: #f0f5ff;
|
||||
border-color: #275AFF;
|
||||
transform: translateY(-2px);
|
||||
}
|
||||
|
||||
.police-icon {
|
||||
width: 0.18rem;
|
||||
height: 0.18rem;
|
||||
}
|
||||
|
||||
.police-link {
|
||||
color: #666;
|
||||
text-decoration: none;
|
||||
font-size: 0.24rem;
|
||||
|
||||
&:hover {
|
||||
color: #275AFF;
|
||||
text-decoration: underline;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
.license-record {
|
||||
.license-link {
|
||||
color: #666;
|
||||
text-decoration: none;
|
||||
font-size: 0.24rem;
|
||||
padding: 0.08rem 0.16rem;
|
||||
background: #f9fafc;
|
||||
border-radius: 0.24rem;
|
||||
transition: all 0.3s;
|
||||
border: 1px solid #eef2f9;
|
||||
|
||||
&:hover {
|
||||
background: #f0f5ff;
|
||||
color: #275AFF;
|
||||
text-decoration: underline;
|
||||
transform: translateY(-2px);
|
||||
border-color: #275AFF;
|
||||
}
|
||||
}
|
||||
}
|
||||
</style>
|
||||
338
f/web-kboss/src/views/H5/details/index.vue
Normal file
@ -0,0 +1,338 @@
|
||||
<template>
|
||||
<div>
|
||||
<div class="banner">
|
||||
<!-- 介绍 -->
|
||||
<div class="introduce">
|
||||
<div class="title">
|
||||
<span>{{ productList.title }}</span>
|
||||
</div>
|
||||
<!-- 详情 -->
|
||||
<div class="details">
|
||||
<span>{{ productList.description }}</span>
|
||||
</div>
|
||||
<div class="btn" @click="openConsultDialog(productList, 'banner')">
|
||||
立即咨询
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<!-- 规格 -->
|
||||
<div class="specification">
|
||||
<div class="title">
|
||||
产品<span class="color">规格</span>
|
||||
</div>
|
||||
<!-- 产品列表 -->
|
||||
<div class="product-list">
|
||||
<!-- 列表项 -->
|
||||
<div class="list-box" v-for="(item, index) in productList.products" :key="index">
|
||||
<div class="box-title">
|
||||
{{ item.title }}
|
||||
</div>
|
||||
<!-- 详情 -->
|
||||
<div class="box-details">
|
||||
<div class="details-item" v-for="(items, index) in item.list" :key="index">
|
||||
<span>
|
||||
<span class="item-title">
|
||||
<span>{{ items.name }}</span>
|
||||
</span>
|
||||
<span class="item-details">
|
||||
<span>{{ items.content }}</span>
|
||||
</span>
|
||||
</span>
|
||||
</div>
|
||||
</div>
|
||||
<!-- 价格 -->
|
||||
<div class="price">
|
||||
¥<span class="price-dig">{{ item.price }}</span><span class="price-color">{{ item.price_unit }}(可短租)</span>
|
||||
</div>
|
||||
<!-- 咨询 -->
|
||||
<div class="box-btn" @click="openConsultDialog(item, 'spec')">
|
||||
立即咨询
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<!-- 产品咨询弹窗 -->
|
||||
<ProductConsultDialog
|
||||
:visible.sync="showConsultDialog"
|
||||
:platform-name="platformName"
|
||||
:qr-code="qrCode"
|
||||
:default-form-data="consultFormData"
|
||||
:submit-api="submitConsultApi"
|
||||
@success="handleConsultSuccess"
|
||||
@close="handleDialogClose"
|
||||
/>
|
||||
|
||||
<Footer></Footer>
|
||||
</div>
|
||||
</template>
|
||||
|
||||
<script>
|
||||
import { reqProductDetail, reqProductConsult } from '@/api/H5/index'
|
||||
import Footer from '../components/footer/footer.vue';
|
||||
import ProductConsultDialog from '../components/H5_dialog/index.vue'
|
||||
|
||||
export default {
|
||||
components: {
|
||||
Footer,
|
||||
ProductConsultDialog
|
||||
},
|
||||
data() {
|
||||
return {
|
||||
id: null,
|
||||
productList: [],
|
||||
|
||||
// 咨询弹窗相关
|
||||
showConsultDialog: false,
|
||||
platformName: '产品详情页',
|
||||
qrCode: '',
|
||||
consultFormData: {
|
||||
content: '',
|
||||
custom_type: '1',
|
||||
name: '',
|
||||
phone: '',
|
||||
company: '',
|
||||
email: '',
|
||||
checked: false
|
||||
},
|
||||
currentProduct: null,
|
||||
consultSource: '' // 记录咨询来源:banner 或 spec
|
||||
}
|
||||
},
|
||||
|
||||
created() {
|
||||
// 获取id
|
||||
this.id = this.$route.query.id
|
||||
console.log('ID:', this.id)
|
||||
this.getProductList()
|
||||
},
|
||||
|
||||
methods: {
|
||||
// 获取产品列表
|
||||
async getProductList() {
|
||||
const res = await reqProductDetail({ id: this.id })
|
||||
console.log('产品详情是', res)
|
||||
if (res.status === true) {
|
||||
this.productList = res.data
|
||||
}
|
||||
},
|
||||
|
||||
// 打开咨询弹窗
|
||||
openConsultDialog(product, source) {
|
||||
this.currentProduct = product
|
||||
this.consultSource = source
|
||||
|
||||
// 根据来源设置不同的咨询内容
|
||||
let content = ''
|
||||
if (source === 'banner') {
|
||||
// 从banner咨询
|
||||
content = `我想咨询关于【${product.title || '产品'}】的详细信息`
|
||||
} else if (source === 'spec') {
|
||||
// 从规格列表咨询
|
||||
content = `我想咨询【${product.title || '产品规格'}】的价格和租赁详情`
|
||||
}
|
||||
|
||||
// 设置咨询表单的预填内容
|
||||
this.consultFormData = {
|
||||
...this.consultFormData,
|
||||
content: content
|
||||
}
|
||||
|
||||
this.showConsultDialog = true
|
||||
},
|
||||
|
||||
// 提交咨询API
|
||||
async submitConsultApi(data) {
|
||||
// 构建提交数据
|
||||
const submitData = {
|
||||
...data,
|
||||
product_id: this.id,
|
||||
product_title: this.productList.title || '',
|
||||
product_name: this.currentProduct?.title || '',
|
||||
product_price: this.currentProduct?.price || '',
|
||||
product_unit: this.currentProduct?.price_unit || '',
|
||||
consult_source: this.consultSource || '',
|
||||
page_type: 'product_detail',
|
||||
page_url: window.location.href
|
||||
}
|
||||
|
||||
return await reqProductConsult(submitData)
|
||||
},
|
||||
|
||||
// 咨询成功回调
|
||||
handleConsultSuccess(response) {
|
||||
console.log('咨询提交成功:', response)
|
||||
this.$message.success('咨询提交成功,我们将尽快联系您!')
|
||||
},
|
||||
|
||||
// 弹窗关闭回调
|
||||
handleDialogClose() {
|
||||
this.currentProduct = null
|
||||
this.consultSource = ''
|
||||
// 重置表单数据
|
||||
this.consultFormData = {
|
||||
content: '',
|
||||
custom_type: '1',
|
||||
name: '',
|
||||
phone: '',
|
||||
company: '',
|
||||
email: '',
|
||||
checked: false
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
</script>
|
||||
<style lang="less" scoped>
|
||||
.color {
|
||||
background: linear-gradient(to right, #0066FF, #66CCFF);
|
||||
/* 蓝到浅蓝渐变 */
|
||||
-webkit-background-clip: text;
|
||||
background-clip: text;
|
||||
color: transparent;
|
||||
display: inline-block;
|
||||
}
|
||||
|
||||
.banner {
|
||||
height: 4.2rem;
|
||||
background: url(../images/calculateBanner.jpg) no-repeat;
|
||||
background-size: 100% 100%;
|
||||
position: relative;
|
||||
|
||||
.introduce {
|
||||
position: absolute;
|
||||
left: 50%;
|
||||
top: 14%;
|
||||
transform: translate(-90%);
|
||||
}
|
||||
|
||||
.title {
|
||||
font-size: 0.32rem;
|
||||
/* 修改为0.32rem */
|
||||
color: #000;
|
||||
font-weight: 700;
|
||||
}
|
||||
|
||||
.details {
|
||||
font-size: 0.18rem;
|
||||
/* 修改为0.18rem */
|
||||
color: #8890ab;
|
||||
line-height: 2 !important;
|
||||
margin-top: .1rem;
|
||||
}
|
||||
|
||||
.btn {
|
||||
margin-top: .1rem;
|
||||
width: 2rem;
|
||||
height: .4rem;
|
||||
border-radius: .1rem;
|
||||
display: flex;
|
||||
align-items: center;
|
||||
justify-content: center;
|
||||
font-size: .2rem;
|
||||
background: linear-gradient(90deg, #275AFF 0%, #2EBDFA 100%);
|
||||
color: #fff;
|
||||
cursor: pointer; /* 添加手型光标 */
|
||||
}
|
||||
}
|
||||
|
||||
// 规格
|
||||
.specification {
|
||||
height: 100%;
|
||||
background: linear-gradient(to bottom, #fff, #f2f6fb, #fff);
|
||||
|
||||
.title {
|
||||
text-align: center;
|
||||
font-size: 0.32rem;
|
||||
/* 修改为0.32rem */
|
||||
font-weight: 600;
|
||||
}
|
||||
}
|
||||
|
||||
// 产品列表
|
||||
.product-list {
|
||||
display: flex;
|
||||
flex-wrap: wrap;
|
||||
justify-content: flex-start;
|
||||
padding: 0 1%;
|
||||
|
||||
// 列表项
|
||||
.list-box {
|
||||
position: relative;
|
||||
margin: .2rem 2%;
|
||||
width: 46%;
|
||||
box-shadow: 0 .02rem .08rem rgba(39, 90, 255, 0.08);
|
||||
border-radius: .3rem;
|
||||
padding: .2rem .2rem;
|
||||
background-color: #fff;
|
||||
padding-bottom: 2rem;
|
||||
// 标题
|
||||
.box-title {
|
||||
font-size: 0.24rem;
|
||||
/* 修改为0.24rem */
|
||||
font-weight: 600;
|
||||
margin-bottom: .2rem;
|
||||
}
|
||||
|
||||
// 详情
|
||||
.box-details {
|
||||
.details-item {
|
||||
display: flex;
|
||||
justify-content: space-between;
|
||||
line-height: 1;
|
||||
|
||||
.item-title {
|
||||
font-size: .16rem;
|
||||
color: #000;
|
||||
margin-right: 0.07rem;
|
||||
font-weight: 500;
|
||||
}
|
||||
|
||||
.item-details {
|
||||
font-size: .16rem;
|
||||
color: #8890ab;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
// 价格
|
||||
.price {
|
||||
width: calc(100% - 0.4rem);
|
||||
position: absolute;
|
||||
bottom: .2rem;
|
||||
font-size: .16rem;
|
||||
color: #F62424;
|
||||
margin-top: .2rem;
|
||||
padding-top: .2rem;
|
||||
// 虚线
|
||||
border-top: .02rem dashed #e0e0e0;
|
||||
margin-bottom: .8rem;
|
||||
.price-dig {
|
||||
font-size: 0.28rem;
|
||||
/* 修改为0.28rem */
|
||||
font-weight: 600;
|
||||
}
|
||||
|
||||
.price-color {
|
||||
color: #8890ab;
|
||||
}
|
||||
}
|
||||
|
||||
.box-btn {
|
||||
width: calc(100% - 0.4rem); /* 减去左右 padding */
|
||||
margin-top: .2rem; /* 增加上边距 */
|
||||
padding: .1rem .2rem;
|
||||
text-align: center;
|
||||
border-radius: .1rem;
|
||||
font-size: .2rem;
|
||||
background: linear-gradient(90deg, #275AFF 0%, #2EBDFA 100%);
|
||||
color: #fff;
|
||||
position: absolute;
|
||||
left: 0.2rem;
|
||||
right: 0.2rem;
|
||||
bottom: 0.2rem;
|
||||
cursor: pointer;
|
||||
}
|
||||
}
|
||||
}
|
||||
</style>
|
||||
BIN
f/web-kboss/src/views/H5/images/bg.png
Normal file
|
After Width: | Height: | Size: 595 KiB |
BIN
f/web-kboss/src/views/H5/images/calculateBanner.jpg
Normal file
|
After Width: | Height: | Size: 108 KiB |
BIN
f/web-kboss/src/views/H5/images/image.png
Normal file
|
After Width: | Height: | Size: 1.4 MiB |
BIN
f/web-kboss/src/views/H5/images/keyueBanner.png
Normal file
|
After Width: | Height: | Size: 270 KiB |
BIN
f/web-kboss/src/views/H5/images/netBanner.jpg
Normal file
|
After Width: | Height: | Size: 112 KiB |
BIN
f/web-kboss/src/views/H5/images/netDetails/1.png
Normal file
|
After Width: | Height: | Size: 8.3 KiB |
BIN
f/web-kboss/src/views/H5/images/netDetails/2.png
Normal file
|
After Width: | Height: | Size: 7.9 KiB |
BIN
f/web-kboss/src/views/H5/images/netDetails/3.png
Normal file
|
After Width: | Height: | Size: 8.2 KiB |
BIN
f/web-kboss/src/views/H5/images/netDetails/4.png
Normal file
|
After Width: | Height: | Size: 8.7 KiB |
BIN
f/web-kboss/src/views/H5/images/netDetails/5.png
Normal file
|
After Width: | Height: | Size: 8.3 KiB |
BIN
f/web-kboss/src/views/H5/images/netDetails/6.png
Normal file
|
After Width: | Height: | Size: 8.3 KiB |
BIN
f/web-kboss/src/views/H5/images/netDetails/7.png
Normal file
|
After Width: | Height: | Size: 8.3 KiB |
BIN
f/web-kboss/src/views/H5/images/scene.jpg
Normal file
|
After Width: | Height: | Size: 284 KiB |
BIN
f/web-kboss/src/views/H5/images/use.jpg
Normal file
|
After Width: | Height: | Size: 214 KiB |
BIN
f/web-kboss/src/views/H5/img/img.png
Normal file
|
After Width: | Height: | Size: 8.0 KiB |
BIN
f/web-kboss/src/views/H5/img/map.png
Normal file
|
After Width: | Height: | Size: 5.6 KiB |
BIN
f/web-kboss/src/views/H5/img/net/1.png
Normal file
|
After Width: | Height: | Size: 2.2 KiB |
BIN
f/web-kboss/src/views/H5/img/net/2.png
Normal file
|
After Width: | Height: | Size: 2.4 KiB |
BIN
f/web-kboss/src/views/H5/img/net/3.png
Normal file
|
After Width: | Height: | Size: 2.8 KiB |
BIN
f/web-kboss/src/views/H5/img/net/4.png
Normal file
|
After Width: | Height: | Size: 3.2 KiB |
BIN
f/web-kboss/src/views/H5/img/suan/1.png
Normal file
|
After Width: | Height: | Size: 2.5 KiB |
BIN
f/web-kboss/src/views/H5/img/suan/2.png
Normal file
|
After Width: | Height: | Size: 3.1 KiB |
BIN
f/web-kboss/src/views/H5/img/suan/3.png
Normal file
|
After Width: | Height: | Size: 1.2 KiB |
BIN
f/web-kboss/src/views/H5/img/suan/4.png
Normal file
|
After Width: | Height: | Size: 1.1 KiB |
BIN
f/web-kboss/src/views/H5/img/suan/5.png
Normal file
|
After Width: | Height: | Size: 2.9 KiB |
BIN
f/web-kboss/src/views/H5/img/suanBg.png
Normal file
|
After Width: | Height: | Size: 1.1 MiB |
BIN
f/web-kboss/src/views/H5/img/tiyanBg.png
Normal file
|
After Width: | Height: | Size: 3.0 MiB |
@ -1,101 +1,298 @@
|
||||
<template>
|
||||
<div>
|
||||
<div class="main">
|
||||
|
||||
<div class="h5-container">
|
||||
<!-- 主要内容区域 -->
|
||||
<div ref="mainContent" class="main" @scroll="handleScroll">
|
||||
<transition :name="transitionName" mode="out-in">
|
||||
<router-view></router-view>
|
||||
</transition>
|
||||
</div>
|
||||
<div style="height: 1.4rem;"></div>
|
||||
|
||||
<!-- 返回顶部按钮 -->
|
||||
<transition name="fade-scale">
|
||||
<div
|
||||
v-show="showBackToTop"
|
||||
class="back-to-top"
|
||||
@click="scrollToTop"
|
||||
>
|
||||
<div class="back-to-top-icon">
|
||||
<svg viewBox="0 0 24 24" fill="none">
|
||||
<path d="M12 5L12 19M12 5L6 11M12 5L18 11"
|
||||
stroke="currentColor"
|
||||
stroke-width="2"
|
||||
stroke-linecap="round"
|
||||
stroke-linejoin="round"/>
|
||||
</svg>
|
||||
</div>
|
||||
<div class="back-to-top-text">回顶部</div>
|
||||
</div>
|
||||
</transition>
|
||||
|
||||
<!-- 底部导航栏 -->
|
||||
<div class="tabBar">
|
||||
<!-- 首页 -->
|
||||
<div class="tabBar-item">
|
||||
<div
|
||||
class="tabBar-item"
|
||||
:class="{ active: activeTab === 'index' }"
|
||||
@click="switchTab('index')"
|
||||
>
|
||||
<div class="item-img">
|
||||
<img src="./images/tabBar/home.png" alt="" />
|
||||
<transition name="icon-bounce" mode="out-in">
|
||||
<img
|
||||
:key="activeTab === 'index'"
|
||||
:src="activeTab === 'index' ? require('./images/tabBar/homeColor.png') : require('./images/tabBar/home.png')"
|
||||
alt="首页"
|
||||
/>
|
||||
</transition>
|
||||
</div>
|
||||
<div class="item-text">
|
||||
首页
|
||||
<transition name="text-slide" mode="out-in">
|
||||
<span :key="activeTab === 'index'">首页</span>
|
||||
</transition>
|
||||
</div>
|
||||
<div class="active-indicator" v-if="activeTab === 'index'"></div>
|
||||
</div>
|
||||
|
||||
<!-- 云 -->
|
||||
<div class="tabBar-item">
|
||||
<div
|
||||
class="tabBar-item"
|
||||
:class="{ active: activeTab === 'cloud' }"
|
||||
@click="switchTab('cloud')"
|
||||
>
|
||||
<div class="item-img">
|
||||
<img src="./images/tabBar/cloud.png" alt="" />
|
||||
<transition name="icon-bounce" mode="out-in">
|
||||
<img
|
||||
:key="activeTab === 'cloud'"
|
||||
:src="activeTab === 'cloud' ? require('./images/tabBar/cloudColor.png') : require('./images/tabBar/cloud.png')"
|
||||
alt="云"
|
||||
/>
|
||||
</transition>
|
||||
</div>
|
||||
<div class="item-text">
|
||||
云
|
||||
<transition name="text-slide" mode="out-in">
|
||||
<span :key="activeTab === 'cloud'">云</span>
|
||||
</transition>
|
||||
</div>
|
||||
<div class="active-indicator" v-if="activeTab === 'cloud'"></div>
|
||||
</div>
|
||||
|
||||
<!-- 算 -->
|
||||
<div class="tabBar-item">
|
||||
<div
|
||||
class="tabBar-item"
|
||||
:class="{ active: activeTab === 'calculate' }"
|
||||
@click="switchTab('calculate')"
|
||||
>
|
||||
<div class="item-img">
|
||||
<img src="./images/tabBar/calculate.png" alt="" />
|
||||
<transition name="icon-bounce" mode="out-in">
|
||||
<img
|
||||
:key="activeTab === 'calculate'"
|
||||
:src="activeTab === 'calculate' ? require('./images/tabBar/calculateColor.png') : require('./images/tabBar/calculate.png')"
|
||||
alt="算"
|
||||
/>
|
||||
</transition>
|
||||
</div>
|
||||
<div class="item-text">
|
||||
算
|
||||
<transition name="text-slide" mode="out-in">
|
||||
<span :key="activeTab === 'calculate'">算</span>
|
||||
</transition>
|
||||
</div>
|
||||
<div class="active-indicator" v-if="activeTab === 'calculate'"></div>
|
||||
</div>
|
||||
|
||||
<!-- 网 -->
|
||||
<div class="tabBar-item">
|
||||
<div
|
||||
class="tabBar-item"
|
||||
:class="{ active: activeTab === 'net' }"
|
||||
@click="switchTab('net')"
|
||||
>
|
||||
<div class="item-img">
|
||||
<img src="./images/tabBar/net.png" alt="" />
|
||||
<transition name="icon-bounce" mode="out-in">
|
||||
<img
|
||||
:key="activeTab === 'net'"
|
||||
:src="activeTab === 'net' ? require('./images/tabBar/netColor.png') : require('./images/tabBar/net.png')"
|
||||
alt="网"
|
||||
/>
|
||||
</transition>
|
||||
</div>
|
||||
<div class="item-text">
|
||||
网
|
||||
<transition name="text-slide" mode="out-in">
|
||||
<span :key="activeTab === 'net'">网</span>
|
||||
</transition>
|
||||
</div>
|
||||
<div class="active-indicator" v-if="activeTab === 'net'"></div>
|
||||
</div>
|
||||
|
||||
<!-- 用 -->
|
||||
<div class="tabBar-item">
|
||||
<div
|
||||
class="tabBar-item"
|
||||
:class="{ active: activeTab === 'use' }"
|
||||
@click="switchTab('use')"
|
||||
>
|
||||
<div class="item-img">
|
||||
<img src="./images/tabBar/user.png" alt="" />
|
||||
<transition name="icon-bounce" mode="out-in">
|
||||
<img
|
||||
:key="activeTab === 'use'"
|
||||
:src="activeTab === 'use' ? require('./images/tabBar/userColor.png') : require('./images/tabBar/user.png')"
|
||||
alt="用"
|
||||
/>
|
||||
</transition>
|
||||
</div>
|
||||
<div class="item-text">
|
||||
用
|
||||
<transition name="text-slide" mode="out-in">
|
||||
<span :key="activeTab === 'use'">用</span>
|
||||
</transition>
|
||||
</div>
|
||||
<div class="active-indicator" v-if="activeTab === 'use'"></div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</template>
|
||||
|
||||
<script>
|
||||
import './media'
|
||||
import './media.js'
|
||||
export default {
|
||||
name: 'H5HomePage',
|
||||
data() {
|
||||
return {
|
||||
|
||||
activeTab: 'index', // 当前激活的标签
|
||||
tabList: [
|
||||
{ id: 'index', name: '首页', path: '/h5HomePage/index' },
|
||||
{ id: 'cloud', name: '云', path: '/h5HomePage/cloud' },
|
||||
{ id: 'calculate', name: '算', path: '/h5HomePage/calculate' },
|
||||
{ id: 'net', name: '网', path: '/h5HomePage/net' },
|
||||
{ id: 'use', name: '用', path: '/h5HomePage/use' }
|
||||
],
|
||||
showBackToTop: false, // 是否显示返回顶部按钮
|
||||
scrollThreshold: 200, // 滚动多少距离后显示按钮(可根据需要调整)
|
||||
transitionName: 'fade', // 页面切换动画名称
|
||||
isSwitching: false, // 是否正在切换
|
||||
};
|
||||
},
|
||||
watch: {
|
||||
// 监听路由变化,更新激活的标签
|
||||
'$route'(to) {
|
||||
this.updateActiveTab(to.path);
|
||||
}
|
||||
},
|
||||
methods: {
|
||||
|
||||
mounted() {
|
||||
// 初始化时根据当前路由设置激活状态
|
||||
this.updateActiveTab(this.$route.path);
|
||||
},
|
||||
methods: {
|
||||
/**
|
||||
* 切换标签页
|
||||
* @param {string} tabId - 标签ID
|
||||
*/
|
||||
switchTab(tabId) {
|
||||
// 如果正在切换或点击的是当前已激活的标签,不进行操作
|
||||
if (this.isSwitching || this.activeTab === tabId) return;
|
||||
|
||||
// 设置正在切换状态
|
||||
this.isSwitching = true;
|
||||
|
||||
// 更新激活状态
|
||||
this.activeTab = tabId;
|
||||
|
||||
// 根据tabId跳转到对应的路由
|
||||
const tab = this.tabList.find(item => item.id === tabId);
|
||||
if (tab) {
|
||||
// 添加点击反馈动画
|
||||
this.animateTabClick(tabId);
|
||||
|
||||
// 延迟路由跳转,让动画先执行
|
||||
setTimeout(() => {
|
||||
this.$router.push(tab.path);
|
||||
// 重置切换状态
|
||||
setTimeout(() => {
|
||||
this.isSwitching = false;
|
||||
}, 300);
|
||||
}, 150);
|
||||
} else {
|
||||
this.isSwitching = false;
|
||||
}
|
||||
},
|
||||
|
||||
/**
|
||||
* 执行Tab点击动画
|
||||
* @param {string} tabId - 标签ID
|
||||
*/
|
||||
animateTabClick(tabId) {
|
||||
// 获取点击的tab元素
|
||||
const tabIndex = this.tabList.findIndex(item => item.id === tabId);
|
||||
const tabs = document.querySelectorAll('.tabBar-item');
|
||||
|
||||
if (tabs[tabIndex]) {
|
||||
// 添加点击动画类
|
||||
tabs[tabIndex].classList.add('click-animation');
|
||||
|
||||
// 动画结束后移除类
|
||||
setTimeout(() => {
|
||||
tabs[tabIndex].classList.remove('click-animation');
|
||||
}, 300);
|
||||
}
|
||||
},
|
||||
|
||||
/**
|
||||
* 根据路由路径更新激活的标签
|
||||
* @param {string} path - 当前路由路径
|
||||
*/
|
||||
updateActiveTab(path) {
|
||||
// 从路径中提取tabId
|
||||
const pathParts = path.split('/');
|
||||
const tabId = pathParts[pathParts.length - 1];
|
||||
|
||||
// 如果提取的tabId在tabList中存在,则更新activeTab
|
||||
if (this.tabList.some(item => item.id === tabId)) {
|
||||
this.activeTab = tabId;
|
||||
}
|
||||
},
|
||||
|
||||
/**
|
||||
* 处理滚动事件
|
||||
*/
|
||||
handleScroll() {
|
||||
if (this.$refs.mainContent) {
|
||||
const scrollTop = this.$refs.mainContent.scrollTop;
|
||||
// 当滚动距离超过阈值时显示返回顶部按钮
|
||||
this.showBackToTop = scrollTop > this.scrollThreshold;
|
||||
}
|
||||
},
|
||||
|
||||
/**
|
||||
* 滚动到顶部
|
||||
*/
|
||||
scrollToTop() {
|
||||
if (this.$refs.mainContent) {
|
||||
// 添加点击反馈效果
|
||||
const btn = document.querySelector('.back-to-top');
|
||||
if (btn) {
|
||||
btn.classList.add('clicked');
|
||||
setTimeout(() => {
|
||||
btn.classList.remove('clicked');
|
||||
}, 300);
|
||||
}
|
||||
|
||||
this.$refs.mainContent.scrollTo({
|
||||
top: 0,
|
||||
behavior: 'smooth' // 平滑滚动
|
||||
});
|
||||
}
|
||||
}
|
||||
}
|
||||
};
|
||||
function adapter() {
|
||||
//获取布局视口宽度,因为开启了理想视口,布局视口=设备横向独立像素值
|
||||
const dpWidth = document.documentElement.clientWidth
|
||||
//计算根字体大小
|
||||
const rootFonstSize = (dpWidth * 100) / 750
|
||||
//设置根字体大小
|
||||
document.documentElement.style.fontSize = rootFonstSize + 'px'
|
||||
}
|
||||
adapter()
|
||||
window.onresize = adapter()
|
||||
|
||||
</script>
|
||||
|
||||
<style lang="less" scoped>
|
||||
.tabBar {
|
||||
padding: .1rem 0;
|
||||
background-color: #fff;
|
||||
width: 100%;
|
||||
display: flex;
|
||||
justify-content: space-around;
|
||||
position: fixed;
|
||||
bottom: 0;
|
||||
.tabBar-item {
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
align-items: center;
|
||||
justify-content: center;
|
||||
}
|
||||
|
||||
.item-img {
|
||||
margin-bottom: .1rem;
|
||||
img {
|
||||
width: .3rem;
|
||||
height: .3rem;
|
||||
display: block;
|
||||
}
|
||||
}
|
||||
|
||||
.item-text {
|
||||
font-size: .14rem;
|
||||
}
|
||||
}
|
||||
@import url('./less/home/index.less');
|
||||
</style>
|
||||
|
||||
243
f/web-kboss/src/views/H5/less/all/index.css
Normal file
@ -0,0 +1,243 @@
|
||||
.top-tit {
|
||||
display: flex;
|
||||
justify-content: center;
|
||||
background: linear-gradient(90deg, #275AFF 0%, #2EBDFA 100%);
|
||||
-webkit-background-clip: text;
|
||||
-webkit-text-fill-color: transparent;
|
||||
background-clip: text;
|
||||
font-size: 0.39rem;
|
||||
/* 增大30%: .3rem * 1.3 = .39rem */
|
||||
font-weight: bold;
|
||||
margin: 0.3rem 0;
|
||||
}
|
||||
.supplier-container {
|
||||
display: flex;
|
||||
flex-wrap: wrap;
|
||||
/* 允许换行 */
|
||||
padding: 0.2rem 0.22rem;
|
||||
gap: 0.15rem;
|
||||
/* 使用gap控制间距 */
|
||||
}
|
||||
.supplier {
|
||||
flex-shrink: 0;
|
||||
/* 防止收缩 */
|
||||
}
|
||||
.supplier .supplier-title {
|
||||
font-size: 0.28rem;
|
||||
color: #000;
|
||||
padding: 0.12rem 0.2rem;
|
||||
background-color: #f5f5f5;
|
||||
border-radius: 0.12rem;
|
||||
cursor: pointer;
|
||||
transition: all 0.3s ease;
|
||||
white-space: nowrap;
|
||||
/* 防止文字换行 */
|
||||
}
|
||||
.supplier .supplier-title:hover {
|
||||
background-color: #e0e0e0;
|
||||
transform: translateY(-0.02rem);
|
||||
box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
|
||||
}
|
||||
.supplier .supplier-title.active {
|
||||
background: linear-gradient(90deg, #275aff, #2ebdfa);
|
||||
color: #fff;
|
||||
box-shadow: 0 0.04rem 0.12rem rgba(39, 90, 255, 0.3);
|
||||
transform: translateY(-0.02rem);
|
||||
}
|
||||
.box {
|
||||
width: 100%;
|
||||
display: flex;
|
||||
flex-wrap: wrap;
|
||||
justify-content: space-between;
|
||||
padding: 0 0.3rem;
|
||||
}
|
||||
.box .box-item {
|
||||
display: flex;
|
||||
width: 48%;
|
||||
flex-direction: column;
|
||||
align-items: self-start;
|
||||
border: 0.02rem solid #f0f0f0;
|
||||
border-radius: 0.2rem;
|
||||
padding: 0.15rem 0.2rem;
|
||||
margin: 0.34rem 0;
|
||||
transition: all 0.3s ease;
|
||||
position: relative;
|
||||
padding-bottom: 0.6rem;
|
||||
}
|
||||
.box .box-item:hover {
|
||||
transform: translateY(-0.05rem);
|
||||
box-shadow: 0 0.08rem 0.2rem rgba(0, 0, 0, 0.1);
|
||||
border-color: #1f70ff;
|
||||
}
|
||||
.box .box-item .item-tit {
|
||||
font-size: 0.26rem;
|
||||
color: #000;
|
||||
font-weight: bold;
|
||||
margin-bottom: 0.1rem;
|
||||
}
|
||||
.box .box-item .item-detail {
|
||||
color: #666;
|
||||
font-size: 0.22rem;
|
||||
margin: 0.15rem 0;
|
||||
line-height: 1.4;
|
||||
}
|
||||
.box .box-item .item-desc {
|
||||
color: #666;
|
||||
background-color: #f8f9fa;
|
||||
font-size: 0.2rem;
|
||||
padding: 0.08rem 0.12rem;
|
||||
border-radius: 0.1rem;
|
||||
margin-bottom: 0.15rem;
|
||||
border: 0.01rem solid #e9ecef;
|
||||
}
|
||||
.box .box-item .item-btn {
|
||||
width: 100%;
|
||||
display: flex;
|
||||
padding-top: 0.2rem;
|
||||
}
|
||||
.box .box-item .item-btn .btn {
|
||||
background: linear-gradient(90deg, #275AFF 0%, #2EBDFA 100%);
|
||||
border-radius: 0.04rem;
|
||||
padding: 0.08rem 0;
|
||||
width: calc(100% - 0.4rem);
|
||||
text-align: center;
|
||||
color: #fff;
|
||||
font-size: 0.182rem;
|
||||
cursor: pointer;
|
||||
transition: all 0.3s ease;
|
||||
border: none;
|
||||
position: absolute;
|
||||
bottom: 0.2rem;
|
||||
}
|
||||
.box .box-item .item-btn .btn:hover {
|
||||
background: linear-gradient(90deg, #0d5aff, #2a7aff);
|
||||
transform: translateY(-0.02rem);
|
||||
box-shadow: 0 0.04rem 0.1rem rgba(31, 112, 255, 0.3);
|
||||
}
|
||||
.search {
|
||||
width: 100%;
|
||||
margin: 0.3rem 0;
|
||||
padding: 0 0.3rem;
|
||||
}
|
||||
.search .search-box {
|
||||
display: flex;
|
||||
justify-content: space-between;
|
||||
background-color: #f8f9fa;
|
||||
border-radius: 0.3rem;
|
||||
overflow: hidden;
|
||||
transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
|
||||
border: 0.02rem solid #e9ecef;
|
||||
box-shadow: 0 0.02rem 0.06rem rgba(0, 0, 0, 0.04);
|
||||
}
|
||||
.search .search-box:focus-within {
|
||||
transform: translateY(-0.01rem);
|
||||
}
|
||||
.search .search-btn {
|
||||
display: flex;
|
||||
justify-content: center;
|
||||
align-items: center;
|
||||
width: 18%;
|
||||
color: #fff;
|
||||
padding: 0.18rem 0;
|
||||
background: linear-gradient(90deg, #1f70ff, #3a8cff);
|
||||
border-bottom-right-radius: 0.3rem;
|
||||
border-top-right-radius: 0.3rem;
|
||||
font-size: 0.28rem;
|
||||
font-weight: 500;
|
||||
cursor: pointer;
|
||||
transition: all 0.3s ease;
|
||||
position: relative;
|
||||
overflow: hidden;
|
||||
}
|
||||
.search .search-btn::after {
|
||||
content: '';
|
||||
position: absolute;
|
||||
top: 0;
|
||||
left: -100%;
|
||||
width: 100%;
|
||||
height: 100%;
|
||||
background: linear-gradient(90deg, rgba(255, 255, 255, 0) 0%, rgba(255, 255, 255, 0.2) 50%, rgba(255, 255, 255, 0) 100%);
|
||||
transition: left 0.5s ease;
|
||||
}
|
||||
.search .search-btn:hover {
|
||||
background: linear-gradient(90deg, #0d5aff, #2a7aff);
|
||||
width: 20%;
|
||||
}
|
||||
.search .search-btn:hover::after {
|
||||
left: 100%;
|
||||
}
|
||||
.search .search-btn:active {
|
||||
background: linear-gradient(90deg, #0a50e6, #2575e6);
|
||||
transform: scale(0.98);
|
||||
}
|
||||
.search .input {
|
||||
flex: 1;
|
||||
padding: 0.16rem 0;
|
||||
padding-left: 0.25rem;
|
||||
display: flex;
|
||||
align-items: center;
|
||||
}
|
||||
.search .input input {
|
||||
border: none;
|
||||
outline: none;
|
||||
background: none;
|
||||
padding: 0;
|
||||
margin: 0;
|
||||
width: 100%;
|
||||
font-size: 0.26rem;
|
||||
color: #333;
|
||||
line-height: 1.4;
|
||||
}
|
||||
.search .input input::placeholder {
|
||||
color: #adb5bd;
|
||||
font-size: 0.24rem;
|
||||
transition: color 0.3s ease;
|
||||
}
|
||||
.search .input input:focus::placeholder {
|
||||
color: #868e96;
|
||||
}
|
||||
/* 为供应商容器和产品列表添加搜索状态样式 */
|
||||
.supplier-container {
|
||||
transition: opacity 0.3s ease;
|
||||
}
|
||||
.box {
|
||||
transition: transform 0.3s ease;
|
||||
}
|
||||
/* 当有搜索关键词时,调整一些元素的样式 */
|
||||
:global body.search-active .supplier-container {
|
||||
opacity: 0.8;
|
||||
}
|
||||
:global body.search-active .box {
|
||||
animation: searchResultAppear 0.4s ease;
|
||||
}
|
||||
@keyframes searchResultAppear {
|
||||
0% {
|
||||
opacity: 0;
|
||||
transform: translateY(0.1rem);
|
||||
}
|
||||
100% {
|
||||
opacity: 1;
|
||||
transform: translateY(0);
|
||||
}
|
||||
}
|
||||
/* 响应式调整 */
|
||||
@media (max-width: 480px) {
|
||||
.search {
|
||||
padding: 0 0.2rem;
|
||||
margin: 0.25rem 0;
|
||||
}
|
||||
.search .search-box {
|
||||
border-radius: 0.25rem;
|
||||
}
|
||||
.search .search-btn {
|
||||
font-size: 0.26rem;
|
||||
padding: 0.16rem 0;
|
||||
}
|
||||
.search .input {
|
||||
padding: 0.14rem 0;
|
||||
padding-left: 0.2rem;
|
||||
}
|
||||
.search .input input {
|
||||
font-size: 0.24rem;
|
||||
}
|
||||
}
|
||||
300
f/web-kboss/src/views/H5/less/all/index.less
Normal file
@ -0,0 +1,300 @@
|
||||
.top-tit {
|
||||
display: flex;
|
||||
justify-content: center;
|
||||
background: linear-gradient(90deg, #275AFF 0%, #2EBDFA 100%);
|
||||
-webkit-background-clip: text;
|
||||
-webkit-text-fill-color: transparent;
|
||||
background-clip: text;
|
||||
font-size: .39rem;
|
||||
/* 增大30%: .3rem * 1.3 = .39rem */
|
||||
font-weight: bold;
|
||||
margin: .3rem 0;
|
||||
}
|
||||
|
||||
.supplier-container {
|
||||
display: flex;
|
||||
flex-wrap: wrap;
|
||||
/* 允许换行 */
|
||||
padding: .2rem .22rem;
|
||||
gap: .15rem;
|
||||
/* 使用gap控制间距 */
|
||||
}
|
||||
|
||||
.supplier {
|
||||
flex-shrink: 0;
|
||||
/* 防止收缩 */
|
||||
|
||||
.supplier-title {
|
||||
font-size: .28rem;
|
||||
color: #000;
|
||||
padding: .12rem .2rem;
|
||||
background-color: #f5f5f5;
|
||||
border-radius: 0.12rem;
|
||||
cursor: pointer;
|
||||
transition: all 0.3s ease;
|
||||
|
||||
white-space: nowrap;
|
||||
/* 防止文字换行 */
|
||||
|
||||
&:hover {
|
||||
background-color: #e0e0e0;
|
||||
transform: translateY(-0.02rem);
|
||||
box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
|
||||
}
|
||||
|
||||
&.active {
|
||||
background: linear-gradient(90deg, #275aff, #2ebdfa);
|
||||
color: #fff;
|
||||
box-shadow: 0 .04rem .12rem rgba(39, 90, 255, 0.3);
|
||||
transform: translateY(-0.02rem);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
.box {
|
||||
width: 100%;
|
||||
display: flex;
|
||||
flex-wrap: wrap;
|
||||
justify-content: space-between;
|
||||
padding: 0 .3rem;
|
||||
|
||||
.box-item {
|
||||
display: flex;
|
||||
width: 48%;
|
||||
flex-direction: column;
|
||||
align-items: self-start;
|
||||
border: .02rem solid #f0f0f0;
|
||||
border-radius: .2rem;
|
||||
padding: .15rem .2rem;
|
||||
margin: .34rem 0;
|
||||
transition: all 0.3s ease;
|
||||
position: relative;
|
||||
padding-bottom: .6rem;
|
||||
&:hover {
|
||||
transform: translateY(-0.05rem);
|
||||
box-shadow: 0 .08rem .2rem rgba(0, 0, 0, 0.1);
|
||||
border-color: #1f70ff;
|
||||
}
|
||||
|
||||
.item-tit {
|
||||
font-size: .26rem;
|
||||
color: #000;
|
||||
font-weight: bold;
|
||||
margin-bottom: .1rem;
|
||||
}
|
||||
|
||||
.item-detail {
|
||||
color: #666;
|
||||
font-size: .22rem;
|
||||
margin: .15rem 0;
|
||||
line-height: 1.4;
|
||||
}
|
||||
|
||||
.item-desc {
|
||||
color: #666;
|
||||
background-color: #f8f9fa;
|
||||
font-size: .2rem;
|
||||
padding: .08rem .12rem;
|
||||
border-radius: .1rem;
|
||||
margin-bottom: .15rem;
|
||||
border: .01rem solid #e9ecef;
|
||||
}
|
||||
|
||||
.item-btn {
|
||||
width: 100%;
|
||||
display: flex;
|
||||
// justify-content: flex-end;
|
||||
padding-top: .2rem;
|
||||
.btn {
|
||||
background: linear-gradient(90deg, #275AFF 0%, #2EBDFA 100%);
|
||||
border-radius: 0.04rem;
|
||||
// padding: 0.08rem ;
|
||||
padding: .08rem 0;
|
||||
width: calc(100% - 0.4rem);
|
||||
|
||||
text-align: center;
|
||||
color: #fff;
|
||||
font-size: 0.182rem;
|
||||
cursor: pointer;
|
||||
transition: all 0.3s ease;
|
||||
border: none;
|
||||
position: absolute;
|
||||
bottom: 0.2rem;
|
||||
|
||||
&:hover {
|
||||
background: linear-gradient(90deg, #0d5aff, #2a7aff);
|
||||
transform: translateY(-0.02rem);
|
||||
box-shadow: 0 .04rem .1rem rgba(31, 112, 255, 0.3);
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
.search {
|
||||
width: 100%;
|
||||
margin: .3rem 0;
|
||||
padding: 0 .3rem;
|
||||
|
||||
.search-box {
|
||||
display: flex;
|
||||
justify-content: space-between;
|
||||
background-color: #f8f9fa;
|
||||
border-radius: .3rem;
|
||||
overflow: hidden;
|
||||
transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
|
||||
border: .02rem solid #e9ecef;
|
||||
box-shadow: 0 .02rem .06rem rgba(0, 0, 0, 0.04);
|
||||
|
||||
// &:hover {
|
||||
// border-color: #ced4da;
|
||||
// background-color: #fff;
|
||||
// box-shadow: 0 .04rem .12rem rgba(0, 0, 0, 0.08);
|
||||
// }
|
||||
|
||||
&:focus-within {
|
||||
// border-color: #1f70ff;
|
||||
// background-color: #fff;
|
||||
// box-shadow: 0 .04rem .16rem rgba(31, 112, 255, 0.15);
|
||||
transform: translateY(-0.01rem);
|
||||
}
|
||||
}
|
||||
|
||||
.search-btn {
|
||||
display: flex;
|
||||
justify-content: center;
|
||||
align-items: center;
|
||||
width: 18%;
|
||||
color: #fff;
|
||||
padding: .18rem 0;
|
||||
background: linear-gradient(90deg, #1f70ff, #3a8cff);
|
||||
border-bottom-right-radius: .3rem;
|
||||
border-top-right-radius: .3rem;
|
||||
font-size: .28rem;
|
||||
font-weight: 500;
|
||||
cursor: pointer;
|
||||
transition: all 0.3s ease;
|
||||
position: relative;
|
||||
overflow: hidden;
|
||||
|
||||
&::after {
|
||||
content: '';
|
||||
position: absolute;
|
||||
top: 0;
|
||||
left: -100%;
|
||||
width: 100%;
|
||||
height: 100%;
|
||||
background: linear-gradient(90deg,
|
||||
rgba(255, 255, 255, 0) 0%,
|
||||
rgba(255, 255, 255, 0.2) 50%,
|
||||
rgba(255, 255, 255, 0) 100%);
|
||||
transition: left 0.5s ease;
|
||||
}
|
||||
|
||||
&:hover {
|
||||
background: linear-gradient(90deg, #0d5aff, #2a7aff);
|
||||
width: 20%;
|
||||
|
||||
&::after {
|
||||
left: 100%;
|
||||
}
|
||||
}
|
||||
|
||||
&:active {
|
||||
background: linear-gradient(90deg, #0a50e6, #2575e6);
|
||||
transform: scale(0.98);
|
||||
}
|
||||
}
|
||||
|
||||
.input {
|
||||
flex: 1;
|
||||
padding: .16rem 0;
|
||||
padding-left: .25rem;
|
||||
display: flex;
|
||||
align-items: center;
|
||||
|
||||
input {
|
||||
border: none;
|
||||
outline: none;
|
||||
background: none;
|
||||
padding: 0;
|
||||
margin: 0;
|
||||
width: 100%;
|
||||
font-size: .26rem;
|
||||
color: #333;
|
||||
line-height: 1.4;
|
||||
|
||||
&::placeholder {
|
||||
color: #adb5bd;
|
||||
font-size: .24rem;
|
||||
transition: color 0.3s ease;
|
||||
}
|
||||
|
||||
&:focus {
|
||||
&::placeholder {
|
||||
color: #868e96;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
/* 为供应商容器和产品列表添加搜索状态样式 */
|
||||
.supplier-container {
|
||||
transition: opacity 0.3s ease;
|
||||
}
|
||||
|
||||
.box {
|
||||
transition: transform 0.3s ease;
|
||||
}
|
||||
|
||||
/* 当有搜索关键词时,调整一些元素的样式 */
|
||||
:global {
|
||||
body.search-active {
|
||||
.supplier-container {
|
||||
opacity: 0.8;
|
||||
}
|
||||
|
||||
.box {
|
||||
animation: searchResultAppear 0.4s ease;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@keyframes searchResultAppear {
|
||||
0% {
|
||||
opacity: 0;
|
||||
transform: translateY(.1rem);
|
||||
}
|
||||
|
||||
100% {
|
||||
opacity: 1;
|
||||
transform: translateY(0);
|
||||
}
|
||||
}
|
||||
|
||||
/* 响应式调整 */
|
||||
@media (max-width: 480px) {
|
||||
.search {
|
||||
padding: 0 .2rem;
|
||||
margin: .25rem 0;
|
||||
|
||||
.search-box {
|
||||
border-radius: .25rem;
|
||||
}
|
||||
|
||||
.search-btn {
|
||||
font-size: .26rem;
|
||||
padding: .16rem 0;
|
||||
}
|
||||
|
||||
.input {
|
||||
padding: .14rem 0;
|
||||
padding-left: .2rem;
|
||||
|
||||
input {
|
||||
font-size: .24rem;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
251
f/web-kboss/src/views/H5/less/cloud/cloud.css
Normal file
@ -0,0 +1,251 @@
|
||||
.top-tit {
|
||||
display: flex;
|
||||
justify-content: center;
|
||||
background: linear-gradient(90deg, #275AFF 0%, #2EBDFA 100%);
|
||||
-webkit-background-clip: text;
|
||||
-webkit-text-fill-color: transparent;
|
||||
background-clip: text;
|
||||
font-size: 0.39rem;
|
||||
/* 增大30%: .3rem * 1.3 = .39rem */
|
||||
font-weight: bold;
|
||||
margin: 0.3rem 0;
|
||||
}
|
||||
.supplier-container {
|
||||
display: flex;
|
||||
flex-wrap: wrap;
|
||||
/* 允许换行 */
|
||||
padding: 0.2rem 0.22rem;
|
||||
gap: 0.15rem;
|
||||
/* 使用gap控制间距 */
|
||||
}
|
||||
.supplier {
|
||||
flex-shrink: 0;
|
||||
/* 防止收缩 */
|
||||
}
|
||||
.supplier .supplier-title {
|
||||
font-size: 0.28rem;
|
||||
/* 修改为下方代码的字体大小 */
|
||||
color: #000;
|
||||
padding: 0.12rem 0.2rem;
|
||||
background-color: #f5f5f5;
|
||||
border-radius: 0.12rem;
|
||||
cursor: pointer;
|
||||
transition: all 0.3s ease;
|
||||
white-space: nowrap;
|
||||
/* 防止文字换行 */
|
||||
}
|
||||
.supplier .supplier-title:hover {
|
||||
background-color: #e0e0e0;
|
||||
transform: translateY(-0.02rem);
|
||||
box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
|
||||
}
|
||||
.supplier .supplier-title.active {
|
||||
background: linear-gradient(90deg, #275aff, #2ebdfa);
|
||||
color: #fff;
|
||||
box-shadow: 0 0.04rem 0.12rem rgba(39, 90, 255, 0.3);
|
||||
transform: translateY(-0.02rem);
|
||||
}
|
||||
.box {
|
||||
width: 100%;
|
||||
display: flex;
|
||||
flex-wrap: wrap;
|
||||
justify-content: space-between;
|
||||
padding: 0 0.3rem;
|
||||
}
|
||||
.box .box-item {
|
||||
position: relative;
|
||||
display: flex;
|
||||
width: 48%;
|
||||
flex-direction: column;
|
||||
align-items: self-start;
|
||||
border: 0.02rem solid #f0f0f0;
|
||||
border-radius: 0.2rem;
|
||||
padding: 0.15rem 0.2rem;
|
||||
margin: 0.34rem 0;
|
||||
transition: all 0.3s ease;
|
||||
padding-bottom: 0.6rem;
|
||||
}
|
||||
.box .box-item:hover {
|
||||
transform: translateY(-0.05rem);
|
||||
box-shadow: 0 0.08rem 0.2rem rgba(0, 0, 0, 0.1);
|
||||
border-color: #1f70ff;
|
||||
}
|
||||
.box .box-item .item-tit {
|
||||
font-size: 0.26rem;
|
||||
/* 修改为下方代码的字体大小 */
|
||||
color: #000;
|
||||
font-weight: bold;
|
||||
margin-bottom: 0.1rem;
|
||||
}
|
||||
.box .box-item .item-detail {
|
||||
color: #666;
|
||||
font-size: 0.22rem;
|
||||
/* 修改为下方代码的字体大小 */
|
||||
margin: 0.15rem 0;
|
||||
line-height: 1.4;
|
||||
min-height: 0.4rem;
|
||||
}
|
||||
.box .box-item .item-desc {
|
||||
color: #666;
|
||||
background-color: #f8f9fa;
|
||||
font-size: 0.2rem;
|
||||
/* 修改为下方代码的字体大小 */
|
||||
padding: 0.08rem 0.12rem;
|
||||
border-radius: 0.1rem;
|
||||
margin-bottom: 0.15rem;
|
||||
border: 0.01rem solid #e9ecef;
|
||||
min-height: 0.32rem;
|
||||
display: flex;
|
||||
align-items: center;
|
||||
}
|
||||
.box .box-item .item-btn {
|
||||
width: 100%;
|
||||
display: flex;
|
||||
padding-top: 0.2rem;
|
||||
}
|
||||
.box .box-item .item-btn .btn {
|
||||
background: linear-gradient(90deg, #275AFF 0%, #2EBDFA 100%);
|
||||
border-radius: 0.04rem;
|
||||
padding: 0.08rem 0;
|
||||
width: calc(100% - 0.4rem);
|
||||
text-align: center;
|
||||
color: #fff;
|
||||
font-size: 0.182rem;
|
||||
cursor: pointer;
|
||||
transition: all 0.3s ease;
|
||||
border: none;
|
||||
position: absolute;
|
||||
bottom: 0.2rem;
|
||||
}
|
||||
.box .box-item .item-btn .btn:hover {
|
||||
background: linear-gradient(90deg, #0d5aff, #2a7aff);
|
||||
transform: translateY(-0.02rem);
|
||||
box-shadow: 0 0.04rem 0.1rem rgba(31, 112, 255, 0.3);
|
||||
}
|
||||
.search {
|
||||
width: 100%;
|
||||
margin: 0.3rem 0;
|
||||
padding: 0 0.3rem;
|
||||
}
|
||||
.search .search-box {
|
||||
display: flex;
|
||||
justify-content: space-between;
|
||||
background-color: #f8f9fa;
|
||||
border-radius: 0.3rem;
|
||||
overflow: hidden;
|
||||
transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
|
||||
border: 0.02rem solid #e9ecef;
|
||||
box-shadow: 0 0.02rem 0.06rem rgba(0, 0, 0, 0.04);
|
||||
}
|
||||
.search .search-box:focus-within {
|
||||
transform: translateY(-0.01rem);
|
||||
}
|
||||
.search .search-btn {
|
||||
display: flex;
|
||||
justify-content: center;
|
||||
align-items: center;
|
||||
width: 18%;
|
||||
color: #fff;
|
||||
padding: 0.18rem 0;
|
||||
background: linear-gradient(90deg, #1f70ff, #3a8cff);
|
||||
border-bottom-right-radius: 0.3rem;
|
||||
border-top-right-radius: 0.3rem;
|
||||
font-size: 0.28rem;
|
||||
font-weight: 500;
|
||||
cursor: pointer;
|
||||
transition: all 0.3s ease;
|
||||
position: relative;
|
||||
overflow: hidden;
|
||||
}
|
||||
.search .search-btn::after {
|
||||
content: '';
|
||||
position: absolute;
|
||||
top: 0;
|
||||
left: -100%;
|
||||
width: 100%;
|
||||
height: 100%;
|
||||
background: linear-gradient(90deg, rgba(255, 255, 255, 0) 0%, rgba(255, 255, 255, 0.2) 50%, rgba(255, 255, 255, 0) 100%);
|
||||
transition: left 0.5s ease;
|
||||
}
|
||||
.search .search-btn:hover {
|
||||
background: linear-gradient(90deg, #0d5aff, #2a7aff);
|
||||
width: 20%;
|
||||
}
|
||||
.search .search-btn:hover::after {
|
||||
left: 100%;
|
||||
}
|
||||
.search .search-btn:active {
|
||||
background: linear-gradient(90deg, #0a50e6, #2575e6);
|
||||
transform: scale(0.98);
|
||||
}
|
||||
.search .input {
|
||||
flex: 1;
|
||||
padding: 0.16rem 0;
|
||||
padding-left: 0.25rem;
|
||||
display: flex;
|
||||
align-items: center;
|
||||
}
|
||||
.search .input input {
|
||||
border: none;
|
||||
outline: none;
|
||||
background: none;
|
||||
padding: 0;
|
||||
margin: 0;
|
||||
width: 100%;
|
||||
font-size: 0.26rem;
|
||||
color: #333;
|
||||
line-height: 1.4;
|
||||
}
|
||||
.search .input input::placeholder {
|
||||
color: #adb5bd;
|
||||
font-size: 0.24rem;
|
||||
transition: color 0.3s ease;
|
||||
}
|
||||
.search .input input:focus::placeholder {
|
||||
color: #868e96;
|
||||
}
|
||||
/* 为供应商容器和产品列表添加搜索状态样式 */
|
||||
.supplier-container {
|
||||
transition: opacity 0.3s ease;
|
||||
}
|
||||
.box {
|
||||
transition: transform 0.3s ease;
|
||||
}
|
||||
/* 当有搜索关键词时,调整一些元素的样式 */
|
||||
:global body.search-active .supplier-container {
|
||||
opacity: 0.8;
|
||||
}
|
||||
:global body.search-active .box {
|
||||
animation: searchResultAppear 0.4s ease;
|
||||
}
|
||||
@keyframes searchResultAppear {
|
||||
0% {
|
||||
opacity: 0;
|
||||
transform: translateY(0.1rem);
|
||||
}
|
||||
100% {
|
||||
opacity: 1;
|
||||
transform: translateY(0);
|
||||
}
|
||||
}
|
||||
/* 响应式调整 */
|
||||
@media (max-width: 480px) {
|
||||
.search {
|
||||
padding: 0 0.2rem;
|
||||
margin: 0.25rem 0;
|
||||
}
|
||||
.search .search-box {
|
||||
border-radius: 0.25rem;
|
||||
}
|
||||
.search .search-btn {
|
||||
font-size: 0.26rem;
|
||||
padding: 0.16rem 0;
|
||||
}
|
||||
.search .input {
|
||||
padding: 0.14rem 0;
|
||||
padding-left: 0.2rem;
|
||||
}
|
||||
.search .input input {
|
||||
font-size: 0.24rem;
|
||||
}
|
||||
}
|
||||
312
f/web-kboss/src/views/H5/less/cloud/cloud.less
Normal file
@ -0,0 +1,312 @@
|
||||
.top-tit {
|
||||
display: flex;
|
||||
justify-content: center;
|
||||
background: linear-gradient(90deg, #275AFF 0%, #2EBDFA 100%);
|
||||
-webkit-background-clip: text;
|
||||
-webkit-text-fill-color: transparent;
|
||||
background-clip: text;
|
||||
font-size: .39rem;
|
||||
/* 增大30%: .3rem * 1.3 = .39rem */
|
||||
font-weight: bold;
|
||||
margin: .3rem 0;
|
||||
}
|
||||
|
||||
.supplier-container {
|
||||
display: flex;
|
||||
flex-wrap: wrap;
|
||||
/* 允许换行 */
|
||||
padding: .2rem .22rem;
|
||||
gap: .15rem;
|
||||
/* 使用gap控制间距 */
|
||||
}
|
||||
|
||||
.supplier {
|
||||
flex-shrink: 0;
|
||||
/* 防止收缩 */
|
||||
|
||||
.supplier-title {
|
||||
font-size: .28rem;
|
||||
/* 修改为下方代码的字体大小 */
|
||||
color: #000;
|
||||
padding: .12rem .2rem;
|
||||
background-color: #f5f5f5;
|
||||
border-radius: 0.12rem;
|
||||
cursor: pointer;
|
||||
transition: all 0.3s ease;
|
||||
|
||||
white-space: nowrap;
|
||||
/* 防止文字换行 */
|
||||
|
||||
&:hover {
|
||||
background-color: #e0e0e0;
|
||||
transform: translateY(-0.02rem);
|
||||
box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
|
||||
}
|
||||
|
||||
&.active {
|
||||
background: linear-gradient(90deg, #275aff, #2ebdfa);
|
||||
color: #fff;
|
||||
box-shadow: 0 .04rem .12rem rgba(39, 90, 255, 0.3);
|
||||
transform: translateY(-0.02rem);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
.box {
|
||||
width: 100%;
|
||||
display: flex;
|
||||
flex-wrap: wrap;
|
||||
justify-content: space-between;
|
||||
padding: 0 .3rem;
|
||||
|
||||
.box-item {
|
||||
position: relative;
|
||||
display: flex;
|
||||
width: 48%;
|
||||
flex-direction: column;
|
||||
align-items: self-start;
|
||||
border: .02rem solid #f0f0f0;
|
||||
border-radius: .2rem;
|
||||
padding: .15rem .2rem;
|
||||
margin: .34rem 0;
|
||||
transition: all 0.3s ease;
|
||||
padding-bottom: .6rem;
|
||||
|
||||
&:hover {
|
||||
transform: translateY(-0.05rem);
|
||||
box-shadow: 0 .08rem .2rem rgba(0, 0, 0, 0.1);
|
||||
border-color: #1f70ff;
|
||||
}
|
||||
|
||||
.item-tit {
|
||||
font-size: .26rem;
|
||||
/* 修改为下方代码的字体大小 */
|
||||
color: #000;
|
||||
font-weight: bold;
|
||||
margin-bottom: .1rem;
|
||||
}
|
||||
|
||||
.item-detail {
|
||||
color: #666;
|
||||
font-size: .22rem;
|
||||
/* 修改为下方代码的字体大小 */
|
||||
margin: .15rem 0;
|
||||
line-height: 1.4;
|
||||
min-height: .4rem;
|
||||
// 确保有最小高度
|
||||
}
|
||||
|
||||
.item-desc {
|
||||
color: #666;
|
||||
background-color: #f8f9fa;
|
||||
font-size: .2rem;
|
||||
/* 修改为下方代码的字体大小 */
|
||||
padding: .08rem .12rem;
|
||||
border-radius: .1rem;
|
||||
margin-bottom: .15rem;
|
||||
border: .01rem solid #e9ecef;
|
||||
min-height: .32rem;
|
||||
// 确保有最小高度
|
||||
display: flex;
|
||||
align-items: center;
|
||||
}
|
||||
|
||||
.item-btn {
|
||||
width: 100%;
|
||||
display: flex;
|
||||
// justify-content: flex-end;
|
||||
padding-top: .2rem;
|
||||
|
||||
.btn {
|
||||
background: linear-gradient(90deg, #275AFF 0%, #2EBDFA 100%);
|
||||
border-radius: 0.04rem;
|
||||
// padding: 0.08rem ;
|
||||
padding: .08rem 0;
|
||||
width: calc(100% - 0.4rem);
|
||||
|
||||
text-align: center;
|
||||
color: #fff;
|
||||
font-size: 0.182rem;
|
||||
cursor: pointer;
|
||||
transition: all 0.3s ease;
|
||||
border: none;
|
||||
position: absolute;
|
||||
bottom: 0.2rem;
|
||||
|
||||
&:hover {
|
||||
background: linear-gradient(90deg, #0d5aff, #2a7aff);
|
||||
transform: translateY(-0.02rem);
|
||||
box-shadow: 0 .04rem .1rem rgba(31, 112, 255, 0.3);
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
.search {
|
||||
width: 100%;
|
||||
margin: .3rem 0;
|
||||
padding: 0 .3rem;
|
||||
|
||||
.search-box {
|
||||
display: flex;
|
||||
justify-content: space-between;
|
||||
background-color: #f8f9fa;
|
||||
border-radius: .3rem;
|
||||
overflow: hidden;
|
||||
transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
|
||||
border: .02rem solid #e9ecef;
|
||||
box-shadow: 0 .02rem .06rem rgba(0, 0, 0, 0.04);
|
||||
|
||||
// &:hover {
|
||||
// border-color: #ced4da;
|
||||
// background-color: #fff;
|
||||
// box-shadow: 0 .04rem .12rem rgba(0, 0, 0, 0.08);
|
||||
// }
|
||||
|
||||
&:focus-within {
|
||||
// border-color: #1f70ff;
|
||||
// background-color: #fff;
|
||||
// box-shadow: 0 .04rem .16rem rgba(31, 112, 255, 0.15);
|
||||
transform: translateY(-0.01rem);
|
||||
}
|
||||
}
|
||||
|
||||
.search-btn {
|
||||
display: flex;
|
||||
justify-content: center;
|
||||
align-items: center;
|
||||
width: 18%;
|
||||
color: #fff;
|
||||
padding: .18rem 0;
|
||||
background: linear-gradient(90deg, #1f70ff, #3a8cff);
|
||||
border-bottom-right-radius: .3rem;
|
||||
border-top-right-radius: .3rem;
|
||||
font-size: .28rem;
|
||||
font-weight: 500;
|
||||
cursor: pointer;
|
||||
transition: all 0.3s ease;
|
||||
position: relative;
|
||||
overflow: hidden;
|
||||
|
||||
&::after {
|
||||
content: '';
|
||||
position: absolute;
|
||||
top: 0;
|
||||
left: -100%;
|
||||
width: 100%;
|
||||
height: 100%;
|
||||
background: linear-gradient(90deg,
|
||||
rgba(255, 255, 255, 0) 0%,
|
||||
rgba(255, 255, 255, 0.2) 50%,
|
||||
rgba(255, 255, 255, 0) 100%);
|
||||
transition: left 0.5s ease;
|
||||
}
|
||||
|
||||
&:hover {
|
||||
background: linear-gradient(90deg, #0d5aff, #2a7aff);
|
||||
width: 20%;
|
||||
|
||||
&::after {
|
||||
left: 100%;
|
||||
}
|
||||
}
|
||||
|
||||
&:active {
|
||||
background: linear-gradient(90deg, #0a50e6, #2575e6);
|
||||
transform: scale(0.98);
|
||||
}
|
||||
}
|
||||
|
||||
.input {
|
||||
flex: 1;
|
||||
padding: .16rem 0;
|
||||
padding-left: .25rem;
|
||||
display: flex;
|
||||
align-items: center;
|
||||
|
||||
input {
|
||||
border: none;
|
||||
outline: none;
|
||||
background: none;
|
||||
padding: 0;
|
||||
margin: 0;
|
||||
width: 100%;
|
||||
font-size: .26rem;
|
||||
color: #333;
|
||||
line-height: 1.4;
|
||||
|
||||
&::placeholder {
|
||||
color: #adb5bd;
|
||||
font-size: .24rem;
|
||||
transition: color 0.3s ease;
|
||||
}
|
||||
|
||||
&:focus {
|
||||
&::placeholder {
|
||||
color: #868e96;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
/* 为供应商容器和产品列表添加搜索状态样式 */
|
||||
.supplier-container {
|
||||
transition: opacity 0.3s ease;
|
||||
}
|
||||
|
||||
.box {
|
||||
transition: transform 0.3s ease;
|
||||
}
|
||||
|
||||
/* 当有搜索关键词时,调整一些元素的样式 */
|
||||
:global {
|
||||
body.search-active {
|
||||
.supplier-container {
|
||||
opacity: 0.8;
|
||||
}
|
||||
|
||||
.box {
|
||||
animation: searchResultAppear 0.4s ease;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@keyframes searchResultAppear {
|
||||
0% {
|
||||
opacity: 0;
|
||||
transform: translateY(.1rem);
|
||||
}
|
||||
|
||||
100% {
|
||||
opacity: 1;
|
||||
transform: translateY(0);
|
||||
}
|
||||
}
|
||||
|
||||
/* 响应式调整 */
|
||||
@media (max-width: 480px) {
|
||||
.search {
|
||||
padding: 0 .2rem;
|
||||
margin: .25rem 0;
|
||||
|
||||
.search-box {
|
||||
border-radius: .25rem;
|
||||
}
|
||||
|
||||
.search-btn {
|
||||
font-size: .26rem;
|
||||
padding: .16rem 0;
|
||||
}
|
||||
|
||||
.input {
|
||||
padding: .14rem 0;
|
||||
padding-left: .2rem;
|
||||
|
||||
input {
|
||||
font-size: .24rem;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
503
f/web-kboss/src/views/H5/less/dialog/index.css
Normal file
@ -0,0 +1,503 @@
|
||||
* {
|
||||
touch-action: manipulation;
|
||||
box-sizing: border-box;
|
||||
}
|
||||
::v-deep .el-dialog__wrapper .el-dialog .el-dialog__body .el-input .el-input__inner,
|
||||
::v-deep .el-dialog__wrapper .el-dialog .el-dialog__body .el-textarea .el-input__inner,
|
||||
::v-deep .el-dialog__wrapper .el-dialog .el-dialog__body .el-input .el-textarea__inner,
|
||||
::v-deep .el-dialog__wrapper .el-dialog .el-dialog__body .el-textarea .el-textarea__inner {
|
||||
touch-action: manipulation;
|
||||
-webkit-tap-highlight-color: transparent;
|
||||
}
|
||||
.dialog-tit {
|
||||
font-size: 0.4rem;
|
||||
color: #333;
|
||||
padding: 0.2rem 0 0.4rem;
|
||||
border-bottom: 1px solid #f0f0f0;
|
||||
margin-bottom: 0.4rem;
|
||||
}
|
||||
.dialog-tit .pc-tip {
|
||||
display: flex;
|
||||
align-items: center;
|
||||
margin-bottom: 0.3rem;
|
||||
color: #ff6b35;
|
||||
font-weight: 500;
|
||||
}
|
||||
.dialog-tit .pc-tip i {
|
||||
margin-right: 0.2rem;
|
||||
font-size: 0.42rem;
|
||||
}
|
||||
.dialog-tit .pc-tip span {
|
||||
font-size: 0.36rem;
|
||||
}
|
||||
.url_box {
|
||||
display: flex;
|
||||
align-items: center;
|
||||
justify-content: space-between;
|
||||
margin-top: 0.2rem;
|
||||
}
|
||||
.url-container {
|
||||
display: flex;
|
||||
align-items: center;
|
||||
position: relative;
|
||||
flex: 1;
|
||||
}
|
||||
.url-container .url {
|
||||
display: inline-flex;
|
||||
align-items: center;
|
||||
color: #275aff;
|
||||
text-decoration: none;
|
||||
padding: 0.12rem 0.24rem;
|
||||
border-radius: 0.24rem;
|
||||
transition: all 0.3s ease;
|
||||
cursor: pointer;
|
||||
user-select: none;
|
||||
border: 1px solid transparent;
|
||||
background: #f5f7ff;
|
||||
margin-left: 0.2rem;
|
||||
}
|
||||
.url-container .url:hover {
|
||||
background-color: #e8edff;
|
||||
border-color: #275aff;
|
||||
transform: translateY(-0.04rem);
|
||||
box-shadow: 0 0.08rem 0.32rem rgba(39, 90, 255, 0.15);
|
||||
}
|
||||
.url-container .url.copied {
|
||||
background-color: #e1f3d8;
|
||||
border-color: #67c23a;
|
||||
color: #67c23a;
|
||||
}
|
||||
.url-container .url.copied:hover {
|
||||
background-color: #d1edc4;
|
||||
border-color: #5daf34;
|
||||
}
|
||||
.url-container .tooltip {
|
||||
position: absolute;
|
||||
bottom: 100%;
|
||||
left: 50%;
|
||||
transform: translateX(-50%) translateY(-0.16rem);
|
||||
background-color: rgba(0, 0, 0, 0.85);
|
||||
color: white;
|
||||
font-size: 0.24rem;
|
||||
padding: 0.08rem 0.16rem;
|
||||
border-radius: 0.16rem;
|
||||
white-space: nowrap;
|
||||
z-index: 1000;
|
||||
opacity: 0;
|
||||
transition: opacity 0.2s, transform 0.2s;
|
||||
pointer-events: none;
|
||||
}
|
||||
.url-container .tooltip::after {
|
||||
content: '';
|
||||
position: absolute;
|
||||
top: 100%;
|
||||
left: 50%;
|
||||
transform: translateX(-50%);
|
||||
border-width: 0.08rem;
|
||||
border-style: solid;
|
||||
border-color: rgba(0, 0, 0, 0.85) transparent transparent transparent;
|
||||
}
|
||||
.url-container .tooltip.tooltip-visible {
|
||||
opacity: 1;
|
||||
transform: translateX(-50%) translateY(0);
|
||||
}
|
||||
.url_btn {
|
||||
margin-left: 0.4rem;
|
||||
}
|
||||
.url_btn .copy-hint {
|
||||
display: inline-block;
|
||||
font-size: 0.26rem;
|
||||
color: #000;
|
||||
padding: 0.1rem 0.2rem;
|
||||
border-radius: 0.12rem;
|
||||
border: 1px solid #000;
|
||||
transition: all 0.2s;
|
||||
cursor: pointer;
|
||||
user-select: none;
|
||||
min-width: 1.2rem;
|
||||
text-align: center;
|
||||
}
|
||||
.url_btn .copy-hint:hover {
|
||||
color: #275aff;
|
||||
border-color: #275aff;
|
||||
}
|
||||
.url.copied .url_btn .copy-hint {
|
||||
color: #67c23a;
|
||||
border-color: #67c23a;
|
||||
}
|
||||
.check-tit {
|
||||
font-size: 0.16rem;
|
||||
color: #666;
|
||||
line-height: 1;
|
||||
margin: 0.08rem 0;
|
||||
font-weight: normal;
|
||||
}
|
||||
.check-tit span {
|
||||
color: #275aff;
|
||||
font-weight: 500;
|
||||
margin: 0 0.04rem;
|
||||
}
|
||||
::v-deep .product-consult-dialog.el-dialog {
|
||||
border-radius: 0.32rem;
|
||||
overflow: hidden;
|
||||
box-shadow: 0 0.4rem 1.6rem rgba(0, 0, 0, 0.15);
|
||||
}
|
||||
::v-deep .product-consult-dialog.el-dialog .el-dialog__header {
|
||||
padding: 0.4rem 0.6rem 0.3rem;
|
||||
border-bottom: 1px solid #f0f0f0;
|
||||
background: linear-gradient(135deg, #f8f9ff 0%, #ffffff 100%);
|
||||
margin-bottom: 0;
|
||||
}
|
||||
::v-deep .product-consult-dialog.el-dialog .el-dialog__header .el-dialog__title {
|
||||
font-size: 0.4rem;
|
||||
font-weight: 600;
|
||||
color: #1a1a1a;
|
||||
}
|
||||
::v-deep .product-consult-dialog.el-dialog .el-dialog__header .el-dialog__headerbtn {
|
||||
top: 0.4rem;
|
||||
right: 0.4rem;
|
||||
}
|
||||
::v-deep .product-consult-dialog.el-dialog .el-dialog__header .el-dialog__headerbtn .el-dialog__close {
|
||||
font-size: 0.36rem;
|
||||
color: #999;
|
||||
}
|
||||
::v-deep .product-consult-dialog.el-dialog .el-dialog__header .el-dialog__headerbtn .el-dialog__close:hover {
|
||||
color: #275aff;
|
||||
}
|
||||
::v-deep .product-consult-dialog.el-dialog .el-dialog__body {
|
||||
padding: 0.2rem 0.6rem;
|
||||
max-height: 70vh;
|
||||
overflow-y: auto;
|
||||
-webkit-overflow-scrolling: touch;
|
||||
}
|
||||
::v-deep .product-consult-dialog.el-dialog .el-dialog__body.is-mobile-scroll {
|
||||
touch-action: pan-y;
|
||||
}
|
||||
::v-deep .product-consult-dialog.el-dialog .el-dialog__footer {
|
||||
padding: 0.4rem 0.6rem;
|
||||
border-top: 1px solid #f0f0f0;
|
||||
background: #fafbfc;
|
||||
}
|
||||
::v-deep .el-form .el-form-item {
|
||||
margin-bottom: 0.4rem;
|
||||
}
|
||||
::v-deep .el-form .el-form-item .el-form-item__label {
|
||||
padding-bottom: 0.12rem;
|
||||
font-size: 0.32rem;
|
||||
font-weight: 500;
|
||||
color: #333;
|
||||
line-height: 1.5;
|
||||
}
|
||||
::v-deep .el-form .el-form-item .el-input .el-input__inner,
|
||||
::v-deep .el-form .el-form-item .el-textarea .el-input__inner,
|
||||
::v-deep .el-form .el-form-item .el-input .el-textarea__inner,
|
||||
::v-deep .el-form .el-form-item .el-textarea .el-textarea__inner {
|
||||
font-size: 0.32rem;
|
||||
border: 1px solid #dcdfe6;
|
||||
border-radius: 0.24rem;
|
||||
transition: all 0.3s;
|
||||
padding: 0.24rem 0.32rem;
|
||||
color: #333;
|
||||
touch-action: manipulation;
|
||||
-webkit-tap-highlight-color: transparent;
|
||||
}
|
||||
::v-deep .el-form .el-form-item .el-input .el-input__inner:hover,
|
||||
::v-deep .el-form .el-form-item .el-textarea .el-input__inner:hover,
|
||||
::v-deep .el-form .el-form-item .el-input .el-textarea__inner:hover,
|
||||
::v-deep .el-form .el-form-item .el-textarea .el-textarea__inner:hover {
|
||||
border-color: #c0c4cc;
|
||||
}
|
||||
::v-deep .el-form .el-form-item .el-input .el-input__inner:focus,
|
||||
::v-deep .el-form .el-form-item .el-textarea .el-input__inner:focus,
|
||||
::v-deep .el-form .el-form-item .el-input .el-textarea__inner:focus,
|
||||
::v-deep .el-form .el-form-item .el-textarea .el-textarea__inner:focus {
|
||||
border-color: #275aff;
|
||||
box-shadow: 0 0 0 0.04rem rgba(39, 90, 255, 0.1);
|
||||
}
|
||||
::v-deep .el-form .el-form-item .el-input .el-input__inner::placeholder,
|
||||
::v-deep .el-form .el-form-item .el-textarea .el-input__inner::placeholder,
|
||||
::v-deep .el-form .el-form-item .el-input .el-textarea__inner::placeholder,
|
||||
::v-deep .el-form .el-form-item .el-textarea .el-textarea__inner::placeholder {
|
||||
color: #999;
|
||||
font-size: 0.28rem;
|
||||
}
|
||||
::v-deep .el-form .el-form-item .el-textarea__inner {
|
||||
min-height: 2.4rem;
|
||||
line-height: 1.5;
|
||||
resize: vertical;
|
||||
}
|
||||
::v-deep .el-form .el-form-item .el-radio {
|
||||
margin-right: 0.6rem;
|
||||
}
|
||||
::v-deep .el-form .el-form-item .el-radio .el-radio__label {
|
||||
font-size: 0.32rem;
|
||||
color: #666;
|
||||
}
|
||||
::v-deep .el-form .el-form-item .el-radio .el-radio__inner {
|
||||
width: 0.36rem;
|
||||
height: 0.36rem;
|
||||
}
|
||||
::v-deep .el-form .el-form-item .el-radio .el-radio__inner::after {
|
||||
width: 0.18rem;
|
||||
height: 0.18rem;
|
||||
}
|
||||
.agreement-checkbox {
|
||||
margin: 0.4rem 0 0.6rem;
|
||||
display: flex;
|
||||
align-items: center;
|
||||
color: #666;
|
||||
width: 100%;
|
||||
overflow: visible;
|
||||
}
|
||||
.agreement-checkbox ::v-deep .el-checkbox {
|
||||
display: flex;
|
||||
align-items: flex-start;
|
||||
width: 100%;
|
||||
}
|
||||
.agreement-checkbox ::v-deep .el-checkbox .el-checkbox__label {
|
||||
color: #666;
|
||||
padding-left: 0.16rem;
|
||||
white-space: normal;
|
||||
word-wrap: break-word;
|
||||
word-break: break-word;
|
||||
overflow-wrap: break-word;
|
||||
width: calc(100% - 0.48rem);
|
||||
font-size: 0.16rem;
|
||||
line-height: 1.5;
|
||||
}
|
||||
.agreement-checkbox ::v-deep .el-checkbox .el-checkbox__label .agreement-text {
|
||||
width: 100%;
|
||||
font-size: 0.16rem;
|
||||
}
|
||||
.agreement-checkbox ::v-deep .el-checkbox .el-checkbox__label .agreement-text p {
|
||||
margin: 0.08rem 0;
|
||||
}
|
||||
.agreement-checkbox ::v-deep .el-checkbox .el-checkbox__inner {
|
||||
flex-shrink: 0;
|
||||
width: 0.32rem;
|
||||
height: 0.32rem;
|
||||
border-radius: 0.08rem;
|
||||
margin-top: 0.04rem;
|
||||
}
|
||||
.agreement-checkbox ::v-deep .el-checkbox .el-checkbox__inner::after {
|
||||
border-width: 0.04rem;
|
||||
left: 0.1rem;
|
||||
top: 0.04rem;
|
||||
}
|
||||
.qrcode-section {
|
||||
margin: 0.4rem 0 0.6rem;
|
||||
padding: 0.4rem;
|
||||
background: #f8f9ff;
|
||||
border-radius: 0.32rem;
|
||||
border: 1px solid #e8edff;
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
align-items: center;
|
||||
text-align: center;
|
||||
}
|
||||
.qrcode-section img {
|
||||
width: 3.2rem;
|
||||
height: 3.2rem;
|
||||
object-fit: contain;
|
||||
margin-bottom: 0.4rem;
|
||||
border-radius: 0.16rem;
|
||||
box-shadow: 0 0.08rem 0.32rem rgba(0, 0, 0, 0.1);
|
||||
}
|
||||
.qrcode-section span {
|
||||
font-size: 0.28rem;
|
||||
color: #666;
|
||||
line-height: 1.5;
|
||||
}
|
||||
.dialog-footer ::v-deep .el-button {
|
||||
min-width: 2.4rem;
|
||||
height: 0.88rem;
|
||||
font-size: 0.32rem;
|
||||
border-radius: 0.44rem;
|
||||
padding: 0 0.8rem;
|
||||
font-weight: 500;
|
||||
border: none;
|
||||
background: linear-gradient(135deg, #275aff 0%, #5a7dff 100%);
|
||||
box-shadow: 0 0.08rem 0.32rem rgba(39, 90, 255, 0.3);
|
||||
transition: all 0.3s;
|
||||
}
|
||||
.dialog-footer ::v-deep .el-button:hover {
|
||||
transform: translateY(-0.04rem);
|
||||
box-shadow: 0 0.16rem 0.48rem rgba(39, 90, 255, 0.4);
|
||||
}
|
||||
.dialog-footer ::v-deep .el-button:active {
|
||||
transform: translateY(0);
|
||||
}
|
||||
.dialog-footer ::v-deep .el-button .el-icon-loading {
|
||||
font-size: 0.32rem;
|
||||
}
|
||||
:deep(.el-message) {
|
||||
font-size: 0.32rem !important;
|
||||
min-width: auto !important;
|
||||
padding: 0.24rem 0.4rem !important;
|
||||
border-radius: 0.32rem !important;
|
||||
box-shadow: 0 0.16rem 0.48rem rgba(0, 0, 0, 0.15) !important;
|
||||
border: none !important;
|
||||
}
|
||||
:deep(.el-message__content) {
|
||||
font-size: 0.32rem !important;
|
||||
line-height: 1.5 !important;
|
||||
}
|
||||
@media screen and (max-width: 750px) {
|
||||
.dialog-tit {
|
||||
font-size: 0.32rem;
|
||||
padding: 0.15rem 0 0.3rem;
|
||||
}
|
||||
.dialog-tit .pc-tip i {
|
||||
font-size: 0.34rem;
|
||||
}
|
||||
.dialog-tit .pc-tip span {
|
||||
font-size: 0.3rem;
|
||||
}
|
||||
.url_box {
|
||||
flex-direction: column;
|
||||
align-items: flex-start;
|
||||
gap: 0.2rem;
|
||||
}
|
||||
.url-container {
|
||||
width: 100%;
|
||||
flex-direction: column;
|
||||
align-items: flex-start;
|
||||
}
|
||||
.url-container .url {
|
||||
width: 100%;
|
||||
padding: 0.1rem 0.2rem;
|
||||
font-size: 0.28rem;
|
||||
margin: 0.1rem 0 0;
|
||||
box-sizing: border-box;
|
||||
}
|
||||
.url_btn {
|
||||
margin-left: 0;
|
||||
width: 100%;
|
||||
display: flex;
|
||||
justify-content: center;
|
||||
}
|
||||
.url_btn .copy-hint {
|
||||
width: 100%;
|
||||
max-width: 3rem;
|
||||
font-size: 0.24rem;
|
||||
padding: 0.12rem 0.24rem;
|
||||
text-align: center;
|
||||
}
|
||||
.check-tit {
|
||||
font-size: 0.16rem;
|
||||
line-height: 1.6;
|
||||
font-weight: 600;
|
||||
}
|
||||
::v-deep .product-consult-dialog.el-dialog {
|
||||
width: 90% !important;
|
||||
margin-top: 10vh !important;
|
||||
border-radius: 0.24rem;
|
||||
}
|
||||
::v-deep .product-consult-dialog.el-dialog .el-dialog__header {
|
||||
padding: 0.25rem 0.3rem 0.2rem;
|
||||
}
|
||||
::v-deep .product-consult-dialog.el-dialog .el-dialog__header .el-dialog__title {
|
||||
font-size: 0.34rem;
|
||||
}
|
||||
::v-deep .product-consult-dialog.el-dialog .el-dialog__body {
|
||||
padding: 0.2rem 0.3rem;
|
||||
-webkit-overflow-scrolling: touch;
|
||||
max-height: 60vh;
|
||||
}
|
||||
::v-deep .product-consult-dialog.el-dialog .el-dialog__footer {
|
||||
padding: 0.25rem 0.3rem;
|
||||
}
|
||||
::v-deep .el-form .el-form-item {
|
||||
margin-bottom: 0.3rem;
|
||||
}
|
||||
::v-deep .el-form .el-form-item .el-form-item__label {
|
||||
font-size: 0.28rem;
|
||||
}
|
||||
::v-deep .el-form .el-form-item .el-input .el-input__inner,
|
||||
::v-deep .el-form .el-form-item .el-textarea .el-input__inner,
|
||||
::v-deep .el-form .el-form-item .el-input .el-textarea__inner,
|
||||
::v-deep .el-form .el-form-item .el-textarea .el-textarea__inner {
|
||||
font-size: 0.28rem;
|
||||
padding: 0.2rem 0.24rem;
|
||||
-webkit-appearance: none;
|
||||
appearance: none;
|
||||
}
|
||||
::v-deep .el-form .el-form-item .el-radio .el-radio__label {
|
||||
font-size: 0.28rem;
|
||||
}
|
||||
.agreement-checkbox {
|
||||
margin: 0.3rem 0 0.4rem;
|
||||
}
|
||||
.agreement-checkbox ::v-deep .el-checkbox .el-checkbox__label {
|
||||
font-size: 0.22rem !important;
|
||||
padding-left: 0.12rem;
|
||||
line-height: 1.6;
|
||||
}
|
||||
.agreement-checkbox ::v-deep .el-checkbox .el-checkbox__inner {
|
||||
width: 0.28rem;
|
||||
height: 0.28rem;
|
||||
margin-top: 0.02rem;
|
||||
}
|
||||
.agreement-checkbox ::v-deep .el-checkbox .el-checkbox__inner::after {
|
||||
left: 0.08rem;
|
||||
top: 0.02rem;
|
||||
border-width: 0.03rem;
|
||||
}
|
||||
.qrcode-section {
|
||||
padding: 0.3rem;
|
||||
margin: 0.3rem 0 0.4rem;
|
||||
}
|
||||
.qrcode-section img {
|
||||
width: 2.4rem;
|
||||
height: 2.4rem;
|
||||
margin-bottom: 0.3rem;
|
||||
}
|
||||
.qrcode-section span {
|
||||
font-size: 0.24rem;
|
||||
}
|
||||
.dialog-footer ::v-deep .el-button {
|
||||
min-width: 100%;
|
||||
height: 0.8rem;
|
||||
font-size: 0.28rem;
|
||||
padding: 0;
|
||||
margin: 0;
|
||||
}
|
||||
}
|
||||
@media screen and (min-width: 751px) and (max-width: 1200px) {
|
||||
::v-deep .product-consult-dialog.el-dialog {
|
||||
width: 70% !important;
|
||||
}
|
||||
.agreement-checkbox ::v-deep .el-checkbox .el-checkbox__label {
|
||||
font-size: 0.26rem !important;
|
||||
}
|
||||
}
|
||||
@media screen and (max-width: 750px) {
|
||||
.url,
|
||||
.url_btn .copy-hint,
|
||||
.el-checkbox__inner,
|
||||
.el-radio__inner,
|
||||
.el-button {
|
||||
cursor: pointer;
|
||||
-webkit-tap-highlight-color: transparent;
|
||||
}
|
||||
.el-input__inner,
|
||||
.el-textarea__inner {
|
||||
font-size: 16px !important;
|
||||
-webkit-appearance: none;
|
||||
appearance: none;
|
||||
}
|
||||
.product-consult-dialog {
|
||||
pointer-events: auto !important;
|
||||
}
|
||||
.el-dialog__wrapper {
|
||||
position: fixed;
|
||||
top: 0;
|
||||
right: 0;
|
||||
bottom: 0;
|
||||
left: 0;
|
||||
overflow: hidden;
|
||||
}
|
||||
.el-dialog__wrapper.el-dialog__wrapper--fixed {
|
||||
touch-action: none;
|
||||
}
|
||||
}
|
||||
640
f/web-kboss/src/views/H5/less/dialog/index.less
Normal file
@ -0,0 +1,640 @@
|
||||
// 基础样式
|
||||
* {
|
||||
touch-action: manipulation;
|
||||
box-sizing: border-box;
|
||||
}
|
||||
|
||||
// 修复移动端输入框点击问题
|
||||
::v-deep .el-dialog__wrapper {
|
||||
.el-dialog {
|
||||
.el-dialog__body {
|
||||
.el-input,
|
||||
.el-textarea {
|
||||
.el-input__inner,
|
||||
.el-textarea__inner {
|
||||
// 确保移动端点击区域正常
|
||||
touch-action: manipulation;
|
||||
-webkit-tap-highlight-color: transparent;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
// 头部样式
|
||||
.dialog-tit {
|
||||
font-size: 0.4rem;
|
||||
color: #333;
|
||||
padding: 0.2rem 0 0.4rem;
|
||||
border-bottom: 1px solid #f0f0f0;
|
||||
margin-bottom: 0.4rem;
|
||||
|
||||
.pc-tip {
|
||||
display: flex;
|
||||
align-items: center;
|
||||
margin-bottom: 0.3rem;
|
||||
color: #ff6b35;
|
||||
font-weight: 500;
|
||||
|
||||
i {
|
||||
margin-right: 0.2rem;
|
||||
font-size: 0.42rem;
|
||||
}
|
||||
|
||||
span {
|
||||
font-size: 0.36rem;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
.url_box {
|
||||
display: flex;
|
||||
align-items: center;
|
||||
justify-content: space-between;
|
||||
margin-top: 0.2rem;
|
||||
}
|
||||
|
||||
.url-container {
|
||||
display: flex;
|
||||
align-items: center;
|
||||
position: relative;
|
||||
flex: 1;
|
||||
|
||||
.url {
|
||||
display: inline-flex;
|
||||
align-items: center;
|
||||
color: #275aff;
|
||||
text-decoration: none;
|
||||
padding: 0.12rem 0.24rem;
|
||||
border-radius: 0.24rem;
|
||||
transition: all 0.3s ease;
|
||||
cursor: pointer;
|
||||
user-select: none;
|
||||
border: 1px solid transparent;
|
||||
background: #f5f7ff;
|
||||
margin-left: 0.2rem;
|
||||
|
||||
&:hover {
|
||||
background-color: #e8edff;
|
||||
border-color: #275aff;
|
||||
transform: translateY(-0.04rem);
|
||||
box-shadow: 0 0.08rem 0.32rem rgba(39, 90, 255, 0.15);
|
||||
}
|
||||
|
||||
&.copied {
|
||||
background-color: #e1f3d8;
|
||||
border-color: #67c23a;
|
||||
color: #67c23a;
|
||||
|
||||
&:hover {
|
||||
background-color: #d1edc4;
|
||||
border-color: #5daf34;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
.tooltip {
|
||||
position: absolute;
|
||||
bottom: 100%;
|
||||
left: 50%;
|
||||
transform: translateX(-50%) translateY(-0.16rem);
|
||||
background-color: rgba(0, 0, 0, 0.85);
|
||||
color: white;
|
||||
font-size: 0.24rem;
|
||||
padding: 0.08rem 0.16rem;
|
||||
border-radius: 0.16rem;
|
||||
white-space: nowrap;
|
||||
z-index: 1000;
|
||||
opacity: 0;
|
||||
transition: opacity 0.2s, transform 0.2s;
|
||||
pointer-events: none;
|
||||
|
||||
&::after {
|
||||
content: '';
|
||||
position: absolute;
|
||||
top: 100%;
|
||||
left: 50%;
|
||||
transform: translateX(-50%);
|
||||
border-width: 0.08rem;
|
||||
border-style: solid;
|
||||
border-color: rgba(0, 0, 0, 0.85) transparent transparent transparent;
|
||||
}
|
||||
|
||||
&.tooltip-visible {
|
||||
opacity: 1;
|
||||
transform: translateX(-50%) translateY(0);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
.url_btn {
|
||||
margin-left: 0.4rem;
|
||||
|
||||
.copy-hint {
|
||||
display: inline-block;
|
||||
font-size: 0.26rem;
|
||||
color: #000;
|
||||
padding: 0.1rem 0.2rem;
|
||||
border-radius: 0.12rem;
|
||||
border: 1px solid #000;
|
||||
transition: all 0.2s;
|
||||
cursor: pointer;
|
||||
user-select: none;
|
||||
min-width: 1.2rem;
|
||||
text-align: center;
|
||||
|
||||
&:hover {
|
||||
color: #275aff;
|
||||
border-color: #275aff;
|
||||
}
|
||||
}
|
||||
|
||||
.url.copied & .copy-hint {
|
||||
color: #67c23a;
|
||||
border-color: #67c23a;
|
||||
}
|
||||
}
|
||||
|
||||
.check-tit {
|
||||
font-size: 0.16rem;
|
||||
color: #666;
|
||||
line-height: 1;
|
||||
margin: 0.08rem 0;
|
||||
font-weight: normal;
|
||||
|
||||
span {
|
||||
color: #275aff;
|
||||
font-weight: 500;
|
||||
margin: 0 0.04rem;
|
||||
}
|
||||
}
|
||||
|
||||
// 表单样式优化
|
||||
::v-deep .product-consult-dialog {
|
||||
&.el-dialog {
|
||||
border-radius: 0.32rem;
|
||||
overflow: hidden;
|
||||
box-shadow: 0 0.4rem 1.6rem rgba(0, 0, 0, 0.15);
|
||||
|
||||
.el-dialog__header {
|
||||
padding: 0.4rem 0.6rem 0.3rem;
|
||||
border-bottom: 1px solid #f0f0f0;
|
||||
background: linear-gradient(135deg, #f8f9ff 0%, #ffffff 100%);
|
||||
margin-bottom: 0;
|
||||
|
||||
.el-dialog__title {
|
||||
font-size: 0.4rem;
|
||||
font-weight: 600;
|
||||
color: #1a1a1a;
|
||||
}
|
||||
|
||||
.el-dialog__headerbtn {
|
||||
top: 0.4rem;
|
||||
right: 0.4rem;
|
||||
|
||||
.el-dialog__close {
|
||||
font-size: 0.36rem;
|
||||
color: #999;
|
||||
|
||||
&:hover {
|
||||
color: #275aff;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
.el-dialog__body {
|
||||
padding: 0.2rem .6rem;
|
||||
max-height: 70vh;
|
||||
overflow-y: auto;
|
||||
|
||||
// 移动端滚动优化
|
||||
-webkit-overflow-scrolling: touch;
|
||||
|
||||
// 防止弹窗内部滚动穿透
|
||||
&.is-mobile-scroll {
|
||||
touch-action: pan-y;
|
||||
}
|
||||
}
|
||||
|
||||
.el-dialog__footer {
|
||||
padding: 0.4rem 0.6rem;
|
||||
border-top: 1px solid #f0f0f0;
|
||||
background: #fafbfc;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
// 表单项样式
|
||||
::v-deep .el-form {
|
||||
.el-form-item {
|
||||
margin-bottom: 0.4rem;
|
||||
|
||||
.el-form-item__label {
|
||||
padding-bottom: 0.12rem;
|
||||
font-size: 0.32rem;
|
||||
font-weight: 500;
|
||||
color: #333;
|
||||
line-height: 1.5;
|
||||
}
|
||||
|
||||
.el-input,
|
||||
.el-textarea {
|
||||
.el-input__inner,
|
||||
.el-textarea__inner {
|
||||
font-size: 0.32rem;
|
||||
border: 1px solid #dcdfe6;
|
||||
border-radius: 0.24rem;
|
||||
transition: all 0.3s;
|
||||
padding: 0.24rem 0.32rem;
|
||||
color: #333;
|
||||
// 修复移动端点击问题
|
||||
touch-action: manipulation;
|
||||
-webkit-tap-highlight-color: transparent;
|
||||
|
||||
&:hover {
|
||||
border-color: #c0c4cc;
|
||||
}
|
||||
|
||||
&:focus {
|
||||
border-color: #275aff;
|
||||
box-shadow: 0 0 0 0.04rem rgba(39, 90, 255, 0.1);
|
||||
}
|
||||
|
||||
&::placeholder {
|
||||
color: #999;
|
||||
font-size: 0.28rem;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
.el-textarea__inner {
|
||||
min-height: 2.4rem;
|
||||
line-height: 1.5;
|
||||
resize: vertical;
|
||||
}
|
||||
|
||||
.el-radio {
|
||||
margin-right: 0.6rem;
|
||||
|
||||
.el-radio__label {
|
||||
font-size: 0.32rem;
|
||||
color: #666;
|
||||
}
|
||||
|
||||
.el-radio__inner {
|
||||
width: 0.36rem;
|
||||
height: 0.36rem;
|
||||
|
||||
&::after {
|
||||
width: 0.18rem;
|
||||
height: 0.18rem;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
// 协议复选框样式 - 修改字体大小和防止横向滚动条
|
||||
.agreement-checkbox {
|
||||
margin: 0.4rem 0 0.6rem;
|
||||
display: flex;
|
||||
align-items: center;
|
||||
color: #666;
|
||||
width: 100%;
|
||||
overflow: visible;
|
||||
|
||||
::v-deep .el-checkbox {
|
||||
display: flex;
|
||||
align-items: flex-start;
|
||||
width: 100%;
|
||||
|
||||
.el-checkbox__label {
|
||||
color: #666;
|
||||
padding-left: 0.16rem;
|
||||
white-space: normal;
|
||||
word-wrap: break-word;
|
||||
word-break: break-word;
|
||||
overflow-wrap: break-word;
|
||||
width: calc(100% - 0.48rem);
|
||||
font-size: 0.16rem;
|
||||
line-height: 1.5;
|
||||
|
||||
.agreement-text {
|
||||
width: 100%;
|
||||
font-size: 0.16rem;
|
||||
|
||||
p {
|
||||
margin: 0.08rem 0;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
.el-checkbox__inner {
|
||||
flex-shrink: 0;
|
||||
width: 0.32rem;
|
||||
height: 0.32rem;
|
||||
border-radius: 0.08rem;
|
||||
margin-top: 0.04rem;
|
||||
|
||||
&::after {
|
||||
border-width: 0.04rem;
|
||||
left: 0.1rem;
|
||||
top: 0.04rem;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
// 二维码区域样式
|
||||
.qrcode-section {
|
||||
margin: 0.4rem 0 0.6rem;
|
||||
padding: 0.4rem;
|
||||
background: #f8f9ff;
|
||||
border-radius: 0.32rem;
|
||||
border: 1px solid #e8edff;
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
align-items: center;
|
||||
text-align: center;
|
||||
|
||||
img {
|
||||
width: 3.2rem;
|
||||
height: 3.2rem;
|
||||
object-fit: contain;
|
||||
margin-bottom: 0.4rem;
|
||||
border-radius: 0.16rem;
|
||||
box-shadow: 0 0.08rem 0.32rem rgba(0, 0, 0, 0.1);
|
||||
}
|
||||
|
||||
span {
|
||||
font-size: 0.28rem;
|
||||
color: #666;
|
||||
line-height: 1.5;
|
||||
}
|
||||
}
|
||||
|
||||
// 提交按钮样式
|
||||
.dialog-footer {
|
||||
::v-deep .el-button {
|
||||
min-width: 2.4rem;
|
||||
height: 0.88rem;
|
||||
font-size: 0.32rem;
|
||||
border-radius: 0.44rem;
|
||||
padding: 0 0.8rem;
|
||||
font-weight: 500;
|
||||
border: none;
|
||||
background: linear-gradient(135deg, #275aff 0%, #5a7dff 100%);
|
||||
box-shadow: 0 0.08rem 0.32rem rgba(39, 90, 255, 0.3);
|
||||
transition: all 0.3s;
|
||||
|
||||
&:hover {
|
||||
transform: translateY(-0.04rem);
|
||||
box-shadow: 0 0.16rem 0.48rem rgba(39, 90, 255, 0.4);
|
||||
}
|
||||
|
||||
&:active {
|
||||
transform: translateY(0);
|
||||
}
|
||||
|
||||
.el-icon-loading {
|
||||
font-size: 0.32rem;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
// 消息提示样式优化
|
||||
:deep(.el-message) {
|
||||
font-size: 0.32rem !important;
|
||||
min-width: auto !important;
|
||||
padding: 0.24rem 0.4rem !important;
|
||||
border-radius: 0.32rem !important;
|
||||
box-shadow: 0 0.16rem 0.48rem rgba(0, 0, 0, 0.15) !important;
|
||||
border: none !important;
|
||||
}
|
||||
|
||||
:deep(.el-message__content) {
|
||||
font-size: 0.32rem !important;
|
||||
line-height: 1.5 !important;
|
||||
}
|
||||
|
||||
// 响应式适配
|
||||
@media screen and (max-width: 750px) {
|
||||
.dialog-tit {
|
||||
font-size: 0.32rem;
|
||||
padding: 0.15rem 0 0.3rem;
|
||||
|
||||
.pc-tip {
|
||||
i {
|
||||
font-size: 0.34rem;
|
||||
}
|
||||
|
||||
span {
|
||||
font-size: 0.3rem;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
.url_box {
|
||||
flex-direction: column;
|
||||
align-items: flex-start;
|
||||
gap: 0.2rem;
|
||||
}
|
||||
|
||||
.url-container {
|
||||
width: 100%;
|
||||
flex-direction: column;
|
||||
align-items: flex-start;
|
||||
|
||||
.url {
|
||||
width: 100%;
|
||||
padding: 0.1rem 0.2rem;
|
||||
font-size: 0.28rem;
|
||||
margin: 0.1rem 0 0;
|
||||
box-sizing: border-box;
|
||||
}
|
||||
}
|
||||
|
||||
.url_btn {
|
||||
margin-left: 0;
|
||||
width: 100%;
|
||||
display: flex;
|
||||
justify-content: center;
|
||||
|
||||
.copy-hint {
|
||||
width: 100%;
|
||||
max-width: 3rem;
|
||||
font-size: 0.24rem;
|
||||
padding: 0.12rem 0.24rem;
|
||||
text-align: center;
|
||||
}
|
||||
}
|
||||
|
||||
.check-tit {
|
||||
font-size: 0.16rem;
|
||||
line-height: 1.6;
|
||||
font-weight: 600;
|
||||
}
|
||||
|
||||
::v-deep .product-consult-dialog {
|
||||
&.el-dialog {
|
||||
width: 90% !important;
|
||||
margin-top: 10vh !important;
|
||||
border-radius: 0.24rem;
|
||||
|
||||
.el-dialog__header {
|
||||
padding: 0.25rem 0.3rem 0.2rem;
|
||||
|
||||
.el-dialog__title {
|
||||
font-size: 0.34rem;
|
||||
}
|
||||
}
|
||||
|
||||
.el-dialog__body {
|
||||
padding: 0.2rem .3rem;
|
||||
// 移动端优化
|
||||
-webkit-overflow-scrolling: touch;
|
||||
max-height: 60vh;
|
||||
}
|
||||
|
||||
.el-dialog__footer {
|
||||
padding: 0.25rem 0.3rem;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
::v-deep .el-form {
|
||||
.el-form-item {
|
||||
margin-bottom: 0.3rem;
|
||||
|
||||
.el-form-item__label {
|
||||
font-size: 0.28rem;
|
||||
}
|
||||
|
||||
.el-input,
|
||||
.el-textarea {
|
||||
.el-input__inner,
|
||||
.el-textarea__inner {
|
||||
font-size: 0.28rem;
|
||||
padding: 0.2rem 0.24rem;
|
||||
// 修复iOS输入框点击问题
|
||||
-webkit-appearance: none;
|
||||
appearance: none;
|
||||
}
|
||||
}
|
||||
|
||||
.el-radio {
|
||||
.el-radio__label {
|
||||
font-size: 0.28rem;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
// 移动端协议复选框字体调整
|
||||
.agreement-checkbox {
|
||||
margin: 0.3rem 0 0.4rem;
|
||||
|
||||
::v-deep .el-checkbox {
|
||||
.el-checkbox__label {
|
||||
font-size: 0.22rem !important;
|
||||
padding-left: 0.12rem;
|
||||
line-height: 1.6;
|
||||
}
|
||||
|
||||
.el-checkbox__inner {
|
||||
width: 0.28rem;
|
||||
height: 0.28rem;
|
||||
margin-top: 0.02rem;
|
||||
|
||||
&::after {
|
||||
left: 0.08rem;
|
||||
top: 0.02rem;
|
||||
border-width: 0.03rem;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
.qrcode-section {
|
||||
padding: 0.3rem;
|
||||
margin: 0.3rem 0 0.4rem;
|
||||
|
||||
img {
|
||||
width: 2.4rem;
|
||||
height: 2.4rem;
|
||||
margin-bottom: 0.3rem;
|
||||
}
|
||||
|
||||
span {
|
||||
font-size: 0.24rem;
|
||||
}
|
||||
}
|
||||
|
||||
.dialog-footer {
|
||||
::v-deep .el-button {
|
||||
min-width: 100%;
|
||||
height: 0.8rem;
|
||||
font-size: 0.28rem;
|
||||
padding: 0;
|
||||
margin: 0;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@media screen and (min-width: 751px) and (max-width: 1200px) {
|
||||
::v-deep .product-consult-dialog {
|
||||
&.el-dialog {
|
||||
width: 70% !important;
|
||||
}
|
||||
}
|
||||
|
||||
// 平板端协议复选框字体
|
||||
.agreement-checkbox {
|
||||
::v-deep .el-checkbox {
|
||||
.el-checkbox__label {
|
||||
font-size: 0.26rem !important;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
// 移动端优化 - 修复点击问题
|
||||
@media screen and (max-width: 750px) {
|
||||
// 确保所有可点击元素都能正常响应
|
||||
.url,
|
||||
.url_btn .copy-hint,
|
||||
.el-checkbox__inner,
|
||||
.el-radio__inner,
|
||||
.el-button {
|
||||
cursor: pointer;
|
||||
-webkit-tap-highlight-color: transparent;
|
||||
}
|
||||
|
||||
// 修复iOS输入框点击问题
|
||||
.el-input__inner,
|
||||
.el-textarea__inner {
|
||||
font-size: 16px !important;
|
||||
-webkit-appearance: none;
|
||||
appearance: none;
|
||||
}
|
||||
|
||||
// 确保弹窗内容区域可点击
|
||||
.product-consult-dialog {
|
||||
pointer-events: auto !important;
|
||||
}
|
||||
|
||||
// 防止弹窗背景滚动
|
||||
.el-dialog__wrapper {
|
||||
position: fixed;
|
||||
top: 0;
|
||||
right: 0;
|
||||
bottom: 0;
|
||||
left: 0;
|
||||
overflow: hidden;
|
||||
|
||||
&.el-dialog__wrapper--fixed {
|
||||
touch-action: none;
|
||||
}
|
||||
}
|
||||
}
|
||||
365
f/web-kboss/src/views/H5/less/home/index.css
Normal file
@ -0,0 +1,365 @@
|
||||
.h5-container {
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
height: 100vh;
|
||||
overflow: hidden;
|
||||
position: relative;
|
||||
}
|
||||
.main {
|
||||
flex: 1;
|
||||
overflow-y: auto;
|
||||
-webkit-overflow-scrolling: touch;
|
||||
/* 为iOS添加平滑滚动 */
|
||||
}
|
||||
/* 页面切换动画 */
|
||||
.fade-enter-active,
|
||||
.fade-leave-active {
|
||||
transition: all 0.3s ease;
|
||||
}
|
||||
.fade-enter-from {
|
||||
opacity: 0;
|
||||
transform: translateY(0.2rem);
|
||||
}
|
||||
.fade-leave-to {
|
||||
opacity: 0;
|
||||
transform: translateY(-0.2rem);
|
||||
}
|
||||
/* 返回顶部按钮样式 */
|
||||
.back-to-top {
|
||||
position: fixed;
|
||||
right: 0.4rem;
|
||||
bottom: 1.5rem;
|
||||
/* 在底部导航栏上方 */
|
||||
z-index: 999;
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
align-items: center;
|
||||
justify-content: center;
|
||||
width: 1.1rem;
|
||||
height: 1.1rem;
|
||||
background: linear-gradient(90deg, #275AFF 0%, #2EBDFA 100%);
|
||||
border-radius: 50%;
|
||||
box-shadow: 0 0.08rem 0.24rem rgba(102, 126, 234, 0.4);
|
||||
cursor: pointer;
|
||||
transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
|
||||
user-select: none;
|
||||
-webkit-tap-highlight-color: transparent;
|
||||
/* 悬停效果 */
|
||||
/* 激活效果 */
|
||||
/* 点击动画 */
|
||||
}
|
||||
.back-to-top:hover {
|
||||
transform: translateY(-0.1rem);
|
||||
box-shadow: 0 0.12rem 0.36rem rgba(102, 126, 234, 0.6);
|
||||
background: linear-gradient(90deg, #275AFF 0%, #2EBDFA 100%);
|
||||
}
|
||||
.back-to-top:active {
|
||||
transform: scale(0.95);
|
||||
}
|
||||
.back-to-top.clicked {
|
||||
animation: pulse 0.3s ease;
|
||||
}
|
||||
.back-to-top .back-to-top-icon {
|
||||
width: 0.45rem;
|
||||
height: 0.45rem;
|
||||
color: white;
|
||||
display: flex;
|
||||
align-items: center;
|
||||
justify-content: center;
|
||||
margin-bottom: 0.04rem;
|
||||
}
|
||||
.back-to-top .back-to-top-icon svg {
|
||||
width: 100%;
|
||||
height: 100%;
|
||||
stroke: currentColor;
|
||||
transition: transform 0.3s ease;
|
||||
}
|
||||
.back-to-top .back-to-top-text {
|
||||
color: white;
|
||||
font-size: 0.24rem;
|
||||
font-weight: 500;
|
||||
line-height: 1;
|
||||
letter-spacing: 0.02rem;
|
||||
text-shadow: 0 0.02rem 0.04rem rgba(0, 0, 0, 0.2);
|
||||
}
|
||||
/* 脉冲动画 */
|
||||
@keyframes pulse {
|
||||
0% {
|
||||
transform: scale(1);
|
||||
}
|
||||
50% {
|
||||
transform: scale(0.9);
|
||||
}
|
||||
100% {
|
||||
transform: scale(1);
|
||||
}
|
||||
}
|
||||
/* 返回顶部按钮动画 */
|
||||
.fade-scale-enter-active,
|
||||
.fade-scale-leave-active {
|
||||
transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
|
||||
}
|
||||
.fade-scale-enter-from,
|
||||
.fade-scale-leave-to {
|
||||
opacity: 0;
|
||||
transform: scale(0.8) translateY(0.2rem);
|
||||
}
|
||||
/* TabBar 样式 */
|
||||
.tabBar {
|
||||
padding: 0.2rem 0;
|
||||
background-color: rgba(255, 255, 255, 0.95);
|
||||
width: 100%;
|
||||
display: flex;
|
||||
justify-content: space-around;
|
||||
align-items: center;
|
||||
position: fixed;
|
||||
bottom: 0;
|
||||
left: 0;
|
||||
right: 0;
|
||||
z-index: 1000;
|
||||
box-shadow: 0 -0.02rem 0.2rem rgba(0, 0, 0, 0.08);
|
||||
backdrop-filter: blur(10px);
|
||||
-webkit-backdrop-filter: blur(10px);
|
||||
border-top: 1px solid rgba(0, 0, 0, 0.05);
|
||||
}
|
||||
.tabBar .tabBar-item {
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
align-items: center;
|
||||
justify-content: center;
|
||||
cursor: pointer;
|
||||
transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
|
||||
padding: 0.1rem 0.15rem;
|
||||
border-radius: 0.3rem;
|
||||
position: relative;
|
||||
overflow: hidden;
|
||||
user-select: none;
|
||||
/* 悬停效果 */
|
||||
/* 激活状态 */
|
||||
/* 点击动画 */
|
||||
/* 激活指示器 */
|
||||
}
|
||||
.tabBar .tabBar-item:hover {
|
||||
background-color: rgba(24, 144, 255, 0.08);
|
||||
transform: translateY(-0.05rem);
|
||||
}
|
||||
.tabBar .tabBar-item.active .item-text {
|
||||
color: #1890ff;
|
||||
font-weight: 600;
|
||||
}
|
||||
.tabBar .tabBar-item.click-animation {
|
||||
animation: tabClick 0.3s ease;
|
||||
}
|
||||
.tabBar .tabBar-item .active-indicator {
|
||||
position: absolute;
|
||||
bottom: 0.05rem;
|
||||
left: 50%;
|
||||
transform: translateX(-50%);
|
||||
width: 0.3rem;
|
||||
height: 0.04rem;
|
||||
border-radius: 0.02rem;
|
||||
animation: indicatorAppear 0.3s cubic-bezier(0.68, -0.55, 0.265, 1.55);
|
||||
}
|
||||
.tabBar .item-img {
|
||||
margin-bottom: 0.08rem;
|
||||
position: relative;
|
||||
width: 0.5rem;
|
||||
height: 0.5rem;
|
||||
display: flex;
|
||||
align-items: center;
|
||||
justify-content: center;
|
||||
}
|
||||
.tabBar .item-img img {
|
||||
width: 100%;
|
||||
height: 100%;
|
||||
display: block;
|
||||
transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
|
||||
}
|
||||
.tabBar .item-text {
|
||||
font-size: 0.24rem;
|
||||
color: #666;
|
||||
transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
|
||||
position: relative;
|
||||
height: 0.3rem;
|
||||
display: flex;
|
||||
align-items: center;
|
||||
justify-content: center;
|
||||
}
|
||||
/* 图标动画 */
|
||||
.icon-bounce-enter-active {
|
||||
animation: iconBounceIn 0.4s cubic-bezier(0.68, -0.55, 0.265, 1.55);
|
||||
}
|
||||
.icon-bounce-leave-active {
|
||||
animation: iconBounceOut 0.3s ease;
|
||||
}
|
||||
@keyframes iconBounceIn {
|
||||
0% {
|
||||
opacity: 0;
|
||||
transform: scale(0.3) rotate(-30deg);
|
||||
}
|
||||
50% {
|
||||
transform: scale(1.2) rotate(10deg);
|
||||
}
|
||||
70% {
|
||||
transform: scale(0.9) rotate(-5deg);
|
||||
}
|
||||
100% {
|
||||
opacity: 1;
|
||||
transform: scale(1) rotate(0deg);
|
||||
}
|
||||
}
|
||||
@keyframes iconBounceOut {
|
||||
0% {
|
||||
opacity: 1;
|
||||
transform: scale(1) rotate(0deg);
|
||||
}
|
||||
100% {
|
||||
opacity: 0;
|
||||
transform: scale(0.5) rotate(30deg);
|
||||
}
|
||||
}
|
||||
/* 文字动画 */
|
||||
.text-slide-enter-active {
|
||||
animation: textSlideIn 0.3s ease-out;
|
||||
}
|
||||
.text-slide-leave-active {
|
||||
animation: textSlideOut 0.2s ease-in;
|
||||
}
|
||||
@keyframes textSlideIn {
|
||||
0% {
|
||||
opacity: 0;
|
||||
transform: translateY(0.1rem);
|
||||
}
|
||||
100% {
|
||||
opacity: 1;
|
||||
transform: translateY(0);
|
||||
}
|
||||
}
|
||||
@keyframes textSlideOut {
|
||||
0% {
|
||||
opacity: 1;
|
||||
transform: translateY(0);
|
||||
}
|
||||
100% {
|
||||
opacity: 0;
|
||||
transform: translateY(-0.1rem);
|
||||
}
|
||||
}
|
||||
/* Tab点击动画 */
|
||||
@keyframes tabClick {
|
||||
0% {
|
||||
transform: scale(1);
|
||||
}
|
||||
50% {
|
||||
transform: scale(0.95);
|
||||
}
|
||||
100% {
|
||||
transform: scale(1);
|
||||
}
|
||||
}
|
||||
/* 指示器出现动画 */
|
||||
@keyframes indicatorAppear {
|
||||
0% {
|
||||
opacity: 0;
|
||||
transform: translateX(-50%) scaleX(0);
|
||||
}
|
||||
100% {
|
||||
opacity: 1;
|
||||
transform: translateX(-50%) scaleX(1);
|
||||
}
|
||||
}
|
||||
/* 响应式调整 */
|
||||
@media (max-width: 480px) {
|
||||
.back-to-top {
|
||||
right: 0.3rem;
|
||||
bottom: 1.6rem;
|
||||
width: 1rem;
|
||||
height: 1rem;
|
||||
}
|
||||
.back-to-top .back-to-top-icon {
|
||||
width: 0.4rem;
|
||||
height: 0.4rem;
|
||||
margin-bottom: 0.03rem;
|
||||
}
|
||||
.back-to-top .back-to-top-text {
|
||||
font-size: 0.22rem;
|
||||
}
|
||||
.tabBar {
|
||||
padding: 0.15rem 0;
|
||||
}
|
||||
.tabBar .tabBar-item {
|
||||
padding: 0.08rem 0.12rem;
|
||||
}
|
||||
.tabBar .item-img {
|
||||
width: 0.45rem;
|
||||
height: 0.45rem;
|
||||
}
|
||||
.tabBar .item-text {
|
||||
font-size: 0.22rem;
|
||||
}
|
||||
}
|
||||
@media (min-width: 768px) {
|
||||
.back-to-top {
|
||||
right: 0.5rem;
|
||||
bottom: 2rem;
|
||||
width: 1.2rem;
|
||||
height: 1.2rem;
|
||||
}
|
||||
.back-to-top .back-to-top-icon {
|
||||
width: 0.5rem;
|
||||
height: 0.5rem;
|
||||
margin-bottom: 0.05rem;
|
||||
}
|
||||
.back-to-top .back-to-top-text {
|
||||
font-size: 0.26rem;
|
||||
}
|
||||
}
|
||||
/* 深色模式支持 */
|
||||
@media (prefers-color-scheme: dark) {
|
||||
.back-to-top {
|
||||
background: linear-gradient(90deg, #275AFF 0%, #2EBDFA 100%);
|
||||
box-shadow: 0 0.08rem 0.24rem rgba(138, 43, 226, 0.4);
|
||||
}
|
||||
.back-to-top:hover {
|
||||
background: linear-gradient(90deg, #275AFF 0%, #2EBDFA 100%);
|
||||
box-shadow: 0 0.12rem 0.36rem rgba(138, 43, 226, 0.6);
|
||||
}
|
||||
.tabBar {
|
||||
background-color: rgba(30, 30, 30, 0.95);
|
||||
border-top: 1px solid rgba(255, 255, 255, 0.05);
|
||||
}
|
||||
.tabBar .tabBar-item .item-text {
|
||||
color: #b0b0b0;
|
||||
}
|
||||
.tabBar .tabBar-item:hover {
|
||||
background-color: rgba(100, 181, 246, 0.08);
|
||||
}
|
||||
.tabBar .tabBar-item.active .item-text {
|
||||
color: #64b5f6;
|
||||
}
|
||||
.tabBar .tabBar-item.active .active-indicator {
|
||||
background: linear-gradient(90deg, #64b5f6, #81c784);
|
||||
}
|
||||
}
|
||||
/* 安全区域适配(iPhone X及以上机型) */
|
||||
@supports (padding: max(0px)) {
|
||||
.back-to-top {
|
||||
bottom: calc(1.5rem + env(safe-area-inset-bottom, 0));
|
||||
}
|
||||
.tabBar {
|
||||
padding-bottom: calc(0.2rem + env(safe-area-inset-bottom, 0));
|
||||
}
|
||||
@media (max-width: 480px) {
|
||||
.back-to-top {
|
||||
bottom: calc(1.6rem + env(safe-area-inset-bottom, 0));
|
||||
}
|
||||
.tabBar {
|
||||
padding-bottom: calc(0.15rem + env(safe-area-inset-bottom, 0));
|
||||
}
|
||||
}
|
||||
@media (min-width: 768px) {
|
||||
.back-to-top {
|
||||
bottom: calc(2rem + env(safe-area-inset-bottom, 0));
|
||||
}
|
||||
}
|
||||
}
|
||||
438
f/web-kboss/src/views/H5/less/home/index.less
Normal file
@ -0,0 +1,438 @@
|
||||
.h5-container {
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
height: 100vh;
|
||||
overflow: hidden;
|
||||
position: relative;
|
||||
}
|
||||
|
||||
.main {
|
||||
flex: 1;
|
||||
overflow-y: auto;
|
||||
-webkit-overflow-scrolling: touch;
|
||||
/* 为iOS添加平滑滚动 */
|
||||
}
|
||||
|
||||
/* 页面切换动画 */
|
||||
.fade-enter-active,
|
||||
.fade-leave-active {
|
||||
transition: all 0.3s ease;
|
||||
}
|
||||
|
||||
.fade-enter-from {
|
||||
opacity: 0;
|
||||
transform: translateY(0.2rem);
|
||||
}
|
||||
|
||||
.fade-leave-to {
|
||||
opacity: 0;
|
||||
transform: translateY(-0.2rem);
|
||||
}
|
||||
|
||||
/* 返回顶部按钮样式 */
|
||||
.back-to-top {
|
||||
position: fixed;
|
||||
right: 0.4rem;
|
||||
bottom: 1.5rem;
|
||||
/* 在底部导航栏上方 */
|
||||
z-index: 999;
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
align-items: center;
|
||||
justify-content: center;
|
||||
width: 1.1rem;
|
||||
height: 1.1rem;
|
||||
background: linear-gradient(90deg, #275AFF 0%, #2EBDFA 100%);
|
||||
border-radius: 50%;
|
||||
box-shadow: 0 0.08rem 0.24rem rgba(102, 126, 234, 0.4);
|
||||
cursor: pointer;
|
||||
transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
|
||||
user-select: none;
|
||||
-webkit-tap-highlight-color: transparent;
|
||||
|
||||
/* 悬停效果 */
|
||||
&:hover {
|
||||
transform: translateY(-0.1rem);
|
||||
box-shadow: 0 0.12rem 0.36rem rgba(102, 126, 234, 0.6);
|
||||
background: linear-gradient(90deg, #275AFF 0%, #2EBDFA 100%);
|
||||
}
|
||||
|
||||
/* 激活效果 */
|
||||
&:active {
|
||||
transform: scale(0.95);
|
||||
}
|
||||
|
||||
/* 点击动画 */
|
||||
&.clicked {
|
||||
animation: pulse 0.3s ease;
|
||||
}
|
||||
|
||||
.back-to-top-icon {
|
||||
width: 0.45rem;
|
||||
height: 0.45rem;
|
||||
color: white;
|
||||
display: flex;
|
||||
align-items: center;
|
||||
justify-content: center;
|
||||
margin-bottom: 0.04rem;
|
||||
|
||||
svg {
|
||||
width: 100%;
|
||||
height: 100%;
|
||||
stroke: currentColor;
|
||||
transition: transform 0.3s ease;
|
||||
}
|
||||
}
|
||||
|
||||
.back-to-top-text {
|
||||
color: white;
|
||||
font-size: 0.24rem;
|
||||
font-weight: 500;
|
||||
line-height: 1;
|
||||
letter-spacing: 0.02rem;
|
||||
text-shadow: 0 0.02rem 0.04rem rgba(0, 0, 0, 0.2);
|
||||
}
|
||||
}
|
||||
|
||||
/* 脉冲动画 */
|
||||
@keyframes pulse {
|
||||
0% {
|
||||
transform: scale(1);
|
||||
}
|
||||
|
||||
50% {
|
||||
transform: scale(0.9);
|
||||
}
|
||||
|
||||
100% {
|
||||
transform: scale(1);
|
||||
}
|
||||
}
|
||||
|
||||
/* 返回顶部按钮动画 */
|
||||
.fade-scale-enter-active,
|
||||
.fade-scale-leave-active {
|
||||
transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
|
||||
}
|
||||
|
||||
.fade-scale-enter-from,
|
||||
.fade-scale-leave-to {
|
||||
opacity: 0;
|
||||
transform: scale(0.8) translateY(0.2rem);
|
||||
}
|
||||
|
||||
/* TabBar 样式 */
|
||||
.tabBar {
|
||||
padding: 0.2rem 0;
|
||||
background-color: rgba(255, 255, 255, 0.95);
|
||||
width: 100%;
|
||||
display: flex;
|
||||
justify-content: space-around;
|
||||
align-items: center;
|
||||
position: fixed;
|
||||
bottom: 0;
|
||||
left: 0;
|
||||
right: 0;
|
||||
z-index: 1000;
|
||||
box-shadow: 0 -0.02rem 0.2rem rgba(0, 0, 0, 0.08);
|
||||
backdrop-filter: blur(10px);
|
||||
-webkit-backdrop-filter: blur(10px);
|
||||
border-top: 1px solid rgba(0, 0, 0, 0.05);
|
||||
|
||||
.tabBar-item {
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
align-items: center;
|
||||
justify-content: center;
|
||||
cursor: pointer;
|
||||
transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
|
||||
padding: 0.1rem 0.15rem;
|
||||
border-radius: 0.3rem;
|
||||
position: relative;
|
||||
overflow: hidden;
|
||||
user-select: none;
|
||||
|
||||
/* 悬停效果 */
|
||||
&:hover {
|
||||
background-color: rgba(24, 144, 255, 0.08);
|
||||
transform: translateY(-0.05rem);
|
||||
}
|
||||
|
||||
/* 激活状态 */
|
||||
&.active {
|
||||
.item-text {
|
||||
color: #1890ff;
|
||||
font-weight: 600;
|
||||
}
|
||||
}
|
||||
|
||||
/* 点击动画 */
|
||||
&.click-animation {
|
||||
animation: tabClick 0.3s ease;
|
||||
}
|
||||
|
||||
/* 激活指示器 */
|
||||
.active-indicator {
|
||||
position: absolute;
|
||||
bottom: 0.05rem;
|
||||
left: 50%;
|
||||
transform: translateX(-50%);
|
||||
width: 0.3rem;
|
||||
height: 0.04rem;
|
||||
// background: linear-gradient(90deg, #1890ff);
|
||||
border-radius: 0.02rem;
|
||||
animation: indicatorAppear 0.3s cubic-bezier(0.68, -0.55, 0.265, 1.55);
|
||||
}
|
||||
}
|
||||
|
||||
.item-img {
|
||||
margin-bottom: 0.08rem;
|
||||
position: relative;
|
||||
width: 0.5rem;
|
||||
height: 0.5rem;
|
||||
display: flex;
|
||||
align-items: center;
|
||||
justify-content: center;
|
||||
|
||||
img {
|
||||
width: 100%;
|
||||
height: 100%;
|
||||
display: block;
|
||||
transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
|
||||
}
|
||||
}
|
||||
|
||||
.item-text {
|
||||
font-size: 0.24rem;
|
||||
color: #666;
|
||||
transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
|
||||
position: relative;
|
||||
height: 0.3rem;
|
||||
display: flex;
|
||||
align-items: center;
|
||||
justify-content: center;
|
||||
}
|
||||
}
|
||||
|
||||
/* 图标动画 */
|
||||
.icon-bounce-enter-active {
|
||||
animation: iconBounceIn 0.4s cubic-bezier(0.68, -0.55, 0.265, 1.55);
|
||||
}
|
||||
|
||||
.icon-bounce-leave-active {
|
||||
animation: iconBounceOut 0.3s ease;
|
||||
}
|
||||
|
||||
@keyframes iconBounceIn {
|
||||
0% {
|
||||
opacity: 0;
|
||||
transform: scale(0.3) rotate(-30deg);
|
||||
}
|
||||
|
||||
50% {
|
||||
transform: scale(1.2) rotate(10deg);
|
||||
}
|
||||
|
||||
70% {
|
||||
transform: scale(0.9) rotate(-5deg);
|
||||
}
|
||||
|
||||
100% {
|
||||
opacity: 1;
|
||||
transform: scale(1) rotate(0deg);
|
||||
}
|
||||
}
|
||||
|
||||
@keyframes iconBounceOut {
|
||||
0% {
|
||||
opacity: 1;
|
||||
transform: scale(1) rotate(0deg);
|
||||
}
|
||||
|
||||
100% {
|
||||
opacity: 0;
|
||||
transform: scale(0.5) rotate(30deg);
|
||||
}
|
||||
}
|
||||
|
||||
/* 文字动画 */
|
||||
.text-slide-enter-active {
|
||||
animation: textSlideIn 0.3s ease-out;
|
||||
}
|
||||
|
||||
.text-slide-leave-active {
|
||||
animation: textSlideOut 0.2s ease-in;
|
||||
}
|
||||
|
||||
@keyframes textSlideIn {
|
||||
0% {
|
||||
opacity: 0;
|
||||
transform: translateY(0.1rem);
|
||||
}
|
||||
|
||||
100% {
|
||||
opacity: 1;
|
||||
transform: translateY(0);
|
||||
}
|
||||
}
|
||||
|
||||
@keyframes textSlideOut {
|
||||
0% {
|
||||
opacity: 1;
|
||||
transform: translateY(0);
|
||||
}
|
||||
|
||||
100% {
|
||||
opacity: 0;
|
||||
transform: translateY(-0.1rem);
|
||||
}
|
||||
}
|
||||
|
||||
/* Tab点击动画 */
|
||||
@keyframes tabClick {
|
||||
0% {
|
||||
transform: scale(1);
|
||||
}
|
||||
|
||||
50% {
|
||||
transform: scale(0.95);
|
||||
}
|
||||
|
||||
100% {
|
||||
transform: scale(1);
|
||||
}
|
||||
}
|
||||
|
||||
/* 指示器出现动画 */
|
||||
@keyframes indicatorAppear {
|
||||
0% {
|
||||
opacity: 0;
|
||||
transform: translateX(-50%) scaleX(0);
|
||||
}
|
||||
|
||||
100% {
|
||||
opacity: 1;
|
||||
transform: translateX(-50%) scaleX(1);
|
||||
}
|
||||
}
|
||||
|
||||
/* 响应式调整 */
|
||||
@media (max-width: 480px) {
|
||||
.back-to-top {
|
||||
right: 0.3rem;
|
||||
bottom: 1.6rem;
|
||||
width: 1rem;
|
||||
height: 1rem;
|
||||
|
||||
.back-to-top-icon {
|
||||
width: 0.4rem;
|
||||
height: 0.4rem;
|
||||
margin-bottom: 0.03rem;
|
||||
}
|
||||
|
||||
.back-to-top-text {
|
||||
font-size: 0.22rem;
|
||||
}
|
||||
}
|
||||
|
||||
.tabBar {
|
||||
padding: 0.15rem 0;
|
||||
|
||||
.tabBar-item {
|
||||
padding: 0.08rem 0.12rem;
|
||||
}
|
||||
|
||||
.item-img {
|
||||
width: 0.45rem;
|
||||
height: 0.45rem;
|
||||
}
|
||||
|
||||
.item-text {
|
||||
font-size: 0.22rem;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@media (min-width: 768px) {
|
||||
.back-to-top {
|
||||
right: 0.5rem;
|
||||
bottom: 2rem;
|
||||
width: 1.2rem;
|
||||
height: 1.2rem;
|
||||
|
||||
.back-to-top-icon {
|
||||
width: 0.5rem;
|
||||
height: 0.5rem;
|
||||
margin-bottom: 0.05rem;
|
||||
}
|
||||
|
||||
.back-to-top-text {
|
||||
font-size: 0.26rem;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
/* 深色模式支持 */
|
||||
@media (prefers-color-scheme: dark) {
|
||||
.back-to-top {
|
||||
background: linear-gradient(90deg, #275AFF 0%, #2EBDFA 100%);
|
||||
box-shadow: 0 0.08rem 0.24rem rgba(138, 43, 226, 0.4);
|
||||
|
||||
&:hover {
|
||||
background: linear-gradient(90deg, #275AFF 0%, #2EBDFA 100%);
|
||||
box-shadow: 0 0.12rem 0.36rem rgba(138, 43, 226, 0.6);
|
||||
}
|
||||
}
|
||||
|
||||
.tabBar {
|
||||
background-color: rgba(30, 30, 30, 0.95);
|
||||
border-top: 1px solid rgba(255, 255, 255, 0.05);
|
||||
|
||||
.tabBar-item {
|
||||
.item-text {
|
||||
color: #b0b0b0;
|
||||
}
|
||||
|
||||
&:hover {
|
||||
background-color: rgba(100, 181, 246, 0.08);
|
||||
}
|
||||
|
||||
&.active {
|
||||
.item-text {
|
||||
color: #64b5f6;
|
||||
}
|
||||
|
||||
.active-indicator {
|
||||
background: linear-gradient(90deg, #64b5f6, #81c784);
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
/* 安全区域适配(iPhone X及以上机型) */
|
||||
@supports (padding: max(0px)) {
|
||||
.back-to-top {
|
||||
bottom: calc(1.5rem + env(safe-area-inset-bottom, 0));
|
||||
}
|
||||
|
||||
.tabBar {
|
||||
padding-bottom: calc(0.2rem + env(safe-area-inset-bottom, 0));
|
||||
}
|
||||
|
||||
@media (max-width: 480px) {
|
||||
.back-to-top {
|
||||
bottom: calc(1.6rem + env(safe-area-inset-bottom, 0));
|
||||
}
|
||||
|
||||
.tabBar {
|
||||
padding-bottom: calc(0.15rem + env(safe-area-inset-bottom, 0));
|
||||
}
|
||||
}
|
||||
|
||||
@media (min-width: 768px) {
|
||||
.back-to-top {
|
||||
bottom: calc(2rem + env(safe-area-inset-bottom, 0));
|
||||
}
|
||||
}
|
||||
}
|
||||
672
f/web-kboss/src/views/H5/less/official/index.css
Normal file
@ -0,0 +1,672 @@
|
||||
.main-page {
|
||||
width: 100%;
|
||||
min-height: 100vh;
|
||||
background-color: #f8fafd;
|
||||
overflow-y: auto;
|
||||
-webkit-overflow-scrolling: touch;
|
||||
}
|
||||
.logo-item {
|
||||
display: flex;
|
||||
align-items: center;
|
||||
}
|
||||
.top-box {
|
||||
width: 100%;
|
||||
height: 50vh;
|
||||
background: url("../../images/banner.png") no-repeat;
|
||||
background-size: 100% 100%;
|
||||
display: flex;
|
||||
align-items: center;
|
||||
}
|
||||
.title {
|
||||
width: 100%;
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
justify-content: center;
|
||||
align-items: center;
|
||||
color: #222f60;
|
||||
}
|
||||
.title .name {
|
||||
background: linear-gradient(90deg, #275AFF 0%, #2EBDFA 100%);
|
||||
-webkit-background-clip: text;
|
||||
-webkit-text-fill-color: transparent;
|
||||
background-clip: text;
|
||||
font-size: 0.68rem;
|
||||
}
|
||||
.title .title-top {
|
||||
font-size: 0.6rem;
|
||||
}
|
||||
.title .title-btm {
|
||||
font-size: 0.338rem;
|
||||
margin-top: 0.98rem;
|
||||
}
|
||||
.text {
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
justify-content: center;
|
||||
align-items: center;
|
||||
padding: 0.14rem 0;
|
||||
width: 100%;
|
||||
}
|
||||
.text .text-top {
|
||||
font-size: 0.338rem;
|
||||
color: #000;
|
||||
font-weight: 700;
|
||||
}
|
||||
.text .text-btm {
|
||||
font-size: 0.234rem;
|
||||
color: #707070;
|
||||
}
|
||||
.base-box,
|
||||
.journey-box,
|
||||
.latitude-box {
|
||||
width: 100%;
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
padding: 0.3rem 0.4rem;
|
||||
}
|
||||
.base-box .content,
|
||||
.journey-box .content,
|
||||
.latitude-box .content {
|
||||
display: flex;
|
||||
flex-wrap: wrap;
|
||||
justify-content: space-between;
|
||||
gap: 0.2rem;
|
||||
}
|
||||
.base-box .content .item-box,
|
||||
.journey-box .content .item-box,
|
||||
.latitude-box .content .item-box {
|
||||
width: 48%;
|
||||
border-radius: 0.1rem;
|
||||
padding: 0.2rem;
|
||||
box-shadow: 0 0.02rem 0.08rem rgba(39, 90, 255, 0.08);
|
||||
margin-bottom: 0.2rem;
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
background: linear-gradient(135deg, #f0f7ff 0%, #ffffff 100%);
|
||||
border: 0.01rem solid rgba(39, 90, 255, 0.1);
|
||||
transition: all 0.3s ease;
|
||||
position: relative;
|
||||
padding-bottom: 1.8rem;
|
||||
}
|
||||
.base-box .content .item-box:hover,
|
||||
.journey-box .content .item-box:hover,
|
||||
.latitude-box .content .item-box:hover {
|
||||
box-shadow: 0 0.04rem 0.16rem rgba(39, 90, 255, 0.12);
|
||||
transform: translateY(-0.02rem);
|
||||
border-color: rgba(39, 90, 255, 0.2);
|
||||
background: linear-gradient(135deg, #e8f2ff 0%, #ffffff 100%);
|
||||
}
|
||||
.base-box .content .item-box .item-title,
|
||||
.journey-box .content .item-box .item-title,
|
||||
.latitude-box .content .item-box .item-title {
|
||||
font-size: 0.26rem;
|
||||
font-weight: bold;
|
||||
color: #333;
|
||||
margin-bottom: 0.1rem;
|
||||
}
|
||||
.base-box .content .item-box .item-description,
|
||||
.journey-box .content .item-box .item-description,
|
||||
.latitude-box .content .item-box .item-description {
|
||||
font-size: 0.2rem;
|
||||
color: #666;
|
||||
margin-bottom: 0.15rem;
|
||||
line-height: 1.4;
|
||||
}
|
||||
.base-box .content .item-box .advantage-list,
|
||||
.journey-box .content .item-box .advantage-list,
|
||||
.latitude-box .content .item-box .advantage-list {
|
||||
display: block;
|
||||
}
|
||||
.base-box .content .item-box .advantage-list .advantage-item,
|
||||
.journey-box .content .item-box .advantage-list .advantage-item,
|
||||
.latitude-box .content .item-box .advantage-list .advantage-item {
|
||||
display: block;
|
||||
font-size: 0.156rem;
|
||||
color: #666;
|
||||
}
|
||||
.base-box .content .item-box .advantage-list .advantage-item .advantage-icon,
|
||||
.journey-box .content .item-box .advantage-list .advantage-item .advantage-icon,
|
||||
.latitude-box .content .item-box .advantage-list .advantage-item .advantage-icon {
|
||||
width: 0.18rem;
|
||||
height: 0.18rem;
|
||||
margin-right: 0.05rem;
|
||||
flex-shrink: 0;
|
||||
}
|
||||
.base-box .content .item-box .advantage-list .advantage-item .advantage-name,
|
||||
.journey-box .content .item-box .advantage-list .advantage-item .advantage-name,
|
||||
.latitude-box .content .item-box .advantage-list .advantage-item .advantage-name {
|
||||
color: #000;
|
||||
font-weight: 500;
|
||||
white-space: nowrap;
|
||||
font-size: 0.2rem;
|
||||
margin-right: 0.05rem;
|
||||
}
|
||||
.base-box .content .item-box .advantage-list .advantage-item .advantage-content,
|
||||
.journey-box .content .item-box .advantage-list .advantage-item .advantage-content,
|
||||
.latitude-box .content .item-box .advantage-list .advantage-item .advantage-content {
|
||||
font-size: 0.18rem;
|
||||
}
|
||||
.base-box .content .item-box .item-price,
|
||||
.journey-box .content .item-box .item-price,
|
||||
.latitude-box .content .item-box .item-price {
|
||||
width: calc(100% - 0.4rem);
|
||||
padding-top: 0.2rem;
|
||||
border-top: 0.02rem dashed #d4d6e1;
|
||||
font-size: 0.13rem;
|
||||
font-weight: bold;
|
||||
color: #d4d6e1;
|
||||
margin: 0.2rem 0;
|
||||
position: absolute;
|
||||
bottom: 0.6rem;
|
||||
}
|
||||
.base-box .content .item-box .item-price .price,
|
||||
.journey-box .content .item-box .item-price .price,
|
||||
.latitude-box .content .item-box .item-price .price {
|
||||
font-size: 0.38rem;
|
||||
color: #f52220;
|
||||
}
|
||||
.base-box .content .item-box .item-price .price-icon,
|
||||
.journey-box .content .item-box .item-price .price-icon,
|
||||
.latitude-box .content .item-box .item-price .price-icon {
|
||||
color: #f52220;
|
||||
font-size: 0.18rem;
|
||||
}
|
||||
.base-box .content .item-box .tag-list,
|
||||
.journey-box .content .item-box .tag-list,
|
||||
.latitude-box .content .item-box .tag-list {
|
||||
display: flex;
|
||||
flex-wrap: wrap;
|
||||
gap: 0.1rem;
|
||||
margin: 0.15rem 0;
|
||||
}
|
||||
.base-box .content .item-box .tag-list .tag-item,
|
||||
.journey-box .content .item-box .tag-list .tag-item,
|
||||
.latitude-box .content .item-box .tag-list .tag-item {
|
||||
padding: 0.04rem 0.12rem;
|
||||
font-size: 0.18rem;
|
||||
color: #aeb6bf;
|
||||
background-color: #fff;
|
||||
border: 0.02rem solid #c8d6e7;
|
||||
border-radius: 0.12rem;
|
||||
display: inline-block;
|
||||
}
|
||||
.base-box .content .item-box .item-button,
|
||||
.journey-box .content .item-box .item-button,
|
||||
.latitude-box .content .item-box .item-button {
|
||||
background: linear-gradient(90deg, #275AFF 0%, #2EBDFA 100%);
|
||||
border-radius: 0.04rem;
|
||||
padding: 0.08rem 0;
|
||||
text-align: center;
|
||||
cursor: pointer;
|
||||
margin-top: auto;
|
||||
width: 100%;
|
||||
position: relative;
|
||||
bottom: -1.6rem;
|
||||
}
|
||||
.base-box .content .item-box .item-button .item-button-text,
|
||||
.journey-box .content .item-box .item-button .item-button-text,
|
||||
.latitude-box .content .item-box .item-button .item-button-text {
|
||||
color: #fff;
|
||||
font-size: 0.182rem;
|
||||
/* 增大30%: 0.14rem * 1.3 = 0.182rem */
|
||||
}
|
||||
.partner {
|
||||
background-color: #f8f9fd;
|
||||
width: 100%;
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
padding: 0.3rem 0.4rem;
|
||||
}
|
||||
.partner .partner-scroll {
|
||||
width: 100%;
|
||||
max-width: 14rem;
|
||||
margin: 0 auto;
|
||||
padding: 0.15rem;
|
||||
background: #fff;
|
||||
border-radius: 0.16rem;
|
||||
margin-bottom: 0.3rem;
|
||||
}
|
||||
.partner .partner-scroll .logo-scroll-wrapper {
|
||||
width: 100%;
|
||||
height: 0.85rem;
|
||||
overflow: hidden;
|
||||
position: relative;
|
||||
}
|
||||
.partner .partner-scroll .logo-scroll-container {
|
||||
display: flex;
|
||||
height: 100%;
|
||||
animation: scroll linear infinite;
|
||||
white-space: nowrap;
|
||||
width: max-content;
|
||||
}
|
||||
.partner .partner-scroll .logo-item {
|
||||
flex: 0 0 auto;
|
||||
width: 1.68rem;
|
||||
height: 100%;
|
||||
margin-right: 0.2rem;
|
||||
background: #fff;
|
||||
border-radius: 0.04rem;
|
||||
overflow: hidden;
|
||||
display: flex;
|
||||
align-items: center;
|
||||
justify-content: center;
|
||||
}
|
||||
.partner .partner-scroll .logo-item img {
|
||||
width: 100%;
|
||||
height: 100%;
|
||||
object-fit: contain;
|
||||
}
|
||||
/* 关键:无缝循环滚动动画 */
|
||||
@keyframes scroll {
|
||||
0% {
|
||||
transform: translateX(0);
|
||||
}
|
||||
100% {
|
||||
/* 因为图片重复了三份,所以移动33.33%实现无缝循环 */
|
||||
transform: translateX(-33.33%);
|
||||
}
|
||||
}
|
||||
.footer {
|
||||
width: 100%;
|
||||
background: #f5f7fa;
|
||||
color: #fff;
|
||||
padding: 0.4rem 0.2rem;
|
||||
}
|
||||
.footer-content {
|
||||
max-width: 12rem;
|
||||
margin: 0 auto;
|
||||
}
|
||||
.footer {
|
||||
width: 100%;
|
||||
background: #f6f8fd;
|
||||
color: #333;
|
||||
padding: 0.6rem 0.2rem 0.4rem;
|
||||
position: relative;
|
||||
overflow: hidden;
|
||||
border-top: 0.01rem solid #e8edf5;
|
||||
}
|
||||
.footer:before {
|
||||
content: '';
|
||||
position: absolute;
|
||||
top: 0;
|
||||
left: 0;
|
||||
width: 100%;
|
||||
}
|
||||
.footer-content {
|
||||
max-width: 12.8rem;
|
||||
margin: 0 auto;
|
||||
position: relative;
|
||||
}
|
||||
/* 顶部信息区域 */
|
||||
.footer-top {
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
align-items: flex-start;
|
||||
}
|
||||
.logo-footer {
|
||||
width: 2.4rem;
|
||||
height: 0.8rem;
|
||||
margin-bottom: 0.4rem;
|
||||
border-radius: 0.12rem;
|
||||
}
|
||||
.logo-footer img {
|
||||
width: 100%;
|
||||
height: 100%;
|
||||
}
|
||||
.footer-center {
|
||||
font-size: 0.24rem;
|
||||
padding: 0.3rem 0.2rem;
|
||||
background: #fff;
|
||||
border-radius: 0.16rem;
|
||||
box-shadow: 0 0.02rem 0.08rem rgba(0, 0, 0, 0.05);
|
||||
margin-top: 0.4rem;
|
||||
border: 0.01rem solid #eef2f9;
|
||||
width: 100%;
|
||||
}
|
||||
@media (min-width: 768px) {
|
||||
.footer-center {
|
||||
grid-template-columns: 1fr 1fr;
|
||||
gap: 0.3rem 0.6rem;
|
||||
}
|
||||
}
|
||||
.footer-center .contact-item {
|
||||
display: flex;
|
||||
align-items: flex-start;
|
||||
padding: 0.16rem 0.2rem;
|
||||
border-radius: 0.12rem;
|
||||
}
|
||||
.footer-center .contact-item .iconfont {
|
||||
width: 0.2rem;
|
||||
height: 0.2rem;
|
||||
margin-right: 0.12rem;
|
||||
margin-top: 0.02rem;
|
||||
color: #275AFF;
|
||||
flex-shrink: 0;
|
||||
font-size: 0.26rem;
|
||||
}
|
||||
.footer-center .contact-item .label {
|
||||
color: #666;
|
||||
flex-shrink: 0;
|
||||
font-weight: 500;
|
||||
margin-right: 0.08rem;
|
||||
font-size: 0.24rem;
|
||||
}
|
||||
.footer-center .contact-item .value {
|
||||
color: #444;
|
||||
flex: 1;
|
||||
line-height: 1.5;
|
||||
}
|
||||
.footer-center .contact-item .phone-numbers {
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
gap: 0.08rem;
|
||||
}
|
||||
@media (min-width: 768px) {
|
||||
.footer-center .contact-item .phone-numbers {
|
||||
flex-direction: row;
|
||||
align-items: center;
|
||||
gap: 0.16rem;
|
||||
}
|
||||
}
|
||||
.footer-center .contact-item .phone-link {
|
||||
color: #333;
|
||||
text-decoration: none;
|
||||
transition: all 0.3s;
|
||||
font-weight: 500;
|
||||
font-size: 0.208rem;
|
||||
/* 增大30%: 0.16rem * 1.3 = 0.208rem */
|
||||
}
|
||||
.footer-center .contact-item .phone-link:hover {
|
||||
color: #275AFF;
|
||||
text-decoration: underline;
|
||||
}
|
||||
.footer-center .contact-item .phone-separator {
|
||||
color: #999;
|
||||
font-weight: 300;
|
||||
}
|
||||
@media (max-width: 768px) {
|
||||
.footer-center .contact-item .phone-separator {
|
||||
display: none;
|
||||
}
|
||||
}
|
||||
.footer-center .contact-item .email-link {
|
||||
color: #275AFF;
|
||||
text-decoration: none;
|
||||
word-break: break-all;
|
||||
font-weight: 500;
|
||||
font-size: 0.208rem;
|
||||
/* 增大30%: 0.16rem * 1.3 = 0.208rem */
|
||||
}
|
||||
.footer-center .contact-item .email-link:hover {
|
||||
color: #2ebdfa;
|
||||
text-decoration: underline;
|
||||
}
|
||||
.code-img {
|
||||
display: flex;
|
||||
justify-content: center;
|
||||
width: 100%;
|
||||
margin-top: 0.4rem;
|
||||
}
|
||||
@media (min-width: 768px) {
|
||||
.code-img {
|
||||
width: auto;
|
||||
margin-top: 0;
|
||||
}
|
||||
}
|
||||
.code-img .qr-box {
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
align-items: center;
|
||||
background: #fff;
|
||||
border-radius: 0.16rem;
|
||||
padding: 0.24rem;
|
||||
box-shadow: 0 0.02rem 0.12rem rgba(39, 90, 255, 0.08);
|
||||
border: 0.01rem solid #eef2f9;
|
||||
transition: all 0.3s ease;
|
||||
}
|
||||
.code-img .qr-box:hover {
|
||||
background: #fff;
|
||||
border-color: #2ebdfa;
|
||||
transform: translateY(-4px);
|
||||
box-shadow: 0 8px 24px rgba(39, 90, 255, 0.15);
|
||||
}
|
||||
.code-img .qr-box .qr-code {
|
||||
width: 1.8rem;
|
||||
height: 1.8rem;
|
||||
background: #fff;
|
||||
border-radius: 0.12rem;
|
||||
padding: 0.12rem;
|
||||
border: 1px solid #eef2f9;
|
||||
margin-bottom: 0.16rem;
|
||||
overflow: hidden;
|
||||
}
|
||||
.code-img .qr-box .qr-code img {
|
||||
width: 100%;
|
||||
height: 100%;
|
||||
object-fit: contain;
|
||||
border-radius: 0.04rem;
|
||||
}
|
||||
.code-img .qr-box .qr-content {
|
||||
color: #333;
|
||||
font-size: 0.182rem;
|
||||
/* 增大30%: 0.14rem * 1.3 = 0.182rem */
|
||||
font-weight: 500;
|
||||
letter-spacing: 0.5px;
|
||||
}
|
||||
/* 底部信息区域 */
|
||||
.footer-bottom {
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
align-items: center;
|
||||
text-align: center;
|
||||
padding: 0.3rem 0.2rem;
|
||||
background: #fff;
|
||||
border-radius: 0.16rem;
|
||||
box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
|
||||
margin-top: 0.4rem;
|
||||
border: 1px solid #eef2f9;
|
||||
}
|
||||
@media (min-width: 768px) {
|
||||
.footer-bottom {
|
||||
flex-direction: row;
|
||||
justify-content: space-between;
|
||||
align-items: center;
|
||||
text-align: left;
|
||||
padding: 0.3rem 0.4rem;
|
||||
}
|
||||
}
|
||||
.icp-info {
|
||||
margin-bottom: 0.24rem;
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
align-items: center;
|
||||
}
|
||||
@media (min-width: 768px) {
|
||||
.icp-info {
|
||||
flex-direction: row;
|
||||
align-items: center;
|
||||
gap: 0.6rem;
|
||||
margin-bottom: 0;
|
||||
}
|
||||
}
|
||||
.icp-info .icp-item {
|
||||
display: flex;
|
||||
align-items: center;
|
||||
gap: 0.08rem;
|
||||
margin-bottom: 0.12rem;
|
||||
}
|
||||
@media (min-width: 768px) {
|
||||
.icp-info .icp-item {
|
||||
margin-bottom: 0;
|
||||
}
|
||||
}
|
||||
.icp-info .icp-item .icp-text {
|
||||
color: #888;
|
||||
font-size: 0.24rem;
|
||||
}
|
||||
.icp-info .icp-item .icp-number {
|
||||
color: #444;
|
||||
font-weight: 500;
|
||||
font-size: 0.24rem;
|
||||
}
|
||||
.icp-info .copyright {
|
||||
color: #888;
|
||||
font-size: 0.24rem;
|
||||
font-weight: 300;
|
||||
}
|
||||
.record-info {
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
align-items: center;
|
||||
gap: 0.16rem;
|
||||
margin-bottom: 0.24rem;
|
||||
}
|
||||
@media (min-width: 768px) {
|
||||
.record-info {
|
||||
flex-direction: row;
|
||||
align-items: center;
|
||||
gap: 0.6rem;
|
||||
margin-bottom: 0;
|
||||
}
|
||||
}
|
||||
.police-record {
|
||||
display: flex;
|
||||
align-items: center;
|
||||
gap: 0.1rem;
|
||||
padding: 0.08rem 0.16rem;
|
||||
background: #f9fafc;
|
||||
border-radius: 0.24rem;
|
||||
transition: all 0.3s;
|
||||
border: 1px solid #eef2f9;
|
||||
}
|
||||
.police-record:hover {
|
||||
background: #f0f5ff;
|
||||
border-color: #275AFF;
|
||||
transform: translateY(-2px);
|
||||
}
|
||||
.police-record .police-icon {
|
||||
width: 0.18rem;
|
||||
height: 0.18rem;
|
||||
}
|
||||
.police-record .police-link {
|
||||
color: #666;
|
||||
text-decoration: none;
|
||||
font-size: 0.24rem;
|
||||
}
|
||||
.police-record .police-link:hover {
|
||||
color: #275AFF;
|
||||
text-decoration: underline;
|
||||
}
|
||||
.license-record .license-link {
|
||||
color: #666;
|
||||
text-decoration: none;
|
||||
font-size: 0.24rem;
|
||||
padding: 0.08rem 0.16rem;
|
||||
background: #f9fafc;
|
||||
border-radius: 0.24rem;
|
||||
transition: all 0.3s;
|
||||
border: 1px solid #eef2f9;
|
||||
}
|
||||
.license-record .license-link:hover {
|
||||
background: #f0f5ff;
|
||||
color: #275AFF;
|
||||
text-decoration: underline;
|
||||
transform: translateY(-2px);
|
||||
border-color: #275AFF;
|
||||
}
|
||||
/* 移动端二维码 */
|
||||
.mobile-qr {
|
||||
display: flex;
|
||||
justify-content: center;
|
||||
width: 100%;
|
||||
margin-top: 0.4rem;
|
||||
}
|
||||
@media (min-width: 768px) {
|
||||
.mobile-qr {
|
||||
display: none;
|
||||
}
|
||||
}
|
||||
.mobile-qr .qr-item {
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
align-items: center;
|
||||
background: #fff;
|
||||
border-radius: 0.16rem;
|
||||
padding: 0.24rem;
|
||||
box-shadow: 0 2px 12px rgba(39, 90, 255, 0.08);
|
||||
border: 1px solid #eef2f9;
|
||||
width: 100%;
|
||||
max-width: 2.4rem;
|
||||
margin-right: 0.4rem;
|
||||
}
|
||||
.mobile-qr .qr-item .qr-code {
|
||||
width: 1.6rem;
|
||||
height: 1.6rem;
|
||||
background: #fff;
|
||||
border-radius: 0.12rem;
|
||||
padding: 0.12rem;
|
||||
border: 1px solid #eef2f9;
|
||||
margin-bottom: 0.16rem;
|
||||
}
|
||||
.mobile-qr .qr-item .qr-code img {
|
||||
width: 100%;
|
||||
height: 100%;
|
||||
object-fit: contain;
|
||||
border-radius: 0.04rem;
|
||||
}
|
||||
.mobile-qr .qr-item .qr-desc {
|
||||
color: #333;
|
||||
font-size: 0.208rem;
|
||||
font-weight: 500;
|
||||
}
|
||||
/* PC端二维码 */
|
||||
.pc-qr {
|
||||
position: absolute;
|
||||
right: 0.4rem;
|
||||
bottom: 0.4rem;
|
||||
display: none;
|
||||
}
|
||||
@media (min-width: 768px) {
|
||||
.pc-qr {
|
||||
display: block;
|
||||
}
|
||||
}
|
||||
.pc-qr .qr-box {
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
align-items: center;
|
||||
background: #fff;
|
||||
border-radius: 0.16rem;
|
||||
padding: 0.24rem;
|
||||
box-shadow: 0 2px 12px rgba(39, 90, 255, 0.08);
|
||||
border: 1px solid #eef2f9;
|
||||
transition: all 0.3s ease;
|
||||
}
|
||||
.pc-qr .qr-box:hover {
|
||||
background: #fff;
|
||||
border-color: #2ebdfa;
|
||||
transform: translateY(-4px) scale(1.05);
|
||||
box-shadow: 0 8px 24px rgba(39, 90, 255, 0.15);
|
||||
}
|
||||
.pc-qr .qr-box .qr-code {
|
||||
width: 1.6rem;
|
||||
height: 1.6rem;
|
||||
background: #fff;
|
||||
border-radius: 0.12rem;
|
||||
padding: 0.12rem;
|
||||
border: 1px solid #eef2f9;
|
||||
margin-bottom: 0.16rem;
|
||||
}
|
||||
.pc-qr .qr-box .qr-code img {
|
||||
width: 100%;
|
||||
height: 100%;
|
||||
object-fit: contain;
|
||||
border-radius: 0.04rem;
|
||||
}
|
||||
.pc-qr .qr-box .qr-content {
|
||||
color: #333;
|
||||
font-size: 0.182rem;
|
||||
/* 增大30%: 0.14rem * 1.3 = 0.182rem */
|
||||
font-weight: 500;
|
||||
letter-spacing: 0.5px;
|
||||
}
|
||||
725
f/web-kboss/src/views/H5/less/official/index.less
Normal file
@ -0,0 +1,725 @@
|
||||
.main-page {
|
||||
width: 100%;
|
||||
min-height: 100vh;
|
||||
background-color: #f8fafd;
|
||||
overflow-y: auto;
|
||||
-webkit-overflow-scrolling: touch;
|
||||
}
|
||||
|
||||
.logo-item {
|
||||
display: flex;
|
||||
align-items: center;
|
||||
}
|
||||
|
||||
.top-box {
|
||||
width: 100%;
|
||||
height: 50vh;
|
||||
background: url("../../images/banner.png") no-repeat;
|
||||
background-size: 100% 100%;
|
||||
display: flex;
|
||||
align-items: center;
|
||||
}
|
||||
|
||||
.title {
|
||||
width: 100%;
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
justify-content: center;
|
||||
align-items: center;
|
||||
color: #222f60;
|
||||
|
||||
.name {
|
||||
background: linear-gradient(90deg, #275AFF 0%, #2EBDFA 100%);
|
||||
-webkit-background-clip: text;
|
||||
-webkit-text-fill-color: transparent;
|
||||
background-clip: text;
|
||||
font-size: .68rem;
|
||||
}
|
||||
|
||||
.title-top {
|
||||
font-size: .6rem;
|
||||
|
||||
}
|
||||
|
||||
.title-btm {
|
||||
font-size: .338rem;
|
||||
margin-top: .98rem;
|
||||
}
|
||||
}
|
||||
|
||||
.text {
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
justify-content: center;
|
||||
align-items: center;
|
||||
padding: .14rem 0;
|
||||
width: 100%;
|
||||
|
||||
.text-top {
|
||||
font-size: .338rem;
|
||||
color: #000;
|
||||
font-weight: 700;
|
||||
}
|
||||
|
||||
.text-btm {
|
||||
font-size: .234rem;
|
||||
color: #707070;
|
||||
}
|
||||
}
|
||||
|
||||
.base-box,
|
||||
.journey-box,
|
||||
.latitude-box {
|
||||
width: 100%;
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
padding: 0.3rem 0.4rem;
|
||||
|
||||
.content {
|
||||
display: flex;
|
||||
flex-wrap: wrap;
|
||||
justify-content: space-between;
|
||||
gap: 0.2rem;
|
||||
|
||||
.item-box {
|
||||
width: 48%;
|
||||
border-radius: 0.1rem;
|
||||
padding: 0.2rem;
|
||||
box-shadow: 0 .02rem .08rem rgba(39, 90, 255, 0.08);
|
||||
margin-bottom: 0.2rem;
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
background: linear-gradient(135deg, #f0f7ff 0%, #ffffff 100%);
|
||||
border: .01rem solid rgba(39, 90, 255, 0.1);
|
||||
transition: all 0.3s ease;
|
||||
position: relative;
|
||||
padding-bottom: 1.8rem;
|
||||
|
||||
&:hover {
|
||||
box-shadow: 0 .04rem .16rem rgba(39, 90, 255, 0.12);
|
||||
transform: translateY(-0.02rem);
|
||||
border-color: rgba(39, 90, 255, 0.2);
|
||||
background: linear-gradient(135deg, #e8f2ff 0%, #ffffff 100%);
|
||||
}
|
||||
|
||||
.item-title {
|
||||
font-size: 0.26rem;
|
||||
font-weight: bold;
|
||||
color: #333;
|
||||
margin-bottom: 0.1rem;
|
||||
}
|
||||
|
||||
.item-description {
|
||||
font-size: 0.2rem;
|
||||
color: #666;
|
||||
margin-bottom: 0.15rem;
|
||||
line-height: 1.4;
|
||||
}
|
||||
|
||||
.advantage-list {
|
||||
display: block;
|
||||
|
||||
.advantage-item {
|
||||
display: block;
|
||||
font-size: 0.156rem;
|
||||
color: #666;
|
||||
|
||||
.advantage-icon {
|
||||
width: 0.18rem;
|
||||
height: 0.18rem;
|
||||
margin-right: 0.05rem;
|
||||
flex-shrink: 0;
|
||||
}
|
||||
|
||||
.advantage-name {
|
||||
color: #000;
|
||||
font-weight: 500;
|
||||
white-space: nowrap;
|
||||
font-size: .2rem;
|
||||
margin-right: 0.05rem;
|
||||
}
|
||||
|
||||
.advantage-content {
|
||||
// flex: 1;
|
||||
font-size: .18rem;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
.item-price {
|
||||
width: calc(100% - 0.4rem);
|
||||
padding-top: 0.2rem;
|
||||
// 上虚线
|
||||
border-top: .02rem dashed #d4d6e1;
|
||||
font-size: 0.13rem;
|
||||
font-weight: bold;
|
||||
color: #d4d6e1;
|
||||
margin: 0.2rem 0;
|
||||
position: absolute;
|
||||
bottom: .6rem;
|
||||
|
||||
.price {
|
||||
font-size: .38rem;
|
||||
color: #f52220;
|
||||
}
|
||||
|
||||
.price-icon {
|
||||
color: #f52220;
|
||||
font-size: .18rem;
|
||||
}
|
||||
}
|
||||
|
||||
.tag-list {
|
||||
display: flex;
|
||||
flex-wrap: wrap;
|
||||
gap: 0.1rem;
|
||||
margin: 0.15rem 0;
|
||||
|
||||
.tag-item {
|
||||
padding: 0.04rem 0.12rem;
|
||||
font-size: 0.18rem;
|
||||
color: #aeb6bf;
|
||||
background-color: #fff;
|
||||
border: .02rem solid #c8d6e7;
|
||||
border-radius: 0.12rem;
|
||||
display: inline-block;
|
||||
}
|
||||
}
|
||||
|
||||
.item-button {
|
||||
background: linear-gradient(90deg, #275AFF 0%, #2EBDFA 100%);
|
||||
border-radius: 0.04rem;
|
||||
padding: 0.08rem 0;
|
||||
text-align: center;
|
||||
cursor: pointer;
|
||||
margin-top: auto;
|
||||
width: 100%;
|
||||
position: relative;
|
||||
bottom: -1.6rem;
|
||||
|
||||
.item-button-text {
|
||||
color: #fff;
|
||||
font-size: 0.182rem;
|
||||
/* 增大30%: 0.14rem * 1.3 = 0.182rem */
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
.partner {
|
||||
background-color: #f8f9fd;
|
||||
width: 100%;
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
padding: 0.3rem 0.4rem;
|
||||
|
||||
.partner-scroll {
|
||||
width: 100%;
|
||||
max-width: 14rem;
|
||||
margin: 0 auto;
|
||||
padding: .15rem;
|
||||
background: #fff;
|
||||
border-radius: .16rem;
|
||||
margin-bottom: .3rem;
|
||||
|
||||
.logo-scroll-wrapper {
|
||||
width: 100%;
|
||||
height: .85rem;
|
||||
overflow: hidden;
|
||||
position: relative;
|
||||
}
|
||||
|
||||
.logo-scroll-container {
|
||||
display: flex;
|
||||
height: 100%;
|
||||
animation: scroll linear infinite;
|
||||
white-space: nowrap;
|
||||
width: max-content;
|
||||
}
|
||||
|
||||
.logo-item {
|
||||
flex: 0 0 auto;
|
||||
width: 1.68rem;
|
||||
height: 100%;
|
||||
margin-right: .2rem;
|
||||
background: #fff;
|
||||
border-radius: .04rem;
|
||||
overflow: hidden;
|
||||
display: flex;
|
||||
align-items: center;
|
||||
justify-content: center;
|
||||
|
||||
img {
|
||||
width: 100%;
|
||||
height: 100%;
|
||||
object-fit: contain;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
/* 关键:无缝循环滚动动画 */
|
||||
@keyframes scroll {
|
||||
0% {
|
||||
transform: translateX(0);
|
||||
}
|
||||
|
||||
100% {
|
||||
/* 因为图片重复了三份,所以移动33.33%实现无缝循环 */
|
||||
transform: translateX(-33.33%);
|
||||
}
|
||||
}
|
||||
|
||||
.footer {
|
||||
width: 100%;
|
||||
background: #f5f7fa;
|
||||
color: #fff;
|
||||
padding: 0.4rem 0.2rem;
|
||||
// margin-top: 0.8rem;
|
||||
}
|
||||
|
||||
.footer-content {
|
||||
max-width: 12rem;
|
||||
margin: 0 auto;
|
||||
}
|
||||
|
||||
.footer {
|
||||
width: 100%;
|
||||
background: #f6f8fd;
|
||||
color: #333;
|
||||
padding: 0.6rem 0.2rem 0.4rem;
|
||||
// margin-top: 1rem;
|
||||
position: relative;
|
||||
overflow: hidden;
|
||||
border-top: .01rem solid #e8edf5;
|
||||
}
|
||||
|
||||
.footer:before {
|
||||
content: '';
|
||||
position: absolute;
|
||||
top: 0;
|
||||
left: 0;
|
||||
width: 100%;
|
||||
|
||||
}
|
||||
|
||||
.footer-content {
|
||||
max-width: 12.8rem;
|
||||
margin: 0 auto;
|
||||
position: relative;
|
||||
// z-index: 1;
|
||||
}
|
||||
|
||||
/* 顶部信息区域 */
|
||||
.footer-top {
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
align-items: flex-start;
|
||||
// padding-bottom: 0.4rem;
|
||||
// margin-bottom: 0.4rem;
|
||||
|
||||
}
|
||||
|
||||
.logo-footer {
|
||||
width: 2.4rem;
|
||||
height: .8rem;
|
||||
margin-bottom: 0.4rem;
|
||||
border-radius: 0.12rem;
|
||||
|
||||
img {
|
||||
width: 100%;
|
||||
height: 100%;
|
||||
}
|
||||
}
|
||||
|
||||
.footer-center {
|
||||
font-size: 0.24rem;
|
||||
padding: 0.3rem 0.2rem;
|
||||
background: #fff;
|
||||
border-radius: 0.16rem;
|
||||
box-shadow: 0 .02rem .08rem rgba(0, 0, 0, 0.05);
|
||||
margin-top: 0.4rem;
|
||||
border: .01rem solid #eef2f9;
|
||||
width: 100%;
|
||||
|
||||
@media (min-width: 768px) {
|
||||
grid-template-columns: 1fr 1fr;
|
||||
gap: 0.3rem 0.6rem;
|
||||
}
|
||||
|
||||
.contact-item {
|
||||
display: flex;
|
||||
align-items: flex-start;
|
||||
padding: 0.16rem 0.2rem;
|
||||
border-radius: 0.12rem;
|
||||
|
||||
.iconfont {
|
||||
width: 0.2rem;
|
||||
height: 0.2rem;
|
||||
margin-right: 0.12rem;
|
||||
margin-top: 0.02rem;
|
||||
color: #275AFF;
|
||||
flex-shrink: 0;
|
||||
font-size: 0.26rem;
|
||||
}
|
||||
|
||||
.label {
|
||||
color: #666;
|
||||
flex-shrink: 0;
|
||||
font-weight: 500;
|
||||
margin-right: 0.08rem;
|
||||
font-size: 0.24rem;
|
||||
}
|
||||
|
||||
.value {
|
||||
color: #444;
|
||||
flex: 1;
|
||||
line-height: 1.5;
|
||||
}
|
||||
|
||||
.phone-numbers {
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
gap: 0.08rem;
|
||||
|
||||
@media (min-width: 768px) {
|
||||
flex-direction: row;
|
||||
align-items: center;
|
||||
gap: 0.16rem;
|
||||
}
|
||||
}
|
||||
|
||||
.phone-link {
|
||||
color: #333;
|
||||
text-decoration: none;
|
||||
transition: all 0.3s;
|
||||
font-weight: 500;
|
||||
font-size: 0.208rem;
|
||||
/* 增大30%: 0.16rem * 1.3 = 0.208rem */
|
||||
|
||||
&:hover {
|
||||
color: #275AFF;
|
||||
text-decoration: underline;
|
||||
}
|
||||
}
|
||||
|
||||
.phone-separator {
|
||||
color: #999;
|
||||
font-weight: 300;
|
||||
|
||||
@media (max-width: 768px) {
|
||||
display: none;
|
||||
}
|
||||
}
|
||||
|
||||
.email-link {
|
||||
color: #275AFF;
|
||||
text-decoration: none;
|
||||
word-break: break-all;
|
||||
font-weight: 500;
|
||||
font-size: 0.208rem;
|
||||
/* 增大30%: 0.16rem * 1.3 = 0.208rem */
|
||||
|
||||
&:hover {
|
||||
color: #2ebdfa;
|
||||
text-decoration: underline;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
.code-img {
|
||||
display: flex;
|
||||
justify-content: center;
|
||||
width: 100%;
|
||||
margin-top: 0.4rem;
|
||||
|
||||
@media (min-width: 768px) {
|
||||
width: auto;
|
||||
margin-top: 0;
|
||||
}
|
||||
|
||||
.qr-box {
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
align-items: center;
|
||||
background: #fff;
|
||||
border-radius: 0.16rem;
|
||||
padding: 0.24rem;
|
||||
box-shadow: 0 .02rem .12rem rgba(39, 90, 255, 0.08);
|
||||
border: .01rem solid #eef2f9;
|
||||
transition: all 0.3s ease;
|
||||
|
||||
&:hover {
|
||||
background: #fff;
|
||||
border-color: #2ebdfa;
|
||||
transform: translateY(-4px);
|
||||
box-shadow: 0 8px 24px rgba(39, 90, 255, 0.15);
|
||||
}
|
||||
|
||||
.qr-code {
|
||||
width: 1.8rem;
|
||||
height: 1.8rem;
|
||||
background: #fff;
|
||||
border-radius: 0.12rem;
|
||||
padding: 0.12rem;
|
||||
border: 1px solid #eef2f9;
|
||||
margin-bottom: 0.16rem;
|
||||
overflow: hidden;
|
||||
|
||||
img {
|
||||
width: 100%;
|
||||
height: 100%;
|
||||
object-fit: contain;
|
||||
border-radius: 0.04rem;
|
||||
}
|
||||
}
|
||||
|
||||
.qr-content {
|
||||
color: #333;
|
||||
font-size: 0.182rem;
|
||||
/* 增大30%: 0.14rem * 1.3 = 0.182rem */
|
||||
font-weight: 500;
|
||||
letter-spacing: 0.5px;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
/* 底部信息区域 */
|
||||
.footer-bottom {
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
align-items: center;
|
||||
text-align: center;
|
||||
padding: 0.3rem 0.2rem;
|
||||
background: #fff;
|
||||
border-radius: 0.16rem;
|
||||
box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
|
||||
margin-top: 0.4rem;
|
||||
border: 1px solid #eef2f9;
|
||||
|
||||
@media (min-width: 768px) {
|
||||
flex-direction: row;
|
||||
justify-content: space-between;
|
||||
align-items: center;
|
||||
text-align: left;
|
||||
padding: 0.3rem 0.4rem;
|
||||
}
|
||||
}
|
||||
|
||||
.icp-info {
|
||||
margin-bottom: 0.24rem;
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
align-items: center;
|
||||
|
||||
@media (min-width: 768px) {
|
||||
flex-direction: row;
|
||||
align-items: center;
|
||||
gap: 0.6rem;
|
||||
margin-bottom: 0;
|
||||
}
|
||||
|
||||
.icp-item {
|
||||
display: flex;
|
||||
align-items: center;
|
||||
gap: 0.08rem;
|
||||
margin-bottom: 0.12rem;
|
||||
|
||||
@media (min-width: 768px) {
|
||||
margin-bottom: 0;
|
||||
}
|
||||
|
||||
.icp-text {
|
||||
color: #888;
|
||||
font-size: 0.24rem;
|
||||
}
|
||||
|
||||
.icp-number {
|
||||
color: #444;
|
||||
font-weight: 500;
|
||||
font-size: 0.24rem;
|
||||
}
|
||||
}
|
||||
|
||||
.copyright {
|
||||
color: #888;
|
||||
font-size: 0.24rem;
|
||||
font-weight: 300;
|
||||
}
|
||||
}
|
||||
|
||||
.record-info {
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
align-items: center;
|
||||
gap: 0.16rem;
|
||||
margin-bottom: 0.24rem;
|
||||
|
||||
@media (min-width: 768px) {
|
||||
flex-direction: row;
|
||||
align-items: center;
|
||||
gap: 0.6rem;
|
||||
margin-bottom: 0;
|
||||
}
|
||||
}
|
||||
|
||||
.police-record {
|
||||
display: flex;
|
||||
align-items: center;
|
||||
gap: 0.1rem;
|
||||
padding: 0.08rem 0.16rem;
|
||||
background: #f9fafc;
|
||||
border-radius: 0.24rem;
|
||||
transition: all 0.3s;
|
||||
border: 1px solid #eef2f9;
|
||||
|
||||
&:hover {
|
||||
background: #f0f5ff;
|
||||
border-color: #275AFF;
|
||||
transform: translateY(-2px);
|
||||
}
|
||||
|
||||
.police-icon {
|
||||
width: 0.18rem;
|
||||
height: 0.18rem;
|
||||
}
|
||||
|
||||
.police-link {
|
||||
color: #666;
|
||||
text-decoration: none;
|
||||
font-size: 0.24rem;
|
||||
|
||||
&:hover {
|
||||
color: #275AFF;
|
||||
text-decoration: underline;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
.license-record {
|
||||
.license-link {
|
||||
color: #666;
|
||||
text-decoration: none;
|
||||
font-size: 0.24rem;
|
||||
padding: 0.08rem 0.16rem;
|
||||
background: #f9fafc;
|
||||
border-radius: 0.24rem;
|
||||
transition: all 0.3s;
|
||||
border: 1px solid #eef2f9;
|
||||
|
||||
&:hover {
|
||||
background: #f0f5ff;
|
||||
color: #275AFF;
|
||||
text-decoration: underline;
|
||||
transform: translateY(-2px);
|
||||
border-color: #275AFF;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
/* 移动端二维码 */
|
||||
.mobile-qr {
|
||||
display: flex;
|
||||
justify-content: center;
|
||||
width: 100%;
|
||||
margin-top: 0.4rem;
|
||||
|
||||
@media (min-width: 768px) {
|
||||
display: none;
|
||||
}
|
||||
|
||||
.qr-item {
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
align-items: center;
|
||||
background: #fff;
|
||||
border-radius: 0.16rem;
|
||||
padding: 0.24rem;
|
||||
box-shadow: 0 2px 12px rgba(39, 90, 255, 0.08);
|
||||
border: 1px solid #eef2f9;
|
||||
width: 100%;
|
||||
max-width: 2.4rem;
|
||||
margin-right: 0.4rem;
|
||||
|
||||
.qr-code {
|
||||
width: 1.6rem;
|
||||
height: 1.6rem;
|
||||
background: #fff;
|
||||
border-radius: 0.12rem;
|
||||
padding: 0.12rem;
|
||||
border: 1px solid #eef2f9;
|
||||
margin-bottom: 0.16rem;
|
||||
|
||||
img {
|
||||
width: 100%;
|
||||
height: 100%;
|
||||
object-fit: contain;
|
||||
border-radius: 0.04rem;
|
||||
}
|
||||
}
|
||||
|
||||
.qr-desc {
|
||||
color: #333;
|
||||
font-size: 0.208rem;
|
||||
font-weight: 500;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
/* PC端二维码 */
|
||||
.pc-qr {
|
||||
position: absolute;
|
||||
right: 0.4rem;
|
||||
bottom: 0.4rem;
|
||||
display: none;
|
||||
|
||||
@media (min-width: 768px) {
|
||||
display: block;
|
||||
}
|
||||
|
||||
.qr-box {
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
align-items: center;
|
||||
background: #fff;
|
||||
border-radius: 0.16rem;
|
||||
padding: 0.24rem;
|
||||
box-shadow: 0 2px 12px rgba(39, 90, 255, 0.08);
|
||||
border: 1px solid #eef2f9;
|
||||
transition: all 0.3s ease;
|
||||
|
||||
&:hover {
|
||||
background: #fff;
|
||||
border-color: #2ebdfa;
|
||||
transform: translateY(-4px) scale(1.05);
|
||||
box-shadow: 0 8px 24px rgba(39, 90, 255, 0.15);
|
||||
}
|
||||
|
||||
.qr-code {
|
||||
width: 1.6rem;
|
||||
height: 1.6rem;
|
||||
background: #fff;
|
||||
border-radius: 0.12rem;
|
||||
padding: 0.12rem;
|
||||
border: 1px solid #eef2f9;
|
||||
margin-bottom: 0.16rem;
|
||||
|
||||
img {
|
||||
width: 100%;
|
||||
height: 100%;
|
||||
object-fit: contain;
|
||||
border-radius: 0.04rem;
|
||||
}
|
||||
}
|
||||
|
||||
.qr-content {
|
||||
color: #333;
|
||||
font-size: 0.182rem;
|
||||
/* 增大30%: 0.14rem * 1.3 = 0.182rem */
|
||||
font-weight: 500;
|
||||
letter-spacing: 0.5px;
|
||||
}
|
||||
}
|
||||
}
|
||||
@ -5,147 +5,226 @@
|
||||
开元云
|
||||
</div>
|
||||
|
||||
<!-- 供应商 -->
|
||||
<div v-if="cloudData.secMenu && cloudData.secMenu.length > 0" class="supplier">
|
||||
<div class="supplier-title">{{ cloudData.secMenu[0].secTitle }}</div>
|
||||
<!-- 搜索 -->
|
||||
<div class="search">
|
||||
<div class="search-box">
|
||||
<div class="input">
|
||||
<input
|
||||
type="text"
|
||||
placeholder="请输入产品名称"
|
||||
v-model="searchValue"
|
||||
@keyup.enter="handleSearch"
|
||||
/>
|
||||
</div>
|
||||
<div class="search-btn" @click="handleSearch">
|
||||
搜索
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<!-- 搜索提示 -->
|
||||
<div v-if="isSearching && searchValue" class="search-tip">
|
||||
搜索关键词: "{{ searchValue }}"
|
||||
<span class="clear-search" @click="clearSearch">× 清空搜索</span>
|
||||
</div>
|
||||
|
||||
<!-- 供应商 - 只在非搜索模式显示 -->
|
||||
<div v-if="!isSearching && cloudData.secMenu && cloudData.secMenu.length > 0" class="supplier-container">
|
||||
<div v-for="(value, index) in cloudData.secMenu" :key="index" class="supplier" @click="selectSupplier(index)">
|
||||
<div class="supplier-title" :class="{ 'active': activeSupplierIndex === index }">
|
||||
{{ value.secTitle }}
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<!-- 云产品 -->
|
||||
<div class="box">
|
||||
<!-- 循环所有分类下的产品 -->
|
||||
<template v-if="cloudData.secMenu && cloudData.secMenu.length > 0">
|
||||
<template v-for="secMenu in cloudData.secMenu">
|
||||
<template v-for="thrMenu in secMenu.thrMenu">
|
||||
<!-- 循环每个分类下的产品 -->
|
||||
<div
|
||||
v-for="product in thrMenu.value"
|
||||
:key="product.id"
|
||||
class="box-item"
|
||||
>
|
||||
<!-- 标题 -->
|
||||
<div class="item-tit">
|
||||
{{ product.name }}
|
||||
</div>
|
||||
<!-- 详情 -->
|
||||
<div class="item-detail">
|
||||
{{ product.description }}
|
||||
</div>
|
||||
<!-- 描述 -->
|
||||
<div class="item-desc">
|
||||
算力网络
|
||||
</div>
|
||||
<!-- 立即咨询 -->
|
||||
<div class="item-btn">
|
||||
<div class="btn">
|
||||
立即咨询
|
||||
</div>
|
||||
<!-- 搜索模式:显示搜索结果 -->
|
||||
<template v-if="isSearching && searchResults.length > 0">
|
||||
<div v-for="product in searchResults" :key="product.id" class="box-item">
|
||||
<div class="item-tit">
|
||||
{{ product.name }}
|
||||
</div>
|
||||
<div class="item-detail">
|
||||
{{ product.description }}
|
||||
</div>
|
||||
<div class="item-desc">
|
||||
算力网络
|
||||
</div>
|
||||
<div class="item-btn">
|
||||
<div class="btn" @click="goToDetail(product.id)">
|
||||
查看详情
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</template>
|
||||
|
||||
<!-- 搜索模式:无结果 -->
|
||||
<div v-else-if="isSearching && searchResults.length === 0" class="no-data">
|
||||
未找到与"{{ searchValue }}"相关的产品
|
||||
</div>
|
||||
|
||||
<!-- 正常模式:只显示当前选中的供应商的产品 -->
|
||||
<template v-else-if="!isSearching && cloudData.secMenu && cloudData.secMenu.length > 0 && activeSupplierIndex >= 0">
|
||||
<template v-for="thrMenu in cloudData.secMenu[activeSupplierIndex].thrMenu">
|
||||
<div v-for="product in thrMenu.value" :key="product.id" class="box-item">
|
||||
<div class="item-tit">
|
||||
{{ product.name }}
|
||||
</div>
|
||||
<div class="item-detail">
|
||||
{{ product.description }}
|
||||
</div>
|
||||
<div class="item-desc">
|
||||
算力网络
|
||||
</div>
|
||||
<div class="item-btn">
|
||||
<div class="btn" @click="goToDetail(product.id)">
|
||||
查看详情
|
||||
</div>
|
||||
</div>
|
||||
</template>
|
||||
</div>
|
||||
</template>
|
||||
</template>
|
||||
|
||||
<!-- 正常模式:无数据 -->
|
||||
<div v-else-if="!isSearching && (!cloudData.secMenu || cloudData.secMenu.length === 0)" class="no-data">
|
||||
暂无产品数据
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</template>
|
||||
|
||||
<script>
|
||||
import { reqNavList } from '@/api/H5/index'
|
||||
|
||||
export default {
|
||||
data() {
|
||||
return {
|
||||
cloudData: {},
|
||||
activeSupplierIndex: 0,
|
||||
searchValue: '',
|
||||
isSearching: false,
|
||||
searchResults: []
|
||||
}
|
||||
},
|
||||
created() {
|
||||
this.getCloudData()
|
||||
},
|
||||
methods: {
|
||||
async getCloudData() {
|
||||
const res = await reqNavList()
|
||||
if (res.status == true) {
|
||||
this.cloudData = res.data.product_service[2]
|
||||
console.log(this.cloudData);
|
||||
async getCloudData(keyword) {
|
||||
try {
|
||||
const params = {
|
||||
url_link: window.location.href,
|
||||
...(keyword && { keyword: keyword.trim() })
|
||||
}
|
||||
|
||||
const res = await reqNavList(params)
|
||||
if (res.status == true) {
|
||||
if (keyword) {
|
||||
// 搜索模式
|
||||
this.isSearching = true
|
||||
this.searchResults = Array.isArray(res.data) ? res.data : []
|
||||
} else {
|
||||
// 正常模式
|
||||
this.isSearching = false
|
||||
this.searchResults = []
|
||||
this.cloudData = res.data.product_service[2] || {}
|
||||
|
||||
if (this.cloudData.secMenu && this.cloudData.secMenu.length > 0) {
|
||||
this.activeSupplierIndex = 0
|
||||
}
|
||||
}
|
||||
}
|
||||
} catch (error) {
|
||||
console.error('获取数据失败:', error)
|
||||
this.isSearching = false
|
||||
this.searchResults = []
|
||||
}
|
||||
}
|
||||
},
|
||||
|
||||
// 处理搜索
|
||||
handleSearch() {
|
||||
const keyword = this.searchValue.trim()
|
||||
if (keyword) {
|
||||
this.getCloudData(keyword)
|
||||
} else {
|
||||
// 如果搜索框为空,返回正常模式
|
||||
this.clearSearch()
|
||||
}
|
||||
},
|
||||
|
||||
// 清空搜索
|
||||
clearSearch() {
|
||||
this.isSearching = false
|
||||
this.searchValue = ''
|
||||
this.searchResults = []
|
||||
this.getCloudData() // 重新加载正常数据
|
||||
},
|
||||
|
||||
// 选择供应商
|
||||
selectSupplier(index) {
|
||||
if (!this.isSearching) {
|
||||
this.activeSupplierIndex = index
|
||||
}
|
||||
},
|
||||
|
||||
// 跳转到详情页
|
||||
goToDetail(productId) {
|
||||
this.$router.push({
|
||||
path: '/h5HomePage/netDetail',
|
||||
query: {
|
||||
id: productId
|
||||
}
|
||||
})
|
||||
},
|
||||
}
|
||||
}
|
||||
</script>
|
||||
|
||||
<style>
|
||||
html,
|
||||
body {
|
||||
html, body {
|
||||
height: 100%;
|
||||
overflow-y: auto;
|
||||
}
|
||||
</style>
|
||||
|
||||
<style lang="less" scoped>
|
||||
.top-tit {
|
||||
@import url('../less/all/index.less');
|
||||
|
||||
/* 搜索提示样式 */
|
||||
.search-tip {
|
||||
padding: 10px 20px;
|
||||
background-color: #f5f7fa;
|
||||
color: #666;
|
||||
font-size: 14px;
|
||||
display: flex;
|
||||
justify-content: center;
|
||||
background: linear-gradient(90deg, #275AFF 0%, #2EBDFA 100%);
|
||||
-webkit-background-clip: text;
|
||||
-webkit-text-fill-color: transparent;
|
||||
background-clip: text;
|
||||
font-size: .3rem;
|
||||
}
|
||||
|
||||
.supplier {
|
||||
|
||||
display: flex;
|
||||
padding: .22rem ;
|
||||
|
||||
.supplier-title {
|
||||
font-size: .2rem;
|
||||
color: #000;
|
||||
padding: .1rem .16rem;
|
||||
background-color: pink;
|
||||
border-radius: 0.08rem;
|
||||
}
|
||||
}
|
||||
|
||||
.box {
|
||||
width: 100%;
|
||||
display: flex;
|
||||
flex-wrap: wrap;
|
||||
justify-content: space-between;
|
||||
padding: 0 .3rem;
|
||||
.box-item {
|
||||
display: flex;
|
||||
width: 48%;
|
||||
flex-direction: column;
|
||||
align-items: self-start;
|
||||
border: .02rem solid #f0f0f0;
|
||||
border-radius: .2rem;
|
||||
padding: .1rem 0.1rem;
|
||||
margin: .34rem 0;
|
||||
.item-tit{
|
||||
font-size: .14rem;
|
||||
color: #000;
|
||||
}
|
||||
.item-detail{
|
||||
color: #737373;
|
||||
font-size: .12rem;
|
||||
margin: .26rem 0;
|
||||
}
|
||||
.item-desc{
|
||||
color: #acafb3;
|
||||
background-color: #e9edf2;
|
||||
font-size: .12rem;
|
||||
padding: .06rem .1rem;
|
||||
border-radius: .08rem;
|
||||
}
|
||||
.item-btn{
|
||||
width: 100%;
|
||||
display: flex;
|
||||
justify-content: flex-end;
|
||||
.btn{
|
||||
background-color: #1f70ff;
|
||||
color: #fff;
|
||||
padding: .05rem .1rem;
|
||||
border-radius: .1rem;
|
||||
font-size: 0.16rem;
|
||||
}
|
||||
}
|
||||
}
|
||||
align-items: center;
|
||||
border-bottom: 1px solid #e4e7ed;
|
||||
}
|
||||
|
||||
.clear-search {
|
||||
color: #409EFF;
|
||||
cursor: pointer;
|
||||
font-size: 12px;
|
||||
padding: 2px 8px;
|
||||
border-radius: 3px;
|
||||
transition: all 0.3s;
|
||||
}
|
||||
|
||||
.clear-search:hover {
|
||||
background-color: #ecf5ff;
|
||||
color: #409EFF;
|
||||
}
|
||||
|
||||
/* 无数据样式 */
|
||||
.no-data {
|
||||
text-align: center;
|
||||
padding: 40px 20px;
|
||||
color: #909399;
|
||||
font-size: 14px;
|
||||
background-color: #f5f7fa;
|
||||
border-radius: 4px;
|
||||
margin: 20px;
|
||||
}
|
||||
</style>
|
||||
|
||||
|
||||
561
f/web-kboss/src/views/H5/netDetails/index.vue
Normal file
@ -0,0 +1,561 @@
|
||||
<template>
|
||||
<div>
|
||||
<div class="banner">
|
||||
<!-- 介绍 -->
|
||||
<div class="introduce">
|
||||
<div class="title">
|
||||
<span>{{ productList.title }}</span>
|
||||
</div>
|
||||
<!-- 详情 -->
|
||||
<div class="details">
|
||||
<span>{{ productList.description }}</span>
|
||||
</div>
|
||||
<div class="btn" @click="openConsultDialog">
|
||||
立即咨询
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<!-- 数据 -->
|
||||
<div class="data">
|
||||
<!-- 优势 -->
|
||||
<div class="advantage">
|
||||
<div class="title">
|
||||
产品<span class="color">优势</span>
|
||||
</div>
|
||||
<!-- 优势列表 -->
|
||||
<div class="advantage-list">
|
||||
<!-- 优势项 -->
|
||||
<div class="advantage-item" v-for="(item, index) in productList.adList" :key="index">
|
||||
<div class="icon">
|
||||
<img :src="item.img ? item.img : ''" alt="">
|
||||
</div>
|
||||
<!-- 描述 -->
|
||||
<div class="advantage-desc">
|
||||
<span class="desc-title">{{ item.title }}</span>
|
||||
<span class="desc-details">{{ item.description }}</span>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<!-- 功能 -->
|
||||
<div class="function">
|
||||
<div class="title">
|
||||
产品<span class="color">功能</span>
|
||||
</div>
|
||||
<!-- 功能列表 -->
|
||||
<div class="function-list" v-for="(group, groupIndex) in productList.useList" :key="group.id || groupIndex">
|
||||
<!-- 功能项 -->
|
||||
<div class="function-box" v-for="(item, itemIndex) in group.content" :key="item.id">
|
||||
<!-- 图标 -->
|
||||
<div class="function-icon">
|
||||
<img :src="getFunctionIcon(itemIndex)" alt="">
|
||||
</div>
|
||||
<!-- 描述 -->
|
||||
<div class="function-desc">
|
||||
<span class="desc-title">{{ item.title }}</span>
|
||||
<span class="desc-details">{{ item.description }}</span>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<!-- 场景 -->
|
||||
<div class="scene" v-if="productList.applicationList && productList.applicationList.length > 0">
|
||||
<div class="title">
|
||||
产品<span class="color">场景</span>
|
||||
</div>
|
||||
<!-- 场景列表 -->
|
||||
<div class="scene-list">
|
||||
<!-- 场景切换 -->
|
||||
<div class="scene-switch">
|
||||
<div
|
||||
class="scene-item"
|
||||
v-for="(scene, index) in productList.applicationList"
|
||||
:key="scene.id"
|
||||
:class="{ active: activeSceneIndex === index }"
|
||||
@click="switchScene(index)"
|
||||
>
|
||||
{{ scene.memuName }}
|
||||
</div>
|
||||
</div>
|
||||
<!-- 场景描述 -->
|
||||
<div class="scene-desc">
|
||||
<!-- 上数据 -->
|
||||
<div class="top" v-if="currentScene">
|
||||
<!-- 标题 -->
|
||||
<div class="top-tit">
|
||||
{{ currentScene.title_r }}
|
||||
</div>
|
||||
<!-- 描述 -->
|
||||
<div class="top-desc">
|
||||
{{ currentScene.description_r }}
|
||||
</div>
|
||||
</div>
|
||||
<!-- 下数据 -->
|
||||
<div class="bottom" v-if="currentScene && currentScene.provide">
|
||||
<div class="bottom-item" v-for="(provideItem, index) in currentScene.provide" :key="index">
|
||||
<!-- 标题 -->
|
||||
<div class="bottom-tit">
|
||||
{{ provideItem.title }}
|
||||
</div>
|
||||
<!-- 描述 -->
|
||||
<div class="bottom-desc">
|
||||
{{ provideItem.content }}
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<!-- 产品咨询弹窗 -->
|
||||
<ProductConsultDialog
|
||||
v-if="showConsultDialog"
|
||||
:visible.sync="showConsultDialog"
|
||||
:platform-name="platformName"
|
||||
:qr-code="qrCode"
|
||||
:default-form-data="consultFormData"
|
||||
:submit-api="submitConsultApi"
|
||||
@success="handleConsultSuccess"
|
||||
@close="handleDialogClose"
|
||||
/>
|
||||
|
||||
<!-- 底部 -->
|
||||
<Footer></Footer>
|
||||
</div>
|
||||
</template>
|
||||
|
||||
<script>
|
||||
import { reqProductDetail, reqProductConsult } from '@/api/H5/index'
|
||||
import Footer from '../components/footer/footer.vue';
|
||||
import ProductConsultDialog from '../components/H5_dialog/index.vue'
|
||||
|
||||
export default {
|
||||
components: {
|
||||
Footer,
|
||||
ProductConsultDialog
|
||||
},
|
||||
data() {
|
||||
return {
|
||||
id: null,
|
||||
productList: {},
|
||||
activeSceneIndex: 0, // 修改为索引控制
|
||||
|
||||
// 咨询弹窗相关
|
||||
showConsultDialog: false,
|
||||
platformName: '产品详情页',
|
||||
qrCode: '',
|
||||
consultFormData: {
|
||||
content: '',
|
||||
custom_type: '1',
|
||||
name: '',
|
||||
phone: '',
|
||||
company: '',
|
||||
email: '',
|
||||
checked: false
|
||||
}
|
||||
}
|
||||
},
|
||||
|
||||
computed: {
|
||||
// 计算所有功能项的图标数组
|
||||
functionIcons() {
|
||||
const icons = [
|
||||
require('../images/netDetails/1.png'),
|
||||
require('../images/netDetails/2.png'),
|
||||
require('../images/netDetails/3.png'),
|
||||
require('../images/netDetails/4.png'),
|
||||
require('../images/netDetails/5.png'),
|
||||
require('../images/netDetails/6.png'),
|
||||
require('../images/netDetails/7.png'),
|
||||
];
|
||||
return icons;
|
||||
},
|
||||
|
||||
// 当前场景
|
||||
currentScene() {
|
||||
if (this.productList.applicationList && this.productList.applicationList.length > 0) {
|
||||
return this.productList.applicationList[this.activeSceneIndex];
|
||||
}
|
||||
return null;
|
||||
}
|
||||
},
|
||||
|
||||
created() {
|
||||
// 获取id
|
||||
this.id = this.$route.query.id
|
||||
console.log('ID:', this.id)
|
||||
this.getProductList()
|
||||
},
|
||||
|
||||
methods: {
|
||||
// 获取产品列表
|
||||
async getProductList() {
|
||||
const res = await reqProductDetail({ id: this.id })
|
||||
console.log('产品详情是', res)
|
||||
if (res.status === true) {
|
||||
this.productList = res.data
|
||||
// 如果有场景数据,默认显示第一个
|
||||
if (this.productList.applicationList && this.productList.applicationList.length > 0) {
|
||||
this.activeSceneIndex = 0;
|
||||
}
|
||||
}
|
||||
},
|
||||
|
||||
// 根据索引获取功能图标
|
||||
getFunctionIcon(index) {
|
||||
// 使用模运算循环使用图标
|
||||
return this.functionIcons[index % this.functionIcons.length];
|
||||
},
|
||||
|
||||
// 切换场景
|
||||
switchScene(index) {
|
||||
this.activeSceneIndex = index;
|
||||
},
|
||||
|
||||
// 打开咨询弹窗
|
||||
openConsultDialog() {
|
||||
// 准备咨询内容
|
||||
let content = `我想咨询关于【${this.productList.title || '产品'}】的详细信息`
|
||||
|
||||
|
||||
// 设置咨询表单的预填内容
|
||||
this.consultFormData = {
|
||||
...this.consultFormData,
|
||||
content: content
|
||||
}
|
||||
|
||||
this.showConsultDialog = true
|
||||
},
|
||||
|
||||
// 提交咨询API
|
||||
async submitConsultApi(data) {
|
||||
// 构建提交数据
|
||||
const submitData = {
|
||||
...data,
|
||||
product_id: this.id,
|
||||
product_title: this.productList.title || '',
|
||||
product_description: this.productList.description || '',
|
||||
product_advantages: this.productList.adList ? this.productList.adList.length : 0,
|
||||
product_features: this.productList.useList ? this.productList.useList.length : 0,
|
||||
current_scene: this.currentScene?.memuName || '',
|
||||
current_scene_title: this.currentScene?.title_r || '',
|
||||
consult_source: 'product_detail_banner',
|
||||
page_type: 'product_detail_h5',
|
||||
page_url: window.location.href
|
||||
}
|
||||
|
||||
return await reqProductConsult(submitData)
|
||||
},
|
||||
|
||||
// 咨询成功回调
|
||||
handleConsultSuccess(response) {
|
||||
console.log('咨询提交成功:', response)
|
||||
this.$message.success('咨询提交成功,我们将尽快联系您!')
|
||||
},
|
||||
|
||||
// 弹窗关闭回调
|
||||
handleDialogClose() {
|
||||
// 重置表单数据(保留部分信息)
|
||||
this.consultFormData = {
|
||||
content: '',
|
||||
custom_type: '1',
|
||||
name: '',
|
||||
phone: '',
|
||||
company: '',
|
||||
email: '',
|
||||
checked: false
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
</script>
|
||||
<style lang="less" scoped>
|
||||
.banner {
|
||||
height: 4.2rem;
|
||||
background: url(../images/netBanner.jpg) no-repeat;
|
||||
background-size: 100% 100%;
|
||||
position: relative;
|
||||
|
||||
.introduce {
|
||||
position: absolute;
|
||||
left: 50%;
|
||||
top: 14%;
|
||||
transform: translate(-90%);
|
||||
}
|
||||
|
||||
.title {
|
||||
text-align: left;
|
||||
font-size: 0.32rem;
|
||||
/* 修改为0.32rem */
|
||||
color: #000;
|
||||
font-weight: 700;
|
||||
}
|
||||
|
||||
.details {
|
||||
font-size: 0.18rem;
|
||||
/* 修改为0.18rem */
|
||||
color: #8890ab;
|
||||
line-height: 2 !important;
|
||||
margin-top: .1rem;
|
||||
}
|
||||
|
||||
.btn {
|
||||
margin-top: .1rem;
|
||||
width: 2rem;
|
||||
height: .4rem;
|
||||
border-radius: .1rem;
|
||||
display: flex;
|
||||
align-items: center;
|
||||
justify-content: center;
|
||||
font-size: .2rem;
|
||||
background: linear-gradient(90deg, #275AFF 0%, #2EBDFA 100%);
|
||||
color: #fff;
|
||||
cursor: pointer; /* 添加手型光标 */
|
||||
transition: all 0.3s ease;
|
||||
|
||||
&:active {
|
||||
transform: scale(0.98);
|
||||
opacity: 0.9;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
.title {
|
||||
margin: .2rem 0;
|
||||
font-size: 0.32rem;
|
||||
text-align: center;
|
||||
color: #000;
|
||||
font-weight: 700;
|
||||
|
||||
.color {
|
||||
background: linear-gradient(to right, #0066FF, #66CCFF);
|
||||
/* 蓝到浅蓝渐变 */
|
||||
-webkit-background-clip: text;
|
||||
background-clip: text;
|
||||
color: transparent;
|
||||
display: inline-block;
|
||||
}
|
||||
}
|
||||
|
||||
.data {
|
||||
background: linear-gradient(to bottom, #fff, #f2f6fb, #fff);
|
||||
}
|
||||
|
||||
// 优势
|
||||
.advantage-list {
|
||||
padding: 0 .2rem;
|
||||
display: flex;
|
||||
flex-wrap: wrap;
|
||||
justify-content: space-between;
|
||||
}
|
||||
|
||||
.advantage-item {
|
||||
background: linear-gradient(to bottom, #ecf0fd, #fff);
|
||||
border-radius: .12rem;
|
||||
display: flex;
|
||||
align-items: center;
|
||||
width: 48%;
|
||||
padding: .2rem 0;
|
||||
padding-left: .1rem;
|
||||
margin-bottom: .1rem;
|
||||
|
||||
.icon {
|
||||
display: flex;
|
||||
align-items: center;
|
||||
justify-content: center;
|
||||
padding-bottom: 0;
|
||||
padding-left: .1rem;
|
||||
img {
|
||||
width: .4rem;
|
||||
height: .4rem;
|
||||
}
|
||||
}
|
||||
|
||||
.advantage-desc {
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
padding-left: .2rem;
|
||||
|
||||
.desc-title {
|
||||
font-size: .18rem;
|
||||
color: #333;
|
||||
font-weight: bold;
|
||||
margin-bottom: .1rem;
|
||||
}
|
||||
|
||||
.desc-details {
|
||||
font-size: .14rem;
|
||||
color: #999;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
// 功能
|
||||
.function {
|
||||
.title {
|
||||
margin-bottom: .2rem;
|
||||
}
|
||||
}
|
||||
|
||||
.function-list {
|
||||
width: 100%;
|
||||
padding: 0 .2rem;
|
||||
display: flex;
|
||||
// flex-wrap: wrap;
|
||||
|
||||
.function-group {
|
||||
margin-bottom: .3rem;
|
||||
|
||||
&:last-child {
|
||||
margin-bottom: 0;
|
||||
}
|
||||
}
|
||||
|
||||
.function-box {
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
align-items: center;
|
||||
width: 33.33%;
|
||||
/* 每行显示3个 */
|
||||
margin-bottom: .2rem;
|
||||
padding: .15rem;
|
||||
box-sizing: border-box;
|
||||
|
||||
// 图标
|
||||
.function-icon {
|
||||
width: .8rem;
|
||||
height: .8rem;
|
||||
display: flex;
|
||||
align-items: center;
|
||||
justify-content: center;
|
||||
margin-bottom: .1rem;
|
||||
|
||||
img {
|
||||
width: 100%;
|
||||
height: 100%;
|
||||
object-fit: contain;
|
||||
}
|
||||
}
|
||||
|
||||
// 描述
|
||||
.function-desc {
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
align-items: center;
|
||||
text-align: center;
|
||||
|
||||
.desc-title {
|
||||
font-size: .18rem;
|
||||
color: #333;
|
||||
font-weight: bold;
|
||||
margin-bottom: .08rem;
|
||||
line-height: 1.2;
|
||||
}
|
||||
|
||||
.desc-details {
|
||||
font-size: .14rem;
|
||||
color: #666;
|
||||
line-height: 1.4;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
// 场景
|
||||
.scene {
|
||||
.scene-switch {
|
||||
display: flex;
|
||||
justify-content: center;
|
||||
}
|
||||
|
||||
.scene-item {
|
||||
padding: .2rem 0;
|
||||
font-size: .2rem;
|
||||
color: #000;
|
||||
transition: all 0.3s ease;
|
||||
width: 34%;
|
||||
text-align: center;
|
||||
cursor: pointer; /* 添加手型光标 */
|
||||
|
||||
&.active {
|
||||
border-bottom: .025rem solid #275AFF;
|
||||
color: #275AFF;
|
||||
}
|
||||
|
||||
&:active {
|
||||
opacity: 0.8;
|
||||
}
|
||||
}
|
||||
|
||||
.scene-list {
|
||||
background: url('../images/scene.jpg') no-repeat;
|
||||
background-size: 100% 100%;
|
||||
min-height: 4.5rem;
|
||||
border-radius: .12rem;
|
||||
overflow: hidden;
|
||||
margin: 0 .2rem;
|
||||
}
|
||||
|
||||
.scene-desc {
|
||||
padding: .3rem;
|
||||
|
||||
.top {
|
||||
padding-bottom: .2rem;
|
||||
border-bottom: .01rem solid rgba(216, 216, 216, 0.5);
|
||||
margin-bottom: .2rem;
|
||||
|
||||
.top-tit {
|
||||
font-weight: 600;
|
||||
font-size: .22rem;
|
||||
color: #000;
|
||||
margin-bottom: .1rem;
|
||||
}
|
||||
|
||||
.top-desc {
|
||||
font-size: .16rem;
|
||||
color: #6d7696;
|
||||
line-height: 1.5;
|
||||
}
|
||||
}
|
||||
|
||||
.bottom {
|
||||
width: 100%;
|
||||
display: flex;
|
||||
flex-wrap: wrap;
|
||||
|
||||
.bottom-item {
|
||||
width: 50% !important;
|
||||
padding: .15rem 0;
|
||||
// padding-right: .15rem;
|
||||
// box-sizing: border-box;
|
||||
|
||||
.bottom-tit {
|
||||
font-weight: 600;
|
||||
font-size: .18rem;
|
||||
color: #000;
|
||||
margin-bottom: .05rem;
|
||||
}
|
||||
|
||||
.bottom-desc {
|
||||
font-size: .16rem;
|
||||
color: #6d7696;
|
||||
line-height: 1.4;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
// 响应式调整
|
||||
@media (max-width: 768px) {
|
||||
.function-box {
|
||||
width: 50% !important; /* 小屏幕每行显示2个 */
|
||||
}
|
||||
|
||||
.scene-desc .bottom .bottom-item {
|
||||
width: 100% !important; /* 小屏幕每行显示1个 */
|
||||
padding-right: 0;
|
||||
}
|
||||
}
|
||||
</style>
|
||||
BIN
f/web-kboss/src/views/H5/newImg/banner.png
Normal file
|
After Width: | Height: | Size: 4.5 MiB |
BIN
f/web-kboss/src/views/H5/newImg/baseBg.png
Normal file
|
After Width: | Height: | Size: 4.1 MiB |
BIN
f/web-kboss/src/views/H5/newImg/computing.png
Normal file
|
After Width: | Height: | Size: 1.4 KiB |
BIN
f/web-kboss/src/views/H5/newImg/computingActive.png
Normal file
|
After Width: | Height: | Size: 3.2 KiB |
BIN
f/web-kboss/src/views/H5/newImg/container.png
Normal file
|
After Width: | Height: | Size: 1.3 KiB |
BIN
f/web-kboss/src/views/H5/newImg/containerActive.png
Normal file
|
After Width: | Height: | Size: 3.4 KiB |
BIN
f/web-kboss/src/views/H5/newImg/cun.png
Normal file
|
After Width: | Height: | Size: 1.1 KiB |
BIN
f/web-kboss/src/views/H5/newImg/cunActive.png
Normal file
|
After Width: | Height: | Size: 3.0 KiB |
BIN
f/web-kboss/src/views/H5/newImg/database.png
Normal file
|
After Width: | Height: | Size: 1.3 KiB |
BIN
f/web-kboss/src/views/H5/newImg/databaseActive.png
Normal file
|
After Width: | Height: | Size: 2.8 KiB |
BIN
f/web-kboss/src/views/H5/newImg/footerLogo.png
Normal file
|
After Width: | Height: | Size: 19 KiB |
BIN
f/web-kboss/src/views/H5/newImg/hotBg.png
Normal file
|
After Width: | Height: | Size: 2.2 MiB |
BIN
f/web-kboss/src/views/H5/newImg/map.png
Normal file
|
After Width: | Height: | Size: 499 KiB |
BIN
f/web-kboss/src/views/H5/newImg/netBg.png
Normal file
|
After Width: | Height: | Size: 1.0 MiB |
BIN
f/web-kboss/src/views/H5/newImg/niu.png
Normal file
|
After Width: | Height: | Size: 1.3 KiB |
BIN
f/web-kboss/src/views/H5/newImg/niuActive.png
Normal file
|
After Width: | Height: | Size: 2.9 KiB |
BIN
f/web-kboss/src/views/H5/newImg/rescourceBg.png
Normal file
|
After Width: | Height: | Size: 2.6 MiB |
BIN
f/web-kboss/src/views/H5/newImg/tag.png
Normal file
|
After Width: | Height: | Size: 110 KiB |
BIN
f/web-kboss/src/views/H5/official/img/image1.png
Normal file
|
After Width: | Height: | Size: 114 KiB |
BIN
f/web-kboss/src/views/H5/official/img/image10.png
Normal file
|
After Width: | Height: | Size: 5.2 KiB |
BIN
f/web-kboss/src/views/H5/official/img/image11.png
Normal file
|
After Width: | Height: | Size: 1.9 KiB |
BIN
f/web-kboss/src/views/H5/official/img/image12.png
Normal file
|
After Width: | Height: | Size: 20 KiB |
BIN
f/web-kboss/src/views/H5/official/img/image13.png
Normal file
|
After Width: | Height: | Size: 13 KiB |
BIN
f/web-kboss/src/views/H5/official/img/image14.png
Normal file
|
After Width: | Height: | Size: 12 KiB |
BIN
f/web-kboss/src/views/H5/official/img/image15.png
Normal file
|
After Width: | Height: | Size: 10 KiB |
BIN
f/web-kboss/src/views/H5/official/img/image16.png
Normal file
|
After Width: | Height: | Size: 25 KiB |
BIN
f/web-kboss/src/views/H5/official/img/image17.png
Normal file
|
After Width: | Height: | Size: 14 KiB |
BIN
f/web-kboss/src/views/H5/official/img/image18.png
Normal file
|
After Width: | Height: | Size: 3.8 KiB |
BIN
f/web-kboss/src/views/H5/official/img/image19.png
Normal file
|
After Width: | Height: | Size: 28 KiB |
BIN
f/web-kboss/src/views/H5/official/img/image2.png
Normal file
|
After Width: | Height: | Size: 5.4 MiB |
BIN
f/web-kboss/src/views/H5/official/img/image20.png
Normal file
|
After Width: | Height: | Size: 16 KiB |
BIN
f/web-kboss/src/views/H5/official/img/image21.png
Normal file
|
After Width: | Height: | Size: 9.0 KiB |
BIN
f/web-kboss/src/views/H5/official/img/image22.png
Normal file
|
After Width: | Height: | Size: 81 KiB |
BIN
f/web-kboss/src/views/H5/official/img/image23.png
Normal file
|
After Width: | Height: | Size: 21 KiB |
BIN
f/web-kboss/src/views/H5/official/img/image24.png
Normal file
|
After Width: | Height: | Size: 20 KiB |
BIN
f/web-kboss/src/views/H5/official/img/image25.png
Normal file
|
After Width: | Height: | Size: 152 KiB |
BIN
f/web-kboss/src/views/H5/official/img/image26.png
Normal file
|
After Width: | Height: | Size: 8.8 KiB |
BIN
f/web-kboss/src/views/H5/official/img/image27.png
Normal file
|
After Width: | Height: | Size: 5.3 KiB |