Commit 967f4ad0 authored by guoyou's avatar guoyou

峰会,公众号分公司

parent de3398b3
module.exports = { module.exports = {
NODE_ENV: '"development"', NODE_ENV: '"development"',
BASE_API:'"https://xxtest.upyuns.com"',//'"https://dev.dfangche.com"',//'"https://xxfcmgmt.upyuns.com"(正)',//http://10.1.37.192:9527(何), //https://xxtest.upyuns.com(测),10.1.37.246:9527(韩), 10.1.37.244(李斌)10.1.37.248:8765(小威) BASE_API:'"https://dev.dfangche.com"',//'"https://xxtest.upyuns.com"',//'"https://xxfcmgmt.upyuns.com"(正)',//http://10.1.37.192:9527(何), //https://xxtest.upyuns.com(测),10.1.37.246:9527(韩), 10.1.37.244(李斌)10.1.37.248:8765(小威)
APP_ORIGIN: '"https://wallstreetcn.com"' APP_ORIGIN: '"https://wallstreetcn.com"'
} }
...@@ -2,7 +2,7 @@ import fetch from 'utils/fetch'; ...@@ -2,7 +2,7 @@ import fetch from 'utils/fetch';
export function one(activityId) { export function one(activityId) {
return fetch({ return fetch({
url: '/api/summit/activityShow/one/'+activityId, url: '/api/summit/activityShow/app/unauth/one/'+activityId,
method: 'get' method: 'get'
}) })
} }
......
...@@ -461,6 +461,7 @@ ...@@ -461,6 +461,7 @@
this.page = 1; this.page = 1;
this.list = []; this.list = [];
this.nomore = false; this.nomore = false;
this.loading = false;
this.loadMore(); this.loadMore();
}, },
/** /**
...@@ -510,6 +511,7 @@ ...@@ -510,6 +511,7 @@
if(res.data.length< this.listQuery.limit && this.list.length>0){ if(res.data.length< this.listQuery.limit && this.list.length>0){
//已加载全部 //已加载全部
this.nomore = true; this.nomore = true;
this.loading = false;
} }
} }
this.list = [...this.list, ...allList]; this.list = [...this.list, ...allList];
......
...@@ -78,14 +78,13 @@ ...@@ -78,14 +78,13 @@
<el-button <el-button
size="small" size="small"
class="el-button el-button--text el-button--small" class="el-button el-button--text el-button--small"
v-if
@click="enrollData(scope.row)" @click="enrollData(scope.row)"
>报名信息</el-button> >报名信息</el-button>
<el-button <!-- <el-button
size="small" size="small"
class="el-button el-button--text el-button--small" class="el-button el-button--text el-button--small"
@click="applyPage(scope.row)" @click="applyPage(scope.row)"
>报名页面</el-button> >报名页面</el-button> -->
<el-button <el-button
class="el-button el-button--text el-button--small" class="el-button el-button--text el-button--small"
size="small" size="small"
...@@ -94,7 +93,6 @@ ...@@ -94,7 +93,6 @@
<el-button <el-button
size="small" size="small"
class="el-button el-button--text el-button--small" class="el-button el-button--text el-button--small"
v-if
@click="review(scope.row)" @click="review(scope.row)"
>回顾页面</el-button> >回顾页面</el-button>
<el-button <el-button
...@@ -136,7 +134,7 @@ ...@@ -136,7 +134,7 @@
v-on:reviewDialogEvent="reviewDialogEvent" v-on:reviewDialogEvent="reviewDialogEvent"
/> />
<applyPage :applyInfo='applyInfo'></applyPage> <!-- <applyPage :applyInfo='applyInfo'></applyPage> -->
</div> </div>
</template> </template>
<script> <script>
...@@ -146,7 +144,7 @@ import { page, update } from "src/api/summit/activity"; ...@@ -146,7 +144,7 @@ import { page, update } from "src/api/summit/activity";
import summitPopup from "src/views/summit/model/summitPopup"; import summitPopup from "src/views/summit/model/summitPopup";
import enrollDataPopup from "src/views/summit/model/enrollDataPopup"; import enrollDataPopup from "src/views/summit/model/enrollDataPopup";
import reviewPopup from "src/views/summit/model/reviewPopup"; import reviewPopup from "src/views/summit/model/reviewPopup";
import applyPage from "src/views/summit/model/applyPage"; // import applyPage from "src/views/summit/model/applyPage";
import { getToken } from "src/utils/auth"; import { getToken } from "src/utils/auth";
...@@ -156,7 +154,7 @@ export default { ...@@ -156,7 +154,7 @@ export default {
summitPopup, summitPopup,
enrollDataPopup, enrollDataPopup,
reviewPopup, reviewPopup,
applyPage // applyPage
}, },
data() { data() {
return { return {
...@@ -210,9 +208,9 @@ export default { ...@@ -210,9 +208,9 @@ export default {
}, },
methods: { methods: {
//报名页面 //报名页面
applyPage(){ // applyPage(){
this.applyInfo.dialogVisible = true; // this.applyInfo.dialogVisible = true;
}, // },
getList() { getList() {
this.listLoading = true; this.listLoading = true;
page(this.query).then(res => { page(this.query).then(res => {
......
...@@ -37,11 +37,12 @@ ...@@ -37,11 +37,12 @@
<el-col> <el-col>
<el-form-item label="峰会图片:"> <el-form-item label="峰会图片:">
<el-upload <el-upload
:action="BASE_API+'/api/universal/file/app/unauth/admin/upload'" :action="BASE_API+'/api/universal/file/app/unauth/pictureZip'"
list-type="picture-card" list-type="picture-card"
:file-list="list" :file-list="list"
:on-success="handlePictureCardPreview" :on-success="handlePictureCardPreview"
:on-remove="handleRemove" :on-remove="handleRemove"
:before-upload="beforeAvatarUpload"
> >
<i class="el-icon-plus"></i> <i class="el-icon-plus"></i>
</el-upload> </el-upload>
...@@ -53,11 +54,13 @@ ...@@ -53,11 +54,13 @@
<el-col> <el-col>
<el-form-item label="峰会视频:"> <el-form-item label="峰会视频:">
<el-upload <el-upload
:action="BASE_API+'/api/universal/file/app/unauth/admin/upload'" :action="BASE_API+'/api/universal/file/app/unauth/uploadVideo'"
list-type="picture-card" list-type="picture-card"
:headers="getHeaderWithToken" :headers="getHeaderWithToken"
:on-preview="handlePreview" :on-preview="handlePreview"
:on-remove="handleRemove" :on-remove="handleRemove"
:before-upload="videoUpload"
:on-success="vidioSuccess"
> >
<i class="el-icon-plus"></i> <i class="el-icon-plus"></i>
</el-upload> </el-upload>
...@@ -76,7 +79,7 @@ ...@@ -76,7 +79,7 @@
<el-col> <el-col>
<el-form-item> <el-form-item>
<el-button class="button" @click="cancelHandel">取 消</el-button> <el-button class="button" @click="cancelHandel">取 消</el-button>
<el-button class="button" type="primary" @click="cre">确 定</el-button> <!-- <el-button class="button" type="primary" @click="cre">确 定</el-button> -->
</el-form-item> </el-form-item>
</el-col> </el-col>
</el-row> </el-row>
...@@ -88,17 +91,17 @@ ...@@ -88,17 +91,17 @@
</template> </template>
<script> <script>
import ElRow from "element-ui/packages/row/src/row"; import ElRow from 'element-ui/packages/row/src/row'
import ElInput from "../../../../node_modules/element-ui/packages/input/src/input.vue"; import ElInput from '../../../../node_modules/element-ui/packages/input/src/input.vue'
import ElCol from "element-ui/packages/col/src/col"; import ElCol from 'element-ui/packages/col/src/col'
import ElFormItem from "../../../../node_modules/element-ui/packages/form/src/form-item.vue"; import ElFormItem from '../../../../node_modules/element-ui/packages/form/src/form-item.vue'
import { getToken } from "src/utils/auth"; import { getToken } from 'src/utils/auth'
import { mapGetters } from "vuex"; import { mapGetters } from 'vuex'
import { one, save } from "src/api/summit/activityShow"; import { one, save } from 'src/api/summit/activityShow'
export default { export default {
props: ["reviewRow"], props: ['reviewRow'],
name: "reviewPopup", name: 'reviewPopup',
components: { components: {
ElFormItem, ElFormItem,
ElCol, ElCol,
...@@ -123,102 +126,135 @@ export default { ...@@ -123,102 +126,135 @@ export default {
videoPath: undefined, videoPath: undefined,
picturePath: undefined picturePath: undefined
} }
}; }
}, },
watch: { watch: {
dialogVisible(newValue, oldValue) { dialogVisible(newValue, oldValue) {
if (!newValue) { if (!newValue) {
this.$emit("reviewDialogEvent", this.result); this.$emit('reviewDialogEvent', this.result)
} }
} }
}, },
computed: { computed: {
...mapGetters(["elements"]), ...mapGetters(['elements']),
getHeaderWithToken() { getHeaderWithToken() {
return { Authorization: getToken() }; return { Authorization: getToken() }
} }
}, },
watch: { watch: {
dialogVisible(newValue, oldValue) { dialogVisible(newValue, oldValue) {
if (!newValue) { if (!newValue) {
this.$emit("summitDialogEvent", this.result); this.$emit('summitDialogEvent', this.result)
} }
} }
}, },
mounted() { mounted() {
this.getOrderInfo(); this.getOrderInfo()
}, },
methods: { methods: {
vidioSuccess(res) {
console.log(res)
this.$notify({
title: '成功',
message: res.message,
type: 'success',
duration: 2000
})
},
beforeAvatarUpload(file) {
const zip = file.type === 'application/zip'
if (!zip) {
this.$message.error('上传头像图片只能是 zip 格式!')
}
return zip
},
videoUpload(file) {
console.log(file.type)
const isJPG = file.type === 'video/mp4'
if (!isJPG) {
this.$message.error('上传头像图片只能是 mp4 格式!')
}
return isJPG
},
getOrderInfo() { getOrderInfo() {
console.log(this.reviewRow.id)
one(this.reviewRow.id).then(res => { one(this.reviewRow.id).then(res => {
this.form = res.data; this.form = res.data
this.dialogVisible = true; this.dialogVisible = true
this.imgDialogVisible = true; this.imgDialogVisible = true
}); })
}, },
cre() { cre() {
console.log(this.form.picturePath); console.log(this.form.picturePath)
save(this.form).then(res => { save(this.form).then(res => {
this.responseResult(res); this.responseResult(res)
}); })
}, },
responseResult(res) { responseResult(res) {
if (res.status === 200) { if (res.status === 200) {
this.$notify({ this.$notify({
title: "成功", title: '成功',
message: "操作成功", message: '操作成功',
type: "success", type: 'success',
duration: 2000 duration: 2000
}); })
this.setSummitDialogEvent(true); this.setSummitDialogEvent(true)
} else { } else {
this.$notify({ this.$notify({
title: "失败", title: '失败',
message: "操作失败!", message: '操作失败!',
type: "error", type: 'error',
duration: 2000 duration: 2000
}); })
} }
}, },
/** /**
* 弹框-取消 * 弹框-取消
* */ * */
cancelHandel() { cancelHandel() {
this.setSummitDialogEvent(false); this.setSummitDialogEvent(false)
}, },
setSummitDialogEvent(e) { setSummitDialogEvent(e) {
this.cleanForm(); this.cleanForm()
this.result = e; this.result = e
this.dialogVisible = false; this.dialogVisible = false
}, },
/** /**
* 封面图上传 * 封面图上传
* **/ * **/
handleAvatarSuccess(res, file) { handleAvatarSuccess(res, file) {
this.percent = 0; this.percent = 0
this.imgFlag = false; this.imgFlag = false
this.form.banner = res.data; this.form.banner = res.data
}, },
/** /**
* 封面图上传进度 * 封面图上传进度
* */ * */
uploadProcess(event, file, fileList) { uploadProcess(event, file, fileList) {
this.imgFlag = true; this.imgFlag = true
this.percent = Math.floor(event.percent); this.percent = Math.floor(event.percent)
}, },
handlePreview(file) { handlePreview(file) {
this.form.videoPath = file.data; this.form.videoPath = file.data
this.imgDialogVisible = true; this.imgDialogVisible = true
}, },
handleRemove(file, fileList) { handleRemove(file, fileList) {
// console.log(file) // console.log(file)
console.log(file, fileList); console.log(file, fileList)
}, },
handlePictureCardPreview(res, file) { handlePictureCardPreview(res, file) {
this.list.push({ url: res.data }); this.$notify({
title: '成功',
message: res.message,
type: 'success',
duration: 2000
})
this.list.push({ url: res.data })
// this.imgDialogVisible = true; // this.imgDialogVisible = true;
}, },
cleanForm() { cleanForm() {
...@@ -229,10 +265,10 @@ export default { ...@@ -229,10 +265,10 @@ export default {
banner: undefined, banner: undefined,
videoPath: undefined, videoPath: undefined,
picturePath: undefined picturePath: undefined
};
} }
} }
}; }
}
</script> </script>
<style> <style>
.label-text { .label-text {
......
This diff is collapsed.
...@@ -48,7 +48,7 @@ ...@@ -48,7 +48,7 @@
<el-row> <el-row>
<el-col :span="8"> <el-col :span="8">
<el-form-item label="发布人" prop="publisher"> <el-form-item label="发布人" prop="publisher">
<el-input v-model="form.publisher" type="text" placeholder="请输入发布人"></el-input> <el-input v-model="form.publisher" type="text"placeholder="请输入发布人"></el-input>
</el-form-item> </el-form-item>
</el-col> </el-col>
</el-row> </el-row>
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment