123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237 |
- <template>
- <view class="content">
- <view class="main-item" v-for="(item,index) in list">
- <view class="main-top flex">
- <view class="orderId">
- 产品货号:{{item.orderId}}
- </view>
- <view class="type">
- {{item.type}}
- </view>
- </view>
- <view class="main-main">
- <view class="main-title">
- 产品名称
- </view>
- <view class="main-info flex">
- <view class="image-box" v-if="item.image.length >= 4">
- <view class="image" v-for="itm in 4">
- <image :src="item.image[itm-1]" mode=""></image>
- </view>
- </view>
- <view class="image-box" v-if="item.image.length < 4">
- <view class="image" v-for="itm in item.image">
- <image :src="itm" mode=""></image>
- </view>
- </view>
- <view class="more" @click="navTo('/pages/leader/image')">
- <view class="more-font">更多图片</view>
- <view class="more-icon">
- <image src="../../static/img/jt.png" mode=""></image>
- </view>
- </view>
- </view>
- <view class="mun">
- 总数量:<text>{{item.num}}</text>
- </view>
- </view>
- <view class="btn-box">
- <view class="btn1" @click="navTo('/pages/leader/image')">查看样图</view>
- <view class="btn" @click="navTo('/pages/leader/receive')">组长领单</view>
- <view class="btn" @click="navTo('/pages/leader/receive')">员工领单</view>
- </view>
- </view>
- </view>
- </template>
- <script>
- export default {
- data() {
- return {
- list: [{
- image: ['../../static/img/avatar.png', '../../static/img/avatar.png',
- '../../static/img/avatar.png', '../../static/img/avatar.png',
- '../../static/img/avatar.png'
- ],
- orderId: '9876543211025666',
- type: '下料',
- num: '285'
- },
- {
- image: ['../../static/img/avatar.png', '../../static/img/avatar.png',
- '../../static/img/avatar.png',
- ],
- orderId: '9876543211025777',
- type: '下料',
- num: '280'
- },
- {
- image: ['../../static/img/avatar.png', '../../static/img/avatar.png',
- '../../static/img/avatar.png',
- ],
- orderId: '9876543211025888',
- type: '下料',
- num: '275'
- },
- {
- image: ['../../static/img/avatar.png', '../../static/img/avatar.png',
- '../../static/img/avatar.png', '../../static/img/avatar.png',
- '../../static/img/avatar.png'
- ],
- orderId: '9876543211025999',
- type: '下料',
- num: '265'
- }
- ]
- };
- },
- onLoad() {},
- onShow() {},
- onReachBottom() {},
- onReady() {},
- methods: {
- navTo(url) {
- uni.navigateTo({
- url
- })
- }
- }
- };
- </script>
- <style lang="scss">
- page,
- .content {
- min-height: 100%;
- height: auto;
- }
- .main-item {
- width: 700rpx;
- background: #FFFFFF;
- border-radius: 24rpx;
- padding: 0 15rpx;
- margin: 20rpx auto 0;
- image {
- width: 100%;
- height: 100%;
- }
- .main-top {
- padding: 30rpx 14rpx;
- border-bottom: 1px solid #f5f5f5;
- .orderId {
- font-size: 28rpx;
- font-family: PingFang SC;
- font-weight: 500;
- color: #666666;
- }
- .type {
- font-size: 28rpx;
- font-family: PingFang SC;
- font-weight: bold;
- color: #FF2D2D;
- }
- }
- .main-main {
- padding: 20rpx 14rpx;
- border-bottom: 1px solid #f5f5f5;
- .main-title {
- font-size: 28rpx;
- font-family: PingFang SC;
- font-weight: 500;
- color: #363636;
- }
- .main-info {
- margin-top: 16rpx;
- .image-box {
- display: flex;
- align-items: center;
- .image {
- width: 110rpx;
- height: 110rpx;
- margin-right: 10rpx;
- }
- }
- .more {
- display: flex;
- align-items: center;
- line-height: 1;
- .more-font {
- font-size: 26rpx;
- font-family: PingFang SC;
- font-weight: 500;
- color: #333333;
- margin-right: 10rpx;
- }
- .more-icon {
- display: inline-flex;
- width: 12rpx;
- height: 22rpx;
- }
- }
- }
- .mun {
- margin-top: 24rpx;
- font-size: 28rpx;
- font-family: PingFang SC;
- font-weight: 500;
- color: #333333;
- text {
- color: #FF4C4C;
- }
- }
- }
- .btn-box {
- padding: 20rpx 14rpx;
- display: flex;
- justify-content: flex-end;
- align-items: center;
- .btn1 {
- width: 144rpx;
- height: 55rpx;
- border: 2px solid #EBEBEB;
- border-radius: 28rpx;
- display: flex;
- justify-content: center;
- align-items: center;
- font-size: 26rpx;
- font-family: PingFang SC;
- font-weight: 500;
- color: #999999;
- line-height: 24rpx;
- }
- .btn {
- width: 144rpx;
- height: 55rpx;
- border: 2px solid #FF2D2D;
- border-radius: 28rpx;
- display: flex;
- justify-content: center;
- align-items: center;
- font-size: 26rpx;
- font-family: PingFang SC;
- font-weight: 500;
- color: #FF2D2D;
- line-height: 24rpx;
- margin-left: 14rpx;
- }
- }
- }
- </style>
|