-
Notifications
You must be signed in to change notification settings - Fork 0
/
main.qml
65 lines (60 loc) · 1.93 KB
/
main.qml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
import QtQuick 2.7
import QtQuick.Controls 2.0
import QtQuick.Layouts 1.0
import QtQuick.Window 2.2
import Userdata 1.0
import Business 1.0
ApplicationWindow {
property alias user: user
property alias business: business
Userdata{
id:user
}
Business{
id:business
Component.onCompleted: {
business.getblist()
console.log(user.username)
}
}
visible: true
width: 400
height: 800
title: qsTr("fanfou")
id:frmWindow
footer: BaseTabBar{
id:bar
height: 48
width: parent.width
//--------》》》》
Component.onCompleted: {
myModel.append({"modelText":"首页","modelColor":"#000000","modelColorG":"#148014","modelSrc":"qrc:/images/Chat_MsgRecord.svg", "modelSrcG": "qrc:/images/Chat_MsgRecordG.svg"})
//myModel.append({ "modelText": "订单", "modelColor": "#000000", "modelColorG": "#148014", "modelSrc": "qrc:/images/Chat_FriendManager.svg", "modelSrcG": "qrc:/images/Chat_FriendManagerG.svg"})
myModel.append({ "modelText": "我的", "modelColor": "#000000", "modelColorG": "#148014", "modelSrc": "qrc:/images/Main_P2PChat.svg", "modelSrcG": "qrc:/images/Main_P2PChatG.svg"})
// myModel.append({ "modelText": "我的", "modelColor": "#000000", "modelColorG": "#148014", "modelSrc": "qrc:/images/Main_P2PChat.svg", "modelSrcG": "qrc:/images/Main_P2PChatG.svg"})
}
}
SwipeView{
id:view
height: frmWindow.height-bar.height
width: parent.width
currentIndex: bar.currentIndex
interactive: false
StackView{
id:storePage
initialItem: storeModel
}
Component{
id:storeModel
Test1{}
}
StackView{
id:login
initialItem: loginPage
}
Component{
id:loginPage
Loginpage{}
}
}
}