| firstData:null | firstData:null | ||||
| }, | }, | ||||
| getSecondGuessInfoV2:null,//第二轮价格竞猜结果 | getSecondGuessInfoV2:null,//第二轮价格竞猜结果 | ||||
| phonebolb:false, | |||||
| }, | }, | ||||
| // 获取openId | // 获取openId | ||||
| getOpenid: function (code) { | getOpenid: function (code) { | ||||
| }, | }, | ||||
| sharePack: function () {//分享 | sharePack: function () {//分享 | ||||
| return { | return { | ||||
| title: '', | |||||
| imageUrl: "", | |||||
| title: '发现宝藏小程序!玩游戏赢好礼,来一起探寻更多惊喜吧!', | |||||
| imageUrl: this.globalData.urlStatic+"/newImages6/25.png", | |||||
| path: "/pages/index/index" | path: "/pages/index/index" | ||||
| } | } | ||||
| }, | }, | ||||
| },this) | },this) | ||||
| }, | }, | ||||
| getBuyState: function () {//查询是否已下订 | getBuyState: function () {//查询是否已下订 | ||||
| this.wxRequest(this.globalData.urlRoot + "wxPay/getBuyState", {}, res => { | |||||
| this.wxRequest(this.globalData.urlRoot + "wxPay/getBuyState", {source:2}, res => { | |||||
| if (res.code == 200) { | if (res.code == 200) { | ||||
| if (res.data) { | if (res.data) { | ||||
| res.data.cdate = res.data.cdate ? res.data.cdate : ""; | res.data.cdate = res.data.cdate ? res.data.cdate : ""; |
| <!--pages/component/service/index.wxml--> | <!--pages/component/service/index.wxml--> | ||||
| <view> | <view> | ||||
| <image class="serviceIcon" bindtap="maskShow" src="{{imgUrl+'/newIcon/3.png'}}"></image> | |||||
| <image class="serviceIcon" wx:if="{{nowPage!=1}}" bindtap="openYuyue" style="top:376rpx;" src="{{imgUrl+'/newIcon/4.png'}}"></image> | |||||
| <image class="serviceIcon" wx:if="{{!buyState && nowPage==1}}" bindtap="placingControl" style="top:376rpx;" src="{{imgUrl+'/newImages3/41.png'}}"></image> | |||||
| <image class="serviceIcon" style="top:376rpx;" bindtap="maskShow" src="{{imgUrl+'/newIcon/3.png'}}"></image> | |||||
| <image class="serviceIcon" wx:if="{{nowPage!=1}}" bindtap="openYuyue" src="{{imgUrl+'/newIcon/4.png'}}"></image> | |||||
| <image class="serviceIcon" wx:if="{{!buyState && nowPage==1}}" bindtap="placingControl" src="{{imgUrl+'/newImages6/28.png'}}"></image> | |||||
| <view wx:if="{{maskState}}" class="maskGroup" catchtouchmove="ture"> | <view wx:if="{{maskState}}" class="maskGroup" catchtouchmove="ture"> | ||||
| <view class="contentGroup"> | <view class="contentGroup"> | ||||
| <image style="width:100%;height:100%;" src="{{imgUrl+'/images/serviceBg.png'}}"></image> | <image style="width:100%;height:100%;" src="{{imgUrl+'/images/serviceBg.png'}}"></image> |
| * 用户点击右上角分享 | * 用户点击右上角分享 | ||||
| */ | */ | ||||
| onShareAppMessage: function () { | onShareAppMessage: function () { | ||||
| return app.sharePack(); | |||||
| }, | }, | ||||
| chooseType:function(e){ | chooseType:function(e){ | ||||
| if (this.data.paramesSwitchNum == e.currentTarget.dataset.type) { | if (this.data.paramesSwitchNum == e.currentTarget.dataset.type) { |
| * 用户点击右上角分享 | * 用户点击右上角分享 | ||||
| */ | */ | ||||
| onShareAppMessage: function () { | onShareAppMessage: function () { | ||||
| return app.sharePack(); | |||||
| }, | }, | ||||
| cutPage:function(){ | cutPage:function(){ | ||||
| if (app.globalData.entered){ | if (app.globalData.entered){ |
| * 用户点击右上角分享 | * 用户点击右上角分享 | ||||
| */ | */ | ||||
| onShareAppMessage: function () { | onShareAppMessage: function () { | ||||
| return { | |||||
| title: '召唤预言帝!快来和我一起猜启辰星售价,赢升舱大奖!', | |||||
| imageUrl:this.data.imgUrl+'/newImages5/56.jpg', | |||||
| path: "/pages/guess/guess" | |||||
| } | |||||
| return app.sharePack(); | |||||
| }, | }, | ||||
| enterLucky:function(){//每日抽奖 | enterLucky:function(){//每日抽奖 | ||||
| wx.navigateTo({ | wx.navigateTo({ |
| * 用户点击右上角分享 | * 用户点击右上角分享 | ||||
| */ | */ | ||||
| onShareAppMessage: function () { | onShareAppMessage: function () { | ||||
| return { | |||||
| title: '召唤预言帝!快来和我一起猜启辰星售价,赢升舱大奖!', | |||||
| imageUrl: this.data.imgUrl + "/versions/guessShareImg.jpg", | |||||
| path: "/pages/guess/guess" | |||||
| } | |||||
| return app.sharePack(); | |||||
| }, | }, | ||||
| ruleControl:function(){//规则显示控制 | ruleControl:function(){//规则显示控制 | ||||
| this.setData({ | this.setData({ |
| * 用户点击右上角分享 | * 用户点击右上角分享 | ||||
| */ | */ | ||||
| onShareAppMessage: function () { | onShareAppMessage: function () { | ||||
| return { | |||||
| title: '召唤预言帝!快来和我一起猜启辰星售价,赢升舱大奖!', | |||||
| imageUrl: this.data.imgUrl+'/newImages5/56.jpg', | |||||
| path: "/pages/guess/guess" | |||||
| } | |||||
| return app.sharePack(); | |||||
| }, | }, | ||||
| enterLucky:function(){//每日抽奖 | enterLucky:function(){//每日抽奖 | ||||
| wx.navigateTo({ | wx.navigateTo({ |
| * 用户点击右上角分享 | * 用户点击右上角分享 | ||||
| */ | */ | ||||
| onShareAppMessage: function () { | onShareAppMessage: function () { | ||||
| return { | |||||
| title: '召唤预言帝!快来和我一起猜启辰星售价,赢升舱大奖!', | |||||
| imageUrl: this.data.imgUrl+'/newImages5/56.jpg', | |||||
| path: "/pages/guess/guess" | |||||
| } | |||||
| return app.sharePack(); | |||||
| }, | }, | ||||
| enterLucky:function(){//每日抽奖 | enterLucky:function(){//每日抽奖 | ||||
| wx.navigateTo({ | wx.navigateTo({ |
| * 用户点击右上角分享 | * 用户点击右上角分享 | ||||
| */ | */ | ||||
| onShareAppMessage: function () { | onShareAppMessage: function () { | ||||
| return { | |||||
| title: '召唤预言帝!快来和我一起猜启辰星售价,赢升舱大奖!', | |||||
| imageUrl: this.data.imgUrl+'/newImages5/56.jpg', | |||||
| path: "/pages/guess/guess" | |||||
| } | |||||
| return app.sharePack(); | |||||
| }, | }, | ||||
| ruleControl:function(){//规则显示控制 | ruleControl:function(){//规则显示控制 | ||||
| this.setData({ | this.setData({ | ||||
| } | } | ||||
| }, | }, | ||||
| goLuckyStar:function(){//领取上市好礼 | goLuckyStar:function(){//领取上市好礼 | ||||
| if(app.globalData.getBuyState.success){ | |||||
| wx.navigateTo({ | |||||
| url: '/pages/luckyStar/luckyStar', | |||||
| }) | |||||
| }else{ | |||||
| this.placingControl(); | |||||
| } | |||||
| wx.reLaunch({ | |||||
| url: '/pages/index/index' | |||||
| }) | |||||
| // if(app.globalData.getBuyState.success){ | |||||
| // wx.navigateTo({ | |||||
| // url: '/pages/luckyStar/luckyStar', | |||||
| // }) | |||||
| // }else{ | |||||
| // this.placingControl(); | |||||
| // } | |||||
| }, | }, | ||||
| placingControl: function () { | placingControl: function () { | ||||
| if (app.globalData.getBuyState){ | if (app.globalData.getBuyState){ |
| <view class="contentFrame"> | <view class="contentFrame"> | ||||
| <view class="newImages2-76"> | <view class="newImages2-76"> | ||||
| <!-- <image style="width:750rpx;height:10368rpx;" src="{{imgUrl+'/newImages4/16.png'}}"></image> --> | <!-- <image style="width:750rpx;height:10368rpx;" src="{{imgUrl+'/newImages4/16.png'}}"></image> --> | ||||
| <image style="width:750rpx;height:1600rpx;" src="{{imgUrl+'/newImages5/images/newImg_01.png?v=002'}}"></image> | |||||
| <image style="width:750rpx;height:1600rpx;" src="{{imgUrl+'/newImages5/images/newImg_02.png'}}"></image> | |||||
| <image style="width:750rpx;height:1600rpx;" src="{{imgUrl+'/newImages5/images/newImg_03.png'}}"></image> | |||||
| <image style="width:750rpx;height:1600rpx;" src="{{imgUrl+'/newImages5/images/newImg_04.png'}}"></image> | |||||
| <image style="width:750rpx;height:1600rpx;" src="{{imgUrl+'/newImages5/images/newImg_05.png'}}"></image> | |||||
| <image style="width:750rpx;height:1600rpx;" src="{{imgUrl+'/newImages5/images/newImg_06.png'}}"></image> | |||||
| <image style="width:750rpx;height:768rpx;" src="{{imgUrl+'/newImages5/images/newImg_07.png'}}"></image> | |||||
| <image style="width:750rpx;height:1600rpx;" src="{{imgUrl+'/newImages6/images/newImg_01.png'}}"></image> | |||||
| <image style="width:750rpx;height:1600rpx;" src="{{imgUrl+'/newImages6/images/newImg_02.png?v=002'}}"></image> | |||||
| <image style="width:750rpx;height:1600rpx;" src="{{imgUrl+'/newImages6/images/newImg_03.png'}}"></image> | |||||
| <image style="width:750rpx;height:1600rpx;" src="{{imgUrl+'/newImages6/images/newImg_04.png'}}"></image> | |||||
| <image style="width:750rpx;height:1600rpx;" src="{{imgUrl+'/newImages6/images/newImg_05.png'}}"></image> | |||||
| <image style="width:750rpx;height:1600rpx;" src="{{imgUrl+'/newImages6/images/newImg_06.png'}}"></image> | |||||
| <image style="width:750rpx;height:768rpx;" src="{{imgUrl+'/newImages6/images/newImg_07.png'}}"></image> | |||||
| </view> | </view> | ||||
| <view class="videoGroup" bindtap="playVideo"> | <view class="videoGroup" bindtap="playVideo"> | ||||
| <image class="newImages2-108" animation="{{playBtnDeg}}" src="{{imgUrl+'/newImages3/32.png'}}"></image> | <image class="newImages2-108" animation="{{playBtnDeg}}" src="{{imgUrl+'/newImages3/32.png'}}"></image> |
| }) | }) | ||||
| }, | }, | ||||
| getBuyState: function () {//查询是否已下订 | getBuyState: function () {//查询是否已下订 | ||||
| app.wxRequest(app.globalData.urlRoot + "wxPay/getBuyState", {}, res => { | |||||
| app.wxRequest(app.globalData.urlRoot + "wxPay/getBuyState", {source:2}, res => { | |||||
| if (res.code == 200) { | if (res.code == 200) { | ||||
| if (res.data) { | if (res.data) { | ||||
| this.setData({ | this.setData({ |
| <image class="gameRuleIcon" src="{{imgUrl+'/newImages/47.png'}}"></image> | <image class="gameRuleIcon" src="{{imgUrl+'/newImages/47.png'}}"></image> | ||||
| <image class="gameRuleClose" wx:if="{{ruleCloseShow}}" bindtap="closeRule" src="{{imgUrl+'/star/closebtn.png'}}"></image> | <image class="gameRuleClose" wx:if="{{ruleCloseShow}}" bindtap="closeRule" src="{{imgUrl+'/star/closebtn.png'}}"></image> | ||||
| <view class="gameRuleGroup"> | <view class="gameRuleGroup"> | ||||
| <view style="width: 452rpx;height: 1661rpx;"> | |||||
| <image class="newImages48" style="width: 100%;height: 100%;" src="{{imgUrl+'/newImages5/86.png'}}"></image> | |||||
| <view style="width: 464rpx;height: 1660rpx;"> | |||||
| <image class="newImages48" style="width: 100%;height: 100%;" src="{{imgUrl+'/newImages6/36.png'}}"></image> | |||||
| </view> | </view> | ||||
| <view class="gameStrat" bindtap="closeRule"> | <view class="gameStrat" bindtap="closeRule"> | ||||
| <image style="width:100%;height:100%;" src="{{imgUrl+'/btns/gameStart.png'}}"></image> | <image style="width:100%;height:100%;" src="{{imgUrl+'/btns/gameStart.png'}}"></image> | ||||
| </view> | </view> | ||||
| </view> | </view> | ||||
| <view class="successGroup" wx:if="{{pizeTip==2}}"> | <view class="successGroup" wx:if="{{pizeTip==2}}"> | ||||
| <image class="luckyPizeType" src="{{imgUrl+'/images/luckyPizeType2.png?v=002'}}"></image> | |||||
| <image class="luckyPizeType" style="width:487rpx;height:472rpx;" src="{{imgUrl+'/newImages6/38.png'}}"></image> | |||||
| <image class="gameRuleClose" bindtap="closeWindow" style="top:-5rpx;right:-5rpx;" src="{{imgUrl+'/star/closebtn.png'}}"></image> | <image class="gameRuleClose" bindtap="closeWindow" style="top:-5rpx;right:-5rpx;" src="{{imgUrl+'/star/closebtn.png'}}"></image> | ||||
| <view class="btnsGroup" style="justify-content:{{buyState && certificationInfo?'center':'space-between'}}"> | <view class="btnsGroup" style="justify-content:{{buyState && certificationInfo?'center':'space-between'}}"> | ||||
| <image class="luckyBtns" bindtap="enterIndex" wx:if="{{!buyState}}" src="{{imgUrl+'/btns/luckyBtns1.png'}}"></image> | |||||
| <image class="luckyBtns" bindtap="enterIndex" wx:if="{{!buyState}}" src="{{imgUrl+'/newImages6/37.png'}}"></image> | |||||
| <view class="startRegister" wx:if="{{buyState || certificationInfo}}"> | <view class="startRegister" wx:if="{{buyState || certificationInfo}}"> | ||||
| <image style="width:100%;height:100%;" src="{{imgUrl+'/images/luckyPizeTip2.png'}}"></image> | <image style="width:100%;height:100%;" src="{{imgUrl+'/images/luckyPizeTip2.png'}}"></image> | ||||
| <button open-type="share" class="shareBtn" style="width:100%;height:100%;margin:0;padding:0;min-height:0;"></button> | <button open-type="share" class="shareBtn" style="width:100%;height:100%;margin:0;padding:0;min-height:0;"></button> | ||||
| </view> | </view> | ||||
| <view class="downTimeGroup" wx:if="{{!isChanceShow}}"> | <view class="downTimeGroup" wx:if="{{!isChanceShow}}"> | ||||
| <view class="chanceGroup"> | <view class="chanceGroup"> | ||||
| <image class="newImages44" src="{{imgUrl+'/newImages3/36.png'}}"></image> | |||||
| <image class="newImages44" src="{{imgUrl+'/newImages6/39.png'}}"></image> | |||||
| <image class="newImages45" bindtap="chanceShowControl" src="{{imgUrl+'/newImages/45.png'}}"></image> | <image class="newImages45" bindtap="chanceShowControl" src="{{imgUrl+'/newImages/45.png'}}"></image> | ||||
| <image class="gameRuleClose" bindtap="chanceShowControl" src="{{imgUrl+'/star/closebtn.png'}}"></image> | <image class="gameRuleClose" bindtap="chanceShowControl" src="{{imgUrl+'/star/closebtn.png'}}"></image> | ||||
| </view> | </view> |
| .btnsGroup{ | .btnsGroup{ | ||||
| height: 110rpx; | height: 110rpx; | ||||
| position: absolute; | position: absolute; | ||||
| top: 301rpx; | |||||
| top: 351rpx; | |||||
| display: flex; | display: flex; | ||||
| align-items: center; | align-items: center; | ||||
| justify-content: space-between; | justify-content: space-between; | ||||
| z-index: 9; | z-index: 9; | ||||
| } | } | ||||
| .luckyBtns{ | .luckyBtns{ | ||||
| width: 296rpx; | |||||
| width: 305rpx; | |||||
| height: 50rpx; | height: 50rpx; | ||||
| } | } | ||||
| .luckyBtnsGap{ | .luckyBtnsGap{ |
| }) | }) | ||||
| } else { | } else { | ||||
| wx.redirectTo({ | wx.redirectTo({ | ||||
| url: '../scout/register/register' | |||||
| url: '/pages/supplement/supplement' | |||||
| }) | }) | ||||
| // wx.redirectTo({ | |||||
| // url: '../scout/register/register' | |||||
| // }) | |||||
| } | } | ||||
| }else{ | }else{ | ||||
| wx.showToast({ | wx.showToast({ |
| * 用户点击右上角分享 | * 用户点击右上角分享 | ||||
| */ | */ | ||||
| onShareAppMessage: function () { | onShareAppMessage: function () { | ||||
| return app.sharePack(); | |||||
| } | } | ||||
| }) | }) |
| }, | }, | ||||
| parames3:{ | parames3:{ | ||||
| page:1, | page:1, | ||||
| count:5 | |||||
| count:20 | |||||
| }, | }, | ||||
| noData:false, | noData:false, | ||||
| noData2:false, | noData2:false, | ||||
| scoutRule:false, | scoutRule:false, | ||||
| vipDetailShow:false, | vipDetailShow:false, | ||||
| machineShow:false, | machineShow:false, | ||||
| upgradeShow:false, | |||||
| starMoveShow:false, | |||||
| lookPrizeDetail:false, | lookPrizeDetail:false, | ||||
| lookIndex:null, | lookIndex:null, | ||||
| buyStateCouponCode:"", | buyStateCouponCode:"", | ||||
| this.machineHide(); | this.machineHide(); | ||||
| }else if(this.data.couponList[index].couponId=="177275"){ | }else if(this.data.couponList[index].couponId=="177275"){ | ||||
| this.upgradeHide(); | this.upgradeHide(); | ||||
| }else if(this.data.couponList[index].couponId=="179478"){ | |||||
| this.starMoveHide(); | |||||
| } | } | ||||
| }, | }, | ||||
| vipDetailHide:function(){ | vipDetailHide:function(){ | ||||
| upgradeShow:!this.data.upgradeShow | upgradeShow:!this.data.upgradeShow | ||||
| }) | }) | ||||
| }, | }, | ||||
| starMoveHide:function(){ | |||||
| this.setData({ | |||||
| starMoveShow:!this.data.starMoveShow | |||||
| }) | |||||
| }, | |||||
| cardCodeCopy:function(){ | cardCodeCopy:function(){ | ||||
| this.contentCopy(this.data.couponListCode); | this.contentCopy(this.data.couponListCode); | ||||
| }, | }, |
| </view> | </view> | ||||
| </scroll-view> | </scroll-view> | ||||
| </view> | </view> | ||||
| <scroll-view class="placingOrderGroup" wx:if="{{selectNow==4}}" scroll-y bindscrolltolower="scrolltolower3"> | |||||
| <view class="orderDescGroup" wx:if="{{!couponList.length && !couponListState}}"> | |||||
| <image class="orderDesc" src="{{imgUrl+'/newImages5/59.png'}}"></image> | |||||
| <image class="indexOrderIcon" bindtap="placingControl" src="{{imgUrl+'/images/indexOrderIcon.png'}}"></image> | |||||
| </view> | |||||
| <view class="placingOrderGroupList" wx:if="{{couponList.length}}"> | |||||
| <view class="orderDescGroup" wx:if="{{selectNow==4 && !couponList.length && !couponListState}}"> | |||||
| <image class="orderDesc" src="{{imgUrl+'/newImages6/34.png'}}"></image> | |||||
| <image class="indexOrderIcon" bindtap="placingControl" src="{{imgUrl+'/images/indexOrderIcon.png'}}"></image> | |||||
| </view> | |||||
| <scroll-view class="placingOrderGroup" wx:if="{{selectNow==4 && couponList.length}}" scroll-y bindscrolltolower="scrolltolower3"> | |||||
| <view class="placingOrderGroupList"> | |||||
| <view wx:for="{{couponList}}" wx:key="index"> | <view wx:for="{{couponList}}" wx:key="index"> | ||||
| <view class="placingOrder" wx:if="{{item.couponId=='175978'}}"> | <view class="placingOrder" wx:if="{{item.couponId=='175978'}}"> | ||||
| <view style="display:flex;align-items:center;"> | <view style="display:flex;align-items:center;"> | ||||
| </view> | </view> | ||||
| <image class="orderCard" data-index="{{index}}" bindtap="vipDetailControl" src="{{imgUrl+'/newImages3/48.png'}}"></image> | <image class="orderCard" data-index="{{index}}" bindtap="vipDetailControl" src="{{imgUrl+'/newImages3/48.png'}}"></image> | ||||
| </view> | </view> | ||||
| <view class="placingOrder" wx:if="{{item.couponId=='179478'}}"> | |||||
| <view style="display:flex;align-items:center;"> | |||||
| <image class="orderHead" src="{{imgUrl+'/newImages6/31.png'}}" mode="aspectFit"></image> | |||||
| <view style="margin-left:15rpx;margin-right:101rpx;"> | |||||
| <view class="cardTitle">启辰星星动豪礼卡</view> | |||||
| <view class="cardCtime">{{item.cdate}}</view> | |||||
| </view> | |||||
| </view> | |||||
| <image class="orderCard" data-index="{{index}}" bindtap="vipDetailControl" src="{{imgUrl+'/newImages3/48.png'}}"></image> | |||||
| </view> | |||||
| </view> | </view> | ||||
| </view> | </view> | ||||
| </scroll-view> | </scroll-view> | ||||
| </view> | </view> | ||||
| <view class="cardCode" wx:if="{{couponListCode}}" style="left:168rpx;top:480rpx;font-size:20rpx;color:white;">{{couponListCode}}<view bindtap="cardCodeCopy" class="cardCodeCopy2">复制</view></view> | <view class="cardCode" wx:if="{{couponListCode}}" style="left:168rpx;top:480rpx;font-size:20rpx;color:white;">{{couponListCode}}<view bindtap="cardCodeCopy" class="cardCodeCopy2">复制</view></view> | ||||
| </view> | </view> | ||||
| <view class="prizeDesc" style="background-color:white;display:block;overflow:auto;" wx:if="{{starMoveShow}}"> | |||||
| <view class="titleText">查看详情</view> | |||||
| <view class="lineSty"></view> | |||||
| <image class="closeXieyi" bindtap="starMoveHide" src="{{imgUrl+'/images/closeXieyi.png'}}"></image> | |||||
| <view style="position:relative;"> | |||||
| <image style="width:750rpx;height:2190rpx;" src="{{imgUrl+'/newImages6/35.png'}}"></image> | |||||
| <image class="newImages3-45" bindtap="starMoveHide" src="{{imgUrl+'/newImages3/45.png'}}"></image> | |||||
| </view> | |||||
| <view class="cardCode" wx:if="{{couponListCode}}">{{couponListCode}}<view bindtap="cardCodeCopy" class="cardCodeCopy">复制</view></view> | |||||
| </view> | |||||
| </view> | </view> | ||||
| <agreement bindmyevent="agreementControl" wx:if="{{agreement}}"></agreement> | <agreement bindmyevent="agreementControl" wx:if="{{agreement}}"></agreement> | ||||
| <userMsg bindaddress="addressControl" wx:if="{{addressShow}}"></userMsg> | <userMsg bindaddress="addressControl" wx:if="{{addressShow}}"></userMsg> |
| padding-bottom: 64rpx; | padding-bottom: 64rpx; | ||||
| } | } | ||||
| .orderDesc{ | .orderDesc{ | ||||
| width: 634rpx; | |||||
| height: 1193rpx; | |||||
| width: 673rpx; | |||||
| height: 1202rpx; | |||||
| margin-bottom: 81rpx; | margin-bottom: 81rpx; | ||||
| } | } | ||||
| /* .ranksList{ | /* .ranksList{ |
| * 用户点击右上角分享 | * 用户点击右上角分享 | ||||
| */ | */ | ||||
| onShareAppMessage: function () { | onShareAppMessage: function () { | ||||
| return app.sharePack(); | |||||
| }, | }, | ||||
| enterLucky:function(){//每日抽奖 | enterLucky:function(){//每日抽奖 | ||||
| wx.navigateTo({ | wx.navigateTo({ |
| agent_code: "",//经销商编码 | agent_code: "",//经销商编码 | ||||
| agentDetail: "",//经销商详细信息 | agentDetail: "",//经销商详细信息 | ||||
| parentOpenid: app.globalData.parentOpenid,//好友openid | parentOpenid: app.globalData.parentOpenid,//好友openid | ||||
| scene: app.globalData.sceneSource | |||||
| scene: app.globalData.sceneSource, | |||||
| source:2, | |||||
| }, | }, | ||||
| getBuyState: false, | getBuyState: false, | ||||
| mobileType: 2 | mobileType: 2 | ||||
| }, this, "POST") | }, this, "POST") | ||||
| }, | }, | ||||
| paySuccess: function (e) {//支付成功 | paySuccess: function (e) {//支付成功 | ||||
| app.wxRequest(app.globalData.urlRoot + "wxPay/paySuccess", { trade_id:e},res=>{ | |||||
| app.wxRequest(app.globalData.urlRoot + "wxPay/paySuccess", { source:2,trade_id:e},res=>{ | |||||
| if(res.code==200){ | if(res.code==200){ | ||||
| // wx.showToast({ | // wx.showToast({ | ||||
| // title: '下订成功', | // title: '下订成功', |
| <view class="receiveFrame" wx:if="{{getBuyState}}"> | <view class="receiveFrame" wx:if="{{getBuyState}}"> | ||||
| <view class="receiveGroup"> | <view class="receiveGroup"> | ||||
| <image class="newImages12" bindtap="closePage" src="{{imgUrl+'/newImages/12.png'}}"></image> | <image class="newImages12" bindtap="closePage" src="{{imgUrl+'/newImages/12.png'}}"></image> | ||||
| <image class="newImages2-1" src="{{imgUrl+'/newImages3/55.png'}}"></image> | |||||
| <image class="newImages2-1" src="{{imgUrl+'/newImages6/32.png'}}"></image> | |||||
| <image class="newImages2-2" bindtap="enterMycenter" src="{{imgUrl+'/newImages3/3.png'}}"></image> | <image class="newImages2-2" bindtap="enterMycenter" src="{{imgUrl+'/newImages3/3.png'}}"></image> | ||||
| <image class="newImages2-3" bindtap="enterMycenter" src="{{imgUrl+'/newImages2/3.png'}}"></image> | <image class="newImages2-3" bindtap="enterMycenter" src="{{imgUrl+'/newImages2/3.png'}}"></image> | ||||
| </view> | </view> | ||||
| </view> | </view> | ||||
| <view class="tipFrame" wx:if="{{tipShow}}"> | |||||
| <view class="tipFrame" wx:if="{{!tipShow}}"> | |||||
| <view class="tipGroup"> | <view class="tipGroup"> | ||||
| <image class="closeTip" bindtap="tipShowControl" src="{{imgUrl+'/newImages4/15.png'}}"></image> | <image class="closeTip" bindtap="tipShowControl" src="{{imgUrl+'/newImages4/15.png'}}"></image> | ||||
| <image class="tipGroupBg" src="{{imgUrl+'/newImages4/12.png'}}"></image> | <image class="tipGroupBg" src="{{imgUrl+'/newImages4/12.png'}}"></image> | ||||
| <view class="tipGroupContent"> | <view class="tipGroupContent"> | ||||
| <image class="tipGroupContentImg" src="{{imgUrl+'/newImages5/57.png'}}"></image> | |||||
| <image class="tipGroupContentImg" src="{{imgUrl+'/newImages6/33.png'}}"></image> | |||||
| <image class="tipGroupContentBtn" bindtap="tipShowControl2" src="{{imgUrl+'/newImages4/14.png'}}"></image> | <image class="tipGroupContentBtn" bindtap="tipShowControl2" src="{{imgUrl+'/newImages4/14.png'}}"></image> | ||||
| </view> | </view> | ||||
| </view> | </view> |
| } | } | ||||
| .tipGroupContentImg{ | .tipGroupContentImg{ | ||||
| width: 633rpx; | width: 633rpx; | ||||
| height: 1910rpx; | |||||
| height: 1826rpx; | |||||
| } | } | ||||
| .tipGroupContentBtn{ | .tipGroupContentBtn{ | ||||
| width: 429rpx; | width: 429rpx; |
| * 用户点击右上角分享 | * 用户点击右上角分享 | ||||
| */ | */ | ||||
| onShareAppMessage: function () { | onShareAppMessage: function () { | ||||
| return app.sharePack(); | |||||
| }, | }, | ||||
| showTypeControl:function(e){ | showTypeControl:function(e){ | ||||
| this.setData({ | this.setData({ |
| getPoster:function(){ | getPoster:function(){ | ||||
| console.log(this.data.authenticationStatus); | console.log(this.data.authenticationStatus); | ||||
| // return; | // return; | ||||
| if (this.data.authenticationStatus) { | |||||
| // if (this.data.authenticationStatus) { | |||||
| wx.navigateTo({ | wx.navigateTo({ | ||||
| url: '../poster/poster' | url: '../poster/poster' | ||||
| }) | }) | ||||
| }else{ | |||||
| this.setData({ | |||||
| authenticationShow:true | |||||
| }) | |||||
| } | |||||
| // }else{ | |||||
| // this.setData({ | |||||
| // authenticationShow:true | |||||
| // }) | |||||
| // } | |||||
| }, | }, | ||||
| // getCertificationInfo: function () {//查询认证状态 | // getCertificationInfo: function () {//查询认证状态 | ||||
| // app.wxRequest(app.globalData.urlRoot + 'userInfo/getCertificationInfo', {}, res => { | // app.wxRequest(app.globalData.urlRoot + 'userInfo/getCertificationInfo', {}, res => { |
| * 用户点击右上角分享 | * 用户点击右上角分享 | ||||
| */ | */ | ||||
| onShareAppMessage: function() { | onShareAppMessage: function() { | ||||
| return app.sharePack(); | |||||
| } | } | ||||
| }) | }) |
| phonebolb:function(_phone){ | phonebolb:function(_phone){ | ||||
| app.wxRequest(app.globalData.urlRoot + "userInfo/getCertificationInfo", {}, res => { | app.wxRequest(app.globalData.urlRoot + "userInfo/getCertificationInfo", {}, res => { | ||||
| if (res.code == 200) { | if (res.code == 200) { | ||||
| app.globalData.phonebolb = true; | |||||
| app.globalData.authenticationStatus = res.data; | app.globalData.authenticationStatus = res.data; | ||||
| if (!app.globalData.certificationInfo) { | if (!app.globalData.certificationInfo) { | ||||
| app.globalData.certificationInfo = true; | app.globalData.certificationInfo = true; | ||||
| wx.setStorageSync("certificationInfo", true); | wx.setStorageSync("certificationInfo", true); | ||||
| } | } | ||||
| app.globalData.certificationState = res.data.certificationState; | app.globalData.certificationState = res.data.certificationState; | ||||
| wx.navigateTo({ | |||||
| url: '/pages/scout/scout' | |||||
| }) | |||||
| if(!res.data || !res.data.agentDetail){ | |||||
| wx.navigateTo({ | |||||
| url: '/pages/supplement/supplement' | |||||
| }) | |||||
| }else{ | |||||
| wx.navigateTo({ | |||||
| url: '/pages/scout/scout' | |||||
| }) | |||||
| } | |||||
| } else if (res.code == -307){ | } else if (res.code == -307){ | ||||
| wx.navigateTo({ | wx.navigateTo({ | ||||
| url: '/pages/mobileVerification/mobileVerification' | url: '/pages/mobileVerification/mobileVerification' | ||||
| }) | }) | ||||
| } else if (res.code == -308) { | } else if (res.code == -308) { | ||||
| wx.navigateTo({ | |||||
| url: '/pages/scout/register/register' | |||||
| }) | |||||
| if(!res.data || !res.data.agentDetail){ | |||||
| wx.navigateTo({ | |||||
| url: '/pages/supplement/supplement' | |||||
| }) | |||||
| }else{ | |||||
| wx.navigateTo({ | |||||
| url: '/pages/scout/register/register' | |||||
| }) | |||||
| } | |||||
| }else{ | }else{ | ||||
| this.setData({isbtn: true}) | this.setData({isbtn: true}) | ||||
| } | } |
| * 用户点击右上角分享 | * 用户点击右上角分享 | ||||
| */ | */ | ||||
| onShareAppMessage: function () { | onShareAppMessage: function () { | ||||
| return app.sharePack(); | |||||
| }, | }, | ||||
| agreementState: function () {//协议 | agreementState: function () {//协议 | ||||
| this.setData({ | this.setData({ | ||||
| // wx.navigateBack({ | // wx.navigateBack({ | ||||
| // delta: 1, | // delta: 1, | ||||
| // }) | // }) | ||||
| wx.redirectTo({ | |||||
| url: '../poster/poster', | |||||
| }) | |||||
| // wx.redirectTo({ | |||||
| // url: '../poster/poster', | |||||
| // }) | |||||
| if(app.globalData.phonebolb){ | |||||
| wx.redirectTo({ | |||||
| url: '/pages/scout/scout' | |||||
| }) | |||||
| }else{ | |||||
| wx.redirectTo({ | |||||
| url: '/pages/scout/register/register' | |||||
| }) | |||||
| } | |||||
| }else{ | }else{ | ||||
| wx.showToast({ | wx.showToast({ | ||||
| title: res.msg, | title: res.msg, |
| * 用户点击右上角分享 | * 用户点击右上角分享 | ||||
| */ | */ | ||||
| onShareAppMessage: function () { | onShareAppMessage: function () { | ||||
| return app.sharePack(); | |||||
| } | } | ||||
| }) | }) |