api.js(接口文件)

// 接口数据文件
const app = getApp();
let publicUrl = wx.getStorageSync(‘publicUrl‘);
if (publicUrl) {
  app.publicUrl = publicUrl
} else {

 

  publicUrl = app.publicUrl
}

var open_api = {
  //地址
  get_receiverAddressDetail: publicUrl + ‘/wapapi/member/receiverAddressDetail‘,
  get_area: publicUrl + ‘/wapapi/goods/area‘,
  get_saveReceiverAddress: publicUrl + ‘/wapapi/member/saveReceiverAddress‘,
  get_receiverAddressList: publicUrl + ‘/wapapi/member/receiverAddressList‘,
  get_setDefaultAddress: publicUrl + ‘/wapapi/member/setDefaultAddress‘,
  get_deleteAddress: publicUrl + ‘/wapapi/member/deleteAddress‘,

  //拼团
  get_getGroupMemberListForWap: publicUrl + ‘/wapapi/addons/execute/addons/groupshopping/controller/groupshopping/action/getGroupMemberListForWap‘,
  get_groupShoppingListForWap: publicUrl + ‘/wapapi/addons/execute/addons/groupshopping/controller/groupshopping/action/groupShoppingListForWap‘,

  //砍价
  get_myActionBargain: publicUrl + ‘/wapapi/addons/execute/addons/bargain/controller/bargain/action/myActionBargain‘,
  get_helpBargain: publicUrl + ‘/wapapi/addons/execute/addons/bargain/controller/bargain/action/helpBargain‘,
  get_getBargainList: publicUrl + ‘/wapapi/addons/execute/addons/bargain/controller/bargain/action/getBargainList‘,
}
module.exports = {
  open_api: open_api
}
 

api.js(接口文件)

上一篇:Windows10 1809版本Windows自动更新服务无法禁用问题解决方案


下一篇:win10打开自带wifi热点共享