|
@@ -20,9 +20,9 @@
|
|
</div>
|
|
</div>
|
|
<!--我的礼物信息-->
|
|
<!--我的礼物信息-->
|
|
<gift-card
|
|
<gift-card
|
|
- :present-img="myPresent.imgUrl"
|
|
|
|
|
|
+ :present-img="myPresent.img"
|
|
:present-name="myPresent.name"
|
|
:present-name="myPresent.name"
|
|
- :present-desc="myPresent.desc_long"
|
|
|
|
|
|
+ :present-desc="myPresent.desc"
|
|
:owner="0"
|
|
:owner="0"
|
|
:placeId="myPresent.placeId"
|
|
:placeId="myPresent.placeId"
|
|
:gender="myPresent.gender"
|
|
:gender="myPresent.gender"
|
|
@@ -160,7 +160,7 @@
|
|
}
|
|
}
|
|
|
|
|
|
let that = this;
|
|
let that = this;
|
|
- BasicFunction.get_data('smartGoods/list?goodId=' + presentId, function (res) {
|
|
|
|
|
|
+ BasicFunction.get_data('smartGoods/list?goodid=' + presentId, function (res) {
|
|
if (res.ret === '10000') {
|
|
if (res.ret === '10000') {
|
|
if(res.model === undefined || res.model == null || res.model.list == undefined || res.model.list.length <= 0){
|
|
if(res.model === undefined || res.model == null || res.model.list == undefined || res.model.list.length <= 0){
|
|
Toast.fail('礼物查看遇到问题,请稍等一下再试吧');
|
|
Toast.fail('礼物查看遇到问题,请稍等一下再试吧');
|
|
@@ -174,14 +174,21 @@
|
|
},
|
|
},
|
|
onloadGift(){
|
|
onloadGift(){
|
|
let that = this;
|
|
let that = this;
|
|
- let present = this.giftDo;
|
|
|
|
|
|
+ let present = {};
|
|
let identity = this.identityDo;
|
|
let identity = this.identityDo;
|
|
|
|
+ present.id = this.giftDo.goodid;
|
|
|
|
+ present.name = this.giftDo.name;
|
|
|
|
+ present.desc = this.giftDo.description;
|
|
|
|
+ present.status = this.giftDo.sort;
|
|
|
|
+ present.gender = this.giftDo.goodFirstKind;
|
|
present.comment = '';
|
|
present.comment = '';
|
|
present.placeId = identity.dormDistrict;
|
|
present.placeId = identity.dormDistrict;
|
|
present.wechat = identity.userWxAccount;
|
|
present.wechat = identity.userWxAccount;
|
|
|
|
+ present.img = "http://gift.fogice.com" + this.giftDo.img;
|
|
that.myPresent = present;
|
|
that.myPresent = present;
|
|
|
|
+ console.log(this.myPresent);
|
|
// console.log(that.myPresent);
|
|
// console.log(that.myPresent);
|
|
- if (present.status === 3) BasicFunction.get_data('smartOrderFeedback/list?goodId=' + present.id, function (res) {
|
|
|
|
|
|
+ if (present.status === 3) BasicFunction.get_data('smartOrderFeedback/list?goodid=' + present.id, function (res) {
|
|
// console.log(res);
|
|
// console.log(res);
|
|
try {
|
|
try {
|
|
let comment = res.model.list[0];
|
|
let comment = res.model.list[0];
|
|
@@ -194,7 +201,7 @@
|
|
Toast.fail('获取信息失败');
|
|
Toast.fail('获取信息失败');
|
|
}
|
|
}
|
|
}, {});
|
|
}, {});
|
|
- if (present.status === 4) BasicFunction.get_data('smartGoodReview/list?goodId=' + present.id, function (res) {
|
|
|
|
|
|
+ if (present.status === 4) BasicFunction.get_data('smartGoodReview/list?goodid=' + present.id, function (res) {
|
|
if (res.ret === '10000') {
|
|
if (res.ret === '10000') {
|
|
if (res.model.list.length !== 0) that.reason = res.model.list[0].displayNote;
|
|
if (res.model.list.length !== 0) that.reason = res.model.list[0].displayNote;
|
|
} else Toast.fail('获取信息失败');
|
|
} else Toast.fail('获取信息失败');
|
|
@@ -206,7 +213,7 @@
|
|
this.$router.push('login');
|
|
this.$router.push('login');
|
|
return;
|
|
return;
|
|
}
|
|
}
|
|
- let present = this.$route.query.present;
|
|
|
|
|
|
+ // let presentId = this.$route.query.presentId;
|
|
// console.log(this.$route.query.present);
|
|
// console.log(this.$route.query.present);
|
|
let userid = localStorage.getItem('frontend-userid');
|
|
let userid = localStorage.getItem('frontend-userid');
|
|
let that = this;
|
|
let that = this;
|