| 1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465 |
- import common from '../../utils/util';
- import main from '../../utils/main';
- const app = getApp();
- Page({
- data: {
- IsShow: 0,
- HasSound: true,
- ShowUserID:"000000000"
- },
- onLoad: function (options) {
- var that = this;
-
- that.setData({
- Containnerheight: main.getWindowHeight(),
- ProgramName: app.globalData.ProgramName,
- Version: app.globalData.Version,
- IsShow: app.globalData.userInfo.IsShow,
- ShowUserID:app.globalData.userInfo.ShowUserID,
- });
- common.getStorageValue(this, "HasSound", true, function () {
- wx.setStorageSync("HasSound", that.data.HasSound);
- });
- },
- updateMember: function () {
- wx.navigateTo({
- url: '../index/accredit',
- });
- },
- gotoSymbol: function (e) {
- wx.navigateTo({
- url: '../main/symbolsetting',
- });
- },
- gotoAbout: function (e) {
- wx.navigateTo({
- url: '../other/newuser?nobutton=true',
- });
- },
- gotoPayCustom:function(){
- if (app.globalData.userInfo.UserID<=7){
- wx.navigateTo({
- url: '../other/paycustom',
- });
- }
- },
- switch1Change(e) {
- var that = this;
- that.data.HasSound = e.detail.value;
- that.setData({
- HasSound: that.data.HasSound,
- });
- wx.setStorageSync("HasSound", that.data.HasSound);
- },
- onShareAppMessage: function () {
- return {
- title: app.globalData.ShareTitle,
- path: app.globalData.SharePath + '?UserID=' + app.globalData.userInfo.UserID,
- imageUrl: app.globalData.ShareImage,
- }
- },
- })
|