Authored by huangyi

上报修改

... ... @@ -148,7 +148,6 @@ Component({
},
submitFormId(e) {
console.log(e.detail);
return this.commonService.addWechatFormId({
formId: e.detail.formId,
uid: app.getUid() || 0,
... ...
// page/subPackage/pages/zeroSell/components/tabs.js
import CommonService from '../service/common'
const app = getApp();
Component({
/**
* 组件的属性列表
... ... @@ -73,11 +77,22 @@ Component({
this.setData({
tabs
});
},
submitFormId(e) {
if (app.getUid()) {
this.commonService.addWechatFormId({
formId: e.detail.formId,
uid: app.getUid() || 0,
openId: app.getOpenID() || '',
miniapp_type: app.getMiniappType()
})
}
}
},
ready() {
let nodes = this._getAllPane();
this.commonService = new CommonService();
this.setData({
nodes,
... ...
<!--page/subPackage/pages/zeroSell/components/tabs.wxml-->
<form bindsubmit='submitFormId' report-submit='true'>
<view class="tabs tabs-class">
<block wx:for="{{tabs}}" wx:key="{{index}}">
<block wx:if="{{item.active}}">
<button form-type="submit" class="tab active" data-index="{{index}}" bindtap="_onTap">{{item.name}}</button>
</block>
<view class="tabs tabs-class">
<block wx:for="{{tabs}}" wx:key="{{index}}">
<block wx:if="{{item.active}}">
<view class="tab active" data-index="{{index}}" bindtap="_onTap">{{item.name}}</view>
<block wx:else>
<button form-type="submit" class="tab" data-index="{{index}}" bindtap="_onTap">{{item.name}}</button>
</block>
</block>
<block wx:else>
<view class="tab" data-index="{{index}}" bindtap="_onTap">{{item.name}}</view>
</block>
</block>
</view>
</view>
</form>
<slot></slot>
\ No newline at end of file
... ...
... ... @@ -23,4 +23,7 @@
.active {
color: black;
}
button::after {
border: 0;
}
\ No newline at end of file
... ...