部分显示问题调整,问题修复,增加购物车初始化和商品更新未找到对应商品发送删除消息
This commit is contained in:
@@ -1,6 +1,21 @@
|
||||
const accountInfo = wx.getAccountInfoSync();
|
||||
export const envVersion = accountInfo.miniProgram.envVersion;
|
||||
let type = 3;
|
||||
if (envVersion === 'trial') {
|
||||
console.log('当前环境是体验版');
|
||||
type = 2;
|
||||
} else if (envVersion === 'release') {
|
||||
console.log('当前环境是正式版');
|
||||
type = 0;
|
||||
} else {
|
||||
type = 1;
|
||||
console.log('当前环境是开发版或其他');
|
||||
}
|
||||
|
||||
|
||||
export function wxShare(par) {
|
||||
return {
|
||||
...par,
|
||||
type: 2
|
||||
type
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user