Browse Source

no message

featrue/v4.5
xpz2018 4 years ago
parent
commit
4fddcba605
8 changed files with 26 additions and 79 deletions
  1. 2
      app.json
  2. 2
      pages/home/index/index.js
  3. 62
      pages/html/integral/index.wxss
  4. 16
      submodel/pages/html/integral/index.js
  5. 1
      submodel/pages/html/integral/index.json
  6. 1
      submodel/pages/html/integral/index.wxml
  7. 17
      submodel/pages/html/integral/index.wxss
  8. 4
      utils/util.js

2
app.json

@ -38,7 +38,6 @@
"pages/html/banner/index", "pages/html/banner/index",
"pages/html/html/index", "pages/html/html/index",
"pages/html/notice/index", "pages/html/notice/index",
"pages/html/integral/index",
"pages/ztbvip/index" "pages/ztbvip/index"
], ],
"subpackages": [ "subpackages": [
@ -52,6 +51,7 @@
"pages/home/bill/index", "pages/home/bill/index",
"pages/home/bill-detail/index", "pages/home/bill-detail/index",
"pages/html/personal/index", "pages/html/personal/index",
"pages/html/integral/index",
"pages/html/logistics/index", "pages/html/logistics/index",
"pages/html/service/index", "pages/html/service/index",
"pages/html/agreement/index", "pages/html/agreement/index",

2
pages/home/index/index.js

@ -104,7 +104,7 @@ Component({
} else if (e.currentTarget.id == 'balance') { } else if (e.currentTarget.id == 'balance') {
util.navigateTo('/pages/withdrawal/balance/index') util.navigateTo('/pages/withdrawal/balance/index')
} else if (e.currentTarget.id == 'integral') { } else if (e.currentTarget.id == 'integral') {
util.navigateTo('/pages/html/integral/index')
util.navigateTo('/submodel/pages/html/integral/index')
} else if (e.currentTarget.id == 'article') { } else if (e.currentTarget.id == 'article') {
util.navigateTo('/pages/article/list/index') util.navigateTo('/pages/article/list/index')
} else if (e.currentTarget.id == 'adress') { } else if (e.currentTarget.id == 'adress') {

62
pages/html/integral/index.wxss

@ -1,62 +0,0 @@
/* pages/ztbvip/index.wxss */
page {
background-color: #fff;
}
.openVip {
padding: 16rpx;
text-align: center;
}
.openVip21 {
border-radius: 6%;
border: 2rpx solid #DBDBDB;
}
.openVip22 {
border-radius: 6%;
border: 2rpx solid #d0a45c;
background-color: #fefaf1;
}
.openVipBtn {
background-color: #f2d48e;
color: white;
font-weight: 300;
}
.cu-tags {
border-top-left-radius: 24rpx;
border-bottom-right-radius: 24rpx;
background-color: #dd514c;
position: absolute;
top: 0rpx;
left: 16rpx;
font-size: 24rpx;
padding: 10rpx 16rpx;
color: var(--white);
}
.name {
display: -webkit-box;
overflow: hidden;
text-overflow: ellipsis;
word-wrap: break-word;
white-space: normal !important;
-webkit-line-clamp: 1;
-webkit-box-orient: vertical;
}
.back-iet {
width: 750rpx;
height: 520rpx;
background-image: url('https://pic.downk.cc/item/5f65a974160a154a678ab604.png');
}
.good-bg {
width: 330rpx;
height: 360rpx;
padding: 2rpx;
background: #FFFFFF;
box-shadow: 3px 3px 8px rgba(0, 0, 0, 0.1);
}

pages/html/integral/index.js → submodel/pages/html/integral/index.js

@ -1,14 +1,11 @@
import { getBaseInfo, getTaskList, getPointList, getPointProduct } from "../../../api/ztb"
const util = require('../../../utils/util')
const events = require('../../../utils/event')
import WxCountUp from '../../../utils/countup'
import { getBaseInfo, getTaskList, getPointList, getPointProduct } from "../../../../api/ztb"
const util = require('../../../../utils/util')
const events = require('../../../../utils/event')
import WxCountUp from '../../../../utils/countup'
const app = getApp() const app = getApp()
Page({ Page({
/**
* 页面的初始数据
*/
data: { data: {
height: app.globalData.fragmentHeight, height: app.globalData.fragmentHeight,
userInfo: null, userInfo: null,
@ -17,9 +14,6 @@ Page({
pointList: null, pointList: null,
toViewId: null toViewId: null
}, },
/**
* 生命周期函数--监听页面加载
*/
onLoad: function (options) { onLoad: function (options) {
this.setData({ userInfo: app.globalData.userInfo, height: app.globalData.fragmentHeight }) this.setData({ userInfo: app.globalData.userInfo, height: app.globalData.fragmentHeight })
this.fetchUserInfo() this.fetchUserInfo()

pages/html/integral/index.json → submodel/pages/html/integral/index.json

@ -1,5 +1,4 @@
{ {
"component": true,
"usingComponents": { "usingComponents": {
"wux-button": "/components/button/index", "wux-button": "/components/button/index",
"wux-image": "/components/image/index", "wux-image": "/components/image/index",

pages/html/integral/index.wxml → submodel/pages/html/integral/index.wxml

@ -1,4 +1,3 @@
<!--pages/ztbvip/index.wxml-->
<cu-custom bgColor="bg-white" isBack="{{true}}"> <cu-custom bgColor="bg-white" isBack="{{true}}">
<view slot="content">积分中心</view> <view slot="content">积分中心</view>
</cu-custom> </cu-custom>

17
submodel/pages/html/integral/index.wxss

@ -0,0 +1,17 @@
page {
background-color: #fff;
}
.back-iet {
width: 750rpx;
height: 520rpx;
background-image: url('https://pic.downk.cc/item/5f65a974160a154a678ab604.png');
}
.good-bg {
width: 330rpx;
height: 360rpx;
padding: 2rpx;
background: #FFFFFF;
box-shadow: 3px 3px 8px rgba(0, 0, 0, 0.1);
}

4
utils/util.js

@ -173,7 +173,7 @@ const tokenList = [
'/pages/home/setting/index', '/pages/home/setting/index',
'/submodel/pages/address/list/index', '/submodel/pages/address/list/index',
'/pages/article/list/index', '/pages/article/list/index',
'/pages/html/integral/index',
'/submodel/pages/html/integral/index',
'/pages/withdrawal/balance/index', '/pages/withdrawal/balance/index',
'/pages/agent/order/index', '/pages/agent/order/index',
'/pages/home/idcard/index', '/pages/home/idcard/index',
@ -236,7 +236,7 @@ function navigateTarget(redirectInfo){
} else if(redirectInfo.targetView == 'personalBillDetail'){ } else if(redirectInfo.targetView == 'personalBillDetail'){
navigateTo('/submodel/pages/home/bill/index') navigateTo('/submodel/pages/home/bill/index')
} else if(redirectInfo.targetView == 'myScore'){ } else if(redirectInfo.targetView == 'myScore'){
navigateTo('/pages/html/integral/index')
navigateTo('/submodel/pages/html/integral/index')
} else if(redirectInfo.targetView == 'myBalance'){ } else if(redirectInfo.targetView == 'myBalance'){
navigateTo('/pages/withdrawal/balance/index') navigateTo('/pages/withdrawal/balance/index')
} else if(redirectInfo.targetView == 'myProxyList'){ } else if(redirectInfo.targetView == 'myProxyList'){

Loading…
Cancel
Save