jiangping
2025-06-06 77946261ec663aa1fe7f6f97e550532ed879f982
h5/pages/polling/empty.vue
对比新文件
@@ -0,0 +1,60 @@
<template>
   <view class="main_app">
      <image class="logo" src="@/static/side/default_empty@2x.png" mode=""></image>
      <view class="message">{{message}}</view>
      <view class="btn" @click="backHome">杩斿洖涓婚〉</view>
   </view>
</template>
<script>
   export default {
      data() {
         return {
            message: ''
         };
      },
      onLoad(op) {
         this.message = op.message || ''
      },
      methods: {
         backHome(){
            uni.redirectTo({
               url: '/pages/index'
            })
         }
      }
   }
</script>
<style lang="scss">
.main_app{
   .logo{
      width: 272rpx;
      height: 228rpx;
      margin: 60% auto 0;
   }
   .message{
      font-weight: 500;
      font-size: 30rpx;
      color: #222222;
      margin-top: 20rpx;
      text-align: center;
   }
   .btn{
      position: fixed;
      bottom: 64rpx;
      left: 40rpx;
      width: 670rpx;
      height: 88rpx;
      background: #0068FF;
      box-shadow: 0rpx 8rpx 20rpx 0rpx rgba(0,104,255,0.3);
      border-radius: 44rpx;
      display: flex;
      align-items: center;
      justify-content: center;
      font-weight: 500;
      font-size: 32rpx;
      color: #FFFFFF;
   }
}
</style>