摘要:导入项目后project.config.json文件被微信开发者工具修改,缺少代码:“miniprogramRoot”: "./dist" 向project.config.json文件中添加如下代码 “miniprogramRoot”: “./dist/dev/mp-weixin” 后从新编译即可:
阅读全文
摘要:<view> //必须是在text标签里面使用decode="{{true}}",然后在文字中加入 <text class='const3_2' decode="{{true}}"> 一行白鹭上青天 </text> </view>
阅读全文
摘要:需要满足三个条件: 1.scrollview设置scroll-x属性。 2.scroll-view的样式要设置white-space:nowrap 3.凡是scroll-view内部要滑动的组件,样式中都要有设置display:inline-block
阅读全文
摘要:进入小程序后,先用微信的 wx.checkSession() 函数判断 session 是否过期,如果没有过期,再检查本地是否有 token 缓存,如果有缓存,就取出来。如果本地没有缓存,就执行一整套登录逻辑,这里登录的逻辑写在 utils/util.js 文件中. login ->获取code -
阅读全文
摘要:toNavigation(){ var o = { name: '医院', location: { lat: '39.894806', lng: '116.321592' } };以下内容为固定值 uni.navigateToMiniProgram({ appId: 'wx7643d5f831302
阅读全文
摘要:this.text = rts.replace(/\<img/gi, '<img class="rich-img" ');添加类名 /deep/ .rich-img { width: 100%; height: auto; },直接.类名无效果,原因不详
阅读全文
摘要:使用encodeURIComponent():函数可把字符串作为 URI 组件进行编码。 在获取的时候decodeURIComponent(options.url)
阅读全文
摘要:1 <!-- #ifdef APP-PLUS --> 2 <image :src="图片地址" mode="aspectFill" @longpress="savePhoto(图片地址)"/> 3 <!-- #endif --> 4 <!-- #ifdef MP --> 5 <image :src=
阅读全文
摘要:manifest.json中小程序获取地址权限未开启?
阅读全文
摘要:<button open-type="getPhoneNumber" bindgetphonenumber="getPhoneNumber"></button> 改为 <button open-type="getPhoneNumber" @getphonenumber="getPhoneNumber
阅读全文
摘要:生成的二维码保存本地 小程序开发工具点击普通编译 即可跳转到二维码页面调试
阅读全文
摘要:路径再miniprogram 下 具体https://blog.csdn.net/qq_42294411/article/details/115187024
阅读全文