publish 1.5 version

This commit is contained in:
java110 2023-06-07 13:26:45 +08:00
parent 897aebc6a6
commit 3e4179098b

View File

@ -30,8 +30,7 @@
return vc.validate.validate({
addCouponPropertyPoolInfo: vc.component.addCouponPropertyPoolInfo
}, {
'addCouponPropertyPoolInfo.couponName': [
{
'addCouponPropertyPoolInfo.couponName': [{
limit: "required",
param: "",
errInfo: "优惠券名称不能为空"
@ -42,8 +41,7 @@
errInfo: "优惠券名称不能超过64"
},
],
'addCouponPropertyPoolInfo.fromType': [
{
'addCouponPropertyPoolInfo.fromType': [{
limit: "required",
param: "",
errInfo: "来自方式不能为空"
@ -54,8 +52,7 @@
errInfo: "来自方式不能超过12"
},
],
'addCouponPropertyPoolInfo.toType': [
{
'addCouponPropertyPoolInfo.toType': [{
limit: "required",
param: "",
errInfo: "用途不能为空"
@ -66,8 +63,7 @@
errInfo: "用途不能超过12"
},
],
'addCouponPropertyPoolInfo.stock': [
{
'addCouponPropertyPoolInfo.stock': [{
limit: "required",
param: "",
errInfo: "数量不能为空"
@ -78,16 +74,15 @@
errInfo: "数量不能超过12"
},
],
'addCouponPropertyPoolInfo.validityDay': [
{
'addCouponPropertyPoolInfo.validityDay': [{
limit: "required",
param: "",
errInfo: "有效期'不能为空"
errInfo: "有效期不能为空"
},
{
limit: "maxLength",
param: "12",
errInfo: "有效期'不能超过12"
errInfo: "有效期不能超过12"
},
],
});
@ -103,8 +98,7 @@
vc.http.apiPost(
'/couponProperty.saveCouponPropertyPool',
JSON.stringify(vc.component.addCouponPropertyPoolInfo),
{
JSON.stringify(vc.component.addCouponPropertyPoolInfo), {
emulateJSON: true
},
function(json, res) {
@ -158,7 +152,8 @@
function(json, res) {
let _marketSmsManageInfo = JSON.parse(json);
$that.addCouponPropertyPoolInfo.toTypes = _marketSmsManageInfo.data;
}, function (errInfo, error) {
},
function(errInfo, error) {
console.log('请求失败处理');
}
);