suizhijia před 5 roky
rodič
revize
f695da2a86
14 změnil soubory, kde provedl 80 přidání a 23 odebrání
  1. +5
    -5
      496_dongfengqichen/app.js
  2. +5
    -6
      496_dongfengqichen/pages/coupon/coupon.js
  3. +1
    -1
      496_dongfengqichen/pages/coupon/coupon.json
  4. +1
    -1
      496_dongfengqichen/pages/coupon/coupon.wxml
  5. +2
    -2
      496_dongfengqichen/pages/index/index.js
  6. +2
    -2
      496_dongfengqichen/pages/myCenter/myCenter.js
  7. +1
    -1
      496_dongfengqichen/pages/placingOrder/placingOrder.js
  8. +1
    -1
      496_dongfengqichen/pages/poster/poster.js
  9. +11
    -0
      496_dongfengqichen/pages/prizeDetail/prizeDetail.js
  10. +20
    -1
      496_dongfengqichen/pages/prizeDetail/prizeDetail.wxml
  11. +22
    -0
      496_dongfengqichen/pages/prizeDetail/prizeDetail.wxss
  12. +1
    -1
      496_dongfengqichen/pages/prizes/prizes.wxml
  13. +1
    -1
      496_dongfengqichen/pages/receiveRegister/receiveRegister.js
  14. +7
    -1
      496_dongfengqichen/pages/yuyue/yuyue.js

+ 5
- 5
496_dongfengqichen/app.js Zobrazit soubor

@@ -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,//是否为第一次登录

+ 5
- 6
496_dongfengqichen/pages/coupon/coupon.js Zobrazit soubor

@@ -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();

+ 1
- 1
496_dongfengqichen/pages/coupon/coupon.json Zobrazit soubor

@@ -2,6 +2,6 @@
"navigationBarTitleText": "东风启辰“星探计划”",
"usingComponents": {
"tabBar": "../component/tabBar/index",
"placingOrder": "/pages/placingOrder/placingOrder"
"yuyue": "/pages/yuyue/yuyue"
}
}

+ 1
- 1
496_dongfengqichen/pages/coupon/coupon.wxml Zobrazit soubor

@@ -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>


+ 2
- 2
496_dongfengqichen/pages/index/index.js Zobrazit soubor

@@ -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({

+ 2
- 2
496_dongfengqichen/pages/myCenter/myCenter.js Zobrazit soubor

@@ -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({

+ 1
- 1
496_dongfengqichen/pages/placingOrder/placingOrder.js Zobrazit soubor

@@ -35,7 +35,7 @@ Component({
city:"",//市区
agent_code: "",//经销商编码
agentDetail: "",//经销商详细信息
parentOpenid: app.globalData.scene,//好友openid
parentOpenid: app.globalData.parentOpenid,//好友openid
},
getBuyState: false,
mobileType: 2

+ 1
- 1
496_dongfengqichen/pages/poster/poster.js Zobrazit soubor

@@ -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 () {//保存到手机

+ 11
- 0
496_dongfengqichen/pages/prizeDetail/prizeDetail.js Zobrazit soubor

@@ -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
})
}
})

+ 20
- 1
496_dongfengqichen/pages/prizeDetail/prizeDetail.wxml Zobrazit soubor

@@ -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>

+ 22
- 0
496_dongfengqichen/pages/prizeDetail/prizeDetail.wxss Zobrazit soubor

@@ -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;
}

+ 1
- 1
496_dongfengqichen/pages/prizes/prizes.wxml Zobrazit soubor

@@ -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>

+ 1
- 1
496_dongfengqichen/pages/receiveRegister/receiveRegister.js Zobrazit soubor

@@ -24,7 +24,7 @@ Page({
province: "",//省份
agent_code: "",//经销商编码
agentDetail: "",//经销商详细信息
parentOpenid: app.globalData.scene,//好友openid
parentOpenid: app.globalData.parentOpenid,//好友openid
},
},


+ 7
- 1
496_dongfengqichen/pages/yuyue/yuyue.js Zobrazit soubor

@@ -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: '预约成功'
})

Načítá se…
Zrušit
Uložit