Commit 72f664ce by sunerhu

1.提交测试

parent 0667eb24
...@@ -186,7 +186,8 @@ ...@@ -186,7 +186,8 @@
this.sharelogin = false this.sharelogin = false
this.userId = val this.userId = val
// uni.setStorageSync('cffp_userId', this.userId); // 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) this.getuserRead(1)
} else { } else {
this.sharelogin = false this.sharelogin = false
...@@ -256,6 +257,7 @@ ...@@ -256,6 +257,7 @@
}, },
// 订单保存 // 订单保存
saveOrder() { saveOrder() {
alert(uni.getStorageSync('cffp_userId'), 1)
if (this.loginType === 'visitor') { if (this.loginType === 'visitor') {
uni.navigateTo({ uni.navigateTo({
url: '/components/login/login' url: '/components/login/login'
...@@ -269,7 +271,7 @@ ...@@ -269,7 +271,7 @@
} }
}, },
h5jump() { h5jump() {
let h5userId = localStorage.getItem('h5_userId') // let h5userId = localStorage.getItem('h5_userId')
if (h5userId) { if (h5userId) {
this.jumppurchase() this.jumppurchase()
} else { } else {
...@@ -524,11 +526,12 @@ ...@@ -524,11 +526,12 @@
this.shareCode = option.shareCode this.shareCode = option.shareCode
this.shareUserId = option.shareUserId this.shareUserId = option.shareUserId
this.getuserRead() this.getuserRead()
let endTime = Date.parse(new Date()) / 1000; // let endTime = Date.parse(new Date()) / 1000;
let startTime = localStorage.getItem('h5_startTime') // let startTime = localStorage.getItem('h5_startTime')
if (endTime - startTime > 3600 * 24) { // if (endTime - startTime > 3600 * 24) {
localStorage.setItem('h5_userId', '') // localStorage.setItem('h5_userId', '')
} // }
alert(uni.getStorageSync('cffp_userId'), 1)
uni.setStorageSync('h5_coursesharing', this.coursesharing); uni.setStorageSync('h5_coursesharing', this.coursesharing);
} }
......
...@@ -54,6 +54,7 @@ ...@@ -54,6 +54,7 @@
this.$refs.sharewx.close() this.$refs.sharewx.close()
}, },
uniShare(type) { uniShare(type) {
let platform = uni.getSystemInfoSync().platform
let that = this let that = this
this.closeShare() this.closeShare()
this.submitsuessc(type) this.submitsuessc(type)
...@@ -61,6 +62,7 @@ ...@@ -61,6 +62,7 @@
provider: "weixin", provider: "weixin",
scene: type === 1 ? "WXSceneSession" : "WXSceneTimeline", scene: type === 1 ? "WXSceneSession" : "WXSceneTimeline",
type: 0, type: 0,
systemType: platform == 'ios'? '0': '1',
href: that.WXdata.href, href: that.WXdata.href,
title: that.WXdata.title, title: that.WXdata.title,
summary: that.WXdata.summary, 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