- 上传代码提示超过限制?
问题如下: [图片] 原因分析,主包只有1.57mb大为什么会提示超出? [图片] 是不是上传是插件大小也算到主包里了,但是我的插件是在分包里使用的?下面是插件大小 [图片] 下面是分包配置?如果在分包配置 "plugins":{ "ThreeX": { "version":"3.2.1", "provider": "wx5d6376b4fc730db9", "export": "threex.js" } },插件,页面就会报错,配置在app.json里就是正常的 "subPackages": [ // 分包 { "root": "pagesB/measure", // 指向 pagesB 下的 seat-measure 目录 "name": "measure", // 分包名称 "pages": [ { // 测量详情 "path": "details", "style": { "navigationBarTitleText": "测量详情", "navigationBarBackgroundColor": "#fff" } } ] }, { "root": "pagesB/login", // 指向 pagesB 下的 seat-measure 目录 "name": "login", "pages": [ { "path": "index", "style": { "navigationStyle": "custom", "navigationBarTextStyle": "white" } } ] } ], 下面是使用插件的页面: [图片]
01-31 - map使用regionchange移动添加markers和圆,会有漂移?
<view class="map_container"> <map class="map" id="map" :scale="scale" :show-location="true" :longitude="currentLongitude" :latitude="currentLatitude" scale="14" :circles="circle" :markers="markers" @regionchange="regionchange" > <cover-image src="https://rent-giant-production.oss-cn-shanghai.aliyuncs.com/admin/614460234154053.png" @click="handelPosition" class="position-icon"> </cover-image> </map> </view> regionchange:throttle(function(e) { if(e.type === 'end'){ console.log('进入执行:',e) const { latitude,longitude } = e.detail.centerLocation this.currentLatitude = latitude this.currentLongitude = longitude const nowPoint = gcj02towgs84(longitude,latitude) this.fromData.geomPoint.lat = nowPoint[1] this.fromData.geomPoint.lon = nowPoint[0] // 确保 radius 是一个有效的正数 const validRadius = typeof this.fromData.radius === 'number' && this.fromData.radius > 0 ? this.fromData.radius : 50; this.markers = [{ id: 1, // 确保 id 是数字 latitude: latitude, longitude: longitude, anchor: {x: 0.5, y:0.45}, iconPath: 'https://rent-giant-production.oss-cn-shanghai.aliyuncs.com/admin/614143889956933.png', width: 30, // 添加宽度 height: 30 // 添加高度 }] this.circle = [{ latitude: latitude, longitude: longitude, radius: validRadius, strokeWidth: 1, color: '#50ADFB', fillColor: '#8EEEF34D' }] this.getLocationName(latitude,longitude) } },50), 地图放大后中心点也会漂移
2025-07-15 - 微信支付成功后部分手机自动返回了?
uni.requestPayment({ provider: 'wxpay', timeStamp: res.data.timeStamp, nonceStr: res.data.nonceStr, package: res.data.packageValue, signType: res.data.signType, paySign: res.data.paySign, success: function(res) { logger.info('租赁订单】订单支付成功', res) console.log('租金支付成功回调:', res) setTimeout(() => { if(option.value.toPath === 'orderlist'){ navigate.push({ url: '/pages/order/index' }) }else if(option.value.toPath === 'carrental'){ uni.switchTab({ url: '/pages/location/index' }) }else{ navigate.back() } },2000) //navigate.back() }, fail: function(err) { logger.info('【租赁订单】订单支付失败', err) console.log('fail:', err) } }) vivo x100s手机支付成功后并没有走这个跳转逻辑,直接返回了,大部分手机支付完后都是等2秒跳转的
2025-07-09 - 小程序打开外部链接,不用webview还有其他方法打开吗?
小程序打开外部链接,不用webview还有其他方法打开吗?
2025-06-25 - 在tabBar页面,uni-popup里预览图片,关闭预览图片后uni-popup 弹窗也关闭了?
[图片][图片][图片]
2025-06-06 - wx.showShareImageMenu分享图片在安卓是透明背景,在iso是白色背景?
wx.showShareImageMenu({ path: res.tempFilePath, needShowEntrance: false }) 下图是安卓手机分享弹出的图片及分享弹窗 [图片] 下面是ios弹出的图片与分享弹窗 [图片] 这个ios的要怎么处理,有大佬知道吗?
2025-04-28 - h5页面可以自定义按钮分享吗?
场景是小程序使用webview,webview里面使用公众平台网页能力分享,可以自定义按钮分享吗,还是只能点击右上角三个点分享
2025-04-15 - 小程序使用map组件要收费吗?
<map id="map" class="container-map" :latitude="latitudeMap" :longitude="longitudeMap" :markers="markers" show-location :scale="12" :min-scale="10" :circles="circle" :max-scale="16" @markertap="handleMarkerTap" @callouttap="handleOpenMap" @tap="handleTapMap" @regionchange="handleMapChange" @updated="handleMapReady" > 使用map这个收费吗,怎么有腾讯的打电话过来
2025-03-25 - 普通链接二维码跳转小程序?
[图片] 我这个链接是这样配置的,但是生成二维码后跳转的确是线上环境,process.env.VUE_APP_BASE_API+`/?a=b&id=${storageUser.manageResourceId}`这个是我拼接的链接,跟配置的链接是一样的除了后面的id不一样,但是我复制配置里的链接用草料生成可以打开体验版,但是换个id就是打开线上版本,有大佬知道什么问题吗?
2025-02-08 - 小程序webview内嵌H5,h5 b页返回h5 a页面时,ios不刷新、安卓刷新,怎么刷新iOS?
问题点:iOS返回b页面后页面部分点不动
2024-09-02