Commit 9ac60758 by 匡雅琴

UI走查样式修改

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