From 07420f06854c5d4f76ff156a77dd29342c3e7b4d Mon Sep 17 00:00:00 2001 From: usgeek <940208412@qq.com> Date: Mon, 27 Aug 2018 14:55:57 +0800 Subject: [PATCH] =?UTF-8?q?goods=E9=A1=B5=E9=9D=A2=E5=BE=AE=E8=B0=83?= =?UTF-8?q?=EF=BC=8C=E7=99=BB=E9=99=86=E6=8C=89=E9=92=AE=E5=BE=AE=E8=B0=83?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- litemall-wx/pages/cart/cart.wxml | 2 +- litemall-wx/pages/goods/goods.js | 11 ++ litemall-wx/pages/goods/goods.wxml | 293 ++++++++++++++--------------- litemall-wx/pages/goods/goods.wxss | 157 ++++++++-------- 4 files changed, 239 insertions(+), 224 deletions(-) diff --git a/litemall-wx/pages/cart/cart.wxml b/litemall-wx/pages/cart/cart.wxml index 18d923cd..092ce0ac 100644 --- a/litemall-wx/pages/cart/cart.wxml +++ b/litemall-wx/pages/cart/cart.wxml @@ -3,7 +3,7 @@ 还没有登录 - + diff --git a/litemall-wx/pages/goods/goods.js b/litemall-wx/pages/goods/goods.js index ece9ba8e..e79d855d 100644 --- a/litemall-wx/pages/goods/goods.js +++ b/litemall-wx/pages/goods/goods.js @@ -41,6 +41,17 @@ Page({ path: '/pages/index/index?goodId=' + this.data.id } }, + + shareFriendOrCircle: function () { + //var that = this; + if (this.data.openShare === false) { + this.setData({ + openShare: !this.data.openShare + }); + } else { + return false; + } + }, // 保存分享图 saveShare: function() { diff --git a/litemall-wx/pages/goods/goods.wxml b/litemall-wx/pages/goods/goods.wxml index 11f3ad59..1db20e80 100644 --- a/litemall-wx/pages/goods/goods.wxml +++ b/litemall-wx/pages/goods/goods.wxml @@ -1,10 +1,10 @@ - - - - - - + + + + + + {{goods.name}} 分享 @@ -26,169 +26,168 @@ - - - {{goods.name}} - {{goods.goodsBrief}} - - 原价:¥{{goods.counterPrice}} - 现价:¥{{checkedSpecPrice}} - + + + + {{goods.goodsBrief}} + + 原价:¥{{goods.counterPrice}} + 现价:¥{{checkedSpecPrice}} + - - - {{brand.name}} - - - - - - {{checkedSpecText}} - - - - - - 评价({{comment.count > 999 ? '999+' : comment.count}}) - 查看全部 - - - - - - - - {{item.nickname}} - - {{item.addTime}} + + + {{brand.name}} + + - - {{item.content}} - - - - - - - - 商品参数 - - - {{item.attribute}} - {{item.value}} - + + {{checkedSpecText}} + + + + + + 评价({{comment.count > 999 ? '999+' : comment.count}}) + 查看全部 + + + + + + + + {{item.nickname}} + + {{item.addTime}} + + + {{item.content}} + + + + + + + + + 商品参数 + + + {{item.attribute}} + {{item.value}} + + - - - -