123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104 |
- <template>
- <view style="padding: 30rpx;">
- <view class="box" v-for="(item,index) in list" :key="index">
- <view class="box_left">
- <image :src="item.imgurl"></image>
- </view>
- <view class="box_right">
- <view class="name">
- {{item.name}}
- </view>
- <view class="num">
- 数量:{{item.nums}}
- </view>
- </view>
- </view>
- <view class="beizhu" v-if="remark">
- <view class="beizhu_title">备注内容:</view>
- <view class="beizhu_cont">{{remark}}</view>
- </view>
- </view>
- </template>
- <script>
- export default {
- data() {
- return {
- remark: '',
- list: []
- }
- },
- onLoad(option) {
- this.list = JSON.parse(decodeURIComponent(option.item))
- this.remark = option.remark
- },
- methods: {
- }
- }
- </script>
- <style lang="scss" scoped>
- .beizhu {
- padding: 30rpx 35rpx;
- margin-bottom: 120rpx;
- background-color: #fff;
- color: #333;
- font-size: 28rpx;
- &_title {
- font-size: 32rpx;
- font-weight: bold;
- color: #333333;
- margin-bottom: 20rpx;
- }
- &_cont {
- background: #F8F8F8;
- border-radius: 24rpx;
- padding: 30rpx;
- }
- }
- .box {
- width: 100%;
- height: 204rpx;
- margin-bottom: 30rpx;
- background-color: #fff;
- padding: 30rpx;
- display: flex;
- align-items: center;
- &_left {
- width: 180rpx;
- height: 144rpx;
- border-radius: 16rpx;
- overflow: hidden;
- image {
- width: 180rpx;
- height: 144rpx;
- }
- }
- &_right {
- display: flex;
- flex-direction: column;
- justify-content: space-between;
- margin-left: 20rpx;
- height: 144rpx;
- padding: 20rpx 0;
- .name {
- font-size: 32rpx;
- font-weight: bold;
- color: #333333;
- }
- .num {
- font-size: 28rpx;
- color: #999999;
- }
- }
- }
- </style>
|