|
|
import 'activity/coupon-list.page.css';
|
|
|
import $ from 'yoho-jquery';
|
|
|
import Page from 'yoho-page';
|
|
|
import share from 'common/share';
|
|
|
import 'common/share';
|
|
|
|
|
|
class CouponList extends Page {
|
|
|
constructor() {
|
...
|
...
|
@@ -19,24 +19,6 @@ class CouponList extends Page { |
|
|
|
|
|
init() {
|
|
|
this.bindEvents();
|
|
|
this.setShare();
|
|
|
}
|
|
|
|
|
|
setShare() {
|
|
|
let shareInfo = {
|
|
|
title: '假装这是一个很酷的主标题',
|
|
|
link: location.href,
|
|
|
desc: '假装这是一个很酷的副标题',
|
|
|
imgUrl: 'http://img11.static.yhbimg.com/taobaocms/2017/01/17/16/0108d724a0ef1f001d3ee6010aa79d960e.png'
|
|
|
};
|
|
|
|
|
|
if (this.app.isApp) {
|
|
|
this.app.ready(function() {
|
|
|
this.app.invokeMethod('set.shareInfo', shareInfo);
|
|
|
});
|
|
|
} else {
|
|
|
share(shareInfo);
|
|
|
}
|
|
|
}
|
|
|
|
|
|
bindEvents() {
|
...
|
...
|
@@ -46,7 +28,8 @@ class CouponList extends Page { |
|
|
}
|
|
|
|
|
|
hideDia() {
|
|
|
window.location.href = window.location.href;
|
|
|
this.selector.$diaC.removeClass().addClass('dia-c dia hide');
|
|
|
this.selector.$diaC.hide();
|
|
|
}
|
|
|
|
|
|
receiveAll() {
|
...
|
...
|
|