收藏
回答

用自己的网址或者数据库可以调用api或者拿出这些数据吗?

var e = "https://got.ihxzn.com/api/";


module.exports = {
    IndexUrl: e + "index/index",
    IndexGoodsPageUrl: e + "index/pageGoods",
    CatalogList: e + "catalog/index",
    CatalogCurrent: e + "catalog/current"
};


https://got.ihxzn.com网址里的数据

{"errno":0,"errmsg":"",

"data":

{

  "proName":"团长果园",

  "banner":

  [

    {"id":15,"ad_position_id":1,"media_type":1,"name":"黄金百香果果","link":"/pages/goods/goods?id=1000001","image_url":"http://res7n.ihxzn.com/5c5cx3050hn.png?imageView2/2/w/800/h/800","content":"","end_time":0,"enabled":1,"sort_order":2,"status":0},

    {"id":18,"ad_position_id":1,"media_type":1,"name":"蟹田大米","link":"/pages/goods/goods?id=1004150","image_url":"http://res7n.ihxzn.com/4wnmmlj34uk.png?imageView2/2/w/800/h/800","content":"","end_time":0,"enabled":1,"sort_order":2,"status":0},




回答关注问题邀请回答
收藏

2 个回答

  • จุ๊บ
    จุ๊บ
    2021-07-20

    前端请求api就可以拿到数据了

    2021-07-20
    有用
    回复
  • LeeaYoung
    LeeaYoung
    2021-07-20

    请先描述一下前后场景:)

    2021-07-20
    有用
    回复
登录 后发表内容