Authored by htoooth

fix login

@@ -23,6 +23,12 @@ let store = { @@ -23,6 +23,12 @@ let store = {
23 shareUid: window.queryString.shareUid || '' 23 shareUid: window.queryString.shareUid || ''
24 }; 24 };
25 25
  26 +let $product = $('.product_name');
  27 +let name = $product.data('name');
  28 +let img = $product.data('img');
  29 +let price = $product.data('price');
  30 +let id = $product.data('id');
  31 +
26 new Swiper('.swiper-container', { 32 new Swiper('.swiper-container', {
27 direction: 'vertical', 33 direction: 'vertical',
28 lazyLoading: true, 34 lazyLoading: true,
@@ -32,12 +38,6 @@ new Swiper('.swiper-container', { @@ -32,12 +38,6 @@ new Swiper('.swiper-container', {
32 }); 38 });
33 39
34 function share() { 40 function share() {
35 - let $product = $('.product_name');  
36 - let name = $product.data('name');  
37 - let img = $product.data('img');  
38 - let price = $product.data('price');  
39 - let id = $product.data('id');  
40 -  
41 yoSdk.getUser().then(user => { 41 yoSdk.getUser().then(user => {
42 let shareData = makeShareData({ 42 let shareData = makeShareData({
43 name: name, 43 name: name,
@@ -130,7 +130,7 @@ $('.action-bar-comp').on('click', '.js-join', function() { @@ -130,7 +130,7 @@ $('.action-bar-comp').on('click', '.js-join', function() {
130 } 130 }
131 131
132 store.running = true; 132 store.running = true;
133 - api.getCode(store.shareUid).then(result => { 133 + api.getCode({shareUid: store.shareUid, ...yoSdk.getQueryObj()}).then(result => {
134 if (result.code === 200) { 134 if (result.code === 200) {
135 luckAlert.show(result.data.prizeCode); 135 luckAlert.show(result.data.prizeCode);
136 } else { 136 } else {