|
@@ -2,7 +2,7 @@
|
|
<div>
|
|
<div>
|
|
<nav-bar path="index"/>
|
|
<nav-bar path="index"/>
|
|
<gift-card
|
|
<gift-card
|
|
- v-if="myPresent.status===2"
|
|
|
|
|
|
+ v-if="myPresent.status === 2 || myPresent.status === 3"
|
|
:present-img="recievedPresent.imgUrl"
|
|
:present-img="recievedPresent.imgUrl"
|
|
:present-name="recievedPresent.name"
|
|
:present-name="recievedPresent.name"
|
|
:present-desc="recievedPresent.desc"
|
|
:present-desc="recievedPresent.desc"
|
|
@@ -30,12 +30,16 @@
|
|
<p style="font-size: 110%"><strong>我收到的感谢信</strong></p>
|
|
<p style="font-size: 110%"><strong>我收到的感谢信</strong></p>
|
|
<p>{{myPresent.comment}}</p>
|
|
<p>{{myPresent.comment}}</p>
|
|
</div>
|
|
</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>
|
|
<div style="height: 100px; width: 100%"></div>
|
|
<img src="../assets/gift_card_background.png"
|
|
<img src="../assets/gift_card_background.png"
|
|
style="position: fixed; bottom: 100px; max-width: 100%; z-index: -1"
|
|
style="position: fixed; bottom: 100px; max-width: 100%; z-index: -1"
|
|
/>
|
|
/>
|
|
<div
|
|
<div
|
|
- v-if="myPresent.status===2"
|
|
|
|
|
|
+ v-if="myPresent.status === 2"
|
|
style="position: fixed; bottom: 0; width: 100%; background-color: #fff6e3"
|
|
style="position: fixed; bottom: 0; width: 100%; background-color: #fff6e3"
|
|
>
|
|
>
|
|
<van-button
|
|
<van-button
|
|
@@ -46,7 +50,7 @@
|
|
<p>交换成功可以开始接收对方发来的感谢信哦</p>
|
|
<p>交换成功可以开始接收对方发来的感谢信哦</p>
|
|
</div>
|
|
</div>
|
|
<div
|
|
<div
|
|
- v-if="myPresent.status!==2"
|
|
|
|
|
|
+ v-if="myPresent.status === 0 || myPresent.status === 1"
|
|
style="position: fixed; bottom: 0; width: 100%"
|
|
style="position: fixed; bottom: 0; width: 100%"
|
|
>
|
|
>
|
|
<van-button
|
|
<van-button
|
|
@@ -80,8 +84,8 @@
|
|
myPresent: {
|
|
myPresent: {
|
|
placeId: 1,
|
|
placeId: 1,
|
|
comment: '',
|
|
comment: '',
|
|
-
|
|
|
|
},
|
|
},
|
|
|
|
+ reason: '',
|
|
recievedPresent: {
|
|
recievedPresent: {
|
|
comment: ''
|
|
comment: ''
|
|
}
|
|
}
|
|
@@ -144,6 +148,22 @@
|
|
present.wechat = res.model.list[0].userWxAccount;
|
|
present.wechat = res.model.list[0].userWxAccount;
|
|
that.myPresent = present;
|
|
that.myPresent = present;
|
|
console.log(that.myPresent);
|
|
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);
|
|
}
|
|
}
|
|
}, {});
|
|
}, {});
|
|
}
|
|
}
|