微信小程序开发时关闭调试模式后接口无法访问可能原因:
1.接口地址是否开启了ssl https
2.小程序是否开启了合法域名
在开发工具中详情项目配置中可以看到域名信息是否添加了接口地址
...
yekong
4年前 (2020-12-23)
喜欢
查询是否需要热更新
getupdate() {
var that = this;
this.$minApi
.updateconf()
.then(res => ...
yekong
4年前 (2020-12-22)
喜欢
uniapp 版本对比实现热更新
创建utils.js
module.exports = {
/**
* 比较版本号的大小,如果curV 大于 reqV,则返回true,否则返回false
* @param {String} curV
* ...
yekong
4年前 (2020-12-22)
喜欢
在做app的时候经常需要上传头像,这就需要压缩图片了
使用plus.zip.compressImage 进行压缩
chooseImage() {
var that = this;
uni.chooseImage({
...
yekong
4年前 (2020-12-22)
喜欢
uploadimg(pic) {
var that = this;
uni.showLoading({
title: '上传中'
});
...
yekong
4年前 (2020-12-22)
喜欢
苹果
uni.getSystemInfoSync().platform == 'ios'
安卓
uni.getSystemInfoSync().platform === 'android'
...
yekong
4年前 (2020-12-22)
喜欢
onLoad(e) {
var that=this;
that.id = e.id ? e.id : '128826844756709376';
if (that.id) {
that...
yekong
4年前 (2020-12-21)
喜欢
确认信息框
uni.showModal({
title: '提示',
confirmText: '注册账号',
cancelText: '登录绑定',
content: '当前微信还未绑定账号,请使用账号密码登录进行绑定或注...
yekong
4年前 (2020-12-21)
喜欢
上游页面传值
方式1
<navigator :url="'/pages/ucenter/user-info?id=' + item.id" class="weui-cell memner-cell" v-for=&q...
yekong
4年前 (2020-12-21)
喜欢
<script>
import {
get_lists
} from '@/config/api.js'
export default {
data() {
retur...
yekong
4年前 (2020-12-21)
喜欢