Showing
1 changed file
with
15 additions
and
7 deletions
| @@ -16,11 +16,13 @@ Page({ | @@ -16,11 +16,13 @@ Page({ | ||
| 16 | */ | 16 | */ |
| 17 | onLoad: function (options) { | 17 | onLoad: function (options) { |
| 18 | this.options=options | 18 | this.options=options |
| 19 | - this.setData({ | ||
| 20 | - seller:{ | ||
| 21 | - id:options.sid | ||
| 22 | - } | ||
| 23 | - }) | 19 | + if(options.sid){ |
| 20 | + this.setData({ | ||
| 21 | + seller:{ | ||
| 22 | + id:options.sid | ||
| 23 | + } | ||
| 24 | + }) | ||
| 25 | + } | ||
| 24 | //this.GetBalance() | 26 | //this.GetBalance() |
| 25 | }, | 27 | }, |
| 26 | 28 | ||
| @@ -93,10 +95,16 @@ Page({ | @@ -93,10 +95,16 @@ Page({ | ||
| 93 | checkout.subsidy_price=subsidy_price.toFixed(2) | 95 | checkout.subsidy_price=subsidy_price.toFixed(2) |
| 94 | } | 96 | } |
| 95 | } | 97 | } |
| 96 | - this.setData({ | 98 | + let obj={ |
| 97 | checkout:checkout, | 99 | checkout:checkout, |
| 98 | hasLoading:false, | 100 | hasLoading:false, |
| 99 | - }) | 101 | + } |
| 102 | + if(!this.data.seller){ | ||
| 103 | + obj.seller={ | ||
| 104 | + id:checkout.sid | ||
| 105 | + } | ||
| 106 | + } | ||
| 107 | + this.setData(obj) | ||
| 100 | }) | 108 | }) |
| 101 | }, | 109 | }, |
| 102 | is_wine:0, | 110 | is_wine:0, |
-
Please register or login to post a comment