Commit a09756de authored by 汪欢's avatar 汪欢

1

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