- 我想问一下,订阅消息的标准使用方式是怎样的?
我的问题是: 1)如果说一个消息提醒的接收方不是行为的操作者,授权怎么处理? 比如:我也有一个订单提醒使用订阅消息,订单的生成是用户,接收是商家,商家在什么时候获取授权呢? 我的实现:在页面的某一个位置显示一个授权模块,如果授权了就不显示,没有授权就显示。但是又遇到了其他的问题: 1.如果用户拒绝后,页面会显示,但是这个时候是不能直接授权的,点击授权会显示拒绝,必须用户去到订阅消息管理里面去手动开启,去过跳转进入,问我觉得体验不好 2.如果用户授权的时候没有点击始终,意思就是一次性的,但是返回的值还是同意,这要怎么处理,是否能够通知到,不可控
06-10 - 真的很无语,onShareTimeline参数传递异常?
好无语啊。 我测试的时候query参数的格式是根据官方文档path?后面补充具体参数,好好的,然后第二天发布后测试就出问题了,参数传递失败,将path?去掉就好了。又要重新发布,然后我看官方智能回答也是没有添加path?的,但是居然还提供了一个文档中没有的参数path字段,无语。做的时候就很无语,为什么不能设置分享地址,其实可以是吗?文档为什么不写,传参为什么偷摸修改啊,还是本来就有问题啊,不知道,很无语啊很无语
05-28 - draggable-sheet拖拽后会透底?
[图片][图片] 四个问题: 1.使用draggable-sheet拖拽到底部后再往上拖拽就会显露出最底部的内容 2.是如果设置了吸顶,并且没有设置背景,滚动容器滚动到顶部会回显露出来,设置padding没用 3.横向滚动高度没有被撑开,使用了官方了方法没用 4.使用了skyline后,字体明显不对了 ide用的最新版本:1.06.24 基础库是3.8.3 真机是ios18.2
05-16 - draggable-sheet拖拽后会透底?
[图片][图片] 四个问题: 1.使用draggable-sheet拖拽到底部后再往上拖拽就会显露出最底部的内容 2.是如果设置了吸顶,并且没有设置背景,滚动容器滚动到顶部会回显露出来,设置padding没用 3.横向滚动高度没有被撑开,使用了官方了方法没用 <draggable-sheet class="sheet" style="height: {{sheetHeight}}px;" initial-child-size="{{minSize}}" min-child-size="{{minSize}}" max-child-size="{{maxSize}}" snap="{{true}}" snap-sizes="{{[0.4, 0.6]}}" worklet:onsizeupdate="onSizeUpdate"> <scroll-view associative-container="draggable-sheet" type="custom" scroll-y class="scrollable" show-scrollbar="{{false}}"> <sticky-section> <sticky-header> <view class="flex-horizontal-between padding-page"> <!-- 路线 --> <custom-button background="transparent" iconSrc="{{themeMode=='light'?'../../images/icons/normal/trajectory.svg':'../../images/icons/normal/dark/trajectory_dark.svg'}}" bind:tap="set"></custom-button> <view class="flex-horizontal-right"> <!-- 回到我的位置 --> <custom-button background="transparent" iconSrc=" {{themeMode=='light'?'../../images/icons/normal/qrcode.svg':'../../images/icons/normal/dark/qrcode_dark.svg'}}" bind:tap="showNavigation"></custom-button> <!-- 二维码 --> <custom-button background="transparent" iconSrc="{{themeMode=='light'?'../../images/icons/normal/qrcode.svg':'../../images/icons/normal/dark/qrcode_dark.svg'}}" bind:tap="qrcode"></custom-button> <!-- 电话 --> <custom-button wx:if="{{role != 0}}" background="transparent" iconSrc="{{themeMode=='light'?'../../images/icons/normal/phone.svg':'../../images/icons/normal/dark/phone_dark.svg'}}" bind:tap="showPhoneList2"></custom-button> <!-- 私信 --> <custom-button wx:if="{{role != 0}}" background="transparent" iconSrc="{{themeMode=='light'?'../../images/icons/normal/message.svg':'../../images/icons/normal/dark/message_dark.svg'}}" bind:tap="chat"></custom-button> <!-- 设置入口 --> <custom-button wx:if="{{role == 0}}" background="transparent" iconSrc="{{themeMode=='light'?'../../images/icons/normal/set.svg':'../../images/icons/normal/dark/set_dark.svg'}}" catch:tap="set" hover-stay-time="0"></custom-button> </view> </view> <!-- 分隔标识 --> <view class="bg-white spacing-list panel-radius"> <view class="section-divider radius"></view> </view> <!-- 选项卡 --> <view class="flex-horizontal-left bg-white padding-page padding-page-bottom"> <view class="list-between {{titleTab=='0'?'text-big':'text-describe color-secondary-text'}}" catchtap="switchTab" data-index="0">概览</view> <view class="{{titleTab=='1'?'text-big':'text-describe color-secondary-text'}}" catchtap="switchTab" data-index="1">公告</view> </view> </sticky-header> <view class="padding-page bg-white"> <!-- 头像 / 名称 --> <view class="flex-start-between spacing-normal"> <view> <view class="spacing-list-desc spacing-normal">{{details.name}}</view> <view class="radius line padding-page-small text-describe {{details.status?'border-color-accent color-accent':'border-color color-secondary-text'}}">{{details.status?'营业中':'休息中'}}</view> </view> <!-- 加入状态 --> <view wx:if="{{role!=0}}" class="radius padding-page padding-normal-top {{!role?'bg-theme':'fill-color'}} " style="min-width:100rpx" bind:tap="primary">{{!role?"加入":"已加入"}}</view> </view> <!-- 位置 --> <view class="color-secondary-text text-describe spacing-normal">{{details.location.address || details.location.name || '未设置位置'}}</view> <scroll-view class="tab-container spacing-normal" enable-flex scroll-x show-scrollbar="{{false}}" style="display: flex; flex-direction: row;"> <block wx:for="{{tabs}}" wx:key="tab" style="flex-shrink:0"> <view class="radius tab-item {{currentTab === index ? 'bg-theme color-button-text' : ''}}" bindtap="changeTab" data-index="{{index}}"> <view>{{item.day}}</view> <view>{{item.month}}月</view> <view>{{item.weekday}}</view> </view> </block> </scroll-view> 4.使用了skyline后,字体明显不对了 ide用的最新版本:1.06.24 基础库是3.8.3 真机是ios18.2
05-15 - skyline单页面适配不行?
app.json "style": "v2", "lazyCodeLoading": "requiredComponents", "themeLocation": "theme.json", "rendererOptions": { "skyline": { "defaultDisplayBlock": true, "defaultContentBox": true } } index.json "renderer": "skyline", "componentFramework": "glass-easel", "navigationStyle": "custom", 只要app.json中不添加renderer,新的组件就是用不了的,加了就可以了,但是我现在只想先试用一个页面,基础库用的3.8.3,worket和skyline的渲染方式都是开启的,ide,我用过两个版本,都不行,感觉一样的,就还是用的stable,补充一下,我的ide工具是最新的,同时是真机和模拟器遇到问题不一样,模拟器上组件其实是可以的,但是真机上无法使用,手机是ios,版本18.2
05-15 - 无法真机测试?
两个情况,我有两个微信,一个微信可以,一个不可以 [图片][图片]
2024-11-04