Commit 73eaa935 by 李伟康

commit

1 parent f206d6ff
...@@ -43,11 +43,11 @@ export default { ...@@ -43,11 +43,11 @@ export default {
}, },
watch: { watch: {
'index' (n) { 'index' (n) {
console.log(n)
this.tabIndex = n this.tabIndex = n
}, },
'updata' (n) { 'updata' (n) {
this.data = this.list this.data = this.list
this.tabIndex = this.index
} }
}, },
mounted () { mounted () {
......
...@@ -74,7 +74,7 @@ const actions = { ...@@ -74,7 +74,7 @@ const actions = {
if (data.loginList.length > 1) { if (data.loginList.length > 1) {
util.setLocalStorage('dj_scrm_loginToken', data.loginToken) util.setLocalStorage('dj_scrm_loginToken', data.loginToken)
util.setLocalStorage('dj_scrm_accountList', data.loginList) util.setLocalStorage('dj_scrm_accountList', data.loginList)
let userInfo = data.loginList[2] let userInfo = data.loginList[0]
let { merchantId, accountName } = userInfo let { merchantId, accountName } = userInfo
let loginAccount = accountName let loginAccount = accountName
ssoApi.selectAccount({ ssoApi.selectAccount({
......
...@@ -204,7 +204,6 @@ export default { ...@@ -204,7 +204,6 @@ export default {
getUserCouponList (userStatus, setData = true) { getUserCouponList (userStatus, setData = true) {
let { list, userName, pageNum } = this let { list, userName, pageNum } = this
couponApi.getUserCouponList({ pageNum, userName, userStatus }).then(res => { couponApi.getUserCouponList({ pageNum, userName, userStatus }).then(res => {
console.log(userStatus, res)
if (setData) { if (setData) {
this.list = list.concat(res.list) this.list = list.concat(res.list)
this.itemObj = this.tools.deepClone(itemObj).splice(0, 2) this.itemObj = this.tools.deepClone(itemObj).splice(0, 2)
...@@ -225,7 +224,6 @@ export default { ...@@ -225,7 +224,6 @@ export default {
getCustomerCouponList (usedFlag, setDate = true) { getCustomerCouponList (usedFlag, setDate = true) {
let { list, pageNum, userName } = this let { list, pageNum, userName } = this
boutiquecouponApi.getCustomerCouponList({ currentPage: pageNum, customerName: userName, usedFlag }).then(res => { boutiquecouponApi.getCustomerCouponList({ currentPage: pageNum, customerName: userName, usedFlag }).then(res => {
console.log(res)
if (setDate) { if (setDate) {
this.list = list.concat(res.list) this.list = list.concat(res.list)
this.flag = true this.flag = true
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!