@@ -6,9 +6,9 @@ | |||||
</swiper-item> | </swiper-item> | ||||
</block> | </block> | ||||
</swiper> | </swiper> | ||||
<view class="dots"> | |||||
<!-- <view class="dots"> | |||||
<block wx:for="{{list}}" wx:key="unique"> | <block wx:for="{{list}}" wx:key="unique"> | ||||
<view class="dot{{index == swiperCurrent ? ' active' : ''}}"></view> | <view class="dot{{index == swiperCurrent ? ' active' : ''}}"></view> | ||||
</block> | </block> | ||||
</view> | |||||
</view> --> | |||||
</view> | </view> |
@@ -285,7 +285,11 @@ var config = { | |||||
/** | /** | ||||
* 用户更新位置信息 | * 用户更新位置信息 | ||||
*/ | */ | ||||
updateLBS:"/user/updateLBS" | |||||
updateLBS:"/user/updateLBS", | |||||
/** | |||||
* 用户更新信息 | |||||
*/ | |||||
updateUserInfo:"/user/updateUserInfo" | |||||
}, | }, | ||||
weapp: { | weapp: { | ||||
AppId: weappId | AppId: weappId | ||||
@@ -13,7 +13,6 @@ Page({ | |||||
*/ | */ | ||||
onLoad: function(options) { | onLoad: function(options) { | ||||
let that = this; | let that = this; | ||||
console.log(options) | |||||
wx.showToast({ | wx.showToast({ | ||||
title: '加载中', | title: '加载中', | ||||
icon: "loading", | icon: "loading", | ||||
@@ -296,7 +296,6 @@ Page({ | |||||
}); | }); | ||||
}) | }) | ||||
.catch(err => { | .catch(err => { | ||||
console.log(err); | |||||
that.setData({ | that.setData({ | ||||
showbutton: false, | showbutton: false, | ||||
showbutton1: false, | showbutton1: false, | ||||
@@ -360,18 +359,9 @@ Page({ | |||||
mask: false | mask: false | ||||
}); | }); | ||||
} else if (err.code == 3012) { | } else if (err.code == 3012) { | ||||
wx.showModal({ | |||||
title: '提示', | |||||
content: '您有未支付订单,请先进行支付', | |||||
confirmText: "去支付", | |||||
success: function (res) { | |||||
console.log(res.confirm) | |||||
if (res.confirm) { | |||||
wx.navigateTo({ | |||||
url: '/pages/order/index/index?id=all', | |||||
}) | |||||
} | |||||
} | |||||
wx.showToast({ | |||||
title: err.message, | |||||
icon: "none" | |||||
}) | }) | ||||
} else if (err.code == 11005) { | } else if (err.code == 11005) { | ||||
/** | /** | ||||
@@ -475,13 +465,6 @@ Page({ | |||||
}) | }) | ||||
}, | }, | ||||
/** | |||||
* 生命周期函数--监听页面初次渲染完成 | |||||
*/ | |||||
onReady: function () { | |||||
}, | |||||
/** | /** | ||||
* 生命周期函数--监听页面显示 | * 生命周期函数--监听页面显示 | ||||
*/ | */ | ||||
@@ -519,12 +502,5 @@ Page({ | |||||
*/ | */ | ||||
onPullDownRefresh: function () { | onPullDownRefresh: function () { | ||||
this.checkUser(this.data.paramData) | this.checkUser(this.data.paramData) | ||||
}, | |||||
/** | |||||
* 页面上拉触底事件的处理函数 | |||||
*/ | |||||
onReachBottom: function () { | |||||
} | } | ||||
}) | }) |
@@ -393,25 +393,9 @@ Page({ | |||||
mask: false | mask: false | ||||
}); | }); | ||||
} else if (err.code == 3012) { | } else if (err.code == 3012) { | ||||
wx.showModal({ | |||||
title: '提示', | |||||
content: '您有未支付订单,请先进行支付', | |||||
confirmText: "去支付", | |||||
success: function (res) { | |||||
console.log(res.confirm) | |||||
if (res.confirm) { | |||||
console.log(that.data.isFromSpell) | |||||
if (that.data.isFromSpell){ | |||||
wx.navigateTo({ | |||||
url: '/pages/spellGroup/spellGroup?from=myspellList', | |||||
}) | |||||
}else{ | |||||
wx.navigateTo({ | |||||
url: '/pages/order/index/index?id=all', | |||||
}) | |||||
} | |||||
} | |||||
} | |||||
wx.showToast({ | |||||
title: err.message, | |||||
icon: "none" | |||||
}) | }) | ||||
} else if (err.code == 11005) { | } else if (err.code == 11005) { | ||||
/** | /** | ||||
@@ -52,6 +52,9 @@ Page({ | |||||
myspellList: true, | myspellList: true, | ||||
lists: null | lists: null | ||||
}) | }) | ||||
wx.setNavigationBarTitle({ | |||||
title: '我的拼团' | |||||
}) | |||||
}else{ | }else{ | ||||
that.getList(1, "spellList"); | that.getList(1, "spellList"); | ||||
that.setData({ | that.setData({ | ||||
@@ -60,6 +63,9 @@ Page({ | |||||
myspellList: false, | myspellList: false, | ||||
lists: null | lists: null | ||||
}) | }) | ||||
wx.setNavigationBarTitle({ | |||||
title: '拼团专场' | |||||
}) | |||||
} | } | ||||
} | } | ||||
that.getUserInfo(); | that.getUserInfo(); | ||||
@@ -151,7 +157,6 @@ Page({ | |||||
return spellStatus.filter(item => status == item.value)[0].name | return spellStatus.filter(item => status == item.value)[0].name | ||||
}, | }, | ||||
gotoPay(e){ | gotoPay(e){ | ||||
console.log(e,333) | |||||
this.setData({ | this.setData({ | ||||
reloadIf:true | reloadIf:true | ||||
}) | }) | ||||
@@ -69,6 +69,7 @@ Page({ | |||||
}, | }, | ||||
onLoad() { | onLoad() { | ||||
this.getLocation(); | this.getLocation(); | ||||
this.updateUserInfo(); | |||||
}, | }, | ||||
/** | /** | ||||
* 获得经纬度 | * 获得经纬度 | ||||
@@ -96,6 +97,23 @@ Page({ | |||||
} | } | ||||
}) | }) | ||||
}, | }, | ||||
/** | |||||
* 获取手机信息 | |||||
*/ | |||||
updateUserInfo() { | |||||
wx.getSystemInfo({ | |||||
success: function(res) { | |||||
Http.post({ | |||||
url: config.api.updateUserInfo, | |||||
data: { | |||||
systemInfo: JSON.stringify(res) | |||||
} | |||||
}).then(res => { | |||||
console.log(res) | |||||
}) | |||||
} | |||||
}) | |||||
}, | |||||
/** | /** | ||||
* 生命周期函数--监听页面显示 | * 生命周期函数--监听页面显示 | ||||
*/ | */ | ||||