许成详 6 년 전
부모
커밋
e3b235afed

BIN
dist.zip 파일 보기


+ 1
- 1
dist/index.html 파일 보기

1
-<!DOCTYPE html><html><head><meta charset=utf-8><meta name=viewport content="width=device-width,initial-scale=1"><link rel=stylesheet href=//at.alicdn.com/t/font_775069_dwqa9wy3lkh.css><link rel="shortcut icon" href=favorite.ico><title>城的空间后台管理系统</title><link href=./static/css/app.520a7975546ce28e530f07350d9b65f3.css rel=stylesheet></head><body><div id=app></div><script type=text/javascript src=./static/js/manifest.3ad1d5771e9b13dbdad2.js></script><script type=text/javascript src=./static/js/vendor.3c9a16350e1e47228e4f.js></script><script type=text/javascript src=./static/js/app.7400171cad4647bc1f4a.js></script></body></html>
1
+<!DOCTYPE html><html><head><meta charset=utf-8><meta name=viewport content="width=device-width,initial-scale=1"><link rel=stylesheet href=//at.alicdn.com/t/font_775069_dwqa9wy3lkh.css><link rel="shortcut icon" href=favorite.ico><title>城的空间后台管理系统</title><link href=./static/css/app.8fc51a49b7ed146b2f686bba25437f3d.css rel=stylesheet></head><body><div id=app></div><script type=text/javascript src=./static/js/manifest.3ad1d5771e9b13dbdad2.js></script><script type=text/javascript src=./static/js/vendor.71fd787520fc12b02935.js></script><script type=text/javascript src=./static/js/app.c65c61dbc6d215198c13.js></script></body></html>

+ 4
- 3
src/pages/system/marketingActivities/activitiesList/index.vue 파일 보기

152
       if (desc === '') {
152
       if (desc === '') {
153
         return 0
153
         return 0
154
       }
154
       }
155
+      desc = desc.replace(/\n/g, '')
155
       const descjson = JSON.parse(desc)
156
       const descjson = JSON.parse(desc)
156
       return descjson.giftNum
157
       return descjson.giftNum
157
     },
158
     },
162
       return '未知'
163
       return '未知'
163
     },
164
     },
164
     getGiftLabel (desc) {
165
     getGiftLabel (desc) {
165
-      if (desc === '') {
166
+      if (desc === '' || desc === null) {
166
         return '未知卡券'
167
         return '未知卡券'
167
       }
168
       }
168
-      const descjson = JSON.parse(desc)
169
-      return descjson.giftLabel
169
+      desc = desc.replace(/\n/g, '')
170
+      return JSON.parse(desc).giftLabel
170
     },
171
     },
171
     handleSizeChange (val) {
172
     handleSizeChange (val) {
172
       // console.log(`每页 ${val} 条`)
173
       // console.log(`每页 ${val} 条`)

+ 16
- 8
src/pages/system/marketingActivities/listOfLotteryActivities/edit.vue 파일 보기

453
                 <div style="display: inline-block;">
453
                 <div style="display: inline-block;">
454
                   <el-date-picker
454
                   <el-date-picker
455
                     :disabled="!editAll || isread"
455
                     :disabled="!editAll || isread"
456
-                    value-format="yyyy-MM-ddT00:00:00+08:00"
456
+                    value-format="yyyy-MM-ddT23:59:59+08:00"
457
                     v-model="addPrizeInfo.VerificationEnd"
457
                     v-model="addPrizeInfo.VerificationEnd"
458
                     type="date"
458
                     type="date"
459
                     placeholder="选择截止日期">
459
                     placeholder="选择截止日期">
659
   },
659
   },
660
   mounted () {
660
   mounted () {
661
     uploadImage(this.$refs.myQuillEditor.quill, file => {
661
     uploadImage(this.$refs.myQuillEditor.quill, file => {
662
-      console.log(file)
663
-      return this.toolClass.upload(file).then(data => {
662
+      return this.toolClass.upload({ file }).then(data => {
664
         const url = data.result.url
663
         const url = data.result.url
665
         return { src: url, alt: '' }
664
         return { src: url, alt: '' }
666
       })
665
       })
876
         }
875
         }
877
         for (var a = 0; a < this.postData.Prizes.length; a++) {
876
         for (var a = 0; a < this.postData.Prizes.length; a++) {
878
           if (this.postData.Prizes[a].IsReality) {
877
           if (this.postData.Prizes[a].IsReality) {
879
-            if (this.postData.Prizes[a].VerificationStart === '') {
878
+            if (this.postData.Prizes[a].ValidDays === '') {
879
+              delete this.postData.Prizes[a].ValidDays
880
+            }
881
+            if (this.postData.Prizes[a].VerificationStart === '' || this.postData.Prizes[a].VerificationEnd === '') {
880
               delete this.postData.Prizes[a].VerificationStart
882
               delete this.postData.Prizes[a].VerificationStart
881
               delete this.postData.Prizes[a].VerificationEnd
883
               delete this.postData.Prizes[a].VerificationEnd
882
               this.postData.Prizes[a].ValidDays = this.postData.Prizes[a].ValidDays - 0
884
               this.postData.Prizes[a].ValidDays = this.postData.Prizes[a].ValidDays - 0
883
-            } else {
884
-              delete this.postData.Prizes[a].ValidDays
885
             }
885
             }
886
           } else {
886
           } else {
887
             delete this.postData.Prizes[a].VerificationStart
887
             delete this.postData.Prizes[a].VerificationStart
922
       this.addPhoneTableData.splice(index, 1)
922
       this.addPhoneTableData.splice(index, 1)
923
       this.postData.Prizes[this.editPrizePhoneIndex].Defaults.splice(index, 1)
923
       this.postData.Prizes[this.editPrizePhoneIndex].Defaults.splice(index, 1)
924
     },
924
     },
925
+    findSamePhone (num) { // 验重手机号
926
+      for (var n = 0; n < this.addPhoneTableData.length; n++) {
927
+        if (this.addPhoneTableData[n].Tel === num) {
928
+          return false
929
+        }
930
+      }
931
+      return true
932
+    },
925
     addPhoneInPrize () { // 添加内定奖品手机号
933
     addPhoneInPrize () { // 添加内定奖品手机号
926
-      if (this.checkPhone(this.addPhoneNum) && this.addPhoneNum !== '') {
934
+      if (this.checkPhone(this.addPhoneNum) && this.addPhoneNum !== '' && this.findSamePhone(this.addPhoneNum)) {
927
         this.addPhoneTableData.push({
935
         this.addPhoneTableData.push({
928
           Tel: this.addPhoneNum,
936
           Tel: this.addPhoneNum,
929
         })
937
         })
1048
           return false
1056
           return false
1049
         }
1057
         }
1050
         if (this.verificationType === 1 && this.addPrizeInfo.IsReality) {
1058
         if (this.verificationType === 1 && this.addPrizeInfo.IsReality) {
1051
-          if (this.addPrizeInfo.ValidDays === '' || (this.addPrizeInfo.ValidDays - 0) % 1 !== 0 || (this.addPrizeInfo.ValidDays - 0) <= 0) {
1059
+          if (!this.addPrizeInfo.ValidDays || (this.addPrizeInfo.ValidDays - 0) % 1 !== 0 || (this.addPrizeInfo.ValidDays - 0) <= 0) {
1052
             this.$message({
1060
             this.$message({
1053
               type: 'error',
1061
               type: 'error',
1054
               message: '有效期须为大于0正整数'
1062
               message: '有效期须为大于0正整数'

+ 9
- 0
src/pages/system/marketingActivities/snapUpList/edit.vue 파일 보기

162
 </template>
162
 </template>
163
 <script>
163
 <script>
164
 import { quillEditor } from 'vue-quill-editor'
164
 import { quillEditor } from 'vue-quill-editor'
165
+import uploadImage from 'quill-plugin-image'
165
 import { mapState, createNamespacedHelpers } from 'vuex'
166
 import { mapState, createNamespacedHelpers } from 'vuex'
166
 const { mapActions: mapActivityFlashbuyActions } = createNamespacedHelpers('activityFlashbuy')
167
 const { mapActions: mapActivityFlashbuyActions } = createNamespacedHelpers('activityFlashbuy')
167
 export default {
168
 export default {
207
       }
208
       }
208
     }
209
     }
209
   },
210
   },
211
+  mounted () {
212
+    uploadImage(this.$refs.myQuillEditor.quill, file => {
213
+      return this.toolClass.upload({ file }).then(data => {
214
+        const url = data.result.url
215
+        return { src: url, alt: '' }
216
+      })
217
+    })
218
+  },
210
   created () {
219
   created () {
211
     if (this.$route.query.isread) {
220
     if (this.$route.query.isread) {
212
       this.isread = true
221
       this.isread = true

+ 6
- 0
src/pages/system/systemSet/userManager/index.vue 파일 보기

57
         :data="currentList"
57
         :data="currentList"
58
         stripe
58
         stripe
59
         style="width: 100%">
59
         style="width: 100%">
60
+        <el-table-column
61
+          fixed
62
+          prop="CaseName"
63
+          label="案场"
64
+          width="150">
65
+        </el-table-column>
60
         <el-table-column
66
         <el-table-column
61
           fixed
67
           fixed
62
           prop="UserName"
68
           prop="UserName"

+ 3
- 1
src/style/main.css 파일 보기

414
   color: red;
414
   color: red;
415
 }
415
 }
416
 
416
 
417
-
417
+.ql-editor p{
418
+  min-height: 200px;
419
+}
418
 
420
 
419
 
421
 
420
 
422
 

+ 1
- 0
src/util/upload.js 파일 보기

2
 import ajax from './ajax'
2
 import ajax from './ajax'
3
 
3
 
4
 export default function upload (file) {
4
 export default function upload (file) {
5
+  console.log(file)
5
   return new Promise((resolve, reject) => {
6
   return new Promise((resolve, reject) => {
6
     ajax({
7
     ajax({
7
       ...api.file.image,
8
       ...api.file.image,