DPS_Manage/Page/Tab_home.qml

199 lines
6.9 KiB
QML
Raw Permalink Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

import QtQuick 2.15
import QtQuick.Window 2.15
import QtQuick.Controls 2.15
import QtQuick.Layouts 1.15
import HuskarUI.Basic 1.0
import QmlTool 1.0
import "../MyGlobals" 1.0
import "../Component"
Item {
anchors.fill: parent
Component.onCompleted: {
if(!GlobalVars.serverAdvertisement){
GlobalVars.getAllAdvertisement(function(jso){
GlobalVars.serverAdvertisement = [];
for(var idx in jso.list){
var obj = jso.list[idx]
var newobj = {
img : GlobalVars.server_url + obj.imageurl,
link : obj.linkUrl,
str : obj.text
}
GlobalVars.serverAdvertisement.push(newobj)
}
adver.originalModel = GlobalVars.serverAdvertisement
})
}
else{
adver.originalModel = GlobalVars.serverAdvertisement
}
popup.open()
}
HusPopup {
id: popup
x: (parent.width - width) * 0.5
y: (parent.height - height) * 0.5
width: 800
height: 660
parent: Overlay.overlay
closePolicy: HusPopup.NoAutoClose
movable: true
resizable: true
minimumX: 0
maximumX: parent.width - width
minimumY: 0
maximumY: parent.height - height
minimumWidth: 400
minimumHeight: 300
contentItem: Item {
ColumnLayout {
id:cl
anchors.fill: parent
anchors.bottom:parent.top
anchors.bottomMargin:30
// spacing: 20
// padding: 20
Rectangle {
visible: true
Layout.fillWidth: true
Layout.fillHeight: true
color: "transparent"
ScrollView {
id: scrollView
anchors.fill: parent
clip: true
Column{
spacing: 10
topPadding: 10
leftPadding: 10
Text{
width: 780
wrapMode: Text.WordWrap
font {
pixelSize: 14
family: HusTheme.Primary.fontPrimaryFamily
}
color: HusTheme.Primary.colorTextBase
text:"dps管理工具使用申明及免责条款
重要提示:
请您以下简称“用户”在使用dps管理工具以下简称“本软件”前务必仔细阅读本协议。本协议是您与本软件作者以下简称“我们”之间的法律协议构成双方对本软件使用的完整约定。您点击“同意条款”按钮或开始使用本软件的行为即视为已充分理解并自愿接受本协议全部条款。
一、协议接受与适用范围
1、强制同意条款
用户必须完全接受本协议所有内容,方可使用本软件及其未来任何版本更新。若用户不同意任何条款,应立即停止使用并卸载本软件。
2、用途限制
本软件仅供研究、学习及非商业性技术交流使用。我们因开发、维护及后续更新需投入人工成本,保留向用户收取合理技术服务费的权利。
二、禁止行为
用户承诺不得实施以下行为,否则我们将立即终止其使用权限,且已支付费用不予退还:
1、禁止商业用途
利用本软件进行任何营利活动,包括但不限于商业运营、售卖服务或衍生产品。
2、禁止违法内容
加载含色情、赌博、恐怖主义、分裂国家等违反中国法律法规及公序良俗的内容模块。
3、禁止宣传与引流
通过本软件发布广告、诱导用户充值消费或进行其他引流行为。
4、隐私与安全责任
本软件不含任何窃取隐私或破坏系统的代码,但用户加载的第三方模块可能引发风险。若因用户自行加载违法模块造成损失,相关法律责任及后果由用户自行承担,与我们无关。
三、责任免除条款
1、功能局限性声明
本软件仅提供基础技术框架,用户需自行评估加载模块的安全性。我们不对第三方模块的功能、安全性及合法性承担任何责任。
2、服务中断与更新风险
我们有权随时调整软件功能、暂停服务或终止运营,无需对用户或第三方承担违约责任。软件更新可能引发兼容性问题,用户需自行承担更新风险。
3、数据保护义务
用户应自行备份数据,因软件使用或更新导致的数据丢失,我们不承担恢复或赔偿责任。
四、协议终止与变更
1、单方终止权
若用户违反本协议,我们有权立即终止其使用权限并删除相关账户数据,无需事先通知。
2、协议修改权
我们保留随时修订本协议的权利。更新后的协议将通过软件内通知或官网公示,用户继续使用即视为接受修订内容。
五、其他条款
1、法律适用与争议解决
本协议适用中华人民共和国法律,争议应提交至软件运营方所在地法院管辖。
2、完整协议声明
本协议取代双方此前所有口头或书面约定,构成唯一有效法律文件。
用户确认:
我已仔细阅读并完全理解本协议内容,自愿承担使用本软件的所有风险,并承诺遵守上述条款。
生效日期: 本协议自用户首次使用本软件之日起生效。"
}
}
}
}
}
}
HusButton {
anchors.bottom: parent.bottom
anchors.right: parent.right
height: 30
radiusBg: popup.radiusBg * 0.5
text: qsTr("我同意")
type: HusButton.Type_Primary
onClicked: popup.close();
}
}
Rectangle{
anchors.top: parent.top
anchors.left: parent.left
anchors.right: parent.right
anchors.margins: 15
height: 400
border.color: HusTheme.isDark ? "#23272e" : "#f0f4f7"
border.width: 3
color:"transparent"
radius:8
clip: true
PromotionCard {
id:adver
anchors.fill: parent
switchInterval:3000
// originalModel: [
// {img:"qrc:/image/a1.png",key:1},
// {img:"https://rc.rindro.cn/dps/download3/2_凌众:img.png",key:2},
// {img:"qrc:/image/a3.png",key:3},
// {img:"qrc:/image/a4.png",key:4},
// ]
onClickedFunction:(Data)=> {
Qt.openUrlExternally(Data.link)
// Data.
}
}
}
}