...
|
...
|
@@ -111,6 +111,7 @@ Page(Object.assign({ |
|
|
*/
|
|
|
onLoad: function (options) {
|
|
|
app = getApp();
|
|
|
wx.hideShareMenu();
|
|
|
|
|
|
this.service = new ZeroSellService();
|
|
|
this.commonService = new CommonService();
|
...
|
...
|
@@ -125,8 +126,6 @@ Page(Object.assign({ |
|
|
data.actPrizeId = options.actPrizeId;
|
|
|
}
|
|
|
|
|
|
console.log('options=>', options);
|
|
|
|
|
|
if (options.scene && options.scene.length === 32) {
|
|
|
data.scene = options.scene;
|
|
|
}
|
...
|
...
|
@@ -219,8 +218,6 @@ Page(Object.assign({ |
|
|
},
|
|
|
|
|
|
goToGroupMiniApp(e) {
|
|
|
console.log(e);
|
|
|
console.log(e.detail);
|
|
|
wx.navigateToMiniProgram({
|
|
|
appId: 'wx207f18be42db9028',
|
|
|
path: `pages/group/detail?productSkn=${e.detail.product_skn}&activityId=${e.detail.activity_id}&page_param=${e.detail.activity_id}`,
|
...
|
...
|
@@ -261,7 +258,6 @@ Page(Object.assign({ |
|
|
let query = wx.createSelectorQuery();
|
|
|
query.select('.code-list-item-container').boundingClientRect();
|
|
|
query.exec((res) => {
|
|
|
console.log(res[0].height)
|
|
|
animation.height(res[0].height - 63).step();
|
|
|
this.setData({
|
|
|
animation: animation.export()
|
...
|
...
|
@@ -403,7 +399,6 @@ Page(Object.assign({ |
|
|
}
|
|
|
}
|
|
|
|
|
|
console.log('step=>', step)
|
|
|
this.setData({
|
|
|
step: step
|
|
|
});
|
...
|
...
|
@@ -467,7 +462,6 @@ Page(Object.assign({ |
|
|
let commonService = this.commonService;
|
|
|
commonService.getResourceCode('ccc32dbedf164a52b4efa34383878860')
|
|
|
.then(data => {
|
|
|
// console.log(data)
|
|
|
this.setData({
|
|
|
bannerSrc: formatImageUrl(data.src, 340 * app.globalData.systemInfo.pixelRatio, 340 * app.globalData.systemInfo.pixelRatio, 2),
|
|
|
bannerUrl: data.url
|
...
|
...
|
@@ -541,10 +535,10 @@ Page(Object.assign({ |
|
|
};
|
|
|
}
|
|
|
},
|
|
|
goList() {
|
|
|
router.go('index');
|
|
|
goList(e) {
|
|
|
let tab = e.target.dataset.index
|
|
|
router.go('index', {tabIndex: tab || 0,reload:0});
|
|
|
},
|
|
|
|
|
|
getUserInfo: function (e) {
|
|
|
var that = this;
|
|
|
if (e.detail.errMsg === 'getUserInfo:ok') {
|
...
|
...
|
@@ -634,10 +628,8 @@ Page(Object.assign({ |
|
|
if (res.confirm) {
|
|
|
wx.openSetting({
|
|
|
success: (res) => {
|
|
|
// console.log(res.authSetting["scope.userInfo"])
|
|
|
if (res.authSetting["scope.userInfo"] !== null && res.authSetting["scope.userInfo"] !== undefined && res.authSetting["scope.userInfo"] === true) {
|
|
|
getUnionID(app.getWechatThirdSession(), function (response) {
|
|
|
// console.log(response)
|
|
|
})
|
|
|
}
|
|
|
}
|
...
|
...
|
|