//这个页面只调用接口 var rq = require("../utils/request.js") var regeneratorRuntime = require('../utils/runtime.js'); const wxRequest = async(params = {}, url) => { let data = params.query || {}; let res = await rq.promiseGet(url,data) return res; }; //--检查是否购买自定义模板-- const check_isbuy = (params) => wxRequest({}, "/store/storemoduleendtime/page?store_id=" + params.store_id + "&type=" + params.type); //--获取config-- const get_config=(stoid)=>wxRequest({},"/api/weshop/store/get/"+stoid); //--获取自定义模板首页-- const get_template_fir=(stoid)=>wxRequest({},"/api/weshop/store_module/gets/"+stoid+"/1/4"); module.exports = { check_isbuy, get_config, get_template_fir, }