新增可关闭商品详情购物车开关
parent
9c468fa3f2
commit
8f3dd4fdce
6
App.vue
6
App.vue
|
|
@ -31,8 +31,10 @@
|
|||
default_round_success_icon: "/static/images/common/round-success-icon.png",
|
||||
// 错误圆形提示图片
|
||||
default_round_error_icon: "/static/images/common/round-error-icon.png",
|
||||
// 分享及转发使用页面设置的默认图片及系统默认图片(true 是, false 否)
|
||||
is_share_use_image: true,
|
||||
// 分享及转发使用页面设置的默认图片及系统默认图片(0 否, 1 是)
|
||||
is_share_use_image: 1,
|
||||
// 商品详情页底部导航是否开启购物车功能(0 否, 1 是)
|
||||
is_goods_bottom_opt_cart: 0,
|
||||
// tabbar页面
|
||||
tabbar_pages: [
|
||||
"/pages/index/index",
|
||||
|
|
|
|||
|
|
@ -23,7 +23,7 @@ export default {
|
|||
desc: share.desc,
|
||||
path: share.path + share.query
|
||||
}
|
||||
if(app.globalData.data.is_share_use_image) {
|
||||
if(app.globalData.data.is_share_use_image == 1) {
|
||||
data['imageUrl'] = share.img;
|
||||
}
|
||||
return data;
|
||||
|
|
@ -37,7 +37,7 @@ export default {
|
|||
title: share.title,
|
||||
query: ((share.query || null) != null && share.query.substr(0, 1) == '?') ? share.query.slice(1) : share.query
|
||||
};
|
||||
if(app.globalData.data.is_share_use_image) {
|
||||
if(app.globalData.data.is_share_use_image == 1) {
|
||||
data['imageUrl'] = share.img;
|
||||
}
|
||||
return data;
|
||||
|
|
|
|||
|
|
@ -320,7 +320,7 @@
|
|||
|
||||
<!-- 底部操作 -->
|
||||
<view class="goods-buy-nav oh wh-auto bg-white br-t">
|
||||
<view :class="'bus-items fl tc '+((params.is_opt_back || 0) != 0 ? 'bus-items-2' : '')">
|
||||
<view :class="'bus-items fl tc '+(((params.is_opt_back || 0) == 1 || is_opt_cart == 0) ? 'bus-items-2' : '')">
|
||||
<!-- 是否指定返回操作、返回操作情况下仅展示返回和收藏操作 -->
|
||||
<block v-if="(params.is_opt_back || 0) != 0">
|
||||
<view class="item fl cp">
|
||||
|
|
@ -335,7 +335,7 @@
|
|||
<image :src="nav_home_button_info.icon" mode="scaleToFill"></image>
|
||||
<text class="dis-block text-size-xs cr-gray">{{nav_home_button_info.text}}</text>
|
||||
</view>
|
||||
<view class="item fl cp">
|
||||
<view v-if="is_opt_cart == 1" class="item fl cp">
|
||||
<navigator url="/pages/cart/cart" open-type="switchTab" hover-class="none">
|
||||
<view class="badge-icon">
|
||||
<component-badge :propNumber="quick_nav_cart_count"></component-badge>
|
||||
|
|
@ -648,7 +648,9 @@
|
|||
// 智能工具插件
|
||||
plugins_intellectstools_data: null,
|
||||
// 是否单页预览
|
||||
is_single_page: app.globalData.is_current_single_page() || 0
|
||||
is_single_page: app.globalData.is_current_single_page() || 0,
|
||||
// 是否开启购物车
|
||||
is_opt_cart: app.globalData.data.is_goods_bottom_opt_cart || 0,
|
||||
};
|
||||
},
|
||||
|
||||
|
|
@ -670,9 +672,14 @@
|
|||
// 是否自定义购买事件
|
||||
buy_event_type: params.opt_buy_event_type || 'buy',
|
||||
// 是否指定开启购买弹窗、默认0否、1是
|
||||
popup_status: (parseInt(params.is_opt_buy_status) || 0) == 1
|
||||
popup_status: (parseInt(params.is_opt_buy_status) || 0) == 1,
|
||||
});
|
||||
|
||||
// 是否自定义购物车状态
|
||||
if(params.is_opt_cart !== undefined) {
|
||||
this.setData({is_opt_cart: params.is_opt_cart || 0});
|
||||
}
|
||||
|
||||
// 数据加载
|
||||
this.init();
|
||||
},
|
||||
|
|
|
|||
Loading…
Reference in New Issue