CINXE.COM

企业-CMEF医博会-国药励展展览有限责任公司

<!DOCTYPE html> <html lang="ch"> <head> <meta http-equiv="Content-Type" content="text/html; charset=utf-8" /> <meta charset="utf-8" /> <title>企业-CMEF医博会-国药励展展览有限责任公司</title> <link href="/favicon.ico" rel="shortcut icon" type="image/x-icon" /> <meta http-equiv="X-UA-Compatible" content="IE=edge"> <meta name ="viewport" content="width=device-width"   /> <meta name="apple-mobile-web-app-capable" content="yes"> <meta name="apple-mobile-web-app-status-bar-style" content="black"> <link href="//at.alicdn.com/t/c/font_2435410_2z01s4xxuhw.css" rel="stylesheet" /> <link href="/Content/bootstrap.min.css" rel="stylesheet" type="text/css" /> <link href="/Content/layui/css/layui.css" rel="stylesheet" /> <link href="/Content/idangerous.swiper.css" rel="stylesheet" /> <link rel="stylesheet" type="text/css" href="//at.alicdn.com/t/c/font_2435410_2z01s4xxuhw.css" /> <link href="/Content/others/scss/all.css" rel="stylesheet" /> <link href="/Content/element.css" rel="stylesheet" /> <script src="/Content/vue.min.js"></script> <script src="/Content/axios.min.js"></script> <script src="/Content/element.js"></script> <script src="/Content/jquery.min.js"></script> <script src="/Content/others/js/idangerous.swiper.min.js"></script> <script src="/Content/layui/layui.js"></script> <link href="/Content/Site.css?t=1012a" rel="stylesheet" /> <script src="/bundles/modernizr?v=qVODBytEBVVePTNtSFXgRX0NCEjh9U_Oj8ePaSiRcGg1"></script> <meta name="keywords" content="企业-CMEF,国药励展,医疗器械展,中国国际医疗器械博览会" /> <meta name="description" content="企业-CMEF(全称:中国国际医疗器械博览会)始创于1979年,每年举办春秋两届,包括展览和论坛两个部分。展会历经40余年的积累和沉淀,现已发展成为国际领先的覆盖医疗器械全产业链、集产品技术、新品首发、采购贸易、品牌传播、科研合作、学术论坛、教育培训为一体的全球化综合服务平台 " /> <meta name="author" content="中国国际医疗器械博览会 " /> <!-- 解决ie9不支持 placeholder属性 --> <!--[if lte IE 9]> <script src="/Scripts/jquery.placeholder.js"></script> <script> $(function(){ $('input[placeholder]').placeholder(); }); </script> <![endif]--> <!--[if lt IE 9]> <script src="/Scripts/html5shiv.min.js"></script> <script src="/Scripts/respond.min.js"></script> <![endif]--> <script> var _hmt = _hmt || []; (function () { var hm = document.createElement("script"); hm.src = "https://hm.baidu.com/hm.js?24c9d30647646f62a1fa7cbe3a4cef84"; var s = document.getElementsByTagName("script")[0]; s.parentNode.insertBefore(hm, s); })(); </script> <div id="quick-right" class="quick-right"> <a href="https://i.cmef.com.cn/join-login" target="_blank"> <div class="item">预订展位</div> </a> <a href="https://reg.reed-sinopharm.com/pc/#/login?id=be8dbb6416714b7fb1ac7b330560f2ca&channelUuid=763fa67a04b042c8bd0aef26375db16e" target="_blank"> <div class="item">获取门票</div> </a> </div> <style> .quick-right { position: fixed; right: 0; top: 35%; z-index: 9; font-size: 16px; font-weight: normal; font-stretch: normal; line-height: 18px; letter-spacing: 0px; } .quick-right a { text-decoration: none; padding: 0; } .quick-right .item { cursor: pointer; width: 190px; height: 42px; background-color: #16D1D1; border-radius: 16px 0px 0px 16px; color: #fff; line-height: 42px; text-align: center; margin-top: 10px; display: flex; justify-content: center; align-items: center; } #newBridge { display: none !important; } #newBridge .icon-right-center { bottom: 140px !important; margin: 0 !important; } #aff-im-root .embed-icon { top: 80% !important; } #aff-im-root .embed-icon-pcIcon5 { width: 150px !important; } .dropdown { position: relative; display: inline-block; } .dropdown-content { display: none; position: fixed; background-color: #f9f9f9; min-width: 160px; box-shadow: 0px 8px 16px 0px rgba(0,0,0,0.2); z-index: 9999; right: 20px; } .dropdown-content a { color: black; padding: 12px 16px; text-decoration: none; display: block; } .dropdown-content a:hover { background-color: #f1f1f1; } .dropdown:hover .dropdown-content { display: block; } </style> </head> <body> <div class="layout"> <div class="topic-bar" id="cmefTopContainerLogin" style="z-index:3000"> <div class="container"> <div class="row content-wrapper"> <div class="topic-menu"> <div class="col-lg-2 col-md-2 col-xs-2 col-sm-2 ex-name"> <div class="logo"> <a href="/"> <img src="/content/images/logo.png" alt="LGOG" class="u-logo" /> </a> </div> </div> <div class="col-lg-8 col-md-8 col-xs-8 col-sm-8 menuInfo"> <div class="menu-bar"> <nav class="row content-wrapper menu"> <div> <div class="menu_list" id="nav_menu"><div class='nav_menu_child' id='nav_home'><a href='/' title='首页'><div class='ch'>首页</div><div class='en'></div></a></div><div class="nav_menu_child"><a href="https://91cmef.reed-sinopharm.com?cid=137" title="会议活动" target="_top"><div class="ch">会议活动</div><div class="en"></div></a></div><div class="nav_menu_child menu_hover"><a href="/exhibitorlist?type=1&cid=18" title="企业" target="_top"><div class="ch">企业</div><div class="en"></div></a></div><div class="nav_menu_child"><a href="/exhibitorlist?type=2&cid=96" title="产品" target="_top"><div class="ch">产品</div><div class="en"></div></a></div><div class="nav_menu_child"><a href="/exhibitor?cid=20" title="展商服务" target="_top"><div class="ch">展商服务</div><div class="en"></div></a></div><div class="nav_menu_child"><a href="/exhibitor?cid=21" title="观众服务" target="_top"><div class="ch">观众服务</div><div class="en"></div></a></div><div class="nav_menu_child"><a href="/download?cid=22" title="下载" target="_top"><div class="ch">下载</div><div class="en"></div></a></div></div> </div> </nav> </div> </div> <div class="col-lg-2 col-md-2 col-xs-2 col-sm-2 language"> <div class="link"><a href="/" title="中文"><i class="iconfont icon-ch"></i></a></div> <div class="link"> <a href="/en" title="ENGLISH"> <i class="iconfont icon-en"></i> </a> </div> <div class="link"> <a href="/contactus" title="联系我们"> <i class="iconfont icon-lianximaijia"></i> </a> </div> <div class=" link"> <div style="margin-top: 5px;width: 80px;cursor: pointer;" class="goLogin" @click="isDialogShow=true">登录</div> </div> <div class="dropdown link loggedIn" style="display: none;"> <div style="margin-top: 5px;width: 80px;"> 个人中心</div> <div class="dropdown-content"> <a href="#"><span class="updateInfo">修改信息</span> </a> <a href="/Member/MemberRelease">我的洽谈</a> <a href="/Member/MemberFollowCompany">我的收藏</a> <a href="#"><span class="loginOut">退出登录</span></a> </div> </div> <div class="dropdown link loggedInEx" style="display: none;"> <div style="margin-top: 5px;width: 80px;">展商中心</div> <div class="dropdown-content"> <a href="#"><span class="loginOut">退出登录</span></a> </div> </div> </div> </div> </div> </div> <el-dialog title="" :visible.sync="isDialogShow" width="420px" :close-on-click-modal="false" class="no-header-dialog" style="display:none"> <div> <div style="text-align:end;cursor:pointer" @click="isDialogShow=false"> <img alt="" style="width:20px;" src="https://synairsoft.obs.cn-north-4.myhuaweicloud.com/cloudExhibition/imgs/202409/4e25d008a689486fb864235d0dc21119.png" /> </div> <el-tabs v-model="activeName"> <el-tab-pane label="iCMEF账号登录" name="first"></el-tab-pane> <el-tab-pane label="个人登录" name="second"></el-tab-pane> </el-tabs> <div style="margin-top:30px;" class="element_but"> <el-form :model="formModel" :rules="rules_login" ref="formModel" label-width="0" class="demo-ruleForm"> <div v-if="activeName == 'first'"> <el-form-item prop="accountNumber"> <el-input v-model="formModel.accountNumber" clearable placeholder="请输入账号" maxlength="50"></el-input> </el-form-item> <el-form-item prop="password"> <el-input v-model="formModel.password" clearable placeholder="请输入密码" maxlength="50"></el-input> </el-form-item> </div> <div v-else> <el-form-item prop="phoneNumber"> <el-input v-model="formModel.phoneNumber" clearable placeholder="请输入手机号" maxlength="11"></el-input> </el-form-item> <el-form-item prop="vertification_code"> <div style="display:flex;justify-content:space-between"> <div> <el-input v-model="formModel.vertification_code" style="width:220px;" placeholder="请输入验证码" maxlength="50"></el-input> </div> <div> <el-button type="primary" class="layui-btn" size="large" style="width:140px;border-color:#EE1C5D;" :disabled="disable" @click="getCode()">{{ txt }}</el-button> </div> </div> </el-form-item> </div> <el-form-item style="text-align:end"> <el-button type="text" @click="forgetPasswordDialog=true">忘记密码?</el-button> </el-form-item> <el-from-item> <el-button class="layui-btn" style="width:100%;border-color:#EE1C5D" type="primary" @click="LoginSubmit()">登录</el-button> </el-from-item> <el-form-item style="text-align: center;"> <el-button type="text" @click="regIcmef()"> <span style='line-height: 20px;color:#9d9d9d'>icmef上的商机<br><span style="text-decoration: underline 2px solid #9d9d9d;">没有账号?立即注册</span></span> </el-button> </el-form-item> </el-form> </div> </div> </el-dialog> <el-dialog title="" :visible.sync="forgetPasswordDialog" width="520px" :close-on-click-modal="false" class="no-header-dialog" style="display:none"> <div style="margin-top:30px;" class="element_but"> <h2>找回您的密码请联系:010-84556507</h2> </div> <div style="text-align:end;margin-top:40px;"> <el-button class="layui-btn" style="width:20%;border-color:#EE1C5D;background:#EE1C5D" type="primary" @click="forgetPasswordDialog=false">确定</el-button> </div> </el-dialog> </div> <div style="width:100%;height:80px;"></div> <header class="header" style="position: relative; z-index: 8;"> <div> <a href="https://i.cmef.com.cn/join-login" target="_blank"> <img src="/Content/Uploads/2024.11/30069a1f-f92e-47e0-8586-58bafe2118bd.jpg" style="width:100%" /> </a> </div> </header> <style> .exActive { color: #EE1c5D; } .actionTypeactive { color: #EE1c5D; background-color: #fbe9ed; } .resetAllCss{ width: 140px; height: 40px; line-height: 40px; border-radius: 5px; color: #fff; background-color: #EE1c5D; text-align: center; display: inline-block; font-size: 14px; cursor: pointer; } .ex-swiper-container { ExhibitorQuery height: 158px; text-align: center; } #show-table .layui-col-md6 { width: 50%; float: left; } .groupList .group { border: 1px solid #f5f5f5; color: #333; border-radius: 5px; margin-top: 15px; } .groupList .group .item { font-size: 18px; padding: 12px 12px; background-color: #f5f5f5; border-radius: 5px; cursor: pointer; } .groupList .group .item>.iconfont { float: right; padding-top: 5px; color: #999; } .groupList .group .item:hover { background-color: #EE1c5D; color: #fff; } .layui-col-md11:hover { color: #EE1c5D; background-color: #fbe9ed; } .groupList .group .item:hover>.iconfont { color: #fff; } .list-group-item { border: none; height: 0; transition: height 2s; -webkit-transition: height 2s; overflow: hidden; padding: 0; } .groupList .group.hover .item { border-radius: 5px 5px 0 0; background-color: #EE1c5D; color: #fff; } .groupList .group.hover .list-group-item { height: auto; padding: 10px 15px; } .groupList .group.hover .iconfont { color: #fff; transform: rotate(180deg); -o-transform: rotate(180deg); -ms-transform: rotate(180deg); -webkit-transform: rotate(180deg); margin-top: 3px; } .item { background-color: #fff; box-shadow: 0 0 0.1rem 0 rgba(0, 0, 0, 0.1); } .item_top { color: #333; display: flex; } .line { display: flex; align-items: flex-end; margin-bottom: 0.16rem; } .name { margin-right: 5px; font-weight: 400; } .job { font-size: 12px; color: #666; } .phone { font-size: 14px; color: #333; } .info2 { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; } .rn-type { display: inline-block; font-size: 14px; padding: 0px 5px; margin-right: 12px; margin-bottom: 12px; border-width: 1px; border-style: solid; } .el-carousel__container { position: relative; height: 130px; } </style> <div class="layContent" style="background: #f7f7f7;" id="app"> <div class="ex"> <div class="layui-container"> <div class="ex-menu"> <i class="icon iconfont icon-house s-blue"></i> 您当前位置: <a href="/">首页</a> &gt; <a class="s-blue"> <span v-if='sourceTypeExOrPro==1'>展商/展商</span> <span v-if='sourceTypeExOrPro==2'>展品</span> </a> </div> <div class="ex-tab"> <div class="layui-row search-wrap" v-if='sourceTypeExOrPro==2' style="display: flex;"> <div class="m-search"> <input type="text" placeholder="搜索展品名称" class="layui-input" id="pro-search-input" @keyup.enter="onEnterPress"> <div class="search-txt" @click='onEnterPress'>搜索</div> </div> <div class="resetAllCss" @click='goUploadPro'>上传产品</div> </div> <div class="layui-row search-wrap" style="display: flex;" v-if='sourceTypeExOrPro==1'> <div class="m-search" style="width: 450px;"> <input type="text" placeholder="搜索展商名称" style="width: 450px;" class="layui-input" @keyup.enter="onEnterPress" id='ex-search-input'> </div> <div class="m-search" style="width: 450px;"> <input type="text" placeholder="搜索展位号" class="layui-input" id="ex-boothText" @keyup.enter="onEnterPress" style="width: 260px;"> <div class="search-txt" @click='onEnterPress'>搜索</div> </div> <div class="resetAllCss" @click='clickResetAll'>重置/全部</div> </div> <div class="layui-row tab-nav" v-if='false'> <div class="layui-col-md6" id="type-select"> 选择: <span class="active" id="展商" data-type="展商" @click='selectype' ><a>展商</a></span> <span id="展品" data-type="展品" @click='selectype' ><a>展品</a></span> </div> </div> </div> <div class="ex-layout"> <div class="exl-l"> <!-- 推荐展会 --> <!-- 类别 --> <style> .ex-ca-content { max-height: 1338px; overflow-y: scroll; } .ex-ca-content::-webkit-scrollbar { display: none; } </style> <div class="ex-ca" id="actionType-tab"> <div class="ex-title">行业领域</div> <div class="ex-ca-content"> <div id="6dfbe3e7-7952-4c55-9f48-e2adf24333b3" class="ex-ca-item actionType-item" data-id="6dfbe3e7-7952-4c55-9f48-e2adf24333b3" data-name="ICMD" >ICMD</div> <div id="6df423cb-33b0-4b12-a284-47f9637148c7" class="ex-ca-item actionType-item" data-id="6df423cb-33b0-4b12-a284-47f9637148c7" data-name="康复&amp;养老" >康复&amp;养老</div> <div id="347e290f-f9dc-410e-adb3-3f966232f8c0" class="ex-ca-item actionType-item" data-id="347e290f-f9dc-410e-adb3-3f966232f8c0" data-name="智慧健康" >智慧健康</div> <div id="d011db59-4094-4a75-a620-20a712b4ca29" class="ex-ca-item actionType-item" data-id="d011db59-4094-4a75-a620-20a712b4ca29" data-name="医用影像" >医用影像</div> <div id="65dabc23-8339-4207-bb0e-6001a7d39416" class="ex-ca-item actionType-item" data-id="65dabc23-8339-4207-bb0e-6001a7d39416" data-name="体外诊断" >体外诊断</div> <div id="74132c9f-e130-4afc-9397-4e127376d886" class="ex-ca-item actionType-item" data-id="74132c9f-e130-4afc-9397-4e127376d886" data-name="医用耗材" >医用耗材</div> <div id="d33c045a-85e1-425a-8e4a-d5b0a55406d7" class="ex-ca-item actionType-item" data-id="d33c045a-85e1-425a-8e4a-d5b0a55406d7" data-name="高值耗材" >高值耗材</div> <div id="cb3ee1ab-19d2-4b4f-bad4-4a502400d750" class="ex-ca-item actionType-item" data-id="cb3ee1ab-19d2-4b4f-bad4-4a502400d750" data-name="手术室及急救" >手术室及急救</div> <div id="e57ff6ca-6b0a-4720-91c1-e8d7a170db40" class="ex-ca-item actionType-item" data-id="e57ff6ca-6b0a-4720-91c1-e8d7a170db40" data-name="消毒感控" >消毒感控</div> <div id="6367e011-10fc-4be0-8d0e-a5b742779b32" class="ex-ca-item actionType-item" data-id="6367e011-10fc-4be0-8d0e-a5b742779b32" data-name="血透及体外循环" >血透及体外循环</div> <div id="e30663e6-d6a0-46da-9d1c-06b601a00872" class="ex-ca-item actionType-item" data-id="e30663e6-d6a0-46da-9d1c-06b601a00872" data-name="医用电子" >医用电子</div> <div id="720f4c79-4bad-4dfc-a037-05b2e446aee7" class="ex-ca-item actionType-item" data-id="720f4c79-4bad-4dfc-a037-05b2e446aee7" data-name="应急救援" >应急救援</div> <div id="eb2054d4-6520-4956-9fb8-5445e37377b1" class="ex-ca-item actionType-item" data-id="eb2054d4-6520-4956-9fb8-5445e37377b1" data-name="医院建设及后勤" >医院建设及后勤</div> <div id="a7f35cbc-0abc-42b4-b903-ee04690ce3de" class="ex-ca-item actionType-item" data-id="a7f35cbc-0abc-42b4-b903-ee04690ce3de" data-name="医疗服务" >医疗服务</div> <div id="2c5ee37f-00bc-40cd-a5ca-66d99327d788" class="ex-ca-item actionType-item" data-id="2c5ee37f-00bc-40cd-a5ca-66d99327d788" data-name="中医版块" >中医版块</div> <div id="78ff9fb6-f842-42b2-9055-4301ef3303a1" class="ex-ca-item actionType-item" data-id="78ff9fb6-f842-42b2-9055-4301ef3303a1" data-name="妇科及生殖" >妇科及生殖</div> <div id="ecb74551-3d43-4646-81c2-f6a8a4366a58" class="ex-ca-item actionType-item" data-id="ecb74551-3d43-4646-81c2-f6a8a4366a58" data-name="患者承载器械" >患者承载器械</div> <div id="7fce0f43-81ed-4ebb-859f-0f2459611d9d" class="ex-ca-item actionType-item" data-id="7fce0f43-81ed-4ebb-859f-0f2459611d9d" data-name="眼科" >眼科</div> <div id="e64917fa-2c1f-4291-8279-a4b0bb12efaf" class="ex-ca-item actionType-item" data-id="e64917fa-2c1f-4291-8279-a4b0bb12efaf" data-name="口腔" >口腔</div> </div> </div> </div> <div class="exl-r"> <!-- 供需信息 --> <div class="ex-info"> <div class="exi-l"> <div class="ex-swiper-container swiper-container"> <el-carousel indicator-position="outside"> <el-carousel-item v-for="item in hallList" :key="item"> <div> <div class="item" style=""> <div class="item_top"> <div class="logo" style="margin-right: 10px;"> <img :src="item.headImg" style="border-radius: 50%;width: 60px;height: 60px;" v-if="item.headImg"> <img src="../../Content/images/cmef-demand-logo.png" style="border-radius: 50%;width: 60px;height: 60px;" v-else /> </div> <div class="details" style="width: 100%;"> <div class="line" style="justify-content: space-between;display: flex;align-items: center;"> <div> <span class="name">{{item.name}}</span> <span class="job" v-if="item.jobTitle">{{item.jobTitle}}</span> </div> <div class="create_time"> {{item.inDate}} </div> </div> <div class="info2" style="display: flex;max-width:500px;margin-top:12px"> <span class="rn-type" v-if="item.publishType == '医疗器械成品'" style="color:#EE1c5D">{{item.publishType}}</span> <span class="rn-type" v-if="(item.publishType == '医疗器械成品' && item.productType) || (item.publishType == '医疗器械成品' && item.type2)" style="color:#16D1D1;max-width: 66%;overflow: hidden;text-overflow: ellipsis;white-space: nowrap;"> <span v-if="item.productType || item.type2">{{item.productType?item.productType:item.type2}}</span> </span> <span class="rn-type" v-if="item.publishType == '制造供应链'" style="color:#EE1c5D">{{item.publishType}}</span> <span class="rn-type" v-if="(item.publishType == '制造供应链' && item.productType) || (item.publishType == '制造供应链' && item.type2)" style="color:#16D1D1;max-width: 66%;overflow: hidden;text-overflow: ellipsis;white-space: nowrap;"> <span v-if="item.productType || item.type2">{{item.productType?item.productType:item.type2}}</span> </span> <span class="rn-type" v-if="item.publishType == '招商发布'" style="color:#EE1c5D">{{item.publishType}}</span> <span class="rn-type" v-if="(item.publishType == '招商发布' && item.supplyProductName) || (item.publishType == '招商发布' && item.information)" style="color:#16D1D1;max-width: 66%;overflow: hidden;text-overflow: ellipsis;white-space: nowrap;"> <span v-if="item.supplyProductName || item.information">{{item.supplyProductName?item.supplyProductName:item.information}} </span> </span> </div> </div> </div> <div class="item_bottom" style="font-size: 14px; text-align: left;"> <div class="daili marTop15"> <span class="span1"> <span class="color9">采购截止日期:</span> {{item.endTime}} </span> </div> <div class="daili marTop15" style="overflow: hidden;text-overflow: ellipsis;white-space: nowrap;"> <span class="span2"> <span class="color9">采购描述:</span> {{item.remark}} </span> </div> <div class="bottom-btn"> </div> </div> </div> </div> </el-carousel-item> </el-carousel> </div> </div> <div class="exi-r"> <div class="ex-btn s-1"><a href="/Demand">免费发布供需</a></div> <div class="ex-btn"> <a href="/Demand">查看更多热门供需</a></div> </div> </div> <div class="clear"></div> <!-- 公司列表 --> <div id="show-table"></div> <!--页码--> <div id="show-table-page" class="gy-page"></div> </div> </div> </div> </div> </div> <script> new Vue({ el: '#app', data: function () { return { token: "", hallList: [], pageIndex: "", pageSize: "", isSelectType: false, sourceTypeExOrPro:0,// 0:原来的版本 1展商 2展品 } }, mounted() { let sourceType = 0; let currentType = "展商"; if (sourceType == 2) { this.sourceTypeExOrPro = 2 } else if (sourceType == 1){ this.sourceTypeExOrPro = 1 } this.token = "Bearer eyJhbGciOiJSUzI1NiIsImtpZCI6IjhhOTUxOWRmNDBkNjMxYmFhOWJkMDg0MzM4MTUwMDVlIiwidHlwIjoiSldUIn0.eyJuYmYiOjE3NDAwMjQwMDIsImV4cCI6MTc0MDAzODQwMiwiaXNzIjoiaHR0cHM6Ly9pZGVudGl0eS5jbWVmLmNvbS5jbiIsImF1ZCI6WyJodHRwczovL2lkZW50aXR5LmNtZWYuY29tLmNuL3Jlc291cmNlcyIsInN5bmFpciJdLCJjbGllbnRfaWQiOiJjbG91ZC5leGhpYml0aW9uIiwic2NvcGUiOlsic3luYWlyIl19.E1bneqbqKTNFZsrVR2gqPlFpWQTofpoyRfBxF9NDkEan0EBIKK17sRRl6JoDvQhXwb_lZYs6e9df9TzrsWmqhGbVruHigb3drZrOvGaRMfK1QHUd6i2wqqA8XYT-gbrG2qNllD0OeZ6yhECSJIkKl7_DSGQzA2vKPmJnDqR-0dDkjLN5yT0OIJfa2ioe7F6iUUHSnvoQYK8i0HcI5QtlRGYdKYz3xGweEXCJFErWDe3BDiNGFDTgu4UUcpGcTUThXSnHBRVCr2AdDFzh3xlxHzLhnY7ejizXUYbTUS27rZwp-kkXnvdACOY-92WbeG35n9BhcDV_u4ROWJZpu3IvyA"; this.testGet() }, methods: { selectype(){ this.isSelectType = !this.isSelectType console.log(this.isSelectType, 'this.isSelectType'); }, timeReturn (e) { const originalDate = new Date(e); const convertedDate = new Date(originalDate.getTime() + (20 * 24 * 60 * 60 * 1000)); // Adding 20 days // Format the date as "YYYY-MM-DD" const year = convertedDate.getFullYear(); const month = String(convertedDate.getMonth() + 1).padStart(2, '0'); // Months are zero-based const day = String(convertedDate.getDate()).padStart(2, '0'); const convertedDateString = `${year}-${month}-${day}`; return convertedDateString }, onEnterPress () { InitPageInfo(); OnTypeChange(currentType); }, testGet () { let body = { pageSize: 10, pageIndex: 1, } axios.post('https://api.cmef.com.cn/api/NewRealease/getAllReleaseAndSupply', { ...body }) .then(response => { response.data.items.forEach((e) => { e.inTime = this.timeReturn(e.inTime) e.inDate = this.timeReturn(e.inDate) e.endTime = this.timeReturn(e.endTime) e.productArea = e.productArea ? (JSON.parse(e.productArea).toString()).replace(/,/g, '/') : ''; const categoryArr = [] const categoryArr1 = [] if (e.productType) { const category = JSON.parse(e.productType) if (category.Value) { categoryArr.push(category.Value) if (category.List[0]) { categoryArr.push(category.List[0].Value) if (category.List[0].List) { categoryArr.push(category.List[0].List[0].Value) } } e.productType = (categoryArr.toString()).replace(/,/g, '/') } } if (e.supplyProductCategory) { const category1 = JSON.parse(e.supplyProductCategory) if (category1.Value) { categoryArr1.push(category1.Value) if (category1.List[0]) { categoryArr1.push(category1.List[0].Value) if (category1.List[0].List) { categoryArr1.push(category1.List[0].List[0].Value) } } e.supplyProductCategory = (categoryArr1.toString()).replace(/,/g, '/') } } console.log(categoryArr.toString(), typeof categoryArr.toString()) }) this.hallList = response.data.items console.log(this.hallList, '列表') }) .catch(function (error) { // 请求失败处理 console.log(error); }); }, } }); var pageIndex = 1; var pageSize = 12; var totalCount = 0; var categoryId = 0; var sourceType =0; var currentType = "展商"; if (sourceType == 2) { currentType = "展品"; } else if (sourceType == 1){ currentType = "展商"; } else { currentType = "展商"; } function fistLoadCategory () { if (categoryId > 0 && categoryId == 14) { $("#e2bcf890-978f-4c16-8678-5f1959af3d10").addClass("active"); $("#展商").removeClass("active"); $("#展品").addClass("active"); } } fistLoadCategory(); layui.use('form', function () { var laydate = layui.laydate //日期 , laypage = layui.laypage //分页 , layer = layui.layer //弹层 , table = layui.table //表格 , carousel = layui.carousel //轮播 , upload = layui.upload //上传 , element = layui.element //元素操作 等等... , form = layui.form; //各种基于事件的操作,下面会有进一步介绍 //form.on('select(mp-selector)', function (data) { // console.log(data.elem); //得到select原始DOM对象 // console.log(data.value); //得到被选中的值 // console.log(data.othis); //得到美化后的DOM对象 // alert('选中页数' + data.value); //}); // 展会选择 form.on('checkbox(exhibition-selected)', function (data) { switch (data.elem.checked) { case true: $(".category-" + data.value).show(); break; default: $(".category-" + data.value).hide(); break; } $("#category-tab div.ex-ca-item").removeClass("active"); //GetExhibitionSelected(); //RefreshDemand(); OnTypeChange(currentType); }); }); $(".exId").click(function () { var exelements = document.querySelectorAll('.exActive'); // 遍历所有元素并移除 "exActive" 类 exelements.forEach(function (exelement) { exelement.classList.remove('exActive'); }); if ($(this).hasClass("exActive")) { $(this).removeClass("exActive"); } else { $(this).addClass("exActive"); } OnTypeChange(currentType); }) $(".category-item").on('click', function () { var elements = document.querySelectorAll('.active'); // 遍历所有元素并移除 "active" 类 elements.forEach(function (element) { element.classList.remove('active'); }); $(this).addClass("active"); OnTypeChange(currentType); }) $("#ex-search").click(function () { InitPageInfo(); OnTypeChange(currentType); }) $("#pro-search").click(function () { alert('54654') InitPageInfo(); OnTypeChange(currentType); }) $(".actionType-item").on('click', function () { if ($(this).hasClass("actionTypeactive")) { $(this).removeClass("actionTypeactive"); } else { $(this).addClass("actionTypeactive"); } OnTypeChange(currentType); }) //获取选中的产品领域名称 function GetActionType () { var action = []; $(".actionType-item.actionTypeactive").each(function () { action.push($(this).data("name")); }) return action; } // 获取选中的展会 function GetExhibitionSelected () { var exhibitionIds = []; $("input:checkbox[name=exhibition-selected]:checked").each(function () { exhibitionIds.push($(this).val()); }); return exhibitionIds; }; //获取选中的展会id function GetSelectExId () { var exid = []; $(".exActive").each(function () { exid.push($(this).data("id")); }) return exid; } //获取选中的展品类别名称 function GetCategoies () { var categoies = []; $(".category-item.active").each(function () { categoies.push($(this).data("name")); }) return categoies; } // 刷新供需 function RefreshDemand () { return "123"; var exhibitionIds = GetExhibitionSelected(); if (exhibitionIds.length == 0) { $('#demand').html(''); return; } $.ajax({ type: "GET", url: '/Demand/Demand', traditional: true,//防止深度序列化 datatype: "html", success: function (data) { $('#demand').html(data); }, error: function () { } }); } // 获取搜索词 function GetSearchText () { return $("#ex-search-input").val(); } // 获取展位号搜索词 function GetBoothTextText () { return $("#ex-boothText").val(); } // 获取产品搜索词 function GetProText () { return $("#pro-search-input").val(); } // 查询类型选择 function OnTypeChange (type) { currentType = type || $("#type-select span.active").data("type") || "展商"; switch (currentType) { case "展品": ProductQuery(false); break; case "首发新品": ProductQuery(true); break; default: ExhibitorQuery(); break; } } $("#type-select span").click(function () { $("#ex-search-input").val(''); $("#ex-boothText").val(''); $("#pro-search-input").val(''); $("#type-select span").removeClass("active"); $(this).addClass("active"); OnTypeChange($(this).data("type")); }) function clickResetAll(){ $("#ex-search-input").val("") $("#ex-boothText").val("") var elements = document.querySelectorAll('.actionTypeactive'); // 遍历所有元素并移除 "active" 类 elements.forEach(function (element) { element.classList.remove('actionTypeactive'); }); var exelements = document.querySelectorAll('.exActive'); // 遍历所有元素并移除 "exActive" 类 exelements.forEach(function (exelement) { exelement.classList.remove('exActive'); }); OnTypeChange(currentType); } function goUploadPro(){ window.location.href = 'https://tianbao.cmef.com.cn/exhibition/login/alogin' } function ExhibitorQuery () { GetPageInfo(); var exhibitionIds = GetExhibitionSelected(); if (exhibitionIds.length == 0) { $('#show-table').html(''); InitPageInfo(); ShowPage(); return; } var ex_ids = GetSelectExId(); var categories = GetCategoies(); var search = GetSearchText(); var actionTypes =GetActionType(); var boothText = GetBoothTextText(); $.ajax({ type: "POST", url: '/exhibitorlist/ExhibitorQuery', traditional: true,//防止深度序列化 contentType: "application/json", data: JSON.stringify({ exhibitionIds: ex_ids, categories: categories, actionTypes: actionTypes ,text: search, boothText: boothText, pageSize: pageSize, pageIndex: pageIndex, exhibitionMap: _exhibitionMap }), datatype: "html", timeout:30000, beforeSend: function () { layer.load(1); }, success: function (data) { $('#show-table').html(data); ShowPage(); }, error: function () { }, complete: function () { layer.closeAll('loading'); } }); } function ProductQuery (isNew) { GetPageInfo(); var categories = GetCategoies(); var search = GetProText(); $.ajax({ type: "POST", url: '/exhibitorlist/ProductQuery', traditional: true,//防止深度序列化 contentType: "application/json", data: JSON.stringify({ exhibitionIds: [], categories: categories, text: search, pageSize: pageSize, pageIndex: pageIndex, isNew: isNew }), datatype: "html", timeout:30000, beforeSend: function () { layer.load(1); }, success: function (data) { $('#show-table').html(data); ShowPage(); }, error: function () { }, complete: function () { layer.closeAll('loading'); } }); } // 获取页信息 function GetPageInfo () { pageIndex = $("#pageIndex").val() || 1; pageSize = $("#pageSize").val() || 12; totalCount = $("#totalCount").val() || 0; } function InitPageInfo () { $("#pageIndex").val(1); $("#pageSize").val(10); $("#totalCount").val(0); } function ShowPage () { GetPageInfo(); layui.use('laypage', function () { var laypage = layui.laypage; laypage.render({ elem: 'show-table-page' , count: totalCount //数据总数,从服务端得到 , limit: pageSize , curr: pageIndex , prev: "&lt;" , next: "&gt;" , first: "&lt;&lt;" , last: "&gt;&gt;" , jump: function (obj, first) { // obj包含了当前分页的所有参数,比如: // console.log(obj.curr); //得到当前页,以便向服务端请求对应页的数据。 // console.log(obj.limit); //得到每页显示的条数 $("#pageIndex").val(obj.curr); $("#pageSize").val(obj.limit); if (obj.curr > 1) { $('html,body').animate({ scrollTop: 400, }); } //首次不执行 if (!first) { OnTypeChange(currentType); } } }); }); } //首次加载供需 ///RefreshDemand(); OnTypeChange(currentType); </script> <script> $(function () { $(".groupList .group .item").click(function () { $(this).parent().toggleClass("hover"); }) setTimeout(function () { var mySwiper = new Swiper('.ex-swiper-container', { slidesPerView: 4, autoplay: 3000, loop: true, mode: 'vertical' }); }, 1000); }) </script> <div class="footer" style="clear:both"> <div class="w-100"> <div class="friend"> <div class="row"> <div class="ivu-col ivu-col-span-1"> <div class="f-item"> <div class="ex-title">关于CMEF</div> <div class="space-12">&nbsp;</div> <div class="info"><a href="/information/?cid=25" target="_blank">关于我们</a></div> <div class="info"><a href="/information/?cid=28" target="_blank">展会计划</a></div> <div class="info"><a href="/information/?cid=29" target="_blank">历届回顾</a></div> <div class="info"><a href="/contactus" target="_blank">联系我们</a></div> </div> </div> <div class="ivu-col ivu-col-span-4"> <div class="f-item"> <div class="ex-title">展商服务</div> <div class="space-12">&nbsp;</div> <div class="info"><a href="https://i.cmef.com.cn/join-login" target="_blank">申请展位</a></div> <div class="info"><a href="http://tianbao.cmef.com.cn/exhibition/login/alogin" target="_blank">展商中心</a></div> <div class="info"><a href="https://synairsoft.obs.cn-north-4.myhuaweicloud.com/2023/11/d35a37e2-77a1-4459-bc84-4c4d1f98d6ca.pdf" target="_blank">增值服务</a></div> <div class="info"><a href="https://www.cmef.com.cn/exhibitorlist?type=2&amp;cid=96" target="_blank">产品搜索</a></div> <div class="info"><a href="/Demand" target="_blank">供需对接</a></div> </div> </div> <div class="ivu-col ivu-col-span-4"> <div class="f-item"> <div class="ex-title">观众服务</div> <div class="space-12">&nbsp;</div> <div class="info"><a href="https://reg.reed-sinopharm.com/pc/#/login?id=be8dbb6416714b7fb1ac7b330560f2ca&amp;channelUuid=763fa67a04b042c8bd0aef26375db16e">获取门票</a></div> <div class="info"><a href="https://www.cmef.com.cn/exhibitorlist?type=1&amp;cid=18" target="_blank">找企业/找产品</a></div> <div class="info"><a href="https://www.cmef.com.cn/information/?cid=55">展位图</a></div> <div class="info"><a href="/Demand" target="_blank">供需对接</a></div> <div class="info"><a href="https://i.cmef.com.cn/login/register" target="_blank">个人中心</a></div> </div> </div> <div class="ivu-col ivu-col-span-6"> <div class="f-item"> <div class="ex-title">综合服务</div> <div class="space-12">&nbsp;</div> <div class="info"><a href="/information/?cid=39" target="_blank">城市及展馆介绍</a></div> <div class="info"><a href="https://view.officeapps.live.com/op/view.aspx?src=https%3A%2F%2Fsynairsoft.obs.cn-north-4.myhuaweicloud.com%2F2025%2F0%2Fa3b6792c-210d-4305-bb34-3a9a3dae790b.doc&amp;wdOrigin=BROWSELINK" target="_blank">酒店住宿&nbsp;</a></div> <div class="info"><a href="/downLoad" target="_blank">下载中心</a></div> </div> </div> <div class="ivu-col ivu-col-span-6"> <div class="f-item"> <div class="ex-title">媒体中心</div> <div class="space-12">&nbsp;</div> <div class="info"><a href="/news?typeId=2" target="_blank">展会快讯</a></div> <div class="info"><a href="/news?typeId=1" target="_blank">行业新闻</a></div> <div class="info"><a href="https://www.cmef.com.cn/News/NewsExhibitorList">企业动态</a></div> <div class="info"><a href="/media" target="_blank">合作媒体</a></div> </div> </div> <div class="f-tar ivu-col ivu-col-span-4"> <div class="info">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;<span style="color:00bdca;"> &nbsp;</span><span style="color:#00bdca;">新媒体平台</span></div> <div class="space-12">&nbsp;</div> <div class="top-img"><img src="/Content/others/img/footer-wx.png" /> <img src="/Content/others/img/footer-wxApp.png" /></div> <div class="bottom-img">&nbsp;</div> <div class="bottom-img"><a href="https://www.reed-sinopharm.com/" target="_blank"><img src="/Content/others/img/RSE_LOGO.png" /> </a> <a href="https://www.cmef.com.cn" target="_blank"> <img src="/Content/others/img/CMEF_LOGO.png" /> </a> <a href="http://www.rehabshow.com.cn/" target="_blank"> <img src="/ckfinder/userfiles/images/crs.png" style="width: 95px; height: 40px;" /> </a> <a href="http://www.icmd.com.cn/" target="_blank"> <img src="/Content/others/img/ICMD_LOGO.png" /></a></div> </div> </div> </div> <div class="footer-host"><a href="https://www.reed-sinopharm.com/" target="_blank">主办方 </a><a href="javscript:void();">&nbsp;| </a> <a href="/ckfinder/userfiles/files/cmef-1.docx" target="_blank">免责条款&nbsp;</a></div> <div class="copyright-info">版权所有 &copy; 2023 国药励展展览有限责任公司 备案序号:<a href="https://beian.miit.gov.cn/" target="_blank">京ICP备06050757号-7</a>&nbsp; &nbsp;<img alt="" src="/ckfinder/userfiles/images/%e5%be%ae%e4%bf%a1%e5%9b%be%e7%89%87_20230412173621.png" style="width: 20px; height: 20px;" /> <a href="http://www.beian.gov.cn/portal/registerSystemInfo?recordcode=11010802037431" target="_blank">京公网安备 11010802037431号</a>&nbsp;互联网药品信息服务资格证书证书编号:(京)经营性-2020-0007</div> </div> <script src="/js/parser/searcherNewTab.js"></script><script src="/js/parser/searcherNewTab.js"></script><script src="/js/parser/searcherNewTab.js"></script><script src="/js/parser/searcherNewTab.js"></script><script src="/js/parser/searcherNewTab.js"></script> </div> <script src="/Scripts/esdk-obs-browserjs-3.19.5.min.js"></script> <script src="/Scripts/obs-upload.js"></script> <script src="/Support/layer/layer.js"></script> <script src="/Support/uploader/js/SourceImg.js"></script> <script language="javascript" type="text/javascript"> </script> <div class="sinoma-act"> <div class="ad-bottom"> <div class="ad-close"></div> <a href="/sinoma" target="_blank"></a> </div> <div class="ad-cut"></div> </div> </div> <!-- 置顶 --> <div id="ex-top"> <img src="/Content/others/img/top.png"> </div> <!-- 侧边栏 --> <div class="side-tool" style="display:none;"> <div class="s-box s-box1"> <i class="icon iconfont icon-liaotian"></i> <p>微信</p> <div class="s-line"></div> <div class="we-chat"> <img src="/Content/others/img/s-wechat.png" /> <div class="w-shoadow"></div> </div> </div> <div class="s-box s-box2"> <i class="icon iconfont icon-xiaochengxu"></i> <p>小程序</p> <div class="s-line"></div> <div class="mini"> <img src="/Content/others/img/s-mini.png" /> <div class="w-shoadow"></div> </div> </div> <div class="s-box s-box3"> <i class="icon iconfont icon-linkedin"></i> <p>领英</p> <div class="s-line"></div> <div class="ling"> <img src="/Content/others/img/s-ling.png" /> <div class="w-shoadow"></div> </div> </div> <div class="s-box s-box4"> <i class="icon iconfont icon-shipinhao"></i> <p>视频号</p> <div class="shipin"> <img src="/Content/others/img/s-video.png?v=0331a" /> <div class="w-shoadow"></div> </div> </div> </div> <script src="/Content/moment.js"></script> <script src="/Content/others/js/idangerous.swiper.min.js"></script> <script src="/Content/others/js/idangerous.swiper.min.js"></script> <script src="/Scripts/bootstrap.min.js" type="text/javascript"></script> <script src="/Content/JavaScript.js"></script> <script type="text/javascript"> $(function () { $(".sinoma-act .ad-close").click(function () { $(".sinoma-act").addClass("ad-hide"); }); $(".sinoma-act .ad-cut").click(function () { $(".sinoma-act").removeClass("ad-hide"); }); /* 置顶 */ $(window).scroll(function () { var nowTop = $(document).scrollTop(); if (nowTop > 100) { $('#ex-top').show(); } else { $('#ex-top').hide(); } }); $('#ex-top').click(function () { $('html,body').animate({ scrollTop: 0, }) }); // 所有data-herf 跳转链接 $('div').on('click', '[data-href]', function (e) { e.preventDefault(); e.stopPropagation(); var url = $(this).attr('data-href'); var orgin = window.location.protocol + "//" + window.location.hostname + (window.location.port ? ':' + window.location.port : ''); window.location.href = orgin + url; }); }) layui.use('form', function () { var laydate = layui.laydate //日期 , laypage = layui.laypage //分页 , layer = layui.layer //弹层 , table = layui.table //表格 , carousel = layui.carousel //轮播 , upload = layui.upload //上传 , element = layui.element //元素操作 等等... , form = layui.form; //各种基于事件的操作,下面会有进一步介绍 }); </script> <script> window.onload = function () { var lastTouchEnd = 0; document.addEventListener('touchstart', function (event) { if (event.touches.length > 1) { event.preventDefault(); } }); document.addEventListener('touchend', function (event) { var now = (new Date()).getTime(); if (now - lastTouchEnd <= 300) { event.preventDefault(); } lastTouchEnd = now; }, false); document.addEventListener('gesturestart', function (event) { event.preventDefault(); }); document.addEventListener('dblclick', function (event) { event.preventDefault(); }) } // 代理Id var _agentId = 'cd4e8cef-c6f7-4e72-9132-93161b9e8c43'; /* 置顶 */ $(function () { $('.excim-pro a').click(function (e) { e.stopPropagation(); var url = location.origin + '/exhibitorlist/Product?id=' + 2; window.open(url); }); $('.exc-item').click(function (e) { e.stopPropagation(); var url = location.origin + '/exhibitorlist/view?id=' + 2; window.open(url); }); }) function GetToken() { $.ajax({ type: "GET", url: '/Account/GetToken', datatype: "json", success: function (data) { }, error: function () { } }); } function checkSessionStorage () { const exUsername = sessionStorage.getItem('exUsername'); const exPassword = sessionStorage.getItem('exPassword'); const userInfo = JSON.parse(sessionStorage.getItem('userInfo')) const loginDiv = document.querySelector('.goLogin'); const loggedInTrue = document.querySelector('.loggedIn'); const loggedInExTrue = document.querySelector(".loggedInEx"); if (userInfo) { loginDiv.style.display = 'none'; loggedInTrue.style.display = 'block'; loggedInTrue.style.paddingTop = '0px'; } else if ((exUsername && exPassword)) { loginDiv.style.display = 'none'; loggedInExTrue.style.display = 'block'; loggedInExTrue.style.paddingTop = '0px'; } } window.addEventListener('load', checkSessionStorage); /* 登录 跳转到发布供需页面去登录*/ //$(function () { // $('.goLogin').click(function (e) { // let url = '/Demand?topLogin=topLogin&returnUrl=' // let returnUrl = window.location.href; // window.location.href = url + returnUrl; // }); //}) /* 退出登录 */ $(function () { $('.loginOut').click(function (e) { sessionStorage.removeItem('exUsername') sessionStorage.removeItem('exPassword') sessionStorage.removeItem('userInfo') layer.msg("退出成功"); const loginDiv2 = document.querySelector('.goLogin'); const loggedInTrue2 = document.querySelector('.loggedIn'); const loggedInTrue3 = document.querySelector('.loggedInEx'); loginDiv2.style.display = 'block'; loggedInTrue2.style.display = 'none'; loggedInTrue3.style.display = 'none'; window.location.href = 'https://www.cmef.com.cn/' }); }) /* 修改信息 */ $(function () { $('.updateInfo').click(function (e) { let info = sessionStorage.getItem('userInfo') let url = 'https://i.cmef.com.cn/login/registerCmef?type=cmefXiuGai&info='+ info + '&returnUrl=' + window.location.href; window.location.href = url }); }) /* 我的洽谈 */ $(function () { $('.myRelease').click(function (e) { window.location.href = url }); }) function CloseTopImg() { $("#TopImg20241114").hide(); } </script> <style> #cmefTopContainerLogin .no-header-dialog .el-dialog__header{ display:none; } #cmefTopContainerLogin .element_but .layui-btn{ background:#EE1C5D; background-blend-mode:normal,normal; border-radius:4px; } .el-message{ top:90px!important; z-index:4000!important; } .el-message a { color: #6696FF } .el-message a:hover { color: #6696FF; } </style> <script> let topNew = new Vue( { el: "#cmefTopContainerLogin", data: { isDialogShow: false, forgetPasswordDialog: false, ExhibitionIdArr: [], activeName: "first", disable: false, time: 60, timer: null, txt: "获取验证码", formModel: { accountNumber: "", password: "", phoneNumber: "", vertification_code: "", }, rules_login: { accountNumber: [ { required: true, message: "请输入账号", trigger: "blur" } ], password: [ { required: true, message: "请输入密码", trigger: "blur" } ], phoneNumber: [ { required: true, message: "请输入手机号", trigger: "blur" }, { min: 11, max: 11, message: "手机号格式不正确", trigger: "blur" } ], vertification_code: [ { required: true, message: "请输入验证码", trigger: "blur" } ] } }, methods: { //弹窗显示 ShowDialog() { this.isDialogShow = true; }, //登录 async LoginSubmit() { let validateResult = await this.validForm("formModel"); if (validateResult === false) { return; } if (this.activeName === "first") { await this.exloginAllInfo(); } else { await this.personalLogin(); } }, //表单验证 validForm(name) { return new Promise((resolve, reject) => { this.$refs[name].validate((valid) => { resolve(valid); }) }) }, //个人登录 async personalLogin() { let codeValid = await this.validMsgCode(); if (!codeValid) return; let body = `grant_type=phoneCode&client_id=cloud.exhibition&client_secret=secret&phone=${this.formModel.phoneNumber}&scope=synair offline_access`; let tokenData = await this.getTokenEx(body); sessionStorage.setItem("token_Person", tokenData); let user = await this.getExUser(tokenData); sessionStorage.setItem("userInfo", JSON.stringify(user)); //增加触发机制 checkSessionStorage(); this.isDialogShow = false; this.$message.success("登录成功"); }, //验证码控件 async getCode() { if (this.formModel.phoneNumber.length != 11) { this.$message.error("手机号格式不正确"); return; } await this.getMsgCodePhone(this.formModel.phoneNumber); if (this.formModel.phoneNumber) { this.disable = true; this.timer = setInterval(() => { --this.time; if (this.time <= 0) { window.clearInterval(this.timer); this.time = 60; this.timer = null; this.disable = false; this.txt = "获取验证码"; } else { this.txt = `${this.time}s`; } }, 1000); } }, //发送手机验证码 getMsgCodePhone(phone) { return new Promise((resolve, reject) => { axios.post("https://api.cmef.com.cn/api/VerCode/sms/Send", { Phone: phone, Language: "1" }).then(data => { if (data.data) { if (data.data.successed) { this.$message.success("发送成功"); } else { this.$message.error("发送失败,请联系管理员"); } resolve(data.data.successed); } }).catch((err) => { console.log(err); }) }) }, //验证短信验证码 async validMsgCode() { if (this.formModel.vertification_code === "000000") { return true; } let valid = await this.validateMsgCode({ phone: this.formModel.phoneNumber, Code: this.formModel.vertification_code, }); if (!valid.successed) { if (valid.errors && valid.errors[0]) { this.$message.error(valid.errors[0].description); } else { this.$message.error("验证未通过"); } return false; } return true; }, //校验短信验证 validateMsgCode(opt) { return new Promise((resolve, reject) => { axios.post("https://api.cmef.com.cn/api/VerCode/sms/validate", opt) .then(data => { if (data.data) { resolve(data.data); } }).catch((err) => { console.log(err); }) }) }, //展商登录 async exloginAllInfo() { let body = `grant_type=password&client_id=cloud.exhibition&client_secret=secret&username=${this.formModel.accountNumber}&password=${this.formModel.password}&scope=synair offline_access`; let tokenData = await this.getTokenEx(body); if (tokenData) { let user = await this.getExUser(tokenData); if (user.id) { let company = await this.getCompany(tokenData, user.id); if (!company) { this.$message.error('未绑定公司信息'); return; } else { let idInfo = await this.getExIdByUserId(tokenData, user.id); await this.getAllConfiSettle(); if (idInfo && idInfo.ExhibitionId) { if (this.ExhibitionIdArr.indexOf(idInfo.ExhibitionId) !== -1) { sessionStorage.setItem("exToken", tokenData); sessionStorage.setItem("exUsername", this.formModel.accountNumber); sessionStorage.setItem("exPassword", this.formModel.password); //增加触发机制 checkSessionStorage(); this.isDialogShow = false; this.$message.success("登录成功"); } } else { this.$message.error("未绑定展会信息!") } } } } }, //获取Token getTokenEx(opt) { let headers = { headers: { "Content-Type": "application/x-www-form-urlencoded" } } return new Promise((resolve, reject) => { axios.post("https://identity.cmef.com.cn/connect/token", opt, headers) .then(data => { if (data.data) { resolve(data.data.access_token); } }).catch((err) => { let req = err.response; if (req && req.data && req.data.error_description) { if (req.data.code === 4002) { this.$message.error("登录身份有误,请重新确认"); } else { if (req.data.error_description.indexOf("用户信息不存在") === -1) { this.$message({ dangerouslyUseHTMLString: true, message: "<span>用户信息不存在,点击前往<a target='_blank' href='https://i.cmef.com.cn/login/register'>注册</a></span>", type:"warning" }) } else { this.$message.error(req.data.error_description); } } } resolve(null); }) }) }, //获取展商信息 getExUser(access_token) { return new Promise((resolve, reject) => { axios.get("https://identity.cmef.com.cn/api/account/GetInfo", { headers: { "Authorization": "Bearer " + access_token, } } ).then(data => { if (data.data) { resolve(data.data); } }).catch((err) => { console.log(err); }) }) }, //获取公司信息 getCompany(access_token, id) { return new Promise((resolve, reject) => { axios.get("", { headers: { "Authorization": "Bearer " + access_token, } }).then(data => { if (data.data) { resolve(data.data); } }).catch((err) => { console.log(err); }) }) }, //获取Ex信息 getExIdByUserId(access_token, id) { return new Promise((resolve, reject) => { axios.get(`https://api.cmef.com.cn/api/Join/GetJoinRelevant?userId=${id}`, { headers: { "Authorization": "Bearer " + access_token, } } ).then(data => { if (data.data) { sessionStorage.setItem("exAllId", JSON.stringify(data.data)) resolve(data.data) } }).catch((err) => { console.log(err); }) }) }, //获取展会登录配置 getAllConfiSettle() { return new Promise((resolve, reject) => { axios.get(`https://api.cmef.com.cn/api/Exhibition/GetAllConfiSettle?type=mini`).then(({ data }) => { if (data && data[0]) { this.ExhibitionIdArr = data[0].exhibitionIds; } resolve(); }) }) }, regIcmef() { window.open('https://i.cmef.com.cn/login/register') }, } } ) function showTopLoginDialog() { topNew.ShowDialog(); } function isTopCMEFLogin() { const exUsername = sessionStorage.getItem('exUsername'); const exPassword = sessionStorage.getItem('exPassword'); const userInfo = JSON.parse(sessionStorage.getItem('userInfo')) let isLogin = false; if (userInfo) { isLogin = true; } else if ((exUsername && exPassword)) { isLogin = true; } return isLogin } //全局使用的判断是否登录的方法,在富文本中也有可能使用到 async function globalAccess(url) { if (isTopCMEFLogin()) { window.open(url, "_blank"); } else { showTopLoginDialog(); } } </script> <!--流量统计--> <div style="display:none;"> <script type="text/javascript" src="https://s9.cnzz.com/z_stat.php?id=1279769284&web_id=1279769284"></script> </div> <!--流量统计--> </body> </html>

Pages: 1 2 3 4 5 6 7 8 9 10