优化弹窗代码

This commit is contained in:
TOP糯米 2023-03-05 22:41:28 +08:00
parent dee05e9eea
commit e6125ddea8
2 changed files with 8 additions and 8 deletions

View File

@ -145,7 +145,7 @@
<text class="desc"> 请勿填写过低价格避免无师傅接单 </text> <text class="desc"> 请勿填写过低价格避免无师傅接单 </text>
</view> </view>
<text class="input-desc"> 请填写您的心理价位等待师傅接单 </text> <text class="input-desc"> 请填写您的心理价位等待师傅接单 </text>
<view class="custom-input-box" @click="editPrice = true"> <view class="custom-input-box" @click="setPriceModal = true">
<text class="iconfont icon-bianji"></text> <text class="iconfont icon-bianji"></text>
<text class="price">¥ {{ utils.formatNumber(price, 2) }}</text> <text class="price">¥ {{ utils.formatNumber(price, 2) }}</text>
</view> </view>
@ -165,7 +165,7 @@
</view> </view>
</view> </view>
</view> </view>
<widget-modal :show="editPrice" title="输入心理价位" @close="editPrice = false"> <widget-modal v-show="setPriceModal" title="输入心理价位" @close="setPriceModal = false">
<view class="price-box"> <view class="price-box">
<view class="price-input"> <view class="price-input">
<view class="input-box"> <view class="input-box">
@ -180,7 +180,7 @@
</view> </view>
<text class="util"></text> <text class="util"></text>
</view> </view>
<view class="submit-price" @click="editPrice = false"> <view class="submit-price">
<text>确认</text> <text>确认</text>
</view> </view>
</view> </view>
@ -203,7 +203,7 @@ export default {
pageTitle: "发布需求", pageTitle: "发布需求",
maxlength: 300, maxlength: 300,
step: 1, step: 1,
editPrice: false, setPriceModal: false,
total: 0, total: 0,
// //
type: 1, type: 1,

View File

@ -8,7 +8,7 @@
<view class="title-box">申请退款</view> <view class="title-box">申请退款</view>
<view class="price-box"> <view class="price-box">
<text class="number">¥{{ utils.formatNumber(price, 2) }}</text> <text class="number">¥{{ utils.formatNumber(price, 2) }}</text>
<view v-if="type == 'apply'" class="modify-icon" @click="showEditModal = true"> <view v-if="type == 'apply'" class="modify-icon" @click="postPriceModal = true">
<text class="iconfont icon-bianji"></text> <text class="iconfont icon-bianji"></text>
<text class="text">修改金额</text> <text class="text">修改金额</text>
</view> </view>
@ -57,7 +57,7 @@
<view v-if="type == 'apply'" class="common-save-form-btn"> <view v-if="type == 'apply'" class="common-save-form-btn">
<view class="btn" @click="save">提交</view> <view class="btn" @click="save">提交</view>
</view> </view>
<widget-modal :show="showEditModal" title="修改退款金额" @close="showEditModal = false"> <widget-modal v-show="postPriceModal" title="修改退款金额" @close="postPriceModal = false">
<view class="price-box"> <view class="price-box">
<view class="price-input"> <view class="price-input">
<view class="input-box"> <view class="input-box">
@ -72,7 +72,7 @@
</view> </view>
<text class="util"></text> <text class="util"></text>
</view> </view>
<view class="submit-price" @click="showEditModal = false"> <view class="submit-price">
<text>确认</text> <text>确认</text>
</view> </view>
</view> </view>
@ -90,7 +90,7 @@ export default {
utils: this.$utils, utils: this.$utils,
type: "apply", type: "apply",
pageTitle: "申请退款", pageTitle: "申请退款",
showEditModal: false, postPriceModal: false,
maxlength: 200, maxlength: 200,
id: 1, id: 1,
orderId: "xxgfdkgn1223", orderId: "xxgfdkgn1223",