123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247 |
- <template>
- <view class="content">
- <view class="top-search flex">
- <view class="search-box flex">
- <image class="search-icon" src="../../static/icon/sousuo.png" mode=""></image>
- <view class="search-font"><input type="text" placeholder="输入关键词搜索" v-model="productname" /></view>
- </view>
- <view class="search" @click="clickSearch()">
- 搜索
- </view>
- </view>
- <view class="shoplist">
- <view class="shoplist-item flex" v-for="(item,index) in 10" @click="navTo('/pages/shoping/shopDetail')">
- <image class="shoplist-image" src="../../static/icon/hym.png" mode=""></image>
- <view class="shoplist-info">
- <view class="info-top">
- <view class="info-title">
- 满园春养发馆(1号店)
- </view>
- <view class="info-address">
- <image class="address-icon" src="../../static/icon/dw.png" mode=""></image>
- <view class="address-font">距离0.3KM</view>
- </view>
- </view>
- <view class="info-tip">椒江区市府大道200号</view>
- <view class="info-bottom">
- <view class="info-bleft flex">
- <view class="infobf-item">免费茶点</view>
- <view class="infobf-item">不接受退款</view>
- </view>
- <view class="info-bright flex">
- <image class="info-icon" src="../../static/icon/call.png" mode=""></image>
- <image class="info-icon" src="../../static/icon/dh.png" mode=""></image>
- </view>
- </view>
- <view class="bc">
- <text class="h">惠</text>
- <text class="dw">¥</text>
- <text class="xian">25</text>
- <text class="yuan">¥99</text>
- <text> 头皮护理|深层清洁</text>
- </view>
- </view>
- </view>
- </view>
- </view>
- </template>
- <script>
- export default {
- data() {
- return {};
- },
- onLoad() {},
- onShow() {},
- onReachBottom() {},
- onReady() {},
- methods: {
- navTo(url) {
- uni.navigateTo({
- url
- })
- }
- }
- };
- </script>
- <style lang="scss">
- page,
- .content {
- min-height: 100%;
- height: auto;
- }
- .top-search {
- width: 750rpx;
- height: 100rpx;
- background: #FFFFFF;
- padding: 20rpx 32rpx 16rpx;
- .search-box {
- justify-content: center;
- width: 610rpx;
- height: 64rpx;
- background: #F6F6F6;
- border-radius: 10rpx;
- .search-icon {
- width: 32rpx;
- height: 32rpx;
- }
- .search-font {
- margin-left: 20rpx;
- font-size: 26rpx;
- font-family: PingFang SC;
- font-weight: 500;
- color: #666666;
- }
- }
- .search {
- font-size: 28rpx;
- font-family: PingFang SC;
- font-weight: 500;
- color: #666666;
- }
- }
- .shoplist-item {
- margin: 20rpx auto 0;
- width: 700rpx;
- background: #FFFFFF;
- box-shadow: 0rpx 0rpx 27rpx 0rpx rgba(50, 50, 52, 0.06);
- border-radius: 20rpx;
- padding: 26rpx 22rpx 22rpx;
- align-items: flex-start;
- .shoplist-image {
- flex-shrink: 0;
- width: 150rpx;
- height: 150rpx;
- border-radius: 10rpx;
- }
- .shoplist-info {
- margin-left: 18rpx;
- width: 100%;
- line-height: 1;
- .info-top {
- display: flex;
- justify-content: space-between;
- align-items: center;
- .info-title {
- font-size: 32rpx;
- font-family: PingFang SC;
- font-weight: bold;
- color: #333333;
- }
- .info-address {
- display: flex;
- align-items: center;
- .address-icon {
- width: 20rpx;
- height: 28rpx;
- }
- .address-font {
- font-size: 22rpx;
- font-family: PingFang SC;
- font-weight: 500;
- color: #666666;
- }
- }
- }
- .info-tip {
- margin-top: 18rpx;
- font-size: 24rpx;
- font-family: PingFang SC;
- font-weight: 500;
- color: #666666;
- }
- .info-bottom {
- margin-top: 32rpx;
- display: flex;
- justify-content: space-between;
- align-items: flex-end;
- padding-bottom: 10rpx;
- border-bottom: 1px solid #EAECED;
- .info-bleft {
- justify-content: flex-start;
- .infobf-item {
- margin-right: 10rpx;
- background: #FCF3F0;
- border-radius: 5rpx;
- padding: 8rpx 10rpx;
- font-size: 18rpx;
- font-family: PingFang SC;
- font-weight: 500;
- color: #FF440D;
- }
- }
- .info-bright {
- justify-content: flex-end;
- .info-icon {
- margin-left: 10rpx;
- width: 46rpx;
- height: 46rpx;
- }
- }
- }
- .bc {
- margin-top: 10rpx;
- font-size: 23rpx;
- font-family: PingFang SC;
- font-weight: bold;
- color: #333333;
- .h {
- padding: 6rpx;
- background: linear-gradient(-48deg, #FFA30B, #FFD158);
- border-radius: 13rpx;
- font-size: 21rpx;
- font-family: PingFang SC;
- font-weight: 500;
- color: #FFFFFF;
- }
- .dw {
- font-size: 17rpx;
- font-family: PingFang SC;
- font-weight: bold;
- color: #FF4C4C;
- }
- .xian {
- font-size: 27rpx;
- font-family: PingFang SC;
- font-weight: bold;
- color: #FF4C4C;
- }
- .yuan {
- display: inline-block;
- margin-right: 10rpx;
- font-size: 24rpx;
- font-family: PingFang SC;
- font-weight: 500;
- text-decoration: line-through;
- color: #999999;
- }
- }
- }
- }
- </style>
|