微信小程序点击跳转传值
摘要:showListView(e) { let txt = e.currentTarget.dataset.txt wx.navigateTo({ url: '/pages/list/index?title=' + txt }) }
阅读全文
posted @
2020-07-25 19:51
心意如水hucuie22
阅读(174)
推荐(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
阅读(152)
推荐(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
阅读(386)
推荐(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
阅读(625)
推荐(0) 编辑
微信小程序-服务器返回数据中包含有\n换行符失效问题解决方案
摘要:新建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
阅读(1426)
推荐(0) 编辑
小程序切换 选项卡展示不同数据
摘要:https://blog.csdn.net/qq_32786139/article/details/82800643?utm_medium=distribute.pc_relevant_bbs_down.none-task-blog-baidujs-1.nonecase&depth_1-utm_so
阅读全文
posted @
2020-07-17 18:36
心意如水hucuie22
阅读(309)
推荐(0) 编辑
vue 监听 路由 meta的变化
摘要:恢复内容开始 恢复内容开始 1.配置路由 { path: '/hellow', name:"hellow", component: hellow, meta:{title:"hellow"} } 2,在mount里面赋值 mounted(){ this.title=this.$route.match
阅读全文
posted @
2020-07-16 11:58
心意如水hucuie22
阅读(672)
推荐(0) 编辑
vue. 3.0使用echar
摘要:1.局部引入 import echars from "echarts" 2.引入composition-api import {reactive,computed,onMounted,toRefs} from '@vue/composition-api'; 3.定义一个方法 const init=(
阅读全文
posted @
2020-07-15 22:13
心意如水hucuie22
阅读(386)
推荐(0) 编辑
vue 监听 路由 meta的变化
摘要:恢复内容开始 1.配置路由 { path: '/hellow', name:"hellow", component: hellow, meta:{title:"hellow"} } 2,在mount里面赋值 mounted(){ this.title=this.$route.matched; },
阅读全文
posted @
2020-07-15 18:04
心意如水hucuie22
阅读(1176)
推荐(0) 编辑
vue element 导航
摘要:https://blog.csdn.net/qq_31126175/article/details/81875468 https://blog.csdn.net/qq_31126175/article/details/88824380
阅读全文
posted @
2020-07-15 14:32
心意如水hucuie22
阅读(151)
推荐(0) 编辑
小程序轴显示数据
摘要:tooltip: { show: true, trigger: 'axis', formatter: function (param) { console.log(param) // 利用循环更改显示的内容 let list = param.length let Oparam=param conso
阅读全文
posted @
2020-07-13 15:08
心意如水hucuie22
阅读(134)
推荐(0) 编辑
vue 3.0 composition -api
摘要:恢复内容开始 .1.安装cnpm install --save @vue/composition-api 在main.js里面 import VueCompositionApi from "@vue/composition-api" Vue.use(VueCompositionApi) 在页面中 /
阅读全文
posted @
2020-07-12 10:24
心意如水hucuie22
阅读(247)
推荐(0) 编辑
ES6 promise 对象
摘要:l promise 是异步编程的一种解决方案,其实是一个构造函数, 译为“承诺”,这也就表达了将来会执行的操作,代表异步操作; let promise = new Promise((resolve, reject) => { console jQuery.ajax({ url: "http://js
阅读全文
posted @
2020-07-10 17:16
心意如水hucuie22
阅读(111)
推荐(0) 编辑
微信公众号授权获取codequ
摘要:getCode() { this.code = '' let origin = 'httpxxxxxxxxxxxxx/' let urlNow = encodeURIComponent(origin); ///netbar/api/wechat/v1/get_open_id let scope =
阅读全文
posted @
2020-07-10 09:29
心意如水hucuie22
阅读(993)
推荐(0) 编辑
vue element 倒计时
摘要:<el-button @click="sendMsg" type="primary" :disabled="isDisabled">{{buttonName}}</el-button> buttonName: "发送短信", isDisabled: false, time: 60, sendMsg(
阅读全文
posted @
2020-07-06 10:46
心意如水hucuie22
阅读(1797)
推荐(0) 编辑
vue常见登陆注册按钮切换效果
摘要:<div v-for="(item,index) in list"> <div :class="{current:item.current}":key="{{item.current}}" @click="toggle(item)">{{item.text}}</div> </div> return
阅读全文
posted @
2020-07-05 10:42
心意如水hucuie22
阅读(740)
推荐(0) 编辑
VUE3.0重新定向
摘要:import Vue from 'vue'import Router from 'vue-router'import Home from '@/components/Home.vue'import login from '@/components/login.vue'Vue.use(Router)e
阅读全文
posted @
2020-07-04 13:11
心意如水hucuie22
阅读(296)
推荐(0) 编辑
vue 实现扫码,获取信息
摘要:恢复内容开始 vue 中安装 cnpm install --save weixin-js-sdk 恢复内容结束 sao() { let that = this; // 点击扫码开始执行函数// 向后台请求 getWxConfig({ orgId: sessionStorage.getItem("or
阅读全文
posted @
2020-07-02 09:12
心意如水hucuie22
阅读(1326)
推荐(1) 编辑
table 表格删除商品指定id
摘要:<tr v-for="(item,index) in list"> <th>{{index+1}}</th> <th>{{item.name}}</th> <th>{{item.data}}</th> <th><a @click.prevent="remove(index)">删除{{index}}
阅读全文
posted @
2020-07-01 11:05
心意如水hucuie22
阅读(266)
推荐(0) 编辑