1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495 |
- <template>
- <view>
- <view class="cmain" v-for="(item,index) in list">
- <view class="box order_detail">
- <view class="item">
- <text class="label">收购商品</text>
- <text class="desc omit">{{ item.goodsName }}</text>
- </view>
- <view class="item">
- <text class="label">商品价格</text>
- <text class="desc">¥ {{ item.resalePrice }}</text>
- </view>
- <view class="item">
- <text class="label">车牌号</text>
- <text class="desc">{{ item.veNo }}</text>
- </view>
- <view class="item">
- <text class="label">发布商</text>
- <text class="desc">{{ item.leaderName }}</text>
- </view>
- <view class="item">
- <text class="label">采购商</text>
- <text class="desc">{{ user.name }}</text>
- </view>
- <view class="item">
- <text class="label">发布时间</text>
- <text class="desc">{{ item.createTime }}</text>
- </view>
- <view class="item">
- <text class="label">互市区</text>
- <text class="desc">{{ item.tradeAreaName }}</text>
- </view>
- </view>
- </view>
- <view class="mfooter">
- <view class="flex">
- <view class="f">
- <button class="btn" @click="pay()">立即购买</button>
- </view>
- </view>
- </view>
- </view>
- </template>
- <script>
- export default {
- data() {
- return {
- user: this.getUser(),
- list: [],
- orderIds: ''
- };
- },
- onLoad(e) {
- if (e.orderId) {
- this.orderIds = e.orderId;
- this.http.request({
- url: '/level-two-server/app/TbOrders/getDetailById',
- method: 'POST',
- data: { ids: this.orderIds},
- success: res => {
- this.list = res.data.data;
- }
- });
- }
- },
- methods: {
- pay() {
- uni.showModal({
- title: '提示',
- content: '我已核对订单信息无误',
- success: res => {
- if (res.confirm) {
- this.http.request({
- url: '/level-two-server/app/TbOrders/purchaserBuy',
- method: 'POST',
- data: { ids: this.orderIds},
- success: res => {
- uni.redirectTo({url:'/pages/market/two/leader/success'});
- }
- });
- }
- }
- });
- }
- }
- };
- </script>
- <style lang="scss">
- page {
- background-color: $pg;
- }
- </style>
|