1
xuxy
2024-06-27 f2ed53b7fb41b1d15334934bf8caeea798ddcf2f
store/index.js
@@ -245,16 +245,18 @@
                  }
                  return resp
               },
               loginShop: async function({
               loginSupplier: async function({
                  commit,
                  dispatch,
                  state
               }, data) {
                  {
                     const resp = await http.request('post', '/api/login/employee', {
                     const resp = await http.request('post', '/api/login/supplier'+(data.phoneNumber?'/phone':''), {
                        data: {
                           username: data.username,
                           password: data.password
                           password: data.password,
                           tel:data.phoneNumber,
                           smsCode:data.smsCode || ''
                        },
                        params: {
                           clientType: data.clientType || 'app'
@@ -292,7 +294,7 @@
                        //    url: '/views/app/app-home/app-home'
                        // })
                        uni.reLaunch({
                           url: '/pages/home/home'
                           url: '/pages/home/farmer-home'
                        })
                     } else {
                        // this.$message.showToast('登录失败')