Commit 43e1d87e authored by ziyu's avatar ziyu

improvement: 优化

parent 63e92af9
......@@ -38,8 +38,8 @@ const request = async (url, options) => {
if (res.data.code === 2000) {
return res.data.data;
}
Notify({ message: res.data.detail || '请求异常,请稍后重试', background: '#FF5D15', safeAreaInsetTop });
throw new Error(res.data.detail || '请求异常,请稍后重试');
Notify({ message: res.data.msg || '请求异常,请稍后重试', background: '#FF5D15', safeAreaInsetTop });
throw new Error(res.data.msg || '请求异常,请稍后重试');
}
Notify({ message: '请求异常,请稍后重试', background: '#FF5D15', safeAreaInsetTop });
});
......
......@@ -2,6 +2,11 @@
.raffles-list{
padding-bottom:30rpx;
}
.raffle-none{
font-size: 28rpx;
padding-top:300rpx;
text-align: center;
}
.raffle-item{
background-color: #fff;
padding:30rpx 0 0 30rpx;
......@@ -91,6 +96,7 @@
</view>
</view>
</view>
<view class="raffle-none" v-if="!list.length">您暂没有任何抽奖~</view>
</view>
</template>
<script>
......
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