Browse Source

修改了产品详情页面跳转是否显示

liuzhiwei 7 years ago
parent
commit
c84be7a69a

+ 1 - 1
wateroPF-wechat-web/src/main/webapp/WEB-INF/views/wechat/chanpin_details.html

@@ -65,7 +65,7 @@
 
 
 		<div class="chanpin-ditails-dic">
 		<div class="chanpin-ditails-dic">
 			<ul>
 			<ul>
-				<li class="color-list">
+				<li class="color-list" id="product_details" style="display: none;">
 					<button type="button" class="blue chanpin_details" proid="59" colorid="41">蓝色款</button><button type="button" class="red chanpin_details" proid="56" colorid="37">红色款</button><button type="button" class="black chanpin_details" proid="57" colorid="39">黑色款</button>
 					<button type="button" class="blue chanpin_details" proid="59" colorid="41">蓝色款</button><button type="button" class="red chanpin_details" proid="56" colorid="37">红色款</button><button type="button" class="black chanpin_details" proid="57" colorid="39">黑色款</button>
 				</li>
 				</li>
 				<!-- 产品参数图 -->
 				<!-- 产品参数图 -->

+ 7 - 0
wateroPF-wechat-web/src/main/webapp/common/shop/js/page/chanpin_details.js

@@ -194,6 +194,13 @@ function selectProductInfo(productId) {
 				if(dt.data.product.productId == 28) {
 				if(dt.data.product.productId == 28) {
 					goodStatus = false
 					goodStatus = false
 				}
 				}
+
+				if (dt.data.product.productType.typeId == 1 || dt.data.product.productType.typeId == 11 ||
+                    dt.data.product.productType.typeId == 12 || dt.data.product.productType.typeId == 13) {
+					$('#product_details').show();
+				} else {
+                    $('#product_details').hide();
+				}
 				shareOpenid = dt.data.shareOpenid;
 				shareOpenid = dt.data.shareOpenid;
 				var imageNote = "<div class='mui-slider-item mui-slider-item-duplicate'><a href='#'><img src='" + dt.data.product.pictureList[0].pictureUrl + "'></a></div>";
 				var imageNote = "<div class='mui-slider-item mui-slider-item-duplicate'><a href='#'><img src='" + dt.data.product.pictureList[0].pictureUrl + "'></a></div>";
 				for(var i = 0; i < dt.data.product.pictureList.length; i += 1) {
 				for(var i = 0; i < dt.data.product.pictureList.length; i += 1) {