可以使用css的transition+calc宽度呀
求大神提供个思路?有参考[图片] 这是我看到的别人的,求思路
2023-01-30可以在app的生命周期尝试获取 或者在页面的生命周期使用回调尝试获取
微信公众号模板消息跳转小程序带参,第一次加载小程序无法获取参数?微信公众号模板消息带参,我如果是小程序还没有进入加载过获取的参数是null,当我进入过小程序把小程序放在后台后,就能正常获取参数。 未进入小程序时控制台输出的参数: [图片] 进入过小程序时,小程序后台挂起控制台输出的参数: [图片]
2023-01-30刚过完年,我估计没有个2-3天都够呛
小程序接口权限开通审核太慢了,三个小时过去了。还在审核中,等着提交上线呢。谁能不能催一下啊?APPID: wx41304bfd7989b26c [图片]
2023-01-30可以的,在微信公众平台修改
微信小程序服务类目问题可以自己修改吗?我们做了小程序,对接快递公司,用户可以从我们的小程序直接下单给快递公司,后续服务全都是快递公司提供,这种模式我小程序的服务类目应该选什么,现在系统给的是快递,好像也不太对。
2023-01-30右上角->更多资料
怎么样查看别人小程序的服务类目?怎么样查看别人小程序的服务类目?
2023-01-30wx:key="{{index}}" does not look like a valid key name (did you mean wx:key="index" ?) 应该是key的问题: 试试wx:key="{{item.id}" 或者 wx:key="{{*this}}" 这个看着不对吧<label wx:for="{{sex}}" wx:for-item="item" wx:key="{{item.id}}"> 试试改成<label wx:for="{{sex}}" wx:for="你的数据" wx:key="{{item.id}}">
利用模板来做小程序,我是小白,求大哥来解救下面出了什么问题?VM189:22 WXMLRT_$gwx:./common/template/list.wxml:view:2:4: wx:key="{{index}}" does not look like a valid key name (did you mean wx:key="index" ?) _wp @ VM189:22 d_.<computed>.list @ VM189:1280 m8 @ VM189:1396 (anonymous) @ VM189:1613 y @ WAService.js?t=wechat&s=1675004718479&v=2.6.0:1 u.create @ WAService.js?t=wechat&s=1675004718479&v=2.6.0:1 O.prepare @ WAService.js?t=wechat&s=1675004718479&v=2.6.0:1 (anonymous) @ WAService.js?t=wechat&s=1675004718479&v=2.6.0:1 xt @ WAService.js?t=wechat&s=1675004718479&v=2.6.0:1 It @ WAService.js?t=wechat&s=1675004718479&v=2.6.0:1 (anonymous) @ WAService.js?t=wechat&s=1675004718479&v=2.6.0:1 (anonymous) @ WAService.js?t=wechat&s=1675004718479&v=2.6.0:1 Nt.emit @ WAService.js?t=wechat&s=1675004718479&v=2.6.0:1 emit @ WAService.js?t=wechat&s=1675004718479&v=2.6.0:1 (anonymous) @ WAService.js?t=wechat&s=1675004718479&v=2.6.0:1 (anonymous) @ WAService.js?t=wechat&s=1675004718479&v=2.6.0:1 c @ asdebug.js:10 u @ asdebug.js:10 (anonymous) @ asdebug.js:1 f @ asdebug.js:1 g @ asdebug.js:1 (anonymous) @ asdebug.js:1 _ws.onmessage @ asdebug.js:1 [WXML Runtime warning] ./pages/register/register.wxml wx:key="{{item.id}}" does not look like a valid key name (did you mean wx:key="id" ?) 42 | <view class="text"> 43 | <radio-group class="radio-group"> > 44 | <label wx:for="{{sex}}" wx:for-item="item" wx:key="{{item.id}}"> | ^ 45 | <radio value="{{item.value}}" checked="{{item.checked}}" /> {{item.name}} 46 | </label> 47 | </radio-group> [WXML Runtime warning] ./pages/register/register.wxml wx:key="{{index}}" does not look like a valid key name (did you mean wx:key="index" ?) 148 | </view> 149 | <view class="study-wrap"> > 150 | <view class="addstudy delestudy" bind:tap="goAdd" wx:for="{{studyInfo}}" wx:key="{{index}}"> | ^ 151 | <text class="add delete" catch:tap="deleAdd" data-index="{{index}}">x</text> 152 | <text class="school">{{item.school}}</text> 153 | <text class="zye">{{item.zye}}</text> [WXML Runtime warning] ./pages/register/register.wxml wx:key="{{index}}" does not look like a valid key name (did you mean wx:key="index" ?) 165 | </view> 166 | <view class="study-wrap"> > 167 | <view class="addstudy delestudy" bind:tap="goAddwork" wx:for="{{workInfo}}" wx:key="{{index}}"> | ^ 168 | <text class="add delete" catch:tap="deleAddwork" data-index="{{index}}">x</text> 169 | <text class="school">{{item.name}}</text> 170 | <text class="zye">{{item.zwei}}</text> register.js? [sm]:101 {type: "tap", timeStamp: 107257, target: {…}, currentTarget: {…}, detail: {…}, …} register.js? [sm]:101 {type: "tap", timeStamp: 108054, target: {…}, currentTarget: {…}, detail: {…}, …} register.js? [sm]:116 {type: "tap", timeStamp: 109601, target: {…}, currentTarget: {…}, detail: {…}, …} register.js? [sm]:116 {type: "tap", timeStamp: 110188, target: {…}, currentTarget: {…}, detail: {…}, …} register.js? [sm]:131 form发生了submit事件,携带数据为: {} register.js? [sm]:131 form发生了submit事件,携带数据为: {} DevTools: CPU profile parser is fixing 4 missing samples. register.js? [sm]:95 {type: "tap", timeStamp: 218265, target: {…}, currentTarget: {…}, detail: {…}, …} register.js? [sm]:88 picker发送选择改变,携带值为 1980-07-05 register.js? [sm]:131 form发生了submit事件,携带数据为: {} register.js? [sm]:131 form发生了submit事件,携带数据为: {} register.js? [sm]:131 form发生了submit事件,携带数据为: {} register.js? [sm]:131 form发生了submit事件,携带数据为: {} register.js? [sm]:131 form发生了submit事件,携带数据为: {} register.js? [sm]:131 form发生了submit事件,携带数据为: {} register.js? [sm]:131 form发生了submit事件,携带数据为: {} register.js? [sm]:131 form发生了submit事件,携带数据为: {} [WXML Runtime warning] ./common/template/list.wxml wx:key="{{index}}" does not look like a valid key name (did you mean wx:key="index" ?) 1 | <template name="list"> > 2 | <view class="list" wx:for="{{list}}" wx:key="{{index}}" > | ^ 3 | <view class="check-box" wx:if="{{isDelete}}"> 4 | <checkbox-group bind:change="checkboxChange" data-id="{{item.ID}}"> 5 | <label class="checkbox"> asdebug.js:10 POST http://127.0.0.1wx/index/init net::ERR_NAME_NOT_RESOLVED(env: Windows,mp,1.06.2301040; lib: 2.6.0) v @ asdebug.js:10 createRequestTask @ asdebug.js:10 invoke @ asdebug.js:10 r @ asdebug.js:10 invoke @ WAService.js?t=wechat&s=1675004718479&v=2.6.0:1 X @ WAService.js?t=wechat&s=1675004718479&v=2.6.0:1 (anonymous) @ WAService.js?t=wechat&s=1675004718479&v=2.6.0:1 (anonymous) @ WAService.js?t=wechat&s=1675004718479&v=2.6.0:1 ji @ WAService.js?t=wechat&s=1675004718479&v=2.6.0:1 i @ WAService.js?t=wechat&s=1675004718479&v=2.6.0:1 t @ WAService.js?t=wechat&s=1675004718479&v=2.6.0:1 (anonymous) @ WAService.js?t=wechat&s=1675004718479&v=2.6.0:1 (anonymous) @ WAService.js?t=wechat&s=1675004718479&v=2.6.0:1 (anonymous) @ WAService.js?t=wechat&s=1675004718479&v=2.6.0:1 (anonymous) @ WAService.js?t=wechat&s=1675004718479&v=2.6.0:1 (anonymous) @ WAService.js?t=wechat&s=1675004718479&v=2.6.0:1 value @ apihook.js?t=wechat&s=1675004718479&v=0cffbba9918afb1342c18e2fdfb25ef5:1 getAtrList @ index.js? [sm]:235 onLoad @ index.js? [sm]:65 (anonymous) @ WAService.js?t=wechat&s=1675004718479&v=2.6.0:1 p.__callPageLifeTime__ @ WAService.js?t=wechat&s=1675004718479&v=2.6.0:1 Ct @ WAService.js?t=wechat&s=1675004718479&v=2.6.0:1 (anonymous) @ WAService.js?t=wechat&s=1675004718479&v=2.6.0:1 It @ WAService.js?t=wechat&s=1675004718479&v=2.6.0:1 (anonymous) @ WAService.js?t=wechat&s=1675004718479&v=2.6.0:1 (anonymous) @ WAService.js?t=wechat&s=1675004718479&v=2.6.0:1 Nt.emit @ WAService.js?t=wechat&s=1675004718479&v=2.6.0:1 emit @ WAService.js?t=wechat&s=1675004718479&v=2.6.0:1 (anonymous) @ WAService.js?t=wechat&s=1675004718479&v=2.6.0:1 (anonymous) @ WAService.js?t=wechat&s=1675004718479&v=2.6.0:1 c @ asdebug.js:10 u @ asdebug.js:10 (anonymous) @ asdebug.js:1 f @ asdebug.js:1 g @ asdebug.js:1 (anonymous) @ asdebug.js:1 _ws.onmessage @ asdebug.js:1 Show 7 more frames asdebug.js:10 POST http://127.0.0.1wx/hits/add net::ERR_NAME_NOT_RESOLVED(env: Windows,mp,1.06.2301040; lib: 2.6.0) v @ asdebug.js:10 createRequestTask @ asdebug.js:10 invoke @ asdebug.js:10 r @ asdebug.js:10 invoke @ WAService.js?t=wechat&s=1675004718479&v=2.6.0:1 X @ WAService.js?t=wechat&s=1675004718479&v=2.6.0:1 (anonymous) @ WAService.js?t=wechat&s=1675004718479&v=2.6.0:1 (anonymous) @ WAService.js?t=wechat&s=1675004718479&v=2.6.0:1 ji @ WAService.js?t=wechat&s=1675004718479&v=2.6.0:1 i @ WAService.js?t=wechat&s=1675004718479&v=2.6.0:1 t @ WAService.js?t=wechat&s=1675004718479&v=2.6.0:1 (anonymous) @ WAService.js?t=wechat&s=1675004718479&v=2.6.0:1 (anonymous) @ WAService.js?t=wechat&s=1675004718479&v=2.6.0:1 (anonymous) @ WAService.js?t=wechat&s=1675004718479&v=2.6.0:1 (anonymous) @ WAService.js?t=wechat&s=1675004718479&v=2.6.0:1 (anonymous) @ WAService.js?t=wechat&s=1675004718479&v=2.6.0:1 value @ apihook.js?t=wechat&s=1675004718479&v=0cffbba9918afb1342c18e2fdfb25ef5:1 addhits @ util.js? [sm]:101 onLoad @ index.js? [sm]:66 (anonymous) @ WAService.js?t=wechat&s=1675004718479&v=2.6.0:1 p.__callPageLifeTime__ @ WAService.js?t=wechat&s=1675004718479&v=2.6.0:1 Ct @ WAService.js?t=wechat&s=1675004718479&v=2.6.0:1 (anonymous) @ WAService.js?t=wechat&s=1675004718479&v=2.6.0:1 It @ WAService.js?t=wechat&s=1675004718479&v=2.6.0:1 (anonymous) @ WAService.js?t=wechat&s=1675004718479&v=2.6.0:1 (anonymous) @ WAService.js?t=wechat&s=1675004718479&v=2.6.0:1 Nt.emit @ WAService.js?t=wechat&s=1675004718479&v=2.6.0:1 emit @ WAService.js?t=wechat&s=1675004718479&v=2.6.0:1 (anonymous) @ WAService.js?t=wechat&s=1675004718479&v=2.6.0:1 (anonymous) @ WAService.js?t=wechat&s=1675004718479&v=2.6.0:1 c @ asdebug.js:10 u @ asdebug.js:10 (anonymous) @ asdebug.js:1 f @ asdebug.js:1 g @ asdebug.js:1 (anonymous) @ asdebug.js:1 _ws.onmessage @ asdebug.js:1 Show 7 more frames WAService.js?t=wechat&s=1675004718479&v=2.6.0:1 request:fail (env: Windows,mp,1.06.2301040; lib: 2.6.0) Xe @ WAService.js?t=wechat&s=1675004718479&v=2.6.0:1 (anonymous) @ WAService.js?t=wechat&s=1675004718479&v=2.6.0:1 Nt.emit @ WAService.js?t=wechat&s=1675004718479&v=2.6.0:1 Wi @ WAService.js?t=wechat&s=1675004718479&v=2.6.0:1 (anonymous) @ WAService.js?t=wechat&s=1675004718479&v=2.6.0:1 (anonymous) @ WAService.js?t=wechat&s=1675004718479&v=2.6.0:1 c @ asdebug.js:10 (anonymous) @ asdebug.js:10 a.emit @ asdebug.js:1 callback @ asdebug.js:10 (anonymous) @ asdebug.js:10 setTimeout (async) h @ asdebug.js:10 O.onerror @ asdebug.js:10 error (async) v @ asdebug.js:10 createRequestTask @ asdebug.js:10 invoke @ asdebug.js:10 r @ asdebug.js:10 invoke @ WAService.js?t=wechat&s=1675004718479&v=2.6.0:1 X @ WAService.js?t=wechat&s=1675004718479&v=2.6.0:1 (anonymous) @ WAService.js?t=wechat&s=1675004718479&v=2.6.0:1 (anonymous) @ WAService.js?t=wechat&s=1675004718479&v=2.6.0:1 ji @ WAService.js?t=wechat&s=1675004718479&v=2.6.0:1 i @ WAService.js?t=wechat&s=1675004718479&v=2.6.0:1 t @ WAService.js?t=wechat&s=1675004718479&v=2.6.0:1 (anonymous) @ WAService.js?t=wechat&s=1675004718479&v=2.6.0:1 (anonymous) @ WAService.js?t=wechat&s=1675004718479&v=2.6.0:1 (anonymous) @ WAService.js?t=wechat&s=1675004718479&v=2.6.0:1 (anonymous) @ WAService.js?t=wechat&s=1675004718479&v=2.6.0:1 (anonymous) @ WAService.js?t=wechat&s=1675004718479&v=2.6.0:1 value @ apihook.js?t=wechat&s=1675004718479&v=0cffbba9918afb1342c18e2fdfb25ef5:1 getAtrList @ index.js? [sm]:235 onLoad @ index.js? [sm]:65 (anonymous) @ WAService.js?t=wechat&s=1675004718479&v=2.6.0:1 p.__callPageLifeTime__ @ WAService.js?t=wechat&s=1675004718479&v=2.6.0:1 Ct @ WAService.js?t=wechat&s=1675004718479&v=2.6.0:1 (anonymous) @ WAService.js?t=wechat&s=1675004718479&v=2.6.0:1 It @ WAService.js?t=wechat&s=1675004718479&v=2.6.0:1 (anonymous) @ WAService.js?t=wechat&s=1675004718479&v=2.6.0:1 (anonymous) @ WAService.js?t=wechat&s=1675004718479&v=2.6.0:1 Nt.emit @ WAService.js?t=wechat&s=1675004718479&v=2.6.0:1 emit @ WAService.js?t=wechat&s=1675004718479&v=2.6.0:1 (anonymous) @ WAService.js?t=wechat&s=1675004718479&v=2.6.0:1 (anonymous) @ WAService.js?t=wechat&s=1675004718479&v=2.6.0:1 c @ asdebug.js:10 u @ asdebug.js:10 (anonymous) @ asdebug.js:1 f @ asdebug.js:1 g @ asdebug.js:1 (anonymous) @ asdebug.js:1 _ws.onmessage @ asdebug.js:1 Show 20 more frames WAService.js?t=wechat&s=1675004718479&v=2.6.0:1 request:fail (env: Windows,mp,1.06.2301040; lib: 2.6.0) Xe @ WAService.js?t=wechat&s=1675004718479&v=2.6.0:1 (anonymous) @ WAService.js?t=wechat&s=1675004718479&v=2.6.0:1 Nt.emit @ WAService.js?t=wechat&s=1675004718479&v=2.6.0:1 Wi @ WAService.js?t=wechat&s=1675004718479&v=2.6.0:1 (anonymous) @ WAService.js?t=wechat&s=1675004718479&v=2.6.0:1 (anonymous) @ WAService.js?t=wechat&s=1675004718479&v=2.6.0:1 c @ asdebug.js:10 (anonymous) @ asdebug.js:10 a.emit @ asdebug.js:1 callback @ asdebug.js:10 (anonymous) @ asdebug.js:10 setTimeout (async) h @ asdebug.js:10 O.onerror @ asdebug.js:10 error (async) v @ asdebug.js:10 createRequestTask @ asdebug.js:10 invoke @ asdebug.js:10 r @ asdebug.js:10 invoke @ WAService.js?t=wechat&s=1675004718479&v=2.6.0:1 X @ WAService.js?t=wechat&s=1675004718479&v=2.6.0:1 (anonymous) @ WAService.js?t=wechat&s=1675004718479&v=2.6.0:1 (anonymous) @ WAService.js?t=wechat&s=1675004718479&v=2.6.0:1 ji @ WAService.js?t=wechat&s=1675004718479&v=2.6.0:1 i @ WAService.js?t=wechat&s=1675004718479&v=2.6.0:1 t @ WAService.js?t=wechat&s=1675004718479&v=2.6.0:1 (anonymous) @ WAService.js?t=wechat&s=1675004718479&v=2.6.0:1 (anonymous) @ WAService.js?t=wechat&s=1675004718479&v=2.6.0:1 (anonymous) @ WAService.js?t=wechat&s=1675004718479&v=2.6.0:1 (anonymous) @ WAService.js?t=wechat&s=1675004718479&v=2.6.0:1 (anonymous) @ WAService.js?t=wechat&s=1675004718479&v=2.6.0:1 value @ apihook.js?t=wechat&s=1675004718479&v=0cffbba9918afb1342c18e2fdfb25ef5:1 addhits @ util.js? [sm]:101 onLoad @ index.js? [sm]:66 (anonymous) @ WAService.js?t=wechat&s=1675004718479&v=2.6.0:1 p.__callPageLifeTime__ @ WAService.js?t=wechat&s=1675004718479&v=2.6.0:1 Ct @ WAService.js?t=wechat&s=1675004718479&v=2.6.0:1 (anonymous) @ WAService.js?t=wechat&s=1675004718479&v=2.6.0:1 It @ WAService.js?t=wechat&s=1675004718479&v=2.6.0:1 (anonymous) @ WAService.js?t=wechat&s=1675004718479&v=2.6.0:1 (anonymous) @ WAService.js?t=wechat&s=1675004718479&v=2.6.0:1 Nt.emit @ WAService.js?t=wechat&s=1675004718479&v=2.6.0:1 emit @ WAService.js?t=wechat&s=1675004718479&v=2.6.0:1 (anonymous) @ WAService.js?t=wechat&s=1675004718479&v=2.6.0:1 (anonymous) @ WAService.js?t=wechat&s=1675004718479&v=2.6.0:1 c @ asdebug.js:10 u @ asdebug.js:10 (anonymous) @ asdebug.js:1 f @ asdebug.js:1 g @ asdebug.js:1 (anonymous) @ asdebug.js:1 _ws.onmessage @ asdebug.js:1 Show 20 more frames
2023-01-30版本不一致吧.出现空白的手机删掉小程序,然后再重新就如小程序 如果以上方法可以的话,就添加楼上老哥的api更新方法
小程序部分设备打开空白?小程序部分设备打开空白? [图片]
2023-01-30看运气吧.一般半天左右
wx.chooseLocation、wx.getLocation接口申请需要多长时间通过?之前小程序发布没问题,今天修改一个bug,然后上传就提示接口调用需要申请。已提交申请,请问wx.chooseLocation、wx.getLocation接口申请需要多长时间通过?
2023-01-30我试了也是同样的问题.估计是开发者工具有bug了导致视图没更新吧 通过get获取是没有这个数据的
removeStorage无法生效?api: removeStorage // 本地存储 save() { // wx.setStorageSync('pop', {id:1,name:'zzz'}) wx.setStorage({ key: 'pop', data: { id: 1, name: 'zzz' }, success(res) { console.log(res) } }) }, get() { // console.log(wx.getStorageSync('pop')); wx.getStorage({ key: 'pop', success(res) { console.log(res) } }) }, del() { // wx.removeStorageSync("pop"); wx.removeStorage({ key: 'pop', success(e) { console.log(e) } }) }, clear(){ wx.clearStorageSync() wx.clearStorage() } <!-- 本地存储 --> <button type="primary" size="mini" bindtap="save">本地存储==存</button> <button type="primary" size="mini" bindtap="get">本地存储==取</button> <button type="primary" size="mini" bindtap="del">本地存储==删</button> <button type="primary" size="mini" bindtap="clear">本地存储==清空</button> [图片] 存取删正常 存取立即删除再取 也会发现pop的值已经没了,不会输出取的值 但是 storage一直存在pop这个值 无论怎么删除 清空都会存在 基础库也换了好几个, 微信开发工具也换了几个 [图片]
2023-01-30如果确定没有用到这些功能的代码片段,可以进行删除.还是建议手动.
如何解决代码质量中的“不应存在无依赖文件”?是直接选中全部的无依赖代码文件,右键删除吗?删除后有没有影响项目运行呢[图片]
2023-01-30