|
|
|
@ -5,6 +5,7 @@ Page({
|
|
|
|
|
* 页面的初始数据
|
|
|
|
|
*/
|
|
|
|
|
data: {
|
|
|
|
|
'iscart':false,
|
|
|
|
|
'goodList': [
|
|
|
|
|
{
|
|
|
|
|
'cover': '/pages/index/image/suanfa.jpg',
|
|
|
|
@ -178,6 +179,7 @@ Page({
|
|
|
|
|
this.calculateTotal();
|
|
|
|
|
},
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
|
* 生命周期函数--监听页面加载
|
|
|
|
|
*/
|
|
|
|
@ -233,6 +235,18 @@ Page({
|
|
|
|
|
onShareAppMessage: function () {
|
|
|
|
|
|
|
|
|
|
},
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
newAddress: function () {
|
|
|
|
|
if (this.data.totalCount >0)
|
|
|
|
|
{wx.navigateTo({
|
|
|
|
|
url: '/pages/order/order'
|
|
|
|
|
})}
|
|
|
|
|
else
|
|
|
|
|
{
|
|
|
|
|
wx.showToast({
|
|
|
|
|
title: '没有选择商品',
|
|
|
|
|
icon: 'success',
|
|
|
|
|
duration: 2000
|
|
|
|
|
})
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
})
|
|
|
|
|