Преглед изворни кода

[首页][修改]:[登录通过分享进去页面会一直加载]

tags/江西版6.1.0
meo пре 6 година
родитељ
комит
e594cb612d
1 измењених фајлова са 5 додато и 2 уклоњено
  1. +5
    -2
      pages/main/index.js

+ 5
- 2
pages/main/index.js Прегледај датотеку

@@ -203,13 +203,16 @@ Page({
*/
onLoad: function(options) {
let that = this;
let optionss = JSON.parse(wx.getStorageSync('options'));
let optionss;
if (wx.getStorageSync('options')){
optionss = JSON.parse(wx.getStorageSync('options'));
}
if (options.played == "true") {
that.setData({
played: true
})
}
if (optionss.couponChannelId || optionss.orderId) {
if (optionss && optionss.couponChannelId || optionss && optionss.orderId) {
that.setData({
optionsData: optionss
})


Loading…
Откажи
Сачувај