小程序
小游戏
企业微信
微信支付
扫描小程序码分享
2 个回答
加粗
标红
插入代码
插入链接
插入图片
上传视频
传的值为undefined了,必须是String类型
你好,麻烦通过点击下方“反馈信息”按钮,提供出现问题的。
App({ onLaunch: function() { wx.hideTabBar(); }, onShow: function() {}, onHide: function() {}, onError: function(t) {}, init_app: function() { var e = this; return wx.getSystemInfo({ success: function(t) { -1 < (e.globalData.sysData = t).model.indexOf("iPhone X") && (e.globalData.isIphoneX = !0); } }), new Promise(function(a, t) { wx.getStorageSync("uid") ? e.http.get("index.get_common_set", { showLoading: !1 }, 60).then(function(t) { e.globalData.basic_set = t.data.basic_set, e.globalData.tag_set = t.data.tag_set, a(); }) : wx.login({ success: function(t) { e.http.get("index.get_openid", { code: t.code }).then(function(t) { t.data.uid && t.data.openid ? (wx.setStorageSync("uid", t.data.uid), wx.setStorageSync("openid", t.data.openid), e.http.get("index.get_common_set", { showLoading: !1 }, 500).then(function(t) { e.globalData.basic_set = t.data.basic_set, e.globalData.tag_set = t.data.tag_set, a(); })) : wx.showModal({ title: "错误", content: "配置异常,请联系管理员检查后台配置", success: function(t) { wx.switchTab({ url: "/weike_zf/pages/index/index" }); } }); }); } }); }); }, set_navigation_bar: function() { wx.setNavigationBarColor({ frontColor: "#ffffff", backgroundColor: this.globalData.basic_set.theme_color }); }, globalData: { sysData: {}, isIphoneX: !1, user_info: {}, tarbars: [], basic_set: {}, wx_xcx_set: {} }, siteInfo: require("siteinfo.js"), http: require("./weike_zf/util/request.js") });
关注后,可在微信内接收相应的重要提醒。
请使用微信扫描二维码关注 “微信开放社区” 公众号
传的值为undefined了,必须是String类型
wx.setNavigationBarTitle
你调用的这两个API传的backgroundColor和title为undefined了
App({ onLaunch: function() { wx.hideTabBar(); }, onShow: function() {}, onHide: function() {}, onError: function(t) {}, init_app: function() { var e = this; return wx.getSystemInfo({ success: function(t) { -1 < (e.globalData.sysData = t).model.indexOf("iPhone X") && (e.globalData.isIphoneX = !0); } }), new Promise(function(a, t) { wx.getStorageSync("uid") ? e.http.get("index.get_common_set", { showLoading: !1 }, 60).then(function(t) { e.globalData.basic_set = t.data.basic_set, e.globalData.tag_set = t.data.tag_set, a(); }) : wx.login({ success: function(t) { e.http.get("index.get_openid", { code: t.code }).then(function(t) { t.data.uid && t.data.openid ? (wx.setStorageSync("uid", t.data.uid), wx.setStorageSync("openid", t.data.openid), e.http.get("index.get_common_set", { showLoading: !1 }, 500).then(function(t) { e.globalData.basic_set = t.data.basic_set, e.globalData.tag_set = t.data.tag_set, a(); })) : wx.showModal({ title: "错误", content: "配置异常,请联系管理员检查后台配置", success: function(t) { wx.switchTab({ url: "/weike_zf/pages/index/index" }); } }); }); } }); }); }, set_navigation_bar: function() { wx.setNavigationBarColor({ frontColor: "#ffffff", backgroundColor: this.globalData.basic_set.theme_color }); }, globalData: { sysData: {}, isIphoneX: !1, user_info: {}, tarbars: [], basic_set: {}, wx_xcx_set: {} }, siteInfo: require("siteinfo.js"), http: require("./weike_zf/util/request.js") });