| @@ -34,9 +34,9 @@ App({ | |||
| if (userMobile){ | |||
| this.globalData.userMobile = userMobile; | |||
| } | |||
| var scene = wx.getStorageSync('scene'); | |||
| if (scene) { | |||
| this.globalData.scene = scene; | |||
| var parentOpenid = wx.getStorageSync('parentOpenid'); | |||
| if (parentOpenid) { | |||
| this.globalData.parentOpenid = parentOpenid; | |||
| } | |||
| var certificationInfo = wx.getStorageSync('certificationInfo'); | |||
| if (certificationInfo) { | |||
| @@ -85,11 +85,11 @@ App({ | |||
| urlStatic: "https://www.jiyou-tech.com/2020/496_qichen/static",//测试静态资源根目录 | |||
| // urlStatic: "https://xingb.venucia.com/resource",//静态资源根目录 | |||
| openid: "",//OPENID | |||
| scene:"",//推荐人的openid | |||
| parentOpenid:"",//推荐人的openid | |||
| session_key: "",//session_key | |||
| openidSuccessFuc: null,//方法回调 | |||
| buyStateSuccessFuc:null, | |||
| nowPage:'1',//当前tabBar | |||
| nowPage:'0',//当前tabBar | |||
| isRegister:false,//是否已注册 | |||
| userMobile:null,//用户手机号 | |||
| isFirstLogin: true,//是否为第一次登录 | |||
| @@ -7,7 +7,6 @@ Page({ | |||
| */ | |||
| data: { | |||
| imgUrl: app.globalData.urlStatic,//图片路径 | |||
| scene:null,//朋友的openid | |||
| countNum:0, | |||
| pageShow: false,//是否显示页面 false | |||
| isAppointmentShow: false,//是否显示预约弹框 | |||
| @@ -30,7 +29,7 @@ Page({ | |||
| city:"",//城市 | |||
| agent_code: "",//经销商编码 | |||
| agentDetail: "",//经销商详细信息 | |||
| parentOpenid: app.globalData.scene,//好友openid | |||
| parentOpenid: app.globalData.parentOpenid,//好友openid | |||
| }, | |||
| submitSuccess:false, | |||
| placing:false | |||
| @@ -40,10 +39,10 @@ Page({ | |||
| * 生命周期函数--监听页面加载 | |||
| */ | |||
| onLoad: function (options) { | |||
| if (options.scene) { | |||
| this.data.scene = options.scene; | |||
| wx.setStorageSync("scene", options.scene); | |||
| app.globalData.scene = options.scene; | |||
| if (options.parentOpenid) { | |||
| this.data.parentOpenid = options.parentOpenid; | |||
| wx.setStorageSync("parentOpenid", options.parentOpenid); | |||
| app.globalData.parentOpenid = options.parentOpenid; | |||
| } | |||
| if (app.globalData.openid) { | |||
| this.loadFun(); | |||
| @@ -2,6 +2,6 @@ | |||
| "navigationBarTitleText": "东风启辰“星探计划”", | |||
| "usingComponents": { | |||
| "tabBar": "../component/tabBar/index", | |||
| "placingOrder": "/pages/placingOrder/placingOrder" | |||
| "yuyue": "/pages/yuyue/yuyue" | |||
| } | |||
| } | |||
| @@ -17,7 +17,7 @@ | |||
| </view> | |||
| </view> | |||
| <image class="lookCar" bindtap="cutPage" src="{{imgUrl+'/newImages2/36.png'}}"></image> | |||
| <placingOrder bindplacing="placingControl" wx:if="{{placing}}"></placingOrder> | |||
| <yuyue bindyuyue="placingControl" wx:if="{{placing}}"></yuyue> | |||
| <tabBar></tabBar> | |||
| </view> | |||
| @@ -21,7 +21,7 @@ Page({ | |||
| province:"",//省份 | |||
| agent_code: "",//经销商编码 | |||
| agentDetail: "",//经销商详细信息 | |||
| parentOpenid: app.globalData.scene,//好友openid | |||
| parentOpenid: app.globalData.parentOpenid,//好友openid | |||
| }, | |||
| startAdvertisingUrl:'',//开屏广告路径 | |||
| isStartAdvertising: 1,//开屏广告透明度 | |||
| @@ -125,7 +125,7 @@ Page({ | |||
| this.setData({ | |||
| siteSelect: false | |||
| }) | |||
| this.data.subscribeData.parentOpenid = app.globalData.scene; | |||
| this.data.subscribeData.parentOpenid = app.globalData.parentOpenid; | |||
| }, | |||
| getBuyStates:function(){ | |||
| this.setData({ | |||
| @@ -35,7 +35,7 @@ Page({ | |||
| province: "",//省份 | |||
| agent_code: "",//经销商编码 | |||
| agentDetail: "",//经销商详细信息 | |||
| parentOpenid: app.globalData.scene,//好友openid | |||
| parentOpenid: app.globalData.parentOpenid,//好友openid | |||
| }, | |||
| userData:{ | |||
| avatarUrl: null, | |||
| @@ -263,7 +263,7 @@ Page({ | |||
| } else { | |||
| app.globalData.buyStateSuccessFuc = this.getBuyStates; | |||
| } | |||
| this.data.subscribeData.parentOpenid = app.globalData.scene; | |||
| this.data.subscribeData.parentOpenid = app.globalData.parentOpenid; | |||
| }, | |||
| getBuyStates: function () { | |||
| this.setData({ | |||
| @@ -35,7 +35,7 @@ Component({ | |||
| city:"",//市区 | |||
| agent_code: "",//经销商编码 | |||
| agentDetail: "",//经销商详细信息 | |||
| parentOpenid: app.globalData.scene,//好友openid | |||
| parentOpenid: app.globalData.parentOpenid,//好友openid | |||
| }, | |||
| getBuyState: false, | |||
| mobileType: 2 | |||
| @@ -135,7 +135,7 @@ Page({ | |||
| return { | |||
| title: '您有一份启辰星专属礼品待领取', | |||
| imageUrl: this.data.imgUrl + "/newImages3/28_" + (this.data.swiperCurrent+1)+".png?v=004", | |||
| path: "/pages/coupon/coupon?scene=" + app.globalData.openid | |||
| path: "/pages/coupon/coupon?parentOpenid=" + app.globalData.openid | |||
| } | |||
| }, | |||
| saveImg: function () {//保存到手机 | |||
| @@ -8,13 +8,19 @@ Page({ | |||
| data: { | |||
| imgUrl: app.globalData.urlStatic,//图片路径 | |||
| nums:1, | |||
| imgShow:true, | |||
| showType:1, | |||
| }, | |||
| /** | |||
| * 生命周期函数--监听页面加载 | |||
| */ | |||
| onLoad: function (options) { | |||
| if (options.num>5){ | |||
| this.data.imgShow = false; | |||
| } | |||
| this.setData({ | |||
| imgShow: this.data.imgShow, | |||
| nums: options.num ? options.num :1 | |||
| }) | |||
| app.globalData.nowPage = 3; | |||
| @@ -67,5 +73,10 @@ Page({ | |||
| */ | |||
| onShareAppMessage: function () { | |||
| }, | |||
| showTypeControl:function(e){ | |||
| this.setData({ | |||
| showType: e.currentTarget.dataset.type | |||
| }) | |||
| } | |||
| }) | |||
| @@ -1,7 +1,26 @@ | |||
| <!--pages/prizeDetail/prizeDetail.wxml--> | |||
| <view class="all"> | |||
| <view class="main"> | |||
| <image style="width:750rpx;" mode="widthFix" src="{{imgUrl+'/newImages2/prizeDetail/'+nums+'.png'}}"></image> | |||
| <image wx:if="{{imgShow}}" style="width:750rpx;" mode="widthFix" src="{{imgUrl+'/newImages3/prizeDetail/'+nums+'.png'}}"></image> | |||
| <view wx:if="{{nums==6 || nums==7 || nums==8}}"> | |||
| <image style="width:750rpx;" mode="widthFix" src="{{imgUrl+'/newImages3/prizeDetail/'+nums+'_1.png'}}"></image> | |||
| <view class="image6Group"> | |||
| <image style="width:750rpx;" mode="widthFix" src="{{imgUrl+'/newImages3/prizeDetail/'+nums+'_2_'+showType+'.png'}}"></image> | |||
| <view class="image6Btn1" style="{{nums==7||nums==8?'top:20rpx;':''}}" wx:if="{{showType==2}}" bindtap="showTypeControl" data-type="1"></view> | |||
| <view class="image6Btn2" style="{{nums==7||nums==8?'top:20rpx;':''}}" wx:if="{{showType==1}}" bindtap="showTypeControl" data-type="2"></view> | |||
| </view> | |||
| <image style="width:750rpx;" mode="widthFix" src="{{imgUrl+'/newImages3/prizeDetail/'+nums+'_3.png'}}"></image> | |||
| </view> | |||
| <view wx:if="{{nums==9 || nums==10}}"> | |||
| <image style="width:750rpx;" mode="widthFix" src="{{imgUrl+'/newImages3/prizeDetail/'+nums+'_1.png'}}"></image> | |||
| <!-- <view class="image6Group"> | |||
| <image style="width:750rpx;" mode="widthFix" src="{{imgUrl+'/newImages3/prizeDetail/'+nums+'_2_'+showType+'.png'}}"></image> | |||
| <view class="image6Btn1" wx:if="{{showType==2}}" bindtap="showTypeControl" data-type="1"></view> | |||
| <view class="image6Btn2" wx:if="{{showType==1}}" bindtap="showTypeControl" data-type="2"></view> | |||
| <view class="image6Btn2" wx:if="{{showType==3}}" bindtap="showTypeControl" data-type="3"></view> | |||
| </view> --> | |||
| <image style="width:750rpx;" mode="widthFix" src="{{imgUrl+'/newImages3/prizeDetail/'+nums+'_3.png'}}"></image> | |||
| </view> | |||
| </view> | |||
| <tabBar></tabBar> | |||
| </view> | |||
| @@ -3,4 +3,26 @@ | |||
| height: calc(100vh - 120rpx); | |||
| overflow: auto; | |||
| -webkit-overflow-scrolling: touch; | |||
| } | |||
| .image6Group{ | |||
| position: relative; | |||
| } | |||
| .image6Btn1,.image6Btn2{ | |||
| position: absolute; | |||
| top: 40rpx; | |||
| left: 70rpx | |||
| } | |||
| .image6Btn1{ | |||
| width: 310rpx; | |||
| height: 80rpx; | |||
| background-color: red; | |||
| opacity: 0; | |||
| } | |||
| .image6Btn2{ | |||
| left: auto; | |||
| right: 70rpx; | |||
| width: 310rpx; | |||
| height: 80rpx; | |||
| background-color: green; | |||
| opacity: 0; | |||
| } | |||
| @@ -12,7 +12,7 @@ | |||
| <view class="prize7" data-num="7" bindtap="lookDetail"></view> | |||
| <view class="prize8" data-num="8" bindtap="lookDetail"></view> | |||
| <view class="prize9" data-num="9" bindtap="lookDetail"></view> | |||
| <view class="prize10" data-num="11" bindtap="lookDetail"></view> | |||
| <view class="prize10" data-num="10" bindtap="lookDetail"></view> | |||
| <view class="bottomBtn" bindtap="backPage"></view> | |||
| </view> | |||
| </view> | |||
| @@ -24,7 +24,7 @@ Page({ | |||
| province: "",//省份 | |||
| agent_code: "",//经销商编码 | |||
| agentDetail: "",//经销商详细信息 | |||
| parentOpenid: app.globalData.scene,//好友openid | |||
| parentOpenid: app.globalData.parentOpenid,//好友openid | |||
| }, | |||
| }, | |||
| @@ -35,7 +35,7 @@ Component({ | |||
| city:"",//城市 | |||
| agent_code: "",//经销商编码 | |||
| agentDetail: "",//经销商详细信息 | |||
| parentOpenid: app.globalData.scene,//好友openid | |||
| parentOpenid: app.globalData.parentOpenid,//好友openid | |||
| }, | |||
| mobileType:2 | |||
| }, | |||
| @@ -205,6 +205,12 @@ Component({ | |||
| this.data.subscribeData.mobile = sourceMobile; | |||
| this.data.appointment = true; | |||
| if (res.code == 200) { | |||
| if (app.globalData.nowPage=='0'){ | |||
| wx.reLaunch({ | |||
| url: '/pages/index/index' | |||
| }) | |||
| return; | |||
| } | |||
| wx.showToast({ | |||
| title: '预约成功' | |||
| }) | |||