每篇文章仅做为自己的备忘笔记,若有描述不清或不对的地方还请指明,感谢^_^
摘要: <!DOCTYPE html> <html lang="en"> <head> <meta http-equiv="Content-Type" content="text/html; charset=utf-8" /> <meta name="viewport" content="initial-s 阅读全文
posted @ 2020-05-22 18:01 菜汤不甜 阅读(1228) 评论(0) 推荐(0) 编辑
摘要: 另一篇比较完善 uni封装request请求 /** * requestPromise用于将wx.request改写成Promise方式 * @param:{string} myUrl 接口地址 * @return: Promise实例对象 */ /** 核心:接口文件 */ var apiUrlL 阅读全文
posted @ 2020-05-22 17:36 菜汤不甜 阅读(187) 评论(0) 推荐(0) 编辑
摘要: 自己常用的css样式 阅读全文
posted @ 2020-05-22 17:14 菜汤不甜 阅读(548) 评论(0) 推荐(0) 编辑
摘要: // 验证手机号码 export function isMobile(s) { return /^1[0-9]{10}$/.test(s) } 验证手机号码 // 验证邮箱 export function isEmail(email) { return /^([a-zA-Z0-9]+[_|\_|\. 阅读全文
posted @ 2020-05-22 16:35 菜汤不甜 阅读(161) 评论(0) 推荐(0) 编辑
摘要: 互交反馈 export function myAlert(e,text,icon,mask){ if(!icon){icon="none"} switch (e) { case 0: uni.showToast({//消息提示框。 title:text, mask:mask, icon:icon, 阅读全文
posted @ 2020-05-22 16:31 菜汤不甜 阅读(308) 评论(0) 推荐(0) 编辑
摘要: 1、封装Api 列表 (文件名:apiUrlList.js) var apiUrlList = { service: "https://www.cnblogs.com/", //服务器 picUrl:'/static/images/',//图片地址 "upPic": { url: "/api/fil 阅读全文
posted @ 2020-05-22 16:06 菜汤不甜 阅读(721) 评论(0) 推荐(0) 编辑
摘要: 1、封装Api 列表 (文件名:apiUrlList.js) var apiUrlList = { service: "https://www.cnblogs.com/", //服务器 picUrl:'/static/images/',//图片地址 "loginAPI": { url: "/clie 阅读全文
posted @ 2020-05-22 15:13 菜汤不甜 阅读(2201) 评论(0) 推荐(0) 编辑