Authored by 邱骏

form

@@ -62,7 +62,7 @@ export default { @@ -62,7 +62,7 @@ export default {
62 }, 62 },
63 63
64 addQueue({uid, activityId, unionId}) { 64 addQueue({uid, activityId, unionId}) {
65 - return api.get({ 65 + return api.post({
66 url: '', 66 url: '',
67 data: { 67 data: {
68 method: 'app.drawline.addQueue', 68 method: 'app.drawline.addQueue',
1 import detailModel from '../../../models/product/detail'; 1 import detailModel from '../../../models/product/detail';
2 import formatImage from '../../../utils/formatImage'; 2 import formatImage from '../../../utils/formatImage';
3 import config from '../../../common/config'; 3 import config from '../../../common/config';
  4 +import common from '../../../models/common';
  5 +
4 import { 6 import {
5 Actionsheet 7 Actionsheet
6 } from '../../../vendors/zanui/index'; 8 } from '../../../vendors/zanui/index';
@@ -367,12 +369,19 @@ Page(Object.assign({ @@ -367,12 +369,19 @@ Page(Object.assign({
367 }); 369 });
368 } 370 }
369 }, 371 },
370 - assisShare() { 372 + assisShare(e) {
371 if (!app.getUid()) { 373 if (!app.getUid()) {
372 this.goLogin(); 374 this.goLogin();
373 return; 375 return;
374 } 376 }
375 377
  378 + common.addWechatFormId({
  379 + formId: e.detail.formId,
  380 + uid: this.data.uid,
  381 + miniappType: app.getMiniappType(),
  382 + openId: app.getOpenID()
  383 + });
  384 +
376 this.share(); 385 this.share();
377 }, 386 },
378 assisAction() { 387 assisAction() {
@@ -43,10 +43,12 @@ @@ -43,10 +43,12 @@
43 <block wx:if="{{productSourceType === 1}}"> 43 <block wx:if="{{productSourceType === 1}}">
44 44
45 <action-bar wx:if="{{assisStatus === 1}}"> 45 <action-bar wx:if="{{assisStatus === 1}}">
  46 + <form bindsubmit="assisShare" report-submit='true'>
46 <view class="bottom1-action"> 47 <view class="bottom1-action">
47 - <view class="action-btn" bindtap="assisShare">邀请好友助力获取限购码</view> 48 + <button class="action-btn" formType="submit">邀请好友助力获取限购码</button>
48 <view class="help">?</view> 49 <view class="help">?</view>
49 </view> 50 </view>
  51 + </form>
50 </action-bar> 52 </action-bar>
51 53
52 <action-bar wx:elif="{{assisStatus === 2}}"> 54 <action-bar wx:elif="{{assisStatus === 2}}">