|
@@ -111,12 +111,13 @@ Page({
|
|
|
//var openId = options.openId
|
|
|
|
|
|
wx.request( {
|
|
|
- url: link + "/v1/set",
|
|
|
+ url: link + "/v1/forward/lhf",
|
|
|
header: {
|
|
|
- "Content-Type": "application/json"
|
|
|
+ "Content-Type": "application/json",
|
|
|
+ "function":"/v1/set"
|
|
|
},
|
|
|
method: "POST",
|
|
|
- data: { version: "1.0.3" },
|
|
|
+ data: { version: "1.0.4" },
|
|
|
complete: function( res ) {
|
|
|
console.log(res)
|
|
|
if( res == null || res.data == null ) {
|
|
@@ -132,9 +133,10 @@ Page({
|
|
|
//获取数据
|
|
|
setTimeout(that._asyncData, 0);
|
|
|
wx.request( {
|
|
|
- url: link + "/v1/pdd/recommend/get",
|
|
|
+ url: link + "/v1/forward/lhf",
|
|
|
header: {
|
|
|
- "Content-Type": "application/json"
|
|
|
+ "Content-Type": "application/json",
|
|
|
+ "function":"/v1/pdd/recommend/get"
|
|
|
},
|
|
|
method: "POST",
|
|
|
data: { offset: that.offset.toString(), limit: that.limit.toString(),channel_type:that.channel_type,pid:that.pid,cat_id:that.cat_id},
|
|
@@ -169,9 +171,10 @@ Page({
|
|
|
// 发送 res.code 到后台换取 openId, sessionKey, unionId
|
|
|
console.log(res)
|
|
|
wx.request( {
|
|
|
- url: link + "/v1/user/open.id/set",
|
|
|
+ url: link + "/v1/forward/lhf",
|
|
|
header: {
|
|
|
- "Content-Type": "application/json"
|
|
|
+ "Content-Type": "application/json",
|
|
|
+ "function":"/v1/user/open.id/set"
|
|
|
},
|
|
|
method: "POST",
|
|
|
//
|
|
@@ -211,9 +214,10 @@ Page({
|
|
|
that.offset = 0
|
|
|
that.limit = 20
|
|
|
wx.request( {
|
|
|
- url: link + "/v1/pdd/recommend/get",
|
|
|
+ url: link + "/v1/forward/lhf",
|
|
|
header: {
|
|
|
- "Content-Type": "application/json"
|
|
|
+ "Content-Type": "application/json",
|
|
|
+ "function":"/v1/pdd/recommend/get"
|
|
|
},
|
|
|
method: "POST",
|
|
|
data: { offset: that.offset.toString(), limit: that.limit.toString(),channel_type:that.channel_type,pid:that.pid,cat_id:that.cat_id},
|
|
@@ -291,9 +295,10 @@ Page({
|
|
|
|
|
|
that.offset +=20
|
|
|
wx.request( {
|
|
|
- url: link + "/v1/pdd/recommend/get",
|
|
|
+ url: link + "/v1/forward/lhf",
|
|
|
header: {
|
|
|
- "Content-Type": "application/json"
|
|
|
+ "Content-Type": "application/json",
|
|
|
+ "function":"/v1/pdd/recommend/get"
|
|
|
},
|
|
|
method: "POST",
|
|
|
data: { offset: that.offset.toString(), limit: that.limit.toString(),channel_type:that.channel_type,pid:that.pid,cat_id:that.cat_id},
|