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
e46cfe63
Commit
e46cfe63
authored
Oct 14, 2020
by
zhangjinzhou
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
代码暂存
parent
8386dcc6
Changes
10
Expand all
Show whitespace changes
Inline
Side-by-side
Showing
10 changed files
with
310 additions
and
138 deletions
+310
-138
comattion_dan_chuang.js
...t/components/comattion_dan_chuang/comattion_dan_chuang.js
+1
-1
compai_xing_bang.axml
.../client/components/compai_xing_bang/compai_xing_bang.axml
+1
-1
compai_xing_bang.js
...ni/client/components/compai_xing_bang/compai_xing_bang.js
+6
-3
comsui_pian_dan_chuang.js
...mponents/comsui_pian_dan_chuang/comsui_pian_dan_chuang.js
+1
-1
comxin_ren_li_bao.js
.../client/components/comxin_ren_li_bao/comxin_ren_li_bao.js
+6
-0
prizeModal.acss
taobao_mini/client/components/prizeModal/prizeModal.acss
+10
-3
myprize.js
taobao_mini/client/pages/myprize/myprize.js
+62
-66
output.js
taobao_mini/client/pages/pagecanvas/output.js
+6
-6
pageshou_ye.axml
taobao_mini/client/pages/pageshou_ye/pageshou_ye.axml
+4
-4
pageshou_ye.js
taobao_mini/client/pages/pageshou_ye/pageshou_ye.js
+213
-53
No files found.
taobao_mini/client/components/comattion_dan_chuang/comattion_dan_chuang.js
View file @
e46cfe63
...
@@ -33,7 +33,7 @@ Component({
...
@@ -33,7 +33,7 @@ Component({
if
(
attionfrom
==
"gift"
){
if
(
attionfrom
==
"gift"
){
tit
=
"获得抽取年度人气锦鲤大奖的机会
\n
快去抽奖吧"
;
tit
=
"获得抽取年度人气锦鲤大奖的机会
\n
快去抽奖吧"
;
}
else
if
(
attionfrom
==
"prize"
){
}
else
if
(
attionfrom
==
"prize"
){
tit
=
prizename
+
"新品一双"
;
tit
=
"获得了"
+
prizename
;
}
}
let
subtit
=
[];
let
subtit
=
[];
...
...
taobao_mini/client/components/compai_xing_bang/compai_xing_bang.axml
View file @
e46cfe63
...
@@ -9,7 +9,7 @@
...
@@ -9,7 +9,7 @@
<label class="dui_you_ren_shu">队友人数</label>
<label class="dui_you_ren_shu">队友人数</label>
</view>
</view>
<view class="wo_de_pai_ming">
<view class="wo_de_pai_ming">
<label class="urank{{myData.rank<4?' top3':''}}">{{myData.rank<4?'TOP'+myData.rank:''+myData.rank}}</label>
<label class="urank{{myData.rank<4?' top3':''}}">{{myData.rank<4
&&myData.rank>0
?'TOP'+myData.rank:''+myData.rank}}</label>
<label class="uname">{{myData.userNick}}</label>
<label class="uname">{{myData.userNick}}</label>
<label class="uscore">{{myData.count}}</label>
<label class="uscore">{{myData.count}}</label>
</view>
</view>
...
...
taobao_mini/client/components/compai_xing_bang/compai_xing_bang.js
View file @
e46cfe63
...
@@ -10,9 +10,9 @@ Component({
...
@@ -10,9 +10,9 @@ Component({
resList
:
resList
,
resList
:
resList
,
rankdata
:
[],
rankdata
:
[],
myData
:
{
myData
:
{
rank
:
"
--
"
,
rank
:
"
"
,
userNick
:
"
用户x
"
,
userNick
:
""
,
count
:
0
count
:
" "
},
},
pageidx
:
0
,
pageidx
:
0
,
getpage
:
false
getpage
:
false
...
@@ -73,6 +73,9 @@ Component({
...
@@ -73,6 +73,9 @@ Component({
if
(
list
.
length
<
pagesize
)
{
if
(
list
.
length
<
pagesize
)
{
getpage
=
true
;
getpage
=
true
;
}
}
if
(
myRank
.
rank
>
300
){
myRank
.
rank
=
"300+"
}
myRank
.
userNick
=
this
.
changenameShow
(
myRank
.
userNick
);
myRank
.
userNick
=
this
.
changenameShow
(
myRank
.
userNick
);
if
(
!
myRank
.
count
)
myRank
.
count
=
0
;
if
(
!
myRank
.
count
)
myRank
.
count
=
0
;
for
(
let
i
=
0
;
i
<
list
.
length
;
i
++
){
for
(
let
i
=
0
;
i
<
list
.
length
;
i
++
){
...
...
taobao_mini/client/components/comsui_pian_dan_chuang/comsui_pian_dan_chuang.js
View file @
e46cfe63
...
@@ -56,7 +56,7 @@ Component({
...
@@ -56,7 +56,7 @@ Component({
let
tit
=
"你获得了xx碎片"
;
let
tit
=
"你获得了xx碎片"
;
let
subtit
=
""
;
let
subtit
=
""
;
if
(
btntype
==
1
)
{
if
(
btntype
==
1
)
{
tit
=
"你获得了"
+
shoesName
+
"碎片"
;
tit
=
"你获得了"
+
shoesName
+
"
系列
碎片"
;
if
(
nearchashare
&&
nearchaprize
.
length
>
0
&&
nearchashare
<=
3
){
if
(
nearchashare
&&
nearchaprize
.
length
>
0
&&
nearchashare
<=
3
){
subtit
=
"再召唤"
+
nearchashare
+
"位好友就能获得"
+
nearchaprize
;
subtit
=
"再召唤"
+
nearchashare
+
"位好友就能获得"
+
nearchaprize
;
}
}
...
...
taobao_mini/client/components/comxin_ren_li_bao/comxin_ren_li_bao.js
View file @
e46cfe63
...
@@ -16,6 +16,12 @@ Component({
...
@@ -16,6 +16,12 @@ Component({
*/
*/
onOpenGift
(){
onOpenGift
(){
const
{
onOpenGift
}
=
this
.
props
;
const
{
onOpenGift
}
=
this
.
props
;
my
.
setStorageSync
({
key
:
'tbjkactnewgift'
,
data
:
{
click
:
"1"
}
});
onOpenGift
&&
onOpenGift
();
onOpenGift
&&
onOpenGift
();
}
}
},
},
...
...
taobao_mini/client/components/prizeModal/prizeModal.acss
View file @
e46cfe63
...
@@ -19,7 +19,10 @@
...
@@ -19,7 +19,10 @@
.my-prize-page .my-prize-label {
.my-prize-page .my-prize-label {
width: 210rpx;
width: 210rpx;
height: 37rpx;
height: 37rpx;
margin: 40rpx auto;
/* position: absolute; */
/* top:140rpx; */
/* left:270rpx; */
margin: 140rpx auto 50rpx;
background: url('//yun.duiba.com.cn/aurora/assets/f0df2ef677f00130a80cdf125c3456febf18c265.png') no-repeat;
background: url('//yun.duiba.com.cn/aurora/assets/f0df2ef677f00130a80cdf125c3456febf18c265.png') no-repeat;
background-size: 100% 100%;
background-size: 100% 100%;
}
}
...
@@ -27,12 +30,16 @@
...
@@ -27,12 +30,16 @@
.my-prize-page .my-prize-list {
.my-prize-page .my-prize-list {
width: 100%;
width: 100%;
height: auto;
height: auto;
}
}
.my-prize-page .my-prize-empty {
.my-prize-page .my-prize-empty {
width: 750rpx;
text-align: center;
text-align: center;
color: #fff;
color: #fff;
margin-top: 60rpx;
/* position: absolute; */
/* top:350rpx; */
margin-top: 150rpx;
letter-spacing: 1rpx;
letter-spacing: 1rpx;
}
}
...
@@ -84,7 +91,7 @@
...
@@ -84,7 +91,7 @@
.my-prize-page .my-prize-item .prize-status {
.my-prize-page .my-prize-item .prize-status {
width: 150rpx;
width: 150rpx;
height: 4
1
rpx;
height: 4
0
rpx;
}
}
.prize-status>image {
.prize-status>image {
...
...
taobao_mini/client/pages/myprize/myprize.js
View file @
e46cfe63
...
@@ -33,8 +33,8 @@ Page({
...
@@ -33,8 +33,8 @@ Page({
copyIcon
:
'//yun.dui88.com/duiba-components-c-myprizemyprize_copy_code.png'
,
//复制
copyIcon
:
'//yun.dui88.com/duiba-components-c-myprizemyprize_copy_code.png'
,
//复制
},
},
btnStyle
:
{
// 按钮自定义样式
btnStyle
:
{
// 按钮自定义样式
width
:
'15
4
rpx'
,
width
:
'15
0
rpx'
,
height
:
'4
9
rpx'
,
height
:
'4
0
rpx'
,
}
}
}
}
},
},
...
@@ -146,18 +146,18 @@ Page({
...
@@ -146,18 +146,18 @@ Page({
}
}
flag
=
true
;
flag
=
true
;
const
{
item
:
{
strategyCode
,
code
,
channel
}
}
=
e
.
target
.
dataset
;
//
const { item: { strategyCode, code, channel } } = e.target.dataset;
this
.
cloudTBIssue
({
strategyCode
,
code
,
channel
})
//
this.cloudTBIssue({ strategyCode, code, channel })
//
const { activityId } = app;
const
{
activityId
}
=
app
;
//
console.log(item, '领取权益')
console
.
log
(
item
,
'领取权益'
)
// const { success, data, message } = await API.receiveEnamePrize({ activityId, _
id: item._id }).catch(res => {
const
{
success
,
data
,
message
}
=
await
API
.
receiveEnamePrize
({
activityId
,
id
:
item
.
_id
}).
catch
(
res
=>
{
//
this.getMyPrize('noLoading')
this
.
getMyPrize
(
'noLoading'
)
//
commonToast(res && res.message)
commonToast
(
res
&&
res
.
message
)
//
}) || {};
})
||
{};
//
if (success && data) {
if
(
success
&&
data
)
{
//
commonToast('领取成功')
commonToast
(
'领取成功'
)
//
this.getMyPrize()
this
.
getMyPrize
()
//
}
}
...
@@ -169,57 +169,53 @@ Page({
...
@@ -169,57 +169,53 @@ Page({
},
},
// 领取实物前询问
// 领取实物前询问
async
handleGetEntity
(
e
)
{
async
handleGetEntity
(
e
)
{
const
text
=
'zzzxxx'
if
(
flag
)
{
commonToast
(
'请前去钉钉领取,钉钉号为:'
+
text
+
'。钉钉号已经复制成功。'
,
3000
);
return
setClipboard
({
text
:
`
${
text
}
`
})
}
// my.showLoading();
// if (flag) {
flag
=
true
;
// return
const
{
activityId
}
=
app
;
// }
const
{
item
}
=
e
.
target
.
dataset
;
// // my.showLoading();
const
userAddress
=
await
getUserAddress
({
joinTag
:
""
}).
catch
((
data
)
=>
{
// flag = true;
flag
=
false
// const { activityId } = app;
console
.
log
(
'getUserAddress出错了,错误信息是'
,
data
);
// const { item } = e.target.dataset;
})
// const userAddress = await getUserAddress({ joinTag: " " }).catch((data) => {
// my.hideLoading();
// flag = false
if
(
!
userAddress
)
return
// console.log('getUserAddress出错了,错误信息是', data);
// commonToast(' getUserAddress =>'+JSON.stringify( userAddress))
// })
const
{
name
,
telNumber
,
provinceName
,
cityName
,
cityCode
,
countyName
,
detailInfo
,
streetName
}
=
userAddress
||
{};
// // my.hideLoading();
const
params
=
{
// if (!userAddress) return
activityId
,
// // commonToast(' getUserAddress =>'+JSON.stringify( userAddress))
area
:
countyName
,
// const { name, telNumber, provinceName, cityName, cityCode, countyName, detailInfo, streetName } = userAddress || {};
addressDetail
:
detailInfo
,
// const params = {
name
,
// activityId,
phone
:
telNumber
,
// area: countyName,
detailInfo
,
// addressdetail: detailInfo,
cityCode
,
// name,
cityName
,
// phone: telNumber,
city
:
cityName
,
// detailInfo,
province
:
provinceName
,
// cityCode,
provinceName
,
// cityName,
countyName
,
// city: cityName,
streetName
,
// province: provinceName,
id
:
item
.
_id
// provinceName,
}
// countyName,
// streetName,
// _id: item._id
// }
//
my.confirm({
my
.
confirm
({
//
title: '提示',
title
:
'提示'
,
//
content: '确认使用该收货地址:' + name + telNumber + userAddress.duibaAddress.address,
content
:
'确认使用该收货地址:'
+
name
+
telNumber
+
userAddress
.
duibaAddress
.
address
,
//
confirmButtonText: '确定',
confirmButtonText
:
'确定'
,
//
cancelButtonText: '取消',
cancelButtonText
:
'取消'
,
//
success: (result) => {
success
:
(
result
)
=>
{
//
console.log(result)
console
.
log
(
result
)
//
const { confirm } = result;
const
{
confirm
}
=
result
;
//
if (confirm) {
if
(
confirm
)
{
//
this.receiveObjectPrize(params);
this
.
receiveObjectPrize
(
params
);
//
}
}
//
},
},
//
});
});
//
flag = false
flag
=
false
},
},
// 领取实物
// 领取实物
async
receiveObjectPrize
(
params
)
{
async
receiveObjectPrize
(
params
)
{
...
@@ -260,11 +256,11 @@ Page({
...
@@ -260,11 +256,11 @@ Page({
const
{
activityId
}
=
app
;
const
{
activityId
}
=
app
;
const
{
item
}
=
e
.
target
.
dataset
;
const
{
item
}
=
e
.
target
.
dataset
;
console
.
log
(
item
,
'领取积分'
)
console
.
log
(
item
,
'领取积分'
)
const
{
success
,
data
,
message
}
=
await
API
.
receiveEnamePrize
({
activityId
,
_id
:
item
.
_id
})
||
{};
const
{
success
,
data
}
=
await
API
.
receiveEnamePrize
({
activityId
,
id
:
item
.
_id
}).
catch
(
res
=>
{
commonToast
(
res
&&
res
.
message
)
})
||
{};
if
(
success
&&
data
)
{
if
(
success
&&
data
)
{
commonToast
(
'领取成功'
)
commonToast
(
'领取成功'
)
}
else
{
commonToast
(
message
)
}
}
flag
=
false
flag
=
false
this
.
getMyPrize
()
this
.
getMyPrize
()
...
...
taobao_mini/client/pages/pagecanvas/output.js
View file @
e46cfe63
...
@@ -1791,12 +1791,12 @@ var StartScene = (function (_super) {
...
@@ -1791,12 +1791,12 @@ var StartScene = (function (_super) {
return
__generator
(
this
,
function
(
_a
)
{
return
__generator
(
this
,
function
(
_a
)
{
this
.
whiteani
=
new
FYGE
.
Lottie
(
whitedia_1
.
whitedia
);
this
.
whiteani
=
new
FYGE
.
Lottie
(
whitedia_1
.
whitedia
);
this
.
addChild
(
this
.
whiteani
);
this
.
addChild
(
this
.
whiteani
);
itxt
=
new
FYGE
.
TextField
();
//
itxt = new FYGE.TextField();
itxt
.
size
=
66
;
//
itxt.size = 66;
itxt
.
text
=
"测试动画"
;
//
itxt.text = "测试动画";
itxt
.
fillColor
=
"red"
;
//
itxt.fillColor = "red";
this
.
addChild
(
itxt
);
//
this.addChild(itxt);
itxt
.
addEventListener
(
FYGE
.
MouseEvent
.
MOUSE_DOWN
,
this
.
resetani
,
this
);
//
itxt.addEventListener(FYGE.MouseEvent.MOUSE_DOWN, this.resetani, this);
return
[
2
];
return
[
2
];
});
});
});
});
...
...
taobao_mini/client/pages/pageshou_ye/pageshou_ye.axml
View file @
e46cfe63
...
@@ -63,7 +63,7 @@
...
@@ -63,7 +63,7 @@
</view>
</view>
<view class="pic7{{selected==2&&!cardCountList[7]||cardCountList[7]==0?' blackWhiteFilter':''}}">
<view class="pic7{{selected==2&&!cardCountList[7]||cardCountList[7]==0?' blackWhiteFilter':''}}">
<image class="picimg7" src={{resList[selshoesname+7].url}} />
<image class="picimg7" src={{resList[selshoesname+7].url}} />
<view class="picredot7" a:if="{{selected==2&&cardCountList[7]&&cardCountList[7]>
0
}}">
<view class="picredot7" a:if="{{selected==2&&cardCountList[7]&&cardCountList[7]>
1
}}">
<image class="picredotimg7" src={{resList['9b49cfcd-9ce8-4fe2-bfc0-17532b0ff35b'].url}} />
<image class="picredotimg7" src={{resList['9b49cfcd-9ce8-4fe2-bfc0-17532b0ff35b'].url}} />
<label class="picredotnum7">{{cardCountList[7]}}</label>
<label class="picredotnum7">{{cardCountList[7]}}</label>
</view>
</view>
...
@@ -87,7 +87,7 @@
...
@@ -87,7 +87,7 @@
<view class="ptnode">
<view class="ptnode">
<image class="showallimg ptimgani" a:if="{{ptimg_v}}" src={{ptimgbig}} />
<image class="showallimg ptimgani" a:if="{{ptimg_v}}" src={{ptimgbig}} />
</view>
</view>
<view class="finapt" a:if="{{selected!=2||
isduihuan
}}">
<view class="finapt" a:if="{{selected!=2||
(isduihuan&&!ptimg_v)
}}">
<image class="finaptdi" src={{resList['56d322ae-bfcb-4d03-b5bc-81603cb2fe5b'].url}} />
<image class="finaptdi" src={{resList['56d322ae-bfcb-4d03-b5bc-81603cb2fe5b'].url}} />
<image class="finaptimg" src={{ptimgbig}} />
<image class="finaptimg" src={{ptimgbig}} />
</view>
</view>
...
@@ -197,8 +197,8 @@
...
@@ -197,8 +197,8 @@
<label class="prizenumstxt4" a:if="{{inviteAwardList[3].type==1}}">{{inviteAwardList[3].rewards+""}}次</label>
<label class="prizenumstxt4" a:if="{{inviteAwardList[3].type==1}}">{{inviteAwardList[3].rewards+""}}次</label>
</view>
</view>
</view>
</view>
<image class="hui_yuan_zhuan_qu" onTap="registerVip" src={{
resList['d1159e9d-900f-45cf-874f-f7efec6ad918'].url
}} />
<image class="hui_yuan_zhuan_qu" onTap="registerVip" src={{
sourceImg1
}} />
<image class="shuang_shi_yi_zhuan_qu" onTap="registerD11" src={{
resList['e9a0ad73-6fe7-40bd-98cc-9a985bc413e7'].url
}} />
<image class="shuang_shi_yi_zhuan_qu" onTap="registerD11" src={{
sourceImg2
}} />
</view>
</view>
</view>
</view>
</view>
</view>
...
...
taobao_mini/client/pages/pageshou_ye/pageshou_ye.js
View file @
e46cfe63
This diff is collapsed.
Click to expand it.
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