From 16474176edeee797b92936a3075c733ad0f4fcb7 Mon Sep 17 00:00:00 2001 From: yvan.ni <765199919@qq.com> Date: Thu, 11 Jun 2020 14:02:48 +0800 Subject: [PATCH] 导购id要用接口到购买shopping_guide 的id --- pages/goods/goodsInfo/goodsInfo.js | 2 +- pages/goods/goodsList/goodsList.js | 2 +- pages/goods/search/search.js | 2 +- pages/team/team_show/team_show.js | 2 +- 4 files changed, 4 insertions(+), 4 deletions(-) diff --git a/pages/goods/goodsInfo/goodsInfo.js b/pages/goods/goodsInfo/goodsInfo.js index 17ae1f3..582555f 100644 --- a/pages/goods/goodsInfo/goodsInfo.js +++ b/pages/goods/goodsInfo/goodsInfo.js @@ -270,7 +270,7 @@ Page({ //调用接口判断是不是会员 getApp().request.promiseGet("/api/weshop/shoppingGuide/get/"+os.stoid+"/"+first_leader,{}).then(res=>{ if(res.data.code==0){ - getApp().globalData.guide_id=res.data.data.bind_user_id; + getApp().globalData.guide_id=res.data.data.id; } }) } diff --git a/pages/goods/goodsList/goodsList.js b/pages/goods/goodsList/goodsList.js index a9ec61c..e8cee1d 100644 --- a/pages/goods/goodsList/goodsList.js +++ b/pages/goods/goodsList/goodsList.js @@ -32,7 +32,7 @@ Page({ //调用接口判断是不是会员 getApp().request.promiseGet("/api/weshop/shoppingGuide/get/"+oo.stoid+"/"+first_leader,{}).then(res=>{ if(res.data.code==0){ - getApp().globalData.guide_id=res.data.data.bind_user_id; + getApp().globalData.guide_id=res.data.data.id; } }) } diff --git a/pages/goods/search/search.js b/pages/goods/search/search.js index 10a8ea5..b8081f8 100644 --- a/pages/goods/search/search.js +++ b/pages/goods/search/search.js @@ -30,7 +30,7 @@ Page({ //调用接口判断是不是会员 getApp().request.promiseGet("/api/weshop/shoppingGuide/get/"+oo.stoid+"/"+first_leader,{}).then(res=>{ if(res.data.code==0){ - getApp().globalData.guide_id=res.data.data.bind_user_id; + getApp().globalData.guide_id=res.data.data.id; } }) } diff --git a/pages/team/team_show/team_show.js b/pages/team/team_show/team_show.js index 96b35b9..9dddacd 100644 --- a/pages/team/team_show/team_show.js +++ b/pages/team/team_show/team_show.js @@ -82,7 +82,7 @@ Page({ //调用接口判断是不是会员 getApp().request.promiseGet("/api/weshop/shoppingGuide/get/"+os.stoid+"/"+first_leader,{}).then(res=>{ if(res.data.code==0){ - getApp().globalData.guide_id=res.data.data.bind_user_id; + getApp().globalData.guide_id=res.data.data.id; } }) } -- libgit2 0.21.4