1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253 |
- <template>
- <view class="content">
- <image src="../../static/index/home.gif" mode=""></image>
- </view>
- </template>
- <script>
- export default {
- data() {
- return {
- };
- },
- onShow() {
- this.getIndex()
- },
-
- methods: {
- getIndex() {
- console.log('是否执行');
- setTimeout(() => {
- uni.switchTab({
- url: '../index/index',
- })
- }, 4000)
- }
- }
- }
- </script>
- <style lang="scss">
- .content {
- position: relative;
- margin: 0;
- padding: 0;
- width: 750rpx;
- height: 100vh;
-
- image {
- position: absolute;
- left: 0;
- top: 0;
- width: 100%;
- height: 100%;
- }
- // background-image: url('../../static/index/home.gif') no-repeat;
- }
- </style>
|