Authored by lea guo

yohood原价购 分享

... ... @@ -94,7 +94,7 @@ Component({
});
this.setData({
remainingTime: fomartTimes.join(':') || '00:00:00',
isStart: fomartTimes.length === 0 && this.properties.status === 1,
isStart: fomartTimes.join('') === "000000" && this.properties.status === 1,
});
}, 1000);
},
... ...
... ... @@ -14,7 +14,7 @@
</form>
</block>
<block wx:elif="{{status === 3}}">
<view class="action-item ok" bindtap="goShare">邀请好友参加,增加中奖率</view>
<button class="action-item ok" bindtap="goShare" open-type="share">邀请好友参加,增加中奖率</button>
</block>
<block wx:elif="{{status >= 3}}">
<view class="action-item over">已结束</view>
... ... @@ -42,7 +42,7 @@
<view class="code">{{code}}</view>
</view>
<form bindsubmit='submitFormId' report-submit='true'>
<button class="share" form-type="submit" bindtap="hadJoinToShare">分享一下,中奖概率立马double</button>
<button open-type="share" class="share" form-type="submit" bindtap="hadJoinToShare">分享一下,中奖概率立马double</button>
</form>
<view class="share-desc">1个好友参加=1个抽奖码=中奖几率UP!</view>
</view>
... ...
... ... @@ -43,7 +43,7 @@ Component({
const formatTimeList = this.formatCountDown();
this.setData({
formatTimeList: formatTimeList,
isEnd: formatTimeList.length === 0 && this.properties.product.status === 2,
isEnd: formatTimeList.join('') === "000000" && this.properties.product.status === 2,
});
}, 1000);
},
... ...
... ... @@ -7,7 +7,7 @@ import {
openAuthorizeSettings,
} from '../../utils/login';
import { getQRCodeSource } from '../../libs/miniQRCodeRoute';
import { Actionsheet, Toast } from '../../vendors/zanui/index';
import { Toast } from '../../vendors/zanui/index';
import router from './router/router';
import { wrapperName } from './helper';
import { formatImageUrl } from '../../utils/util';
... ... @@ -73,30 +73,6 @@ Page(
loading: false,
page: 1,
codeList: [],
actionsheet: {
componentId: 'shareActionSheet',
show: false,
closeOnClickOverlay: true,
cancelText: '取消',
isNewShareStyle: true,
// unionUserImageUrl: 'http://img12.static.yhbimg.com/sns/2018/08/02/15/029b6acc4f8bc0620ecd7ec2133fcf900c.png',
unionUserImageUrl: './images/share_tip@2x.png',
actions: [
{
name: '分享给好友',
className: 'action-class',
loading: false,
openType: 'share',
image_src: '../../images/share_wechat@2x.png',
},
{
name: '生成海报分享',
className: 'action-class',
loading: false,
image_src: '../../images/share_wxpeng@2x.png',
},
],
},
animation: null,
shareFlag: false,
notice: {},
... ... @@ -337,19 +313,10 @@ Page(
this._getMineCode(product.id);
let snapData = {
product_name: product.name,
default_image: product.cover_img,
product_price: product.price,
product_qrCode: qrcode,
};
this.setData({
product: product,
actPrizeId: this.data.actPrizeId || product.id || '',
myPrizeCount: r1.code === 200 ? r1.data.myCodeNum : 0,
snapData,
notice: JSON.parse(product.notice || '{}'),
lottery: JSON.parse(product.lottery_info || '{}'),
});
... ... @@ -675,7 +642,6 @@ Page(
}
},
},
Actionsheet,
Toast,
),
);
... ...
... ... @@ -43,8 +43,6 @@
<action-bar activity-status="{{product.status}}" start-time="{{product.start_time}}" is-login="{{isLogin}}" status="{{actionStatus}}" num="{{myPrizeCount}}" share-uid="{{shareUid}}" act-id="{{actPrizeId}}" bindchangeStatus="changeActionStatus" bindshare="share" copyText="{{lottery.miniappCopy}}" text="{{lottery.miniappTip}}" bindgaincodesuccess="reportSuccess" type="{{lottery.miniappType}}"></action-bar>
</view>
<view class="foot"></view>
<import src="../../vendors/zanui/actionsheet/index.wxml" />
<template is="zan-actionsheet" data="{{...actionsheet}}" />
<import src="../../vendors/zanui/toast/index.wxml" />
<template is="zan-toast" data="{{zanToast}}" />
<import src="../../vendors/toast/wetoast.wxml" />
... ...