@@ -29,7 +29,11 @@ | |||||
"pages/passCar/couponDetail/couponDetail", | "pages/passCar/couponDetail/couponDetail", | ||||
"pages/managelicenseplate/managelicenseplate", | "pages/managelicenseplate/managelicenseplate", | ||||
"pages/payrule/payrule", | "pages/payrule/payrule", | ||||
<<<<<<< HEAD | |||||
"pages/game/index" | "pages/game/index" | ||||
======= | |||||
"pages/grade/grade" | |||||
>>>>>>> [成长值][增加]:成长值增加 | |||||
], | ], | ||||
"tabBar": { | "tabBar": { | ||||
"color": "#9F9F9F", | "color": "#9F9F9F", | ||||
@@ -141,7 +141,8 @@ var config = { | |||||
* title | * title | ||||
* 描述 | * 描述 | ||||
*/ | */ | ||||
getWeapNote:'/mall/getWeapNote' | |||||
getWeapNote:'/mall/getWeapNote', | |||||
scoreLevelInfo:'/mall/scoreLevelInfo' | |||||
}, | }, | ||||
weapp: { | weapp: { | ||||
@@ -0,0 +1,94 @@ | |||||
const Http = require("../../utils/HttpBasics"); | |||||
const config = require("../../config/config"); | |||||
let app = getApp(); | |||||
Page({ | |||||
/** | |||||
* 页面的初始数据 | |||||
*/ | |||||
data: { | |||||
src:'./../../../assets/img/grade.png' | |||||
}, | |||||
/** | |||||
* 生命周期函数--监听页面加载 | |||||
*/ | |||||
onLoad: function(options) { | |||||
}, | |||||
/** | |||||
* 生命周期函数--监听页面初次渲染完成 | |||||
*/ | |||||
onReady: function() { | |||||
}, | |||||
/** | |||||
* 生命周期函数--监听页面显示 | |||||
*/ | |||||
onShow: function() { | |||||
let that = this; | |||||
Http.get({ | |||||
url: config.api.scoreLevelInfo, | |||||
data: { | |||||
appId: config.weapp.AppId, | |||||
} | |||||
}) | |||||
.then(res=>{ | |||||
console.log(res); | |||||
that.setData({ | |||||
flags: 'have', | |||||
logincount: res.data.score.loginCount, | |||||
loginscoreNumber: res.data.score.loginScoreNumber, | |||||
personscoreNumber: res.data.score.personScoreNumber, | |||||
phonescoreNumber: res.data.score.phoneScoreNumber, | |||||
wifiscoreNumber: res.data.score.wifiScoreNumber, | |||||
wifinumber: res.data.score.wifiNumber, | |||||
levelList: res.data.levelList | |||||
}) | |||||
}) | |||||
.catch(res=>{ | |||||
that.setData({ | |||||
flags: 'nothave' | |||||
}) | |||||
}) | |||||
}, | |||||
/** | |||||
* 生命周期函数--监听页面隐藏 | |||||
*/ | |||||
onHide: function() { | |||||
}, | |||||
/** | |||||
* 生命周期函数--监听页面卸载 | |||||
*/ | |||||
onUnload: function() { | |||||
}, | |||||
/** | |||||
* 页面相关事件处理函数--监听用户下拉动作 | |||||
*/ | |||||
onPullDownRefresh: function() { | |||||
}, | |||||
/** | |||||
* 页面上拉触底事件的处理函数 | |||||
*/ | |||||
onReachBottom: function() { | |||||
}, | |||||
/** | |||||
* 用户点击右上角分享 | |||||
*/ | |||||
onShareAppMessage: function() { | |||||
} | |||||
}) |
@@ -0,0 +1,3 @@ | |||||
{ | |||||
"navigationBarTitleText": "我的成长值" | |||||
} |
@@ -0,0 +1,81 @@ | |||||
<view class='page' wx:if="{{flags=='have'}}"> | |||||
<view class='title'>生成规则</view> | |||||
<view class='scroll'> | |||||
<scroll-view scroll-x class="scroll-header"> | |||||
<view class="scroll-view-item"> | |||||
<view class='thin_circle'> | |||||
<view class='view'> | |||||
<text>访问</text> | |||||
<text>登陆</text> | |||||
</view> | |||||
</view> | |||||
<text>{{logincount}}成长值</text> | |||||
</view> | |||||
<view class="scroll-view-item"> | |||||
<view class='thin_circle'> | |||||
<view class='view'> | |||||
<text>线上</text> | |||||
<text>交易</text> | |||||
</view> | |||||
</view> | |||||
<text>{{loginscoreNumber}}成长值</text> | |||||
</view> | |||||
<view class="scroll-view-item"> | |||||
<view class='thin_circle'> | |||||
<view class='view'> | |||||
<text>授权</text> | |||||
<text>个人信息</text> | |||||
</view> | |||||
</view> | |||||
<text>{{personscoreNumber}}成长值</text> | |||||
</view> | |||||
<view class="scroll-view-item"> | |||||
<view class='thin_circle'> | |||||
<view class='view'> | |||||
<text>授权</text> | |||||
<text>手机号</text> | |||||
</view> | |||||
</view> | |||||
<text>{{phonescoreNumber}}成长值</text> | |||||
</view> | |||||
<view class="scroll-view-item"> | |||||
<view class='thin_circle'> | |||||
<view class='view'> | |||||
<text>链接</text> | |||||
<text>系统WIFI</text> | |||||
</view> | |||||
</view> | |||||
<text>{{wifiscoreNumber}}成长值</text> | |||||
</view> | |||||
<view class="scroll-view-item"> | |||||
<view class='thin_circle last'> | |||||
<view class="view"> | |||||
<text>补充</text> | |||||
<text>个人信息</text> | |||||
</view> | |||||
</view> | |||||
<text>{{wifinumber}}成长值</text> | |||||
</view> | |||||
</scroll-view> | |||||
</view> | |||||
<view class='title'>成长值权益</view> | |||||
<view class='quanyi'> | |||||
<view class='part' wx:for="{{levelList}}" wx:key="{{index}}"> | |||||
<view class='clearfix'> | |||||
<image wx:if="{{index==0}}" class="grade fl" mode='widthFix' src="./../../assets/img/grade.png" ></image> | |||||
<image wx:if="{{index==1}}" class="grade fl" mode='widthFix' src="./../../assets/img/grade1.png" ></image> | |||||
<image wx:if="{{index==2}}" class="grade fl" mode='widthFix' src="./../../assets/img/grade2.png" ></image> | |||||
<image wx:if="{{index==3}}" class="grade fl" mode='widthFix' src="./../../assets/img/grade3.png" ></image> | |||||
<image wx:if="{{index==4}}" class="grade fl" mode='widthFix' src="./../../assets/img/grade.png" ></image> | |||||
<image wx:if="{{index==5}}" class="grade fl" mode='widthFix' src="./../../assets/img/grade.png" ></image> | |||||
<text class='titles fl'>{{item.level}}</text> | |||||
</view> | |||||
<view class='des' wx:if="{{item.description==''}}">无</view> | |||||
<view class='des' wx:if="{{item.description!=''}}">{{item.description}}</view> | |||||
</view> | |||||
</view> | |||||
</view> | |||||
<view wx:if="{{flags=='nothave'}}"> | |||||
<image class='img' src='./../../assets/img/act.png' mode='widthFix'></image> | |||||
<text class="txt">暂无配置信息</text> | |||||
</view> |
@@ -0,0 +1,171 @@ | |||||
.scroll-header { | |||||
display: flex; | |||||
white-space: nowrap; | |||||
} | |||||
.thin_circle { | |||||
position: relative; | |||||
height: 132rpx; | |||||
width: 132rpx; | |||||
border: 1px solid #f69948; | |||||
display: inline-block; | |||||
border-radius: 50%; | |||||
margin-right: 46rpx; | |||||
} | |||||
.page { | |||||
height: 100%; | |||||
font-weight: 400; | |||||
} | |||||
.scroll { | |||||
padding: 0 56rpx 20rpx; | |||||
margin-top: 22rpx; | |||||
} | |||||
.title { | |||||
border-top: 20rpx solid #fafafa; | |||||
font-size: 34rpx; | |||||
font-weight: bold; | |||||
color: rgba(85, 85, 85, 1); | |||||
padding: 30rpx 0 10rpx; | |||||
line-height: 34rpx; | |||||
text-indent: 1em; | |||||
} | |||||
.img { | |||||
width: 320rpx; | |||||
display: block; | |||||
margin: 160rpx auto 0; | |||||
} | |||||
.txt { | |||||
display: block; | |||||
text-align: center; | |||||
font-size: 30rpx; | |||||
color: #ccc; | |||||
} | |||||
.scroll-view-item { | |||||
position: relative; | |||||
text-align: center; | |||||
display: inline-block; | |||||
padding-left: 3rpx; | |||||
} | |||||
.view text { | |||||
font-size: 23rpx; | |||||
display: block; | |||||
text-align: center; | |||||
color: #fd9643; | |||||
line-height: 32rpx; | |||||
} | |||||
.scroll-view-item > text { | |||||
display: block; | |||||
width: 132rpx; | |||||
font-size: 21rpx; | |||||
font-weight: 400; | |||||
color: rgba(253, 150, 67, 1); | |||||
line-height: 29rpx; | |||||
} | |||||
.view { | |||||
position: absolute; | |||||
display: flex; | |||||
justify-content: center; | |||||
flex-direction: column; | |||||
top: 0; | |||||
left: 0; | |||||
right: 0; | |||||
bottom: 0; | |||||
margin: auto; | |||||
width: 108rpx !important; | |||||
height: 108rpx !important; | |||||
border: 3px solid #f69948; | |||||
border-radius: 50%; | |||||
} | |||||
.last { | |||||
margin-right: 0; | |||||
} | |||||
.quanyi{ | |||||
margin-top:20rpx; | |||||
} | |||||
.fl{ | |||||
float: left; | |||||
} | |||||
.fr{ | |||||
float: right; | |||||
} | |||||
.clearfix:after { | |||||
content: "."; | |||||
display: block; | |||||
height: 0; | |||||
clear: both; | |||||
visibility: hidden; | |||||
} | |||||
.grade { | |||||
width: 30rpx!important; | |||||
} | |||||
.quanyi > view .titles { | |||||
display: inline-block; | |||||
font-size: 30rpx; | |||||
font-family: PingFang-SC-Bold; | |||||
font-weight: bold; | |||||
line-height: 30rpx; | |||||
padding: 0 0 0 10rpx; | |||||
} | |||||
.quanyi > view:nth-of-type(1) .titles { | |||||
color: #fd9643; | |||||
} | |||||
.quanyi > view:nth-of-type(2) .titles { | |||||
color: #ffba00; | |||||
} | |||||
.quanyi > view:nth-of-type(3) .titles { | |||||
color: #6cb043; | |||||
} | |||||
.quanyi > view:nth-of-type(4) .titles { | |||||
color: #2ac19c; | |||||
} | |||||
.quanyi > view:nth-of-type(5) .titles { | |||||
color: #fd9643; | |||||
} | |||||
.part { | |||||
padding: 0 34rpx; | |||||
margin-top: 20rpx; | |||||
} | |||||
.des { | |||||
padding-left: 25rpx; | |||||
font-size: 26rpx; | |||||
font-weight: 400; | |||||
color: rgba(153, 153, 153, 1); | |||||
line-height: 40rpx; | |||||
margin-left: 12rpx; | |||||
padding-top: 10rpx; | |||||
padding-bottom: 10rpx; | |||||
margin-top: 10rpx; | |||||
} | |||||
.quanyi > view:nth-of-type(1) .des{ | |||||
border-left:6rpx dotted #fd9643; | |||||
} | |||||
.quanyi > view:nth-of-type(2) .des{ | |||||
border-left:6rpx dotted #ffba00; | |||||
} | |||||
.quanyi > view:nth-of-type(3) .des{ | |||||
border-left:6rpx dotted #6cb043; | |||||
} | |||||
.quanyi > view:nth-of-type(4) .des{ | |||||
border-left:6rpx dotted #2ac19c; | |||||
} | |||||
.quanyi > view:nth-of-type(5) .des{ | |||||
border-left:6rpx dotted #fd9643; | |||||
} |
@@ -19,6 +19,7 @@ Page({ | |||||
duration: 1000, | duration: 1000, | ||||
current: 0, | current: 0, | ||||
stopFees: {}, | stopFees: {}, | ||||
canIUse: wx.canIUse("navigator") | |||||
}, | }, | ||||
/** | /** | ||||
* 车牌轮播滑动 | * 车牌轮播滑动 | ||||
@@ -43,6 +44,13 @@ Page({ | |||||
url: '/pages/managelicenseplate/managelicenseplate', | url: '/pages/managelicenseplate/managelicenseplate', | ||||
}) | }) | ||||
}, | }, | ||||
gotoetcp:function(){ | |||||
wx.navigateToMiniProgram({ | |||||
appId:'wx192b7d2e8dcbefd0', | |||||
extraData: this.data.extraData, | |||||
envVersion:'release' | |||||
}) | |||||
}, | |||||
showquan: function() { | showquan: function() { | ||||
wx.navigateTo({ | wx.navigateTo({ | ||||
url: '/pages/passCar/couponList/couponList', | url: '/pages/passCar/couponList/couponList', | ||||
@@ -53,8 +61,10 @@ Page({ | |||||
*/ | */ | ||||
gotodetail: function(e) { | gotodetail: function(e) { | ||||
console.log(e.target.dataset.rule); | console.log(e.target.dataset.rule); | ||||
wx.navigateTo({ | |||||
url: `/pages/payrule/payrule?rule=${e.target.dataset.rule}`, | |||||
wx.showModal({ | |||||
title: '缴费规则', | |||||
content: e.target.dataset.rule, | |||||
showCancel: false, | |||||
}) | }) | ||||
}, | }, | ||||
onShow: function(options) { | onShow: function(options) { | ||||
@@ -61,9 +61,10 @@ | |||||
<view class="buy-view" wx:if="{{stopFees.remainingFee}}"> | <view class="buy-view" wx:if="{{stopFees.remainingFee}}"> | ||||
<navigator class='buy' target="miniProgram" open-type="navigate" app-id="wx192b7d2e8dcbefd0" extra-data='{{extraData}}' version="release"> | |||||
<navigator wx:if="{{canIUse}}" class='buy' target="miniProgram" open-type="navigate" app-id="wx192b7d2e8dcbefd0" extra-data='{{extraData}}' version="release"> | |||||
立即支付 | 立即支付 | ||||
</navigator> | </navigator> | ||||
<view wx:if="{{!canIUse}}" class='buy' bindtap='gotoetcp'>立即支付</view> | |||||
</view> | </view> | ||||
</view> | </view> | ||||
@@ -173,6 +173,9 @@ page { | |||||
margin-bottom: 80rpx; | margin-bottom: 80rpx; | ||||
border-top: 16rpx #f8f8f8 solid; | border-top: 16rpx #f8f8f8 solid; | ||||
} | } | ||||
.bottonBox view:nth-of-type(1) image{ | |||||
height: 45rpx; | |||||
} | |||||
.textStyle { | .textStyle { | ||||
background-color: white; | background-color: white; | ||||
@@ -189,7 +192,7 @@ page { | |||||
.textStyle image { | .textStyle image { | ||||
width: 40rpx; | width: 40rpx; | ||||
height: 40rpx; | height: 40rpx; | ||||
top: 27rpx; | |||||
top: 24rpx; | |||||
left: 27rpx; | left: 27rpx; | ||||
position: absolute; | position: absolute; | ||||
} | } | ||||
@@ -10,6 +10,14 @@ Page({ | |||||
flag: 'hidden', | flag: 'hidden', | ||||
score:'0' | score:'0' | ||||
}, | }, | ||||
/** | |||||
* 跳转到成长值的页面 | |||||
*/ | |||||
gotograde:function(){ | |||||
wx.navigateTo({ | |||||
url: '/pages/grade/grade', | |||||
}) | |||||
}, | |||||
navigateTo() { | navigateTo() { | ||||
wx.navigateTo({ | wx.navigateTo({ | ||||
url: `/pages/login/index` | url: `/pages/login/index` | ||||
@@ -10,7 +10,7 @@ | |||||
<open-data type="userNickName"></open-data> | <open-data type="userNickName"></open-data> | ||||
<view class='chengzhang'>等级:{{levelName}}</view> | <view class='chengzhang'>等级:{{levelName}}</view> | ||||
</view> | </view> | ||||
<view class='chengzhang1'> | |||||
<view class='chengzhang1' bindtap='gotograde'> | |||||
<view class="view">{{score}} | <view class="view">{{score}} | ||||
<image src='./../../assets/img/shang.png' mode="widthFix"></image> | <image src='./../../assets/img/shang.png' mode="widthFix"></image> | ||||
</view> | </view> | ||||
@@ -67,7 +67,7 @@ | |||||
<view class="margin"></view> | <view class="margin"></view> | ||||
<!-- <button bindtap="navigateTo" class="user-out-btn">退出登陆</button> --> | <!-- <button bindtap="navigateTo" class="user-out-btn">退出登陆</button> --> | ||||
<view bindlongtap='showVersion' class='version'> | <view bindlongtap='showVersion' class='version'> | ||||
<view wx:if="{{flag=='show'}}">版本号:2.1.2</view> | |||||
<view wx:if="{{flag=='show'}}">版本号:2.1.4</view> | |||||
<view wx:if="{{flag=='hidden'}}"></view> | <view wx:if="{{flag=='hidden'}}"></view> | ||||
</view> | </view> | ||||
</view> | </view> | ||||
@@ -104,10 +104,9 @@ | |||||
} | } | ||||
.chengzhang1 image { | .chengzhang1 image { | ||||
width: 24rpx; | |||||
height: 24rpx; | |||||
width: 30rpx; | |||||
height: 30rpx; | |||||
vertical-align: top; | vertical-align: top; | ||||
margin-top: 10rpx; | |||||
} | } | ||||
.chengzhang1 .view { | .chengzhang1 .view { | ||||