quanwei
2 days ago 04102f7237efefa744090ed7c25f7b5d0807b679
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
<template>
    <view class="p30">
        <view class="title p30 bg-white f30 lh200 radius8">>
            <view>项目:
              <text>{{ item.project_name }}</text>
            </view>
            <view>支付费用:¥{{ detail.pay_price }}</view>
            <view v-if="detail.settle_time">完成时间:{{ detail.settle_time }}</view>
            <view>完成图片:</view>
            <view v-for="(item, index) in img_list2" :key="index">
                 <image :src="item.file_path" mode="aspectFit"></image>
            </view>
            <view>留言:<text v-if="detail.remark!= null">{{ detail.remark }}</text></view>
            <view>买家图片:</view> 
            <view v-for="(item, index) in img_list" :key="index">
                 <image :src="item.file_path" mode="aspectFit"></image>
            </view>
            <view>买家留言:<text v-if="detail.content!= null">{{ detail.content }}</text></view>
            <view>备注:<text v-if="detail.message!= null">{{ detail.message }}</text></view>
        
 
        </view>
    
        </view>
        <shopTabBar></shopTabBar>
    </view>
</template>
 
<script>
    import utils from '@/common/utils.js';
    export default {
        data() {
            return {
                detail: '',,
            }
        },
        onLoad(e) {
            /*id*/
            this.id = e.id;
        },
        mounted(){
            uni.showLoading({
                title: '加载中'
            });
            this.getData();
        },
        methods: {
            getData(){
                let self = this;
                let id = self.id;
                self._get('plus.release.order/detail', {id: id}, function (res)
                {
                    self.detail= res.data.detail;
                    uni.hideLoading();
                });
            },
            bindDateChange(e){
                let self = this;
                var booking_time = e.detail.value;
                uni.showLoading({
                    title: '加载中'
                });
                self._post(
                    'plus.release.order/updateTime', {
                        booking_time: booking_time,
                        id: self.id,
                    },
                    function(res) {
                        uni.hideLoading();
                        self.showSuccess(res.msg,function(){
                            self.getData();
                        });
                    }
                );
            },
            editChange(e){
                let self = this;
                uni.showLoading({
                    title: '加载中'
                });
                self._post(
                    'plus.release.order/editGoods', {
                        odd_num: self.odd_num,
                        goods_name: self.goods_name,
                        id: self.id,
                    },
                    function(res) {
                        uni.hideLoading();
                        self.showSuccess(res.msg,function(){
                            self.getData();
                        });
                    }
                );
            },
        }
    }
</script>
 
<style>
 
</style>