| 1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556 |
- import common from '../../utils/util';
- import main from '../../utils/main';
- const app = getApp();
- Page({
- data: {
- IsPromotion:false,
- },
- onLoad: function (options) {
- var that = this;
-
- var isPromotion=false;
- var title="大使";
- var backColor="#FFB808";
- var frontColor="#2E2E2E";
- var frontColor2="#000000";
- if (options.AgentCategory=="promotion"){
- isPromotion=true;
- title="推广";
- backColor="#FC7406";
- frontColor="#ffffff";
- frontColor2="#000000";
- }
- that.setData({
- Containnerheight: main.getWindowHeight(),
- IsPromotion:isPromotion,
- BackColor:backColor,
- FrontColor:frontColor,
- Title:title,
- User:app.globalData.userInfo,
- });
- wx.setBackgroundColor({
- backgroundColor: backColor,
- });
- wx.setNavigationBarColor({
- backgroundColor: backColor,
- backgroundColorTop:backColor,
- backgroundColorBottom:backColor,
- frontColor: frontColor2,
- })
- },
- onPullDownRefresh: function () {
- wx.stopPullDownRefresh();
- },
- onShareAppMessage: function () {
- return {
- title: app.globalData.ShareTitle,
- path: app.globalData.SharePath + '?UserID=' + app.globalData.userInfo.UserID,
- imageUrl: app.globalData.ShareImage,
- }
- },
- })
|