Commit 9ac60758 by 匡雅琴

UI走查样式修改

1 parent dae2876e
......@@ -15,5 +15,5 @@
background-image: linear-gradient(90deg, #61a5ff00 0%, #2699fd 100%);
border-radius: 6rpx;
position: absolute;
bottom: 4rpx;
bottom: -4rpx;
}
......@@ -3,14 +3,11 @@
<view class="bg-box"></view>
<view class="text">省钱攻略</view>
</view>
<view class="img-top-box"></view>
<view class="img-box">
<view wx:for="{{list}}" wx:key="index" class="img-item-box" data-id="{{item.id}}" bind:tap="selectStrategy">
<image webp src="{{item.strategyImg}}" class="saving-img"></image>
<view class="viewer">{{item.viewAmount}}人浏览</view>
</view>
<!-- <view class="img-item-box">
<glsx-image webp src="home/saving_2.png" class="saving-img"></glsx-image>
<view class="viewer">9520人浏览</view>
</view> -->
</view>
</view>
\ No newline at end of file
.save-title-box {
.saving-tips-box {
position: relative;
}
......@@ -28,15 +28,16 @@
.saving-img {
width: 690rpx;
height: 388rpx;
border-radius: 12rpx;
-webkit-border-radius: 12rpx;
-moz-border-radius: 12rpx;
-ms-border-radius: 12rpx;
-o-border-radius: 12rpx;
border-radius: 8rpx;
-webkit-border-radius: 8rpx;
-moz-border-radius: 8rpx;
-ms-border-radius: 8rpx;
-o-border-radius: 8rpx;
}
.img-box {
padding: 30rpx;
.img-top-box {
/* padding: 30rpx; */
height: 68rpx;
background-image: linear-gradient(180deg, #d6e8fe 0%, #f8f8f8 100%);
border-radius: 0 16rpx 0 0;
-webkit-border-radius: 0 16rpx 0 0;
......@@ -45,6 +46,12 @@
-o-border-radius: 0 16rpx 0 0;
}
.img-box {
padding: 30rpx;
position: absolute;
top: 64rpx;
}
.img-item-box {
position: relative;
margin-bottom: 30rpx;
......@@ -54,7 +61,7 @@
position: absolute;
top: 20rpx;
right: 28rpx;
width: 146rpx;
/* width: 146rpx; */
height: 36rpx;
opacity: 0.3;
background: #000000;
......@@ -62,6 +69,6 @@
font-size: 24rpx;
color: #ffffff;
line-height: 36rpx;
padding: 0 4rpx;
padding: 0 12rpx;
text-align: center;
}
......@@ -25,6 +25,7 @@
.menu-item-icon {
width: 72rpx;
height: 72rpx;
border-radius: 72rpx;
}
.menu-item-text {
......@@ -33,6 +34,9 @@
color: #282829;
text-align: center;
margin-top: 12rpx;
overflow: hidden;
white-space: nowrap;
text-overflow: ellipsis;
}
.menu-item {
......
......@@ -25,6 +25,7 @@
.menu-item-icon {
width: 72rpx;
height: 72rpx;
border-radius: 72rpx;
}
.menu-item-text {
......@@ -33,6 +34,9 @@
color: #282829;
text-align: center;
margin-top: 12rpx;
overflow: hidden;
white-space: nowrap;
text-overflow: ellipsis;
}
.menu-item {
position: relative;
......
......@@ -11,7 +11,7 @@
display: flex;
justify-content: space-between;
box-sizing: border-box;
padding: 32rpx 32rpx 0 32rpx;
padding: 24rpx 20rpx 0 20rpx;
}
.header_icon {
......@@ -24,7 +24,7 @@
.header_desc {
width: calc(100% - 82rpx);
box-sizing: border-box;
padding-left: 22rpx;
padding-left: 16rpx;
}
.desc_title_wrap {
......@@ -44,7 +44,7 @@
display: flex;
align-items: center;
justify-content: space-between;
margin-top: 8rpx;
margin-top: 4rpx;
width: 100%;
}
......@@ -71,11 +71,11 @@
}
.address_icon {
width: 40rpx;
height: 40rpx;
width: 28rpx;
height: 28rpx;
background: linear-gradient(129deg, #FFC08B 0%, #FA8A59 100%);
border-radius: 50%;
margin-left: 12rpx;
margin-left: 8rpx;
}
.hide-text {
......@@ -85,19 +85,23 @@
}
.latest_sign {
width: 56rpx;
height: 28rpx;
line-height: 28rpx;
border-radius: 4rpx;
border: 1rpx solid #EC3C1F;
border-radius: 4rpx;
border: 2rpx solid #FC5B32;
padding: 6rpx 8rpx;
font-size: 20rpx;
font-weight: 400;
color: #FC5B32;
color: #EC3C1F;
text-align: center;
margin-left: 14rpx;
}
.scroll_wrap {
margin-top: 26rpx;
box-sizing: border-box;
padding: 0 2rpx 20rpx 32rpx;
padding: 0 20rpx 24rpx 20rpx;
overflow: hidden;
white-space: nowrap;
vertical-align: top;
......@@ -139,7 +143,7 @@
.item_banner {
width: 256rpx;
height: 158rpx;
border-radius: 16rpx;
border-radius: 8rpx;
}
.item_text {
......
import { env } from '~/api/env/index'
import {
env
} from '~/api/env/index'
import mapApi from '~/utils/mapapi/mapapi'
const app = getApp()
Page({
......@@ -16,14 +17,9 @@ Page({
},
loadingMore: false,
loadOver: false,
commodityFinish: false
},
properties: {},
onLoad() {
this.getAllMerchantList()
let freecard = wx.p.storage.get('bindInfo')
......@@ -88,6 +84,9 @@ Page({
wx.p.api.equityApi.getLasteCommodity(para).then(res => {
if (!res?.data?.length) {
app.globalData.goodsLoaded = true
this.setData({
commodityFinish: true
})
return
}
app.globalData.goodsPageParam.pageSize = res.pageOffset
......@@ -115,9 +114,14 @@ Page({
app.globalData.goodsCommodityList = []
app.globalData.goodsPageParam.pageSize = 0
app.globalData.goodsLoaded = false
let { currentAddress } = this.data
let {
currentAddress
} = this.data
if (!currentAddress) return
const { lat, lng } = currentAddress.location
const {
lat,
lng
} = currentAddress.location
this.toGetCommodity(lat, lng, false, 1)
},
onReachBottom() {
......@@ -147,7 +151,9 @@ Page({
wx.p.api.equityApi.getAllEquity(para).then(res => {
const carList = res.carServiceList
const equityList = res.goodsServiceList
let foodMenuList = [], funMenuList = [], carMenuList = []
let foodMenuList = [],
funMenuList = [],
carMenuList = []
const needShowEquity = ['星巴克', '瑞幸咖啡', '奈雪の茶', '麦当劳', '肯德基']
const needShowEquity2 = ['猫眼电影', '爱奇艺', '优酷', '网易云音乐', '喜马拉雅']
const needShowEquity3 = ['高德打车', '曹操出行']
......@@ -231,7 +237,9 @@ Page({
})
},
toPluginPage() {
wx.p.router.go('/packagePlugin/pages/index/index', { notIntercept: true })
wx.p.router.go('/packagePlugin/pages/index/index', {
notIntercept: true
})
},
async getAddressInfo() {
let addressInfo = wx.p.storage.get('address_info')
......
......@@ -31,7 +31,7 @@
.save-money-order-text-box {
position: absolute;
top: 48rpx;
top: 54rpx;
right: 22rpx;
width: 152rpx;
height: 68rpx;
......@@ -101,4 +101,12 @@
display: flex;
align-items: center;
justify-content: center;
}
.commodity_list_finish {
font-weight: 400;
font-size: 24rpx;
color: #999999;
text-align: center;
line-height: 36rpx;
}
\ No newline at end of file
......@@ -31,12 +31,12 @@
<block wx:for="{{commodityList}}" wx:key="index">
<commodityItem address="{{currentAddress}}" businessInfo="{{item}}" />
</block>
<view wx:if="{{commodityFinish}}" class="commodity_list_finish">到底啦~</view>
</view>
<view wx:if="{{unauthorized}}" class="reLocation_wrap flex_cc">
<image webp class="loca_icon" webp src="{{IMGURL}}equity/location_icon.png?v={{img_version}}" />
<view bind:tap="relocation" class="loca_text">定位一下,发现附近优惠</view>
</view>
<view style="height:400rpx"></view>
</view>
</view>
</view>
......
......@@ -10,31 +10,33 @@
.strategy-box {
padding: 30rpx;
background: #F8F8F8;
.strategy-item {
width: 690rpx;
background: #ffffff;
border-radius: 8rpx;
margin-bottom: 30rpx;
.strategy-img {
height: 388rpx;
border-radius: 12rpx 12rpx 0 0;
-webkit-border-radius: 12rpx 12rpx 0 0;
-moz-border-radius: 12rpx 12rpx 0 0;
-ms-border-radius: 12rpx 12rpx 0 0;
-o-border-radius: 12rpx 12rpx 0 0;
}
border-radius: 8rpx 8rpx 0 0;
}
.strategy-detail {
// height: 140rpx;
padding: 20rpx;
&-title {
font-weight: 500;
font-size: 32rpx;
color: #333333;
}
&-bottom {
// display: flex;
// justify-content: space-between;
margin-top: 14rpx;
.tag {
width: 128rpx;
height: 36rpx;
......@@ -45,6 +47,7 @@
background-image: linear-gradient(107deg, #70b2ff 0%, #6db0ff 100%);
border-radius: 4rpx;
}
.viewer {
font-weight: 400;
font-size: 24rpx;
......@@ -55,4 +58,4 @@
}
}
}
}
}
\ No newline at end of file
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!