Authored by 郝肖肖

'cps列表数字匹配'

... ... @@ -13,13 +13,13 @@ module.exports = class extends global.yoho.BaseModel {
this.invitecode(params),
this.checkApply(params)
]).then(res => {
let share = (_.get(res[0], 'data.context', '')).match(/(\d+)/g);
let share = (_.get(res[0], 'data.context', '')).match(/\>(\d+)</g);
let gainList = [
{
url: _.get(res[0], 'data.url', ''),
img: '//img11.static.yhbimg.com/yhb-img01/2018/07/09/10/010d4f185b1a155449966ef12d3ed41490.jpg?imageView2/{mode}/w/{width}/h/{height}', // eslint-disable-line
totalUser: _.get(share, '[0]', 0),
totalCouponNum: _.get(share, '[1]', 0),
totalUser: parseInt(_.get(share, '[0]', 0).replace('>', '').replace('<', ''), 10),
totalCouponNum: parseInt(_.get(share, '[1]', 0).replace('>', '').replace('<', ''), 10),
isShow: true
}, {
url: _.get(res[1], 'data.checkUrl', ''),
... ...
... ... @@ -2,7 +2,7 @@
{{#gainList}}
<div class="have-gain-item">
<div class="item-img">
<img src="{{image img 690 430}}" />
<a href="{{url}}"><img src="{{image img 690 430}}" /></a>
</div>
<div class="item-footer">
{{#if isShow}}
... ...
body {
background-color: #f0f0f0;
}
.have-gain-index {
background-color: #f0f0f0;
... ...