20260210:yack-app提交
This commit is contained in:
parent
ba3eb91485
commit
31dc1e0880
@ -1,6 +1,6 @@
|
|||||||
import projectConfig from '@/env.config.js';
|
import projectConfig from '@/env.config.js';
|
||||||
|
|
||||||
var mqtt = require('mqtt/dist/mqtt.min.js')
|
var mqtt = require('mqtt')
|
||||||
var url = projectConfig.mqttServer;
|
var url = projectConfig.mqttServer;
|
||||||
|
|
||||||
let mqttTool = {
|
let mqttTool = {
|
||||||
@ -3,8 +3,9 @@
|
|||||||
<!-- #ifdef H5-->
|
<!-- #ifdef H5-->
|
||||||
<view class="navbar h5">
|
<view class="navbar h5">
|
||||||
<view class="navbar-left" @click="toggleSearchMode">
|
<view class="navbar-left" @click="toggleSearchMode">
|
||||||
<view v-if="!isSearching" class="logo">
|
<view v-if="!isSearching" class="logo-wrap">
|
||||||
<image src="../../static/logo-1.png" mode="widthFix" style="width: 260rpx;"></image>
|
<image src="/static/yack.png" mode="aspectFit" class="logo-img"></image>
|
||||||
|
<text class="logo-title">{{$tt('common.fastbee')}}</text>
|
||||||
</view>
|
</view>
|
||||||
<view v-else class="icon"></view>
|
<view v-else class="icon"></view>
|
||||||
</view>
|
</view>
|
||||||
@ -22,9 +23,11 @@
|
|||||||
<!-- #endif -->
|
<!-- #endif -->
|
||||||
<!-- #ifdef APP-PLUS || MP-WEIXIN-->
|
<!-- #ifdef APP-PLUS || MP-WEIXIN-->
|
||||||
<view class="navbar weixin">
|
<view class="navbar weixin">
|
||||||
|
<!-- 首页搜索遮罩 -->
|
||||||
<view class="navbar-left" @click="toggleSearchMode">
|
<view class="navbar-left" @click="toggleSearchMode">
|
||||||
<view v-if="!isSearching" class="logo">
|
<view v-if="!isSearching" class="logo-wrap">
|
||||||
<image src="../../static/logo-1.png" mode="widthFix" style="width: 260rpx;"></image>
|
<image src="/static/yack.png" mode="aspectFit" class="logo-img"></image>
|
||||||
|
<text class="logo-title">{{$tt('common.fastbee')}}</text>
|
||||||
</view>
|
</view>
|
||||||
<view v-else class="icon"></view>
|
<view v-else class="icon"></view>
|
||||||
</view>
|
</view>
|
||||||
@ -150,22 +153,35 @@
|
|||||||
display: flex;
|
display: flex;
|
||||||
align-items: center;
|
align-items: center;
|
||||||
|
|
||||||
.logo {
|
.logo-wrap {
|
||||||
|
display: flex;
|
||||||
|
align-items: center;
|
||||||
|
gap: 12rpx;
|
||||||
animation: fadeIn 0.8s ease;
|
animation: fadeIn 0.8s ease;
|
||||||
|
|
||||||
|
.logo-img {
|
||||||
|
width: 70rpx;
|
||||||
|
height: 70rpx;
|
||||||
|
flex-shrink: 0;
|
||||||
|
object-fit: contain;
|
||||||
|
}
|
||||||
|
|
||||||
|
.logo-title {
|
||||||
|
font-size: 26rpx;
|
||||||
|
color: #fff;
|
||||||
|
font-weight: 500;
|
||||||
|
white-space: nowrap;
|
||||||
|
line-height: 44px;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
.icon {
|
.icon {
|
||||||
width: 70rpx;
|
width: 70rpx;
|
||||||
height: 70rpx;
|
height: 70rpx;
|
||||||
background-image: url('/static/login/fastbee.png');
|
background-image: url('/static/yack.png');
|
||||||
background-size: cover;
|
background-size: contain;
|
||||||
filter: drop-shadow(0 2rpx 4rpx rgba(0, 0, 0, 0.2));
|
background-repeat: no-repeat;
|
||||||
animation: scaleUp 0.5s ease;
|
animation: scaleUp 0.5s ease;
|
||||||
transition: transform 0.2s ease;
|
|
||||||
|
|
||||||
&:hover {
|
|
||||||
animation: hoverAnimation 0.3s forwards;
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -17,19 +17,19 @@ let xinzhiKey = 'SBh45_yy21FU5ErV_';
|
|||||||
const CONFIG = {
|
const CONFIG = {
|
||||||
// 开发环境配置
|
// 开发环境配置
|
||||||
development: {
|
development: {
|
||||||
officialWebUrl: 'https://fastbee.cn/',
|
officialWebUrl: 'http://localhost:8080/',
|
||||||
baseUrl: 'https://iot.fastbee.cn/prod-api/',
|
baseUrl: 'http://localhost:8080/',
|
||||||
mqttServer: protocalDev + 'iot.fastbee.cn/mqtt',
|
mqttServer: protocalDev + 'localhost/mqtt',
|
||||||
decoderUrl: 'https://iot.fastbee.cn/',
|
decoderUrl: 'http://localhost:8080/',
|
||||||
qqmapKey,
|
qqmapKey,
|
||||||
xinzhiKey,
|
xinzhiKey,
|
||||||
},
|
},
|
||||||
// 生产环境配置
|
// 生产环境配置
|
||||||
production: {
|
production: {
|
||||||
officialWebUrl: 'https://fastbee.cn/',
|
officialWebUrl: 'https://ycdat.cn/',
|
||||||
baseUrl: 'https://iot.fastbee.cn/prod-api/',
|
baseUrl: 'https://ycdat.cn/prod-api/',
|
||||||
mqttServer: protocalProd + 'iot.fastbee.cn/mqtt',
|
mqttServer: protocalProd + 'ycdat.cn/mqtt',
|
||||||
decoderUrl: 'https://iot.fastbee.cn/',
|
decoderUrl: 'https://ycdat.cn/',
|
||||||
qqmapKey,
|
qqmapKey,
|
||||||
xinzhiKey,
|
xinzhiKey,
|
||||||
}
|
}
|
||||||
@ -33,7 +33,7 @@
|
|||||||
"navBar.deviceSharing": "Device Dharing",
|
"navBar.deviceSharing": "Device Dharing",
|
||||||
"navBar.shareDetails": "Share User Details",
|
"navBar.shareDetails": "Share User Details",
|
||||||
"navBar.about ": "About",
|
"navBar.about ": "About",
|
||||||
"common.fastbee": "Fastbee",
|
"common.fastbee": "YanAn",
|
||||||
"navBar.latest": "Latest news",
|
"navBar.latest": "Latest news",
|
||||||
"navBar.newsDetail": "News Detail",
|
"navBar.newsDetail": "News Detail",
|
||||||
"navBar.setting": "System Setting",
|
"navBar.setting": "System Setting",
|
||||||
@ -87,7 +87,7 @@
|
|||||||
"inputCode": "Please Input Code",
|
"inputCode": "Please Input Code",
|
||||||
"login": "Log in",
|
"login": "Log in",
|
||||||
"exampleAccount": "Example:fastbee 123456",
|
"exampleAccount": "Example:fastbee 123456",
|
||||||
"HuapuIoT": "HuapuIoT",
|
"HuapuIoT": "YanAn",
|
||||||
"registerNow": "Register",
|
"registerNow": "Register",
|
||||||
"readAndAgree": "Read and Agree",
|
"readAndAgree": "Read and Agree",
|
||||||
"serviceAgreement": "Service Agreement",
|
"serviceAgreement": "Service Agreement",
|
||||||
@ -119,7 +119,7 @@
|
|||||||
"smsLogin": {
|
"smsLogin": {
|
||||||
"smsLogin": "Sms Login",
|
"smsLogin": "Sms Login",
|
||||||
"login": "Log in",
|
"login": "Log in",
|
||||||
"HuapuIoT": "HuapuIoT ",
|
"HuapuIoT": "YanAn",
|
||||||
"accountLogin": "Account Login",
|
"accountLogin": "Account Login",
|
||||||
"obtainCode": "Obtain Code",
|
"obtainCode": "Obtain Code",
|
||||||
"correctPhone": "Please Input Correct PhoneNumber",
|
"correctPhone": "Please Input Correct PhoneNumber",
|
||||||
@ -247,8 +247,8 @@
|
|||||||
"group": "Group: 720136372, 1073236354",
|
"group": "Group: 720136372, 1073236354",
|
||||||
"webSite": "Official Website",
|
"webSite": "Official Website",
|
||||||
"SourceCode": "View The Source Code",
|
"SourceCode": "View The Source Code",
|
||||||
"open": "FastBee-Open source IoT platform Version 2.5.1",
|
"open": "YanAn Data Platform Version 2.5.1",
|
||||||
"message": "Qujing Fengxin Technology Co., Ltd | HuapuIOT | Official website fastbee.cn"
|
"message": "YanAn Data Platform | fastbee.cn | ycdat.cn"
|
||||||
},
|
},
|
||||||
"deviceDetail": {
|
"deviceDetail": {
|
||||||
"basicMsg": "Basic Messages",
|
"basicMsg": "Basic Messages",
|
||||||
@ -47,7 +47,7 @@
|
|||||||
"navBar.eventLog": "事件日志",
|
"navBar.eventLog": "事件日志",
|
||||||
"navBar.orderLog": "指令日志",
|
"navBar.orderLog": "指令日志",
|
||||||
"navBar.player": "播放器",
|
"navBar.player": "播放器",
|
||||||
"common.fastbee": "蜂信物联",
|
"common.fastbee": "岩安测控",
|
||||||
"common.add": "添加",
|
"common.add": "添加",
|
||||||
"common.delete": "删除",
|
"common.delete": "删除",
|
||||||
"common.save": "保存",
|
"common.save": "保存",
|
||||||
@ -85,7 +85,8 @@
|
|||||||
"inputCode": "请输入验证码",
|
"inputCode": "请输入验证码",
|
||||||
"login": "登录",
|
"login": "登录",
|
||||||
"exampleAccount": "演示账号: fastbee 123456",
|
"exampleAccount": "演示账号: fastbee 123456",
|
||||||
"HuapuIoT": "华普物联",
|
|
||||||
|
"HuapuIoT": "岩安WEB平台",
|
||||||
"registerNow": "现在注册",
|
"registerNow": "现在注册",
|
||||||
"readAndAgree": "已阅读并同意",
|
"readAndAgree": "已阅读并同意",
|
||||||
"serviceAgreement": "服务协议",
|
"serviceAgreement": "服务协议",
|
||||||
@ -96,7 +97,7 @@
|
|||||||
"readAndCheckTheAgreement": "请阅读并勾选协议",
|
"readAndCheckTheAgreement": "请阅读并勾选协议",
|
||||||
"accontMsg": "账号信息不能为空",
|
"accontMsg": "账号信息不能为空",
|
||||||
"phoneLogin": "手机号快捷登录",
|
"phoneLogin": "手机号快捷登录",
|
||||||
"welcomeToLogin": "欢迎登录峰信物联",
|
"welcomeToLogin": "欢迎登录岩安测控",
|
||||||
"phoneAuthorization": "手机授权登录",
|
"phoneAuthorization": "手机授权登录",
|
||||||
"remember": "记住密码",
|
"remember": "记住密码",
|
||||||
"other": "其他方式登录"
|
"other": "其他方式登录"
|
||||||
@ -119,7 +120,7 @@
|
|||||||
"inputPhone": "请输入手机号码",
|
"inputPhone": "请输入手机号码",
|
||||||
"inputCode": "请输入验证码",
|
"inputCode": "请输入验证码",
|
||||||
"login": "登录",
|
"login": "登录",
|
||||||
"HuapuIoT": "华普物联",
|
"HuapuIoT": "岩安官网",
|
||||||
"accountLogin": "账号登录",
|
"accountLogin": "账号登录",
|
||||||
"obtainCode": "获取验证码",
|
"obtainCode": "获取验证码",
|
||||||
"correctPhone": "请输入正确的手机号码",
|
"correctPhone": "请输入正确的手机号码",
|
||||||
@ -155,7 +156,7 @@
|
|||||||
},
|
},
|
||||||
"user": {
|
"user": {
|
||||||
"personalCentre": "个人中心",
|
"personalCentre": "个人中心",
|
||||||
"openIOT": "蜂信物联-开源物联网平台",
|
"openIOT": "岩安测控数据平台-开源物联网平台",
|
||||||
"addDevice": "添加设备",
|
"addDevice": "添加设备",
|
||||||
"addScene": "添加场景",
|
"addScene": "添加场景",
|
||||||
"groupManagement": "分组管理",
|
"groupManagement": "分组管理",
|
||||||
@ -247,8 +248,8 @@
|
|||||||
"group": "交流群:720136372,1073236354",
|
"group": "交流群:720136372,1073236354",
|
||||||
"webSite": "官方网站",
|
"webSite": "官方网站",
|
||||||
"SourceCode": "查看源码",
|
"SourceCode": "查看源码",
|
||||||
"open": "开源物联网平台 Version 2.5.1",
|
"open": "岩安测控数据平台 Version 2.5.1",
|
||||||
"message": "曲靖蜂信科技有限公司 | 华普物联 | 官网 fastbee.cn"
|
"message": "岩安测控数据平台 | 官网 fastbee.cn | ycdat.cn"
|
||||||
},
|
},
|
||||||
"deviceDetail": {
|
"deviceDetail": {
|
||||||
"basicMsg": "基本信息",
|
"basicMsg": "基本信息",
|
||||||
@ -1,7 +1,7 @@
|
|||||||
{
|
{
|
||||||
"name" : "蜂信物联",
|
"name" : "岩安测控",
|
||||||
"appid" : "__UNI__7E6DA69",
|
"appid" : "__UNI__7E6DA69",
|
||||||
"description" : "开源物联网平台",
|
"description" : "岩安测控数据平台",
|
||||||
"versionName" : "2.2.0",
|
"versionName" : "2.2.0",
|
||||||
"versionCode" : 200,
|
"versionCode" : 200,
|
||||||
"transformPx" : false,
|
"transformPx" : false,
|
||||||
@ -65,7 +65,7 @@
|
|||||||
"ad" : {},
|
"ad" : {},
|
||||||
"oauth" : {
|
"oauth" : {
|
||||||
"weixin" : {
|
"weixin" : {
|
||||||
"appid" : "wx6be3f0d7bf7154e1",
|
"appid" : "wx8bcff4708d1f6d2b",
|
||||||
"appsecret" : "b6c1d0da60bd5250857d211cdc64fdc9",
|
"appsecret" : "b6c1d0da60bd5250857d211cdc64fdc9",
|
||||||
"UniversalLinks" : ""
|
"UniversalLinks" : ""
|
||||||
}
|
}
|
||||||
@ -157,7 +157,7 @@
|
|||||||
"enable" : false
|
"enable" : false
|
||||||
},
|
},
|
||||||
"h5" : {
|
"h5" : {
|
||||||
"title" : "蜂信物联",
|
"title" : "岩安测控",
|
||||||
"router" : {
|
"router" : {
|
||||||
"mode" : "hash",
|
"mode" : "hash",
|
||||||
"base" : "./"
|
"base" : "./"
|
||||||
@ -1,7 +1,7 @@
|
|||||||
{
|
{
|
||||||
"name": "fastbee-app",
|
"name": "fastbee-app",
|
||||||
"version": "2.5.1",
|
"version": "2.5.1",
|
||||||
"description": "手机端,可用于中小企业快速搭建物联网系统,个人学习搭建智能家居平台;适用于智能家居、智慧办公、智慧社区、农业监测、工业控制等",
|
"description": "岩安测控数据平台-手机端,可用于中小企业快速搭建物联网系统,个人学习搭建智能家居平台;适用于智能家居、智慧办公、智慧社区、农业监测、工业控制等",
|
||||||
"homepage": "https://fastbee.cn",
|
"homepage": "https://fastbee.cn",
|
||||||
"main": "main.js",
|
"main": "main.js",
|
||||||
"dependencies": {
|
"dependencies": {
|
||||||
@ -20,6 +20,6 @@
|
|||||||
"keywords": [
|
"keywords": [
|
||||||
"fastbee"
|
"fastbee"
|
||||||
],
|
],
|
||||||
"author": "fastbee",
|
"author": "kerwincui",
|
||||||
"license": "ISC"
|
"license": "AGPL-3.0"
|
||||||
}
|
}
|
||||||
@ -1,7 +1,8 @@
|
|||||||
<template>
|
<template>
|
||||||
<view class="login-wrap">
|
<view class="login-wrap">
|
||||||
<view class="top-wrap">
|
<view class="top-wrap">
|
||||||
<image src="../../static/logo_title.png" mode="widthFix" style="width: 500rpx;"></image>
|
<image src="/static/yack.png" mode="widthFix" style="width: 500rpx;"></image>
|
||||||
|
<view class="logo-text">{{$tt('common.fastbee')}}</view>
|
||||||
</view>
|
</view>
|
||||||
<view class="main-wrap">
|
<view class="main-wrap">
|
||||||
<u--form :model="loginForm" :rules="rules" ref="form" labelWidth="31">
|
<u--form :model="loginForm" :rules="rules" ref="form" labelWidth="31">
|
||||||
@ -89,7 +90,7 @@
|
|||||||
<view class="one-click-login-pop-wrap">
|
<view class="one-click-login-pop-wrap">
|
||||||
<u-popup :show="isShowPop" mode="bottom" :round="10" closeable="true" @close="isShowPop = false">
|
<u-popup :show="isShowPop" mode="bottom" :round="10" closeable="true" @close="isShowPop = false">
|
||||||
<view class="content-wrap">
|
<view class="content-wrap">
|
||||||
<u--image :showLoading="true" src="/static/logo_title.png" width="260rpx" height="90rpx"
|
<u--image :showLoading="true" src="/static/yack.png" width="260rpx" height="90rpx"
|
||||||
customStyle="float:left"></u--image>
|
customStyle="float:left"></u--image>
|
||||||
<text class="title">{{$tt("login.welcomeToLogin")}}</text>
|
<text class="title">{{$tt("login.welcomeToLogin")}}</text>
|
||||||
<view class="btn-login">
|
<view class="btn-login">
|
||||||
@ -473,7 +474,7 @@
|
|||||||
},
|
},
|
||||||
openhpLink() {
|
openhpLink() {
|
||||||
uni.navigateTo({
|
uni.navigateTo({
|
||||||
url: '/pages/common/webview/index?url=http://www.hpiot.cn/'
|
url: '/pages/common/webview/index?url=https://ycdat.cn/'
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@ -496,8 +497,16 @@
|
|||||||
.top-wrap {
|
.top-wrap {
|
||||||
height: 510rpx;
|
height: 510rpx;
|
||||||
display: flex;
|
display: flex;
|
||||||
|
flex-direction: column;
|
||||||
align-items: center;
|
align-items: center;
|
||||||
justify-content: center;
|
justify-content: center;
|
||||||
|
|
||||||
|
.logo-text {
|
||||||
|
margin-top: 16rpx;
|
||||||
|
font-size: 32rpx;
|
||||||
|
color: #333;
|
||||||
|
font-weight: 500;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
.main-wrap {
|
.main-wrap {
|
||||||
@ -488,7 +488,7 @@
|
|||||||
}
|
}
|
||||||
|
|
||||||
// 小程序中popup坑
|
// 小程序中popup坑
|
||||||
/deep/ .u-safe-bottom {
|
::v-deep .u-safe-bottom {
|
||||||
display: none;
|
display: none;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@ -109,10 +109,10 @@
|
|||||||
<view class="right"><u-icon class="iconfont" name="arrow-right" size="12" color="#333"></u-icon>
|
<view class="right"><u-icon class="iconfont" name="arrow-right" size="12" color="#333"></u-icon>
|
||||||
</view>
|
</view>
|
||||||
</view>
|
</view>
|
||||||
<!-- 华普 -->
|
<!-- 岩安官网 -->
|
||||||
<view class="item" @tap="openhpLink">
|
<view class="item" @tap="openYanAnLink">
|
||||||
<view class="left">
|
<view class="left">
|
||||||
<u-icon class="iconfont" name="/static/hp_logo.png" size="22" color="#fff"></u-icon>
|
<u-icon class="iconfont" name="/static/yack.png" size="22" color="#fff"></u-icon>
|
||||||
<text class="text">{{$tt('login.HuapuIoT')}}</text>
|
<text class="text">{{$tt('login.HuapuIoT')}}</text>
|
||||||
</view>
|
</view>
|
||||||
<view class="right"><u-icon class="iconfont" name="arrow-right" size="12" color="#333"></u-icon>
|
<view class="right"><u-icon class="iconfont" name="arrow-right" size="12" color="#333"></u-icon>
|
||||||
@ -365,9 +365,9 @@
|
|||||||
})*/
|
})*/
|
||||||
uni.$u.route('/pagesB/user/resetPsd');
|
uni.$u.route('/pagesB/user/resetPsd');
|
||||||
},
|
},
|
||||||
openhpLink() {
|
openYanAnLink() {
|
||||||
uni.navigateTo({
|
uni.navigateTo({
|
||||||
url: '/pages/common/webview/index?url=http://www.hpiot.cn/'
|
url: '/pages/common/webview/index?url=https://ycdat.cn/'
|
||||||
});
|
});
|
||||||
},
|
},
|
||||||
gotoAbout() {
|
gotoAbout() {
|
||||||
@ -741,14 +741,14 @@
|
|||||||
/* 设置文字颜色 */
|
/* 设置文字颜色 */
|
||||||
}
|
}
|
||||||
|
|
||||||
/deep/.uni-list-item__content-title[data-v-296a3d7e] {
|
::v-deep.uni-list-item__content-title[data-v-296a3d7e] {
|
||||||
font-size: 30rpx;
|
font-size: 30rpx;
|
||||||
color: #333;
|
color: #333;
|
||||||
overflow: hidden;
|
overflow: hidden;
|
||||||
font-weight: 500;
|
font-weight: 500;
|
||||||
}
|
}
|
||||||
|
|
||||||
/deep/.uni-list-item__container {
|
::v-deep.uni-list-item__container {
|
||||||
padding: 30rpx;
|
padding: 30rpx;
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -443,7 +443,7 @@
|
|||||||
.time-shortcut {
|
.time-shortcut {
|
||||||
width: 190rpx;
|
width: 190rpx;
|
||||||
|
|
||||||
/deep/ .uni-select {
|
::v-deep .uni-select {
|
||||||
height: 70rpx;
|
height: 70rpx;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@ -1377,7 +1377,7 @@
|
|||||||
padding: 0px 18px;
|
padding: 0px 18px;
|
||||||
border-radius: 5px;
|
border-radius: 5px;
|
||||||
|
|
||||||
/deep/ .u-line:first-child {
|
::v-deep .u-line:first-child {
|
||||||
border-bottom: transparent !important;
|
border-bottom: transparent !important;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
Some files were not shown because too many files have changed in this diff Show More
Loading…
Reference in New Issue
Block a user