Przeglądaj źródła

bug修复

guessPrice
sui 5 lat temu
rodzic
commit
b9944d3f81
11 zmienionych plików z 122 dodań i 32 usunięć
  1. +2
    -2
      496_dongfengqichen/pages/agreement/agreement.wxss
  2. +1
    -0
      496_dongfengqichen/pages/component/service/index.wxss
  3. +28
    -17
      496_dongfengqichen/pages/everyday/everyday.js
  4. +11
    -0
      496_dongfengqichen/pages/everyday/everyday.wxml
  5. +44
    -0
      496_dongfengqichen/pages/everyday/everyday.wxss
  6. +2
    -1
      496_dongfengqichen/pages/luckyStar/luckyStar.js
  7. +4
    -4
      496_dongfengqichen/pages/luckyStar/luckyStar.wxml
  8. +1
    -1
      496_dongfengqichen/pages/myCenter/myCenter.wxml
  9. +3
    -3
      496_dongfengqichen/pages/myCenter/myCenter.wxss
  10. +15
    -2
      496_dongfengqichen/pages/poster/poster.js
  11. +11
    -2
      496_dongfengqichen/project.config.json

+ 2
- 2
496_dongfengqichen/pages/agreement/agreement.wxss Wyświetl plik

/* pages/agreement/agreement.wxss */ /* pages/agreement/agreement.wxss */
image{
.closeXieyi,.xieyi{
display: block; display: block;
} }
view{
.xieyiGroup{
-webkit-overflow-scrolling: touch; -webkit-overflow-scrolling: touch;
} }
.main{ .main{

+ 1
- 0
496_dongfengqichen/pages/component/service/index.wxss Wyświetl plik

width: 100%; width: 100%;
height: 100%; height: 100%;
background-color: rgba(000, 000, 000, 0.8); background-color: rgba(000, 000, 000, 0.8);
padding-bottom: 150rpx;
} }
.contentGroup{ .contentGroup{
position: absolute; position: absolute;

+ 28
- 17
496_dongfengqichen/pages/everyday/everyday.js Wyświetl plik

isAddress:false,//是否有地址 isAddress:false,//是否有地址
getReward:null, getReward:null,
tipWindow:0, tipWindow:0,
hiddenFriendFrame:false,
}, },
/** /**
* 关闭任务窗 * 关闭任务窗
app.wxRequest(app.globalData.urlRoot +"task/signToday",{},res=>{ app.wxRequest(app.globalData.urlRoot +"task/signToday",{},res=>{
if (res.code == 200) { if (res.code == 200) {
this.getShareId(); this.getShareId();
if (!this.data.shareId) {
this.setData({
maskShow: false
})
} else {
this.setData({
isSign: false,
isShare: true,
showClose: true
})
}
this.setData({
maskShow: false,
isSign: false,
isShare: false,
showClose: true
})
}else{ }else{
wx.showToast({ wx.showToast({
title: res.msg, title: res.msg,
}, },
loadFun: function () { loadFun: function () {
this.getTaskProgress(); this.getTaskProgress();
this.getSignInfo();
this.getAddress(); this.getAddress();
if (this.data.isFriendShare) { if (this.data.isFriendShare) {
this.useShareId(); this.useShareId();
}else{
this.getSignInfo();
} }
}, },
/** /**
}, },
useShareId: function (shareId) {//发起助力 useShareId: function (shareId) {//发起助力
app.wxRequest(app.globalData.urlRoot + "task/useShareId", { shareId: this.data.isFriendShare}, res => { app.wxRequest(app.globalData.urlRoot + "task/useShareId", { shareId: this.data.isFriendShare}, res => {
console.log(res);
this.setData({
maskShow:false
})
if(res.code==200){
this.setData({
hiddenFriendFrame: true,
useShareData: res.data,
maskShow: false
})
} else {
this.getSignInfo();
// wx.showToast({
// title: res.msg,
// icon:"none"
// })
}
}, this,"POST") }, this,"POST")
}, },
swiperChange(e) {//通过鼠标滑动改变swiper时 swiperChange(e) {//通过鼠标滑动改变swiper时
this.setData({ this.setData({
showRule: e.currentTarget.dataset.state showRule: e.currentTarget.dataset.state
}) })
},
hiddenFriendTip: function () {
this.getSignInfo();
this.setData({
hiddenFriendFrame:false
})
} }
}) })

+ 11
- 0
496_dongfengqichen/pages/everyday/everyday.wxml Wyświetl plik

<view class="startRegister" wx:if="{{tipWindow==2}}" bindtap="userRegister">立即注册</view> <view class="startRegister" wx:if="{{tipWindow==2}}" bindtap="userRegister">立即注册</view>
</view> </view>
</view> </view>
<view class="successPop" wx:if="{{hiddenFriendFrame}}">
<view class="friendTip">
<text class="closeBtn" style="right:-40rpx;top:-40rpx;" bindtap="hiddenFriendTip"></text>
<view class="friendTipTitle">恭喜您</view>
<view class="tipText">您已经成功为 {{useShareData.nickName}} 获得了</view>
<view class="tipText">一片{{useShareData.taskName}}碎片</view>
<view class="tipText">集齐4片即可获得一份</view>
<view class="tipText">启辰星购车红包</view>
<view class="joinBtn" bindtap="hiddenFriendTip">我也要玩</view>
</view>
</view>
<tabBar></tabBar> <tabBar></tabBar>

+ 44
- 0
496_dongfengqichen/pages/everyday/everyday.wxss Wyświetl plik

color:rgba(255,255,255,1); color:rgba(255,255,255,1);
line-height:50rpx; line-height:50rpx;
position: relative; position: relative;
}
.friendTip{
position: relative;
width:568rpx;
height:486rpx;
border-radius: 20rpx;
background-color: white;
display: flex;
flex-direction: column;
align-items: center;
}
.friendTipTitle{
width:568rpx;
height:78rpx;
line-height: 78rpx;
font-size:34rpx;
font-family:PingFang;
font-weight:bold;
color:rgba(255,255,255,1);
background-color: #355485;
border-top-left-radius: 20rpx;
border-top-right-radius: 20rpx;
text-align: center;
margin-bottom: 61rpx;
}
.tipText{
font-size:26rpx;
font-family:PingFang;
font-weight:500;
color:rgba(35,24,21,1);
line-height:46rpx;
}
.joinBtn{
margin-top: 53rpx;
width:347rpx;
height:63rpx;
background-color: #355485;
text-align: center;
font-size:30rpx;
font-family:PingFang;
font-weight:400;
color:rgba(255,255,255,1);
line-height: 63rpx;
border-radius: 20rpx;
} }

+ 2
- 1
496_dongfengqichen/pages/luckyStar/luckyStar.js Wyświetl plik

}, },
closeWindow:function(){//关闭中奖 closeWindow:function(){//关闭中奖
this.setData({ this.setData({
pizeTip:0
pizeTip:0,
ruleShow:true
}) })
}, },
getGameAwardList: function () {//获取游戏中奖数据 getGameAwardList: function () {//获取游戏中奖数据

+ 4
- 4
496_dongfengqichen/pages/luckyStar/luckyStar.wxml Wyświetl plik

<view class="prizeTipLine"></view> <view class="prizeTipLine"></view>
</view> </view>
<view class="tipContentGroup"> <view class="tipContentGroup">
<scroll-view class="scrollSty" bindscrolltolower="getMore" scroll-left="{{scrollNum}}" scroll-x="{{true}}"><view class="tipContent" style="width: 672rpx;"></view><view class="tipContent" wx:for="{{gameAwardList}}" wx:key="index">{{"恭喜"+item.nickName+"获得"+item.awardName}}</view></scroll-view>
<!-- <view class="scrollMask"></view> -->
<scroll-view class="scrollSty" bindscrolltolower="getMore" scroll-left="{{scrollNum}}" scroll-x="{{true}}"><view class="tipContent" style="width: 750rpx;"></view><view class="tipContent" wx:for="{{gameAwardList}}" wx:key="index">{{"恭喜"+(item.nickName?item.nickName:'***')+"获得"+(item.awardName?item.awardName:'***')}}</view><view class="tipContent" style="width: 750rpx;"></view></scroll-view>
<view class="scrollMask"></view>
</view> </view>
<view class="prizeLookGroup"> <view class="prizeLookGroup">
<view class="prizeLook" bindtap="prizeLook">活动奖品</view> <view class="prizeLook" bindtap="prizeLook">活动奖品</view>
<!-- <view class="prizeName">头等舱机票一张</view> --> <!-- <view class="prizeName">头等舱机票一张</view> -->
<image class="prizePic" src="{{endGameData.awardPicUrl}}" mode="aspectFit"></image> <image class="prizePic" src="{{endGameData.awardPicUrl}}" mode="aspectFit"></image>
<view class="prizeName">{{endGameData.awardName}}</view> <view class="prizeName">{{endGameData.awardName}}</view>
<view class="startRegister" wx:if="{{(isAddress || endGameData.needAddress==0)}}" bindtap="receive">立即领取</view>
<view class="startRegister" wx:if="{{(!isAddress && endGameData.needAddress!=0)}}" bindtap="userRegister">立即注册</view>
<!-- <view class="startRegister" wx:if="{{(isAddress || endGameData.needAddress==0)}}" bindtap="receive">立即领取</view> -->
<view class="startRegister" wx:if="{{(!isAddress && endGameData.needAddress!=0)}}" bindtap="userRegister">立即领取</view>
</view> </view>
<view class="successGroup" wx:if="{{pizeTip==2 || pizeTip==3}}"> <view class="successGroup" wx:if="{{pizeTip==2 || pizeTip==3}}">
<image class="gameRuleClose" bindtap="closeWindow" style="top:-31rpx;right:-29rpx;" src="{{imgUrl+'/images/gameRuleClose.png'}}"></image> <image class="gameRuleClose" bindtap="closeWindow" style="top:-31rpx;right:-29rpx;" src="{{imgUrl+'/images/gameRuleClose.png'}}"></image>

+ 1
- 1
496_dongfengqichen/pages/myCenter/myCenter.wxml Wyświetl plik

<image bindtap="lookDesc" data-value="{{false}}" class="closeDescIcon" src="{{imgUrl+'/images/closeDescIcon.png'}}"></image> <image bindtap="lookDesc" data-value="{{false}}" class="closeDescIcon" src="{{imgUrl+'/images/closeDescIcon.png'}}"></image>
</view> </view>
</view> </view>
<view class="prizeDesc" catchtouchmove="ture" style="background-color:'rgba(000,000,000,0.8)';" wx:if="{{ruleShow}}">
<view class="prizeDesc" style="background-color:'rgba(000,000,000,0.8)';" wx:if="{{ruleShow}}">
<view class="ruleImgGroup"> <view class="ruleImgGroup">
<view class="ruleImgGroup" style="overflow: auto;"> <view class="ruleImgGroup" style="overflow: auto;">
<image class="ruleImg" src="{{imgUrl+'/star/xingRule.png?v=002'}}"></image> <image class="ruleImg" src="{{imgUrl+'/star/xingRule.png?v=002'}}"></image>

+ 3
- 3
496_dongfengqichen/pages/myCenter/myCenter.wxss Wyświetl plik

-webkit-overflow-scrolling: touch; -webkit-overflow-scrolling: touch;
} }
.main{ .main{
height: calc(100vh - 150rpx);
/* height: calc(100vh - 150rpx); */
padding-bottom: 150rpx;
overflow: auto; overflow: auto;
} }
.msgGroup{ .msgGroup{
width:325rpx; width:325rpx;
height:15rpx; height:15rpx;
box-sizing: border-box; box-sizing: border-box;
border: 1rpx solid #CBC8CB;
border: 2rpx solid #CBC8CB;
border-radius: 20rpx; border-radius: 20rpx;
overflow: hidden; overflow: hidden;
} }
display: flex; display: flex;
align-items: center; align-items: center;
justify-content: center; justify-content: center;
padding-bottom: 150rpx;
box-sizing: border-box; box-sizing: border-box;
} }
.prizeImgGroup{ .prizeImgGroup{

+ 15
- 2
496_dongfengqichen/pages/poster/poster.js Wyświetl plik

} }
}, },
getCertificationCount: function () {//获取星探计划人数 getCertificationCount: function () {//获取星探计划人数
app.wxRequest(app.globalData.urlRoot +"userInfo/getCertificationCount",{},res=>{
app.wxRequest(app.globalData.urlRoot +"userInfo/getUserInfo",{},res=>{
this.createQrcode(); this.createQrcode();
if(res.code==200){ if(res.code==200){
this.data.rankNum = res.data.total.toString().split("");
if (res.data.certificationNum){
if (res.data.certificationNum<10){
this.data.rankNum = ("000" + res.data.certificationNum.toString()).split("");
} else if (res.data.certificationNum < 100) {
this.data.rankNum = ("00" + res.data.certificationNum.toString()).split("");
} else if (res.data.certificationNum < 1000) {
this.data.rankNum = ("0" + res.data.certificationNum.toString()).split("");
} else {
this.data.rankNum = res.data.certificationNum.toString().split("");
}
}else{
this.data.rankNum = "0000".split("");
}
console.log(this.data.rankNum);
this.setData({ this.setData({
rankNum: this.data.rankNum rankNum: this.data.rankNum
}) })

+ 11
- 2
496_dongfengqichen/project.config.json Wyświetl plik

"current": -1, "current": -1,
"list": [] "list": []
}, },
"plugin": {
"current": -1,
"list": []
},
"game": { "game": {
"currentL": -1, "currentL": -1,
"list": [] "list": []
}, },
"gamePlugin": {
"current": -1,
"list": []
},
"miniprogram": { "miniprogram": {
"current": -1, "current": -1,
"list": [ "list": [
"query": "" "query": ""
}, },
{ {
"id": -1,
"id": 6,
"name": "集碎片", "name": "集碎片",
"pathName": "pages/everyday/everyday", "pathName": "pages/everyday/everyday",
"query": ""
"query": "",
"scene": null
}, },
{ {
"id": -1, "id": -1,

Ładowanie…
Anuluj
Zapisz