You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
33 lines
799 B
33 lines
799 B
1 week ago
|
import User from "../../../FrameWork/User/User";
|
||
|
import Common5 from "../../../Platform/th/Common5";
|
||
|
import StockManager from "./StockManager";
|
||
|
|
||
|
|
||
|
|
||
|
|
||
|
const { ccclass, property } = cc._decorator;
|
||
|
|
||
|
@ccclass
|
||
|
export default class JinRongTouTiaoBox extends cc.Component {
|
||
|
@property(cc.Node)
|
||
|
diFengXianStr: cc.Node = null
|
||
|
@property(cc.Node)
|
||
|
gaoFengXianStr: cc.Node = null
|
||
|
|
||
|
onLoad() {
|
||
|
let saveInfo = StockManager.setTomorrowUpStock(User.getDay())
|
||
|
this.diFengXianStr.getComponent(cc.Label).string = saveInfo.stockNameArrDi
|
||
|
this.gaoFengXianStr.getComponent(cc.Label).string = saveInfo.stockNameArrGao
|
||
|
}
|
||
|
// initBoxContent(){
|
||
|
|
||
|
// }
|
||
|
|
||
|
onBtnSure() {
|
||
|
// Common5.playEffect("CommonRes/sound/按键点击")
|
||
|
this.node.active = false
|
||
|
|
||
|
}
|
||
|
|
||
|
}
|