Jelajahi Sumber

订单模块修改

zhengjinyi 3 tahun lalu
induk
melakukan
d1e0b2fe3d

+ 1 - 1
src/main/resources/static/js/product/promotions.js

@@ -77,7 +77,7 @@ var promotionsList = new Vue({
                     var resultData = res.data.list;
                     var productIdArr = [];
                     resultData.map(function (item) {
-                        productIdArr.push(item.id)
+                        productIdArr.push(item.productId)
                     });
                     setProductPrice(resultData, productIdArr.join(","), _self.userId, function () {
                         _self.$forceUpdate();

+ 2 - 2
src/main/resources/templates/product/promotions.html

@@ -37,10 +37,10 @@
         <ul class="productList clear mfw">
             <li class="productItem mfc" v-for="p in listData">
                 <div class="item">
-                    <a class="image" :href="'/product-'+p.id+'.html'" target="_blank">
+                    <a class="image" :href="'/product-'+p.productId+'.html'" target="_blank">
                         <img :src="p.image" :alt="p.name">
                     </a>
-                    <a class="name" :href="'/product-'+p.id+'.html'" target="_blank">
+                    <a class="name" :href="'/product-'+p.productId+'.html'" target="_blank">
                         <span v-html="p.name"></span>
                     </a>
                     <div class="price mfhc">