Commit 73a124c9 by 高淑倩

支付宝

parent ad3d5bbf
{"undefined::component2":false,"undefined::_enableAutoPush":false,"undefined::_appIdList":[],"undefined::uploadTime":"","undefined::packageSize":0,"tinyType":"alipay","tinyCnName":"支付宝","tinyProjectType":"alipay-mini","alipay:alipay-mini:tinyIcon":"https://gw.alipayobjects.com/zos/rmsportal/rcwFIauzePpMqlTzzanK.svg","alipay:alipay-mini:auditLink":null,"alipay:alipay-mini:whiteListLink":null,"alipay:alipay-mini:createLink":null,"alipay:alipay-mini:component2":true,"alipay:alipay-mini:_enableAutoPush":true,"alipay:alipay-mini:_appIdList":[{"appid":"2019092767841505","name":"广东7-Eleven会员专区","logoUrl":"https://appstoreisvpic.alipayobjects.com/prod/92f5af9e-d902-443e-8789-39c1306cfcdc.png"},{"appid":"2019092667869080","name":"大禹prd","logoUrl":"https://appstoreisvpic.alipayobjects.com/prod/b9aad8d4-08f4-42e2-a225-9daae4c8bc38.png"},{"appid":"2019092667878018","name":"大禹qa","logoUrl":"https://appstoreisvpic.alipayobjects.com/prod/427d828a-9326-47b3-8c0a-fb35c4c1c521.png"},{"appid":"2019091967575819","name":"大禹dev","logoUrl":"https://appstoreisvpic.alipayobjects.com/prod/eebdb2f7-2747-499e-9a22-2b89664d7739.png"}],"alipay:alipay-mini:uploadTime":"2019-10-10 13:34:02","alipay:alipay-mini:packageSize":0,"alipay:alipay-mini:MockStore":{"reLoginErr":false,"_loginCode":"bca82be317d24ab6a16ce881b674ZX68","_userInfo":{"avatar":"https://tfs.alipayobjects.com/images/partner/TB1G5LYXaFzDuNkUuyQXXbFwXXa","city":"杭州市","countryCode":"CN","gender":"m","nickName":"大倩。?","province":"浙江省"},"_accreditUserInfo":{"avatar":"https://tfs.alipayobjects.com/images/partner/TB1G5LYXaFzDuNkUuyQXXbFwXXa","city":"杭州市","countryCode":"CN","gender":"m","nickName":"大倩。?","province":"浙江省"},"token":"f46a67309ff4046b9888b061921e80f6","_baseUserInfo":{"applyCardUrl":"https%3A%2F%2Fmemberprod.alipay.com%2Faccount%2Fopenform%2Factivecard.htm%3Fapp_id%3D2019092767841505%26template_id%3D20190929000000002119230000300556%26__webview_options__%3DcanPullDown%253dNO%2526transparentTitle%253dauto%26out_string%3Dalipay","authToken":"composeB400cff02c5de432394a5c66043b90X68","member":{"activateAlipayCardTime":"2019-09-30 10:00:54","activateWxCardTime":"2019-09-10 15:41:32","alipayCardOpenDate":"2019-09-30 10:00:54","alipayUserId":"2088702576494684","brandId":"2711","cardNoAlipay":"svneleven0000000168","cardNoWeixin":"071878816099","code":"770068861000668313","createTime":"2019-06-17 19:41:58","id":"590264896856395776","level":0,"lock":false,"memberWeixin":{"nickname":"endlesslove","sex":"男"},"memberWeixinApps":[{"appid":"wx700028bf32a3be66","openid":"oUOIF0Tt6GoJ2LOgYzF2NRZvOAZA","unionid":"oV1j3v7I4827WMnAKO4mBmwOAxXs"},{"appid":"wx700028bf32a3be66","openid":"oUOIF0bnsh0zfxFFBum7bl17TGqg","unionid":"oV1j3vygMHvfP621Vw1tGQ5mw76o"}],"mobile":"17521232119","name":"D","openid":"of8NluDPlsEJbM51TsvIjxXWV7XE","registerTime":"2019-06-17 19:41:58","sex":"男","unionid":"oV1j3vygMHvfP621Vw1tGQ5mw76o","updateTime":"2019-10-08 22:30:50"},"memberActivateStatus":true,"outerStr":"{\"tentacle-content\":{\"contentId\":631881296720826368,\"contentType\":7,\"id\":631881298109153280,\"tentacleId\":627819732912988160,\"tentacleType\":3},\"activateType\":\"TENTACLE_CONTENT\"}","token":"f46a67309ff4046b9888b061921e80f6"}},"alipay:alipay-mini:_appId":"2019092767841505","alipay:alipay-mini:_appName":"广东7-Eleven会员专区","alipay:alipay-mini:remoteVersion":"0.0.4","alipay:alipay-mini:currentVersion":"0.0.5","alipay:alipay-mini:whiteList":[],"alipay:alipay-mini:h5WhiteList":[],"alipay:alipay-mini:appLogo":"https://appstoreisvpic.alipayobjects.com/prod/92f5af9e-d902-443e-8789-39c1306cfcdc.png","alipay:alipay-mini:userAuthorization":["userInfo"],"isSimulatorOpen":true,"isNotFirstToggleSimulator":true,"compilerList":[{"title":"普通编译","query":"","page":""},{"title":"积分商城","page":"pages/IntegralMall/IntegralMall"},{"title":"我的消费","page":"pages/mySpend/mySpend"},{"title":"动态子页面_pageId","page":"subPackage/page/pages/subPage/subPage"},{"title":"积分流水","page":"pages/integralWater/integralWater"},{"title":"优惠券","page":"pages/coupons/coupons"},{"title":"我的会员","page":"pages/memberOfOwn/memberOfOwn"},{"title":"发券组件","page":"subPackage/page/pages/aliPayCoupon/aliPayCoupon"}],"compilerIndex":0,"alipay:alipay-mini:preAuditLimit":5,"alipay:alipay-mini:preAuditUsed":1,"alipay:alipay-mini:stopRefresh":false,"SimulatorMode":"EMBED","storageVersion":"0.70.11"}
\ No newline at end of file
{"undefined::component2":false,"undefined::_enableAutoPush":false,"undefined::_appIdList":[],"undefined::uploadTime":"","undefined::packageSize":0,"tinyType":"alipay","tinyCnName":"支付宝","tinyProjectType":"alipay-mini","alipay:alipay-mini:tinyIcon":"https://gw.alipayobjects.com/zos/rmsportal/rcwFIauzePpMqlTzzanK.svg","alipay:alipay-mini:auditLink":null,"alipay:alipay-mini:whiteListLink":null,"alipay:alipay-mini:createLink":null,"alipay:alipay-mini:component2":true,"alipay:alipay-mini:_enableAutoPush":true,"alipay:alipay-mini:_appIdList":[{"appid":"2019092767841505","name":"广东7-Eleven会员专区","logoUrl":"https://appstoreisvpic.alipayobjects.com/prod/92f5af9e-d902-443e-8789-39c1306cfcdc.png"},{"appid":"2019092667869080","name":"大禹prd","logoUrl":"https://appstoreisvpic.alipayobjects.com/prod/b9aad8d4-08f4-42e2-a225-9daae4c8bc38.png"},{"appid":"2019092667878018","name":"大禹qa","logoUrl":"https://appstoreisvpic.alipayobjects.com/prod/427d828a-9326-47b3-8c0a-fb35c4c1c521.png"},{"appid":"2019091967575819","name":"大禹dev","logoUrl":"https://appstoreisvpic.alipayobjects.com/prod/eebdb2f7-2747-499e-9a22-2b89664d7739.png"}],"alipay:alipay-mini:uploadTime":"2019-10-10 18:45:43","alipay:alipay-mini:packageSize":null,"alipay:alipay-mini:MockStore":{},"alipay:alipay-mini:_appId":"2019092767841505","alipay:alipay-mini:_appName":"广东7-Eleven会员专区","alipay:alipay-mini:remoteVersion":"0.0.5","alipay:alipay-mini:currentVersion":"0.0.6","alipay:alipay-mini:whiteList":[],"alipay:alipay-mini:h5WhiteList":[],"alipay:alipay-mini:appLogo":"https://appstoreisvpic.alipayobjects.com/prod/92f5af9e-d902-443e-8789-39c1306cfcdc.png","alipay:alipay-mini:userAuthorization":[],"isSimulatorOpen":false,"isNotFirstToggleSimulator":true,"compilerList":[{"title":"普通编译","query":"","page":""},{"title":"积分商城","page":"pages/IntegralMall/IntegralMall"},{"title":"我的消费","page":"pages/mySpend/mySpend"},{"title":"动态子页面_pageId","page":"subPackage/page/pages/subPage/subPage"},{"title":"积分流水","page":"pages/integralWater/integralWater"},{"title":"优惠券","page":"pages/coupons/coupons"},{"title":"我的会员","page":"pages/memberOfOwn/memberOfOwn"},{"title":"发券组件","page":"subPackage/page/pages/aliPayCoupon/aliPayCoupon"}],"compilerIndex":0,"alipay:alipay-mini:preAuditLimit":5,"alipay:alipay-mini:preAuditUsed":1,"alipay:alipay-mini:stopRefresh":false,"SimulatorMode":"EMBED","storageVersion":"0.70.11"}
\ No newline at end of file
This source diff could not be displayed because it is too large. You can view the blob instead.
{"tabs":["file:///f%3A/code/7_Eleven_Alipay/pages/userCenter/userCenter.axml","file:///f%3A/code/7_Eleven_Alipay/pages/userCenter/userCenter.js"],"current":"file:///f%3A/code/7_Eleven_Alipay/pages/userCenter/userCenter.js","storageVersion":"0.70.11"}
\ No newline at end of file
{"tabs":["file:///f%3A/code/7_Eleven_Alipay/pages/userCenter/userCenter.axml","file:///f%3A/code/7_Eleven_Alipay/pages/userCenter/userCenter.js","file:///f%3A/code/7_Eleven_Alipay/component/home-modal/home-modal.js","file:///f%3A/code/7_Eleven_Alipay/component/home-modal/home-modal.axml"],"current":"file:///f%3A/code/7_Eleven_Alipay/component/home-modal/home-modal.js","storageVersion":"0.70.11"}
\ No newline at end of file
......@@ -2,18 +2,6 @@
const g = typeof global !== 'undefined' ? global : self;
g.appXAppJson = {
"app": {
"$homepage": "pages/userCenter/userCenter",
"subPackages": [
{
"root": "subPackage/page",
"pages": [
"pages/subPage/subPage",
"pages/h5/h5page",
"pages/pointGoodsList/pointGoodsList",
"pages/goToHome/goToHome",
"pages/aliPayCoupon/aliPayCoupon"
]
}
]
"$homepage": "pages/userCenter/userCenter"
}
};
......@@ -31,3 +31,8 @@ require('../../pages/integralMallDetail/integralMallDetail?hash=156a812558d5337e
require('../../pages/activateCard/activateCardCallback?hash=32d7d2807ed4e666ef03b4b3fe8c38ecf2e34e68');
require('../../pages/pointList/pointList?hash=eb17aa2f4ba7cc997fe708841f1fe01cde8cc03d');
require('../../pages/pointDetail/pointDetail?hash=d7bedad42ed1e6b4887fbf6bc8af0dfc84d5e21b');
require('../../subPackage/page/pages/subPage/subPage?hash=8e626b248a992afa8f9f3584872c5d6c18593805');
require('../../subPackage/page/pages/h5/h5page?hash=32d7d2807ed4e666ef03b4b3fe8c38ecf2e34e68');
require('../../subPackage/page/pages/pointGoodsList/pointGoodsList?hash=32d7d2807ed4e666ef03b4b3fe8c38ecf2e34e68');
require('../../subPackage/page/pages/goToHome/goToHome?hash=32d7d2807ed4e666ef03b4b3fe8c38ecf2e34e68');
require('../../subPackage/page/pages/aliPayCoupon/aliPayCoupon?hash=32d7d2807ed4e666ef03b4b3fe8c38ecf2e34e68');
{"files":["f:\\code\\7_Eleven_Alipay\\subPackage\\page\\pages\\aliPayCoupon\\aliPayCoupon.js","f:\\code\\7_Eleven_Alipay\\utils\\currentLinkRouter.js","f:\\code\\7_Eleven_Alipay\\app.js","f:\\code\\7_Eleven_Alipay\\component\\home-modal\\home-modal.acss","f:\\code\\7_Eleven_Alipay\\component\\home-modal\\home-modal.axml","f:\\code\\7_Eleven_Alipay\\component\\picNav\\picNav.js","f:\\code\\7_Eleven_Alipay\\component\\home-modal\\home-modal.js","f:\\code\\7_Eleven_Alipay\\pages\\userCenter\\userCenter.js","f:\\code\\7_Eleven_Alipay\\pages\\userCenter\\userCenter.json","f:\\code\\7_Eleven_Alipay\\pages\\userCenter\\userCenter.axml","f:\\code\\7_Eleven_Alipay\\utils\\wxService.js","f:\\code\\7_Eleven_Alipay\\config\\index.js","f:\\code\\7_Eleven_Alipay\\utils\\Http.js","f:\\code\\7_Eleven_Alipay\\pages\\memberRules\\memberRules.js","f:\\code\\7_Eleven_Alipay\\project.config.json","f:\\code\\7_Eleven_Alipay\\subPackage\\page\\pages\\aliPayCoupon\\aliPayCoupon.axml","f:\\code\\7_Eleven_Alipay\\subPackage\\page\\pages\\aliPayCoupon\\aliPayCoupon.acss","f:\\code\\7_Eleven_Alipay\\pages\\memberOfOwn\\memberOfOwn.acss","f:\\code\\7_Eleven_Alipay\\component\\personCenter\\personCenter.acss","f:\\code\\7_Eleven_Alipay\\component\\personCenter\\personCenter.axml","f:\\code\\7_Eleven_Alipay\\component\\personCenter\\personCenter.js","f:\\code\\7_Eleven_Alipay\\pages\\memberOfOwn\\memberOfOwn.axml","f:\\code\\7_Eleven_Alipay\\subPackage\\page\\pages\\goToHome\\goToHome.js","f:\\code\\7_Eleven_Alipay\\subPackage\\page\\pages\\goToHome\\goToHome.json","f:\\code\\7_Eleven_Alipay\\subPackage\\page\\pages\\goToHome\\goToHome.axml","f:\\code\\7_Eleven_Alipay\\subPackage\\page\\pages\\goToHome\\goToHome.acss","f:\\code\\7_Eleven_Alipay\\app.json","f:\\code\\7_Eleven_Alipay\\subPackage\\page\\pages\\aliPayCoupon\\aliPayCoupon.json","f:\\code\\7_Eleven_Alipay\\utils\\util.js","f:\\code\\7_Eleven_Alipay\\pages\\activateCard\\activateCardCallback.js","f:\\code\\7_Eleven_Alipay\\component\\authorization-modal\\authorization-modal.axml","f:\\code\\7_Eleven_Alipay\\component\\authorization-modal\\authorization-modal.acss","f:\\code\\7_Eleven_Alipay\\pages\\couponDetail\\couponDetail.js","f:\\code\\7_Eleven_Alipay\\pages\\couponCodeDetail\\couponCodeDetail.js","f:\\code\\7_Eleven_Alipay\\pages\\coupons\\coupons.acss","f:\\code\\7_Eleven_Alipay\\pages\\coupons\\coupons.axml","f:\\code\\7_Eleven_Alipay\\pages\\integralWater\\integralWater.acss","f:\\code\\7_Eleven_Alipay\\pages\\integralWater\\integralWater.axml","f:\\code\\7_Eleven_Alipay\\pages\\coupons\\coupons.js","f:\\code\\7_Eleven_Alipay\\subPackage\\page\\pages\\subPage\\subPage.js","f:\\code\\7_Eleven_Alipay\\pages\\integralWater\\integralWater.js","f:\\code\\7_Eleven_Alipay\\component\\personCenter\\personCenter.json","f:\\code\\7_Eleven_Alipay\\pages\\integralMallDetail\\integralMallDetail.js","f:\\code\\7_Eleven_Alipay\\pages\\couponCodeDetail\\couponCodeDetail.json","f:\\code\\7_Eleven_Alipay\\component\\exchange-coupon-modal\\exchange-coupon-modal.js","f:\\code\\7_Eleven_Alipay\\pages\\integralMallDetail\\integralMallDetail.axml","f:\\code\\7_Eleven_Alipay\\pages\\integralMallDetail\\integralMallDetail.json","f:\\code\\7_Eleven_Alipay\\pages\\IntegralMall\\IntegralMall.js","f:\\code\\7_Eleven_Alipay\\pages\\IntegralMall\\IntegralMall.axml","f:\\code\\7_Eleven_Alipay\\pages\\couponDetail\\couponDetail.axml"],"storageVersion":"0.70.11"}
\ No newline at end of file
{"files":["f:\\code\\7_Eleven_Alipay\\component\\home-modal\\home-modal.axml","f:\\code\\7_Eleven_Alipay\\subPackage\\page\\pages\\subPage\\subPage.axml","f:\\code\\7_Eleven_Alipay\\pages\\userCenter\\userCenter.axml","f:\\code\\7_Eleven_Alipay\\component\\imageSwiper\\imageSwiper.js","f:\\code\\7_Eleven_Alipay\\utils\\currentLinkRouter.js","f:\\code\\7_Eleven_Alipay\\component\\personCenter\\personCenter.js","f:\\code\\7_Eleven_Alipay\\component\\picNav\\picNav.js","f:\\code\\7_Eleven_Alipay\\component\\picNavServe\\picNavServe.js","f:\\code\\7_Eleven_Alipay\\component\\table\\table.js","f:\\code\\7_Eleven_Alipay\\component\\home-modal\\home-modal.js","f:\\code\\7_Eleven_Alipay\\component\\bottom\\bottom.js","f:\\code\\7_Eleven_Alipay\\Behavior.js","f:\\code\\7_Eleven_Alipay\\subPackage\\page\\pages\\aliPayCoupon\\aliPayCoupon.js","f:\\code\\7_Eleven_Alipay\\app.js","f:\\code\\7_Eleven_Alipay\\component\\home-modal\\home-modal.acss","f:\\code\\7_Eleven_Alipay\\pages\\userCenter\\userCenter.js","f:\\code\\7_Eleven_Alipay\\pages\\userCenter\\userCenter.json","f:\\code\\7_Eleven_Alipay\\utils\\wxService.js","f:\\code\\7_Eleven_Alipay\\config\\index.js","f:\\code\\7_Eleven_Alipay\\utils\\Http.js","f:\\code\\7_Eleven_Alipay\\pages\\memberRules\\memberRules.js","f:\\code\\7_Eleven_Alipay\\project.config.json","f:\\code\\7_Eleven_Alipay\\subPackage\\page\\pages\\aliPayCoupon\\aliPayCoupon.axml","f:\\code\\7_Eleven_Alipay\\subPackage\\page\\pages\\aliPayCoupon\\aliPayCoupon.acss","f:\\code\\7_Eleven_Alipay\\pages\\memberOfOwn\\memberOfOwn.acss","f:\\code\\7_Eleven_Alipay\\component\\personCenter\\personCenter.acss","f:\\code\\7_Eleven_Alipay\\component\\personCenter\\personCenter.axml","f:\\code\\7_Eleven_Alipay\\pages\\memberOfOwn\\memberOfOwn.axml","f:\\code\\7_Eleven_Alipay\\subPackage\\page\\pages\\goToHome\\goToHome.js","f:\\code\\7_Eleven_Alipay\\subPackage\\page\\pages\\goToHome\\goToHome.json","f:\\code\\7_Eleven_Alipay\\subPackage\\page\\pages\\goToHome\\goToHome.axml","f:\\code\\7_Eleven_Alipay\\subPackage\\page\\pages\\goToHome\\goToHome.acss","f:\\code\\7_Eleven_Alipay\\app.json","f:\\code\\7_Eleven_Alipay\\subPackage\\page\\pages\\aliPayCoupon\\aliPayCoupon.json","f:\\code\\7_Eleven_Alipay\\utils\\util.js","f:\\code\\7_Eleven_Alipay\\pages\\activateCard\\activateCardCallback.js","f:\\code\\7_Eleven_Alipay\\component\\authorization-modal\\authorization-modal.axml","f:\\code\\7_Eleven_Alipay\\component\\authorization-modal\\authorization-modal.acss","f:\\code\\7_Eleven_Alipay\\pages\\couponDetail\\couponDetail.js","f:\\code\\7_Eleven_Alipay\\pages\\couponCodeDetail\\couponCodeDetail.js","f:\\code\\7_Eleven_Alipay\\pages\\coupons\\coupons.acss","f:\\code\\7_Eleven_Alipay\\pages\\coupons\\coupons.axml","f:\\code\\7_Eleven_Alipay\\pages\\integralWater\\integralWater.acss","f:\\code\\7_Eleven_Alipay\\pages\\integralWater\\integralWater.axml","f:\\code\\7_Eleven_Alipay\\pages\\coupons\\coupons.js","f:\\code\\7_Eleven_Alipay\\subPackage\\page\\pages\\subPage\\subPage.js","f:\\code\\7_Eleven_Alipay\\pages\\integralWater\\integralWater.js","f:\\code\\7_Eleven_Alipay\\component\\personCenter\\personCenter.json","f:\\code\\7_Eleven_Alipay\\pages\\integralMallDetail\\integralMallDetail.js","f:\\code\\7_Eleven_Alipay\\pages\\couponCodeDetail\\couponCodeDetail.json"],"storageVersion":"0.70.11"}
\ No newline at end of file
const wx2my = require('../../wx2my');
const Behavior = require('../../Behavior');
const app = getApp();
const wxService = require('../../utils/wxService');
const utils = require('../../utils/util');
const envInfo = require('../../config/index').envInfo;
Component({
/**
* 组件的属性列表
*/
props: {
showHome: {
type: Boolean,
value: false
}
},
/**
* 组件的初始数据
*/
data: {
},
onInit() {
console.log('onInit')
},
didMount() {
console.log('00didMount', this.props.showHome)
this.setData({
showDialog: this.props.showHome
})
},
didUpdate() {
this.props.showHome = false
console.log('didUpdate', this.props.showHome)
},
didUnmount() {
console.log('didUnmount')
},
/**
* 组件的方法列表
*/
methods: {
checkAll() {
this.setData({
checkAll: !this.data.checkAll
});
},
handelToMemberRules() {
wxService.router(`/pages/memberRules/memberRules?type=${this.props.isAuthorizationType}`);
},
//再想想
close() {
this.setData({
showHome: false
});
},
toCoupon() {
wxService.nextTick(() => {
this.setData({
showHome: false
}, () => {
wxService.router(`/subPackage/page/pages/aliPayCoupon/aliPayCoupon`)
})
})
}
}
});
\ No newline at end of file
const wx2my = require('../../wx2my');
const Behavior = require('../../Behavior');
const app = getApp();
const wxService = require('../../utils/wxService');
const utils = require('../../utils/util');
const envInfo = require('../../config/index').envInfo;
Component({
/**
* 组件的属性列表
*/
props: {
showHome: {
type: Boolean,
value: false
}
},
/**
* 组件的初始数据
*/
data: {
},
onInit() {
console.log('onInit')
},
didMount() {
console.log('00didMount', this.props.showHome)
},
didUpdate() {
console.log('didUpdate', this.props.showHome)
},
didUnmount() {
console.log('didUnmount', this.props.showHome)
},
/**
* 组件的方法列表
*/
methods: {
checkAll() {
this.setData({
checkAll: !this.data.checkAll
});
},
handelToMemberRules() {
wxService.router(`/pages/memberRules/memberRules?type=${this.props.isAuthorizationType}`);
},
//再想想
close() {
this.setData({
showHome: false
});
},
toCoupon() {
wxService.nextTick(() => {
this.setData({
showHome: false
}, () => {
wxService.router(`/subPackage/page/pages/aliPayCoupon/aliPayCoupon`)
})
})
}
}
});
\ No newline at end of file
......@@ -56,60 +56,6 @@ Component({
if (isTouchLeft == 'left') {
utilLink.currentLinkRouter(e, this)
// const {
// appid,
// path,
// link,
// item
// } = e.currentTarget.dataset;
// // 更改数据问题
// let currentClickType = app.globalData.commonFunc.getLink(item.link.type, item);
// const userInfo = wx2my.getStorageSync('_baseUserInfo'); // type==1 外部 不用弹 没有登录弹
// if (link.type == 1) {
// // 触发父组件更新页面 外部小程序
// this.setData({
// isAuthorization: false
// });
// return false;
// } else if (!userInfo) {
// this.setData({
// isAuthorization: true
// });
// return false;
// } else if (userInfo && userInfo.member && !userInfo.member.mobile) {
// wxService.openCard();
// return false;
// } // wxService.openCard()
// if (link.type == 2) {
// // 触发父组件更新页面
// wxService.nextTick(() => {
// this.triggerEvent('updatePage', {
// pageId: currentClickType.url
// });
// });
// } else if (link.type == 3) {
// // 预览
// wx2my.previewImage({
// current: `${app.globalData.imageUrl}/${currentClickType.imageUrl}`,
// // 当前显示图片的http链接
// urls: [`${app.globalData.imageUrl}/${currentClickType.link.url}`] // 需要预览的图片http链接列表
// });
// } else if (link.type == 4) {
// wxService.router(`${currentClickType}`);
// } else if (link.type == 5) {
// if (currentClickType == 1) {
// // wxService.openCardList()
// wxService.openCard();
// } else if (currentClickType == 2) {
// wxService.openCard();
// }
// } else if (link.type == 6) {
// wxService.router(`${currentClickType}`);
// }
}
}
......
<view class="modal" a:if="{{showDialog}}">
<view class="modal" a:if="{{showHome}}">
<view class="modal-mask"></view>
<view class="modal-container" style="top:26%">
{{showDialog}}--{{showHome}}
<view class="auth-avatar-home" onTap="toCoupon">
<image class="auth-avatar-img" src="/assets/imgs/auth-avatar.png"></image>
</view>
......
......@@ -23,12 +23,19 @@ Component({
* 组件的初始数据
*/
data: {
showDialog: false
},
didMount() {
this.setData({
showDialog: this.props.showHome
})
onInit() {
console.log('onInit', this.props.showHome)
},
didMount() {
console.log('00didMount', this.props.showHome)
},
didUpdate() {
console.log('didUpdate', this.props.showHome)
},
didUnmount() {
console.log('didUnmount', this.props.showHome)
},
/**
* 组件的方法列表
......@@ -47,17 +54,17 @@ Component({
//再想想
close() {
this.setData({
showDialog: false
showHome: false
});
},
toCoupon() {
wxService.nextTick(() => {
this.setData({
showDialog: false
},()=>{
wxService.router(`/subPackage/page/pages/aliPayCoupon/aliPayCoupon`)
});
})
wxService.nextTick(() => {
this.setData({
showHome: false
}, () => {
wxService.router(`/subPackage/page/pages/aliPayCoupon/aliPayCoupon`)
})
})
}
}
});
\ No newline at end of file
......@@ -48,76 +48,6 @@ Component({
},
preview(event) {
utilLink.currentLinkRouter(event, this)
// const {
// appid,
// path,
// link,
// item
// } = e.currentTarget.dataset;
// const {
// memberActivateStatus
// } = wx2my.getStorageSync('_baseUserInfo');
// const userInfo = wx2my.getStorageSync('_baseUserInfo'); // 2019.06.14
// console.log('--userInfo', userInfo)
// let currentClickType = app.globalData.commonFunc.getLink(item.link.type, item);
// if (link.type == 1) {
// // 触发父组件更新页面 外部小程序
// this.setData({
// isAuthorization: false
// });
// return false;
// } else if (!userInfo) {
// // userInfo 不存在 授权弹框
// this.setData({
// isAuthorization: true
// });
// return false;
// }
// if (link.type == 2) {
// // 触发父组件更新页面 内部子页面
// wxService.nextTick(() => {
// this.props.onUpdatePage({
// detail: {
// pageId: currentClickType.url
// }
// });
// });
// } else if (link.type == 3) {
// // 预览
// wx2my.previewImage({
// current: `${app.globalData.imageUrl}/${currentClickType.imageUrl}`,
// // 当前显示图片的http链接
// urls: [`${app.globalData.imageUrl}/${currentClickType.link.url}`] // 需要预览的图片http链接列表
// });
// } else if (link.type == 4) {
// // 内部固定功能
// wxService.router(`${currentClickType}`);
// } else if (link.type == 5) {
// // 微信卡券 -- 卡包/领卡
// if (currentClickType == 1) {
// wxService.openCard();
// } else if (currentClickType == 2) {
// // wxService.openCard()
// if (userInfo && userInfo.member && userInfo.member.mobile && !userInfo.memberActivateStatus) {
// // 手机号存在 但未激活 跳转激活领卡页面 老用户
// this.setData({
// isAuthorizationActiveText: '新激活领卡',
// isAuthorization: true,
// isAuthorizationType: 3
// }, () => {
// return false;
// });
// } else {
// wxService.openCard();
// }
// }
// } else if (link.type == 6) {
// wxService.router(`${currentClickType}`);
// }
},
activeTocard(e) {
......
<!--pages/userCenter.axml-->
{{showHome}}
<view class="user-center" style="background: {{pageBackgroundColor == 1? '#eee': '#fff'}};min-height: {{outoHeigth}}px">
<!-- 1 轮播 2 个人中心 3 图片导航 4 底部-->
<block
......@@ -32,4 +33,4 @@
</block>
</view>
<authorization-modal isAuthorization="{{isAuthorization}}"/>
<home-modal showHome="{{showHome}} "/>
\ No newline at end of file
<home-modal showHome="{{showHome}}"/>
\ No newline at end of file
......@@ -105,22 +105,7 @@ wxService.page({
this.setData({
isAuthorization: true
});
} // if (baseUserInfo){
// this.setData({
// token: wx.getStorageSync('token'),
// baseUserInfo,
// // cardMember,
// isAuthorization: false
// })
// // 积分数量
// this.getMemberPointInfo()
// // 优惠券数量
// this.getMemberCouponInfo()
// } else {
// this.setData({
// isAuthorization: true
// })
// }
}
// 获取手机信息
wxService.getSystemInfo().then(res => {
this.setData({
......@@ -150,7 +135,6 @@ wxService.page({
}
});
},
// 查询优惠券数量
getMemberCouponInfo() {
wx2my.showLoading({
......@@ -247,7 +231,5 @@ wxService.page({
title: '小程序示例',
path: 'page/userCenter/userCenter'
};
},
}
});
\ No newline at end of file
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