Commit ea499b8d authored by wangzhujun's avatar wangzhujun

shouye

parent ecdfc377
......@@ -91,46 +91,45 @@ Page({
// console.warn("activityStatusResp", activityStatusResp.data)
// console.warn("wid", wid)
// globalData.wid = wid
// const isBindPhone = await this.getBindPhone(wid)
// if (isBindPhone) {
// /**已绑定的老用户直接拿loginToken */
// await this.login(wid)
// const resp = await apiDbIndexInfo({
// wid
// })
// if (resp.success) {
// this.setData({
// authAvatar: resp.data.authAvatar,
// inviteNum: resp.data.inviteNum,
// inviteTicketNum: resp.data.inviteTicketNum
// })
// if (resp.data.authAvatar && !options.shareCode && !options.q) {
// if (wx.getStorageSync('db_firstIn_pop') == '1') {
// //已经授权的情况下走新手引导
// if (wx.getStorageSync('db_guide') != '1') {
// /**新手引导 */
// wx.setStorageSync('db_guide', '1')
// this.setData({
// guideIndex: 0
// })
// } else {
// //看是否有人帮忙助力
// // resp.data.inviteNum > 0
// if (resp.data.inviteNum > 0 && activityStatusResp.data == 2) {
// this.setData({
// showModalType: "assistReflct"
// })
// }else{
// this.openGameModal()
// }
// }
// }
// }
// /**首页接口存储 */
// globalData.indexInfo = resp.data
// }
// }
const isBindPhone = await this.getBindPhone();
if (isBindPhone) {
/**已绑定的老用户直接拿loginToken */
await this.login();
const resp = await Object(_utils_db_api_index__WEBPACK_IMPORTED_MODULE_1__["apiDbIndexInfo"])({
wid
});
if (resp.success) {
this.setData({
authAvatar: resp.data.authAvatar,
inviteNum: resp.data.inviteNum,
inviteTicketNum: resp.data.inviteTicketNum
});
if (resp.data.authAvatar && !options.shareCode && !options.q) {
if (wx.getStorageSync('db_firstIn_pop') == '1') {
//已经授权的情况下走新手引导
if (wx.getStorageSync('db_guide') != '1') {
/**新手引导 */
wx.setStorageSync('db_guide', '1');
this.setData({
guideIndex: 0
});
} else {
//看是否有人帮忙助力
// resp.data.inviteNum > 0
if (resp.data.inviteNum > 0 && activityStatusResp.data == 2) {
this.setData({
showModalType: "assistReflct"
});
} else {
this.openGameModal();
}
}
}
}
/**首页接口存储 */
_utils_db_api_globalData__WEBPACK_IMPORTED_MODULE_0__["globalData"].indexInfo = resp.data;
}
}
// // console.warn("isBindPhone", isBindPhone)
// this.setData({
// isBindPhone
......
......@@ -2,7 +2,7 @@
.db_index-container {
width: 750rpx;
height: 100vh;
overflow: hidden;
overflow: scroll;
position: absolute;
}
......@@ -10,8 +10,6 @@
width: 750rpx;
height: 1624rpx;
top: 0rpx;
bottom: 0rpx;
margin: auto;
position: absolute;
}
......
......@@ -18,7 +18,7 @@ __webpack_require__.r(__webpack_exports__);
/*!******************************************************************!*\
!*** ./src/packages/wm-cloud-db_index/utils/db_api/dbrequest.js ***!
\******************************************************************/
/*! exports provided: dbLoginParam, dbCheckHavePower, apiCoopIndex, apiScan, uploadFile, authAvatar, getTicketStatus, getShareUserInfo, doAssist, getActivityStatus, queryOrderId, userRecord, getTaskInfoParam, getShareCodeParam */
/*! exports provided: dbLoginParam, dbCheckHavePower, apiCoopIndex, apiDraw, apiQueryOptions, authAvatar, getTicketStatus, getShareUserInfo, doAssist, getActivityStatus, queryOrderId, userRecord, getTaskInfoParam, getShareCodeParam */
/***/ (function(module, __webpack_exports__, __webpack_require__) {
"use strict";
......@@ -26,8 +26,8 @@ __webpack_require__.r(__webpack_exports__);
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "dbLoginParam", function() { return dbLoginParam; });
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "dbCheckHavePower", function() { return dbCheckHavePower; });
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "apiCoopIndex", function() { return apiCoopIndex; });
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "apiScan", function() { return apiScan; });
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "uploadFile", function() { return uploadFile; });
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "apiDraw", function() { return apiDraw; });
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "apiQueryOptions", function() { return apiQueryOptions; });
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "authAvatar", function() { return authAvatar; });
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "getTicketStatus", function() { return getTicketStatus; });
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "getShareUserInfo", function() { return getShareUserInfo; });
......@@ -77,24 +77,24 @@ const dbCheckHavePower = {
/** 活动首页*/
const apiCoopIndex = {
url: "/weimocloud/projectx/index",
url: "/duiba/projectx/index",
//apiDbDomain +
header: {},
method: "GET"
};
/** 扫码*/
const apiScan = {
url: "/weimocloud/projectx/scan",
/** 转盘抽奖*/
const apiDraw = {
url: "/duiba/projectx/draw",
//apiDbDomain +
header: {},
method: "GET"
};
// 上传头像数据
const uploadFile = {
url: "/weimocloud/customActivity/imgUploadUrl",
method: "POST",
// 转盘奖品信息
const apiQueryOptions = {
url: "/duiba/projectx/queryOptions",
method: "GET",
header: {}
};
......
......@@ -105,46 +105,46 @@ Page({
// console.warn("activityStatusResp", activityStatusResp.data)
// console.warn("wid", wid)
// globalData.wid = wid
// const isBindPhone = await this.getBindPhone(wid)
// if (isBindPhone) {
// /**已绑定的老用户直接拿loginToken */
// await this.login(wid)
// const resp = await apiDbIndexInfo({
// wid
// })
// if (resp.success) {
// this.setData({
// authAvatar: resp.data.authAvatar,
// inviteNum: resp.data.inviteNum,
// inviteTicketNum: resp.data.inviteTicketNum
// })
// if (resp.data.authAvatar && !options.shareCode && !options.q) {
// if (wx.getStorageSync('db_firstIn_pop') == '1') {
// //已经授权的情况下走新手引导
// if (wx.getStorageSync('db_guide') != '1') {
// /**新手引导 */
// wx.setStorageSync('db_guide', '1')
// this.setData({
// guideIndex: 0
// })
// } else {
// //看是否有人帮忙助力
// // resp.data.inviteNum > 0
// if (resp.data.inviteNum > 0 && activityStatusResp.data == 2) {
// this.setData({
// showModalType: "assistReflct"
// })
// }else{
// this.openGameModal()
// }
// }
// }
// }
// /**首页接口存储 */
// globalData.indexInfo = resp.data
// }
// }
const isBindPhone = await this.getBindPhone()
if (isBindPhone) {
/**已绑定的老用户直接拿loginToken */
await this.login()
const resp = await apiDbIndexInfo({
wid
})
if (resp.success) {
this.setData({
authAvatar: resp.data.authAvatar,
inviteNum: resp.data.inviteNum,
inviteTicketNum: resp.data.inviteTicketNum
})
if (resp.data.authAvatar && !options.shareCode && !options.q) {
if (wx.getStorageSync('db_firstIn_pop') == '1') {
//已经授权的情况下走新手引导
if (wx.getStorageSync('db_guide') != '1') {
/**新手引导 */
wx.setStorageSync('db_guide', '1')
this.setData({
guideIndex: 0
})
} else {
//看是否有人帮忙助力
// resp.data.inviteNum > 0
if (resp.data.inviteNum > 0 && activityStatusResp.data == 2) {
this.setData({
showModalType: "assistReflct"
})
}else{
this.openGameModal()
}
}
}
}
/**首页接口存储 */
globalData.indexInfo = resp.data
}
}
// // console.warn("isBindPhone", isBindPhone)
// this.setData({
// isBindPhone
......
.db_index-container {
width: 750rpx;
height: 100vh;
overflow: hidden;
overflow: scroll;
position: absolute;
}
......@@ -9,8 +9,6 @@
width: 750rpx;
height: 1624rpx;
top: 0rpx;
bottom: 0rpx;
margin: auto;
position: absolute;
}
......
......@@ -37,23 +37,23 @@ export const dbCheckHavePower = {
/** 活动首页*/
export const apiCoopIndex = {
url: "/weimocloud/projectx/index", //apiDbDomain +
url: "/duiba/projectx/index", //apiDbDomain +
header: {},
method: "GET"
}
/** 扫码*/
export const apiScan = {
url: "/weimocloud/projectx/scan", //apiDbDomain +
/** 转盘抽奖*/
export const apiDraw = {
url: "/duiba/projectx/draw", //apiDbDomain +
header: {},
method: "GET"
}
// 上传头像数据
export const uploadFile = {
url: "/weimocloud/customActivity/imgUploadUrl",
method: "POST",
// 转盘奖品信息
export const apiQueryOptions = {
url: "/duiba/projectx/queryOptions",
method: "GET",
header: {
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment