Authored by 邱骏

增加formId触发

... ... @@ -25,7 +25,7 @@ export default class yas {
self.language = res.language;
if (res.platform === 'devtools') {
self.devEnv = true; // 判断开发环境
// self.devEnv = true; // 判断开发环境
}
Object.assign(self.deviceInfo, {
... ...
... ... @@ -45,7 +45,7 @@ Page({
yas = new Yas(app);
let that = this;
yas.pageOpenReport();
setTimeout(function() {
that.getList(0, 1, 20, false);
}, 300);
... ... @@ -53,7 +53,7 @@ Page({
// this.getList(0, 1, 20, false);
},
onShow: function() {
yas.pageOpenReport();
},
onPullDownRefresh: function() {
this.setData({
... ...
... ... @@ -7,9 +7,11 @@ import wx from '../../utils/wx';
import {Actionsheet} from '../../vendors/zanui/index';
import {stringify} from '../../vendors/query-stringify';
import commonModel from '../../models/common';
import Yas from '../../common/yas';
let app = getApp();
let router = global.router;
let yas;
/**
* method=app.limitProduct.queryHelpInfo(助力信息)
... ... @@ -159,6 +161,9 @@ Page(Object.assign({
shareInfo: Object.assign(this.data.shareInfo, options)
});
}
yas = new Yas();
yas.pageOpenReport();
},
/**
... ...
... ... @@ -134,11 +134,13 @@
<text>您的排队号为: </text>
<text class='queue-num'>{{userInfo.sort}}</text>
</text>
<text class='share-text'>分享给小伙伴,中奖几率更高哦~</text>
<text class='share-text'>邀请小伙伴助力,中奖几率更高哦~</text>
<form bindsubmit='submitFormId' report-submit='true'>
<view class='msg-button-container'>
<view class='button-close' bindtap='closeMsg'>关闭</view>
<!-- <button class='button-share' open-type="share" plain='true'>去分享</button> -->
<button class='button-close' bindtap='closeMsg' plain='true' form-type='submit'>关闭</button>
<button class='button-share' open-type="share" plain='true' form-type='submit'>去分享</button>
</view>
</form>
</block>
</block>
<block wx:else><!--活动结束弹框-->
... ... @@ -152,7 +154,7 @@
</block>
</view>
<form bindsubmit='submitFormId' report-submit='true'>
<button wx:if="{{activityInfo.isBegin === 1 && userInfo.isDrawline}}" class='invite-button' hidden='{{hideInviteButton}}' form-type='submit' bindtap='inviteFriends'>
<button wx:if="{{activityInfo.isBegin === 1 && userInfo.isDrawline && !activityInfo.isEnd}}" class='invite-button' hidden='{{hideInviteButton}}' form-type='submit' bindtap='inviteFriends'>
邀请好友助力排队
</button>
</form>
... ...
... ... @@ -377,6 +377,10 @@ image {
z-index: 19;
}
.msg-container form {
width: 100%;
}
.msg-container .title {
width: 100%;
font-size: 36rpx;
... ... @@ -472,7 +476,7 @@ image {
}
.msg-button-container .button-share {
width: 50%;
width: 100%;
height: 100%;
margin: 0;
padding: 0;
... ...
... ... @@ -6,10 +6,12 @@ import helper from '../../utils/helper';
import wx from '../../utils/wx';
import {Actionsheet} from '../../vendors/zanui/index';
import commonModel from '../../models/common';
import Yas from '../../common/yas';
let app = getApp();
let router = global.router;
let yas;
/**
* method=app.limitProduct.queryHelpInfo(助力信息)
... ... @@ -78,6 +80,7 @@ Page(Object.assign({
let actId = options.actId;
let uid = app.getUid() || options.uid;
if (actId) {
this.setData({
actId: actId
... ... @@ -91,6 +94,10 @@ Page(Object.assign({
});
}
yas = new Yas();
yas.pageOpenReport();
},
/**
... ...
... ... @@ -33,7 +33,7 @@
"list": []
},
"miniprogram": {
"current": -1,
"current": 4,
"list": [
{
"id": 0,
... ... @@ -63,7 +63,7 @@
"id": -1,
"name": "限定商品排队",
"pathName": "pages/queue/index",
"query": "actId=366"
"query": "actId=376"
},
{
"id": 5,
... ...