Commit 43e1d87e authored by ziyu's avatar ziyu

improvement: 优化

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