Commit 3bf270db authored by Steven杜宇's avatar Steven杜宇

// 我的

parent af5d6222
......@@ -256,7 +256,7 @@ class YHMyNewViewController: YHBaseViewController {
}
do {
let item = PersonalModuleItem(icon: "mine_item_activity", title: "兑换历史".local, type:.exchangeHistory)
let item = PersonalModuleItem(icon: "mine_item_exchange_history", title: "兑换历史".local, type:.exchangeHistory)
serviceGroupArr.append(item)
}
......
......@@ -60,7 +60,7 @@ class YHMyFunctionGroupItemCell: UICollectionViewCell {
iconImgView.snp.makeConstraints { make in
make.top.equalTo(20)
make.top.equalTo(0)
make.width.height.equalTo(24)
make.centerX.equalToSuperview()
}
......
......@@ -22,7 +22,7 @@ class YHMySectionGroupCell: UITableViewCell {
var groupArr: [PersonalModuleItem] = [] {
didSet {
let countPerRow = 4
let rowHeight = 90.0
let rowHeight = 70.0
var listHeight = rowHeight
if groupArr.count%countPerRow == 0 {
listHeight = rowHeight * Double(groupArr.count/countPerRow)
......@@ -101,7 +101,7 @@ class YHMySectionGroupCell: UITableViewCell {
make.height.equalTo(20)
}
collectionView.snp.makeConstraints { make in
make.top.equalTo(titleLabel.snp.bottom).offset(0)
make.top.equalTo(titleLabel.snp.bottom).offset(20)
make.bottom.left.right.equalToSuperview()
make.height.equalTo(90)
}
......@@ -121,7 +121,7 @@ extension YHMySectionGroupCell: UICollectionViewDelegate, UICollectionViewDataSo
func collectionView(_ collectionView: UICollectionView, layout collectionViewLayout: UICollectionViewLayout, sizeForItemAt indexPath: IndexPath) -> CGSize {
let width = floor((KScreenWidth-20.0*2.0)/4.0)
return CGSize(width: width, height: 90.0)
return CGSize(width: width, height: 70.0)
}
// 返回自定义单元格
......
{
"images" : [
{
"idiom" : "universal",
"scale" : "1x"
},
{
"filename" : "icon_兑换记录@2x.png",
"idiom" : "universal",
"scale" : "2x"
},
{
"filename" : "icon_兑换记录@3x.png",
"idiom" : "universal",
"scale" : "3x"
}
],
"info" : {
"author" : "xcode",
"version" : 1
}
}
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment