add share hidden func (#239)
This commit is contained in:
@@ -4,6 +4,7 @@ import com.github.pagehelper.PageInfo;
|
||||
import com.mysql.jdbc.StringUtils;
|
||||
import org.apache.commons.logging.Log;
|
||||
import org.apache.commons.logging.LogFactory;
|
||||
import org.linlinjava.litemall.core.system.SystemConfig;
|
||||
import org.linlinjava.litemall.core.util.ResponseUtil;
|
||||
import org.linlinjava.litemall.core.validator.Order;
|
||||
import org.linlinjava.litemall.core.validator.Sort;
|
||||
@@ -185,6 +186,9 @@ public class WxGoodsController {
|
||||
data.put("attribute", goodsAttributeListTask.get());
|
||||
data.put("brand", brandCallableTask.get());
|
||||
data.put("groupon", grouponRulesCallableTask.get());
|
||||
//SystemConfig.isAutoCreateShareImage()
|
||||
data.put("share", SystemConfig.isAutoCreateShareImage());
|
||||
|
||||
}
|
||||
catch (Exception e) {
|
||||
e.printStackTrace();
|
||||
|
||||
@@ -6,6 +6,7 @@ var user = require('../../utils/user.js');
|
||||
|
||||
Page({
|
||||
data: {
|
||||
canShare: false,
|
||||
id: 0,
|
||||
goods: {},
|
||||
groupon: [], //该商品支持的团购规格
|
||||
@@ -166,7 +167,8 @@ Page({
|
||||
userHasCollect: res.data.userHasCollect,
|
||||
shareImage: res.data.shareImage,
|
||||
checkedSpecPrice: res.data.info.retailPrice,
|
||||
groupon: res.data.groupon
|
||||
groupon: res.data.groupon,
|
||||
canShare: res.data.share,
|
||||
});
|
||||
|
||||
//如果是通过分享的团购参加团购,则团购项目应该与分享的一致并且不可更改
|
||||
|
||||
@@ -7,7 +7,7 @@
|
||||
<!-- 分享 -->
|
||||
<view class='goods_name'>
|
||||
<view class='goods_name_left'>{{goods.name}}</view>
|
||||
<view class="goods_name_right" bindtap="shareFriendOrCircle">分享</view>
|
||||
<view hidden="{{!canShare}}" class="goods_name_right" bindtap="shareFriendOrCircle">分享</view>
|
||||
</view>
|
||||
<view class="share-pop-box" hidden="{{!openShare}}">
|
||||
<view class="share-pop">
|
||||
|
||||
Reference in New Issue
Block a user