随笔分类 -  小程序开发

摘要:async getGoodsList(){ const res=await request({url:"https://api-hmugo-web.itheima.net/api/public/v1/goods/search",data:this.QueryParams}); this.setDat 阅读全文
posted @ 2020-08-12 21:33 安全舟 阅读(216) 评论(0) 推荐(0)
摘要:<view> <SearchInput></SearchInput> <Tabs tabs="{{tabs}}" bindstabsItemChange="handletabsItemChange"> <block wx:if="{{tabs[0].isActive}}">0</block> <bl 阅读全文
posted @ 2020-08-12 01:02 安全舟 阅读(315) 评论(0) 推荐(0)
摘要:<navigator wx:for="{{item1.children}}" wx:for-index="index2" wx:for-item="item2" wx:key="cat_id" url="/pages/goods_list/index?cid={{item2.cat_id}}"> 这 阅读全文
posted @ 2020-08-11 23:48 安全舟 阅读(1025) 评论(0) 推荐(0)
摘要:选择购物车的里的字体图标库 点击阿里巴巴图标库的购物车,来到此页面,点击添加项目 项目添加过后如图,点击font class累引入,点击查看在线链接,复制链接url访问在线链接 访问链接过后,页面展示的就是iconfont.css的源代码,复制页面全部css代码 在style文件夹下创建一个icon 阅读全文
posted @ 2020-08-11 23:43 安全舟 阅读(608) 评论(0) 推荐(0)
摘要:代码优化,这里通过了wx.request请求轮播图的API,通过result结果里面的data数据我们可以看到massage里面装着我们的数据 通过图片可以用看到swiperList返回的三个元素的数据,这是通过对象的方式定义的一个LIst,我们把message下面的数据给swiperLIst数组 阅读全文
posted @ 2020-08-08 05:00 安全舟 阅读(168) 评论(0) 推荐(0)

QQ:3378757846