Browse Source

v1.6.15 党群1+1列表标签改为后台配置;

feature/point
ZhaoTongYao 5 years ago
parent
commit
47ef00abd0
  1. 2
      pages/toRegister/toRegister.js
  2. 2
      subpages/associationNew/components/communityList/communityList.wxml
  3. 16
      subpages/associationNew/pages/associationlist/associationlist.js
  4. 2
      subpages/heart/pages/groupBuyList/groupBuyList.wxml

2
pages/toRegister/toRegister.js

@ -21,7 +21,7 @@ Page({
// }
// })
let that = this
const versionNum = "1.6.14"
const versionNum = "1.6.15"
api.getScanSwitch(versionNum).then(function (res) {
console.log(res.data)
let state = res.data.scanFlag

2
subpages/associationNew/components/communityList/communityList.wxml

@ -11,7 +11,7 @@
</view>
<view class="btn-container">
<button bindtap="navigateToAss"data-join="{{item.isJoin}}" data-code="{{item.id}}" class="community-add" plain='true' hover-class="hover-btn">
<view>{{item.groupName}}</view>
<view>进入{{item.relationCommunity}}社群</view>
</button>
</view>
</view>

16
subpages/associationNew/pages/associationlist/associationlist.js

@ -52,14 +52,14 @@ Page({
getPartyGroupList () {
getPartyGroupList().then(res => {
console.log("获取党群列表", res)
const groupNameList = ["进入玫瑰苑社群", "进入玫瑰湖社群", "进入锦水园社群", "进入锦祥园社群", "进入土楼社群", "进入子顺社群", "进入城西社群"]
res.data.forEach((item, index) => {
if (index <= 6) {
item.groupName = groupNameList[index]
} else {
item.groupName = "进入社群"
}
})
// const groupNameList = ["进入玫瑰苑社群", "进入玫瑰湖社群", "进入锦水园社群", "进入锦祥园社群", "进入土楼社群", "进入子顺社群", "进入城西社群"]
// res.data.forEach((item, index) => {
// if (index <= 6) {
// item.groupName = groupNameList[index]
// } else {
// item.groupName = "进入社群"
// }
// })
this.setData({
associationList: [...this.data.associationList, ...res.data],
loadMoreType: res.data.length === this.data.pageSize ? "loading": "none"

2
subpages/heart/pages/groupBuyList/groupBuyList.wxml

@ -1,6 +1,6 @@
<!--subpages/heart/pages/groupBuyList/groupBuyList.wxml-->
<view class="group-buy-list">
<view class="my-publish" bindtap="toNoticeNewList" wx:if="{{groupbuylist.length > 0}}">
<view class="my-publish" bindtap="toNoticeNewList">
<image src="../../images/my-groupbuy.png" />
</view>
<view class="item-list">

Loading…
Cancel
Save