Merge branch 'master-xie'
This commit is contained in:
@@ -259,7 +259,7 @@
|
||||
},
|
||||
methods: {
|
||||
gotoDetail(item){
|
||||
console.log(item,'gotoDetail')
|
||||
// console.log(item,'gotoDetail')
|
||||
uni.navigateTo({
|
||||
url: '../bookShop/commodityDetail?id=' + item.productId
|
||||
});
|
||||
@@ -278,7 +278,9 @@
|
||||
// 获取商品关联商品
|
||||
getLinkPros(id){
|
||||
this.$http
|
||||
.post('book/shopproduct/bookinfolists/'+id)
|
||||
.post('book/shopproduct/getGlProductList',{
|
||||
'productId': id
|
||||
})
|
||||
.then(res => {
|
||||
console.log('关联商品', res)
|
||||
if(res.code == 0){
|
||||
@@ -391,6 +393,18 @@
|
||||
}
|
||||
}
|
||||
uni.hideLoading();
|
||||
}).catch(e => {
|
||||
console.log(e,'e')
|
||||
uni.hideLoading();
|
||||
if(e.msg == '该商品不存在,看看其他商品吧'){
|
||||
setTimeout(() => {
|
||||
uni.navigateBack({
|
||||
delta: 1
|
||||
});
|
||||
},2000)
|
||||
}
|
||||
|
||||
|
||||
})
|
||||
},
|
||||
|
||||
@@ -440,7 +454,7 @@
|
||||
},
|
||||
// 点击按钮组间
|
||||
buttonClick(e) {
|
||||
console.log(e)
|
||||
// console.log(e)
|
||||
if(e.index == 0){
|
||||
// 点击的是加入购物车
|
||||
this.upoShow = true
|
||||
|
||||
Reference in New Issue
Block a user