Exemple #1
0
func (p *Sum) Prepare() bool {
	p.View.Folder = "rzrq"
	p.Title = "两市融资融券信息"
	common.SetupPage(&p.Page, "default")
	p.AddCss(&gos.ThemeItem{Value: "jquery.jqplot.min.css"})

	return true
}
Exemple #2
0
func (p *Regist) Prepare() bool {
	p.Title = "用户注册"
	p.View.Folder = "user"
	common.SetupPage(&p.Page, "default")

	p.Layout.TopRenderList = nil

	return true
}
Exemple #3
0
func (p *Error) Prepare() bool {
	p.Title = "Stock"
	p.View.Folder = "home"

	common.SetupPage(&p.Page, "default")

	p.Layout.TopRenderList = nil
	p.Layout.BottomRenderList = nil

	p.AddHead("<base href=\"/\">")

	return true
}
Exemple #4
0
func (p *Stock) Prepare() bool {
	p.View.Folder = "rzrq"
	code := p.Ctx.RouterParam("code")
	if code == "" {
		return false
	}

	p.Title = fmt.Sprint("融资融券信息-", code)
	common.SetupPage(&p.Page, "default")
	p.AddCss(&gos.ThemeItem{Value: "jquery.jqplot.min.css"})

	return true
}
Exemple #5
0
func (p *Default) Prepare() bool {
	p.Title = "Onqee"
	p.View.Folder = "home"
	common.SetupPage(&p.Page, "default")

	// p.Layout.TopRenderList = nil
	// p.Layout.BottomRenderList = nil
	// p.AddHead("<base href=\"/\">")

	conf := gos.Configuration.GetConf("other")

	data := DefaultData{}
	data.Diff = conf.GetFloat("hgt_check_amount")
	data.Min = conf.GetInt("hgt_check_minute")

	p.Data = data
	return true
}