zoukankan      html  css  js  c++  java
  • 小程序打广告一闪一闪的

    <!-- 在线医生 -->
    <view wx:if="{{overflow && overflow1}}" class='pf customer df aic jcsb bsbb pl30 pr30 w' style="">>
    <view class='df ml20'>
    <view><image mode='widthFix' style='70rpx;' src='../images/wx.png' class='bdr20'></image></view>
    <view class='fs24 cf ml30'>
    <view>医生在线</view>
    <view class='mt5'>请问有什么可以帮您?</view>
    </view>
    </view>
    <view wx:if="{{a}}"><button class='fs24 bdr50 bgc cf' open-type='contact'>接受</button></view>
    <view wx:elif="{{!a}}"><button class='fs24 bdr50 bgc cf' bindtap='zixun'>接受</button></view>
    </view>
     
    * 生命周期函数--监听页面显示
    */
    onShow: function() {
    var that = this
    var timer = setInterval(function() {
    var overflow = !that.data.overflow
    that.setData({
    overflow: overflow
    })
    }, 60000)
    var timer1 = setInterval(function() {
    var arr = ["rgba(0,0,0,.8)", "rgba(226,113,64,.8)"]
    var a = that.data.a
    // console.log(a)
    if (a == 1) {
    a = 0
    } else {
    a = 1
    }
    var bgcolor = arr[a]
    var overflow1 = !that.data.overflow1
    that.setData({
    a: a,
    bgcolor: bgcolor
    })
    }, 1000)
    that.setData({
    timer: timer,
    timer1: timer1
    })
    },
  • 相关阅读:
    代码模板
    DNSget Ip
    WC约束示使用
    下雨了
    Xml文件保存值不能及时更新
    代码不是艺术,而是达到目的的一种手段
    网站TCP链接暴增
    吐个槽吧
    正则表达式使用小注意
    Sereja and Two Sequences CodeForces
  • 原文地址:https://www.cnblogs.com/isuansuan/p/9837363.html
Copyright © 2011-2022 走看看