shish 7 luni în urmă
părinte
comite
9670722b66

+ 1 - 1
ghsPad/src/pages/home/components/rightItem.vue

@@ -28,7 +28,7 @@
 
         <!-- 花材网格选择弹框 -->
         <uni-popup ref="selectFlowerGridRef" background-color="#fff" type="center" :animation="false">
-            <selectFlowerGrid :flowerData="globalGridFlowerList" @confirm="confirmFlowerGrid" @cancel="cancelFlowerGrid"></selectFlowerGrid>
+            <selectFlowerGrid :flowerData="globalGridFlowerList" @confirm="confirmFlowerGrid" @cancel="cancelFlowerGrid" :customId.sync="customId" :customData.sync="customData"></selectFlowerGrid>
         </uni-popup>
 
     </view>

+ 5 - 6
ghsPad/src/pages/home/components/selectFlowerGrid.vue

@@ -3,8 +3,8 @@
         <!-- 标题栏 -->
         <view class="popup-header">
             <view class="header-content">
-                <text>剩7扎 单价:</text>
-                <input class="price-input" @focus="option.price=''" v-model="option.price" type="digit" />
+                <text>剩{{customData.stock?parseFloat(customData.stock):0}}扎 单价:</text>
+                <input class="price-input" @focus="customData.unitPrice=''" v-model="customData.unitPrice" type="digit" />
             </view>
         </view>
 
@@ -58,10 +58,9 @@
 export default {
     name: 'selectFlowerGrid',
     props: {
-        flowerData: {
-            type: Array,
-            default: () => []
-        }
+        flowerData: { type: Array, default: () => [] },
+        customData:{ type:Object, default:()=>{} },
+		customId: { type: Number, default: 0 }
     },
     data() {
         return {