Commit ea92983286e6f1900ca621b8b6f24e802b95c5ba
1 parent
74bfbea4
体验版的优化
Showing
1 changed file
with
3 additions
and
4 deletions
packageD/pages/AI-test-skin/index/aiskin.js
... | ... | @@ -63,14 +63,13 @@ Page({ |
63 | 63 | }, |
64 | 64 | |
65 | 65 | goto(e) { |
66 | - | |
66 | + var that=this; | |
67 | 67 | var need=e.currentTarget.dataset.need; |
68 | 68 | |
69 | 69 | let url = e.currentTarget.dataset.url; |
70 | 70 | if(this.data.ce_user_id){ |
71 | 71 | url+="?ce_user_id="+this.data.ce_user_id; |
72 | 72 | } |
73 | - | |
74 | 73 | if(!need){ |
75 | 74 | |
76 | 75 | app.goto(url); |
... | ... | @@ -78,7 +77,7 @@ Page({ |
78 | 77 | } |
79 | 78 | |
80 | 79 | this.check_num(function () { |
81 | - var user = getApp().globalData.userInfo || this.ce_user_id | |
80 | + var user = getApp().globalData.userInfo || that.data.ce_user_id | |
82 | 81 | if (!user) { |
83 | 82 | wx.showToast({ |
84 | 83 | title: "请先授权登陆", |
... | ... | @@ -153,7 +152,7 @@ Page({ |
153 | 152 | |
154 | 153 | check_num:function (func) { |
155 | 154 | |
156 | - var user_id=this.ce_user_id || getApp().globalData.user_id; | |
155 | + var user_id=this.data.ce_user_id || getApp().globalData.user_id; | |
157 | 156 | if (!user_id) return false; |
158 | 157 | |
159 | 158 | //判断右没有开AI测肤 | ... | ... |