提交 bad8194c authored 作者: pengxiaohui's avatar pengxiaohui

优化

上级 f6eb5d34
......@@ -27,7 +27,7 @@ export function phoneCodeLogin(data) {
})
}
/**
* 修改用户信息
*获取用户微信openid
*/
export function getOpenId(data) {
return httpRequest({
......
......@@ -202,7 +202,6 @@ export default {
fieldsMap[field.key] = Object.assign({}, field, map[item.type])
})
this.fieldsMap = fieldsMap
console.log('field', fieldsMap)
},
fetchGoodsSpecs() {
const params = {
......
......@@ -82,17 +82,16 @@ export default {
return this.$route.query
},
spu_id () {
return this.query.spu_id || '6805043172159258624'
return this.query.spu_id || ''
},
shop_id () {
return this.query.shop_id || '6800681447305773056'
return this.query.shop_id || ''
}
},
beforeMount() {
this.fetchGoodsDetails()
this.fetchShopDetails()
let openId = window.localStorage.getItem('openId')
console.log(openId)
if (openId === 'undefined' || openId === 'null') openId = ''
this.openId = openId // 'oF3a-t9pFpmL2gWuTmtWs5HlDGkU'
if (this.isWxBrowser && !this.openId) {
......
......@@ -73,7 +73,7 @@ export default {
return this.$route.query
},
shop_id() {
return this.query.shop_id || window.sessionStorage.getItem('shop_id') || '6800681447305773056'
return this.query.shop_id || window.sessionStorage.getItem('shop_id') || ''
},
group_id() {
return this.query.group_id || window.sessionStorage.getItem('group_id') || ''
......
......@@ -139,7 +139,6 @@ export default {
else this.getCode()
}
// this.fetchOrderList()
console.log(this.list.length === 0 && this.finished)
},
methods: {
handlePay(item) {
......@@ -292,7 +291,7 @@ export default {
window.location.href = this.order_details_url
})
} else {
console.log('下单失败')
Toast.fail('下单失败')
}
}
} else if (payType === '4') {
......
......@@ -91,7 +91,6 @@ export default {
},
methods: {
handlePay(item) {
console.log(item)
const params = {
shop_id: item.shop_id,
spu_id: item.spu_id,
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论