提交个人中心内容修改,首页名称展示

This commit is contained in:
2025-07-11 16:57:09 +08:00
parent 758e59eeac
commit 1a73daa961
13 changed files with 142 additions and 87 deletions

View File

@ -1,38 +1,38 @@
{ {
"version": "1", "version" : "1",
"prompt": "template", "prompt" : "template",
"title": "服务协议和隐私政策", "title" : "服务协议和隐私政策",
"message": "  请你务必审慎阅读、充分理解“服务协议”和“隐私政策”各条款,包括但不限于:为了更好的向你提供服务,我们需要收集你的设备标识、操作日志等信息用于分析、优化应用性能。<br/>  你可阅读<a href=\"https://ecloud.hoenergypower.cn/app-privacy-zh.html\">《服务协议》</a>和<a href=\"https://ecloud.hoenergypower.cn/app-privacy-zh.html\">《隐私政策》</a>了解详细信息。如果你同意,请点击下面按钮开始接受我们的服务。", "message" : "  请你务必审慎阅读、充分理解“服务协议”和“隐私政策”各条款,包括但不限于:为了更好的向你提供服务,我们需要收集你的设备标识、操作日志等信息用于分析、优化应用性能。<br/>  你可阅读<a href=\"https://ecloud.hoenergypower.cn/app-privacy-zh.html\">《服务协议》</a>和<a href=\"https://ecloud.hoenergypower.cn/app-privacy-zh.html\">《隐私政策》</a>了解详细信息。如果你同意,请点击下面按钮开始接受我们的服务。",
"buttonAccept": "同意并接受", "buttonAccept" : "同意并接受",
"buttonRefuse": "暂不同意", "buttonRefuse" : "暂不同意",
"hrefLoader": "system", "hrefLoader" : "system",
"backToExit": "false", "backToExit" : "false",
"second": { "second" : {
"title": "确认提示", "title" : "确认提示",
"message": "  进入应用前,你需先同意<a href=\"https://ecloud.hoenergypower.cn/app-privacy-zh.html\">《服务协议》</a>和<a href=\"https://ecloud.hoenergypower.cn/app-privacy-zh.html\">《隐私政策》</a>,否则将退出应用。", "message" : "  进入应用前,你需先同意<a href=\"https://ecloud.hoenergypower.cn/app-privacy-zh.html\">《服务协议》</a>和<a href=\"https://ecloud.hoenergypower.cn/app-privacy-zh.html\">《隐私政策》</a>,否则将退出应用。",
"buttonAccept": "同意并继续", "buttonAccept" : "同意并继续",
"buttonRefuse": "退出应用" "buttonRefuse" : "退出应用"
},
"disagreeMode": {
"support": false,
"loadNativePlugins": false,
"visitorEntry": false,
"showAlways": false
},
"styles": {
"backgroundColor": "#fff",
"borderRadius": "5px",
"title": {
"color": "#000000"
}, },
"buttonAccept": { "disagreeMode" : {
"color": "#009458" "support" : false,
"loadNativePlugins" : false,
"visitorEntry" : false,
"showAlways" : false
}, },
"buttonRefuse": { "styles" : {
"color": "#999999" "backgroundColor" : "#fff",
}, "borderRadius" : "5px",
"buttonVisitor": { "title" : {
"color": "#999999" "color" : "#000000"
},
"buttonAccept" : {
"color" : "#009458"
},
"buttonRefuse" : {
"color" : "#999999"
},
"buttonVisitor" : {
"color" : "#999999"
}
} }
} }
}

View File

@ -2,10 +2,10 @@
const config = { const config = {
// 产品名称 // 产品名称
productName: 'Hoenery', productName: 'Zetatech',
// 公司名称 // 公司名称
companyName: 'Hoenery', companyName: 'Zetatech',
// 产品版本号 // 产品版本号
productVersion: 'V1.0.0', productVersion: 'V1.0.0',
@ -22,6 +22,5 @@ const config = {
} }
// 设置后台接口服务的基础地址 // 设置后台接口服务的基础地址
config.baseUrl = "https://ecloud.hoenergypower.cn/api" config.baseUrl = "https://zzkj-cloud.com/api"
export default config export default config

View File

@ -1,7 +1,7 @@
{ {
"name" : "弘正储能", "name" : "StoraSmart",
"appid" : "__UNI__6826034", "appid" : "__UNI__86592F3",
"description" : "Hoenergy", "description" : "Zetatech",
"versionName" : "2.0.0", "versionName" : "2.0.0",
"versionCode" : 200, "versionCode" : 200,
"transformPx" : false, "transformPx" : false,
@ -50,33 +50,33 @@
}, },
"icons" : { "icons" : {
"android" : { "android" : {
"hdpi" : "unpackage/res/icons/72x72.png", "hdpi" : "C:/Users/46254/Desktop/mipmap-hdpi/组 7 拷贝 4.png",
"xhdpi" : "unpackage/res/icons/96x96.png", "xhdpi" : "C:/Users/46254/Desktop/mipmap-xhdpi/组 7 拷贝 4.png",
"xxhdpi" : "unpackage/res/icons/144x144.png", "xxhdpi" : "C:/Users/46254/Desktop/mipmap-xxhdpi/组 7 拷贝 4.png",
"xxxhdpi" : "unpackage/res/icons/192x192.png" "xxxhdpi" : "C:/Users/46254/Desktop/mipmap-xxxhdpi/组 7 拷贝 4.png"
}, },
"ios" : { "ios" : {
"appstore" : "unpackage/res/icons/1024x1024.png", "appstore" : "C:/Users/46254/Desktop/mipmap-xhdpi/组 7 拷贝.png",
"ipad" : { "ipad" : {
"app" : "unpackage/res/icons/76x76.png", "app" : "C:/Users/46254/Desktop/mipmap-hdpi/组 7 拷贝 4.png",
"app@2x" : "unpackage/res/icons/152x152.png", "app@2x" : "C:/Users/46254/Desktop/mipmap-xhdpi/组 7 拷贝 3.png",
"notification" : "unpackage/res/icons/20x20.png", "notification" : "C:/Users/46254/Desktop/mipmap-mdpi/组 7 拷贝 11.png",
"notification@2x" : "unpackage/res/icons/40x40.png", "notification@2x" : "C:/Users/46254/Desktop/mipmap-mdpi/组 7 拷贝 9.png",
"proapp@2x" : "unpackage/res/icons/167x167.png", "proapp@2x" : "C:/Users/46254/Desktop/mipmap-xxxhdpi/组 7 拷贝 9.png",
"settings" : "unpackage/res/icons/29x29.png", "settings" : "C:/Users/46254/Desktop/mipmap-mdpi/组 7 拷贝 10.png",
"settings@2x" : "unpackage/res/icons/58x58.png", "settings@2x" : "C:/Users/46254/Desktop/mipmap-xhdpi/组 7 拷贝 10.png",
"spotlight" : "unpackage/res/icons/40x40.png", "spotlight" : "C:/Users/46254/Desktop/mipmap-mdpi/组 7 拷贝 9.png",
"spotlight@2x" : "unpackage/res/icons/80x80.png" "spotlight@2x" : "C:/Users/46254/Desktop/mipmap-xxxhdpi/组 7 拷贝 11.png"
}, },
"iphone" : { "iphone" : {
"app@2x" : "unpackage/res/icons/120x120.png", "app@2x" : "C:/Users/46254/Desktop/mipmap-xhdpi/组 7 拷贝 8.png",
"app@3x" : "unpackage/res/icons/180x180.png", "app@3x" : "C:/Users/46254/Desktop/mipmap-xxhdpi/组 7 拷贝 8.png",
"notification@2x" : "unpackage/res/icons/40x40.png", "notification@2x" : "C:/Users/46254/Desktop/mipmap-xhdpi/组 7 拷贝 11.png",
"notification@3x" : "unpackage/res/icons/60x60.png", "notification@3x" : "C:/Users/46254/Desktop/mipmap-xxhdpi/组 7 拷贝 11.png",
"settings@2x" : "unpackage/res/icons/58x58.png", "settings@2x" : "C:/Users/46254/Desktop/mipmap-xhdpi/组 7 拷贝 10.png",
"settings@3x" : "unpackage/res/icons/87x87.png", "settings@3x" : "C:/Users/46254/Desktop/mipmap-xxhdpi/组 7 拷贝 10.png",
"spotlight@2x" : "unpackage/res/icons/80x80.png", "spotlight@2x" : "C:/Users/46254/Desktop/mipmap-xxxhdpi/组 7 拷贝 11.png",
"spotlight@3x" : "unpackage/res/icons/120x120.png" "spotlight@3x" : "C:/Users/46254/Desktop/mipmap-xhdpi/组 7 拷贝 8.png"
} }
} }
}, },
@ -84,9 +84,9 @@
"androidStyle" : "default", "androidStyle" : "default",
"androidTranslucent" : true, "androidTranslucent" : true,
"android" : { "android" : {
"hdpi" : "C:/Users/Administrator/Desktop/res2/res2/drawable-hdpi/d00fdfa1ad04f98a7f655c8808770b5.9.png", "hdpi" : "",
"xhdpi" : "C:/Users/Administrator/Desktop/res2/res2/drawable-xhdpi/d00fdfa1ad04f98a7f655c8808770b5.9.png", "xhdpi" : "",
"xxhdpi" : "C:/Users/Administrator/Desktop/res2/res2/drawable-xxhdpi/d00fdfa1ad04f98a7f655c8808770b5.9.png" "xxhdpi" : ""
}, },
"iosStyle" : "common", "iosStyle" : "common",
"ios" : { "ios" : {

12
package-lock.json generated
View File

@ -1132,9 +1132,9 @@
} }
}, },
"crypto-js": { "crypto-js": {
"version": "4.1.1", "version": "4.2.0",
"resolved": "https://registry.npmmirror.com/crypto-js/-/crypto-js-4.1.1.tgz", "resolved": "https://registry.npmmirror.com/crypto-js/-/crypto-js-4.2.0.tgz",
"integrity": "sha512-o2JlM7ydqd3Qk9CA0L4NL6mTzU2sdx96a+oOfPu8Mkl/PK51vSyoi8/rQ8NknZtk44vq15lmhAj9CIAGwgeWKw==" "integrity": "sha512-KALDyEYgpY+Rlob/iriUtjV6d5Eq+Y191A5g4UqLAi8CyGP9N1+FdVbkc1SxKc2r4YAYqG8JzO2KGL+AizD70Q=="
}, },
"cyclist": { "cyclist": {
"version": "1.0.2", "version": "1.0.2",
@ -2016,9 +2016,9 @@
"dev": true "dev": true
}, },
"jsencrypt": { "jsencrypt": {
"version": "3.3.1", "version": "3.3.2",
"resolved": "https://registry.npmmirror.com/jsencrypt/-/jsencrypt-3.3.1.tgz", "resolved": "https://registry.npmmirror.com/jsencrypt/-/jsencrypt-3.3.2.tgz",
"integrity": "sha512-dVvV54GdFuJgmEKn+oBiaifDMen4p6o6j/lJh0OVMcouME8sST0bJ7bldIgKBQk4za0zyGn0/pm4vOznR25mLw==" "integrity": "sha512-arQR1R1ESGdAxY7ZheWr12wCaF2yF47v5qpB76TtV64H1pyGudk9Hvw8Y9tb/FiTIaaTRUyaSnm5T/Y53Ghm/A=="
}, },
"json-parse-better-errors": { "json-parse-better-errors": {
"version": "1.0.2", "version": "1.0.2",

View File

@ -16,9 +16,9 @@
"homepage": "", "homepage": "",
"dependencies": { "dependencies": {
"@dcloudio/uni-helper-json": "^1.0.13", "@dcloudio/uni-helper-json": "^1.0.13",
"crypto-js": "^4.1.1", "crypto-js": "^4.2.0",
"image-tools": "^1.4.0", "image-tools": "^1.4.0",
"jsencrypt": "^3.3.1" "jsencrypt": "^3.3.2"
}, },
"devDependencies": { "devDependencies": {
"compression-webpack-plugin": "^6.1.1", "compression-webpack-plugin": "^6.1.1",

View File

@ -85,7 +85,7 @@
"style": { "style": {
"navigationBarTitleText": "系统设置", "navigationBarTitleText": "系统设置",
"navigationBarBackgroundColor": "#0ea17e", "navigationBarBackgroundColor": "#0ea17e",
"navigationBarTextStyle": "white", "navigationBarTextStyle": "black",
"enablePullDownRefresh": false, "enablePullDownRefresh": false,
"disableScroll": true "disableScroll": true
} }
@ -95,7 +95,7 @@
"style": { "style": {
"navigationBarTitleText": "账号安全", "navigationBarTitleText": "账号安全",
"navigationBarBackgroundColor": "#0ea17e", "navigationBarBackgroundColor": "#0ea17e",
"navigationBarTextStyle": "white", "navigationBarTextStyle": "black",
"enablePullDownRefresh": false, "enablePullDownRefresh": false,
"disableScroll": true "disableScroll": true
} }
@ -105,7 +105,7 @@
"style": { "style": {
"navigationBarTitleText": "关于我们", "navigationBarTitleText": "关于我们",
"navigationBarBackgroundColor": "#0ea17e", "navigationBarBackgroundColor": "#0ea17e",
"navigationBarTextStyle": "white", "navigationBarTextStyle": "black",
"enablePullDownRefresh": false, "enablePullDownRefresh": false,
"disableScroll": true "disableScroll": true
} }
@ -115,7 +115,7 @@
"style": { "style": {
"navigationBarTitleText": "通用", "navigationBarTitleText": "通用",
"navigationBarBackgroundColor": "#0ea17e", "navigationBarBackgroundColor": "#0ea17e",
"navigationBarTextStyle": "white", "navigationBarTextStyle": "black",
"enablePullDownRefresh": false, "enablePullDownRefresh": false,
"disableScroll": true "disableScroll": true
} }
@ -125,7 +125,7 @@
"style": { "style": {
"navigationBarTitleText": "消息通知", "navigationBarTitleText": "消息通知",
"navigationBarBackgroundColor": "#0ea17e", "navigationBarBackgroundColor": "#0ea17e",
"navigationBarTextStyle": "white", "navigationBarTextStyle": "black",
"enablePullDownRefresh": false, "enablePullDownRefresh": false,
"disableScroll": true "disableScroll": true
} }

View File

@ -1,10 +1,19 @@
.wrap { .wrap {
width: 100%; width: 100%;
height: 100vh; height: 100vh;
display: flex; display: flex;
flex-direction: column; flex-direction: column;
align-items: center; align-items: center;
.logo {
.EnglishFont{
font-size: 50rpx;
font-weight: 600;
margin-top: 230rpx;
color: #fff;
text-align: center;
}
}
.EnglishFont { .EnglishFont {
font-size: 36rpx; font-size: 36rpx;
font-weight: 600; font-weight: 600;

View File

@ -3,14 +3,16 @@
<!-- 首页背景图片 --> <!-- 首页背景图片 -->
<!-- <image src="/static/aidex/login/login-bg.png" class="logo"></image> --> <!-- <image src="/static/aidex/login/login-bg.png" class="logo"></image> -->
<view class="logo"> <view class="logo">
<view class="EnglishFont">
STORASMART
</view>
</view> </view>
<image src="/static/aidex/login/bg-logo2.png" class="center-logo"></image> <image src="/static/aidex/login/bg-logo2.png" class="center-logo"></image>
<!--首页用户密码输入框 --> <!--首页用户密码输入框 -->
<view class="EnglishFont"> <view class="EnglishFont">
Welcome to Hoenergy Welcome to Zetatech
</view> </view>
<u-select v-model="langShow" :list="Langlist" @confirm="changeLanguage"></u-select> <u-select v-model="langShow" :list="Langlist" @confirm="changeLanguage"></u-select>
@ -187,11 +189,13 @@ export default {
// this.$u.vuex("vuex_stationValue", val); // this.$u.vuex("vuex_stationValue", val);
if (val === '海外站' || val === 'Overseas Station') { if (val === '海外站' || val === 'Overseas Station') {
this.$u.http.setConfig({ this.$u.http.setConfig({
baseUrl: 'http://47.84.35.144:8000/api' // baseUrl: 'https://ecloud.hoenergypower.cn/api'
baseUrl: 'https://zzkj-cloud.com/api'
}); });
} else if (val === '中国站' || val === 'China Station') { } else if (val === '中国站' || val === 'China Station') {
this.$u.http.setConfig({ this.$u.http.setConfig({
baseUrl: 'https://ecloud.hoenergypower.cn/api' // baseUrl: 'https://ecloud.hoenergypower.cn/api'
baseUrl: 'https://zzkj-cloud.com/api'
}); });
} }
const res = await this.$u.api.GetLanguageConfig('zh') const res = await this.$u.api.GetLanguageConfig('zh')
@ -215,7 +219,7 @@ export default {
encryptData.key encryptData.key
) )
const params = { const params = {
username: 'hzdemo', username: 'zzdemo',
password: encryptData.password, password: encryptData.password,
type: "app", type: "app",
aesKey: publicData.keyData, aesKey: publicData.keyData,

View File

@ -31,6 +31,12 @@ export default {
upgrade: true upgrade: true
}; };
}, },
onLoad() {
this.updateTitle()
},
onShow() {
this.updateTitle()
},
computed: { computed: {
language(){ language(){
return this.vuex_language return this.vuex_language
@ -49,6 +55,12 @@ export default {
}, },
methods: { methods: {
updateTitle() {
uni.setNavigationBarTitle({
title: this.$t('homePage.mine.general')
});
},
openSettings() { openSettings() {
// #ifdef APP-PLUS // #ifdef APP-PLUS
uni.getSystemInfo({ uni.getSystemInfo({

View File

@ -39,6 +39,9 @@
timer: null timer: null
} }
}, },
onLoad() {
this.updateTitle()
},
computed: { computed: {
language(){ language(){
return this.vuex_language return this.vuex_language
@ -79,6 +82,7 @@
}, },
}, },
onShow() { onShow() {
this.updateTitle();
this.timer = setInterval(() => { this.timer = setInterval(() => {
this.getMessage() this.getMessage()
}, 3000) }, 3000)
@ -89,6 +93,11 @@
} }
}, },
methods: { methods: {
updateTitle() {
uni.setNavigationBarTitle({
title: this.$t('homePage.mine.messageAlerts')
});
},
confirm() { confirm() {
if (this.formModel.readStatus === 0) { if (this.formModel.readStatus === 0) {
this.$u.api.UpdateMessageStatus({ this.$u.api.UpdateMessageStatus({

View File

@ -84,6 +84,12 @@ export default {
}, },
}; };
}, },
onLoad() {
this.updateTitle()
},
onShow() {
this.updateTitle()
},
computed: { computed: {
language(){ language(){
return this.vuex_language return this.vuex_language
@ -104,6 +110,11 @@ export default {
this.$refs.uForm.setRules(this.rules); this.$refs.uForm.setRules(this.rules);
}, },
methods: { methods: {
updateTitle() {
uni.setNavigationBarTitle({
title: this.$t('homePage.mine.accountSec')
});
},
submit() { submit() {
const self = this const self = this
this.$refs.uForm.validate((valid) => { this.$refs.uForm.validate((valid) => {

View File

@ -30,6 +30,12 @@ export default {
versionCode: null, versionCode: null,
}; };
}, },
onLoad() {
this.updateTitle()
},
onShow() {
this.updateTitle()
},
computed:{ computed:{
language(){ language(){
return this.vuex_language return this.vuex_language
@ -58,10 +64,15 @@ export default {
}); });
} }
uni.navigateTo({ uni.navigateTo({
url: url, url: url,
}); });
}, },
updateTitle() {
uni.setNavigationBarTitle({
title: this.$t('homePage.mine.sysSetting')
});
},
openSettings() { openSettings() {
// #ifdef APP-PLUS // #ifdef APP-PLUS
uni.getSystemInfo({ uni.getSystemInfo({

View File

@ -85,7 +85,7 @@ const store = new Vuex.Store({
'name': 'My' 'name': 'My'
}, },
], ],
vuex_language:"zh_CN", vuex_language:"en_US",
// 如果vuex_version无需保存到本地永久存储无需lifeData.vuex_version方式 // 如果vuex_version无需保存到本地永久存储无需lifeData.vuex_version方式
vuex_config: config, vuex_config: config,
vuex_currentComponent:'Data' vuex_currentComponent:'Data'