Commit 72f664ce by sunerhu

1.提交测试

parent 0667eb24
......@@ -186,7 +186,8 @@
this.sharelogin = false
this.userId = val
// uni.setStorageSync('cffp_userId', this.userId);
localStorage.setItem('h5_userId', this.userId)
// localStorage.setItem('h5_userId', this.userId)
uni.setStorageSync('cffp_userId',this.userId);
this.getuserRead(1)
} else {
this.sharelogin = false
......@@ -256,6 +257,7 @@
},
// 订单保存
saveOrder() {
alert(uni.getStorageSync('cffp_userId'), 1)
if (this.loginType === 'visitor') {
uni.navigateTo({
url: '/components/login/login'
......@@ -269,7 +271,7 @@
}
},
h5jump() {
let h5userId = localStorage.getItem('h5_userId')
// let h5userId = localStorage.getItem('h5_userId')
if (h5userId) {
this.jumppurchase()
} else {
......@@ -524,11 +526,12 @@
this.shareCode = option.shareCode
this.shareUserId = option.shareUserId
this.getuserRead()
let endTime = Date.parse(new Date()) / 1000;
let startTime = localStorage.getItem('h5_startTime')
if (endTime - startTime > 3600 * 24) {
localStorage.setItem('h5_userId', '')
}
// let endTime = Date.parse(new Date()) / 1000;
// let startTime = localStorage.getItem('h5_startTime')
// if (endTime - startTime > 3600 * 24) {
// localStorage.setItem('h5_userId', '')
// }
alert(uni.getStorageSync('cffp_userId'), 1)
uni.setStorageSync('h5_coursesharing', this.coursesharing);
}
......
......@@ -54,6 +54,7 @@
this.$refs.sharewx.close()
},
uniShare(type) {
let platform = uni.getSystemInfoSync().platform
let that = this
this.closeShare()
this.submitsuessc(type)
......@@ -61,6 +62,7 @@
provider: "weixin",
scene: type === 1 ? "WXSceneSession" : "WXSceneTimeline",
type: 0,
systemType: platform == 'ios'? '0': '1',
href: that.WXdata.href,
title: that.WXdata.title,
summary: that.WXdata.summary,
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment