Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
7
7_Eleven_Alipay
Overview
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
高淑倩
7_Eleven_Alipay
Commits
3533613a
Commit
3533613a
authored
Dec 26, 2019
by
谢中龙
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
711积分换物库存校验提前
parent
8b16c5da
Hide whitespace changes
Inline
Side-by-side
Showing
16 changed files
with
404 additions
and
70 deletions
+404
-70
mini-program.json
.tea/configuration/mini-program.json
+2
-2
editor.json
.tea/editor.json
+0
-0
editorTabs.json
.tea/editorTabs.json
+2
-2
config$.js
.tea/entryFiles-production/config$.js
+1
-17
index$.web.js
.tea/entryFiles-production/index$.web.js
+12
-0
index$.worker.js
.tea/entryFiles-production/index$.worker.js
+13
-0
recentlyTouched.json
.tea/recentlyTouched.json
+2
-2
1d73b72e61686e5d5f9caa77d190c9521577347383765bd2
...p-saving/1d73b72e61686e5d5f9caa77d190c9521577347383765bd2
+236
-0
d8ae1341692c72677851a4888774fe791577347786401a63
...p-saving/d8ae1341692c72677851a4888774fe791577347786401a63
+44
-0
dialogStockEmpty.js
component/dialogStockEmpty/dialogStockEmpty.js
+28
-14
dialogUserLimit.js
component/dialogUserLimit/dialogUserLimit.js
+5
-1
IntegralMallGoods.axml
...ckage/page/pages/IntegralMallGoods/IntegralMallGoods.axml
+2
-2
IntegralMallGoods.js
subPackage/page/pages/IntegralMallGoods/IntegralMallGoods.js
+7
-0
IntegrateGoodsExchangeInfo.axml
...ntegrateGoodsExchangeInfo/IntegrateGoodsExchangeInfo.axml
+1
-1
IntegrateGoodsExchangeInfo.js
.../IntegrateGoodsExchangeInfo/IntegrateGoodsExchangeInfo.js
+29
-15
exchangeAddress.js
subPackage/page/pages/exchangeAddress/exchangeAddress.js
+20
-14
No files found.
.tea/configuration/mini-program.json
View file @
3533613a
{
"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"
:
"2019101168315187"
,
"name"
:
"广东7-Eleven会员俱乐部"
},{
"appid"
:
"2019092667869080"
,
"name"
:
"名称释放00279678"
},{
"appid"
:
"2019092667878018"
,
"name"
:
"大禹qa"
},{
"appid"
:
"2019091967575819"
,
"name"
:
"名称释放00286936"
},{
"appid"
:
"2019071665833747"
,
"name"
:
"名称释放00250632"
}],
"alipay:alipay-mini:uploadTime"
:
"2019-12-25 11:34:17"
,
"alipay:alipay-mini:packageSize"
:
0
,
"alipay:alipay-mini:MockStore"
:{
"_showCouponDialog"
:
"false"
,
"_userInfo"
:{
"code"
:
"10000"
,
"msg"
:
"Success"
,
"avatar"
:
"https://tfs.alipayobjects.com/images/partner/T1yVJjXnxgXXXXXXXX"
,
"city"
:
"上海市"
,
"countryCode"
:
"CN"
,
"gender"
:
"m"
,
"nickName"
:
"谢中龙"
,
"province"
:
"上海"
},
"reLoginErr"
:
false
,
"token"
:
"d4cc6583d2755134a23395bb0d795199"
,
"_loginCode"
:
"d0a73217372d43ff9077917389dcQC45"
,
"_accreditUserInfo"
:{
"code"
:
"10000"
,
"msg"
:
"Success"
,
"avatar"
:
"https://tfs.alipayobjects.com/images/partner/T1yVJjXnxgXXXXXXXX"
,
"city"
:
"上海市"
,
"countryCode"
:
"CN"
,
"gender"
:
"m"
,
"nickName"
:
"谢中龙"
,
"province"
:
"上海"
},
"_baseUserInfo"
:{
"token"
:
"d4cc6583d2755134a23395bb0d795199"
,
"applyCardUrl"
:
"https%3A%2F%2Fmemberprod.alipay.com%2Faccount%2Fopenform%2Factivecard.htm%3Fapp_id%3D2019101168315187%26template_id%3D20191018000000002120493000300552%26__webview_options__%3DcanPullDown%253dNO%2526transparentTitle%253dauto%26out_string%3Dalipay"
,
"authToken"
:
"composeB76b7e5a58f31414088a41cfc75c93B45"
,
"outerStr"
:
"{
\"
activateType
\"
:
\"
normal
\"
}"
,
"memberId"
:
"594104268563292160"
,
"member"
:{
"id"
:
"594104268563292160"
,
"createTime"
:
"2019-06-28 09:58:15"
,
"updateTime"
:
"2019-11-14 08:22:58"
,
"code"
:
"770084118008766216"
,
"brandId"
:
"2711"
,
"storeId"
:
"2711"
,
"mobile"
:
"18817382046"
,
"unionid"
:
"oV1j3vwp9HNqOhwN2Fl0gIOVHDr4"
,
"openid"
:
"of8NluBTFNqUHHpPogObPN2vb3Qo"
,
"cardNoWeixin"
:
"305490426989"
,
"cardNoAlipay"
:
"svneleven0003335945"
,
"alipayUserId"
:
"2088702833166455"
,
"alipayCardOpenDate"
:
"2019-11-07 08:20:12"
,
"name"
:
"谢中龙"
,
"sex"
:
"男"
,
"birthday"
:
"1991-11-19 00:00:00"
,
"address"
:
"上海市-上海市-浦东新区-盛夏路58号天之骄子创业公寓6号楼蜂巢柜"
,
"lock"
:
false
,
"registerTime"
:
"2019-06-28 09:58:15"
,
"activateWxCardTime"
:
"2019-06-28 09:58:15"
,
"activateAlipayCardTime"
:
"2019-11-07 08:20:12"
,
"memberWeixin"
:{
"nickname"
:
"言夕"
,
"sex"
:
"男"
},
"level"
:
0
,
"memberWeixinApps"
:[{
"openid"
:
"oUOIF0basUF5heHcuZwvPSEJIG3E"
,
"appid"
:
"wx700028bf32a3be66"
,
"unionid"
:
"oV1j3vwp9HNqOhwN2Fl0gIOVHDr4"
}]},
"memberActivateStatus"
:
true
}},
"alipay:alipay-mini:_appId"
:
"2019101168315187"
,
"alipay:alipay-mini:_appName"
:
"广东7-Eleven会员俱乐部"
,
"alipay:alipay-mini:remoteVersion"
:
"1.0.32"
,
"alipay:alipay-mini:currentVersion"
:
"1.0.33"
,
"alipay:alipay-mini:whiteList"
:[
"b.bigaka.com"
],
"alipay:alipay-mini:h5WhiteList"
:[],
"alipay:alipay-mini:appLogo"
:
"https://appstoreisvpic.alipayobjects.com/prod/6ac7a3a5-d755-458e-9da7-1b03a72f61d2.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"
},{
"title"
:
"积分商城(新)"
,
"page"
:
"subPackage/page/pages/IntegralMallGoods/IntegralMallGoods"
},{
"title"
:
"积分换物兑换记录"
,
"page"
:
"subPackage/page/pages/recordList/recordList"
},{
"title"
:
"消费详情"
,
"page"
:
"pages/consumptionDetails/consumptionDetails"
,
"pageQuery"
:
""
}],
"compilerIndex"
:
0
,
"alipay:alipay-mini:preAuditLimit"
:
5
,
"alipay:alipay-mini:preAuditUsed"
:
1
,
"alipay:alipay-mini:stopRefresh"
:
false
,
"SimulatorMode"
:
"EMBED"
,
"alipay:alipay-mini:lastDeviceName"
:
"iPhone X"
,
"storageVersion"
:
"0.70.14"
}
\ 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"
:
"2019101168315187"
,
"name"
:
"广东7-Eleven会员俱乐部"
},{
"appid"
:
"2019092667869080"
,
"name"
:
"名称释放00279678"
},{
"appid"
:
"2019092667878018"
,
"name"
:
"大禹qa"
},{
"appid"
:
"2019091967575819"
,
"name"
:
"名称释放00286936"
},{
"appid"
:
"2019071665833747"
,
"name"
:
"名称释放00250632"
}],
"alipay:alipay-mini:uploadTime"
:
"2019-12-26 16:24:48"
,
"alipay:alipay-mini:packageSize"
:
null
,
"alipay:alipay-mini:MockStore"
:{
"_showCouponDialog"
:
"false"
,
"_userInfo"
:{
"code"
:
"10000"
,
"msg"
:
"Success"
,
"avatar"
:
"https://tfs.alipayobjects.com/images/partner/T1yVJjXnxgXXXXXXXX"
,
"city"
:
"上海市"
,
"countryCode"
:
"CN"
,
"gender"
:
"m"
,
"nickName"
:
"谢中龙"
,
"province"
:
"上海"
},
"reLoginErr"
:
false
,
"token"
:
"d4cc6583d2755134a23395bb0d795199"
,
"_loginCode"
:
"d0a73217372d43ff9077917389dcQC45"
,
"_accreditUserInfo"
:{
"code"
:
"10000"
,
"msg"
:
"Success"
,
"avatar"
:
"https://tfs.alipayobjects.com/images/partner/T1yVJjXnxgXXXXXXXX"
,
"city"
:
"上海市"
,
"countryCode"
:
"CN"
,
"gender"
:
"m"
,
"nickName"
:
"谢中龙"
,
"province"
:
"上海"
},
"_baseUserInfo"
:{
"token"
:
"d4cc6583d2755134a23395bb0d795199"
,
"applyCardUrl"
:
"https%3A%2F%2Fmemberprod.alipay.com%2Faccount%2Fopenform%2Factivecard.htm%3Fapp_id%3D2019101168315187%26template_id%3D20191018000000002120493000300552%26__webview_options__%3DcanPullDown%253dNO%2526transparentTitle%253dauto%26out_string%3Dalipay"
,
"authToken"
:
"composeB76b7e5a58f31414088a41cfc75c93B45"
,
"outerStr"
:
"{
\"
activateType
\"
:
\"
normal
\"
}"
,
"memberId"
:
"594104268563292160"
,
"member"
:{
"id"
:
"594104268563292160"
,
"createTime"
:
"2019-06-28 09:58:15"
,
"updateTime"
:
"2019-11-14 08:22:58"
,
"code"
:
"770084118008766216"
,
"brandId"
:
"2711"
,
"storeId"
:
"2711"
,
"mobile"
:
"18817382046"
,
"unionid"
:
"oV1j3vwp9HNqOhwN2Fl0gIOVHDr4"
,
"openid"
:
"of8NluBTFNqUHHpPogObPN2vb3Qo"
,
"cardNoWeixin"
:
"305490426989"
,
"cardNoAlipay"
:
"svneleven0003335945"
,
"alipayUserId"
:
"2088702833166455"
,
"alipayCardOpenDate"
:
"2019-11-07 08:20:12"
,
"name"
:
"谢中龙"
,
"sex"
:
"男"
,
"birthday"
:
"1991-11-19 00:00:00"
,
"address"
:
"上海市-上海市-浦东新区-盛夏路58号天之骄子创业公寓6号楼蜂巢柜"
,
"lock"
:
false
,
"registerTime"
:
"2019-06-28 09:58:15"
,
"activateWxCardTime"
:
"2019-06-28 09:58:15"
,
"activateAlipayCardTime"
:
"2019-11-07 08:20:12"
,
"memberWeixin"
:{
"nickname"
:
"言夕"
,
"sex"
:
"男"
},
"level"
:
0
,
"memberWeixinApps"
:[{
"openid"
:
"oUOIF0basUF5heHcuZwvPSEJIG3E"
,
"appid"
:
"wx700028bf32a3be66"
,
"unionid"
:
"oV1j3vwp9HNqOhwN2Fl0gIOVHDr4"
}]},
"memberActivateStatus"
:
true
}},
"alipay:alipay-mini:_appId"
:
"2019101168315187"
,
"alipay:alipay-mini:_appName"
:
"广东7-Eleven会员俱乐部"
,
"alipay:alipay-mini:remoteVersion"
:
"1.0.34"
,
"alipay:alipay-mini:currentVersion"
:
"1.0.35"
,
"alipay:alipay-mini:whiteList"
:[
"b.bigaka.com"
],
"alipay:alipay-mini:h5WhiteList"
:[],
"alipay:alipay-mini:appLogo"
:
"https://appstoreisvpic.alipayobjects.com/prod/6ac7a3a5-d755-458e-9da7-1b03a72f61d2.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"
},{
"title"
:
"积分商城(新)"
,
"page"
:
"subPackage/page/pages/IntegralMallGoods/IntegralMallGoods"
},{
"title"
:
"积分换物兑换记录"
,
"page"
:
"subPackage/page/pages/recordList/recordList"
},{
"title"
:
"消费详情"
,
"page"
:
"pages/consumptionDetails/consumptionDetails"
,
"pageQuery"
:
""
}],
"compilerIndex"
:
8
,
"alipay:alipay-mini:preAuditLimit"
:
5
,
"alipay:alipay-mini:preAuditUsed"
:
1
,
"alipay:alipay-mini:stopRefresh"
:
false
,
"SimulatorMode"
:
"EMBED"
,
"alipay:alipay-mini:lastDeviceName"
:
"iPhone X"
,
"storageVersion"
:
"0.70.14"
}
\ No newline at end of file
.tea/editor.json
View file @
3533613a
This source diff could not be displayed because it is too large. You can
view the blob
instead.
.tea/editorTabs.json
View file @
3533613a
{
"tabs"
:[
"file:///d%3A/work/projects/7_Eleven_Alipay/app.json"
,
"file:///d%3A/work/projects/7_Eleven_Alipay/app.js"
,
"file:///d%3A/work/projects/7_Eleven_Alipay/subPackage/page/pages/IntegralMallGoods/IntegralMallGoods.js"
,
"file:///d%3A/work/projects/7_Eleven_Alipay/subPackage/page/pages/IntegralMallGoods/IntegralMallGoods.axml"
],
"current"
:
"file:///d%3A/work/projects/7_Eleven_Alipay/subPackage/page/pages/IntegralMallGoods/IntegralMallGoods.js"
,
"storageVersion"
:
"0.70.14"
}
\ No newline at end of file
{
"tabs"
:[
"file:///d%3A/work/projects/7_Eleven_Alipay/app.json"
,
"file:///d%3A/work/projects/7_Eleven_Alipay/app.js"
,
"file:///d%3A/work/projects/7_Eleven_Alipay/subPackage/page/pages/exchangeAddress/exchangeAddress.js"
],
"current"
:
"file:///d%3A/work/projects/7_Eleven_Alipay/subPackage/page/pages/exchangeAddress/exchangeAddress.js"
,
"storageVersion"
:
"0.70.14"
}
\ No newline at end of file
.tea/entryFiles-production/config$.js
View file @
3533613a
...
...
@@ -2,22 +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"
,
"pages/IntegralMallGoods/IntegralMallGoods"
,
"pages/IntegrateGoodsExchangeInfo/IntegrateGoodsExchangeInfo"
,
"pages/exchangeAddress/exchangeAddress"
,
"pages/recordList/recordList"
]
}
]
"$homepage"
:
"pages/userCenter/userCenter"
}
};
.tea/entryFiles-production/index$.web.js
View file @
3533613a
...
...
@@ -16,6 +16,9 @@ require('../../component/dialog/dialog');
require
(
'../../component/progressPoint/progressPoint'
);
require
(
'../../component/progressImage/progressImage'
);
require
(
'../../component/authorization-modal-point/authorization-modal-point'
);
require
(
'../../component/dialogStockEmpty/dialogStockEmpty'
);
require
(
'../../component/dialogUserLimit/dialogUserLimit'
);
require
(
'../../component/citySelection/citySelection'
);
require
(
'../../pages/userCenter/userCenter'
);
require
(
'../../pages/mySpend/mySpend'
);
require
(
'../../pages/memberOfOwn/memberOfOwn'
);
...
...
@@ -31,3 +34,12 @@ require('../../pages/integralMallDetail/integralMallDetail');
require
(
'../../pages/activateCard/activateCardCallback'
);
require
(
'../../pages/pointList/pointList'
);
require
(
'../../pages/pointDetail/pointDetail'
);
require
(
'../../subPackage/page/pages/subPage/subPage'
);
require
(
'../../subPackage/page/pages/h5/h5page'
);
require
(
'../../subPackage/page/pages/pointGoodsList/pointGoodsList'
);
require
(
'../../subPackage/page/pages/goToHome/goToHome'
);
require
(
'../../subPackage/page/pages/aliPayCoupon/aliPayCoupon'
);
require
(
'../../subPackage/page/pages/IntegralMallGoods/IntegralMallGoods'
);
require
(
'../../subPackage/page/pages/IntegrateGoodsExchangeInfo/IntegrateGoodsExchangeInfo'
);
require
(
'../../subPackage/page/pages/exchangeAddress/exchangeAddress'
);
require
(
'../../subPackage/page/pages/recordList/recordList'
);
.tea/entryFiles-production/index$.worker.js
View file @
3533613a
...
...
@@ -37,6 +37,9 @@ require('../../component/dialog/dialog');
require
(
'../../component/progressPoint/progressPoint'
);
require
(
'../../component/progressImage/progressImage'
);
require
(
'../../component/authorization-modal-point/authorization-modal-point'
);
require
(
'../../component/dialogStockEmpty/dialogStockEmpty'
);
require
(
'../../component/dialogUserLimit/dialogUserLimit'
);
require
(
'../../component/citySelection/citySelection'
);
require
(
'../../pages/userCenter/userCenter'
);
require
(
'../../pages/mySpend/mySpend'
);
require
(
'../../pages/memberOfOwn/memberOfOwn'
);
...
...
@@ -52,6 +55,15 @@ require('../../pages/integralMallDetail/integralMallDetail');
require
(
'../../pages/activateCard/activateCardCallback'
);
require
(
'../../pages/pointList/pointList'
);
require
(
'../../pages/pointDetail/pointDetail'
);
require
(
'../../subPackage/page/pages/subPage/subPage'
);
require
(
'../../subPackage/page/pages/h5/h5page'
);
require
(
'../../subPackage/page/pages/pointGoodsList/pointGoodsList'
);
require
(
'../../subPackage/page/pages/goToHome/goToHome'
);
require
(
'../../subPackage/page/pages/aliPayCoupon/aliPayCoupon'
);
require
(
'../../subPackage/page/pages/IntegralMallGoods/IntegralMallGoods'
);
require
(
'../../subPackage/page/pages/IntegrateGoodsExchangeInfo/IntegrateGoodsExchangeInfo'
);
require
(
'../../subPackage/page/pages/exchangeAddress/exchangeAddress'
);
require
(
'../../subPackage/page/pages/recordList/recordList'
);
}
self
.
bootstrapApp
?
self
.
bootstrapApp
({
success
})
:
success
();
}
\ No newline at end of file
.tea/recentlyTouched.json
View file @
3533613a
{
"files"
:[
"d:
\\
work
\\
projects
\\
7_Eleven_Alipay
\\
project.config.json"
,
"d:
\\
work
\\
projects
\\
7_Eleven_Alipay
\\
Behavior.js"
,
"d:
\\
work
\\
projects
\\
7_Eleven_Alipay
\\
app.json"
,
"d:
\\
work
\\
projects
\\
7_Eleven_Alipay
\\
app.js"
,
"d:
\\
work
\\
projects
\\
7_Eleven_Alipay
\\
utils
\\
Http.js"
,
"d:
\\
work
\\
projects
\\
7_Eleven_Alipay
\\
package-lock.json"
,
"d:
\\
work
\\
projects
\\
7_Eleven_Alipay
\\
debug.log"
,
"d:
\\
work
\\
projects
\\
7_Eleven_Alipay
\\
pages
\\
userCenter
\\
userCenter.js"
,
"d:
\\
work
\\
projects
\\
7_Eleven_Alipay
\\
pages
\\
consumptionDetails
\\
consumptionDetails.axml"
,
"d:
\\
work
\\
projects
\\
7_Eleven_Alipay
\\
pages
\\
integralWater
\\
integralWater.axml"
,
"d:
\\
work
\\
projects
\\
7_Eleven_Alipay
\\
pages
\\
userCenter
\\
userCenter.axml"
,
"d:
\\
work
\\
projects
\\
7_Eleven_Alipay
\\
pages
\\
userCenter
\\
userCenter.json"
,
"d:
\\
work
\\
projects
\\
7_Eleven_Alipay
\\
pages
\\
integralMallDetail
\\
integralMallDetail.js"
,
"d:
\\
work
\\
projects
\\
7_Eleven_Alipay
\\
pages
\\
integralMallDetail
\\
integralMallDetail.axml"
,
"d:
\\
work
\\
projects
\\
7_Eleven_Alipay
\\
component
\\
exchange-coupon-modal
\\
exchange-coupon-modal.axml"
,
"d:
\\
work
\\
projects
\\
7_Eleven_Alipay
\\
component
\\
authorization-modal
\\
authorization-modal.js"
,
"d:
\\
work
\\
projects
\\
7_Eleven_Alipay
\\
wx2my.js"
,
"d:
\\
work
\\
projects
\\
7_Eleven_Alipay
\\
component
\\
picNav
\\
picNav.axml"
,
"d:
\\
work
\\
projects
\\
7_Eleven_Alipay
\\
subPackage
\\
page
\\
pages
\\
exchangeAddress
\\
exchangeAddress.axml"
,
"d:
\\
work
\\
projects
\\
7_Eleven_Alipay
\\
component
\\
citySelection
\\
citySelection.js"
,
"d:
\\
work
\\
projects
\\
7_Eleven_Alipay
\\
component
\\
dialogUserLimit
\\
dialogUserLimit.js"
,
"d:
\\
work
\\
projects
\\
7_Eleven_Alipay
\\
component
\\
dialogStockEmpty
\\
dialogStockEmpty.axml"
,
"d:
\\
work
\\
projects
\\
7_Eleven_Alipay
\\
pages
\\
pointDetail
\\
pointDetail.js"
,
"d:
\\
work
\\
projects
\\
7_Eleven_Alipay
\\
pages
\\
couponCodeDetail
\\
couponCodeDetail.js"
,
"d:
\\
work
\\
projects
\\
7_Eleven_Alipay
\\
component
\\
citySelection
\\
citySelection.axml"
,
"d:
\\
work
\\
projects
\\
7_Eleven_Alipay
\\
subPackage
\\
page
\\
pages
\\
subPage
\\
subPage.json"
,
"d:
\\
work
\\
projects
\\
7_Eleven_Alipay
\\
subPackage
\\
page
\\
pages
\\
subPage
\\
subPage.js"
,
"d:
\\
work
\\
projects
\\
7_Eleven_Alipay
\\
subPackage
\\
page
\\
pages
\\
subPage
\\
subPage.axml"
,
"d:
\\
work
\\
projects
\\
7_Eleven_Alipay
\\
subPackage
\\
page
\\
pages
\\
pointGoodsList
\\
pointGoodsList.axml"
,
"d:
\\
work
\\
projects
\\
7_Eleven_Alipay
\\
subPackage
\\
page
\\
pages
\\
goToHome
\\
goToHome.js"
,
"d:
\\
work
\\
projects
\\
7_Eleven_Alipay
\\
subPackage
\\
page
\\
pages
\\
pointGoodsList
\\
pointGoodsList.js"
,
"d:
\\
work
\\
projects
\\
7_Eleven_Alipay
\\
subPackage
\\
page
\\
pages
\\
subPage
\\
subPage.acss"
,
"d:
\\
work
\\
projects
\\
7_Eleven_Alipay
\\
subPackage
\\
page
\\
pages
\\
aliPayCoupon
\\
aliPayCoupon.acss"
,
"d:
\\
work
\\
projects
\\
7_Eleven_Alipay
\\
subPackage
\\
page
\\
pages
\\
aliPayCoupon
\\
aliPayCoupon.js"
,
"d:
\\
work
\\
projects
\\
7_Eleven_Alipay
\\
subPackage
\\
page
\\
pages
\\
aliPayCoupon
\\
aliPayCoupon.json"
,
"d:
\\
work
\\
projects
\\
7_Eleven_Alipay
\\
utils
\\
common.js"
,
"f:
\\
code
\\
7_Eleven_Alipay
\\
utils
\\
util.js"
,
"f:
\\
code
\\
7_Eleven_Alipay
\\
pages
\\
memberOfOwn
\\
memberOfOwn.js"
,
"f:
\\
code
\\
7_Eleven_Alipay
\\
pages
\\
consumptionDetails
\\
consumptionDetails.js"
,
"f:
\\
code
\\
7_Eleven_Alipay
\\
component
\\
authorization-modal
\\
authorization-modal.js"
,
"f:
\\
code
\\
7_Eleven_Alipay
\\
component
\\
exchange-coupon-modal
\\
exchange-coupon-modal.js"
,
"f:
\\
code
\\
7_Eleven_Alipay
\\
utils
\\
integerDigitalConvertion.js"
,
"f:
\\
code
\\
7_Eleven_Alipay
\\
utils
\\
common.js"
,
"f:
\\
code
\\
7_Eleven_Alipay
\\
app.js"
,
"f:
\\
code
\\
7_Eleven_Alipay
\\
pages
\\
userCenter
\\
userCenter.js"
,
"f:
\\
code
\\
7_Eleven_Alipay
\\
subPackage
\\
page
\\
pages
\\
aliPayCoupon
\\
aliPayCoupon.axml"
,
"f:
\\
code
\\
7_Eleven_Alipay
\\
subPackage
\\
page
\\
pages
\\
aliPayCoupon
\\
aliPayCoupon.js"
,
"f:
\\
code
\\
7_Eleven_Alipay
\\
utils
\\
wxService.js"
],
"storageVersion"
:
"0.70.14"
}
\ No newline at end of file
{
"files"
:[
"d:
\\
work
\\
projects
\\
7_Eleven_Alipay
\\
subPackage
\\
page
\\
pages
\\
IntegralMallGoods
\\
IntegralMallGoods.axml"
,
"d:
\\
work
\\
projects
\\
7_Eleven_Alipay
\\
subPackage
\\
page
\\
pages
\\
IntegrateGoodsExchangeInfo
\\
IntegrateGoodsExchangeInfo.js"
,
"d:
\\
work
\\
projects
\\
7_Eleven_Alipay
\\
subPackage
\\
page
\\
pages
\\
IntegrateGoodsExchangeInfo
\\
IntegrateGoodsExchangeInfo.axml"
,
"d:
\\
work
\\
projects
\\
7_Eleven_Alipay
\\
subPackage
\\
page
\\
pages
\\
exchangeAddress
\\
exchangeAddress.axml"
,
"d:
\\
work
\\
projects
\\
7_Eleven_Alipay
\\
project.config.json"
,
"d:
\\
work
\\
projects
\\
7_Eleven_Alipay
\\
Behavior.js"
,
"d:
\\
work
\\
projects
\\
7_Eleven_Alipay
\\
app.json"
,
"d:
\\
work
\\
projects
\\
7_Eleven_Alipay
\\
app.js"
,
"d:
\\
work
\\
projects
\\
7_Eleven_Alipay
\\
utils
\\
Http.js"
,
"d:
\\
work
\\
projects
\\
7_Eleven_Alipay
\\
package-lock.json"
,
"d:
\\
work
\\
projects
\\
7_Eleven_Alipay
\\
debug.log"
,
"d:
\\
work
\\
projects
\\
7_Eleven_Alipay
\\
pages
\\
userCenter
\\
userCenter.js"
,
"d:
\\
work
\\
projects
\\
7_Eleven_Alipay
\\
pages
\\
consumptionDetails
\\
consumptionDetails.axml"
,
"d:
\\
work
\\
projects
\\
7_Eleven_Alipay
\\
pages
\\
integralWater
\\
integralWater.axml"
,
"d:
\\
work
\\
projects
\\
7_Eleven_Alipay
\\
pages
\\
userCenter
\\
userCenter.axml"
,
"d:
\\
work
\\
projects
\\
7_Eleven_Alipay
\\
pages
\\
userCenter
\\
userCenter.json"
,
"d:
\\
work
\\
projects
\\
7_Eleven_Alipay
\\
pages
\\
integralMallDetail
\\
integralMallDetail.js"
,
"d:
\\
work
\\
projects
\\
7_Eleven_Alipay
\\
pages
\\
integralMallDetail
\\
integralMallDetail.axml"
,
"d:
\\
work
\\
projects
\\
7_Eleven_Alipay
\\
component
\\
exchange-coupon-modal
\\
exchange-coupon-modal.axml"
,
"d:
\\
work
\\
projects
\\
7_Eleven_Alipay
\\
component
\\
authorization-modal
\\
authorization-modal.js"
,
"d:
\\
work
\\
projects
\\
7_Eleven_Alipay
\\
wx2my.js"
,
"d:
\\
work
\\
projects
\\
7_Eleven_Alipay
\\
component
\\
picNav
\\
picNav.axml"
,
"d:
\\
work
\\
projects
\\
7_Eleven_Alipay
\\
component
\\
citySelection
\\
citySelection.js"
,
"d:
\\
work
\\
projects
\\
7_Eleven_Alipay
\\
pages
\\
pointDetail
\\
pointDetail.js"
,
"d:
\\
work
\\
projects
\\
7_Eleven_Alipay
\\
pages
\\
couponCodeDetail
\\
couponCodeDetail.js"
,
"d:
\\
work
\\
projects
\\
7_Eleven_Alipay
\\
component
\\
citySelection
\\
citySelection.axml"
,
"d:
\\
work
\\
projects
\\
7_Eleven_Alipay
\\
subPackage
\\
page
\\
pages
\\
subPage
\\
subPage.json"
,
"d:
\\
work
\\
projects
\\
7_Eleven_Alipay
\\
subPackage
\\
page
\\
pages
\\
subPage
\\
subPage.js"
,
"d:
\\
work
\\
projects
\\
7_Eleven_Alipay
\\
subPackage
\\
page
\\
pages
\\
subPage
\\
subPage.axml"
,
"d:
\\
work
\\
projects
\\
7_Eleven_Alipay
\\
subPackage
\\
page
\\
pages
\\
pointGoodsList
\\
pointGoodsList.axml"
,
"d:
\\
work
\\
projects
\\
7_Eleven_Alipay
\\
subPackage
\\
page
\\
pages
\\
goToHome
\\
goToHome.js"
,
"d:
\\
work
\\
projects
\\
7_Eleven_Alipay
\\
subPackage
\\
page
\\
pages
\\
pointGoodsList
\\
pointGoodsList.js"
,
"d:
\\
work
\\
projects
\\
7_Eleven_Alipay
\\
subPackage
\\
page
\\
pages
\\
subPage
\\
subPage.acss"
,
"d:
\\
work
\\
projects
\\
7_Eleven_Alipay
\\
subPackage
\\
page
\\
pages
\\
aliPayCoupon
\\
aliPayCoupon.acss"
,
"d:
\\
work
\\
projects
\\
7_Eleven_Alipay
\\
subPackage
\\
page
\\
pages
\\
aliPayCoupon
\\
aliPayCoupon.js"
,
"d:
\\
work
\\
projects
\\
7_Eleven_Alipay
\\
subPackage
\\
page
\\
pages
\\
aliPayCoupon
\\
aliPayCoupon.json"
,
"d:
\\
work
\\
projects
\\
7_Eleven_Alipay
\\
utils
\\
common.js"
,
"f:
\\
code
\\
7_Eleven_Alipay
\\
utils
\\
util.js"
,
"f:
\\
code
\\
7_Eleven_Alipay
\\
pages
\\
memberOfOwn
\\
memberOfOwn.js"
,
"f:
\\
code
\\
7_Eleven_Alipay
\\
pages
\\
consumptionDetails
\\
consumptionDetails.js"
,
"f:
\\
code
\\
7_Eleven_Alipay
\\
component
\\
authorization-modal
\\
authorization-modal.js"
,
"f:
\\
code
\\
7_Eleven_Alipay
\\
component
\\
exchange-coupon-modal
\\
exchange-coupon-modal.js"
,
"f:
\\
code
\\
7_Eleven_Alipay
\\
utils
\\
integerDigitalConvertion.js"
,
"f:
\\
code
\\
7_Eleven_Alipay
\\
utils
\\
common.js"
,
"f:
\\
code
\\
7_Eleven_Alipay
\\
app.js"
,
"f:
\\
code
\\
7_Eleven_Alipay
\\
pages
\\
userCenter
\\
userCenter.js"
,
"f:
\\
code
\\
7_Eleven_Alipay
\\
subPackage
\\
page
\\
pages
\\
aliPayCoupon
\\
aliPayCoupon.axml"
],
"storageVersion"
:
"0.70.14"
}
\ No newline at end of file
.tea/tmp-saving/1d73b72e61686e5d5f9caa77d190c9521577347383765bd2
0 → 100644
View file @
3533613a
const wx2my = require('../../../../wx2my');
const Behavior = require('../../../../Behavior');
const wxService = require('../../../../utils/wxService');
wxService.page({
data: {
query: '',
integralCouponList: [], // 积分兑换优惠券列表
integralGoodsList: [], // 限量精品列表
noMore: false,
isExchange: false,
exchangeId: '',
exchangePoint: 0,
currentTab: 'coupon',
memberPoint : {
total: '--',
expirePoint : 0,
expireDate : ''
},
dialogStockEmpty : false,
dialogUserLimit : false,
},
/**
* 生命周期函数--监听页面加载
*/
onLoad: function (options) {
my.hideShareMenu();
this.initIntegralCouponList();
this.initIntegralProductList();
this.refreshPointRequest();
},
handelTab(e) {
let curTab = e.currentTarget.dataset.tab
this.setData({
currentTab: curTab
})
},
/**
* 生命周期函数--监听页面显示
*/
onShow: function () {
// this.initIntegralProductList()
// this.initIntegralCouponList();
//获取会员积分信息
this.getMemberIntegrateInfo();
if(wx2my.getStorageSync('needReloadExchangeList').data){
this.initIntegralProductList();
}
},
//刷新积分请求
refreshPointRequest() {
const { member } = wx2my.getStorageSync('_baseUserInfo').data ? wx2my.getStorageSync('_baseUserInfo').data : {};
let memberId = member.id;
if (!memberId){
return ;
}
wxService.get('/member/memberPoint/refreshExpiredPoint?memberId=' + memberId).then(res => { })
},
//积分换物记录
onTapToExchangeRecords(){
wxService.router('/subPackage/page/pages/recordList/recordList');
},
//查询会员积分信息
getMemberIntegrateInfo(){
// wx.showLoading({
// title: '数据请求中..',
// });
const { member } = wx2my.getStorageSync('_baseUserInfo').data ? wx2my.getStorageSync('_baseUserInfo').data : {};
let memberId = member.id;
if (!memberId){
return ;
}
wxService.get(`/member/memberPoint/getMemberPointInfo?memberId=${memberId}`).then(res => {
let data = res.data.data ? res.data.data : {};
this.data.memberPoint.total = data.point ? data.point : 0;
this.data.memberPoint.expirePoint = data.pointWillExpired ? data.pointWillExpired : 0;
let expireDate = data.pointExpiredTime ? data.pointExpiredTime : '2019-12-31 23:59:59';
if (expireDate){
let dateStr = expireDate.replace(/-/g, '/');
let da = new Date(dateStr);
let year = da.getFullYear();
let month = (da.getMonth() + 1) < 10 ? '0' + (da.getMonth() + 1) : da.getMonth() + 1;
let day = da.getDate() < 10 ? '0' + da.getDate() : da.getDate();
expireDate = `${year}年${month}月${day}日`
}
this.data.memberPoint.expireDate = expireDate;
this.setData({
memberPoint: this.data.memberPoint
});
});
},
// 查询所有生效中的活动 限量精品
initIntegralProductList() {
wx2my.showLoading({
title: '加载中'
})
wxService.get(`/member/pointsRedemptionProductSetting/getAllValid`).then(res => {
if (res) {
const { result, data } = res.data
if (result == 0) {
let list = data ? data : [];
if(list.length == 0){
this.data.currentTab = 'coupon';
}
else{
this.data.currentTab = 'goods';
}
let integralGoodsList = data ? data : [];
integralGoodsList.forEach(item => {
item.canExchange = true;
});
this.setData({
currentTab: this.data.currentTab
});
this.findExchangeNumByIds(integralGoodsList);
}
}
}).finally(() => {
wx2my.hideLoading();
})
},
//查询指定积分换物活动兑换数量
findExchangeNumByIds(integralGoodsList) {
//获取ids
let ids = integralGoodsList.map(g => {
return g.id;
});
wxService.post('/member/pointsRedemptionProductSetting/getExchangeCount', ids).then(res => {
if(res){
let data = res.data.data ? res.data.data : null;
if (data) {
for (let k in data) {
let id = k, value = data[k];
for (let i = 0; i < integralGoodsList.length; i++) {
if (integralGoodsList[i].id == id) {
integralGoodsList[i].canExchange = integralGoodsList[i].stock > value;
}
}
}
}
}
this.setData({
integralGoodsList: integralGoodsList,
});
});
},
// 积分兑换优惠券列表
initIntegralCouponList() {
wx2my.showLoading({
title: '加载中'
});
wxService.get(`/coupon/pointsRedemptionCouponSetting/getAllValid`).then(res => {
if (res) {
const { result, data } = res.data
if (result == 0) {
wx2my.hideLoading()
this.setData({
integralCouponList: data.reverse()
});
}
}
}).finally(() => {
wx2my.hideLoading();
})
},
//立即兑换优惠券
exchange(e) {
const { id, point } = e.currentTarget.dataset
this.setData({
isExchange: true,
exchangeId: id,
exchangePoint: point
})
},
//关闭事件
modalClose(){
this.setData({
isExchange: false
});
},
//库存弹框回调事件
dialogBtnCallBack(){
this.setData({
dialogStockEmpty : false
});
},
// 立即兑换物品
exchangeGoods(e) {
const { id, point ,canexchange} = e.currentTarget.dataset;
const { memberId } = wx2my.getStorageSync('_baseUserInfo').data;
if (!canexchange) {
this.setData({
dialogStockEmpty: true
});
return;
}
//检查是不是可以兑换
wx2my.showLoading({
title: '检查兑换资格中..',
});
wxService.post(`/member/pointsRedemptionProductRecord/checkByMemberIdAndSettingId?memberId=${memberId}&settingId=${id}`).
then(res => {
if(res.data.data == -1){
this.setData({
dialogUserLimit : true
})
}
else{
wxService.router(`/subPackage/page/pages/exchangeAddress/exchangeAddress?id=${id}`)
}
});
},
//跳转积分换物详情
// subPackage/page/pages/IntegrateGoodsExchangeInfo/IntegrateGoodsExchangeInfo
goIntegrateGoodsExchangeDetail(e){
const { id } = e.currentTarget.dataset
wxService.router(`/subPackage/page/pages/IntegrateGoodsExchangeInfo/IntegrateGoodsExchangeInfo?id=${id}`)
},
// 点击跳转至会员规则页
handleGoMemberRulesRules() {
wxService.router(`/pages/memberRules/memberRules?type=2`)
},
goCouponDetail(e) {
const { id } = e.currentTarget.dataset
wxService.router(`/pages/integralMallDetail/integralMallDetail?id=${id}`)
},
});
.tea/tmp-saving/d8ae1341692c72677851a4888774fe791577347786401a63
0 → 100644
View file @
3533613a
const wxService = require('../../utils/wxService')
Component({
mixins: [],
data: {},
props: {
show : {
type : Boolean,
default : ''
},
},
didMount() {},
didUpdate() {
if(this.props.show){
this.setData({
show : this.props.show
});
}
},
didUnmount() {},
methods: {
//关闭
onTapClose(){
this.setData({
show : false
})
console.log(this.props)
},
//查看更多活动
onTapViewMore(){
if(this.props.onDialogBtnCallBack){
this.setData({
show: false
});
this.props.onDialogBtnCallBack(false);
}
else{
this.setData({
show: false
});
}
}
},
});
component/dialogStockEmpty/dialogStockEmpty.js
View file @
3533613a
...
...
@@ -6,29 +6,43 @@ Component({
show
:
{
type
:
Boolean
,
default
:
''
}
}
,
},
didMount
()
{},
didUpdate
()
{},
didUpdate
()
{
this
.
setData
({
show
:
this
.
props
.
show
});
},
didUnmount
()
{},
methods
:
{
//关闭
onTapClose
(){
this
.
setData
({
show
:
false
})
if
(
this
.
props
.
onDialogBtnCallBack
){
this
.
setData
({
show
:
false
});
this
.
props
.
onDialogBtnCallBack
(
false
);
}
else
{
this
.
setData
({
show
:
false
})
}
},
//查看更多活动
onTapViewMore
(){
this
.
props
.
onDialogBtnCallBack
(
false
);
this
.
setData
({
show
:
false
});
// this.props.onDialogBtnCallBack();
// wxService.nextTick(() => {
// })
if
(
this
.
props
.
onDialogBtnCallBack
){
this
.
setData
({
show
:
false
});
this
.
props
.
onDialogBtnCallBack
(
true
);
}
else
{
this
.
setData
({
show
:
false
});
}
}
},
});
component/dialogUserLimit/dialogUserLimit.js
View file @
3533613a
...
...
@@ -8,7 +8,11 @@ Component({
}
},
didMount
()
{},
didUpdate
()
{},
didUpdate
()
{
this
.
setData
({
show
:
this
.
props
.
show
});
},
didUnmount
()
{},
methods
:
{
//关闭
...
...
subPackage/page/pages/IntegralMallGoods/IntegralMallGoods.axml
View file @
3533613a
...
...
@@ -114,8 +114,8 @@
<!--<no-more a:if="{{noMore}}"/>-->
</view>
<!-- 库存没了 -->
<dialog-stock-empty show="{{dialogStockEmpty}}"/>
<dialog-user-limit show="{{dialogUserLimit}}"/>
<dialog-stock-empty show="{{dialogStockEmpty}}"
onDialogBtnCallBack="dialogBtnCallBack"
/>
<dialog-user-limit show="{{dialogUserLimit}}"
/>
...
...
subPackage/page/pages/IntegralMallGoods/IntegralMallGoods.js
View file @
3533613a
...
...
@@ -184,10 +184,17 @@ wxService.page({
isExchange
:
false
});
},
//库存弹框回调事件
dialogBtnCallBack
(
close
){
this
.
setData
({
dialogStockEmpty
:
false
});
},
// 立即兑换物品
exchangeGoods
(
e
)
{
const
{
id
,
point
,
canexchange
}
=
e
.
currentTarget
.
dataset
;
const
{
memberId
}
=
wx2my
.
getStorageSync
(
'_baseUserInfo'
).
data
;
console
.
log
(
canexchange
)
if
(
!
canexchange
)
{
this
.
setData
({
dialogStockEmpty
:
true
...
...
subPackage/page/pages/IntegrateGoodsExchangeInfo/IntegrateGoodsExchangeInfo.axml
View file @
3533613a
...
...
@@ -25,4 +25,4 @@
<button type='primary' class="redeem-now" onTap='exchange'>立即兑换</button>
</view>
<dialog-user-limit show="{{dialogUserLimit}}"/>
<dialog-stock-empty show="{{dialogStockEmpty}}"
bind:btnCli
ck="onDialogBtnCallBack"/>
<dialog-stock-empty show="{{dialogStockEmpty}}"
onDialogBtnCallBa
ck="onDialogBtnCallBack"/>
subPackage/page/pages/IntegrateGoodsExchangeInfo/IntegrateGoodsExchangeInfo.js
View file @
3533613a
...
...
@@ -20,19 +20,30 @@ wxService.page({
onShow
()
{},
//btn回调
onDialogBtnCallBack
(
e
)
{
let
pages
=
getCurrentPages
();
let
index
=
pages
.
length
-
1
;
for
(
let
i
=
0
;
i
<
pages
.
length
;
i
++
)
{
if
(
pages
[
i
].
route
.
indexOf
(
'IntegralMallGoods/IntegralMallGoods'
)
>
-
1
)
{
index
=
index
-
i
;
break
;
onDialogBtnCallBack
(
close
)
{
if
(
close
){
let
pages
=
getCurrentPages
();
let
index
=
pages
.
length
-
1
;
for
(
let
i
=
0
;
i
<
pages
.
length
;
i
++
)
{
if
(
pages
[
i
].
route
.
indexOf
(
'IntegralMallGoods/IntegralMallGoods'
)
>
-
1
)
{
index
=
index
-
i
;
break
;
}
}
}
wx
.
navigateBack
({
delta
:
index
});
this
.
setData
({
dialogStockEmpty
:
false
})
wx2my
.
navigateBack
({
delta
:
index
});
}
else
{
this
.
setData
({
dialogStockEmpty
:
false
})
}
},
//立即兑换
exchange
()
{
...
...
@@ -88,11 +99,14 @@ wxService.page({
let
ids
=
[
id
];
wxService
.
post
(
`/member/pointsRedemptionProductSetting/getExchangeCount`
,
ids
).
then
(
res
=>
{
let
data
=
res
.
data
.
data
?
res
.
data
.
data
:
null
;
if
(
data
)
{
let
value
=
data
[
id
];
this
.
data
.
integralMallDetail
.
canExchange
=
this
.
data
.
integralMallDetail
.
stock
>
value
;
if
(
res
){
let
data
=
res
.
data
.
data
?
res
.
data
.
data
:
null
;
if
(
data
)
{
let
value
=
data
[
id
];
this
.
data
.
integralMallDetail
.
canExchange
=
this
.
data
.
integralMallDetail
.
stock
>
value
;
}
}
this
.
setData
({
integralMallDetail
:
this
.
data
.
integralMallDetail
});
...
...
subPackage/page/pages/exchangeAddress/exchangeAddress.js
View file @
3533613a
...
...
@@ -195,21 +195,27 @@ wxService.page({
});
},
//btn回调
onDialogBtnCallBack
(
e
){
let
pages
=
getCurrentPages
();
let
index
=
pages
.
length
-
1
;
for
(
let
i
=
0
;
i
<
pages
.
length
;
i
++
){
if
(
pages
[
i
].
route
.
indexOf
(
'IntegralMallGoods/IntegralMallGoods'
)
>
-
1
){
index
=
index
-
i
;
break
;
onDialogBtnCallBack
(
close
){
if
(
close
){
let
pages
=
getCurrentPages
();
let
index
=
pages
.
length
-
1
;
for
(
let
i
=
0
;
i
<
pages
.
length
;
i
++
){
if
(
pages
[
i
].
route
.
indexOf
(
'IntegralMallGoods/IntegralMallGoods'
)
>
-
1
){
index
=
index
-
i
;
break
;
}
}
}
//清空数据
this
.
emptyForm
();
wx2my
.
navigateBack
({
delta
:
index
});
//清空数据
this
.
emptyForm
();
wx2my
.
navigateBack
({
delta
:
index
});
}
else
{
this
.
setData
({
dialogStockEmpty
:
false
,
});
}
},
});
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment