Commit 77959fdbcda411f460cda6e1c895e2eb01039182
1 parent
334e150f
最新2
Showing
9 changed files
with
113 additions
and
100 deletions
admin-web-master/src/components/editor/index.vue
admin-web-master/src/layout/index.vue
| @@ -27,7 +27,7 @@ | @@ -27,7 +27,7 @@ | ||
| 27 | <span class="user-name">{{ name }}</span> | 27 | <span class="user-name">{{ name }}</span> |
| 28 | </div> | 28 | </div> |
| 29 | </div> | 29 | </div> |
| 30 | - | 30 | + |
| 31 | <!-- <el-dropdown trigger="click"> | 31 | <!-- <el-dropdown trigger="click"> |
| 32 | <div class="avatar-wrapper" style="margin-left: 20px"> | 32 | <div class="avatar-wrapper" style="margin-left: 20px"> |
| 33 | <img :src="userAvatar" class="user-avatar"> | 33 | <img :src="userAvatar" class="user-avatar"> |
| @@ -716,9 +716,9 @@ | @@ -716,9 +716,9 @@ | ||
| 716 | gzt() { | 716 | gzt() { |
| 717 | 717 | ||
| 718 | // window.location.href = 'https://admin-uat.028wlkj.com:1020/application-manage' | 718 | // window.location.href = 'https://admin-uat.028wlkj.com:1020/application-manage' |
| 719 | - window.location.href = 'https://zhgw.028wlkj.com:20443/home' | 719 | + window.location.href = 'https://zhgw-uat.028wlkj.com/home' |
| 720 | // window.location.href = 'http://128.10.9.151:5173/home' | 720 | // window.location.href = 'http://128.10.9.151:5173/home' |
| 721 | - | 721 | + |
| 722 | 722 | ||
| 723 | }, | 723 | }, |
| 724 | findMatchingNames(List, msg) { | 724 | findMatchingNames(List, msg) { |
| @@ -782,7 +782,7 @@ | @@ -782,7 +782,7 @@ | ||
| 782 | ] | 782 | ] |
| 783 | // this.getMemu() | 783 | // this.getMemu() |
| 784 | // this.waibu() | 784 | // this.waibu() |
| 785 | - | 785 | + |
| 786 | this.neibu() | 786 | this.neibu() |
| 787 | this.list = this.mumeList | 787 | this.list = this.mumeList |
| 788 | }, | 788 | }, |
| @@ -1044,4 +1044,4 @@ | @@ -1044,4 +1044,4 @@ | ||
| 1044 | .el-menu { | 1044 | .el-menu { |
| 1045 | padding: 12px 0; | 1045 | padding: 12px 0; |
| 1046 | } | 1046 | } |
| 1047 | -</style> | ||
| 1048 | \ No newline at end of file | 1047 | \ No newline at end of file |
| 1048 | +</style> |
admin-web-master/src/utils/request.js
| @@ -18,7 +18,7 @@ if(host === 'localhost:8080' || host === 'localhost:8081' || host === 'localhost | @@ -18,7 +18,7 @@ if(host === 'localhost:8080' || host === 'localhost:8081' || host === 'localhost | ||
| 18 | 18 | ||
| 19 | // baseURL = process.env.VUE_APP_DOMAIN_PREFIX_1; | 19 | // baseURL = process.env.VUE_APP_DOMAIN_PREFIX_1; |
| 20 | // baseURL = 'https://jy.scjysm.asia:18086/cdwlMall/meserver/admin-server'; | 20 | // baseURL = 'https://jy.scjysm.asia:18086/cdwlMall/meserver/admin-server'; |
| 21 | - baseURL = 'http://128.10.250.218:9003'; | 21 | + baseURL = 'http://128.10.249.21:9003'; |
| 22 | 22 | ||
| 23 | // baseURL = process.env.VUE_APP_DOMAIN_PREFIX_1; | 23 | // baseURL = process.env.VUE_APP_DOMAIN_PREFIX_1; |
| 24 | // baseURL = 'http://192.168.2.225:9003'; | 24 | // baseURL = 'http://192.168.2.225:9003'; |
admin-web-master/src/views/customer/yixiang/index.vue
| @@ -8,16 +8,13 @@ | @@ -8,16 +8,13 @@ | ||
| 8 | <div> | 8 | <div> |
| 9 | <!-- 搜索 --> | 9 | <!-- 搜索 --> |
| 10 | <div class="formSearch"> | 10 | <div class="formSearch"> |
| 11 | - <el-form :inline="true" :model="formSel"> | 11 | + <!-- <el-form :inline="true" :model="formSel"> |
| 12 | <el-form-item label="意向客户名称"> | 12 | <el-form-item label="意向客户名称"> |
| 13 | <el-input v-model="formSel.intentCustomerName" placeholder="请输入" class="moren" style="width:168px" /> | 13 | <el-input v-model="formSel.intentCustomerName" placeholder="请输入" class="moren" style="width:168px" /> |
| 14 | </el-form-item> | 14 | </el-form-item> |
| 15 | <el-form-item label="意向资源名称"> | 15 | <el-form-item label="意向资源名称"> |
| 16 | <el-input v-model="formSel.intentionalStoreName" placeholder="请输入" class="moren" style="width:168px" /> | 16 | <el-input v-model="formSel.intentionalStoreName" placeholder="请输入" class="moren" style="width:168px" /> |
| 17 | </el-form-item> | 17 | </el-form-item> |
| 18 | - <!-- <el-form-item label="编号"> | ||
| 19 | - <el-input v-model="formSel.id" placeholder="请输入" class="moren" style="width:168px" /> | ||
| 20 | - </el-form-item> --> | ||
| 21 | <el-form-item label="意向资源类型"> | 18 | <el-form-item label="意向资源类型"> |
| 22 | <el-select v-model="formSel.intentionalBusinessType" placeholder="请选择" style="width:168px"> | 19 | <el-select v-model="formSel.intentionalBusinessType" placeholder="请选择" style="width:168px"> |
| 23 | <el-option label="商铺" value="商铺" /> | 20 | <el-option label="商铺" value="商铺" /> |
| @@ -27,14 +24,14 @@ | @@ -27,14 +24,14 @@ | ||
| 27 | </el-form-item> | 24 | </el-form-item> |
| 28 | 25 | ||
| 29 | 26 | ||
| 30 | - </el-form> | ||
| 31 | - <div> | 27 | + </el-form> --> |
| 28 | + <!-- <div> | ||
| 32 | <el-button style="background-color: #3F9B6A;color: #fff" @click="onSubmit">查询 | 29 | <el-button style="background-color: #3F9B6A;color: #fff" @click="onSubmit">查询 |
| 33 | </el-button> | 30 | </el-button> |
| 34 | <el-button class="buttonHover" style="color: #606266;border: 1px solid #dddfe5;background-color: #fff;" | 31 | <el-button class="buttonHover" style="color: #606266;border: 1px solid #dddfe5;background-color: #fff;" |
| 35 | @click="resetting">重置 | 32 | @click="resetting">重置 |
| 36 | </el-button> | 33 | </el-button> |
| 37 | - </div> | 34 | + </div> --> |
| 38 | 35 | ||
| 39 | </div> | 36 | </div> |
| 40 | <div style="margin-bottom:20px;"> | 37 | <div style="margin-bottom:20px;"> |
| @@ -55,7 +52,7 @@ | @@ -55,7 +52,7 @@ | ||
| 55 | <el-table-column label="意向租金(月)" prop="rentalRent" min-width="120" /> | 52 | <el-table-column label="意向租金(月)" prop="rentalRent" min-width="120" /> |
| 56 | <el-table-column label="意向区域" prop="intentionRegion" min-width="150" /> | 53 | <el-table-column label="意向区域" prop="intentionRegion" min-width="150" /> |
| 57 | 54 | ||
| 58 | - <el-table-column label="操作" min-width="200" fixed="right"> | 55 | + <el-table-column label="操作" min-width="100" fixed="right"> |
| 59 | <template slot-scope="scope"> | 56 | <template slot-scope="scope"> |
| 60 | <div class="tableBtn greens" @click="handleEditForm(scope.row)"> | 57 | <div class="tableBtn greens" @click="handleEditForm(scope.row)"> |
| 61 | 查看 | 58 | 查看 |
| @@ -63,9 +60,9 @@ | @@ -63,9 +60,9 @@ | ||
| 63 | <div class="tableBtn greens" @click="bianjilist(scope.row)" > | 60 | <div class="tableBtn greens" @click="bianjilist(scope.row)" > |
| 64 | 编辑 | 61 | 编辑 |
| 65 | </div> | 62 | </div> |
| 66 | - <div class="tableBtn greens" @click="pipei(scope.row)" > | 63 | + <!-- <div class="tableBtn greens" @click="pipei(scope.row)" > |
| 67 | 一键匹配 | 64 | 一键匹配 |
| 68 | - </div> | 65 | + </div> --> |
| 69 | </template> | 66 | </template> |
| 70 | </el-table-column> | 67 | </el-table-column> |
| 71 | </el-table> | 68 | </el-table> |
| @@ -76,7 +73,7 @@ | @@ -76,7 +73,7 @@ | ||
| 76 | @current-change="handleCurrentChange" /> | 73 | @current-change="handleCurrentChange" /> |
| 77 | </div> | 74 | </div> |
| 78 | 75 | ||
| 79 | - | 76 | + |
| 80 | <!-- 详情框 :visible.sync="detbox" --> | 77 | <!-- 详情框 :visible.sync="detbox" --> |
| 81 | <!-- <div v-show="detbox" class="dialog_css_Xq " style="padding: 0;width:85%"> --> | 78 | <!-- <div v-show="detbox" class="dialog_css_Xq " style="padding: 0;width:85%"> --> |
| 82 | <el-dialog :visible.sync="detbox" custom-class="tongyong_css" style="padding: 0" width="55%" center | 79 | <el-dialog :visible.sync="detbox" custom-class="tongyong_css" style="padding: 0" width="55%" center |
| @@ -291,8 +288,8 @@ | @@ -291,8 +288,8 @@ | ||
| 291 | </div> | 288 | </div> |
| 292 | </div> | 289 | </div> |
| 293 | </el-dialog> | 290 | </el-dialog> |
| 294 | - | ||
| 295 | - | 291 | + |
| 292 | + | ||
| 296 | </div> | 293 | </div> |
| 297 | </div> | 294 | </div> |
| 298 | <!-- 一键匹配 --> | 295 | <!-- 一键匹配 --> |
| @@ -317,7 +314,7 @@ | @@ -317,7 +314,7 @@ | ||
| 317 | <el-option label="广告位" value="gg" /> | 314 | <el-option label="广告位" value="gg" /> |
| 318 | <el-option label="场地" value="cd" /> | 315 | <el-option label="场地" value="cd" /> |
| 319 | </el-select> | 316 | </el-select> |
| 320 | - | 317 | + |
| 321 | </el-form-item> | 318 | </el-form-item> |
| 322 | <el-form-item label="租期"> | 319 | <el-form-item label="租期"> |
| 323 | <el-select v-model="pipeiSel.resources.cereRentalPolicies.leaseTerm" style="width: 90%;"> | 320 | <el-select v-model="pipeiSel.resources.cereRentalPolicies.leaseTerm" style="width: 90%;"> |
| @@ -342,7 +339,7 @@ | @@ -342,7 +339,7 @@ | ||
| 342 | @click="pipeiClose">重置</el-button> | 339 | @click="pipeiClose">重置</el-button> |
| 343 | <el-button style="background-color: #3F9B6A;color: #fff" | 340 | <el-button style="background-color: #3F9B6A;color: #fff" |
| 344 | @click="pipeiBtn">查询</el-button> | 341 | @click="pipeiBtn">查询</el-button> |
| 345 | - | 342 | + |
| 346 | </div> | 343 | </div> |
| 347 | </div> | 344 | </div> |
| 348 | </div> | 345 | </div> |
ceres-uniapp-master/config/api.js
| 1 | 1 | ||
| 2 | const DOMAIN_PREFIXPING = 'https://jy.scjysm.asia:18086/cdwlMall/meserver/admin-server' | 2 | const DOMAIN_PREFIXPING = 'https://jy.scjysm.asia:18086/cdwlMall/meserver/admin-server' |
| 3 | const DOMAIN_PREFIX = 'https://jy.scjysm.asia:18086/cdwlMall/meserver/api' | 3 | const DOMAIN_PREFIX = 'https://jy.scjysm.asia:18086/cdwlMall/meserver/api' |
| 4 | +const TIAOZHUAN = 'https://jy.scjysm.asia:18086/cdwlMall/' | ||
| 4 | // const DOMAIN_PREFIXPING = 'http://128.10.250.134:9003' | 5 | // const DOMAIN_PREFIXPING = 'http://128.10.250.134:9003' |
| 5 | // const DOMAIN_PREFIX = 'http://128.10.250.134:9007' | 6 | // const DOMAIN_PREFIX = 'http://128.10.250.134:9007' |
| 6 | const LIULIANG = 'https://jy.scjysm.asia:18086/liuliang' | 7 | const LIULIANG = 'https://jy.scjysm.asia:18086/liuliang' |
| @@ -44,7 +45,7 @@ module.exports = { | @@ -44,7 +45,7 @@ module.exports = { | ||
| 44 | terminal: TERMINAL, // 画布设备 1 小程序,2 H5,3 App 4 电脑 | 45 | terminal: TERMINAL, // 画布设备 1 小程序,2 H5,3 App 4 电脑 |
| 45 | SettledMerchantPrefix: 'https://jy.scjysm.asia:18086/cdwlMall/settled-merchant', //商家入驻链接 | 46 | SettledMerchantPrefix: 'https://jy.scjysm.asia:18086/cdwlMall/settled-merchant', //商家入驻链接 |
| 46 | 47 | ||
| 47 | - shareLink: DOMAIN_PREFIX + '/cdwlMall/meh5', // 分享地址 | 48 | + shareLink: TIAOZHUAN + 'meh5', // 分享地址 |
| 48 | // shareLink: 'http://172.16.61.123:9007/h5', // 分享地址 | 49 | // shareLink: 'http://172.16.61.123:9007/h5', // 分享地址 |
| 49 | 50 | ||
| 50 | 51 |
wenjuan-h5/config/api.js
| 1 | 1 | ||
| 2 | -// const DOMAIN_PREFIXPING = 'https://jy.scjysm.asia:18086/admin-server' | ||
| 3 | -// const DOMAIN_PREFIX = 'https://jy.scjysm.asia:18086/api' | ||
| 4 | -// let DOMAIN_PREFIXPING = 'http://172.16.61.125:9003' | ||
| 5 | -// let DOMAIN_PREFIX = 'http://172.16.61.125:9007' | ||
| 6 | - | ||
| 7 | - | ||
| 8 | -// const DOMAIN_PREFIXPING = 'https://jy.scjysm.asia:18086/meserver/admin-server' | ||
| 9 | -// const DOMAIN_PREFIX = 'https://jy.scjysm.asia:18086/meserver/api' | ||
| 10 | -// const DOMAIN_PREFIXPING = 'http://172.16.61.123:80/cdwlMall/admin-server' | ||
| 11 | -// const DOMAIN_PREFIX = 'http://172.16.61.123:80/cdwlMall/api' | ||
| 12 | - | ||
| 13 | -// const host = `${window.location.protocol}//${window.location.host}` | ||
| 14 | -// const DOMAIN_PREFIXPING = `${host}/cdwlMall/admin-server` | ||
| 15 | -// const DOMAIN_PREFIX =`${host}/cdwlMall/meserver/api` | ||
| 16 | 2 | ||
| 17 | let DOMAIN_PREFIXPING = `http://10.0.0.41:9003` | 3 | let DOMAIN_PREFIXPING = `http://10.0.0.41:9003` |
| 18 | let DOMAIN_PREFIX = 'http://10.0.0.41:9007' | 4 | let DOMAIN_PREFIX = 'http://10.0.0.41:9007' |
| 19 | 5 | ||
| 20 | let host = window.location.host; | 6 | let host = window.location.host; |
| 21 | let hostall = window.location.href; | 7 | let hostall = window.location.href; |
| 22 | -if(host === 'localhost:8080' || host === 'localhost:8081' || host === 'localhost:9528'|| host === '192.168.31.45:9528'|| host === 'localhost:9529' ) { | 8 | +if(host === 'localhost:8080' || host === 'localhost:8081' || host === 'localhost:8082'|| host === 'localhost:9528'|| host === '192.168.31.45:9528'|| host === 'localhost:9529' ) { |
| 23 | 9 | ||
| 24 | - DOMAIN_PREFIXPING = 'http://10.0.0.41:9003' | ||
| 25 | - DOMAIN_PREFIX = 'http://10.0.0.41:9007' | 10 | + // DOMAIN_PREFIXPING = 'http://10.0.0.41:9003' |
| 11 | + DOMAIN_PREFIXPING = 'https://jy.scjysm.asia:18086/cdwlMall/meserver/admin-server' | ||
| 12 | + DOMAIN_PREFIX = 'https://jy.scjysm.asia:18086/cdwlMall/meserver/api' | ||
| 13 | + // DOMAIN_PREFIX = 'http://10.0.0.41:9007' | ||
| 26 | 14 | ||
| 27 | } else { | 15 | } else { |
| 28 | let c1 = hostall.split('cdwlMall')[0]; | 16 | let c1 = hostall.split('cdwlMall')[0]; |
| 29 | DOMAIN_PREFIXPING = `${c1}/cdwlMall/admin-server` | 17 | DOMAIN_PREFIXPING = `${c1}/cdwlMall/admin-server` |
| 30 | - DOMAIN_PREFIX =`${c1}/cdwlMall/meserver/api` | 18 | + DOMAIN_PREFIX =`${c1}/cdwlMall/meserver/api` |
| 31 | } | 19 | } |
| 32 | // #ifndef H5 | 20 | // #ifndef H5 |
| 33 | const WX_API_BASE = DOMAIN_PREFIX // app | 21 | const WX_API_BASE = DOMAIN_PREFIX // app |
wenjuan-h5/pages_category_page1/question/question.vue
| @@ -702,7 +702,9 @@ | @@ -702,7 +702,9 @@ | ||
| 702 | 702 | ||
| 703 | NET.request(API.wenjuanUp, tijiaoObj, 'post').then(res => { | 703 | NET.request(API.wenjuanUp, tijiaoObj, 'post').then(res => { |
| 704 | // this.show =true | 704 | // this.show =true |
| 705 | - | 705 | + // if(){ |
| 706 | + // https://jy.scjysm.asia:18086/h5-web/#/activity/pages/lottery/index?detailId=1892112909937541122&style=2 | ||
| 707 | + // } | ||
| 706 | if (res.data == 'false') { | 708 | if (res.data == 'false') { |
| 707 | uni.reLaunch({ | 709 | uni.reLaunch({ |
| 708 | url: `/pages_category_page1/question/succe?chonfu=true` | 710 | url: `/pages_category_page1/question/succe?chonfu=true` |
wenjuan-pc/src/utils/request.js
| @@ -21,8 +21,8 @@ let hostall = window.location.href; | @@ -21,8 +21,8 @@ let hostall = window.location.href; | ||
| 21 | if(host === 'localhost:8080' || host === 'localhost:8081' || host === 'localhost:9528'|| host === '192.168.31.45:9528'|| host === 'localhost:9529' ) { | 21 | if(host === 'localhost:8080' || host === 'localhost:8081' || host === 'localhost:9528'|| host === '192.168.31.45:9528'|| host === 'localhost:9529' ) { |
| 22 | 22 | ||
| 23 | // baseURL = process.env.VUE_APP_DOMAIN_PREFIX_1; | 23 | // baseURL = process.env.VUE_APP_DOMAIN_PREFIX_1; |
| 24 | - baseURL = 'https://jy.scjysm.asia:18086/cdwlMall/meserver/admin-server'; | ||
| 25 | - // baseURL = 'http://172.16.61.123:9003'; | 24 | + // baseURL = 'https://jy.scjysm.asia:18086/cdwlMall/meserver/admin-server'; |
| 25 | + baseURL = 'http://128.10.249.21:9003'; | ||
| 26 | // baseURL = 'http://172.16.61.125:9003'; | 26 | // baseURL = 'http://172.16.61.125:9003'; |
| 27 | // baseURL = 'http://192.168.2.36:9003'; | 27 | // baseURL = 'http://192.168.2.36:9003'; |
| 28 | // baseURL = process.env.VUE_APP_DOMAIN_PREFIX_1; | 28 | // baseURL = process.env.VUE_APP_DOMAIN_PREFIX_1; |
wenjuan-pc/src/views/investigation/index.vue
| @@ -359,19 +359,22 @@ | @@ -359,19 +359,22 @@ | ||
| 359 | <!-- <img :src="secondData.coverImage" alt="" style="width:25%" /> --> | 359 | <!-- <img :src="secondData.coverImage" alt="" style="width:25%" /> --> |
| 360 | </div> | 360 | </div> |
| 361 | <div style="padding: 20px 0 ;">参与答卷奖励</div> | 361 | <div style="padding: 20px 0 ;">参与答卷奖励</div> |
| 362 | - <el-descriptions class="margin-top" :column="3" border :label-style="labelStyle" | ||
| 363 | - :content-style="contentStyle"> | 362 | + <el-descriptions class="margin-top" :column="3" border :label-style="labelStylejiang" |
| 363 | + :content-style="contentStylejiang"> | ||
| 364 | <el-descriptions-item> | 364 | <el-descriptions-item> |
| 365 | <template slot="label"> | 365 | <template slot="label"> |
| 366 | 提交问卷后 | 366 | 提交问卷后 |
| 367 | </template> | 367 | </template> |
| 368 | - {{ secondData.rewardForParticipation }} | 368 | + {{ secondData.rewardForParticipation!=''?'转盘抽奖':'不设置奖励'}} |
| 369 | </el-descriptions-item> | 369 | </el-descriptions-item> |
| 370 | <el-descriptions-item> | 370 | <el-descriptions-item> |
| 371 | <template slot="label"> | 371 | <template slot="label"> |
| 372 | 奖励 | 372 | 奖励 |
| 373 | </template> | 373 | </template> |
| 374 | - | 374 | + <div> |
| 375 | + <span>{{ secondData.rewardForParticipation!=''?'转盘抽奖活动':''}}</span> | ||
| 376 | + <span v-if="jiangli.id && jiangli.id!=''" style="padding: 0 20px;color: #3F9B6A;cursor: pointer;" @click="actGo(1)">查看</span> | ||
| 377 | + </div> | ||
| 375 | </el-descriptions-item> | 378 | </el-descriptions-item> |
| 376 | </el-descriptions> | 379 | </el-descriptions> |
| 377 | <div style="padding: 20px 0 ;">问卷题目</div> | 380 | <div style="padding: 20px 0 ;">问卷题目</div> |
| @@ -566,7 +569,7 @@ | @@ -566,7 +569,7 @@ | ||
| 566 | </div> | 569 | </div> |
| 567 | <el-form ref="form" :model="formInline" label-width="140px" | 570 | <el-form ref="form" :model="formInline" label-width="140px" |
| 568 | style="padding:20px;"> | 571 | style="padding:20px;"> |
| 569 | - <el-radio-group v-model="formInline.rewardForParticipation" | 572 | + <el-radio-group v-model="radioreward" |
| 570 | @change="radioClick"> | 573 | @change="radioClick"> |
| 571 | <el-radio label="不设置奖励" value="不设置奖励">不设置奖励</el-radio> | 574 | <el-radio label="不设置奖励" value="不设置奖励">不设置奖励</el-radio> |
| 572 | <!-- <el-radio label="奖励积分" value="奖励积分">奖励积分</el-radio> --> | 575 | <!-- <el-radio label="奖励积分" value="奖励积分">奖励积分</el-radio> --> |
| @@ -580,16 +583,15 @@ | @@ -580,16 +583,15 @@ | ||
| 580 | 奖励 <el-input v-model="jifen" style="width:50px;" />积分 | 583 | 奖励 <el-input v-model="jifen" style="width:50px;" />积分 |
| 581 | </div> | 584 | </div> |
| 582 | </div> --> | 585 | </div> --> |
| 583 | - <div v-if="formInline.rewardForParticipation === '转盘抽奖'" | 586 | + <div v-if="radioreward === '转盘抽奖'" |
| 584 | style="padding: 0 0 20px 20px;"> | 587 | style="padding: 0 0 20px 20px;"> |
| 585 | - | ||
| 586 | - <div v-if="jiangli && jiangli.id" style="padding: 10px 0;"> | 588 | + <div v-if="jiangli.id && jiangli.id!=''" style="padding: 10px 0;"> |
| 587 | <span>{{jiangli.name}}</span> | 589 | <span>{{jiangli.name}}</span> |
| 588 | <span style="padding: 0 20px;color: #3F9B6A;cursor: pointer;" @click="actGo(1)">查看</span> | 590 | <span style="padding: 0 20px;color: #3F9B6A;cursor: pointer;" @click="actGo(1)">查看</span> |
| 589 | <span style="color: #3F9B6A;cursor: pointer;" @click="actGo(2)">编辑</span> | 591 | <span style="color: #3F9B6A;cursor: pointer;" @click="actGo(2)">编辑</span> |
| 590 | </div> | 592 | </div> |
| 591 | <div v-else> | 593 | <div v-else> |
| 592 | - <el-button class="buttonHover" | 594 | + <el-button |
| 593 | style="color: #fff;background-color: #3F9B6A;" | 595 | style="color: #fff;background-color: #3F9B6A;" |
| 594 | @click="actGo(0)">创建活动</el-button> | 596 | @click="actGo(0)">创建活动</el-button> |
| 595 | </div> | 597 | </div> |
| @@ -606,15 +608,7 @@ | @@ -606,15 +608,7 @@ | ||
| 606 | 608 | ||
| 607 | </div> | 609 | </div> |
| 608 | </div> | 610 | </div> |
| 609 | - <el-dialog :visible.sync="iframaShow" title="创建活动" width="90%" center top="1%" | ||
| 610 | - :close-on-click-modal="false" append-to-body> | ||
| 611 | - <div style="padding:20px;"> | ||
| 612 | - <iframe :src="iframaUrl" ref="iframe" frameborder="0" width="100%" height="700px" /> | ||
| 613 | - <div style="padding-top:20px;display:flex;justify-content: flex-end;"> | ||
| 614 | - </div> | ||
| 615 | - </div> | ||
| 616 | 611 | ||
| 617 | - </el-dialog> | ||
| 618 | </el-tab-pane> | 612 | </el-tab-pane> |
| 619 | <el-tab-pane label="问卷内容" name="second"> | 613 | <el-tab-pane label="问卷内容" name="second"> |
| 620 | <div style="width: 100%"> | 614 | <div style="width: 100%"> |
| @@ -1002,27 +996,27 @@ | @@ -1002,27 +996,27 @@ | ||
| 1002 | <div>参与答卷奖励</div> | 996 | <div>参与答卷奖励</div> |
| 1003 | </div> | 997 | </div> |
| 1004 | <el-form ref="form" :model="secondData" label-width="140px" style="padding:20px;"> | 998 | <el-form ref="form" :model="secondData" label-width="140px" style="padding:20px;"> |
| 1005 | - <el-radio-group v-model="secondData.rewardForParticipation" | 999 | + <el-radio-group v-model="radioreward" |
| 1006 | @change="radioClick"> | 1000 | @change="radioClick"> |
| 1007 | <el-radio label="不设置奖励" value="不设置奖励">不设置奖励</el-radio> | 1001 | <el-radio label="不设置奖励" value="不设置奖励">不设置奖励</el-radio> |
| 1008 | <!-- <el-radio label="奖励积分" value="奖励积分">奖励积分</el-radio> --> | 1002 | <!-- <el-radio label="奖励积分" value="奖励积分">奖励积分</el-radio> --> |
| 1009 | <el-radio label="转盘抽奖" value="转盘抽奖">转盘抽奖</el-radio> | 1003 | <el-radio label="转盘抽奖" value="转盘抽奖">转盘抽奖</el-radio> |
| 1010 | <!-- <el-radio label="优惠券" value="优惠券">优惠券</el-radio> --> | 1004 | <!-- <el-radio label="优惠券" value="优惠券">优惠券</el-radio> --> |
| 1011 | </el-radio-group> | 1005 | </el-radio-group> |
| 1012 | - <div v-if="secondData.rewardForParticipation === '转盘抽奖'" | 1006 | + <div v-if="radioreward === '转盘抽奖'" |
| 1013 | style="padding: 0 0 20px 20px;"> | 1007 | style="padding: 0 0 20px 20px;"> |
| 1014 | - <div v-if="jiangli && jiangli.id" style="padding: 10px 0;"> | 1008 | + <div v-if="jiangli.id && jiangli.id!=''" style="padding: 10px 0;"> |
| 1015 | <span>{{jiangli.name}}</span> | 1009 | <span>{{jiangli.name}}</span> |
| 1016 | <span style="padding: 0 20px;color: #3F9B6A;cursor: pointer;" @click="actGo(1)">查看</span> | 1010 | <span style="padding: 0 20px;color: #3F9B6A;cursor: pointer;" @click="actGo(1)">查看</span> |
| 1017 | <span style="color: #3F9B6A;cursor: pointer;" @click="actGo(2)">编辑</span> | 1011 | <span style="color: #3F9B6A;cursor: pointer;" @click="actGo(2)">编辑</span> |
| 1018 | </div> | 1012 | </div> |
| 1019 | <div v-else> | 1013 | <div v-else> |
| 1020 | - <el-button class="buttonHover" | 1014 | + <el-button |
| 1021 | style="color: #fff;background-color: #3F9B6A;" | 1015 | style="color: #fff;background-color: #3F9B6A;" |
| 1022 | @click="actGo(0)">创建活动</el-button> | 1016 | @click="actGo(0)">创建活动</el-button> |
| 1023 | </div> | 1017 | </div> |
| 1024 | - | ||
| 1025 | - | 1018 | + |
| 1019 | + | ||
| 1026 | </div> | 1020 | </div> |
| 1027 | </el-form> | 1021 | </el-form> |
| 1028 | </div> | 1022 | </div> |
| @@ -1458,6 +1452,15 @@ | @@ -1458,6 +1452,15 @@ | ||
| 1458 | </div> | 1452 | </div> |
| 1459 | </div> | 1453 | </div> |
| 1460 | </el-dialog> | 1454 | </el-dialog> |
| 1455 | + <el-dialog :visible.sync="iframaShow" title="创建活动" width="90%" center top="1%" | ||
| 1456 | + :close-on-click-modal="false" append-to-body> | ||
| 1457 | + <div style="padding:20px;"> | ||
| 1458 | + <iframe :src="iframaUrl" ref="iframe" frameborder="0" width="100%" height="700px" /> | ||
| 1459 | + <div style="padding-top:20px;display:flex;justify-content: flex-end;"> | ||
| 1460 | + </div> | ||
| 1461 | + </div> | ||
| 1462 | + | ||
| 1463 | + </el-dialog> | ||
| 1461 | </div> | 1464 | </div> |
| 1462 | 1465 | ||
| 1463 | </template> | 1466 | </template> |
| @@ -1526,7 +1529,7 @@ | @@ -1526,7 +1529,7 @@ | ||
| 1526 | filler: '', | 1529 | filler: '', |
| 1527 | fillingConditions: '可重复填写', | 1530 | fillingConditions: '可重复填写', |
| 1528 | coverImage: '', | 1531 | coverImage: '', |
| 1529 | - rewardForParticipation: '不设置奖励', | 1532 | + rewardForParticipation: '', |
| 1530 | questionId: '', | 1533 | questionId: '', |
| 1531 | responseStatus: '', | 1534 | responseStatus: '', |
| 1532 | reviewStatus: '1', | 1535 | reviewStatus: '1', |
| @@ -1596,6 +1599,12 @@ | @@ -1596,6 +1599,12 @@ | ||
| 1596 | contentStyle: { | 1599 | contentStyle: { |
| 1597 | width: '246px' | 1600 | width: '246px' |
| 1598 | }, | 1601 | }, |
| 1602 | + labelStylejiang: { | ||
| 1603 | + width: '180px' | ||
| 1604 | + }, | ||
| 1605 | + contentStylejiang: { | ||
| 1606 | + width: '300px' | ||
| 1607 | + }, | ||
| 1599 | timuXiang: false, | 1608 | timuXiang: false, |
| 1600 | timuData: {}, | 1609 | timuData: {}, |
| 1601 | multipleSelection: [], | 1610 | multipleSelection: [], |
| @@ -1725,9 +1734,13 @@ | @@ -1725,9 +1734,13 @@ | ||
| 1725 | iframaShow: false, | 1734 | iframaShow: false, |
| 1726 | iframeWin:null, | 1735 | iframeWin:null, |
| 1727 | jiangli:{ | 1736 | jiangli:{ |
| 1728 | - id:1894944771529637890, | ||
| 1729 | - name:'商业抽奖活动' | ||
| 1730 | - } | 1737 | + id:'1894944771529637890', //活动id |
| 1738 | + name:'商业抽奖活动', //活动名称 | ||
| 1739 | + styles:'1', //抽奖样式 1:大转盘 2:砸金蛋 3:刮刮卡 4:翻牌乐 5:福袋 6:摇一摇 | ||
| 1740 | + // id:'', | ||
| 1741 | + // name:'' | ||
| 1742 | + }, | ||
| 1743 | + radioreward:'不设置奖励' | ||
| 1731 | } | 1744 | } |
| 1732 | }, | 1745 | }, |
| 1733 | computed: { | 1746 | computed: { |
| @@ -1738,21 +1751,18 @@ | @@ -1738,21 +1751,18 @@ | ||
| 1738 | }, | 1751 | }, |
| 1739 | mounted() { | 1752 | mounted() { |
| 1740 | // 监听iframe页面点击按钮触发事件 | 1753 | // 监听iframe页面点击按钮触发事件 |
| 1741 | - | ||
| 1742 | window.addEventListener('message', (event) => { | 1754 | window.addEventListener('message', (event) => { |
| 1743 | const data = event.data | 1755 | const data = event.data |
| 1744 | if (data.code === 'success') { | 1756 | if (data.code === 'success') { |
| 1745 | // alert(data.test) | 1757 | // alert(data.test) |
| 1746 | console.log('id',data.id) | 1758 | console.log('id',data.id) |
| 1747 | console.log('name',data.name) | 1759 | console.log('name',data.name) |
| 1748 | - // this.jiangli = { | ||
| 1749 | - // id:data.id, | ||
| 1750 | - // name:data.name | ||
| 1751 | - // } | ||
| 1752 | this.jiangli = { | 1760 | this.jiangli = { |
| 1753 | - id:1894944771529637890, | ||
| 1754 | - name:'商业抽奖活动' | 1761 | + id:''+data.id, |
| 1762 | + name:data.name, | ||
| 1763 | + styles:data.style | ||
| 1755 | } | 1764 | } |
| 1765 | + this.iframaShow = false | ||
| 1756 | } | 1766 | } |
| 1757 | }) | 1767 | }) |
| 1758 | // this.iframeWin = this.$refs.iframe.contentWindow | 1768 | // this.iframeWin = this.$refs.iframe.contentWindow |
| @@ -1799,23 +1809,15 @@ | @@ -1799,23 +1809,15 @@ | ||
| 1799 | }) | 1809 | }) |
| 1800 | return false; | 1810 | return false; |
| 1801 | } | 1811 | } |
| 1802 | - if (this.formInline.rewardForParticipation == '奖励积分') { | ||
| 1803 | - if (this.jifen == '') { | 1812 | + if (this.radioreward == '转盘抽奖') { |
| 1813 | + if (this.jiangli.id && this.jiangli.id== '') { | ||
| 1804 | this.$message({ | 1814 | this.$message({ |
| 1805 | - message: '请输入设置的积分', | ||
| 1806 | - }) | ||
| 1807 | - return false; | ||
| 1808 | - } | ||
| 1809 | - } else { | ||
| 1810 | - // this.formInline.rewardForParticipation = | ||
| 1811 | - } | ||
| 1812 | - if (this.formInline.rewardForParticipation == '转盘抽奖') { | ||
| 1813 | - if (this.choujiang == '') { | ||
| 1814 | - this.$message({ | ||
| 1815 | - message: '请输入转盘抽奖次数', | 1815 | + message: '请创建转盘活动', |
| 1816 | }) | 1816 | }) |
| 1817 | return false; | 1817 | return false; |
| 1818 | } | 1818 | } |
| 1819 | + }else{ | ||
| 1820 | + this.jiangli.id = '' | ||
| 1819 | } | 1821 | } |
| 1820 | let ids = null | 1822 | let ids = null |
| 1821 | if (this.wenConstData.length != 0) { | 1823 | if (this.wenConstData.length != 0) { |
| @@ -1827,7 +1829,7 @@ | @@ -1827,7 +1829,7 @@ | ||
| 1827 | }) | 1829 | }) |
| 1828 | return false; | 1830 | return false; |
| 1829 | } | 1831 | } |
| 1830 | - | 1832 | + this.formInline.rewardForParticipation = this.jiangli.id |
| 1831 | this.formInline.createTime = this.currentTime() | 1833 | this.formInline.createTime = this.currentTime() |
| 1832 | TerminaAdd(this.formInline).then(res => { | 1834 | TerminaAdd(this.formInline).then(res => { |
| 1833 | if (res.data.code == '500') { | 1835 | if (res.data.code == '500') { |
| @@ -1894,7 +1896,7 @@ | @@ -1894,7 +1896,7 @@ | ||
| 1894 | item.question = JSON.parse(item.question) | 1896 | item.question = JSON.parse(item.question) |
| 1895 | } | 1897 | } |
| 1896 | const array = this.objectToArray(item.question) | 1898 | const array = this.objectToArray(item.question) |
| 1897 | - | 1899 | + this.jiangli.id = item.rewardForParticipation |
| 1898 | this.wenData = array | 1900 | this.wenData = array |
| 1899 | // this.secondData.cereQuestionManagements.map((res, index) => { | 1901 | // this.secondData.cereQuestionManagements.map((res, index) => { |
| 1900 | // if (typeof res.optionSettings == 'string') { | 1902 | // if (typeof res.optionSettings == 'string') { |
| @@ -2060,7 +2062,12 @@ | @@ -2060,7 +2062,12 @@ | ||
| 2060 | if (typeof item.question === 'string') { | 2062 | if (typeof item.question === 'string') { |
| 2061 | item.question = JSON.parse(item.question) | 2063 | item.question = JSON.parse(item.question) |
| 2062 | } | 2064 | } |
| 2063 | - | 2065 | + if(item.rewardForParticipation!=''){ |
| 2066 | + this.radioreward='转盘抽奖' | ||
| 2067 | + }else{ | ||
| 2068 | + this.radioreward='不设置奖励' | ||
| 2069 | + } | ||
| 2070 | + this.jiangli.id = item.rewardForParticipation | ||
| 2064 | this.secondDataTi = item.cereQuestionManagements | 2071 | this.secondDataTi = item.cereQuestionManagements |
| 2065 | this.bainjiBox = true | 2072 | this.bainjiBox = true |
| 2066 | 2073 | ||
| @@ -2083,6 +2090,17 @@ | @@ -2083,6 +2090,17 @@ | ||
| 2083 | if (this.secondDataTi.length != 0) { | 2090 | if (this.secondDataTi.length != 0) { |
| 2084 | ids = this.secondDataTi.map(item => item.id); | 2091 | ids = this.secondDataTi.map(item => item.id); |
| 2085 | } | 2092 | } |
| 2093 | + if (this.radioreward == '转盘抽奖') { | ||
| 2094 | + if (this.jiangli.id &&this.jiangli.id== '') { | ||
| 2095 | + this.$message({ | ||
| 2096 | + message: '请创建转盘活动', | ||
| 2097 | + }) | ||
| 2098 | + return false; | ||
| 2099 | + } | ||
| 2100 | + }else{ | ||
| 2101 | + this.jiangli.id = '' | ||
| 2102 | + } | ||
| 2103 | + this.secondData.rewardForParticipation = this.jiangli.id | ||
| 2086 | this.secondData.questionId = ids.join(',') | 2104 | this.secondData.questionId = ids.join(',') |
| 2087 | this.secondData.updateTime = this.currentTime() | 2105 | this.secondData.updateTime = this.currentTime() |
| 2088 | 2106 | ||
| @@ -2561,7 +2579,7 @@ | @@ -2561,7 +2579,7 @@ | ||
| 2561 | filler: '', | 2579 | filler: '', |
| 2562 | fillingConditions: '可重复填写', | 2580 | fillingConditions: '可重复填写', |
| 2563 | coverImage: '', | 2581 | coverImage: '', |
| 2564 | - rewardForParticipation: '不设置奖励', | 2582 | + rewardForParticipation: '', |
| 2565 | questionId: '', | 2583 | questionId: '', |
| 2566 | responseStatus: '', | 2584 | responseStatus: '', |
| 2567 | reviewStatus: '1', | 2585 | reviewStatus: '1', |
| @@ -2570,8 +2588,13 @@ | @@ -2570,8 +2588,13 @@ | ||
| 2570 | needGender: '必填', | 2588 | needGender: '必填', |
| 2571 | needOpinion: '必填', | 2589 | needOpinion: '必填', |
| 2572 | } | 2590 | } |
| 2591 | + // this.jiangli={ | ||
| 2592 | + // id:'', | ||
| 2593 | + // name:'', | ||
| 2594 | + // styles:'' | ||
| 2595 | + // } | ||
| 2573 | this.xuanzheData = [] | 2596 | this.xuanzheData = [] |
| 2574 | - | 2597 | + this.radioreward='不设置奖励' |
| 2575 | const today = new Date(); | 2598 | const today = new Date(); |
| 2576 | const startOfToday = new Date(today.getFullYear(), today.getMonth(), today.getDate()); | 2599 | const startOfToday = new Date(today.getFullYear(), today.getMonth(), today.getDate()); |
| 2577 | const endOfToday = new Date(today.getFullYear(), today.getMonth(), today.getDate()); | 2600 | const endOfToday = new Date(today.getFullYear(), today.getMonth(), today.getDate()); |
| @@ -2814,10 +2837,10 @@ | @@ -2814,10 +2837,10 @@ | ||
| 2814 | this.iframaUrl = | 2837 | this.iframaUrl = |
| 2815 | `https://jy.scjysm.asia:18086/cdwltool/addEmptyLottery?token=${token}&id=${this.jiangli.id}&channel=shangye&thirdPartyUrl=http://localhost:9529/#/investigation/index` | 2838 | `https://jy.scjysm.asia:18086/cdwltool/addEmptyLottery?token=${token}&id=${this.jiangli.id}&channel=shangye&thirdPartyUrl=http://localhost:9529/#/investigation/index` |
| 2816 | } | 2839 | } |
| 2817 | - | ||
| 2818 | - // window.location.href = | 2840 | + |
| 2841 | + // window.location.href = | ||
| 2819 | }, | 2842 | }, |
| 2820 | - | 2843 | + |
| 2821 | } | 2844 | } |
| 2822 | 2845 | ||
| 2823 | } | 2846 | } |
| @@ -3191,4 +3214,4 @@ | @@ -3191,4 +3214,4 @@ | ||
| 3191 | } | 3214 | } |
| 3192 | 3215 | ||
| 3193 | } | 3216 | } |
| 3194 | -</style> | ||
| 3195 | \ No newline at end of file | 3217 | \ No newline at end of file |
| 3218 | +</style> |