修改砍价首次进入无法获取数据的问题

This commit is contained in:
Gaoxs
2020-09-28 17:53:46 +08:00
parent fc3dbf2a7f
commit 6bf7005904
3 changed files with 4 additions and 10 deletions

View File

@ -236,10 +236,9 @@
} else {
// 正常途径进来
that.bargainId = that.$yroute.query.id;
that.bargainUid = that.$yroute.query.partake || 0
that.bargainUid = that.$yroute.query.partake
}
if (!this.bargainUid) {
if (this.bargainUid == 0 || !this.bargainUid) {
// url未携带用户uid填上登录用户uid跳转
that.bargainUid = that.userInfo.uid;
}