Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
N
new_taobao
Project
Project
Details
Activity
Releases
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
wildfirecode13
new_taobao
Commits
7abc24d1
Commit
7abc24d1
authored
Sep 29, 2020
by
wildfirecode13
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
111
parent
5aec9961
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
53 additions
and
46 deletions
+53
-46
prizeModal.axml
taobao_mini/client/components/prizeModal/prizeModal.axml
+2
-1
myprize.js
taobao_mini/client/pages/myprize/myprize.js
+51
-45
No files found.
taobao_mini/client/components/prizeModal/prizeModal.axml
View file @
7abc24d1
...
...
@@ -19,7 +19,8 @@
<!-- 未领取 -->
<block a:if="{{item.drawStatus===PRIZE_DRAW_STATUS_MAP.RECEIVE}}">
<!-- 实物填写地址 -->
<image a:if="{{item.type === PRIZE_TYPE_MAP.ENTITY}}" onTap="handleClick" data-item="{{item}}" src="{{task.image.addressBth}}" />
<image a:if="{{item.type === PRIZE_TYPE_MAP.ENTITY}}" onTap="handleClick" data-item="{{item}}" src="{{task.image.getBth}}" />
<!--<image a:if="{{item.type === PRIZE_TYPE_MAP.ENTITY}}" onTap="handleClick" data-item="{{item}}" src="{{task.image.addressBth}}" />-->
<!-- 优惠券立即领取 -->
<image a:else onTap="handleClick" data-item="{{item}}" src="{{task.image.getBth}}" />
</block>
...
...
taobao_mini/client/pages/myprize/myprize.js
View file @
7abc24d1
...
...
@@ -124,6 +124,7 @@ Page({
},
})
.
catch
((
err
)
=>
{
commonToast
(
'领取失败~'
)
console
.
log
(
"alibaba.latour.strategy.issue------catch"
,
err
);
});
console
.
log
(
result
,
"result"
);
...
...
@@ -131,6 +132,7 @@ Page({
},
fail
:
(
err
)
=>
{
console
.
log
(
"scope.latourBenefit----fail"
,
err
);
commonToast
(
'领取失败~'
)
reject
(
err
);
},
});
...
...
@@ -167,53 +169,57 @@ Page({
},
// 领取实物前询问
async
handleGetEntity
(
e
)
{
if
(
flag
)
{
return
}
// my.showLoading();
flag
=
true
;
const
{
activityId
}
=
app
;
const
{
item
}
=
e
.
target
.
dataset
;
const
userAddress
=
await
getUserAddress
({
joinTag
:
" "
}).
catch
((
data
)
=>
{
flag
=
false
console
.
log
(
'getUserAddress出错了,错误信息是'
,
data
);
})
// my.hideLoading();
if
(
!
userAddress
)
return
// commonToast(' getUserAddress =>'+JSON.stringify( userAddress))
const
{
name
,
telNumber
,
provinceName
,
cityName
,
cityCode
,
countyName
,
detailInfo
,
streetName
}
=
userAddress
||
{};
const
params
=
{
activityId
,
area
:
countyName
,
addressdetail
:
detailInfo
,
name
,
phone
:
telNumber
,
detailInfo
,
cityCode
,
cityName
,
city
:
cityName
,
province
:
provinceName
,
provinceName
,
countyName
,
streetName
,
_id
:
item
.
_id
}
const
text
=
'zzzxxx'
commonToast
(
'请前去钉钉领取,钉钉号为:'
+
text
+
'。钉钉号已经复制成功。'
,
3000
);
setClipboard
({
text
:
`钉钉号为:
${
text
}
`
})
// if (flag) {
// return
// }
// // my.showLoading();
// flag = true;
// const { activityId } = app;
// const { item } = e.target.dataset;
// const userAddress = await getUserAddress({ joinTag: " " }).catch((data) => {
// flag = false
// console.log('getUserAddress出错了,错误信息是', data);
// })
// // my.hideLoading();
// if (!userAddress) return
// // commonToast(' getUserAddress =>'+JSON.stringify( userAddress))
// const { name, telNumber, provinceName, cityName, cityCode, countyName, detailInfo, streetName } = userAddress || {};
// const params = {
// activityId,
// area: countyName,
// addressdetail: detailInfo,
// name,
// phone: telNumber,
// detailInfo,
// cityCode,
// cityName,
// city: cityName,
// province: provinceName,
// provinceName,
// countyName,
// streetName,
// _id: item._id
// }
my
.
confirm
({
title
:
'提示'
,
content
:
'确认使用该收货地址:'
+
name
+
telNumber
+
userAddress
.
duibaAddress
.
address
,
confirmButtonText
:
'确定'
,
cancelButtonText
:
'取消'
,
success
:
(
result
)
=>
{
console
.
log
(
result
)
const
{
confirm
}
=
result
;
//
my.confirm({
//
title: '提示',
//
content: '确认使用该收货地址:' + name + telNumber + userAddress.duibaAddress.address,
//
confirmButtonText: '确定',
//
cancelButtonText: '取消',
//
success: (result) => {
//
console.log(result)
//
const { confirm } = result;
if
(
confirm
)
{
this
.
receiveObjectPrize
(
params
);
}
},
});
flag
=
false
//
if (confirm) {
//
this.receiveObjectPrize(params);
//
}
//
},
//
});
//
flag = false
},
// 领取实物
async
receiveObjectPrize
(
params
)
{
...
...
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