You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
79 lines
1.3 KiB
79 lines
1.3 KiB
import httpB from '../common/axiosB.js'
|
|
|
|
//微信支付相关接口
|
|
|
|
export default {
|
|
test,
|
|
getSiteInfo,
|
|
getOpenid,
|
|
getMiniOpenid,
|
|
getUser,
|
|
getUserCoupons,
|
|
addOrder,
|
|
wxMpPay,
|
|
wxMiniPay,
|
|
getAdvertising,
|
|
}
|
|
|
|
// 账号密码登录
|
|
function test() {
|
|
let url = '/test'
|
|
return httpB.get(url)
|
|
}
|
|
|
|
//获取站点信息
|
|
function getSiteInfo(data) {
|
|
let url = '/getSiteInfo'
|
|
return httpB.get(url,data)
|
|
}
|
|
|
|
//获取微信公众号openid
|
|
function getOpenid(data) {
|
|
let url = '/getOpenid'
|
|
return httpB.post(url,data)
|
|
}
|
|
|
|
//获取微信小程序openid
|
|
function getMiniOpenid(data) {
|
|
let url = '/getMiniOpenid'
|
|
return httpB.post(url,data)
|
|
}
|
|
|
|
|
|
|
|
|
|
//获取用户信息
|
|
function getUser(data){
|
|
let url = '/getUser'
|
|
return httpB.get(url,data)
|
|
}
|
|
|
|
//获取用户拥有的优惠券
|
|
function getUserCoupons(data){
|
|
let url = '/getUserCoupons'
|
|
return httpB.get(url,data)
|
|
}
|
|
|
|
//创建订单接口
|
|
function addOrder(data){
|
|
let url = '/addOrder'
|
|
return httpB.get(url,data)
|
|
}
|
|
|
|
//微信公众号支付
|
|
function wxMpPay(data){
|
|
let url = '/wxMpPay'
|
|
return httpB.post(url,data)
|
|
}
|
|
|
|
//微信公众号支付
|
|
function wxMiniPay(data){
|
|
let url = '/wxMiniPay'
|
|
return httpB.post(url,data)
|
|
}
|
|
|
|
//获取广告列表
|
|
function getAdvertising(data){
|
|
let url = '/getAdvertising'
|
|
return httpB.get(url,data)
|
|
}
|
|
|