|
@@ -69,7 +69,7 @@
|
69
|
69
|
<input type="file" :ref="'templateImg' + index" hidden @change="templateImgChange(item, $event)">
|
70
|
70
|
<img :src="item.MiniPic" style="width:100%;height:100%;object-fit: contain;">
|
71
|
71
|
</a>
|
72
|
|
- <span style="width:100%;display:block;text-align:center;font-size:11px;color:#ccc;">(双击更换背景图)</span>
|
|
72
|
+ <span style="width:100%;display:block;text-align:center;font-size:11px;color:#ccc;margin-bottom:5px;">(双击更换背景图)</span>
|
73
|
73
|
<el-button
|
74
|
74
|
v-if="item.currentImg !== ''"
|
75
|
75
|
size="mini"
|
|
@@ -722,6 +722,9 @@ export default {
|
722
|
722
|
...mapCouponActions([
|
723
|
723
|
'GetCouponList',
|
724
|
724
|
]),
|
|
725
|
+ checkPhone (val) {
|
|
726
|
+ return !!(/^1[34578]\d{9}$/.test(val))
|
|
727
|
+ },
|
725
|
728
|
cardChange () {
|
726
|
729
|
for (var n = 0; n < this.cardList.length; n++) {
|
727
|
730
|
if (this.cardList[n].CardId === this.addPrizeInfo.CouponCardId) {
|
|
@@ -905,13 +908,20 @@ export default {
|
905
|
908
|
this.postData.Prizes[this.editPrizePhoneIndex].Defaults.splice(index, 1)
|
906
|
909
|
},
|
907
|
910
|
addPhoneInPrize () { // 添加内定奖品手机号
|
908
|
|
- this.addPhoneTableData.push({
|
909
|
|
- Tel: this.addPhoneNum,
|
910
|
|
- })
|
911
|
|
- this.postData.Prizes[this.editPrizePhoneIndex].Defaults.push({
|
912
|
|
- Tel: this.addPhoneNum,
|
913
|
|
- })
|
914
|
|
- this.addPhoneNum = ''
|
|
911
|
+ if (this.checkPhone(this.addPhoneNum) && this.addPhoneNum !== '') {
|
|
912
|
+ this.addPhoneTableData.push({
|
|
913
|
+ Tel: this.addPhoneNum,
|
|
914
|
+ })
|
|
915
|
+ this.postData.Prizes[this.editPrizePhoneIndex].Defaults.push({
|
|
916
|
+ Tel: this.addPhoneNum,
|
|
917
|
+ })
|
|
918
|
+ this.addPhoneNum = ''
|
|
919
|
+ } else {
|
|
920
|
+ this.$message({
|
|
921
|
+ type: 'error',
|
|
922
|
+ message: '请填写正确手机号'
|
|
923
|
+ })
|
|
924
|
+ }
|
915
|
925
|
},
|
916
|
926
|
editPrizeItem (item, index) { // 编辑奖品信息
|
917
|
927
|
this.editPrizeOff = true
|