admin 管理员组

文章数量: 887021


2023年12月22日发(作者:scanner类在哪个包中)

$(".mui-content").html(htmlContentWhole);let htmlContentItem = ``;for (var i = 0; i < ; i++) {([0].item_img);htmlContentItem +=`${i}" >${[i].item_img}"/>${[i].item_name}${[i].item_brand}¥${[i].item_price}已售${[i].item_sales}件`;}$("#item-list-nav").html(htmlContentItem);for (var j = 0; j < ; j++) {mentById(j).addEventListener('tap', function() {let itemId = [].item_id;//(itemId);$.ajax({type: "POST",dataType: "json",async: false,contentType: "application/json",url: "39.98.158.247:8040/browse/insert?userId=" + userId + "&itemId=" + itemId,success: function() {("insert success");},error: function() {("request error");}})("", "_blank"); = 1;t = ify(data);

= ;});}},error: function() {("request error");}})})}}},error: function() {("request error");},})}}导航可滑动功能实现主要代码div>div>let htmlContent = "";let first_nav_name = [0].top_button_name;htmlContent +=">${[0].top_button_name}`;for (var i = 1; i < ; i++) {if ([i].top_button_status == 1) {htmlContent +=">${[i].top_button_name}`;}}$(".mui-scroll").html(htmlContent);mui('.mui-scroll-wrapper').scroll({scrollY: false, //是否竖向滚动

htmlContent +=`${[i].fun_button_icon}"/>${[i].fun_button_name}`}$("#functionarea").html(htmlContent);}},error: function() {("request error");},})}}实现功能区可滑动#functionarea{height:150px;/* width:100%; */display:flex;flex-direction: column;flex-wrap: wrap;justify-content:space-around;align-items: flex-start;overflow-x: auto;overflow-y: hidden;border-bottom: 1px solid #e4e4e4;text-align: center;}/*实现功能区布局效果主要代码display:flex;flex-direction: column;flex-wrap: wrap;justify-content:space-around;align-items: flex-start;*/


本文标签: 实现 滑动 代码