Commit bf0d28a26ac9d5ca8951194e03e4979b9b687f3d
1 parent
065763f1
提示语从优化
Showing
1 changed file
with
7 additions
and
4 deletions
packageB/pages/user/user_coupon/user_coupon.js
| @@ -197,18 +197,21 @@ Page({ | @@ -197,18 +197,21 @@ Page({ | ||
| 197 | success:function (e) { | 197 | success:function (e) { |
| 198 | console.log(e); | 198 | console.log(e); |
| 199 | console.log('/code/get'); | 199 | console.log('/code/get'); |
| 200 | - var name= e.data.data.UseObjectName; | 200 | + |
| 201 | 201 | ||
| 202 | //--获取成功的时候-- | 202 | //--获取成功的时候-- |
| 203 | - if(e.data.code==0){ | 203 | + if(e.data.code==0 && e.data.data){ |
| 204 | + | ||
| 205 | + var name= e.data.data.UseObjectName; | ||
| 206 | + | ||
| 204 | var no=e.data.data.CashRepNo; | 207 | var no=e.data.data.CashRepNo; |
| 205 | var qc_com = th.selectComponent("#qc_com"); //组件的id | 208 | var qc_com = th.selectComponent("#qc_com"); //组件的id |
| 206 | var obj={val:no,content:"请将二维码展示给核销员,抵券更快捷",now: now, validay: validay, name: name,is_quan:1}; | 209 | var obj={val:no,content:"请将二维码展示给核销员,抵券更快捷",now: now, validay: validay, name: name,is_quan:1}; |
| 207 | qc_com.open(obj) | 210 | qc_com.open(obj) |
| 208 | 211 | ||
| 209 | }else{ | 212 | }else{ |
| 210 | - var qt_txt = this.selectComponent("#pop_txt"); //组件的id | ||
| 211 | - var ob={title:"温馨提示",content:"您暂时还没有该券"}; | 213 | + var qt_txt = th.selectComponent("#pop_txt"); //组件的id |
| 214 | + var ob={title:"温馨提示",content:e.data.msg}; | ||
| 212 | qt_txt.open(ob); | 215 | qt_txt.open(ob); |
| 213 | } | 216 | } |
| 214 | 217 |