上一页 1 2 3 4 5 6 7 ··· 12 下一页
摘要: mapState的用法 export default new Vuex.Store({ state: { count: 0, list: [{ id: "11", name:"hucuie" }, { id: "12", name:"hucuie" }, ] }, mutations: {}, ac 阅读全文
posted @ 2020-08-23 15:12 心意如水hucuie22 阅读(157) 评论(0) 推荐(0) 编辑
摘要: vue create vuex //创建vue项目 安装vuex vue add vuex 阅读全文
posted @ 2020-08-23 15:05 心意如水hucuie22 阅读(111) 评论(0) 推荐(0) 编辑
摘要: <a :href="'https://uri.amap.com/marker?position='+hospitalObj.longitude+','+hospitalObj.latitude+'&name='+hospitalObj.provinceName +hospitalObj.cityNa 阅读全文
posted @ 2020-08-18 14:15 心意如水hucuie22 阅读(167) 评论(0) 推荐(0) 编辑
摘要: var arr=this.list.filter((item)=>{ return item.isShow; }); var num=arr.length; var str = ""; for(var i in arr){ var idList=arr[i].id; str += arr[i].id 阅读全文
posted @ 2020-08-13 10:48 心意如水hucuie22 阅读(334) 评论(0) 推荐(0) 编辑
摘要: 恢复内容开始 新建filter.wxs文件,文件内容如下 var format = function (text) { if (!text) { return } var reg = getRegExp('\\\\n', 'g') return text.replace(reg,'\n')} mod 阅读全文
posted @ 2020-08-13 10:41 心意如水hucuie22 阅读(353) 评论(0) 推荐(0) 编辑
摘要: showListView(e) { let txt = e.currentTarget.dataset.txt wx.navigateTo({ url: '/pages/list/index?title=' + txt }) } 阅读全文
posted @ 2020-07-25 19:51 心意如水hucuie22 阅读(173) 评论(0) 推荐(0) 编辑
摘要: <scroll-view class="nav_left" scroll-y> <block wx:key="{{index}}" wx:for="{{navLeftItems}}"> //当前点击的项等于当前点击下标添加 class <view class="nav_left_items {{cu 阅读全文
posted @ 2020-07-25 19:49 心意如水hucuie22 阅读(150) 评论(0) 推荐(0) 编辑
摘要: 恢复内容开始 const domain = 'https://msinterface-jd.herokuapp.com'; const domain2 = "https://www.thenewstep.cn" 在until里面新建js const interfaces = { // 返回的首页请求 阅读全文
posted @ 2020-07-25 10:59 心意如水hucuie22 阅读(382) 评论(0) 推荐(0) 编辑
摘要: const domain = 'https://msinterface-jd.herokuapp.com'; const domain2 = "https://www.thenewstep.cn" 在until里面新建js const interfaces = { // 返回的首页请求的json数据 阅读全文
posted @ 2020-07-18 13:20 心意如水hucuie22 阅读(617) 评论(0) 推荐(0) 编辑
摘要: 新建filter.wxs文件,文件内容如下 var format = function (text) { if (!text) { return } var reg = getRegExp('\\\\n', 'g') return text.replace(reg,'\n')} module.exp 阅读全文
posted @ 2020-07-17 18:39 心意如水hucuie22 阅读(1397) 评论(0) 推荐(0) 编辑
上一页 1 2 3 4 5 6 7 ··· 12 下一页