开发者设置快捷入口 https://mp.weixin.qq.com/wxamp/devprofile/get_profile > 需要管理入扫码
小程序全局分享,在main.js文件中添加:
Vue.mixin({ data() { return { } }, methods: { }, onShareAppMessage() { console.log('share...............'); var user_id=uni.getStorageSync("user_id") return { title: "首页", path: '/pages/index/index?fid='+user_id } }, onShareTimeline(){ console.log('share...............'); var user_id=uni.getStorageSync("user_id") return { title: "首页", path: '/pages/index/index?fid='+user_id } }, })
- 消息通知订阅一次后可以重复发,如果用户选择拒收后,订阅不会再弹窗口,需要手动在设置中变更,变更后需要再重新订阅一次才能发。 ```
根据发货方式不同结算周期也不相同: 快递物流: 1、如用户主动确认收货,则资金将于收货次日结算; 2、如用户未主动确认收货,则资金将于订单发货后的第10天,系统自动确认收货后结算
自提/同城配送/虚拟发货: 1、如用户主动确认收货,则资金将于收货次日结算; 2、如用户未主动确认收货,则资金将于订单发货后的第2天,系统自动确认收货后结算
### 消息订阅
错误码:
```json
{errCode: 20004, errMsg: "requestSubscribeMessage:fail:The main switch is switched off"}
# 开关没开
{errMsg: "requestSubscribeMessage:fail last call has not ended"}
# 客户端并发请求订阅
uni.requestSubscribeMessage({
tmplIds: [temids],
success(res) {
// 值包括'accept':同意、'reject':拒绝、'ban':后台禁用
if (res[temids] == 'accept') {
// 总开关开了,但某条通知接收走这
}else{
// 总开关开了,但某条通知拒绝接收走这
}
},
fail(cell) {
// 通知总开关没开走这
}
})