[图片]
视频组件video android与ios在切换的时候一直转圈?,然后再播放,界面只有一个video<swiper class="video-swiper" vertical duration="10" current="{{current}}" bindchange="onChange" circular="{{circular}}"> <swiper-item wx:for="{{videoList}}" wx:key="index"> <!-- wx:if="{{(index+1)===(current) || index===current ||(index-1)===(current)}}" --> <!-- <block wx:if="{{item.url!=''}}"> --> <block > <video wx:if="{{index===current?true:false}}" id="video_{{index}}" class="video-swiper" show-fullscreen-btn="{{false}}" enable-play-gesture show-center-play-btn="{{false}}" controls enable-progress-gesture="{{false}}" show-bottom-progress src="{{item.url}}" data-id="{{item.id}}" object-fit="cover" data-index="{{index}}" bindtap="videoTap" data-videoId="{{item.id}}" show-play-btn="{{false}}" auto-pause-if-navigate autoplay="{{index===current}}" loop bindplay="onBindplay" custom-cache="{{false}}"> <image class="playImage" src="../../assets/images/play.png" wx:if="{{item.play}}"></image> </video> </block> </swiper-item> </swiper>
2022-09-20然后你会发现重新进入小程序还是之前分享进来的页面
小程序场景值是一直不变的吗?我通过wx.getLaunchOptionsSync获取小程序的场景值,一直没有变化 举个例子:我通过url link进入A页,之后我返回首页,再从首页进入A页,场景值还是1194. 我现在的小程序拥有多个门店,客户可以通过配置url link的参数,传入门店id来决定进入时候是哪个门店。 如果url link配置了门店,我回到首页重新选门店后,进入link配置的页,还会取query中的门店id而不是首页选的,首页白选了 大佬们有啥解决办法吗? ------------------------------------------------------------- 已解决: 我做了一个URL Link的统一入口页,传参带着需要的参数和需要跳转页的路径,再通过路由跳转对应的页,并通过路由或者缓存携带参数,销毁入口页,这样不管怎么进入,其他页的逻辑都不用改变,入口页内判断场景值做各种判断,在跳转其他页的路由中加一个参数代表是link进入。 -------------------------------------------------------------- 再次更新: 用wx.getEnterOptionsSync(),热启动也能获取参数,getLaunchOptionsSync只能获取冷启动时候的参数
2022-09-16需要价格延迟一到两秒才可以看到效果,我就是这么写的
文本输入框text-area在华为P40下无法聚焦?[图片][图片][图片] 只有在华为p40下出现文本框无法聚焦的情况,连placeholder也没有显示 <u-popup v-model="imgCommitShow" mode="bottom" border-radius="20" closeable="true" close-icon-color="#333333" close-icon-size="28"> <view class="center commitTitle f30">上传图片</view> <scroll-view scroll-y="true" style="height:500rpx;"> <textarea v-model="content" class="commitTxt f24" :cursor-spacing="10" placeholder="输入文字说明" cols="30" rows="10" :focus="true" :auto-focus="true"></textarea> <view class="uploadBox"> <view class="uploadImg mr30" v-for="(imgItem,idx) in imgCommitList" :key="idx"> <image :src="imgItem.url" mode="" class="hadUpload"></image> <image src="https://xcx.dst-zy.com/accessory/zhiyunjiao/images/deleteIcon.png" mode="" class="deleteIcon" @click="deleteUploadImg(idx)"></image> </view> <view class="uploadBtn mr30" v-if="imgCommitList.length<3" @click="handleUploadImg"> <image src="https://xcx.dst-zy.com/accessory/zhiyunjiao/images/add.png" mode=""></image> <text>{{imgCommitList.length==0?'上传图片':'继续上传'}} </text> </view> </view> </scroll-view> <view class="confirmBtn white boldFont f30" @click="addImageCommit"> 确定 </view> </u-popup>
2022-09-05设置背景图的优先级看看
使用wx-open-launch-app,点击有透明遮罩?页面底部的区域是使用的wx-open-launch-app标签用以唤醒App,但是在ios下每次点击都会有图2的黑色遮罩。图1是正常显示效果。 本想通过-webkit-tap-highlight-color:transparent; 取消点击遮罩,但是无效。 请问如何去掉该标签的点击遮罩。 [图片] [图片]
2022-07-07二维码转成本地base64也不能扫码
canvas生成海报二维码无法扫描?[图片][图片]
2022-05-06生成画布保存图片然后用户自己分享朋友圈不就行了么
分享朋友圈和转发给朋友都是灰色,按照网上说法,还是不行?[图片][图片]
2022-01-10