Authored by htoooth

fix login

... ... @@ -23,6 +23,12 @@ let store = {
shareUid: window.queryString.shareUid || ''
};
let $product = $('.product_name');
let name = $product.data('name');
let img = $product.data('img');
let price = $product.data('price');
let id = $product.data('id');
new Swiper('.swiper-container', {
direction: 'vertical',
lazyLoading: true,
... ... @@ -32,12 +38,6 @@ new Swiper('.swiper-container', {
});
function share() {
let $product = $('.product_name');
let name = $product.data('name');
let img = $product.data('img');
let price = $product.data('price');
let id = $product.data('id');
yoSdk.getUser().then(user => {
let shareData = makeShareData({
name: name,
... ... @@ -130,7 +130,7 @@ $('.action-bar-comp').on('click', '.js-join', function() {
}
store.running = true;
api.getCode(store.shareUid).then(result => {
api.getCode({shareUid: store.shareUid, ...yoSdk.getQueryObj()}).then(result => {
if (result.code === 200) {
luckAlert.show(result.data.prizeCode);
} else {
... ...