Authored by zhangxiaoru

样式

@@ -61,7 +61,7 @@ exports.detail = (req, res, next) => { @@ -61,7 +61,7 @@ exports.detail = (req, res, next) => {
61 }; 61 };
62 62
63 exports.myRebeat = (req, res, next) => { 63 exports.myRebeat = (req, res, next) => {
64 - let uid = req.yoho.isApp, 64 + let uid = req.user.uid,
65 isApp = req.yoho.isApp; 65 isApp = req.yoho.isApp;
66 66
67 req.ctx(shareBuyModel).myRebeat(uid, isApp).then(data => { 67 req.ctx(shareBuyModel).myRebeat(uid, isApp).then(data => {
1 'use strict'; 1 'use strict';
  2 +require('activity/share-buy.page.css');
2 3
3 -let $ = require('yoho-jquery'); 4 +let $ = require('yoho-jquery'),
  5 + yoho = require('yoho-app');
4 6
5 let $news = $('.news'), 7 let $news = $('.news'),
6 newsLiL = $news.find('li').length, 8 newsLiL = $news.find('li').length,
7 newsHeight = 0; 9 newsHeight = 0;
8 10
9 - // tip = require('plugin/tip');  
10 -  
11 -require('activity/share-buy.page.css'); 11 +let shareData = {
  12 + title: '【有货】童鞋们一起来有货玩潮流,超级专享优惠福利速来领~',
  13 + link: location.href,
  14 + desc: '有货发福利啦!甄选好货等你来BUY~',
  15 + imgUrl: 'http://img11.static.yhbimg.com/yhb-img01/2017/05/10/16/011568a808f9b10e098b6542d3a8cb3d6b.png'
  16 +};
12 17
13 if ($('.share-buy-page').height() < $(window).height()) { 18 if ($('.share-buy-page').height() < $(window).height()) {
14 $('.share-buy-page').height($(window).height()); 19 $('.share-buy-page').height($(window).height());
15 } 20 }
16 21
  22 +if (yoho.isApp) {
  23 + yoho.invokeMethod('set.shareInfo', shareData);
  24 +}
  25 +
17 function Marquee() { 26 function Marquee() {
18 let diff; 27 let diff;
19 28
@@ -14,7 +14,7 @@ @@ -14,7 +14,7 @@
14 14
15 .coupon-list { 15 .coupon-list {
16 background-color: #d0021b; 16 background-color: #d0021b;
17 - margin: 115px 30px 0; 17 + margin: 0 30px;
18 padding: 10px 0 30px; 18 padding: 10px 0 30px;
19 } 19 }
20 20