diff --git a/components/goods_list/goods_list.wxml b/components/goods_list/goods_list.wxml index bfbb243..13a075c 100644 --- a/components/goods_list/goods_list.wxml +++ b/components/goods_list/goods_list.wxml @@ -23,7 +23,7 @@ {{filter.toFix(item[card_field],2)}} - {{card_name}} + {{card_name}} diff --git a/components/goods_list/goods_list.wxss b/components/goods_list/goods_list.wxss index 15429bb..437a2a9 100644 --- a/components/goods_list/goods_list.wxss +++ b/components/goods_list/goods_list.wxss @@ -2,7 +2,7 @@ margin-top: 40rpx; } .ib{ - display: inline-block; + display: inline-block; } .fs20{ font-size: 20rpx; @@ -151,6 +151,11 @@ color: #b9b9b9; } .line_th{ text-decoration: line-through} -.card_bg {display: flex; width: 108rpx;height: 28rpx; align-items: center; border-radius: 26rpx; font-size: 19rpx; +.card_bg {display: flex; padding: 2rpx 10rpx;height: 28rpx; align-items: center; border-radius: 26rpx; font-size: 19rpx;line-height: 28rpx;max-width: 110rpx; background: #333; color: #fff; justify-content: center; margin-left: 2rpx;} -.card_bg image{ width: 19rpx; height: 19rpx; margin-right: 1rpx;} \ No newline at end of file +.card_bg image{ width: 19rpx; height: 19rpx; margin-right: 1rpx;}.card_bg .card_name{ + max-width: 76rpx; + width: auto; + overflow: hidden; + white-space:nowrap; +} \ No newline at end of file diff --git a/pages/getphone/getphone.js b/pages/getphone/getphone.js index c2a8042..76a4154 100644 --- a/pages/getphone/getphone.js +++ b/pages/getphone/getphone.js @@ -17,7 +17,9 @@ Page({ var openid = getApp().globalData.openid; if (openid == "" || openid == null) { - openid = getApp().globalData.userInfo.weapp_openid; + + if (getApp().globalData.userInfo) + openid = getApp().globalData.userInfo.weapp_openid; } if(openid=="" || openid==null ){ diff --git a/pages/goods/goodsInfo/goodsInfo.js b/pages/goods/goodsInfo/goodsInfo.js index cbe4ee7..d4bfb97 100644 --- a/pages/goods/goodsInfo/goodsInfo.js +++ b/pages/goods/goodsInfo/goodsInfo.js @@ -3045,11 +3045,11 @@ Page({ is_gps: "3" }); } - th.data.is_get_local_ok = 1; } }) }else{ + th.data.is_get_local_ok = 1; th.get_sto(); } diff --git a/pages/goods/goodsInfo/goodsInfo.wxml b/pages/goods/goodsInfo/goodsInfo.wxml index 7bf7aa6..940dd39 100644 --- a/pages/goods/goodsInfo/goodsInfo.wxml +++ b/pages/goods/goodsInfo/goodsInfo.wxml @@ -1,21 +1,21 @@ - + - + {{item.name}} - + + + @@ -78,6 +80,7 @@ + @@ -225,10 +228,11 @@ + - + @@ -244,6 +248,7 @@ 原价:¥{{data.market_price}} + @@ -251,9 +256,14 @@ - - + + + + + + + {{g_filters.get_card_price(data,card_list,1)}} @@ -263,10 +273,11 @@ ¥{{g_filters.get_card_price(data,card_list,0)}} - - - + + + + @@ -309,15 +320,8 @@ - - - - - - - - - + + {{data.goods_name}} @@ -325,7 +329,7 @@ - 销量:{{data.sales_sum}}件 + 销量:{{data.sales_sum}}件 折扣:{{data.disc}}折 {{categories3[0].num}}人评价 @@ -344,7 +348,7 @@ - + {{data.goods_name}} @@ -371,6 +375,37 @@ + + + + + + + + 选择门店 + + + 更多门店 + + + + + + + + {{def_pick_store.pickup_name}} + + + 距离:{{def_pick_store.distance>1000?filters.toFix(def_pick_store.distance/1000,2)+"km":filters.toFix(def_pick_store.distance,0)+"m"}} + + + + 地址:{{def_pick_store.fulladdress}} + + + + + @@ -412,16 +447,16 @@ - + - {{item.username}} + {{item.is_anonymous!=1?item.username:'匿名'}} - - {{item.content?item.content:''}} + + {{item.content?item.content:''}} {{item.add_time}} @@ -429,7 +464,8 @@ - + + @@ -503,7 +539,7 @@ 规格 - {{data.goods_spec==""?"规格1":data.goods_spec}} + {{filters.show_gui_ge(data.goods_spec,data.goods_color)}} @@ -532,11 +568,27 @@ - + + + + + + + + + {{item.shop_price}} + + 原价¥{{item.market_price}} + + {{item.goods_name}} + + + + - +