最新国产好看的视频,伊人天堂AV在线,国产Aaaaaa视频,蜜臀视频在线观看一区,人妻av色图,密臀久久久精品影片,青青视频免费观看毛片,久草在线观看视,国产三级精品色情在线

微信小程序?qū)崿F(xiàn)水平時(shí)間軸

 更新時(shí)間:2022年05月22日 16:14:20   作者:gyuei  
這篇文章主要為大家詳細(xì)介紹了微信小程序?qū)崿F(xiàn)水平時(shí)間軸,文中示例代碼介紹的非常詳細(xì),具有一定的參考價(jià)值,感興趣的小伙伴們可以參考一下

本文實(shí)例為大家分享了微信小程序?qū)崿F(xiàn)水平時(shí)間軸的具體代碼,供大家參考,具體內(nèi)容如下

1、wxml部分代碼如下:

<view class="wehx-line-box">
?? ?<view class="weui-flex__item wehx-line-item" wx:for="{{axis}}" wx:key="*this">
?? ??? ?<view class='line-name'>{{item.name}}</view>
?? ??? ?<view class='weui-cell-list'>
?? ??? ??? ?<view class='line' style="background:{{item.star}}"></view>
?? ??? ??? ?<view class="dot {{item.finished?'dotActive':''}}"></view>
?? ??? ??? ?<view class='line' style="background:{{item.end}}"></view>
?? ??? ?</view>
?? ?</view>
</view>

或者:

<view class="wehx-line-box">
?? ?<view class="weui-flex__item wehx-line-item">
?? ??? ?<view class='line-name'>待成交</view>
?? ??? ?<view class='weui-cell-list'>
?? ??? ??? ?<view class='line' style="background:none;"></view>
?? ??? ??? ?<view class="dot {{item.finished?'dotActive':''}}"></view>
?? ??? ??? ?<view class='line' style="background:{{item.end}}"></view>
?? ??? ?</view>
?? ?</view>
?? ?<view class="weui-flex__item wehx-line-item">
?? ??? ?<view class='line-name'>等待確認(rèn)費(fèi)用</view>
?? ??? ?<view class='weui-cell-list'>
?? ??? ??? ?<view class='line' style="background:{{item.star}}"></view>
?? ??? ??? ?<view class="dot {{item.finished?'dotActive':''}}"></view>
?? ??? ??? ?<view class='line' style="background:{{item.end}}"></view>
?? ??? ?</view>
?? ?</view>
?? ?<view class="weui-flex__item wehx-line-item">
?? ??? ?<view class='line-name'>未付款</view>
?? ??? ?<view class='weui-cell-list'>
?? ??? ??? ?<view class='line' style="background:{{item.star}}"></view>
?? ??? ??? ?<view class="dot {{item.finished?'dotActive':''}}"></view>
?? ??? ??? ?<view class='line' style="background:none;"></view>
?? ??? ?</view>
?? ?</view>
</view>

wxss部分代碼如下:

.wehx-line-box{
? display: flex;
? height: 90rpx;
? border-top: 1rpx dashed #e5e5e5;
? padding: 30rpx 0;
}
.wehx-line-item{
? display:flex;flex-direction:column;justify-content:space-between;align-items:center;
}
.weui-cell-list{
? display:flex;align-items:center;justify-content:space-between;width:100%;
}
?.line{
?width:43%;
? height:2rpx;
? background: #d5d8dd;
?}
?.dot{
? border-radius: 50%;
? width: 10px;
? height: 10px;
? margin-right: 4rpx;
? background: #d5d8dd;
?}
?/*圓點(diǎn)背景色變?yōu)樗{(lán)色****** */
?.dotActive{
? background: #2ea7e0;
?}
?.line-name{
? font-size:30rpx;
?}

Js部分代碼如下所示:

// pages/market/detail/detail.js
Page({

? /**
?1. 頁(yè)面的初始數(shù)據(jù)
? ?*/
? data: {
? ? axis:[
? ? ? {
? ? ? ? name:'待成交',
? ? ? star:'none',
? ? ? end: '#d5d8dd',
? ? ? },
? ? ? {
? ? ? ? name: '等待確認(rèn)費(fèi)用',
? ? ? star:'#d5d8dd',
? ? ? end: '#d5d8dd',
? ? ? },
? ? ? {
? ? ? ? name: '未付款',
? ? ? star:'#d5d8dd',
? ? ? end: 'none',
? ? ? },
? ? ?]
? },

? /**
?2. 生命周期函數(shù)--監(jiān)聽(tīng)頁(yè)面加載
? ?*/
? onLoad: function (options) {

? },

? /**
?3. 生命周期函數(shù)--監(jiān)聽(tīng)頁(yè)面初次渲染完成
? ?*/
? onReady: function () {

? },

? /**
?4. 生命周期函數(shù)--監(jiān)聽(tīng)頁(yè)面顯示
? ?*/
? onShow: function () {

? },

? /**
?5. 生命周期函數(shù)--監(jiān)聽(tīng)頁(yè)面隱藏
? ?*/
? onHide: function () {

? },

? /**
?6. 生命周期函數(shù)--監(jiān)聽(tīng)頁(yè)面卸載
? ?*/
? onUnload: function () {

? },

? /**
?7. 頁(yè)面相關(guān)事件處理函數(shù)--監(jiān)聽(tīng)用戶下拉動(dòng)作
? ?*/
? onPullDownRefresh: function () {

? },

? /**
?8. 頁(yè)面上拉觸底事件的處理函數(shù)
? ?*/
? onReachBottom: function () {

? },

? /**
?9. 用戶點(diǎn)擊右上角分享
? ?*/
? onShareAppMessage: function () {

? }
})

最終效果如圖所示:

以上就是本文的全部?jī)?nèi)容,希望對(duì)大家的學(xué)習(xí)有所幫助,也希望大家多多支持腳本之家。

相關(guān)文章

最新評(píng)論

普兰县| 濮阳市| 分宜县| 醴陵市| 邹城市| 赤峰市| 青海省| 太康县| 六安市| 哈巴河县| 西昌市| 松江区| 惠水县| 侯马市| 盈江县| 民和| 光山县| 肇东市| 屯留县| 扬州市| 黄陵县| 永福县| 涿鹿县| 日土县| 泗洪县| 体育| 瑞昌市| 雷波县| 江源县| 河曲县| 紫阳县| 宝应县| 项城市| 西城区| 勐海县| 隆子县| 盈江县| 昌图县| 普格县| 湘潭市| 临猗县|