更新记录
1.0.0(2026-08-06)
提交插件
平台兼容性
uni-app(5.0)
| Vue2 | Vue3 | Chrome | Safari | app-vue | app-nvue | Android | iOS | iOS插件版本 | 鸿蒙 |
|---|---|---|---|---|---|---|---|---|---|
| √ | √ | × | × | √ | × | × | 12 | 1.0.0 | × |
| 微信小程序 | 支付宝小程序 | 抖音小程序 | 百度小程序 | 快手小程序 | 京东小程序 | 鸿蒙元服务 | QQ小程序 | 飞书小程序 | 小红书小程序 | 快应用-华为 | 快应用-联盟 |
|---|---|---|---|---|---|---|---|---|---|---|---|
| × | × | × | × | × | × | × | × | × | × | × | × |
uni-app x(5.0)
| Chrome | Safari | Android | iOS | iOS插件版本 | 鸿蒙 | 微信小程序 |
|---|---|---|---|---|---|---|
| × | × | × | 12 | 1.0.0 | × | × |
h3c-ies
插件说明
H3C iES 是一款可单独完成Portal认证与SSL VPN接入认证,无需iNode MC客户端。本插件支持 uni-app 和 uni-app x 项目,uni-app x 的uts语法上有细微的区别。请先下载示例(uni-app)项目进行学习、试用,使用 HBuilderX 导入示例项目后,点击插件页面“试用”按钮引入插件,打包并运行自定义基座到真机调试。
插件示例使用
1、通过插件市场“使用 HBuilderX 导入示例项目”下载插件示例项目(uniapp-vue2)
2、通过插件市场“试用”导入插件到示例项目中
3、打包并运行自定义基座(真机调试)
4、uni-app x (vue3)示例项目请联系作者提供
演示界面
<template>
<view>
<text style="font-size: 16px; font-weight: bold;">Portal功能</text>
<button type="default" @click="refreshServer">刷新Portal服务器</button>
<button type="default" @click="login">login</button>
<text style="font-size: 16px; font-weight: bold;">svpn功能</text>
<button type="default" @click="isV7Device">isV7Device</button>
<button type="default" @click="supportVldCode">supportVldCode</button>
<button type="default" @click="supportDynPwd">supportDynPwd</button>
<button type="default" @click="svpnIsOnline">svpnIsOnline</button>
<button type="default" @click="svpnLogout">svpnLogout</button>
<button type="default" @click="validateImage">validateImage</button>
<button type="default" @click="connectToVpn">connectToVpn</button>
</view>
</template>
获取插件对象
import * as IES from '@/uni_modules/h3c-ies'
刷新Portal服务器
refreshServer() {
portal.refreshServer()
}
登陆
login() {
const result = portal.login({
domainId: '',
server: '***',
username: '***',
password: '***',
supportSilense: true
})
console.log('portal.login', result)
}
判断当前S SL VPN设备的版本是否是V7版本
isV7Device() {
const isV7 = svpn.isV7Device()
console.log('isV7', isV7)
uni.showToast({
icon: 'none',
title: isV7 ? '支持v7' : '不支持v7,支持v3'
})
}
是否支持v7验证码
supportVldCode() {
const isSupport = svpn.supportVldCode()
console.log('supportVldCode', isSupport)
uni.showToast({
icon: 'none',
title: isSupport ? '支持v7验证码' : '不支持v7验证码'
})
}
是否支持动态密码
supportDynPwd() {
const isSupport = svpn.supportDynPwd()
console.log('supportDynPwd', isSupport)
uni.showToast({
icon: 'none',
title: isSupport ? '支持动态密码' : '不支持动态密码'
})
}
判断用户是否在线
svpnIsOnline() {
const isOnline = svpn.svpnIsOnline()
console.log('svpnIsOnline', isOnline)
uni.showToast({
icon: 'none',
title: isOnline ? 'svpn在线' : 'svpn不在线'
})
}
登出
svpnLogout() {
svpn.svpnLogout()
}
连接VPN设备
connectToVpn() {
const connectResult = svpn.connectToVpn({
host: 'h3cvpn.shccig.com',
})
console.log('connectToVpn', connectResult)
}

收藏人数:
购买源码授权版(
试用
使用 HBuilderX 导入示例项目
赞赏(0)
下载 19942
赞赏 3
下载 12487011
赞赏 1938
赞赏
京公网安备:11010802035340号