Commit 0339414d by 胡悦

Merge branch 'kuangyq_v2.10.0' of http://192.168.3.233:8090/saas/mini-program/ai…

…-card into kuangyq_v2.10.0
2 parents 2be79e27 6444ee2e
...@@ -14,9 +14,10 @@ ...@@ -14,9 +14,10 @@
<view class="tab-list"> <view class="tab-list">
<block wx:for="{{tabList}}" wx:key="index"> <block wx:for="{{tabList}}" wx:key="index">
<view class="tab-item {{curTabIndex === index ? 'tab-item-active' : '' }} {{index === 3 ? 'tab-apply' : ''}}" data-name="{{item}}" data-index="{{index}}" bindtap="introduce"> <view class="tab-item {{curTabIndex === index ? 'tab-item-active' : '' }} {{index === 3 ? 'tab-apply' : ''}}" data-name="{{item}}" data-index="{{index}}" bindtap="introduce">
<image wx:if="{{curTabIndex == index}}" class="bg-img" mode="widthFix" webp src="{{IMGURL}}home/icon-bg.png"></image>
<image wx:if="{{curTabIndex !== index}}" class="tab-img" mode="widthFix" webp src="{{IMGURL}}home/{{item.icon1}}.png"></image> <image wx:if="{{curTabIndex !== index}}" class="tab-img" mode="widthFix" webp src="{{IMGURL}}home/{{item.icon1}}.png"></image>
<image wx:else class="tab-img" mode="widthFix" webp src="{{IMGURL}}home/{{item.icon}}.png"></image> <image wx:else class="tab-img" mode="widthFix" webp src="{{IMGURL}}home/{{item.icon}}.png"></image>
<view>{{item.name}}</view> <view class="tab-text">{{item.name}}</view>
<!-- 合作申请hot --> <!-- 合作申请hot -->
<image wx:if="{{index === 3}}" class="icon-hot" webp src="{{IMGURL}}home/icon-hot.png"></image> <image wx:if="{{index === 3}}" class="icon-hot" webp src="{{IMGURL}}home/icon-hot.png"></image>
</view> </view>
...@@ -39,12 +40,11 @@ ...@@ -39,12 +40,11 @@
<template is="clue"></template> <template is="clue"></template>
</block> </block>
</block> </block>
</view> </view>
<!-- <view wx:if="{{!hasUserInfo}}" class="user-profile" bindtap="getUserProfile"></view> --> <view wx:if="{{!hasUserInfo}}" class="user-profile" bindtap="getUserProfile"></view>
<!-- 服务咨询 --> <!-- 服务咨询 -->
<view bindtap="goConsult"> <view bindtap="goConsult">
<image mode="widthFix" class="icon-consult" webp src="{{IMGURL}}home/custom.png"></image> <image mode="widthFix" class="icon-consult" webp src="{{IMGURL}}home/custom.png"></image>
</view> </view>
</view> </view>
\ No newline at end of file \ No newline at end of file
...@@ -22,7 +22,7 @@ page { ...@@ -22,7 +22,7 @@ page {
} }
.tab-item { .tab-item {
width: 160rpx; width: 220rpx;
height: 144rpx; height: 144rpx;
background: #F5F6FA; background: #F5F6FA;
border-radius: 8rpx; border-radius: 8rpx;
...@@ -35,10 +35,18 @@ page { ...@@ -35,10 +35,18 @@ page {
position: relative; position: relative;
} }
.bg-img {
width: 220rpx;
height: 144rpx;
position: absolute;
top: 0;
left: 0;
}
.tab-item-active { .tab-item-active {
color: #FFFFFF; color: #FFFFFF;
background-image: url("https://img02.glsx.com.cn/weapp/resource/miniprogram/ai-card/home/icon-bg.png"); /* background-image: url("https://img02.glsx.com.cn/weapp/resource/miniprogram/ai-card/home/icon-bg.png");
background-size: 100% 100%; background-size: 220rpx 144rpx; */
} }
.tab-apply { .tab-apply {
...@@ -58,7 +66,17 @@ page { ...@@ -58,7 +66,17 @@ page {
.tab-img { .tab-img {
width: 72rpx; width: 72rpx;
height: 72rpx; height: 72rpx;
margin-top: 16rpx; position: absolute;
top: 16rpx;
left: 50%;
transform: translateX(-50%);
}
.tab-text {
position: absolute;
top: 88rpx;
left: 50%;
transform: translateX(-50%);
} }
...@@ -69,7 +87,7 @@ page { ...@@ -69,7 +87,7 @@ page {
} }
.icon-consult { .icon-consult {
width: 80rpx; width: 90rpx;
position: absolute; position: absolute;
right: 6rpx; right: 6rpx;
bottom: 90rpx; bottom: 90rpx;
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!