上一页 1 ··· 4 5 6 7 8 9 10 11 12 13 下一页
摘要: 获取商品id(父子组件通信) 1.子组件 <template> <view class="detail"> <view><button @click="navigator(id)">点我跳转</button></view> </view> </template> <script> export de 阅读全文
posted @ 2021-02-14 22:35 Wayhome' 阅读(306) 评论(0) 推荐(0) 编辑
摘要: 1、request.js文件 /*request.js*/ /* 封装的网络请求 */ export const request = params => { const baseUrl = "https://api-hmugo-web.itheima.net/api/public/v1" retur 阅读全文
posted @ 2021-02-12 21:26 Wayhome' 阅读(853) 评论(0) 推荐(0) 编辑
摘要: 使用阿里字体图标iconfont:https://www.bilibili.com/video/BV1nE41117BQ?p=48 阅读全文
posted @ 2021-02-09 18:23 Wayhome' 阅读(64) 评论(0) 推荐(0) 编辑
摘要: CSS Tree快速生成CSS样式结构 1.安装CSS Tree插件 2.全选html代码 <view class="receive_address"> <!-- 收货地址按钮 开始 --> <view class="btn" wx:if="{{!address.userName}}"> <butt 阅读全文
posted @ 2021-02-02 22:48 Wayhome' 阅读(1099) 评论(0) 推荐(0) 编辑
摘要: 微信小程序加入购物车:https://www.bilibili.com/video/BV1nE41117BQ?p=81 // pages/goods_detail/goods_detail.js import { getGoodsDetail } from '../../network/http.j 阅读全文
posted @ 2021-02-02 16:41 Wayhome' 阅读(1592) 评论(0) 推荐(0) 编辑
摘要: 1.vscode设置 2.微信开发者工具设置 阅读全文
posted @ 2021-02-01 23:32 Wayhome' 阅读(1303) 评论(0) 推荐(0) 编辑
摘要: // pages/goods_list/goods_list.js import { getGoodsList } from '../../network/http.js'; Page({ /** * 页面的初始数据 */ data: { cid: '',//商品传递过来的id参数 goodsLis 阅读全文
posted @ 2021-02-01 11:08 Wayhome' 阅读(273) 评论(0) 推荐(0) 编辑
摘要: 1.定义子组件Tabs <!-- Tabs.wxml组件 --> <view class="tab_wrapper"> <view class="tab"> <view class="{{currentIndex index?'active':''}} title" wx:for="{{tabs}} 阅读全文
posted @ 2021-01-31 21:16 Wayhome' 阅读(1667) 评论(0) 推荐(0) 编辑
摘要: 微信小程序缓存技术:https://www.bilibili.com/video/BV1nE41117BQ?p=63 /** 思路: 1.先判断本地存储中有没有旧数据 2.没有旧数据,直接发送新请求 3.有旧数据,同时旧数据没有过期,就使用本地存储中的数据 */ //request.js /*封装的 阅读全文
posted @ 2021-01-30 20:57 Wayhome' 阅读(350) 评论(0) 推荐(0) 编辑
摘要: https://www.jb51.net/softjc/609020.html 阅读全文
posted @ 2021-01-27 17:03 Wayhome' 阅读(90) 评论(0) 推荐(0) 编辑
上一页 1 ··· 4 5 6 7 8 9 10 11 12 13 下一页
// 侧边栏目录 // https://blog-static.cnblogs.com/files/douzujun/marvin.nav.my1502.css