diff --git a/江可飞/小程序开发/pages/detail/detail.js b/江可飞/小程序开发/pages/detail/detail.js
index 3e5544c..25ab6a8 100644
--- a/江可飞/小程序开发/pages/detail/detail.js
+++ b/江可飞/小程序开发/pages/detail/detail.js
@@ -36,4 +36,5 @@ Page({
duration: 2000
});
},
+
})
\ No newline at end of file
diff --git a/江可飞/小程序开发/pages/detail/detail.wxss b/江可飞/小程序开发/pages/detail/detail.wxss
index 793aa57..d79cbcf 100644
--- a/江可飞/小程序开发/pages/detail/detail.wxss
+++ b/江可飞/小程序开发/pages/detail/detail.wxss
@@ -103,4 +103,4 @@ text {
display: block;
font-size: 25rpx;
margin: 10rpx;
-}
\ No newline at end of file
+}
diff --git a/江可飞/小程序开发/pages/gouwu/gouwu.js b/江可飞/小程序开发/pages/gouwu/gouwu.js
index 5d97fd7..abf7230 100644
--- a/江可飞/小程序开发/pages/gouwu/gouwu.js
+++ b/江可飞/小程序开发/pages/gouwu/gouwu.js
@@ -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
+ })
+ }
+ }
})
diff --git a/江可飞/小程序开发/pages/gouwu/gouwu.wxml b/江可飞/小程序开发/pages/gouwu/gouwu.wxml
index bd728a8..bc22922 100644
--- a/江可飞/小程序开发/pages/gouwu/gouwu.wxml
+++ b/江可飞/小程序开发/pages/gouwu/gouwu.wxml
@@ -61,9 +61,9 @@
¥{{totalPrice}}
-
- 去结算
-
+
+ 去结算
+
diff --git a/江可飞/小程序开发/pages/order/order.js b/江可飞/小程序开发/pages/order/order.js
index 17a98b4..83f9177 100644
--- a/江可飞/小程序开发/pages/order/order.js
+++ b/江可飞/小程序开发/pages/order/order.js
@@ -11,7 +11,7 @@ Page({
'totalPrice': 0,
'address':'湖南师范大学理学院',
'consignee': "杨盼成",
- 'phone': '12345678912',
+ 'phone': '123456789',
'unpaidList': [//待付款
{
'cover': '../index/image/suanfa.jpg',
diff --git a/江可飞/小程序开发/pages/shdz/shdz.js b/江可飞/小程序开发/pages/shdz/shdz.js
index 81d5896..4df5dd3 100644
--- a/江可飞/小程序开发/pages/shdz/shdz.js
+++ b/江可飞/小程序开发/pages/shdz/shdz.js
@@ -15,6 +15,11 @@ Page({
url: '/pages/userInfo/userInfo'
})
},
+ towode: function () {
+ wx.navigateTo({
+ url: "/pages/wode/wode"
+ })
+ },
bindDateChange: function (e) {
this.setData({
date: e.detail.value
@@ -25,10 +30,5 @@ Page({
this.setData({
tapCurrent: current
})
- },
- newAddress: function () {
- wx.navigateTo({
- url: "/pages/wode/wode"
- })
- },
+ }
})
diff --git a/江可飞/小程序开发/pages/shdz/shdz.wxml b/江可飞/小程序开发/pages/shdz/shdz.wxml
index 3cdb679..e76e95a 100644
--- a/江可飞/小程序开发/pages/shdz/shdz.wxml
+++ b/江可飞/小程序开发/pages/shdz/shdz.wxml
@@ -3,14 +3,14 @@
- 李雷
+ 杨盼成
- 科技路高新大都荟
+ 湖南师范大学
- 18888888888
+ 123456789
@@ -27,10 +27,7 @@
删除
-
-
-
- 保存
+保存
diff --git a/江可飞/小程序开发/pages/shdz/shdz.wxss b/江可飞/小程序开发/pages/shdz/shdz.wxss
index 950ac09..8a7c4a5 100644
--- a/江可飞/小程序开发/pages/shdz/shdz.wxss
+++ b/江可飞/小程序开发/pages/shdz/shdz.wxss
@@ -46,7 +46,7 @@
align-items:center;}
.de_color{color:#7d7d7d}
.submit_info{
-margin-top:0rpx;
+ margin-top:0rpx;
position:absolute;
bottom:120rpx;
}
\ No newline at end of file
diff --git a/江可飞/小程序开发/pages/wode/wode.js b/江可飞/小程序开发/pages/wode/wode.js
index f216f1c..d51cc38 100644
--- a/江可飞/小程序开发/pages/wode/wode.js
+++ b/江可飞/小程序开发/pages/wode/wode.js
@@ -40,23 +40,7 @@ Page({
})
},
onLoad: function() {
- console.log('onLoad')
- var that = this
- //调用应用实例的方法获取全局数据
- app.getUserInfo(function(userInfo) {
- //更新数据
- that.setData({
- userInfo: userInfo
- })
- })
- },
- getUserInfo: function(e) {
- console.log(e)
- app.globalData.userInfo = e.detail.userInfo
- this.setData({
- userInfo: e.detail.userInfo,
- hasUserInfo: true
- })
+
},
address: function() {
wx.navigateTo({
diff --git a/江可飞/小程序开发/project.config.json b/江可飞/小程序开发/project.config.json
index 76568dc..2f2a60c 100644
--- a/江可飞/小程序开发/project.config.json
+++ b/江可飞/小程序开发/project.config.json
@@ -13,8 +13,8 @@
},
"compileType": "miniprogram",
"libVersion": "2.4.4",
- "appid": "wxd037e598f9fc428d",
- "projectname": "%E5%B0%8F%E7%A8%8B%E5%BA%8F%E5%BC%80%E5%8F%91%E6%B5%8B%E8%AF%95111",
+ "appid": "wx18f06ad86d422b11",
+ "projectname": "%E5%B0%8F%E7%A8%8B%E5%BA%8F",
"debugOptions": {
"hidedInDevtools": []
},