Commit 2f6b2855 authored by 汪欢's avatar 汪欢

share

parent a2e572d7
'use strict'; 'use strict';
import { SHARE_CONFIG } from '/tbcc-sdk/lib/constants';
import resList from '../../resconfig/resList'; import resList from '../../resconfig/resList';
Component({ Component({
props: {}, props: {},
...@@ -33,6 +33,9 @@ Component({ ...@@ -33,6 +33,9 @@ Component({
// resList: resList // resList: resList
// }); // });
}, },
onShareAppMessage() {
return SHARE_CONFIG;
},
}); });
\ No newline at end of file
'use strict'; 'use strict';
import { SHARE_CONFIG } from '/tbcc-sdk/lib/constants';
import resList from '../../resconfig/resList'; import resList from '../../resconfig/resList';
import API from '../../api' import API from '../../api'
Component({ Component({
...@@ -64,6 +64,9 @@ Component({ ...@@ -64,6 +64,9 @@ Component({
didMount(){ didMount(){
this.getOrderListProps(); this.getOrderListProps();
} },
onShareAppMessage() {
return SHARE_CONFIG;
},
}); });
\ No newline at end of file
'use strict'; 'use strict';
import OPEN_PRIZE_STATUS from '/utils/OPEN_PRIZE_STATUS'; import OPEN_PRIZE_STATUS from '/utils/OPEN_PRIZE_STATUS';
import resList from '../../resconfig/resList'; import resList from '../../resconfig/resList';
import { SHARE_CONFIG } from '/tbcc-sdk/lib/constants';
Component({ Component({
props: {}, props: {},
data: { data: {
...@@ -20,6 +21,10 @@ Component({ ...@@ -20,6 +21,10 @@ Component({
// this.setData({ // this.setData({
// resList: resList // resList: resList
// }); // });
} },
onShareAppMessage() {
return SHARE_CONFIG;
},
}); });
\ No newline at end of file
'use strict'; 'use strict';
import { SHARE_CONFIG } from '/tbcc-sdk/lib/constants';
import resList from '../../resconfig/resList'; import resList from '../../resconfig/resList';
import API from '../../api' import API from '../../api'
const app = getApp(); const app = getApp();
...@@ -75,6 +75,9 @@ Component({ ...@@ -75,6 +75,9 @@ Component({
didMount() { didMount() {
let { vipCredits } = this.props; let { vipCredits } = this.props;
console.log(this.props, 'huiyuan') console.log(this.props, 'huiyuan')
} },
onShareAppMessage() {
return SHARE_CONFIG;
},
}); });
\ No newline at end of file
'use strict'; 'use strict';
import { SHARE_CONFIG } from '/tbcc-sdk/lib/constants';
import resList from '../../resconfig/resList'; import resList from '../../resconfig/resList';
Component({ Component({
props: {}, props: {},
...@@ -10,6 +10,9 @@ Component({ ...@@ -10,6 +10,9 @@ Component({
this.setData({ this.setData({
resList: resList resList: resList
}); });
} },
onShareAppMessage() {
return SHARE_CONFIG;
},
}); });
\ No newline at end of file
'use strict'; 'use strict';
import { SHARE_CONFIG } from '/tbcc-sdk/lib/constants';
import resList from '../../resconfig/resList'; import resList from '../../resconfig/resList';
Component({ Component({
props: {}, props: {},
...@@ -17,6 +17,9 @@ Component({ ...@@ -17,6 +17,9 @@ Component({
// this.setData({ // this.setData({
// resList: resList // resList: resList
// }); // });
} },
onShareAppMessage() {
return SHARE_CONFIG;
},
}); });
\ No newline at end of file
import { SHARE_CONFIG } from '/tbcc-sdk/lib/constants';
const app = getApp(); const app = getApp();
const { tbcc } = app; const { tbcc } = app;
const { commonToast } = tbcc.tb; const { commonToast } = tbcc.tb;
...@@ -42,4 +44,7 @@ Component({ ...@@ -42,4 +44,7 @@ Component({
}); });
} }
}, },
onShareAppMessage() {
return SHARE_CONFIG;
},
}); });
import { SHARE_CONFIG } from '/tbcc-sdk/lib/constants';
const app = getApp(); const app = getApp();
const { tbcc } = app; const { tbcc } = app;
const { commonToast, navigateToOutside, getUserAddress, setClipboard } = tbcc.tb; const { commonToast, navigateToOutside, getUserAddress, setClipboard } = tbcc.tb;
...@@ -23,6 +23,9 @@ Component({ ...@@ -23,6 +23,9 @@ Component({
didMount() { }, didMount() { },
didUpdate() { }, didUpdate() { },
didUnmount() { }, didUnmount() { },
onShareAppMessage() {
return SHARE_CONFIG;
},
methods: { methods: {
//领取奖品 //领取奖品
handleClick(e) { handleClick(e) {
......
'use strict'; 'use strict';
import API from "/api"; import API from "/api";
import { SHARE_CONFIG } from '/tbcc-sdk/lib/constants';
const app = getApp(); const app = getApp();
const { tbcc } = app; const { tbcc } = app;
const { commonToast, navigateToOutside, getUserAddress, setClipboard } = tbcc.tb; const { commonToast, navigateToOutside, getUserAddress, setClipboard } = tbcc.tb;
...@@ -41,6 +42,9 @@ Page({ ...@@ -41,6 +42,9 @@ Page({
flag = false flag = false
this.getMyPrize(); this.getMyPrize();
}, },
onShareAppMessage() {
return SHARE_CONFIG;
},
// 到期时间 // 到期时间
getEndTime(prizeList = []) { getEndTime(prizeList = []) {
if (!prizeList || !prizeList.length) return null if (!prizeList || !prizeList.length) return null
......
...@@ -113,6 +113,7 @@ ...@@ -113,6 +113,7 @@
opacity: 0.70196078; opacity: 0.70196078;
left: 131rpx; left: 131rpx;
top: 1337rpx; top: 1337rpx;
text-align: center;
position: absolute; position: absolute;
font-size: 22rpx; font-size: 22rpx;
color: #ffffff; color: #ffffff;
...@@ -500,6 +501,7 @@ ...@@ -500,6 +501,7 @@
opacity: 1; opacity: 1;
/* left: 10rpx; */ /* left: 10rpx; */
position: absolute; position: absolute;
overflow-x:hidden;
} }
.jie_shu_ye .gou_mai_ji_lu46 .zu13447 .tu_ceng09_yue15_ri56 { .jie_shu_ye .gou_mai_ji_lu46 .zu13447 .tu_ceng09_yue15_ri56 {
......
...@@ -11,10 +11,10 @@ ...@@ -11,10 +11,10 @@
<label class="tu_ceng2271">00</label> <label class="tu_ceng2271">00</label>
<label class="tu_ceng22_kao_bei370">00</label> <label class="tu_ceng22_kao_bei370">00</label>
</view> </view>
<label class="mai_zhongn20n50n80_lou_ceng_de_yong_hu_ke_huo_de_jiang_pinn_dai_biao_gai_lou_jie_shu_shi_de_zong_lou_ceng"> <view class="mai_zhongn20n50n80_lou_ceng_de_yong_hu_ke_huo_de_jiang_pinn_dai_biao_gai_lou_jie_shu_shi_de_zong_lou_ceng">
<!-- 买中N*20%,N*50%,N*80%楼层的用户可获得奖品 N代表盖楼结束时的总楼层 --> <!-- 买中N*20%,N*50%,N*80%楼层的用户可获得奖品 N代表盖楼结束时的总楼层 -->
买中<label a:for="{{list}}" a:key="i" a:for-item="items"> {{totalFloor}}*{{items.probability}} </label>楼层的用户可获得奖品 N代表盖楼结束时的总楼层 买中<label a:for="{{list}}" a:key="i" a:for-item="items"> N*{{items.probability}}%,</label>楼层的用户可获得奖品 N代表盖楼结束时的总楼层
</label> </view>
<view class="zhong_jiang_ming_dan"> <view class="zhong_jiang_ming_dan">
<image class="di953" src={{resList['e701381d-fb5a-4b6a-8fc1-71aedea9416d'].url}} /> <image class="di953" src={{resList['e701381d-fb5a-4b6a-8fc1-71aedea9416d'].url}} />
<view class="zhong_jiang_zhuang_tai"> <view class="zhong_jiang_zhuang_tai">
......
...@@ -2,6 +2,7 @@ ...@@ -2,6 +2,7 @@
import resList from '../../resconfig/resList'; import resList from '../../resconfig/resList';
import API from '../../api'; import API from '../../api';
import { SHARE_CONFIG } from '/tbcc-sdk/lib/constants';
Page({ Page({
data: { data: {
...@@ -35,7 +36,8 @@ Page({ ...@@ -35,7 +36,8 @@ Page({
if (prize) { if (prize) {
this.setData({ this.setData({
prizeVisible: true, prizeVisible: true,
myPrize:prize myPrize:prize,
maskVisible:true,
}) })
...@@ -44,7 +46,8 @@ Page({ ...@@ -44,7 +46,8 @@ Page({
this.setData({ this.setData({
noprizeVisible: true, noprizeVisible: true,
openPrizeStatus: openPrizeStatus, openPrizeStatus: openPrizeStatus,
myPrize:prize myPrize:prize,
maskVisible:true
}) })
} }
} }
...@@ -67,6 +70,9 @@ Page({ ...@@ -67,6 +70,9 @@ Page({
this.getOrderList(); this.getOrderList();
this.getPrizeMenu(); this.getPrizeMenu();
}, },
onShareAppMessage() {
return SHARE_CONFIG;
},
onPrizeBtnClick() { onPrizeBtnClick() {
my.navigateTo({ my.navigateTo({
...@@ -177,14 +183,15 @@ Page({ ...@@ -177,14 +183,15 @@ Page({
left: 0, left: 0,
top: 40 * i + 'rpx', top: 40 * i + 'rpx',
position: 'absolute', position: 'absolute',
color: 'white' color: 'white',
}, },
prizeuser: { prizeuser: {
left: 200 + 'rpx', left: 180 + 'rpx',
top: 40 * i + 'rpx', top: 40 * i + 'rpx',
position: 'absolute', position: 'absolute',
color: 'white', color: 'white',
width: 100 + 'rpx' width: 120 + 'rpx',
textAlign:'center'
}, },
prizeimage: { prizeimage: {
left: 400 + 'rpx', left: 400 + 'rpx',
...@@ -216,7 +223,7 @@ Page({ ...@@ -216,7 +223,7 @@ Page({
API.getActivityBaseInfoById().then((res)=>{ API.getActivityBaseInfoById().then((res)=>{
if(res.success && res.data){ if(res.success && res.data){
let data = res.data; let data = res.data;
let list = res.list; let list = data.list;
let totalFloor = res.totalFloor; let totalFloor = res.totalFloor;
this.setData({ this.setData({
ruleData:res.data.rule, ruleData:res.data.rule,
......
...@@ -4,6 +4,7 @@ import resList from '../../resconfig/resList'; //import API from '../../api'; ...@@ -4,6 +4,7 @@ import resList from '../../resconfig/resList'; //import API from '../../api';
import API from '../../api'; import API from '../../api';
import isEnd from '/utils/isEnd'; import isEnd from '/utils/isEnd';
import OPEN_PRIZE_STATUS from '/utils/OPEN_PRIZE_STATUS'; import OPEN_PRIZE_STATUS from '/utils/OPEN_PRIZE_STATUS';
import { SHARE_CONFIG } from '/tbcc-sdk/lib/constants';
let isAuth = 0; let isAuth = 0;
const app = getApp(); const app = getApp();
const { tbcc } = app; const { tbcc } = app;
...@@ -30,6 +31,9 @@ Page({ ...@@ -30,6 +31,9 @@ Page({
this.getAuth(); this.getAuth();
console.info(`Page onLoad with query: ${JSON.stringify(query)}`); console.info(`Page onLoad with query: ${JSON.stringify(query)}`);
}, },
onShareAppMessage() {
return SHARE_CONFIG;
},
gotoVipPage() { gotoVipPage() {
console.log('isAuth', isAuth); console.log('isAuth', isAuth);
if (isAuth === 0) { if (isAuth === 0) {
......
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