[FIX]【商品商城】调试

This commit is contained in:
yuweiqi
2020-06-18 15:09:19 +08:00
parent f284cfcbe2
commit 27b088fe0a
2 changed files with 3 additions and 22 deletions

View File

@@ -62,6 +62,7 @@ export default {
}
this.mallId = this.$route.query.mallId
if (this.isWeixin) {
console.log('--------', this.$route.query.token)
window.localStorage.setItem('token', this.$route.query.token)
this.loginInfo.aname = unescape(this.$route.query.aname)
this.loginInfo.password = unescape(this.$route.query.password)
@@ -70,9 +71,6 @@ export default {
this.saveShareTrack({ id: this.shareId, mallId: this.mallId })
}
this.getShopList({ id: this.mallId })
//TEST
// this.setDetail()
// window['appCallBack'] = this.appCallBack
},
mounted() {
window['appCallBack'] = this.appCallBack
@@ -81,13 +79,6 @@ export default {
document.getElementsByTagName('body')[0].classList.remove('bg-white')
},
methods: {
//TEST
setDetail() {
this.detail = {
imgUrl: 'https://img.yzcdn.cn/vant/apple-3.jpg',
linkUrl: 'https://img.yzcdn.cn/vant/apple-2.jpg'
}
},
//获取商城详情
getShopList(data) {
getShopList(data).then(res => {
@@ -131,10 +122,10 @@ export default {
this.$jump({
flag: 'h5',
extra: {
url: location.origin + `/#/productStore/forwardRecord`
url: location.origin + `/#/productStore/forwardRecord?mallId=${this.mallId}`
},
routerInfo: {
path: `/productStore/forwardRecord`
path: `/productStore/forwardRecord?mallId=${this.mallId}`
}
})
}

View File

@@ -29,19 +29,9 @@ export default {
}
},
mounted() {
//TEST
// this.setList()
this.getShopList()
},
methods: {
//TEST
setList() {
this.list = [
{ name: '小米', iconUrl: 'https://img.yzcdn.cn/vant/apple-1.jpg', id: 'A1' },
{ name: '华为', iconUrl: 'https://img.yzcdn.cn/vant/apple-2.jpg', id: 'A2' },
{ name: '苹果', iconUrl: 'https://img.yzcdn.cn/vant/apple-3.jpg', id: 'A3' }
]
},
//获取商品商城列表
getShopList() {
getShopList({}).then(res => {