import Request from "./request.js";
let request = Request.http;
export default {
    // 查询店铺信息
    getStoreInfoByScan(data) {
        return request({
            url: "/user/offlineOrder/getStoreInfoByScan",
            method: "get",
            data: data,
        });
    },
    weChatH5Login(data) {
        return request({
            url: "/user/base/weChatH5Login",
            method: "get",
            data: data,
        });
    },

    payOrder(data) {
        return request({
            url: "/user/offlineOrder/payOrder",
            method: "post",
            data: data,
            header: {
                'Content-Type': 'application/json'
            }
        });
    },


    byStore(data) {
        return request({
            url: "/user/voucher/list/byStore",
            method: "get",
            data: data,
            header: {
                'Authorization': 'Bearer eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ1c2VyX25hbWUiOiIxMzE5MzczMDAwNiIsImdyb3VwSWQiOiIyMDA0MzgxMzgxMjE5NjMxMjI1IiwidXNlcklkIjoiMTk2NTM1MzgyNTgxNjU3NjAwMSIsImlzTWFpbkFjY291bnQiOjEsImF1dGhvcml0aWVzIjpbXSwiY2xpZW50X2lkIjoicWhiaHV2MWg0djJ1bWp0ZXYwcWg2a3NlZm1maXV3dnkiLCJyZWFsTmFtZSI6IueUqOaItzEzMSoqKiowMDA2IiwicGhvbmUiOiIxMzE5MzczMDAwNiIsInNjb3BlIjpbImFsbCJdLCJjbGllbnQiOjIsImV4cCI6MTc3NjQ3NzM5NywianRpIjoiOTQ3OTc1OWItNTdkMS00YTA3LTk1MTItOGU4NjAzYTg0YzMwIiwia2V5IjoiMzZhNGI4MGItMThhYS00Yzg0LWE4ZDQtYWM1Zjg4NzU0M2RjIn0.5BkHRBAsuHjasV96QAw2abE4I2JyoEJ402cYpGWe-yk'
            }

        });
    },
}