123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161 |
- <template>
- <view class="content">
- <view class="main " v-for="(item,index) in list">
- <view class="main-top">
- <image class="main-icon" src="../../static/icon/order.png" mode=""></image>
- <view class="main-font">
- {{item.name}}
- </view>
- </view>
- <view class="main-bottom flex">
- <view class="num">
- {{type==1?'剩余数量:':'可提交数量'}}
- </view>
- <view class="main-input red">
- 363
- </view>
- </view>
- <view class="xian"></view>
- <view class="main-bottom flex">
- <view class="num">
- {{type==1?'退回数量:':'数量'}}
- </view>
- <view class="main-input">
- <input type="number" v-model="item.number" placeholder="请填写数量">
- </view>
- </view>
- </view>
- <view class="btn">
- {{type==1?'确认退回':'确认提交'}}
- </view>
- <view class="" style="height: 80rpx;"></view>
- </view>
- </template>
- <script>
- export default {
- data() {
- return {
- type: '',
- list: [{
- name: '规格1(黄色,37码)',
- number: '',
- }, {
- name: '规格2(黄色,37码)',
- number: '',
- }, {
- name: '规格3(黄色,37码)',
- number: '',
- }, {
- name: '规格4(黄色,37码)',
- number: '',
- }, {
- name: '规格5(黄色,37码)',
- number: '',
- }, {
- name: '规格6(黄色,37码)',
- number: '',
- }, {
- name: '规格7(黄色,37码)',
- number: '',
- }, {
- name: '规格8(黄色,37码)',
- number: '',
- }],
- };
- },
- onLoad(option) {
- this.type = option.type
- if (option.type == 2) {
- uni.setNavigationBarTitle({
- title: '提交订单'
- });
- }
- },
- onShow() {},
- onReachBottom() {},
- onReady() {},
- methods: {}
- };
- </script>
- <style lang="scss">
- page,
- .content {
- min-height: 100%;
- height: auto;
- }
- .main {
- margin: 20rpx auto 0;
- padding: 0 20rpx;
- width: 700rpx;
- background: #FFFFFF;
- border: 2px solid #EAECED;
- box-shadow: 0rpx 0rpx 20rpx 0rpx rgba(50, 50, 52, 0.06);
- border-radius: 20rpx;
- .main-top {
- display: flex;
- align-items: center;
- padding: 16rpx 0;
- border-bottom: 1px solid #EAECED;
- .main-icon {
- width: 32rpx;
- height: 37rpx;
- }
- .main-font {
- margin-left: 10rpx;
- font-size: 30rpx;
- font-family: PingFang SC;
- font-weight: bold;
- color: #333333;
- }
- }
- .main-bottom {
- padding: 20rpx 0;
- .num {
- font-size: 28rpx;
- font-family: PingFang SC;
- font-weight: 500;
- color: #666666;
- }
- .main-input {
- text-align: right;
- font-size: 28rpx;
- font-family: PingFang SC;
- font-weight: 500;
- color: #999999;
- }
- .red {
- color: #FF4C4C;
- }
- }
- }
- .btn {
- text-align: center;
- margin: 100rpx auto 0;
- width: 622rpx;
- height: 85rpx;
- background: #069CFA;
- border-radius: 15rpx;
- line-height: 85rpx;
- font-size: 32rpx;
- font-family: PingFang SC;
- font-weight: bold;
- color: #FFFFFF;
- }
- .xian {
- width: 100%;
- height: 2rpx;
- background: #EAECED;
- }
- </style>
|