Authored by 陈峰

Merge branch 'feature/672-change' into 'release/6.9.8'

Feature/672 change

bug fix

See merge request !15
... ... @@ -22,5 +22,6 @@
"debug": true,
"navigateToMiniProgramAppIdList": [
"wx084ab813d88c594b"
]
}
],
"sitemapLocation": "sitemap.json"
}
\ No newline at end of file
... ...
... ... @@ -16,22 +16,16 @@ Page({
userInfo: {},
tabBarArr: [
{
// icon: '../../static/images/limit/icon_jjfs_n@3x.png',
// iconSelected: '../../static/images/limit/icon_jjfs_p@3x.png',
name: '即将发售',
method: 'app.limitProduct.soonToSaleLimitProduct',
reportName: 'home_soon'
},
{
// icon: '../../static/images/limit/icon_rmfs_n@3x.png',
// iconSelected: '../../static/images/limit/icon_rmfs_p@3x.png',
name: '热门发售',
method: 'app.limitProduct.hotLimitProduct',
reportName: 'home_hot'
},
{
// icon: '../../static/images/limit/icon_yjfs_n@3x.png',
// iconSelected: '../../static/images/limit/icon_yjfs_p@3x.png',
name: '即将发售',
method: 'app.limitProduct.soonToSaleLimitProduct',
reportName: 'home_soon'
},
{
name: '已经发售',
method: 'app.limitProduct.alreadySaleLimitProduct',
reportName: 'home_already'
... ...
... ... @@ -162,6 +162,12 @@ Page(Object.assign({
appParameter
});
let userInfo = app.getUserInfo();
if (!userInfo.wechat || !this.getUserWechatId()) {
this.goLogin({'login': '0', 'type': 'redirectTo'});
return;
}
yas = new Yas(app); // 实例化埋点
this.initActionSheet();
... ... @@ -546,7 +552,7 @@ Page(Object.assign({
let userInfo = app.getUserInfo();
if (!userInfo.wechat || !this.getUserWechatId()) {
this.goLogin(0);
this.goLogin({'login': '0'});
return;
}
... ... @@ -609,7 +615,7 @@ Page(Object.assign({
let userInfo = app.getUserInfo();
if (!userInfo.wechat || !this.getUserWechatId()) {
this.goLogin(0);
this.goLogin({'login': '0'});
return;
}
... ... @@ -771,7 +777,9 @@ Page(Object.assign({
})
},
goLogin(login = 1) {
goLogin(params) {
let login = parseInt(params['login']) || 1;
let type = params['type'] || 'navigateTo';
let data = {};
if (this.data.originUid) {
... ... @@ -788,7 +796,8 @@ Page(Object.assign({
router.go('userCenter', {
referer: `/pages/product/detail/detail?${decodeURIComponent(stringify(data))}`,
login
});
},
type);
},
onPullDownRefresh: function() {
this.setData({
... ...
{
"desc": "关于本文件的更多信息,请参考文档 https://developers.weixin.qq.com/miniprogram/dev/framework/sitemap.html",
"rules": [{
"action": "allow",
"page": "*"
}]
}
\ No newline at end of file
... ...