Browse Source

修改俱乐部bug

master
eternity 3 years ago
parent
commit
d72c461f34
  1. 18
      pages/club/createClub/createClub.js
  2. 8
      pages/club/createClub/createClub.wxml
  3. 13
      pages/club/manage/manage.js
  4. 7
      pages/club/manage/manage.wxml

18
pages/club/createClub/createClub.js

@ -427,7 +427,7 @@ setclub: function () {
var postData = {
clubName: that.data.clubName,
clubLogo:that.data.showList[0],
clubCircle:that.data.circleId,
clubCircle:'',
clubIntroduction:that.data.clubIntroduction,
clubPerson:that.data.clubPerson,
clubPhone:that.data.clubPhone,
@ -447,13 +447,15 @@ setclub: function () {
icon: 'none',
duration: 1000
})
}else if(that.data.tagList.length==0){
wx.showToast({
title: '主打项目必填',
icon: 'none',
duration: 1000
})
}else {
}
// else if(that.data.tagList.length==0){
// wx.showToast({
// title: '主打项目必填',
// icon: 'none',
// duration: 1000
// })
// }
else {
re.request(Api.creatClub(),postData, header).then((res) => {
console.log(res)
wx.showToast({

8
pages/club/createClub/createClub.wxml

@ -18,15 +18,15 @@
<text>俱乐部简介</text>
<textarea name="" placeholder="请输入俱乐部简介" bindinput="introInput"></textarea>
</view>
<view class="formlist">
<!-- <view class="formlist">
<text>所属圈子</text>
<picker bindchange="bindPickerChange" value="{{index}}" range-key="typeName" range="{{array}}" data-id='{{array[index].typeKey}}'>
<view class="picker">
{{array[index].typeName}}
</view>
</picker>
</view>
<view class="list">
</view> -->
<!-- <view class="list">
<view class="title">主打项目</view>
<view class="signbox">
<block wx:for="{{tagList}}" wx:key="tagList">
@ -38,7 +38,7 @@
<text>+</text>
</view>
</view>
</view>
</view> -->
<view class="formlist">
<text>俱乐部联系人</text>
<input type="text" placeholder="请输入联系人" bindinput="perpleInput"/>

13
pages/club/manage/manage.js

@ -87,8 +87,15 @@ Page({
if(this.uploaderList === undefined) {
this.uploaderList = []
}
this.uploaderList.push(queryval.clubBgimg);
console.log( this.uploaderList)
if(queryval.clubBgimg){
this.uploaderList.push(queryval.clubBgimg);
this.setData({
showUpload:false,
uploaderList: this.uploaderList,
})
}
console.log( this.uploaderList,'tupian',this.showUpload )
this.setData({
company:queryval,
})
@ -262,7 +269,7 @@ uploadcom: function (e) {
clubIntroduction:that.data.company.clubIntroduction,
clubLogo:that.data.old?that.data.company.clubLogo:that.data.showListcom[0],
clubName:that.data.company.clubName,
joinWay:that.data.joinWay,
joinWay:0,
payType:that.data.payType
};

7
pages/club/manage/manage.wxml

@ -35,14 +35,15 @@
</view>
<view class="formlist" wx:if="{{jurisdiction==1}}">
<text>认证状态</text>
<view wx:if="{{company.verifyType==1}}">个人认证</view>
<view wx:if="{{company.verifyType==0}}">未认证</view>
<view wx:elif="{{company.verifyType==1}}">个人认证</view>
<view wx:else>企业认证</view>
</view>
<view class="formlistarea">
<text>俱乐部简介</text>
<textarea name="" placeholder="请输入俱乐部简介" value="{{company.clubIntroduction}}" bindinput="textDetailChange"></textarea>
</view>
<view class="formlist" wx:if="{{jurisdiction<=2}}">
<!-- <view class="formlist" wx:if="{{jurisdiction<=2}}">
<text>设置加入方式</text>
<picker bindchange="bindPickerChange" value="{{index}}" range-key="name" range="{{array}}"
data-id='{{array[index].id}}'>
@ -50,7 +51,7 @@
{{array[index].name}}
</view>
</picker>
</view>
</view> -->
<!-- <view class="formlist">
<text>俱乐部消息</text>
<input type="text" placeholder="请输入俱乐部消息"/>

Loading…
Cancel
Save