|
|
@@ -15,7 +15,9 @@ Page({
|
|
15
|
15
|
Containnerheight: main.getWindowHeight(),
|
|
16
|
16
|
});
|
|
17
|
17
|
|
|
18
|
|
- let bgcolor="",fcolor="";
|
|
|
18
|
+ },
|
|
|
19
|
+ onReady:function(){
|
|
|
20
|
+ let that = this;
|
|
19
|
21
|
main.getData('GetProgramList', function (data) {
|
|
20
|
22
|
if (data) {
|
|
21
|
23
|
for(let i=0;i<data.length;i++){
|
|
|
@@ -24,6 +26,10 @@ Page({
|
|
24
|
26
|
frontColor: data[i].FColor,
|
|
25
|
27
|
backgroundColor: data[i].BGColor,
|
|
26
|
28
|
});
|
|
|
29
|
+ wx.setBackgroundColor({
|
|
|
30
|
+ backgroundColorTop: data[i].BGColor,
|
|
|
31
|
+ backgroundColorBottom: data[i].BGColor,
|
|
|
32
|
+ })
|
|
27
|
33
|
that.setData({
|
|
28
|
34
|
BGColor:data[i].BGColor,
|
|
29
|
35
|
FColor:data[i].FColor,
|
|
|
@@ -34,7 +40,6 @@ Page({
|
|
34
|
40
|
}
|
|
35
|
41
|
}
|
|
36
|
42
|
});
|
|
37
|
|
-
|
|
38
|
43
|
},
|
|
39
|
44
|
goto: function (e) {
|
|
40
|
45
|
let that=this;
|