瀏覽代碼

[增加]:[返回首页按钮]

tags/河北版C.8.1.01
meo 5 年之前
父節點
當前提交
9f6cca53c8
共有 9 個檔案被更改,包括 52 行新增29 行删除
  1. +2
    -0
      pages/czdetail/czdetail.js
  2. +4
    -1
      pages/czdetail/czdetail.json
  3. +2
    -1
      pages/czdetail/czdetail.wxml
  4. +1
    -0
      pages/czdetail/czdetail.wxss
  5. +4
    -16
      pages/grade/grade.js
  6. +3
    -1
      pages/grade/grade.json
  7. +20
    -5
      pages/grade/grade.wxml
  8. +15
    -4
      pages/grade/grade.wxss
  9. +1
    -1
      pages/radetail/index.wxml

+ 2
- 0
pages/czdetail/czdetail.js 查看文件

@@ -1,3 +1,4 @@
const navigationBarHeight = (getApp().statusBarHeight + 44) + 'px'
var config = require("../../config/config.js");
var app = getApp();
const Http = require("../../utils/HttpBasics");
@@ -9,6 +10,7 @@ Page({
* 页面的初始数据
*/
data: {
navigationBarHeight,
score: 10,
pageNum:1,
list:[],


+ 4
- 1
pages/czdetail/czdetail.json 查看文件

@@ -1,4 +1,7 @@
{
"navigationBarTitleText": "成长值",
"enablePullDownRefresh": true
"enablePullDownRefresh": true,
"usingComponents": {
"navbar": "../../../components/navbar/navbar"
}
}

+ 2
- 1
pages/czdetail/czdetail.wxml 查看文件

@@ -1,4 +1,5 @@
<view class='head'>
<navbar back home text="成长值"></navbar>
<view class='head' style="padding-top:{{navigationBarHeight}}!important">
<text>当前</text>
<text>{{score}}</text>
<view class='rule' bindtap='gotorule'>规则</view>


+ 1
- 0
pages/czdetail/czdetail.wxss 查看文件

@@ -35,6 +35,7 @@
font-family: PingFang-SC-Regular;
font-weight: 400;
color: rgba(255, 255, 255, 1);
padding-top: 25rpx;
}

.head text:nth-of-type(2) {


+ 4
- 16
pages/grade/grade.js 查看文件

@@ -1,3 +1,4 @@
const navigationBarHeight = (getApp().statusBarHeight + 44) + 'px'
const Http = require("../../utils/HttpBasics");
const config = require("../../config/config");
let app = getApp();
@@ -8,6 +9,7 @@ Page({
* 页面的初始数据
*/
data: {
navigationBarHeight,
src: imgurl.grade.url,
actUrl: imgurl.act.url,
gradeUrl: imgurl.grade.url,
@@ -16,21 +18,6 @@ Page({
grade3Url: imgurl.grade3.url,
growthbgUrl: imgurl.growthbg.url,
},

/**
* 生命周期函数--监听页面加载
*/
onLoad: function(options) {

},

/**
* 生命周期函数--监听页面初次渲染完成
*/
onReady: function() {

},

/**
* 生命周期函数--监听页面显示
*/
@@ -43,7 +30,8 @@ Page({
.then(res=>{
that.setData({
flags: 'have',
rules: JSON.parse(res.data.score.rules).concat(JSON.parse(res.data.score.rules)[1].childs),
rules: JSON.parse(res.data.score.rules),
rules1: JSON.parse(res.data.score.rules)[1].childs,
levelList: res.data.levelList
})
console.log(that.data.rules)


+ 3
- 1
pages/grade/grade.json 查看文件

@@ -1,3 +1,5 @@
{
"navigationBarTitleText": "我的成长值"
"usingComponents": {
"navbar": "../../../components/navbar/navbar"
}
}

+ 20
- 5
pages/grade/grade.wxml 查看文件

@@ -1,14 +1,29 @@
<view class='page' wx:if="{{flags=='have'}}">
<navbar home back text="成长值规则" background="#ffff"></navbar>

<view class='page' style="padding-top:{{navigationBarHeight}}" wx:if="{{flags=='have'}}">
<view class='title'>成长值增长规则</view>
<view class='scroll'>
<scroll-view scroll-x class="scroll-header">
<view class="scroll-view-item" wx:for="{{rules}}" wx:key="index">
<view class='thin_circle last' wx:if="{{item.desc}}">
<view class="scroll-view-item scroll-view-item2" wx:for="{{rules}}" wx:key="index">
<view class='thin_circle' wx:if="{{item.id!=2}}">
<view class="view">
<text>{{item.title}}{{item.desc}}</text>
</view>
</view>
<text wx:if="{{item.score}}">{{item.score}}成长值</text>
<text wx:if="{{item.id!=2}}">{{item.score}}成长值</text>
</view>
</scroll-view>
</view>
<view class='title'>交易规则</view>
<view class='scroll'>
<scroll-view scroll-x class="scroll-header">
<view class="scroll-view-item scroll-view-item1" wx:for="{{rules1}}" wx:key="index">
<view class='thin_circle thin_circle1'>
<view class="view view1">
<text>{{item.title}}{{item.desc}}</text>
</view>
</view>
<text>{{item.score}}成长值</text>
</view>
</scroll-view>
</view>
@@ -36,7 +51,7 @@
</view>
</view>
</view>
<view wx:if="{{flags=='nothave'}}">
<view wx:if="{{flags=='nothave'}}" style="padding-top:{{navigationBarHeight}}">
<image class='img' src='{{actUrl}}' mode='widthFix'></image>
<text class="txt">暂无配置信息</text>
</view>


+ 15
- 4
pages/grade/grade.wxss 查看文件

@@ -16,7 +16,9 @@
border-radius: 50%;
margin-right: 46rpx;
}

.thin_circle1 {
border: 1px solid #4e9efe;
}
.page {
height: auto;
font-weight: 400;
@@ -57,6 +59,9 @@
padding-left: 3rpx;
margin-right: 30rpx;
}
.scroll-view-item1,.scroll-view-item2 {
margin-right: 0;
}
.scroll-view-item:nth-of-type(1){
margin-right: 0;
}
@@ -71,7 +76,9 @@
margin: 0 auto;
white-space: normal;
}

.view1 text {
color: #4e9efe;
}
.scroll-view-item > text {
display: block;
width: 132rpx;
@@ -80,7 +87,9 @@
color: rgba(253, 150, 67, 1);
line-height: 29rpx;
}

.scroll-view-item1 > text {
color:#4e9efe;
}
.view {
position: absolute;
display: flex;
@@ -96,7 +105,9 @@
border: 3px solid #f69948;
border-radius: 50%;
}

.view1 {
border: 3px solid #4e9efe;
}
.last {
margin-right: 0;
}


+ 1
- 1
pages/radetail/index.wxml 查看文件

@@ -31,7 +31,7 @@
</view>
</view>
<!-- 自由图文格式 -->
<view wx:if="{{data.type == 2}}">
<view wx:if="{{data.type == 2}}" style='padding-top:{{navigationBarHeight}}'>
<view class="content">
<template is="wxParse" data="{{wxParseData:article.nodes}}" />
</view>


Loading…
取消
儲存