Commit a09756de authored by 汪欢's avatar 汪欢

1

parent 06e37c04
...@@ -44,7 +44,8 @@ Component({ ...@@ -44,7 +44,8 @@ Component({
enableTap: false enableTap: false
}) })
this.props.onUserCredit(); this.props.onUserCredit();
commonToast(resp.message); // commonToast(resp.message);
commonToast("购买成功");
setTimeout(() => { setTimeout(() => {
this.props.onUserCredit(); this.props.onUserCredit();
}, 500); }, 500);
......
...@@ -54,7 +54,6 @@ Page({ ...@@ -54,7 +54,6 @@ Page({
ruleData: '', ruleData: '',
screentop:'', screentop:'',
maskVisible:false, maskVisible:false,
musicswitch:true
}, },
...@@ -69,23 +68,7 @@ Page({ ...@@ -69,23 +68,7 @@ Page({
this.getOrderList(); this.getOrderList();
// this.screenAdapt(); // this.screenAdapt();
// this.addMusic();
// this.musicOpen();
},
musicOpen(){
let {musicswitch} = this.data
if(musicswitch){
this.addMusic(); this.addMusic();
}
},
musicClose(){
let {musicswitch} = this.data;
this.setData({
musicswitch:true
})
}, },
// screenAdapt(){ // screenAdapt(){
...@@ -397,17 +380,17 @@ Page({ ...@@ -397,17 +380,17 @@ Page({
} }
let lens = data.length; let lens = data.length;
for (let i = lens -1; i >= 0; i--) { for (let i = 0; i < lens; i++) {
let orderStyle = { let orderStyle = {
orderDay: { orderDay: {
left: 0, left: 0,
top: 50 * (lens-i) + 'rpx', top: 50 * i + 'rpx',
position: 'absolute', position: 'absolute',
color: 'white', color: 'white',
}, },
orderFloor: { orderFloor: {
left: 120 + 'rpx', left: 120 + 'rpx',
top: 50 * (lens-i) + 'rpx', top: 50 * i + 'rpx',
position: 'absolute', position: 'absolute',
color: 'white', color: 'white',
width:260+'rpx', width:260+'rpx',
...@@ -415,7 +398,7 @@ Page({ ...@@ -415,7 +398,7 @@ Page({
}, },
orderCredits: { orderCredits: {
left: 370 + 'rpx', left: 370 + 'rpx',
top: 50 * (lens-i) + 'rpx', top: 50 * i + 'rpx',
position: 'absolute', position: 'absolute',
color: 'white', color: 'white',
width:140+'rpx', width:140+'rpx',
...@@ -507,9 +490,7 @@ Page({ ...@@ -507,9 +490,7 @@ Page({
}); });
let musicUrl = null; let musicUrl = null;
if (resultSrc[0]) musicUrl = resultSrc[0].url; if (resultSrc[0]) musicUrl = resultSrc[0].url;
playBgMusic(true,musicUrl) playBgMusic(true,musicUrl)
console.log('fuck music') console.log('fuck music')
} }
}); });
\ No newline at end of file
...@@ -125,17 +125,17 @@ Page({ ...@@ -125,17 +125,17 @@ Page({
} }
let lens = data.length; let lens = data.length;
for (let i = lens - 1; i >= 0; i--) { for (let i = 0; i < lens; i++) {
let orderStyle = { let orderStyle = {
orderDay: { orderDay: {
left: 0, left: 0,
top: 50 * (lens - i) + 'rpx', top: 50 * i + 'rpx',
position: 'absolute', position: 'absolute',
color: 'white' color: 'white'
}, },
orderFloor: { orderFloor: {
left: 120 + 'rpx', left: 120 + 'rpx',
top: 50 * (lens - i) + 'rpx', top: 50 * i + 'rpx',
position: 'absolute', position: 'absolute',
color: 'white', color: 'white',
width: 260 + 'rpx', width: 260 + 'rpx',
...@@ -143,7 +143,7 @@ Page({ ...@@ -143,7 +143,7 @@ Page({
}, },
orderCredits: { orderCredits: {
left: 370 + 'rpx', left: 370 + 'rpx',
top: 50 * (lens - i) + 'rpx', top: 50 * i + 'rpx',
position: 'absolute', position: 'absolute',
color: 'white', color: 'white',
width: 140 + 'rpx', width: 140 + 'rpx',
......
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