...
|
...
|
@@ -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', ''),
|
...
|
...
|
|