login.js 567 Bytes
import req from '@/api/http.js'

// base.js 定义基本的接口 account mall floor zone gate channel
const login = {
    /**
     * login 
     */
    userLogin(params, config) {
        return req('post', '/users/login', params, config)
    },
    loginVideo(params, config, body) {
        console.log(body)
        return req('post', 'http://video.keliuyun.com:18081/webapi/login', params, config, body)
    },
    videoUrl(atoken, params, config) {
        return req('post', '/webapi/v4/preview/view?tk=' + atoken, params, config)
    }
}

export default login