|
@@ -116,12 +116,12 @@ Page({
|
|
|
that.pageSize = 18
|
|
|
|
|
|
wx.request( {
|
|
|
- url: "http://49.234.19.130:8081/v1/set",
|
|
|
+ url: "https://www.shisanmiao.com/v1/set",
|
|
|
header: {
|
|
|
"Content-Type": "application/json"
|
|
|
},
|
|
|
method: "POST",
|
|
|
- data: { version: "1.0.1" },
|
|
|
+ data: { version: "1.0.0" },
|
|
|
complete: function( res ) {
|
|
|
console.log(res)
|
|
|
if( res == null || res.data == null ) {
|
|
@@ -129,7 +129,10 @@ Page({
|
|
|
return;
|
|
|
}
|
|
|
if (res.data.data.type == "true"){
|
|
|
- wx.navigateTo({
|
|
|
+ // wx.reLanch({
|
|
|
+ // url: 'pages/search/search'
|
|
|
+ // })
|
|
|
+ wx.redirectTo({
|
|
|
url: '../search/search'
|
|
|
})
|
|
|
}else{
|
|
@@ -137,12 +140,12 @@ Page({
|
|
|
//获取数据
|
|
|
setTimeout(that._asyncData, 0);
|
|
|
wx.request( {
|
|
|
- url: "http://49.234.19.130:8081/v1/pdd/ddk/search",
|
|
|
+ url: "https://www.shisanmiao.com/v1/pdd/ddk/search",
|
|
|
header: {
|
|
|
"Content-Type": "application/json"
|
|
|
},
|
|
|
method: "POST",
|
|
|
- data: { page: that.page.toString(), page_size: that.pageSize.toString(),with_coupon:"true" },
|
|
|
+ data: { page: that.page.toString(), page_size: that.pageSize.toString()},
|
|
|
complete: function( res ) {
|
|
|
wx.hideLoading();
|
|
|
console.log(res)
|
|
@@ -186,12 +189,12 @@ Page({
|
|
|
that.page = 1
|
|
|
that.pageSize = 18
|
|
|
wx.request( {
|
|
|
- url: "http://49.234.19.130:8081/v1/pdd/ddk/search",
|
|
|
+ url: "https://www.shisanmiao.com/v1/pdd/ddk/search",
|
|
|
header: {
|
|
|
"Content-Type": "application/json"
|
|
|
},
|
|
|
method: "POST",
|
|
|
- data: { page: that.page.toString(), page_size: that.pageSize.toString(),with_coupon:"true", activity_tags: that.activity_tags, pid:that.pid, keyword: that.keyword},
|
|
|
+ data: { page: that.page.toString(), page_size: that.pageSize.toString(), activity_tags: that.activity_tags, pid:that.pid, keyword: that.keyword},
|
|
|
complete: function( res ) {
|
|
|
wx.hideLoading();
|
|
|
console.log(res)
|
|
@@ -235,12 +238,12 @@ Page({
|
|
|
that.page = 1
|
|
|
that.pageSize = 18
|
|
|
wx.request( {
|
|
|
- url: "http://49.234.19.130:8081/v1/pdd/ddk/search",
|
|
|
+ url: "https://www.shisanmiao.com/v1/pdd/ddk/search",
|
|
|
header: {
|
|
|
"Content-Type": "application/json"
|
|
|
},
|
|
|
method: "POST",
|
|
|
- data: { page: that.page.toString(), page_size: that.pageSize.toString(),with_coupon:"true", activity_tags: that.activity_tags},
|
|
|
+ data: { page: that.page.toString(), page_size: that.pageSize.toString(), activity_tags: that.activity_tags},
|
|
|
complete: function( res ) {
|
|
|
wx.hideLoading();
|
|
|
console.log(res)
|
|
@@ -269,7 +272,7 @@ Page({
|
|
|
var that=this
|
|
|
var currentPage=that.data.page+1;
|
|
|
wx.request({
|
|
|
- url: 'http://49.234.19.130:8081/v1/pdd/ddk/search',
|
|
|
+ url: 'https://www.shisanmiao.com/v1/pdd/ddk/search',
|
|
|
data: {
|
|
|
listId:that.data.listId,
|
|
|
pageSize:10,
|
|
@@ -326,13 +329,13 @@ Page({
|
|
|
that.activity_tags = ""
|
|
|
|
|
|
wx.request( {
|
|
|
- url: "http://49.234.19.130:8081/v1/pdd/ddk/search",
|
|
|
+ url: "https://www.shisanmiao.com/v1/pdd/ddk/search",
|
|
|
header: {
|
|
|
"Content-Type": "application/json"
|
|
|
},
|
|
|
method: "POST",
|
|
|
// data: { page: that.page.toString(), page_size: that.pageSize.toString(),with_coupon:"true", activity_tags: that.activity_tags},
|
|
|
- data: { page: that.page.toString(), page_size: that.pageSize.toString(),with_coupon:"true", pid:that.pid, activity_tags: that.activity_tags,keyword: that.keyword},
|
|
|
+ data: { page: that.page.toString(), page_size: that.pageSize.toString(), pid:that.pid, activity_tags: that.activity_tags,keyword: that.keyword},
|
|
|
complete: function( res ) {
|
|
|
wx.hideLoading();
|
|
|
|
|
@@ -398,14 +401,14 @@ Page({
|
|
|
|
|
|
that.page +=1
|
|
|
wx.request( {
|
|
|
- url: "http://49.234.19.130:8081/v1/pdd/ddk/search",
|
|
|
+ url: "https://www.shisanmiao.com/v1/pdd/ddk/search",
|
|
|
// url: "http://127.0.0.1:8081/v1/pdd/ddk/search",
|
|
|
header: {
|
|
|
"Content-Type": "application/json"
|
|
|
},
|
|
|
method: "POST",
|
|
|
//data: { cityname: "上海", key: "1430ec127e097e1113259c5e1be1ba70" },
|
|
|
- data: { page: that.page.toString(), page_size: that.pageSize.toString(),with_coupon:"true", activity_tags: that.activity_tags,keyword:that.keyword,pid:that.pid},
|
|
|
+ data: { page: that.page.toString(), page_size: that.pageSize.toString(), activity_tags: that.activity_tags,keyword:that.keyword,pid:that.pid},
|
|
|
complete: function( res ) {
|
|
|
wx.hideLoading();
|
|
|
console.log(res)
|