圈子系统APP小程序H5免费源码展示在线查看。支持二开。
  IudnJYzd2f03 2023年11月02日 26 0

代码基于vue 2语法编写,拷贝出来需保存为.vue文件。该示例代码中,包括三大模块:<script>,<template>,<style>,三大模块的作用分别是:控制元素逻辑和数据绑定,编写组织页面元素的渲染,控制和渲染元素的样式。

<template>

<view class="center">

<view class="container">

<image class="dot" src="randomImg"  style="width: 92px;height: 92px;border-radius: 50px;"></image>

<view class="pulse"></view>

<view class="pulse1"></view>

<view class="prize-flying" >

<view v-for="(item,index) in flyLeftList" class="fly-prize fly-left" 

:style="{ 'background': 'url('+ item.img +')', '-webkit-animation-duration': flySpeed + 's','animation-duration': flySpeed + 's' }"></view>

<view v-for="(item,index) in flyCenterList" class="fly-prize fly-center"

:style="{ 'background': 'url('+ item.img +')', '-webkit-animation-duration': flySpeed + 's','animation-duration': flySpeed + 's' }"></view>

<view v-for="(item,index) in flyRightList" class="fly-prize fly-right"

:style="{ 'background': 'url('+ item.img +')', '-webkit-animation-duration': flySpeed + 's','animation-duration': flySpeed + 's' }"></view>

</view>

</view>

<view class="flex justify-center items-center match-button" @click="showMan">

<view class="match-btn">

心动匹配

</view>

</view>

    </view>

</template>

<script>

import utils from '@/utils/utils'

export default {

components: {utils},

data() {

return {

show:false,

randomImg:'/static/imgs/mm1.jpg',

flyLeftList: [],

flyCenterList: [],

flyRightList: [],

userList:[{img:'/static/imgs/mm1.jpg'},{img:'/static/imgs/mm2.jpg'},{img:'/static/imgs/mm3.jpg'}],

flySpeed: 25,

indexRecord: 0,

intervalTime: 2.5,

interval: null,

};

},

// 从后台进入前台显示

onShow() {

this.flyLeftList=[];

this.flyCenterList=[];

this.flyRightList=[];

this.refreshUser();


【版权声明】本文内容来自摩杜云社区用户原创、第三方投稿、转载,内容版权归原作者所有。本网站的目的在于传递更多信息,不拥有版权,亦不承担相应法律责任。如果您发现本社区中有涉嫌抄袭的内容,欢迎发送邮件进行举报,并提供相关证据,一经查实,本社区将立刻删除涉嫌侵权内容,举报邮箱: cloudbbs@moduyun.com

  1. 分享:
最后一次编辑于 2023年11月08日 0

暂无评论

推荐阅读
  iFlC2TQwmEmX   2023年12月11日   36   0   0 phpthinkPHP框架
  iFlC2TQwmEmX   2023年12月09日   33   0   0 php
  a2cU6wh5pQPw   2023年11月13日   25   0   0 shellphpbash
  M9aMEIE19lAW   2023年11月13日   35   0   0 htmlphp
  M9aMEIE19lAW   2023年11月13日   38   0   0 php数组
IudnJYzd2f03