|
@@ -2,11 +2,11 @@ import axios from 'axios'
|
|
|
import config from './config'
|
|
|
import pingpp from '../../../webapp/common/js/pingpp'
|
|
|
// let apiPath = 'http://commontest.yiguanjia.me/index.php?r='
|
|
|
-console.log(config.formData)
|
|
|
+
|
|
|
export default ({
|
|
|
// 获取用户信息
|
|
|
getO2oUserInfo: function (cb) {
|
|
|
- axios.post('o2o/user/info', config.formData).then(function (res) {
|
|
|
+ axios.get('o2o/user/info&user_id=' + config.userId).then(function (res) {
|
|
|
cb(res.data)
|
|
|
})
|
|
|
},
|
|
@@ -47,6 +47,8 @@ export default ({
|
|
|
axios.post('o2o/order/add', config.formData).then(function (res) {
|
|
|
let data = res.data.data
|
|
|
// 支付成功
|
|
|
+ console.log('api.js' + 50)
|
|
|
+ console.log(res)
|
|
|
if (data.status === 1) {
|
|
|
} else {
|
|
|
// 支付失败
|