|
|
@ -66,15 +66,20 @@ |
|
|
s_id: '' |
|
|
s_id: '' |
|
|
} |
|
|
} |
|
|
}, |
|
|
}, |
|
|
onLoad(options) { |
|
|
|
|
|
this.pt = options.pt || 1; |
|
|
|
|
|
|
|
|
onLoad() { |
|
|
this.windowHeight = getApp().globalData.windowHeight; |
|
|
this.windowHeight = getApp().globalData.windowHeight; |
|
|
this.getCategoryList(); |
|
|
this.getCategoryList(); |
|
|
this.getShareInfo(); |
|
|
this.getShareInfo(); |
|
|
this.s_id = options.share_id |
|
|
|
|
|
|
|
|
// 获取页面参数 |
|
|
|
|
|
let options = uni.getStorageSync('homePageOptions') || {}; |
|
|
|
|
|
if(Object.keys(options).length > 0){ |
|
|
|
|
|
this.pt = options.pt || 1; |
|
|
|
|
|
this.s_id = options.share_id || ''; |
|
|
|
|
|
uni.removeStorageSync('homePageOptions'); |
|
|
if(this.pt == 2) { |
|
|
if(this.pt == 2) { |
|
|
this.bindUsders() |
|
|
this.bindUsders() |
|
|
} |
|
|
} |
|
|
|
|
|
} |
|
|
}, |
|
|
}, |
|
|
methods: { |
|
|
methods: { |
|
|
//用户绑定 |
|
|
//用户绑定 |
|
|
@ -91,6 +96,7 @@ |
|
|
let timeDate = Math.round(new Date().getTime() / 1000).toString(); |
|
|
let timeDate = Math.round(new Date().getTime() / 1000).toString(); |
|
|
let md5TimeDate = SparkMD5.hash(timeDate) |
|
|
let md5TimeDate = SparkMD5.hash(timeDate) |
|
|
let nowTime = new Date().toLocaleString(); |
|
|
let nowTime = new Date().toLocaleString(); |
|
|
|
|
|
console.log("进来啦~~~~~") |
|
|
_this.$http(_this.API.API_BINDSALES, { |
|
|
_this.$http(_this.API.API_BINDSALES, { |
|
|
deed: md5TimeDate, |
|
|
deed: md5TimeDate, |
|
|
sid: _this.s_id, |
|
|
sid: _this.s_id, |
|
|
|