你确定路径对吗?最笨的办法就是加斜杠和.. 来回试,多动手,少提问。你用api跳转,然后打印下fail回调
为什么<navigator></navigator>无法跳转?以下是.js data: { d: [], imgUrls: [ { link:'pages/inSchool/inSchool', url:'../images/boss.png' }, { link:'pages/outSchool/outSchool', url:'../images/fabu.png' }, { link:'pages/personal/personal', url:'../images/boss.png' } ], 以下是.wxml <swiper indicator-dots="true" autoplay="true" interval="5000" duration="1000"> <block wx:for="{{imgUrls}}" wx:key="index"> <swiper-item> <navigator url="{{item.link}}"> <image wx:if='{{item}}' mode="widthFix" src="{{item.url}}" class="pic"/> </navigator> </swiper-item> </block> </swiper> <view>
2020-02-19四个小时左右
用户昵称修改 getUserInfo 获取的用户昵称 多久会返回修改后的数据?用户昵称修改 getUserInfo 返回的昵称任然是修改之前的,那多久能返回修改后的,或者是有什么方法获取最新的昵称呢
2020-02-19调接口就行了
怎么批量做小程序的带参二维码?怎么批量做小程序的带参二维码?我们自己的后台可以做嘛?
2020-02-19解密失败,报什么错,能不能详细一点
小程序授权获取用户信息后再获取用户手机号AES解密失败?用户进入,先wx.login 通过jscode获取sessionkey后,放入缓存,并且获取了用户信息userinfo。接下来再获取用户手机号的时候就会aes解密失败
2020-02-19你是不是对token有什么误解?你用postman测测你这个接口 看看返回的是什么.你也可以不校验,原样返回 [图片]
设置消息的url地址的token问题?[图片][图片] 说好的token令牌随便填写,怎么填啥都校验失败??
2020-02-19https://work.weixin.qq.com/api/doc/90000/90135/90664 服务端api自己找,我不清楚这个公告,是说的应用消息吗
企业微信是否可以通过API接口发公告?有的话哪里有资料企业微信是否可以通过API接口发公告?有的话哪里有资料 谢谢
2020-02-19这个问题很奇怪,得看看vue源码了 [图片] [图片]
vue中循环列表,总提示属性没有定义,是怎么回事?vue中循环列表,总提示属性没有定义,是怎么回事呢? [图片] <!DOCTYPE html> <html lang="en"> <head> <meta charset="UTF-8"> <meta name="viewport" content="width=device-width, initial-scale=1.0"> <meta http-equiv="X-UA-Compatible" content="ie=edge"> <title>Document</title> <style> .active { background-color: pink; } </style> <script src="vue.js"></script> </head> <body> <div id="app"> <!-- 表单 --> <totle-com :stuname="stuname" :stuage="stuage" :stusex="stusex" @add-num="add" @remove-all="removeAll"></totle-com> <!-- 列表 --> <table width="500" border="1"> <tr> <th>check</th> <th>name</th> <th>age</th> <th>sex</th> <th>remove</th> </tr> <tbody is="my-list" :stuinfo="stuinfo" @del-num="del"></tbody> </table> </div> <!-- 列表 子组件 --> <template id="list"> <div> <p><button @click="removeAll1">全部删除</button></p> <tbody> <tr v-for="(item,index) of stuinfo" :class="item.checked?'active':''"> <td><input type="checkbox" v-model="item.checked"></td> <td>{{item.name}}</td> <td>{{item.age}}</td> <td>{{item.sex}}</td> <td><button @click="del1(index)">remove</button></td> </tr> </tbody> </div> </template> <!-- 表单 子组件 --> <template id="totle"> <div> <p>name:<input type="text" v-model="stuname"></p> <p>age: <input type="text" v-model="stuage"></p> <p>sex: <select v-model="stusex"> <option value="male">男</option> <option value="female">女</option> </select> </p> <p><button @click="add1(index)">添加</button></p> </template> </body> <script> /****表单*******/ Vue.component("totle-com", { template: "#totle", props: ["stuname","stuage","stusex"], methods: { add1(index) { this.$emit("add-num", index) }, } }) /*列表 子组件*/ Vue.component("my-list", { template: "#list", props: ["stuinfo"], methods: { del1(index) { this.$emit("del-num", index) }, removeAll1() { this.$emit("remove-all") }, } }) /*父组件*/ new Vue({ el: "#app", data: { stuname: "", stuage: "", stusex: "male", stuinfo: [{ name: "jack", age: 22, sex: "male", checked: false }, { name: "mike", age: 22, sex: "male", checked: false }] }, methods: { add() { let name = this.stuname; let age = this.stuage; let sex = this.stusex; let checked = false; this.stuinfo.push({ name, age, sex, checked }) }, del(i) { if (this.stuinfo[i].checked) { this.stuinfo.splice(i, 1); } }, removeAll() { let newStuInfo = this.stuinfo.filter(item => { return !item.checked; }); this.stuinfo = newStuInfo; } } }) </script> </html>
2020-02-19会写代码,就能实现。我做过自定义的客服系统
服务号管理后台能否对接对接公司内部系统?希望实现用户在服务号里发送消息后,对应发客服在公众号后台进行解答并同时下发工单至公司内部系统,可以实现吗?
2020-02-19你是说 “即时通信 IM”?
有没有第三方提供长链接服务的服务或者平台?21/50有没有第三方提供长链接服务的服务或者平台?花钱购买的也行
2020-02-19[图片] [图片] [图片]
vue中的父子组件,点击确定按钮,为什么新添加的编号总是重复呢?用vue写了一个小功能,当点击确定按钮,为什么新添加的记录中的编号总是重复呢? [图片] <!DOCTYPE html> <html> <head> <title></title> <script src="https://cdn.jsdelivr.net/npm/vue/dist/vue.js"></script> </head> <style type="text/css"> table{ border-collapse: collapse; } </style> <body> <div id="app"> <add @myadd="addUser"></add> <table border="1"> <tr> <th>选择</th> <th>编号</th> <th>姓名</th> <th>年龄</th> <th>性别</th> <th>分数</th> <th>操作</th> </tr> <tr v-for="(item,index) of list" :key="item.id"> <td><input type="checkbox" name="" :checked="item.checked" @click="handleCheck(index)"></td> <td>{{item.id}}</td> <td>{{item.name}}</td> <td>{{item.age}}</td> <td>{{item.sex}}</td> <td>{{item.score}}</td> <td><button @click="deleteItem(index)">删除</button></td> </tr> </table> <button @click="allDelete">全部删除</button> </div> <template id="myForm"> <form> <div> name:<input type="text" v-model="userInfo.name"name=""> </div> <div> age:<input type="text" v-model="userInfo.age" name=""> </div> <div> gender: <input type="radio" checked value="男" v-model="userInfo.sex">男 <input type="radio" value="女" v-model="userInfo.sex">女 </div> <div> score:<input type="text" name="" v-model="userInfo.score"> </div> <button @click="handleAdd">确定</button> </form> </template> <script type="text/javascript"> //添加用户的表单 Vue.component("add",{ template:`#myForm`, data:function(){ return{ userInfo:{} } }, methods:{ //添加用户 handleAdd(e){ this.$emit("myadd",this.userInfo) e.preventDefault(); } }, }) var app=new Vue({ el:"#app", data:{ list:[ {checked:false,id:1,name:"张三",age:21,sex:'男',score:78}, {checked:false,id:2,name:"张三",age:25,sex:'男',score:79}, {checked:false,id:3,name:"张三",age:27,sex:'男',score:83} ], user:{} }, methods:{ //添加用户 addUser(userInfo){ this.user=userInfo; // this.newUser.id=this.list.length+1; this.user.id=this.list.length+1; this.list.push(this.user) }, //选中与取消选中 handleCheck(index){ this.list[index].checked=!this.list[index].checked }, //删除一项 deleteItem(index){ console.log(this.list[index].checked) if(this.list[index].checked){ this.list.splice(index,1) return; }else{ alert("请选中人员") } }, //删除所有 allDelete(){ this.list=this.list.filter((item,index)=>{ return item.checked==false }) } } }) </script> </body> </html>
2020-02-19