zoukankan      html  css  js  c++  java
  • 小程序配置请求地址

    ------------恢复内容开始------------

    const domain = 'https://msinterface-jd.herokuapp.com';
    const domain2 = "https://www.thenewstep.cn"
    在until里面新建js
    const interfaces = {
    // 返回的首页请求的json数据
    homepage: domain + '/api/profiles/homepage',

    // 返回的商品的json数据
    productions: domain + '/api/profiles/productions',

    // 返回的商品列表的json数据
    productionsList: domain + '/api/profiles/productionsList',

    // 返回的商品详情的json数据
    productionDetail: domain + '/api/profiles/productionDetail',

    // 获取openid 参数: code appid secret
    getOpenid: domain + '/api/profiles/getOpenid/',

    // 微信支付
    wechatPay: domain2 + '/xcxzf/jsapi.php',
    };

    module.exports = interfaces; 暴露这个方法
    // 引入接口配置文件urlconfig
    const interfaces = require('../../utils/urlconfig.js');
     

    ------------恢复内容结束------------

  • 相关阅读:
    175. 组合两个表
    101. 对称二叉树
    292. Nim游戏
    319. 灯泡开关
    155. 最小栈
    232. 用栈实现队列
    225. 用队列实现栈
    145. 二叉树的后序遍历
    144. 二叉树的前序遍历
    【leetcode】977. Squares of a Sorted Array
  • 原文地址:https://www.cnblogs.com/xzhce/p/13375892.html
Copyright © 2011-2022 走看看