武汉大学抽奖

master
xy 1 year ago
parent 2fb3e9cec0
commit bada234451

Binary file not shown.

Before

Width:  |  Height:  |  Size: 15 KiB

After

Width:  |  Height:  |  Size: 20 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 23 KiB

After

Width:  |  Height:  |  Size: 21 KiB

@ -85,6 +85,10 @@
}
}, {
prop: 'type',
label: '类型',
width: 100
},{
prop: 'top_department_id',
label: '排名',
align: 'center',

@ -1,159 +1,163 @@
<template>
<div>
<!-- 编辑-->
<xy-dialog :is-show.sync="isShow" title="项目用户编辑" type="form" :form="detail" :rules="rules" @submit="editor"
ref="addActivity">
<template v-slot:name>
<div class="xy-table-item">
<div class="xy-table-item-label">
<span style="color: red;font-weight: 600;padding-right: 4px;">*</span>用户名称
</div>
<div class="xy-table-item-content">
<el-input clearable placeholder="请填写用户名称" v-model="detail.name" style="width: 300px;" />
</div>
</div>
</template>
<template v-slot:mobile>
<div class="xy-table-item">
<div class="xy-table-item-label">
<span style="color: red;font-weight: 600;padding-right: 4px;">*</span>手机号
</div>
<div class="xy-table-item-content">
<el-input clearable placeholder="请填写手机号" v-model="detail.mobile" style="width: 300px;" />
</div>
</div>
</template>
<template v-slot:username>
<div class="xy-table-item">
<div class="xy-table-item-label">
<span style="color: red;font-weight: 600;padding-right: 4px;">*</span>登录账号
</div>
<div class="xy-table-item-content">
<el-input clearable placeholder="请填写登录账号" v-model="detail.username" style="width: 300px;" />
</div>
</div>
</template>
<template v-slot:password>
<div class="xy-table-item">
<div class="xy-table-item-label">
<span style="color: red;font-weight: 600;padding-right: 4px;">*</span>用户密码
</div>
<div class="xy-table-item-content">
<el-input clearable placeholder="请填写用户密码" type="password" v-model="detail.password" style="width: 300px;" />
</div>
</div>
</template>
<template v-show="!sysInfo" v-slot:activity_list_id>
<div class="xy-table-item">
<div class="xy-table-item-label">
<span style="color: red;font-weight: 600;padding-right: 4px;">*</span>相关项目
</div>
<div class="xy-table-item-content">
<el-select clearable v-model="detail.activity_list_id">
<el-option v-for="(item,index) of listActivity" :key="item.id" :value="item.id" :label="item.name">
</el-option>
</el-select>
</div>
</div>
</template>
<template v-slot:status>
<div class="xy-table-item">
<div class="xy-table-item-label">状态
</div>
<div class="xy-table-item-content">
<el-select clearable v-model="detail.status">
<el-option :value="1" label="启用"></el-option>
<el-option :value="0" label="禁用"></el-option>
</el-select>
</div>
</div>
</template>
</xy-dialog>
</div>
</template>
<script>
import {
save,
show
} from "@/api/activity/activityUser";
export default {
props: {
listActivity: Array
},
data() {
<template>
<div>
<!-- 编辑-->
<xy-dialog :is-show.sync="isShow" title="项目用户编辑" type="form" :form="detail" :rules="rules" @submit="editor"
ref="addActivity">
<template v-slot:name>
<div class="xy-table-item">
<div class="xy-table-item-label">
<span style="color: red;font-weight: 600;padding-right: 4px;">*</span>用户名称
</div>
<div class="xy-table-item-content">
<el-input clearable placeholder="请填写用户名称" v-model="detail.name" style="width: 300px;" />
</div>
</div>
</template>
<template v-slot:type>
<div class="xy-table-item">
<div class="xy-table-item-label">
<span style="color: red;font-weight: 600;padding-right: 4px;">*</span>类型
</div>
<div class="xy-table-item-content">
<el-input clearable placeholder="请填写类型" v-model="detail.type" style="width: 300px;" />
</div>
</div>
</template>
<template v-slot:mobile>
<div class="xy-table-item">
<div class="xy-table-item-label">
<span style="color: red;font-weight: 600;padding-right: 4px;">*</span>手机号
</div>
<div class="xy-table-item-content">
<el-input clearable placeholder="请填写手机号" v-model="detail.mobile" style="width: 300px;" />
</div>
</div>
</template>
<template v-slot:username>
<div class="xy-table-item">
<div class="xy-table-item-label">
<span style="color: red;font-weight: 600;padding-right: 4px;">*</span>登录账号
</div>
<div class="xy-table-item-content">
<el-input clearable placeholder="请填写登录账号" v-model="detail.username" style="width: 300px;" />
</div>
</div>
</template>
<template v-slot:password>
<div class="xy-table-item">
<div class="xy-table-item-label">
<span style="color: red;font-weight: 600;padding-right: 4px;">*</span>用户密码
</div>
<div class="xy-table-item-content">
<el-input clearable placeholder="请填写用户密码" type="password" v-model="detail.password" style="width: 300px;" />
</div>
</div>
</template>
<template v-show="!sysInfo" v-slot:activity_list_id>
<div class="xy-table-item">
<div class="xy-table-item-label">
<span style="color: red;font-weight: 600;padding-right: 4px;">*</span>相关项目
</div>
<div class="xy-table-item-content">
<el-select clearable v-model="detail.activity_list_id">
<el-option v-for="(item,index) of listActivity" :key="item.id" :value="item.id" :label="item.name">
</el-option>
</el-select>
</div>
</div>
</template>
<template v-slot:status>
<div class="xy-table-item">
<div class="xy-table-item-label">状态
</div>
<div class="xy-table-item-content">
<el-select clearable v-model="detail.status">
<el-option :value="1" label="启用"></el-option>
<el-option :value="0" label="禁用"></el-option>
</el-select>
</div>
</div>
</template>
</xy-dialog>
</div>
</template>
<script>
import {
save,
show
} from "@/api/activity/activityUser";
export default {
props: {
listActivity: Array
},
data() {
return {
sysInfo:null,
isShow: false,
id: "",
type: "add",
detail: {
activity_list_id: "",
username: "",
password: "",
name: "",
mobile: "",
status: 1
},
rules: {
name: [{
required: true,
message: "用户名称必填写"
}],
tag: [{
required: true,
message: "登录账号必填"
}],
}
}
},
watch: {
isShow(newVal) {
if (newVal) {
if (this.type === 'editor') {
this.getDetail()
}
} else {
this.id = ''
this.type = ''
this.$refs['addActivity'].reset()
}
}
},
methods: {
async getDetail() {
let res = await show({
id: this.id
})
Object.assign(this.detail, res);
this.detail.activity_list_id = parseInt(res.activity_list_id)
},
editor() {
save(this.detail).then(res => {
this.isShow = false
this.$Message.success("操作成功");
this.$emit('refresh')
})
},
},
computed: {
},
mounted() {
sysInfo:null,
isShow: false,
id: "",
type: "add",
detail: {
activity_list_id: "",
username: "",
password: "",
name: "",
mobile: "",
type: "",
status: 1
},
rules: {
}
}
},
watch: {
isShow(newVal) {
if (newVal) {
if (this.type === 'editor') {
this.getDetail()
}
} else {
this.id = ''
this.type = ''
this.$refs['addActivity'].reset()
}
}
},
methods: {
async getDetail() {
let res = await show({
id: this.id
})
Object.assign(this.detail, res);
this.detail.activity_list_id = parseInt(res.activity_list_id)
},
editor() {
save(this.detail).then(res => {
this.isShow = false
this.$Message.success("操作成功");
this.$emit('refresh')
})
},
},
computed: {
},
mounted() {
let that = this;
let sysInfo = sessionStorage.getItem('sys_info')
if (sysInfo && sysInfo != "") {
@ -162,66 +166,66 @@
that.select.activity_list_id = _sys.id;
that.sysInfo=_sys;
}
}
}
}
</script>
<style scoped lang="scss">
.contract-add-plan {
min-height: 30px;
border: 1px solid #dcdee2;
border-radius: 4px;
display: flex;
flex-wrap: wrap;
align-items: center;
align-content: center;
padding: 0 8px;
&-no-plan {
height: 30px;
line-height: 30px;
color: #CDD0D5;
}
}
.xy-table-item-label {
width: 140px;
}
.xy-table-item-price {
position: relative;
&::after {
z-index: 1;
position: absolute;
right: 0;
top: 0;
content: '(元)'
}
::v-deep .el-input__clear {
position: relative;
right: 30px;
z-index: 2;
}
}
.xy-table-item-price-wan {
position: relative;
&::after {
position: absolute;
right: 0;
top: 0;
content: '(万元)'
}
::v-deep .el-input__clear {
position: relative;
right: 46px;
z-index: 2;
}
}
</style>
}
}
}
</script>
<style scoped lang="scss">
.contract-add-plan {
min-height: 30px;
border: 1px solid #dcdee2;
border-radius: 4px;
display: flex;
flex-wrap: wrap;
align-items: center;
align-content: center;
padding: 0 8px;
&-no-plan {
height: 30px;
line-height: 30px;
color: #CDD0D5;
}
}
.xy-table-item-label {
width: 140px;
}
.xy-table-item-price {
position: relative;
&::after {
z-index: 1;
position: absolute;
right: 0;
top: 0;
content: '(元)'
}
::v-deep .el-input__clear {
position: relative;
right: 30px;
z-index: 2;
}
}
.xy-table-item-price-wan {
position: relative;
&::after {
position: absolute;
right: 0;
top: 0;
content: '(万元)'
}
::v-deep .el-input__clear {
position: relative;
right: 46px;
z-index: 2;
}
}
</style>

@ -44,7 +44,7 @@
<div class="mask"></div>
<div style="display: flex;flex-direction: column;justify-content: center;align-items: center;" :style="{ transform: mixinTransform }">
<div class="start-container__title">
{{ product.price_item }}{{ product.total }}
{{ product.price_item }}
</div>
<img class="start-container__shop" :src="product.image_file ? product.image_file.url : ''" alt="">
@ -72,7 +72,7 @@
</div>
<div class="title">
{{ product.price_item }}{{ product.total }}
{{ product.price_item }}
</div>
<div class="result-users">
@ -173,7 +173,7 @@ export default {
this.avatars.forEach(item => {
gsap.to(this.$refs[`column${item.key}`],{
translateX: (this.columnIndex >= 19 && item.key < 19) ? ((19 - (this.columnIndex - 19) - 1) * 100 + '%') : ((this.columnIndex + 1) * -100 + '%'),
duration: 0.2,
duration: 0.05,
// rotateY: -9 + ((item.key)+1) + 'deg',
// scale: item.key < 11 ? (0.82 + (item.key-1) * 0.02) : (1 - ((item.key-1) - 10) * 0.02)
onComplete: () => {
@ -200,7 +200,7 @@ export default {
gsap.to(this.$refs[`column${(this.columnIndex+i)%(19*2)}`],{
rotateY: -9 + ((i)+1) + 'deg',
scale: i < 10 ? (0.82 + i * 0.02) : (1 - (i - 10) * 0.02),
duration: 0.2,
duration: 0.05,
})
}
this.columnIndex = (this.columnIndex+1) % (19*2)
@ -229,7 +229,7 @@ export default {
setTimer() {
this.timer = setInterval(() => {
this.animate()
},400)
},100)
}
},
computed: {},
@ -394,11 +394,12 @@ export default {
color: #ffffff;
font-weight: 500;
height: 101px;
width: 577px;
width: 100vw;
line-height: 101px;
text-align: center;
background: url("~@/assets/xhxcelsh/start-title-bkg.png") no-repeat;
background-size: contain;
word-break: keep-all;
background: url("~@/assets/xhxcelsh/start-title-bkg.png") no-repeat center;
//background-size: contain;
}
&__shop {
width: 684px;
@ -480,7 +481,6 @@ export default {
}
.title {
height: 101px;
width: 557px;
line-height: 101px;
letter-spacing: 11px;
text-transform: uppercase;
@ -488,8 +488,10 @@ export default {
font-weight: 500;
font-size: 54px;
text-align: center;
background: url("~@/assets/xhxcelsh/result-title.png") no-repeat;
background-size: contain;
word-break: keep-all;
width: 100vw;
background: url("~@/assets/xhxcelsh/result-title.png") no-repeat center;
//background-size: contain;
margin: 104px auto 0;
}
.result-users {

Loading…
Cancel
Save