$(document).on('page:beforein', '.page[data-name="new_release"]', async function (e) {

  console.log('app new_release ready')

  //var aid = e.detail.route.params.id

  //console.log(aid)

  //items_pria();

  let dt2=get_localstorage('item_pria');

  let dt=dt2.data.by_create_at.bysort.data;

  console.log(dt)  

  

  var content = `<div class="grid grid-cols-2 grid-gap">`;

  dt.forEach(v => {

    content +=`

  <a href="/p/by_create_at/${v.id}" data-href="/p/by_create_at/${v.id}" class="card card-with-footer">

      <img src="${v.img}" alt="${v.name} ${v.pid}">

      <div class="card-footer">

        <div class="card-category bg-color-white">${v.brand}</div>

        <p>${v.rp_min}</p>

      </div>

  </a>      

    `;

  });

  content +=`</div>`;

  $("#new_release_content").html(content);

  

});