...
|
...
|
@@ -244,7 +244,7 @@ Page({ |
|
|
},
|
|
|
|
|
|
// 进入生日
|
|
|
birthday() {
|
|
|
birthday(e) {
|
|
|
let that = this;
|
|
|
let token = wx.getStorageSync('token');
|
|
|
if (token == '') {
|
...
|
...
|
@@ -259,8 +259,9 @@ Page({ |
|
|
})
|
|
|
}, 1300)
|
|
|
} else {
|
|
|
console.log(e)
|
|
|
wx.navigateTo({
|
|
|
url: '/pages/birthday/birthday',
|
|
|
url: '/pages/birthday/birthday?type='+e.currentTarget.id,
|
|
|
})
|
|
|
|
|
|
}
|
...
|
...
|
@@ -281,7 +282,6 @@ Page({ |
|
|
}
|
|
|
this.get_notice()
|
|
|
this.get_shopnum()
|
|
|
this.getmessagelist();
|
|
|
console.log('998867', this.data.pid)
|
|
|
// if(this.data.pid){
|
|
|
// this.get_info(this.data.pid, 2);
|
...
|
...
|
@@ -440,7 +440,7 @@ Page({ |
|
|
pageNum: 6
|
|
|
|
|
|
}
|
|
|
app.post(url, data, "POST").then((r) => {
|
|
|
app.postk(url, data, "POST").then((r) => {
|
|
|
console.log(r)
|
|
|
console.log(r.msg.residue_time)
|
|
|
that.setData({
|
...
|
...
|
@@ -677,31 +677,31 @@ Page({ |
|
|
let id = e.currentTarget.dataset.id
|
|
|
let style = e.currentTarget.dataset.style;
|
|
|
console.log(style)
|
|
|
if (token == '') {
|
|
|
wx.showModal({
|
|
|
title: '提示',
|
|
|
content: '请先登录',
|
|
|
success(res) {
|
|
|
if (res.confirm) {
|
|
|
wx.navigateTo({
|
|
|
url: '/pages/register/register',
|
|
|
})
|
|
|
} else if (res.cancel) {}
|
|
|
}
|
|
|
})
|
|
|
} else {
|
|
|
let login_new = wx.getStorageSync('login');
|
|
|
// if (token == '') {
|
|
|
// wx.showModal({
|
|
|
// title: '提示',
|
|
|
// content: '请先登录',
|
|
|
// success(res) {
|
|
|
// if (res.confirm) {
|
|
|
// wx.navigateTo({
|
|
|
// url: '/pages/register/register',
|
|
|
// })
|
|
|
// } else if (res.cancel) {}
|
|
|
// }
|
|
|
// })
|
|
|
// } else {
|
|
|
// let login_new = wx.getStorageSync('login');
|
|
|
|
|
|
if (style == 2) {
|
|
|
wx.navigateTo({
|
|
|
url: '/pages/outerChain/outerChain?src=' + e.currentTarget.dataset.src
|
|
|
})
|
|
|
} else {
|
|
|
// if (style == 2) {
|
|
|
// wx.navigateTo({
|
|
|
// url: '/pages/outerChain/outerChain?src=' + e.currentTarget.dataset.src
|
|
|
// })
|
|
|
// } else {
|
|
|
wx.navigateTo({
|
|
|
url: '/pages/shop_detail/shop_detail?id=' + id
|
|
|
})
|
|
|
}
|
|
|
}
|
|
|
// }
|
|
|
// }
|
|
|
},
|
|
|
|
|
|
// 排序
|
...
|
...
|
@@ -791,9 +791,7 @@ Page({ |
|
|
|
|
|
})
|
|
|
if(index==0){
|
|
|
this.setData({
|
|
|
isyouzhi: 1
|
|
|
})
|
|
|
|
|
|
if(this.data.stick==1){
|
|
|
wx.pageScrollTo({
|
|
|
duration: 3,
|
...
|
...
|
@@ -805,6 +803,9 @@ Page({ |
|
|
}
|
|
|
this.getyouzhi()
|
|
|
}else{
|
|
|
this.setData({
|
|
|
isyouzhi: 1
|
|
|
})
|
|
|
this.getgoodlist()
|
|
|
if(this.data.stick==1){
|
|
|
wx.pageScrollTo({
|
...
|
...
|
@@ -951,7 +952,7 @@ Page({ |
|
|
} else if (c_index == 2) {
|
|
|
params.paynum = that.data.paynum
|
|
|
}
|
|
|
app.post(url, params).then((res) => {
|
|
|
app.postk(url, params).then((res) => {
|
|
|
if (that.data.page == 1) {
|
|
|
wx.hideLoading()
|
|
|
that.setData({
|
...
|
...
|
@@ -984,7 +985,7 @@ Page({ |
|
|
get_shopnum() {
|
|
|
let that = this
|
|
|
let url = app.interface.shopcarNum
|
|
|
app.post(url, {}).then((res) => {
|
|
|
app.postk(url, {}).then((res) => {
|
|
|
if (res.msg > 0) {
|
|
|
wx.showTabBarRedDot({
|
|
|
index: 2,
|
...
|
...
|
@@ -1011,7 +1012,7 @@ Page({ |
|
|
pageNum: 10,
|
|
|
|
|
|
}
|
|
|
app.post(url, data, "POST").then((r) => {
|
|
|
app.postk(url, data, "POST").then((r) => {
|
|
|
// console.log(r)
|
|
|
// that.setData({
|
|
|
// messagelist: that.data.messagelist.concat(r.msg)
|
...
|
...
|
@@ -1067,10 +1068,13 @@ Page({ |
|
|
console.log('woshitoe', token)
|
|
|
if (token != "") {
|
|
|
this.getInfoFun()
|
|
|
this.getmessagelist();
|
|
|
// this.get_shopnum()
|
|
|
|
|
|
|
|
|
}
|
|
|
this.get_notice()
|
|
|
this.get_shopnum()
|
|
|
this.getmessagelist();
|
|
|
|
|
|
console.log('998867', this.data.pid)
|
|
|
if (this.data.pid) {
|
|
|
// this.get_info(this.data.pid, 2);
|
...
|
...
|
@@ -1084,7 +1088,6 @@ Page({ |
|
|
// 获取一级分类
|
|
|
this.getonkind();
|
|
|
|
|
|
|
|
|
},
|
|
|
|
|
|
/**
|
...
|
...
|
|