xuxueyang
2024-07-29 11f7661538f75c2d4eefd32408eba6dc0d77052b
store/index.js
@@ -28,6 +28,8 @@
            'info': 0,
            'flower': 0,
            'shopping': 0,
            'follow': 0,
         'delivery':0
        },
        defaultaddress: {}
    },
@@ -219,7 +221,8 @@
                        password: data.password,
                        tel: data.phoneNumber || data.tel,
                        smsCode: data.smsCode || '',
                        dto: data.dto || undefined
                        dto: data.dto || undefined,
                        wxcode: data.wxcode || undefined
                    },
                    params: {
                        clientType: data.clientType || 'app'
@@ -379,7 +382,7 @@
                    }
                })
                console.log('resp', resp)
                if (resp && resp.code == 0) {
                if (resp && resp.code === 0) {
                    storage.setItem('token', resp.data.access_token)
                    commit("updateLogin", true)
                    await dispatch('getCurrentInfo')
@@ -395,7 +398,7 @@
        },
        submitShopping: async function ({commit, dispatch}, data) {
            const resp = await http.request('post', '/api/api/customer/flower/cart/change-num', {
            const resp = await http.request('post', '/api/customer/flower/cart/change-num', {
                    data: {
                        id: data.id,
                        num: 1