Authored by 肖亚东

分享优化 — review by 李奇

@@ -101,6 +101,10 @@ Component({ @@ -101,6 +101,10 @@ Component({
101 error: false, 101 error: false,
102 fellow: false 102 fellow: false
103 }); 103 });
  104 + },
  105 +
  106 + hadJoinToShare() {
  107 + this.goShare();
104 this.triggerEvent('getcode'); 108 this.triggerEvent('getcode');
105 }, 109 },
106 110
@@ -61,7 +61,7 @@ @@ -61,7 +61,7 @@
61 <view class="code">{{code}}</view> 61 <view class="code">{{code}}</view>
62 </view> 62 </view>
63 <form bindsubmit='submitFormId' report-submit='true'> 63 <form bindsubmit='submitFormId' report-submit='true'>
64 - <button class="share" form-type="submit" bindtap="goShare">分享一下,中奖概率立马double</button> 64 + <button class="share" form-type="submit" bindtap="hadJoinToShare">分享一下,中奖概率立马double</button>
65 </form> 65 </form>
66 <view class="share-desc">1个好友参加=1个抽奖码=中奖几率UP!</view> 66 <view class="share-desc">1个好友参加=1个抽奖码=中奖几率UP!</view>
67 </view> 67 </view>