12345678910111213141516171819202122232425262728293031323334353637383940 |
- <template>
- <uni-popup ref="popupRef" :isMaskClick="false" maskBackgroundColor="none">
- <view class="popup-box">
- <u-loading-icon :size="80" color="#fff"></u-loading-icon>
- </view>
- </uni-popup>
- </template>
- <script>
- export default {
- data() {
- return {
- };
- },
- mounted() {
- },
- methods: {
- open() {
- this.$nextTick(() => {
- this.$refs.popupRef.open()
- })
- },
- close() {
- this.$refs.popupRef.close()
- }
- }
- }
- </script>
- <style lang="scss" scoped>
- .popup-box {
- background-color: rgba(0, 0, 0, 0.4);
- border-radius: 20rpx;
- padding: 20rpx;
- }
- </style>
|