Authored by 邱骏

form

... ... @@ -62,7 +62,7 @@ export default {
},
addQueue({uid, activityId, unionId}) {
return api.get({
return api.post({
url: '',
data: {
method: 'app.drawline.addQueue',
... ...
import detailModel from '../../../models/product/detail';
import formatImage from '../../../utils/formatImage';
import config from '../../../common/config';
import common from '../../../models/common';
import {
Actionsheet
} from '../../../vendors/zanui/index';
... ... @@ -367,12 +369,19 @@ Page(Object.assign({
});
}
},
assisShare() {
assisShare(e) {
if (!app.getUid()) {
this.goLogin();
return;
}
common.addWechatFormId({
formId: e.detail.formId,
uid: this.data.uid,
miniappType: app.getMiniappType(),
openId: app.getOpenID()
});
this.share();
},
assisAction() {
... ...
... ... @@ -43,10 +43,12 @@
<block wx:if="{{productSourceType === 1}}">
<action-bar wx:if="{{assisStatus === 1}}">
<form bindsubmit="assisShare" report-submit='true'>
<view class="bottom1-action">
<view class="action-btn" bindtap="assisShare">邀请好友助力获取限购码</view>
<button class="action-btn" formType="submit">邀请好友助力获取限购码</button>
<view class="help">?</view>
</view>
</form>
</action-bar>
<action-bar wx:elif="{{assisStatus === 2}}">
... ...