Commit 652d96d8 authored by zhangjinzhou's avatar zhangjinzhou

代码暂存

parent c5ab0653
...@@ -45,7 +45,7 @@ Component({ ...@@ -45,7 +45,7 @@ Component({
let subtit = ""; let subtit = "";
if (btntype == 1) { if (btntype == 1) {
tit = "你获得了" + cardType + "碎片"; tit = "你获得了" + cardType + "碎片";
if(nearchashare&&nearchaprize.length>0){ if(nearchashare&&nearchaprize.length>0&&nearchashare<=3){
subtit = "再召唤"+nearchashare+"位好友就能获得"+nearchaprize; subtit = "再召唤"+nearchashare+"位好友就能获得"+nearchaprize;
} }
} else if (btntype == 2) { } else if (btntype == 2) {
......
This diff is collapsed.
...@@ -2,7 +2,7 @@ ...@@ -2,7 +2,7 @@
"success": true, "success": true,
"message":"", "message":"",
"data": { "data": {
"cardType": 1, "cardType": 2,
"uncommon": true "uncommon": true
} }
} }
\ No newline at end of file
...@@ -28,6 +28,6 @@ ...@@ -28,6 +28,6 @@
"times":30 "times":30
} }
], ],
"inviteCount": 30 "inviteCount": 17
} }
} }
\ No newline at end of file
...@@ -2,7 +2,7 @@ ...@@ -2,7 +2,7 @@
"success": true, "success": true,
"message":"网络异常", "message":"网络异常",
"data": { "data": {
"shoesName": "", "shoesName": "jijia",
"cardCountList": { "cardCountList": {
"1":99, "1":99,
"2":1, "2":1,
...@@ -14,7 +14,7 @@ ...@@ -14,7 +14,7 @@
"8":0, "8":0,
"9":0 "9":0
}, },
"collectedCount": 9, "collectedCount": 2,
"canTakeRankPrize":false, "canTakeRankPrize":false,
"shoesType": 1, "shoesType": 1,
"inviteResult": { "inviteResult": {
......
.shou_ye { .shou_ye {
top: 0rpx; /* top: 50%;
left: 0rpx; left: 50%; */
/* margin-top: -100rpx; */
/* margin-left: -375rpx; */
/* right: 0rpx; */
/* bottom: 0rpx; */
width: 750rpx; width: 750rpx;
height: 1624rpx; height: 1624rpx;
display: block; display: block;
...@@ -1228,6 +1232,7 @@ ...@@ -1228,6 +1232,7 @@
position: absolute; position: absolute;
font-size: 22rpx; font-size: 22rpx;
color: #ffffff; color: #ffffff;
letter-spacing: 1rpx;
transform-origin: 0rpx 0rpx 0rpx; transform-origin: 0rpx 0rpx 0rpx;
text-align: center; text-align: center;
} }
...@@ -1693,17 +1698,17 @@ ...@@ -1693,17 +1698,17 @@
} }
.shou_ye .botnode .homedi .hui_yuan_zhuan_qu { .shou_ye .botnode .homedi .hui_yuan_zhuan_qu {
width: 304rpx; width: 304rpx;
height: 266rpx; height: 192rpx;
opacity: 1; opacity: 1;
display: block; display: block;
left: 52rpx; left: 52rpx;
top: 446rpx; top: 450rpx;
position: absolute; position: absolute;
transform-origin: 0rpx 0rpx 0rpx; transform-origin: 0rpx 0rpx 0rpx;
} }
.shou_ye .botnode .homedi .shuang_shi_yi_zhuan_qu { .shou_ye .botnode .homedi .shuang_shi_yi_zhuan_qu {
width: 304rpx; width: 304rpx;
height: 266rpx; height: 192rpx;
opacity: 1; opacity: 1;
display: block; display: block;
left: 392rpx; left: 392rpx;
......
<view class="style1"> <view class="style1">
<view class="shou_ye" disable-scroll="{{canscroll}}"> <scroll-view class="shou_ye" scroll-y="{{true}}" scroll-top="{{100}}" disable-scroll="{{canscroll}}">
<image class="bg" src={{resList['05608aab-d250-45fe-9cd0-6c55b3a7b821'].url}} /> <image class="bg" src={{resList['05608aab-d250-45fe-9cd0-6c55b3a7b821'].url}} />
<view class="homescroll" /> <view class="homescroll" />
<view class="topnode"> <view class="topnode">
...@@ -197,7 +197,7 @@ ...@@ -197,7 +197,7 @@
<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={{resList['e9a0ad73-6fe7-40bd-98cc-9a985bc413e7'].url}} />
</view> </view>
</view> </view>
</view> </scroll-view>
</view> </view>
<dialog-modal a:if="{{showdia}}"></dialog-modal> <dialog-modal a:if="{{showdia}}"></dialog-modal>
<view class="page-game" disable-scroll="true"> <view class="page-game" disable-scroll="true">
......
...@@ -113,6 +113,11 @@ Page({ ...@@ -113,6 +113,11 @@ Page({
app.nickName = "张三"; app.nickName = "张三";
app.avatar = "//yun.duiba.com.cn/spark/assets/头像test.30f8cbe95c93400e90281b524e1ab7685b7ccb16.png"; app.avatar = "//yun.duiba.com.cn/spark/assets/头像test.30f8cbe95c93400e90281b524e1ab7685b7ccb16.png";
this.login(); this.login();
console.log("onload========>");
},
firstShow(e){
console.log("firstshow",Document);
}, },
onReady() { onReady() {
let main = this.spark_startEngine(); //main.addEventListener.... let main = this.spark_startEngine(); //main.addEventListener....
...@@ -377,7 +382,7 @@ Page({ ...@@ -377,7 +382,7 @@ Page({
if (nearchashare > 0) { if (nearchashare > 0) {
nearchatxt = "再召唤" + nearchashare + "好友必得" + nearchaprize; nearchatxt = "再召唤" + nearchashare + "好友必得" + nearchaprize;
} }
console.log("sharepropos", sharepropos); console.log("sharepropos55555555===>", sharepropos,nearchatxt,nearchashare);
this.setData({ this.setData({
inviteAwardList: list, inviteAwardList: list,
inviteCount: inviteCount, inviteCount: inviteCount,
...@@ -450,7 +455,8 @@ Page({ ...@@ -450,7 +455,8 @@ Page({
const { success, data } = firstprize; const { success, data } = firstprize;
if (success) { if (success) {
let { cardType } = data; let { cardType } = data;
let spimg = resList["shanhai2"].url; let cardname = this.data.shoesName;
let spimg = resList[cardname+""+cardType].url;
let uncommon = false; let uncommon = false;
let btntype = uncommon ? 2 : 1; let btntype = uncommon ? 2 : 1;
this.setData({ this.setData({
...@@ -666,8 +672,10 @@ Page({ ...@@ -666,8 +672,10 @@ Page({
let drawTimes = this.data.drawTimes; let drawTimes = this.data.drawTimes;
if (drawTimes < 1) {//无次数 if (drawTimes < 1) {//无次数
let infotit = "今日免费次数已用完"; let infotit = "今日免费次数已用完";
if (this.data.nearchashare > 0) { if (this.data.nearchashare > 0&&this.data.nearchashare<=3) {
infotit += "\n再召唤" + this.data.nearchashare + "好友就能获得" + this.data.nearchaprize; infotit += "\n再召唤" + this.data.nearchashare + "好友就能获得" + this.data.nearchaprize;
}else{//有个每次最多抽取次数
infotit += "\n请明日再来";
} }
this.setData({ this.setData({
infobtntype: 2, infobtntype: 2,
...@@ -677,22 +685,24 @@ Page({ ...@@ -677,22 +685,24 @@ Page({
this.openInfo(); this.openInfo();
return; return;
} }
// let docardata = await API.doCardDraw().catch(res => { let docardata = await API.doCardDraw().catch(res => {
// commonToast(res && res.message); commonToast(res && res.message);
// }) || {}; }) || {};
let docardata = { // let docardata = {
"success": true, // "success": true,
"message": "", // "message": "",
"data": { // "data": {
"cardType": 1, // "cardType": 1,
"uncommon": true // "uncommon": true
} // }
} // }
const { success, data } = docardata; const { success, data } = docardata;
console.log("抽卡结果", docardata); console.log("抽卡结果", docardata);
if (success) { if (success) {
const { cardType, uncommon } = data; const { cardType, uncommon } = data;
let spimg = resList["shanhai2"].url; let cardname = this.data.shoesName;
console.log(cardname,cardType);
let spimg = resList[cardname+""+cardType].url;
let btntype = uncommon ? 2 : 1; let btntype = uncommon ? 2 : 1;
this.setData({ this.setData({
cardType: cardType, cardType: cardType,
...@@ -724,6 +734,7 @@ Page({ ...@@ -724,6 +734,7 @@ Page({
*/ */
onShareSp() { onShareSp() {
console.log("分享碎片"); console.log("分享碎片");
this.shareAct();
}, },
/** /**
* 助力-会员直接加入游戏 * 助力-会员直接加入游戏
...@@ -861,7 +872,9 @@ Page({ ...@@ -861,7 +872,9 @@ Page({
if (success) { if (success) {
let { cardType, uncommon, rewardType, addDrawTimes } = data; let { cardType, uncommon, rewardType, addDrawTimes } = data;
if (cardType) {//给卡片 if (cardType) {//给卡片
let spimg = resList["shanhai2"].url; let cardname = this.data.shoesName;
let spimg = resList[cardname+""+cardType].url;
let btntype = uncommon ? 2 : 1; let btntype = uncommon ? 2 : 1;
this.setData({ this.setData({
cardType: cardType, cardType: cardType,
......
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