|
@@ -66,6 +66,16 @@
|
|
|
<button class="admin-button-com big blue" @click="startRenew(1,customPrice)">购买</button>
|
|
<button class="admin-button-com big blue" @click="startRenew(1,customPrice)">购买</button>
|
|
|
</view>
|
|
</view>
|
|
|
</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>
|
|
|
</view>
|
|
</view>
|
|
|
</template>
|
|
</template>
|
|
@@ -80,7 +90,9 @@ export default {
|
|
|
newDeadline:'',
|
|
newDeadline:'',
|
|
|
hasRenew:0,
|
|
hasRenew:0,
|
|
|
renewType:0,
|
|
renewType:0,
|
|
|
- customPrice:''
|
|
|
|
|
|
|
+ customPrice:'',
|
|
|
|
|
+ machinePrice:'',
|
|
|
|
|
+ remark:''
|
|
|
}
|
|
}
|
|
|
},
|
|
},
|
|
|
computed: {
|
|
computed: {
|
|
@@ -118,7 +130,7 @@ export default {
|
|
|
}
|
|
}
|
|
|
}
|
|
}
|
|
|
this.renewType = type
|
|
this.renewType = type
|
|
|
- renewShop({price:price,type:type}).then(res=>{
|
|
|
|
|
|
|
+ renewShop({price:price,type:type,remark:this.remark}).then(res=>{
|
|
|
uni.hideLoading()
|
|
uni.hideLoading()
|
|
|
if(res.code == 1){
|
|
if(res.code == 1){
|
|
|
wexinPay(res.data, this.getSuccess, this.getError)
|
|
wexinPay(res.data, this.getSuccess, this.getError)
|