WeChat applet Click on the top navigation bar to switch the style code example

This article mainly introduces the WeChat applet to click on the top navigation bar to switch the style code code. In the text, the presentation of the sample code is very detailed. For everyone’s learning or work, there must be a certain reference value, and the friends need can refer to

微信小程序点击顶部导航栏切换样式代码实例

  {{         .helpdislist .content {Position: relative; Width: 710rpx; border-radius: 5rpx;}. Active {// When you click, add this style / * border-bottom: 4RPX Solid RGB (252, 186, 7); * / color: RGB (252, 186, 7);}   
Page ({data: {helpcatelist: [// data from the background request back to assign the value // {ID: “1”, DESC: “Rehabilitation Medical”}, // {ID: “2”, DESC: “Education”}, // {ID: “3”, DESC: “Employment”}, // {ID: ” 4 “, DESC:” Poverty Alleviation “}, // {ID:” 5 “, DESC:” Vocational Training “}, // {ID:” 6 “, DESC:” Social Security “}, // {ID:” 7 “, DESC:” Cultural Life “},], CurrenttaB: 1,}, Catechange (E) {Console.log (e) let this That That.SetData ({CURRENTTAB: E.CURRENTTARGET.DATASET.ITEMSID, // This must})}
  The above is all the content of this article, I hope to help everyone, I hope everyone will support Tumi Cloud.  
© Copyright Notice
THE END
Just support it if you like
like0
share
comment Grab the couch

Please log in to comment