Commit c179229c by 张立顺

样式修改

1 parent 1ae3228f
...@@ -540,17 +540,17 @@ Page({ ...@@ -540,17 +540,17 @@ Page({
// console.log('selectIndex: ', selectIndex); // console.log('selectIndex: ', selectIndex);
typeList[index].selectIndex = selectIndex typeList[index].selectIndex = selectIndex
let params = typeList.reduce((obj, item, index) => { let params = typeList.reduce((obj, item, index) => {
console.log(' item: ', item); console.log(' item: ', item)
if (item['key']) { if (item['key']) {
// selectIndex = index == 2 ? selectIndex + 1 : selectIndex // selectIndex = index == 2 ? selectIndex + 1 : selectIndex
// console.log('selectIndex: ', selectIndex); // console.log('selectIndex: ', selectIndex);
let itemIndx = item.selectIndex let itemIndx = item.selectIndex
// console.log('itemIndx: ', itemIndx); // console.log('itemIndx: ', itemIndx);
if(index == 2){ // key: 'clueSource'
if (item['key'] == 'clueSource') {
itemIndx += 1 itemIndx += 1
} }
obj[item['key']] = (itemIndx == 2 || itemIndx == 3)? '' : itemIndx obj[item['key']] = itemIndx == 2 || itemIndx == 3 ? '' : itemIndx
} }
return obj return obj
}, {}) }, {})
...@@ -645,17 +645,17 @@ Page({ ...@@ -645,17 +645,17 @@ Page({
// }) // })
}, },
onPageScroll: (function () { onPageScroll: (function () {
let timer = null; let timer = null
return function (e) { return function (e) {
// console.log("在滚动"); // console.log("在滚动");
// 监听页面的滚动开始和结束 // 监听页面的滚动开始和结束
clearTimeout(timer); clearTimeout(timer)
timer = setTimeout(() => { timer = setTimeout(() => {
// console.log("滚动结束"); // console.log("滚动结束");
wx.$eventbus.emit('evt_page_scroll',{scrollTop:e.scrollTop}) wx.$eventbus.emit('evt_page_scroll', { scrollTop: e.scrollTop })
}, 500); }, 500)
}; }
})(), })(),
/** /**
* 生命周期函数--监听页面隐藏 * 生命周期函数--监听页面隐藏
*/ */
......
...@@ -5,13 +5,15 @@ page { ...@@ -5,13 +5,15 @@ page {
} }
.reclaim { .reclaim {
.header-wrap { .header-wrap {
position: sticky; position: sticky;
top: 0; top: 0;
width: 100%; width: 100%;
background-size: 100% 100%; background-size: 100% 100%;
margin-bottom: 32rpx; // margin-bottom: 32rpx;
z-index: 2; z-index: 2;
.header { .header {
position: absolute; position: absolute;
left: 0; left: 0;
...@@ -89,11 +91,19 @@ page { ...@@ -89,11 +91,19 @@ page {
.clue { .clue {
padding: 0px 10px 0; padding: 0px 10px 0;
background-color: #f2f3f7; background-color: #f2f3f7;
margin-top: -16rpx; // margin-top: -16rpx;
.types { .types {
margin-bottom: 8px; // margin-bottom: 8px;
box-sizing: border-box;
padding: 16rpx 0;
display: flex; display: flex;
align-items: center; align-items: center;
position: sticky;
top: 280rpx;
z-index: 2;
background-color: #f2f3f7;
margin-top: -32rpx;
.type { .type {
margin-left: 8px; margin-left: 8px;
...@@ -121,6 +131,9 @@ page { ...@@ -121,6 +131,9 @@ page {
} }
.list { .list {
box-sizing: border-box;
// padding-bottom: 8rpx;
.msg { .msg {
padding: 10px 16px 16px; padding: 10px 16px 16px;
margin-bottom: 8px; margin-bottom: 8px;
...@@ -289,16 +302,30 @@ page { ...@@ -289,16 +302,30 @@ page {
color: #393b3e; color: #393b3e;
} }
} }
.bottomTips {
text-align: center;
color: #393b3e;
font-size: 26rpx;
height: 60rpx;
line-height: 40rpx;
}
} }
} }
.scene { .scene {
margin: 0px 20prx 32rpx; // margin-top: 32rpx;
.scene-wrap{ // margin-left: 20rpx;
// margin-right: 20rpx;
// margin-bottom: 10rpx;
margin: 32rpx 32rpx 0;
.scene-wrap {
display: flex; display: flex;
} }
.item-wrap { .item-wrap {
margin-right: 8rpx; margin-right: 16rpx;
margin-bottom: 40rpx; margin-bottom: 40rpx;
position: relative; position: relative;
width: 172rpx; width: 172rpx;
...@@ -322,7 +349,7 @@ page { ...@@ -322,7 +349,7 @@ page {
// background-image: url("https://img02.glsx.com.cn/weapp/resource/saas/business-assistant/index/act.png"); // background-image: url("https://img02.glsx.com.cn/weapp/resource/saas/business-assistant/index/act.png");
// background-size: 100% 100%; // background-size: 100% 100%;
border: 1px solid var(--btnColor); border: 1px solid var(--btnColor);
box-shadow: 0 2rpx 4rpx 0 rgba(180,186,204,0.4); box-shadow: 0 2rpx 4rpx 0 rgba(180, 186, 204, 0.4);
&::after { &::after {
position: absolute; position: absolute;
...@@ -470,7 +497,7 @@ page { ...@@ -470,7 +497,7 @@ page {
.dialog-form { .dialog-form {
width: 100%; width: 100%;
height: 384rpx; height: 384rpx;
background-image: linear-gradient(179deg, rgba(240,247,255,0.30) 15%, #F0F7FF 100%); background-image: linear-gradient(179deg, rgba(240, 247, 255, 0.30) 15%, #F0F7FF 100%);
border-radius: 8rpx; border-radius: 8rpx;
padding: 32rpx; padding: 32rpx;
box-sizing: border-box; box-sizing: border-box;
...@@ -519,3 +546,8 @@ page { ...@@ -519,3 +546,8 @@ page {
margin-top: 40rpx; margin-top: 40rpx;
} }
} }
// .clue {
// flex: 1;
// overflow: hidden;
// }
\ No newline at end of file \ No newline at end of file
...@@ -54,6 +54,7 @@ ...@@ -54,6 +54,7 @@
<!-- 看线索内容 --> <!-- 看线索内容 -->
<view <view
class="clue" class="clue"
style="height: calc(100vh - {{headerHeight}}px)"
wx:if="{{tabIndx == 0 }}" wx:if="{{tabIndx == 0 }}"
hover-class="none" hover-class="none"
hover-stop-propagation="false"> hover-stop-propagation="false">
...@@ -238,6 +239,7 @@ ...@@ -238,6 +239,7 @@
</view> </view>
</view> </view>
</view> </view>
<view class="bottomTips" wx:if="{{clueList.length>8}}">到底啦!</view>
<view class="noDataImg" wx:if="{{!clueList.length}}"> <view class="noDataImg" wx:if="{{!clueList.length}}">
<image src="{{IMG_URL}}index/trEmpty.png " /> <image src="{{IMG_URL}}index/trEmpty.png " />
<text class="noDataTxt">没有符合条件的线索~</text> <text class="noDataTxt">没有符合条件的线索~</text>
......
...@@ -67,11 +67,11 @@ ...@@ -67,11 +67,11 @@
.active::after { .active::after {
position: absolute; position: absolute;
left: 50%; left: 50%;
bottom: -7px; bottom: -12px;
display: block; display: block;
content: ""; content: "";
width: 6px; width: 12px;
height: 6px; height: 12px;
border-bottom: 1px solid var(--btnColor); border-bottom: 1px solid var(--btnColor);
border-right: 1px solid var(--btnColor); border-right: 1px solid var(--btnColor);
transform: rotate(45deg) translateX(-50%); transform: rotate(45deg) translateX(-50%);
......
...@@ -53,7 +53,7 @@ ...@@ -53,7 +53,7 @@
} }
.list { .list {
height: calc(100%); height: calc(100% - 100rpx) !important;
} }
.search-box .search .text-center { .search-box .search .text-center {
......
...@@ -92,6 +92,7 @@ ...@@ -92,6 +92,7 @@
} }
&-bottom { &-bottom {
margin-top: 20rpx;
padding: 0 22rpx; padding: 0 22rpx;
.tip-blue { .tip-blue {
......
...@@ -19,9 +19,9 @@ ...@@ -19,9 +19,9 @@
.num { .num {
color: #323436; color: #323436;
font-family: MiSans-S0rpxibold; // font-family: MiSans-S0rpxibold;
font-weight: 600; font-weight: 600;
font-size: 26rpx; font-size: 30rpx;
margin-bottom: 10rpx; margin-bottom: 10rpx;
} }
...@@ -257,7 +257,7 @@ ...@@ -257,7 +257,7 @@
font-size: 24rpx; font-size: 24rpx;
color: #5C7097; color: #5C7097;
// margin: 50rpx 20rpx 0; // margin: 50rpx 20rpx 0;
margin-bottom: 50rpx; margin-bottom: 100rpx;
.linkImg { .linkImg {
width: 20rpx; width: 20rpx;
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!