上一页 1 2 3 4 5 6 7 8 ··· 22 下一页
摘要: 'use strict' import { getToken } from './auth' const baseUrl1 = 'https://xxx'. // 域名地址 var Request = function (url, data, method="get",header,code=200 阅读全文
posted @ 2022-11-16 11:04 Panax 阅读(22) 评论(0) 推荐(0)
摘要: 新建一个另外的组件 // components/noRecord/index.js Component({ /** * 组件的属性列表 */ properties: { }, /** * 组件的初始数据 */ data: { }, /** * 组件的方法列表 */ methods: { } }) 阅读全文
posted @ 2022-11-16 10:47 Panax 阅读(34) 评论(0) 推荐(0)
摘要: <!--components/noRecord/index.wxml--> <view class="mod_no_record"> <view class="content"> <image src="/imgs/no_record.png" alt srcset class="img" mode 阅读全文
posted @ 2022-11-16 10:40 Panax 阅读(27) 评论(0) 推荐(0)
摘要: <swiper class="{{swiperClass}}" current="{{activeTab}}" duration="{{duration}}" bindchange="handleSwiperChange" > <swiper-item wx:for="{{tabs}}" wx:ke 阅读全文
posted @ 2022-11-16 10:20 Panax 阅读(63) 评论(0) 推荐(0)
摘要: <scroll-view class="main_con" bindscrolltolower="getOrderList" // 写请求事件 scroll-y="true" > </scroll-view> 可以加上 scroll-with-animation = 'true' 平滑滚动 阅读全文
posted @ 2022-11-16 10:17 Panax 阅读(16) 评论(0) 推荐(0)
摘要: 1. view 代替了原来的div标签。 2. wx:if 代替了原来的v-if 。wx:elif. 代替了原来的v-else-if 。 3: text 代替了原来的p 标签。 4. catch:tap 或者bind:tap 代替了click 事件,且不支持修饰符。 5. 自定义data-id属性, 阅读全文
posted @ 2022-11-16 09:55 Panax 阅读(180) 评论(0) 推荐(0)
摘要: 1. 原生小程序与时间弹窗 <van-popup show="{{ showDatetimePicker }}" round position="bottom" > <van-datetime-picker title="选择开始时间" type="date" formatter="{{ forma 阅读全文
posted @ 2022-11-16 09:27 Panax 阅读(88) 评论(0) 推荐(0)
摘要: 介绍事件 bindtap 和 catchtap 都属于点击事件,绑定之后,点击组件是可以触发这个函数的。 区别 bindtap :子元素使用bindtap绑定事件后,执行的时候,会冒泡到父元素(触发父元素上绑定的bingtap事件) catchtap :不会冒泡到父元素上,阻止事件冒泡 阅读全文
posted @ 2022-11-16 09:18 Panax 阅读(155) 评论(0) 推荐(0)
摘要: 开放工具太老,软件需要更新。 去官网上更新稳定版本,并在开发者工具中本地基础库选择对应版本。 开发者工具只是一个展示工具,建议在vscode中进行专业的编辑。 因为在开发者中进行设置less 转wxss ,没有生效。在vscode setting.json 中生效了。 具体设置: 在扩展中安装eas 阅读全文
posted @ 2022-11-15 17:32 Panax 阅读(114) 评论(0) 推荐(0)
摘要: 1. ls 查看文件 2. pwd 查看目录 3. mkdir A 创建文件 4. touch A B 创建空白文件 5. touch -c A 避免创建某类文件 6. ls 列出某类文件 7. stat A 查看了它的统计信息: 8. rm A 删除A 9. rm -r A 对文件夹的子文件等进行 阅读全文
posted @ 2021-03-02 20:43 Panax 阅读(1237) 评论(0) 推荐(0)
上一页 1 2 3 4 5 6 7 8 ··· 22 下一页