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

优化

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