Commit 0b78ea6b authored by Edwise's avatar Edwise 🍷

小细节

parent 75f7a73d
...@@ -127,7 +127,7 @@ ...@@ -127,7 +127,7 @@
left: 82rpx; left: 82rpx;
top: 613rpx; top: 613rpx;
position: absolute; position: absolute;
transform-origin: 0rpx 0rpx 0rpx; transform-origin: 50% 50% 0rpx;
} }
.pksuccessmodal .pksuccessmodalclose { .pksuccessmodal .pksuccessmodalclose {
width: 72rpx; width: 72rpx;
...@@ -136,7 +136,7 @@ ...@@ -136,7 +136,7 @@
left: 227rpx; left: 227rpx;
top: 791rpx; top: 791rpx;
position: absolute; position: absolute;
transform-origin: 0rpx 0rpx 0rpx; transform-origin: 50% 50% 0rpx;
} }
.pksuccessmodal .pkPrizeImg { .pksuccessmodal .pkPrizeImg {
width: 260rpx; width: 260rpx;
......
...@@ -11,7 +11,7 @@ ...@@ -11,7 +11,7 @@
<label class="pkfailedtitle" a:if="{{!isWin}}">继续加油,蕉内送您一份小礼物</label> <label class="pkfailedtitle" a:if="{{!isWin}}">继续加油,蕉内送您一份小礼物</label>
</view> </view>
<image class="pksuccessmodalbtn " onTap="redirectToIndex" src={{resList['75801bab-c16e-4814-ab19-081933e4abc5'].url}} /> <image class="pksuccessmodalbtn btn" onTap="redirectToIndex" src={{resList['75801bab-c16e-4814-ab19-081933e4abc5'].url}} />
<image class="pksuccessmodalclose " onTap="redirectToIndex" src={{resList['5eee69bb-482c-4ce0-beb1-c7c38cdb6fe4'].url}} /> <image class="pksuccessmodalclose btn" onTap="redirectToIndex" src={{resList['5eee69bb-482c-4ce0-beb1-c7c38cdb6fe4'].url}} />
<image class="pkPrizeImg " src={{prizeImg}} /> <image class="pkPrizeImg " src={{prizeImg}} />
</view> </view>
...@@ -19,15 +19,15 @@ Component({ ...@@ -19,15 +19,15 @@ Component({
props: { props: {
percent: 10, percent: 10,
usePercent:0, usePercent:0,
countTime: 10, countTime: 20,
styleType: '01',//browse_txt_bg count_bg_02 styleType: '01',//browse_txt_bg count_bg_02
data: { data: {
text: '浏览商品10s,获得任务奖励', text: '浏览商品20s,获得任务奖励',
textBg: '//yun.dui88.com/taobaomini/clientCTest/count_bg_02@2x.png', textBg: '//yun.dui88.com/taobaomini/clientCTest/count_bg_02@2x.png',
progressWidth:'130', progressWidth:'130',
progressHeight:'18', progressHeight:'18',
clock_bg: '//yun.dui88.com/taobaomini/clientCTest/clock@2x.png', clock_bg: '//yun.dui88.com/taobaomini/clientCTest/clock@2x.png',
countTxt: '10', countTxt: '20',
countTxtColor: '#1CA4ED', countTxtColor: '#1CA4ED',
countTxtSize: '32' countTxtSize: '32'
} }
......
...@@ -68,7 +68,7 @@ Component({ ...@@ -68,7 +68,7 @@ Component({
if (taskType == 'browseGoods') { if (taskType == 'browseGoods') {
this.browseGoodsTimes() this.browseGoodsTimes()
} }
console.log(10 - this.usePercent) console.log(20 - this.usePercent)
} }
} }
}, },
...@@ -129,13 +129,13 @@ Component({ ...@@ -129,13 +129,13 @@ Component({
this.setData({ this.setData({
usePercent: this.data.usePercent + 1 usePercent: this.data.usePercent + 1
}, () => { }, () => {
if (this.data.usePercent >= 10) { if (this.data.usePercent >= 20) {
console.log(this.data.usePercent) console.log(this.data.usePercent)
this.props.onCompleteTask(taskType) this.props.onCompleteTask(taskType)
clearInterval(this.timer) clearInterval(this.timer)
} }
}) })
}, 2000) }, 1000)
} }
}, },
}); });
\ No newline at end of file
This diff is collapsed.
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