Bläddra i källkod

add not-pass status

StephenArk30 6 år sedan
förälder
incheckning
21555283f2

+ 1 - 1
sourcecode/h5app/vue/src/components/IndexPresent.vue

@@ -27,7 +27,7 @@
         data() {
             return {
                 statusString: ['审核中', '匹配中', '匹配成功', '交换成功', '审核失败'],
-                statusColor: ['#f43736', '#00ff00', '#00bfff', '#00fa9a', 'ff0000']
+                statusColor: ['#fd6740', '#00ff00', '#00bfff', '#00fa9a', '#ff0000']
             }
         },
         props: {

+ 1 - 1
sourcecode/h5app/vue/src/components/giftCard.vue

@@ -52,7 +52,7 @@
             return {
                 place: ['南区', '斋区', '西南', '西丽'],
                 statusString: ['审核中', '匹配中', '匹配成功', '交换成功', '审核失败'],
-                statusColor: ['#f43736', '#00ff00', '#00bfff', '#00fa9a', '#ff0000']
+                statusColor: ['#fd6740', '#00ff00', '#00bfff', '#00fa9a', '#ff0000']
             }
         },
         props: {

+ 24 - 4
sourcecode/h5app/vue/src/views/giftDetail.vue

@@ -2,7 +2,7 @@
     <div>
         <nav-bar path="index"/>
         <gift-card
-                v-if="myPresent.status===2"
+                v-if="myPresent.status === 2 || myPresent.status === 3"
                 :present-img="recievedPresent.imgUrl"
                 :present-name="recievedPresent.name"
                 :present-desc="recievedPresent.desc"
@@ -30,12 +30,16 @@
             <p style="font-size: 110%"><strong>我收到的感谢信</strong></p>
             <p>{{myPresent.comment}}</p>
         </div>
+        <div class="letter" v-if="myPresent.status === 4">
+            <p><strong>审核未通过,请前往首页重新发布礼物!</strong></p>
+            <p v-if="reason.length !== 0">原因:{{reason}}</p>
+        </div>
         <div style="height: 100px; width: 100%"></div>
         <img src="../assets/gift_card_background.png"
              style="position: fixed; bottom: 100px; max-width: 100%; z-index: -1"
         />
         <div
-                v-if="myPresent.status===2"
+                v-if="myPresent.status === 2"
                 style="position: fixed; bottom: 0; width: 100%; background-color: #fff6e3"
         >
             <van-button
@@ -46,7 +50,7 @@
             <p>交换成功可以开始接收对方发来的感谢信哦</p>
         </div>
         <div
-                v-if="myPresent.status!==2"
+                v-if="myPresent.status === 0 || myPresent.status === 1"
                 style="position: fixed; bottom: 0; width: 100%"
         >
             <van-button
@@ -80,8 +84,8 @@
                 myPresent: {
                     placeId: 1,
                     comment: '',
-
                 },
+                reason: '',
                 recievedPresent: {
                     comment: ''
                 }
@@ -144,6 +148,22 @@
                     present.wechat = res.model.list[0].userWxAccount;
                     that.myPresent = present;
                     console.log(that.myPresent);
+                    if (present.status === 3) BasicFunction.get_data('smartOrderFeedback/list?goodId=' + present.id, function (res) {
+                        console.log(res);
+                        if (res.ret === '10000') {
+                            if (res.model.list.length === 0) that.myPresent.comment = '暂未收到';
+                            else that.myPresent.comment = res.model.list[0].content;
+                            console.log(that.myPresent);
+                        }
+                    }, {});
+
+                    if (present.status === 4) BasicFunction.get_data('smartGoodReview/list?goodId=' + present.id, function (res) {
+                        console.log(res);
+                        if (res.ret === '10000') {
+                            if (res.model.list.length !== 0) that.reason = res.model.list[0].displayNote;
+                        }
+                    }, {});
+                    console.log(that.myPresent);
                 }
             }, {});
         }