|
@@ -261,11 +261,11 @@ Page({
|
|
|
})
|
|
|
},
|
|
|
clickAddtidings() {
|
|
|
- // if (!this.data.user) {
|
|
|
- // return this.setData({
|
|
|
- // showAuthPanel: true
|
|
|
- // })
|
|
|
- // }
|
|
|
+ if (!this.data.user) {
|
|
|
+ return this.setData({
|
|
|
+ showAuthPanel: true
|
|
|
+ })
|
|
|
+ }
|
|
|
this.setData({
|
|
|
['community.showAddtidings']: true
|
|
|
})
|
|
@@ -337,11 +337,11 @@ Page({
|
|
|
this.loadArticles()
|
|
|
break;
|
|
|
case '3':
|
|
|
- // if (!this.data.user || this.data.user.is_finish_reg == 0) {
|
|
|
- // return this.setData({
|
|
|
- // showAuthPanel: true
|
|
|
- // })
|
|
|
- // }
|
|
|
+ if (!this.data.user || this.data.user.is_finish_reg == 0) {
|
|
|
+ return this.setData({
|
|
|
+ showAuthPanel: true
|
|
|
+ })
|
|
|
+ }
|
|
|
this.data.mine.pagination.page = 1
|
|
|
this.data.mine.list = []
|
|
|
this.loadMyinformation()
|
|
@@ -392,18 +392,18 @@ Page({
|
|
|
success: r => {
|
|
|
wx.getUserInfo({
|
|
|
success: e => {
|
|
|
- // let {encryptedData,iv} = e
|
|
|
- // ilogin.loadAT({
|
|
|
- // reqdata: {
|
|
|
- // code: r.code,
|
|
|
- // encryptedData,
|
|
|
- // iv
|
|
|
- // }
|
|
|
- // }, r => {
|
|
|
+ let {encryptedData,iv} = e
|
|
|
+ ilogin.loadAT({
|
|
|
+ reqdata: {
|
|
|
+ code: r.code,
|
|
|
+ encryptedData,
|
|
|
+ iv
|
|
|
+ }
|
|
|
+ }, r => {
|
|
|
console.log(r)
|
|
|
- console.log(e);
|
|
|
+ // console.log(e);
|
|
|
|
|
|
- // })
|
|
|
+ })
|
|
|
},
|
|
|
})
|
|
|
// ilogin.loadAT({
|