123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155 |
- <template>
- <view class="goldenBean">
- <view class="title">
- <image src="@/static/img/list1.png"></image>
- <view class="title-t"> 金豆专区 </view>
- <text class="about">超值体验</text>
- </view>
- <view class="box">
- <view class="header">
- <view class="left">
- <view class="title">
- 购买商品赠送金豆
- </view>
- <view class="about">
- 买到就是赚到
- </view>
- </view>
- <view class="right">
- <image src="@/static/img/right.png" @click="navto('/pages/product/exchange')"></image>
- </view>
- </view>
- <view class="footer">
- <view class="list">
- <view class="item" v-for="d in data">
- <view class="img">
- <image :src="d.image" mode=""></image>
- </view>
- <view class="name nowarp" :title='d.store_name'>
- {{ d.store_name }}
- </view>
- <view class="price">
- ¥{{ d.price }}
- </view>
- </view>
- </view>
- </view>
- </view>
-
- </view>
- </template>
- <script>
- export default {
- props: ['data'],
- mounted() {
- console.log(this.data);
- },
- methods: {
- navto(url) {
- uni.navigateTo({
- url: url
- });
- }
- }
- }
- </script>
- <style lang="scss" scoped>
- $grey: #95A0B1;
- $text: #333333;
- $red: #FF4C4C;
- // 金豆专区
- .goldenBean {
- font-family: PingFang-SC-Bold;
- margin-top: 20rpx;
- padding: 20rpx;
- background-color: #fff;
-
- .title {
- display: flex;
- line-height: 40rpx;
- .title-t {
- color: $text;
- font-weight: bold;
- margin: 0 20rpx;
- font-size: 34rpx;
- }
- .about {
- font-size: 24rpx;
- color: $grey;
- }
- image {
- width: 40rpx;
- height: 40rpx;
- }
- }
- .box {
- margin: 20rpx 0;
- border-radius: 10rpx;
- overflow: hidden;
- .header {
- padding:20rpx;
- background: linear-gradient(90deg, #FF8F44 0%, #FFBD70 100%);
- padding-bottom: 80rpx;
- width: 100%;
- display: flex;
- justify-content: space-between;
- color: #fff;
- .left {
- line-height: 40rpx;
- .title {
- font-size: 32rpx;
- }
- .about {
- opacity: 0.9;
- font-size: 24rpx;
- }
- }
- .right {
- margin: auto 0;
- image {
- width: 40rpx;
- height: 40rpx;
- }
- }
- }
- .footer {
- height: 300rpx;
- background-color: $page-color-base;
- padding: 20rpx;
- margin-bottom: -50rpx;
- .list {
- display: flex;
- overflow: auto;
- border-radius: 10rpx;
- position: relative;
- top: -90rpx;
- background-color: #fff;
- .item {
- padding: 30rpx;
- border-right: solid 1rpx $page-color-base;
- .name {
- font-size: 24rpx;
- color: #3F3F3F;
- width: 150rpx;
- overflow: hidden;
- text-overflow:ellipsis;
- }
- .price {
- font-size: 28rpx;
- color: $red;
- font-weight: bold;
- }
- .img {
- image {
- width: 150rpx;
- height: 150rpx;
- }
- }
- }
- }
- }
- }
- }
- </style>
|