Forráskód Böngészése

套餐下单接口地址以及参数变更

chenrui 4 éve
szülő
commit
f8b233f0d3

+ 1 - 1
src/api/customerBundle.js

@@ -72,7 +72,7 @@ export const bundleFindByMobile = params => {
 // 套餐  确认收款
 // 套餐  确认收款
 export const bundleBuy = params => {
 export const bundleBuy = params => {
   return axios.request({
   return axios.request({
-    url: `customerBundle/buy`,
+    url: `order/buy`,
     data: params,
     data: params,
     method: 'post'
     method: 'post'
   }).then(res => res)
   }).then(res => res)

+ 0 - 24
src/store/modules/user.js

@@ -36,30 +36,6 @@ const user = {
 
 
   actions: {
   actions: {
     // 登录
     // 登录
-    // Login ({ commit }, userInfo) {
-    //   console.log(userInfo, 'userInfo----')
-    //   return new Promise((resolve, reject) => {
-    //     login(userInfo).then(res => {
-    //       console.log(res, 'login success')
-    //       if (res && res.userid) {
-    //         Vue.ls.set('hasError', 0)
-    //         commit('SET_TOKEN', res.userid)
-    //         commit('SET_NAME', { name: res.userNameCN, welcome: welcome() })
-    //         commit('SET_AVATAR', res.avatar ? res.avatar : '')
-    //         Vue.ls.set('rolesAccess', { permissionList: res.permCodes }, 7 * 24 * 60 * 60 * 1000)
-    //         // 记住密码
-    //         if (userInfo.rememberMe) {
-    //           VueCookies.set('REMEMBER_ME', JSON.stringify(userInfo))
-    //         } else {
-    //           VueCookies.remove('REMEMBER_ME')
-    //         }
-    //       }
-    //       resolve()
-    //     }).catch(error => {
-    //       reject(error)
-    //     })
-    //   })
-    // },
     Login ({ commit }, userInfo) {
     Login ({ commit }, userInfo) {
       console.log(userInfo, 'userInfo----')
       console.log(userInfo, 'userInfo----')
       return new Promise((resolve, reject) => {
       return new Promise((resolve, reject) => {

+ 6 - 9
src/views/SetmealSales/SetmealPayMoney.vue

@@ -128,15 +128,12 @@ export default {
         if (valid) {
         if (valid) {
           const params = {
           const params = {
             bundleId: this.setmealData.id,
             bundleId: this.setmealData.id,
-            orderBundle: {
-              bundleId: this.setmealData.id,
-              custId: this.form.custId,
-              custName: this.form.custName,
-              custMobile: this.form.custMobile,
-              vehicleNumber: this.form.vehicleNumber,
-              totalAmount: this.setmealData.price
-            },
-            paymentDetailList: [{ payType: 10001 }]
+            custId: this.form.custId,
+            custName: this.form.custName,
+            custMobile: this.form.custMobile,
+            vehicleNumber: this.form.vehicleNumber,
+            totalAmount: this.setmealData.price,
+            paymentDetail: { payType: 10001 }
           }
           }
           bundleBuy(params).then(res => {
           bundleBuy(params).then(res => {
             if (res.status == 200) {
             if (res.status == 200) {