shish hai 8 meses
pai
achega
65e4b91c5d
Modificáronse 1 ficheiros con 14 adicións e 2 borrados
  1. 14 2
      ghsApp/src/admin/shop/renew.vue

+ 14 - 2
ghsApp/src/admin/shop/renew.vue

@@ -66,6 +66,16 @@
                     <button class="admin-button-com big blue" @click="startRenew(1,customPrice)">购买</button>
                 </view>
             </view>
+            <view class="product-item">
+                <view class="product-header">
+                    <text class="product-name">购买设备</text>
+                    <input type="digit" class="custom-input" placeholder="请输入金额" v-model="machinePrice" @focus="machinePrice=''" />
+                    <input type="text" class="custom-input" style="margin-left:10upx;" placeholder="备注" v-model="remark" @focus="remark=''" />
+                </view>
+                <view class="btn-group">
+                    <button class="admin-button-com big blue" @click="startRenew(2,machinePrice)">购买</button>
+                </view>
+            </view>
         </view>
     </view>
 </template>
@@ -80,7 +90,9 @@ export default {
 			newDeadline:'',
             hasRenew:0,
             renewType:0,
-            customPrice:''
+            customPrice:'',
+            machinePrice:'',
+            remark:''
         }
     },
     computed: {
@@ -118,7 +130,7 @@ export default {
                 }
             }
             this.renewType = type
-            renewShop({price:price,type:type}).then(res=>{
+            renewShop({price:price,type:type,remark:this.remark}).then(res=>{
                 uni.hideLoading()
                 if(res.code == 1){
                     wexinPay(res.data, this.getSuccess, this.getError)