...
|
...
|
@@ -479,7 +479,6 @@ |
|
|
content: '确定保存到相册吗',
|
|
|
success: function(res) {
|
|
|
if (res.confirm) {
|
|
|
|
|
|
uni.downloadFile({
|
|
|
url: _self.haibaoPic,
|
|
|
success: (res) => {
|
...
|
...
|
@@ -503,8 +502,6 @@ |
|
|
}
|
|
|
}
|
|
|
})
|
|
|
|
|
|
|
|
|
} else if (res.cancel) {
|
|
|
|
|
|
}
|
...
|
...
|
@@ -713,24 +710,25 @@ |
|
|
} else if (res.cancel) {
|
|
|
if (that.id) {
|
|
|
uni.navigateTo({
|
|
|
url: "/pages/index/all-message?id=" + that.id+'&index=0'
|
|
|
url: "/pages/index/all-message?id=" + that.id + '&index=0'
|
|
|
})
|
|
|
} else {
|
|
|
uni.navigateTo({
|
|
|
url: "/pages/index/all-message?id=" + that.goods_id+'&index=1'
|
|
|
url: "/pages/index/all-message?id=" + that.goods_id +
|
|
|
'&index=1'
|
|
|
})
|
|
|
}
|
|
|
}
|
|
|
}
|
|
|
})
|
|
|
} else {
|
|
|
if (that.id) {
|
|
|
if (that.id == undefined || that.id == 'undefined') {
|
|
|
uni.navigateTo({
|
|
|
url: "/pages/index/all-message?id=" + that.id+'&index=0'
|
|
|
url: "/pages/index/all-message?id=" + that.goods_id + '&index=1'
|
|
|
})
|
|
|
} else {
|
|
|
uni.navigateTo({
|
|
|
url: "/pages/index/all-message?id=" + that.goods_id+'&index=1'
|
|
|
url: "/pages/index/all-message?id=" + that.id + '&index=0'
|
|
|
})
|
|
|
}
|
|
|
}
|
...
|
...
|
@@ -740,13 +738,21 @@ |
|
|
},
|
|
|
messageClick() {
|
|
|
if (this.token) {
|
|
|
let goodsId = null
|
|
|
if (this.id == undefined || this.id == 'undefined') {
|
|
|
goodsId = this.goods_id
|
|
|
console.log(goodsId,'idddddddd11111111')
|
|
|
} else {
|
|
|
goodsId = this.id
|
|
|
console.log(goodsId,'idddddddd22222222')
|
|
|
}
|
|
|
console.log(goodsId,'idddddddd')
|
|
|
uni.navigateTo({
|
|
|
url: "/pages/index/all-message?id=" + this.goods_id
|
|
|
url: "/pages/index/all-message?id=" + goodsId
|
|
|
})
|
|
|
} else {
|
|
|
this.login()
|
|
|
}
|
|
|
|
|
|
},
|
|
|
messageLists() {
|
|
|
console.log(this.id, this.goods_id, 'idddd')
|
...
|
...
|
@@ -755,7 +761,7 @@ |
|
|
request.get('/api/msg/allMsg', {
|
|
|
// goods_id: this.id== || this.goods_id
|
|
|
goods_id: this.id == undefined || this.id == 'undefined' ? this.goods_id : this.id,
|
|
|
is_good:this.id == undefined || this.id == 'undefined' ?1 :0,
|
|
|
is_good: this.id == undefined || this.id == 'undefined' ? 1 : 0,
|
|
|
}).then(res => {
|
|
|
console.log(res.data.info, 'ressss')
|
|
|
this.messageList = res.data.info
|
...
|
...
|
|