| 123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109 |
- <template>
- <view>
- <u-popup :custom-style="popupStyle" class="auth-point" v-model="show" mode="center" width="70%" border-radius="28" >
- <view class="auth-bg">
- <image style="width: 100%;" src="../../static/poster/votesuccess.png" mode="widthFix"></image>
- <view class="avatar-vote flex justify-center align-center">
- <u-avatar size="159" :src="avatar"></u-avatar>
- </view>
- <view class="info-box">
- <view class="main-info">成功为该作品助力{{activeVote}}票</view>
- <view class="sub-info" style="padding: 0 20rpx;">
- 你已获得{{vuex_active_setting.voteAndPointRate * activeVote}}个普法积分,可用于"积分换礼"兑换礼品哦
- </view>
- <view class="flex justify-center" style="margin-top: 90rpx;">
- <u-button @click="show=false" shape="circle" :custom-style="customStyle">继续投票</u-button>
- <u-button shape="circle" :custom-style="customStyle" @click="support">为TA拉票</u-button>
- </view>
- </view>
- </view>
- </u-popup>
- </view>
- </template>
- <script>
- export default {
- name:"voteSuccess",
- data() {
- return {
- show: false,
- activeVote: 1,
- avatar: 'https://thirdwx.qlogo.cn/mmopen/vi_32/9UQvP3rrVDeMwwjSaaeXIJ2NBdKAB1SpVP8ozRxWiaDDHGJFSp0iaibclAlBeSKGMSOEVvGTia404po8yQ4ibDutO3A/132',
- popupStyle: {
- 'u-mode-center-box': 'red'
- },
- customStyle: {
- color: 'white',
- background: "#E72226",
- width: '200rpx',
- margin: '10rpx',
- height:"60rpx",
- fontSize:"26rpx"
- }
- };
- },
- methods: {
- toIndex(){
- uni.switchTab({
- url:"/pages/index/home"
- })
- },
- showSuccess(avatar,activeVote){
- this.avatar = avatar;
- this.activeVote = activeVote;
- this.show = true;
- },
- hide(){
- this.show = false;
- },
- support(){
- this.hide()
- this.$emit('support')
- }
- }
- }
- </script>
- <style lang="scss" scoped>
- .auth-bg{
- width: 100%;
- background: transparent;
- }
- .auth-msg{
- padding: 40rpx 40rpx 20rpx 40rpx;
- display: flex;
- align-items: center;
- justify-content: left;
- }
- .avatar-vote{
- position: absolute;
- width: 200rpx;
- height: 200rpx;
- top: 100rpx;
- left: calc(50% - 100rpx);
- border: 2px dashed #E8E8E8;
- border-radius: 50%;
- }
- .info-box{
- position: absolute;
- width: 100%;
- height: auto;
- top: 360rpx;
- left: 0;
- .main-info{
- margin: 10rpx;
- font-size: 30rpx;
- color: #353535;
- font-weight: 800;
- text-align: center;
- }
- .sub-info{
- margin: 15rpx auto 40rpx auto;
- text-align: center;
- color: #AAAAAA;
- font-size: 24rpx;
- font-weight: 400;
- }
- }
- </style>
|