- canvas真机无法设置自定义字体?
canvas在模拟器上设置自定义字体可以生效,但是在真机中无法生效,请问有什么解决办法吗?
2021-06-29 - 微信昵称改了但是小程序获取的还是旧的昵称?
微信昵称改了但是小程序获取的还是旧的昵称,用的是wx.getUserProfile,请问是什么原因呢?
2021-06-17 - scroll-view页面不更新?
scroll-view里面包裹列表,列表所在数组更新了,但是页面没有更新,请问是什么原因呢? <scroll-view id='chats_scroll' class="scroll-view-items" scroll-y="true" style='overflow: scroll;height:100%;margin-bottom: {{listViewHeight}}px' scroll-top="{{scrollTop}}" bindscroll="scrollEvent" bindscrolltolower="scolltolowerList" bindscrolltoupper="scolltoupperList"> <!-- <scroll-view class="" scroll-y="true" scroll-top="{{scrollTop}}" bindscroll="scrollEvent" bindscrolltolower="scolltolowerList" bindscrolltoupper="scolltoupperList"> --> <view class='type-notice' wx:if="{{taskChatList.length >= 100}}"> <text class='text-blue' bindtap="tapChatRecords">查看聊天历史记录</text> </view> <view id="chat-list-view" style="height: auto;"> <block wx:key="index" wx:for="{{taskChatList}}" > <!-- <view>{{item}}</view> --> <view class='type-notice' hidden='{{item.type == 0?false: true}}'> <text class='msg-notice'>{{item.type == 0?item.content:''}}</text> </view> <view class="chat-item" id='{{"id"+index}}' style='justify-content: {{item.user_id == user_id?"flex-end":"flex-start"}};margin-bottom:{{index == taskChatList.length-1 ? "10rpx" : 0}}' hidden='{{item.type == 0 ? true:false}}' data-id='{{item.id}}'> <view > <view class="cu-avatar head-img user-info-avatar round text-sm" hidden='{{item.user_id == user_id?true:false}}' bindtap='tapUserInfo' data-id='{{item.user_id}}'> <image class="" src="{{item.avatar}}" mode='widthFix'></image> </view> <view hidden='{{item.user_id == user_id?true:false}}'>{{item.nickname}}</view> </view> <view class='img-chat-mini'> <image class='img-chat-mini' src='https://cdn.guanaet.kimnxcx.com/images/ic_chat_mini_left.png' hidden='{{item.user_id == user_id || item.type== 2 || item.type=="video"?true:false}}'></image> </view> <!-- 这是包裹消息的盒子 --> <view class='chat-info-msg'> <template is="chat-send-status" wx:if="{{item.user_id == user_id}}" data="{{sendStatus:item.sendStatus}}" /> <view class='msg-info' style='justify-content: {{item.user_id == user_id?"flex-end":"flex-start"}};' bindlongpress='longPressMore' data-id='{{item.id}}' data-type='{{item.type}}' data-userid='{{item.user_id}}' data-createdat='{{item.created_at}}' data-index='{{index}}'> <view class='type-text' style='background-color: {{item.user_id == user_id?"greenyellow":"white"}};' hidden='{{item.type == 1 ? false : true}}'> <view class='emoji_content'> <block class='sss' wx:key="emojiIndex" wx:for="{{item.txt}}" wx:for-item='items'> <image wx:if="{{items.type == 'emoji'}}" class='msg-img-emotion' src='{{cdns+items.url}}'></image> <text wx:if="{{items.type != 'emoji'}}" class='msg-text'>{{items.txt}}</text> </block> </view> </view> <view class='type-image' style='text-align: {{item.user_id == user_id?"right":"left"}};' hidden='{{item.type == 2?false: true}}'> <image class='msg-image' src='{{item.type == 2?cdns+item.url:""}}' mode='widthFix' bindtap='tapPreviewImage' data-id='{{item.id}}' bindload='loadImage' data-src='{{item.url}}' data-index='{{index}}' style='width:{{ item.width }}vw; height:{{ item.height }}vw;'></image> </view> <view class='type-audio' bindtap='tapPlayAudio' style='text-align: {{item.user_id == user_id?"right":"left"}}; justify-content: {{item.user_id == user_id?"flex-end":"flex-start"}}; ' hidden='{{item.type == 3?false: true}}' data-id='{{item.id}}' data-src='{{item.type == 3?item.url:""}}'> <view wx:if='{{item.isMy}}' class='vw-duration'> {{item.duration}}" </view> <view class='msg-audio' style='height:40px;width:{{item.duration*0.75+15}}vw; background-color: {{item.isMy?"greenyellow":"white"}}' data-src='{{item.type == 3?item.url:""}}'> <template is="voice-item" data="{{isMy:item.isMy,isPlaying:item.isPlaying}}" /> </view> <text wx:if='{{!item.isMy && !item.isRead}}' class="audio-redpoint"></text> <view wx:if='{{!item.isMy}}' class='vw-duration'> {{item.duration}}" </view> </view> <view class='type-video' style='text-align: {{item.user_id == user_id?"right":"left"}};' hidden='{{item.type == 4?false: true}}'> <image id='{{item.id}}' class='img-video' bindtap='tapPlayVideo' style="position: relative;" controls='true' src='{{item.type == 4?cdns+item.snapshot:""}}' data-id='{{item.id}}' data-src='{{item.type == 4?item.url:""}}'> <image class='img-play-btn' style="position:absolute;z-index: 10;" src='https://cdn.guanaet.kimnxcx.com/images/play_video.png'></image> </image> </view> <!-- 包裹文档的盒子 --> <view class="flex bg-white solid-bottom justify-between radius rpxpadding-35" style="width: 60vw;" hidden='{{item.type == 5?false: true}}' bindtap='tapOpenFile' data-id='{{item.id}}'> <view class="margin-right radius"> {{item.type == 5?item.filename:''}} </view> <view class=""> <template is="file-type-lg" data="{{fileType:item.type_icon}}" /> <!-- 红点 --> <view wx:if='{{!item.isMy && !item.isRead}}' class="cu-tag badge"></view> </view> </view> </view> </view> <view class='img-chat-mini'> <image class='img-chat-mini' src='https://cdn.guanaet.kimnxcx.com/images/ic_chat_mini_right.png' hidden='{{item.user_id == user_id && item.type!= 2 && item.type!=4&& item.type!=5?false:true}}'></image> </view> <view > <view class="cu-avatar head-img user-info-avatar round text-sm" hidden='{{item.user_id == user_id?false:true}}' bindtap='tapUserInfo' data-id='{{item.user_id}}'> <image class="" src="{{item.avatar}}" mode='widthFix'></image> </view> <view hidden='{{item.user_id == user_id?false:true}}'>{{item.nickname}}</view> </view> </view> </block> </view> <!-- </scroll-view> --> </scroll-view>
2021-06-12 - wx.getUserProfile获取灰色头像?
wx.getUserProfile还是获取黑色头像,是什么原因呢?版本号是1.16.1
2021-04-26 - 小程序审核成功发布后不更新?
微信小程序审核成功发布后,并没有更新,还是旧版本,删掉重新扫码也不更新,是什么原因呢?
2021-03-18 - wx.downloadFile下载文件bin格式?
微信小程序下载文件格式为bin格式,请问是什么原因呢? wx.downloadFile({ url: e.currentTarget.dataset.url, success: (res) => { console.log(res) let tempFilePath = res.tempFilePath; wx.openDocument({ filePath: tempFilePath }) }, fail: () => { }, complete: () => { } });
2021-03-10 - 小程序注册?
微信小程序在微信认证的时候没有提供过对公账户,现在也办不了对公账户,但是注销还需要对公账户打款验证,请问如何解决呢,主体是团委的,官方能来解决下吗?
2021-03-03 - 微信小程序注销?
微信小程序注销一定要提供对公账户吗?可是没有对公账户怎么注销呢?
2021-03-02 - 微信小程序基本信息审核?
小程序基本信息审核要多久呢,今天上午提交的审核信息,但是还没有结果,之前审核还是比较快的,现在比较急,可以加快审核一下吗?
2021-03-01 - wx.requestSubscribeMessage无法调起弹窗授权?
wx.requestSubscribeMessage当用户点错或拒绝后,在开发者工具中可以再次调起,但是在真机中无法再次唤起授权的弹窗,是什么怎么解决呢?opensetting 会调起所有授权的设置,真机是在体验版中测试的,有人可以来给解答下吗?
2021-02-24