夜光带你走进 微信小程序开发(四十二)擅长的领域

夜光序言:

 

世人笑我痴红尘,不过红尘恋伊人。

 

 

 

 
 
正文:
 
                                              以道御术 / 以术识道

 

 

 

 

/*夜光: pages/goods_list/goods_list.wxss */
.first_tab{
   .goods_item{
     display: flex;
     border-bottom: 1rpx solid #ccc;
     .goods_img_wrap{
       flex: 2;
       display: flex;
       justify-content: center;
       align-items: center;
       image{
         width: 70%;
       }
     }


     .goods_info_wrap{
       flex:3;
       display: flex;
       flex-direction: column;
       justify-content: space-around;
       .goods_name{
         display: flex;
         overflow: hidden;
         -webkit-box-orient: vertical;
         -webkit-line-clamp:5
       }
       .goods_price{
         color: var(--themeColor);
         font-size:32rpx;
       }
     }
   }

}
/*夜光: pages/goods_list/goods_list.wxss */
.first_tab .goods_item {
  display: flex;
  border-bottom: 1rpx solid #ccc;
}
.first_tab .goods_item .goods_img_wrap {
  flex: 2;
  display: flex;
  justify-content: center;
  align-items: center;
}
.first_tab .goods_item .goods_img_wrap image {
  width: 70%;
}
.first_tab .goods_item .goods_info_wrap {
  flex: 3;
  display: flex;
  flex-direction: column;
  justify-content: space-around;
}
.first_tab .goods_item .goods_info_wrap .goods_name {
  display: flex;
  overflow: hidden;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 5;
}
.first_tab .goods_item .goods_info_wrap .goods_price {
  color: var(--themeColor);
  font-size: 32rpx;
}
<!--pages/goods_list/goods_list.wxml-->
<SearchInput></SearchInput>

<!-- 监听一下事件 -->
<Tabs tabs="{{tabs}}" bindtabsItemChange="handleTabsItemChange">
<!-- 如果第零项被选中的话,就显示什么呢 -->
<block wx:if="{{tabs[0].isActive}}">
   <view class="first_tab">
       <navigator class="goods_item">
           <!-- 左侧图片容器 -->
           <view class="goods_img_wrap">
               <image mode="widthFix" src="http://image1.suning.cn/uimg/b2c/newcatentries/0070134290-000000000149003877_1_800x800.jpg"></image>
           </view>
           <!-- 右侧商品容器 -->
           <view class="goods_info_wrap">
               <view class="goods_name">和道一文字 大快刀二十一工之一 刀柄与刀鞘为白色 简单朴素</view>
               <view class="goods_price">$1688</view>
           </view>
       </navigator>
              <navigator class="goods_item">
           <!-- 左侧图片容器 -->
           <view class="goods_img_wrap">
               <image mode="widthFix" src="http://image1.suning.cn/uimg/b2c/newcatentries/0070134290-000000000149003877_1_800x800.jpg"></image>
           </view>
           <!-- 右侧商品容器 -->
           <view class="goods_info_wrap">
               <view class="goods_name">和道一文字 大快刀二十一工之一 刀柄与刀鞘为白色 简单朴素</view>
               <view class="goods_price">$1688</view>
           </view>
       </navigator>
              <navigator class="goods_item">
           <!-- 左侧图片容器 -->
           <view class="goods_img_wrap">
               <image mode="widthFix" src="http://image1.suning.cn/uimg/b2c/newcatentries/0070134290-000000000149003877_1_800x800.jpg"></image>
           </view>
           <!-- 右侧商品容器 -->
           <view class="goods_info_wrap">
               <view class="goods_name">和道一文字 大快刀二十一工之一 刀柄与刀鞘为白色 简单朴素</view>
               <view class="goods_price">$1688</view>
           </view>
       </navigator>
   </view>
</block>

<block wx:elif="{{tabs[1].isActive}}">




</block>

<block wx:elif="{{tabs[2].isActive}}">




</block>

</Tabs>

 

 

 

 

 

 

 

 

 

 

 

 

 

 

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
VIIRS夜光数据是指由卫星上的可见及红外成像辐射计(Visible Infrared Imaging Radiometer Suite,VIIRS)获得的地球夜间灯光数据。该数据被广泛用于研究城市化进程、气候变化、能源利用以及自然环境变化等诸多领域。 要下载VIIRS夜光数据,首先需要访问美国国家海洋和大气管理局(NOAA)的VIIRS数据中心网站,该网站提供了一系列下载途径,包括FTP下载、Web下载和程序接口下载等。 FTP下载是最简单的下载方式,如果您选择使用FTP下载,您需要安装FTP客户端,输入FTP地址和用户名密码后进行文件下载。由于VIIRS数据相对较大,所以FTP下载需要相应的存储空间和下载速度。 Web下载则是另一种常用的下载方式,您只需要在VIIRS数据中心的网站上输入需要下载的区域和时间范围,以及下载格式等信息,即可通过Web页面下载相应的数据。 如果您是程序员,并且需要批量自动下载VIIRS夜光数据,可以使用程序接口下载。VIIRS数据中心提供了RESTful API接口,您可以通过编写Python程序或其他编程语言,调用接口实现自动化下载。 无论您选择哪种下载方式,都需要注意数据的正确性和完整性。VIIRS夜光数据是大量的卫星影像数据,因此在下载数据时,要注意文件的编号、格式和时间等信息。同时,在数据处理时,也需要注意消除椒盐噪声、衰减因素和误差等问题。

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值