问题修复
This commit is contained in:
@@ -3,7 +3,9 @@
|
||||
<view class="bg-fff default-box-radius">
|
||||
<view class="default-box-padding u-flex u-row-between">
|
||||
<text class="font-bold">兑换码名称</text>
|
||||
<text class="color-666">{{ form.name }}</text>
|
||||
<view >
|
||||
<up-input v-model="form.name" placeholder="请输入兑换码名称"></up-input>
|
||||
</view>
|
||||
</view>
|
||||
<up-line></up-line>
|
||||
<view class="default-box-padding u-flex u-row-between">
|
||||
@@ -128,6 +130,7 @@ import {
|
||||
} from "@dcloudio/uni-app";
|
||||
import couponStatus from "./components/status.vue";
|
||||
import CouponList from "@/pageMarket/components/coupon-list.vue";
|
||||
import DateTimePicker from "@/pageMarket/components/date-time-picker.vue";
|
||||
|
||||
import Modal from "@/pageMarket/components/modal.vue";
|
||||
import * as couponRedemptionApi from "@/http/api/market/couponRedemption.js";
|
||||
@@ -325,4 +328,12 @@ onReachBottom(() => {
|
||||
border-bottom: none;
|
||||
}
|
||||
}
|
||||
:deep(.uni-input-input){
|
||||
text-align: right;
|
||||
}
|
||||
:deep(.input-placeholder){
|
||||
text-align: right;
|
||||
color: #999;
|
||||
font-size: 28rpx;
|
||||
}
|
||||
</style>
|
||||
|
||||
@@ -122,6 +122,7 @@ const loadFinish = ref(false);
|
||||
const form = reactive({
|
||||
isEnable: 0,
|
||||
useType: "all",
|
||||
shopIdList:[]
|
||||
});
|
||||
|
||||
const actions = [
|
||||
@@ -222,7 +223,7 @@ const handleConfirm = async () => {
|
||||
}
|
||||
|
||||
couponRedemptionApi.enable({
|
||||
shopIdList: form.shopIdList,
|
||||
shopIdList: form.shopIdList||[],
|
||||
useType: form.useType,
|
||||
isEnable: form.isEnable,
|
||||
});
|
||||
@@ -281,6 +282,7 @@ watch(
|
||||
|
||||
async function getConfig() {
|
||||
couponRedemptionApi.status().then((res) => {
|
||||
res.shopIdList = res.shopIdList || [];
|
||||
Object.assign(form, res);
|
||||
});
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user