更换版本
This commit is contained in:
8
we7/pages/component/footer/footer.js
Normal file
8
we7/pages/component/footer/footer.js
Normal file
@@ -0,0 +1,8 @@
|
||||
var t;
|
||||
(t = getApp()),
|
||||
Component({
|
||||
properties: { tabBar: { type: Object, value: t.tabBar } },
|
||||
data: {},
|
||||
methods: {},
|
||||
created: function () {},
|
||||
});
|
1
we7/pages/component/footer/footer.json
Normal file
1
we7/pages/component/footer/footer.json
Normal file
@@ -0,0 +1 @@
|
||||
{ "component": true, "usingComponents": {} }
|
17
we7/pages/component/footer/footer.wxml
Normal file
17
we7/pages/component/footer/footer.wxml
Normal file
@@ -0,0 +1,17 @@
|
||||
<view class="we7-bottom" style="background-color:{{tabBar.backgroundColor}};border-color:{{tabBar.borderStyle}}" wx:if="{{tabBar}}">
|
||||
<block wx:for="{{tabBar.list}}" wx:key="{{index}}">
|
||||
<view class="we7-bottom-item" hoverClass="active" wx:if="{{item.pageUrl=='/'+thisurl}}">
|
||||
<navigator hoverClass="active" openType="redirect" url="{{item.pagePath}}">
|
||||
<image class="item-img" mode="widthFix" src="{{item.selectedIconPath}}"></image>
|
||||
<view class="item-text" style="color: {{tabBar.selectedColor}};">{{item.text}}</view>
|
||||
</navigator>
|
||||
</view>
|
||||
<view class="we7-bottom-item" hoverClass="active" wx:else>
|
||||
<navigator hoverClass="active" openType="redirect" url="{{item.pagePath}}">
|
||||
<image class="item-img" mode="widthFix" src="{{item.iconPath}}"></image>
|
||||
<view class="item-text" style="color: {{tabBar.tabBarcolor}}">{{item.text}}</view>
|
||||
</navigator>
|
||||
</view>
|
||||
</block>
|
||||
</view>
|
||||
<view class="we7-bottom-placeholder"></view>
|
38
we7/pages/component/footer/footer.wxss
Normal file
38
we7/pages/component/footer/footer.wxss
Normal file
@@ -0,0 +1,38 @@
|
||||
.we7-bottom-placeholder {
|
||||
bottom: 0;
|
||||
height: 134rpx;
|
||||
position: relative;
|
||||
width: 100%;
|
||||
z-index: -1;
|
||||
}
|
||||
.we7-bottom {
|
||||
border-top: 1px solid #000;
|
||||
bottom: 0;
|
||||
display: -webkit-flex;
|
||||
display: flex;
|
||||
left: 0;
|
||||
overflow: hidden;
|
||||
padding: 10rpx 0;
|
||||
position: fixed;
|
||||
right: 0;
|
||||
}
|
||||
.we7-bottom,
|
||||
.we7-bottom.active,
|
||||
.we7-bottom.active navigatorurl {
|
||||
background-color: #fff;
|
||||
}
|
||||
.we7-bottom .we7-bottom-item {
|
||||
flex: 1;
|
||||
padding: 10rpx;
|
||||
text-align: center;
|
||||
}
|
||||
.we7-bottom .item-img {
|
||||
display: inline-block;
|
||||
height: 50rpx;
|
||||
width: 50rpx;
|
||||
}
|
||||
.we7-bottom .item-text {
|
||||
display: block;
|
||||
font-size: 12px;
|
||||
line-height: 1;
|
||||
}
|
34
we7/pages/index/index.js
Normal file
34
we7/pages/index/index.js
Normal file
@@ -0,0 +1,34 @@
|
||||
var e;
|
||||
(e = getApp()),
|
||||
Page({
|
||||
data: { navs: [], slide: [], commend: [], userInfo: {} },
|
||||
onLoad: function () {
|
||||
var a = this;
|
||||
e.util.footer(a),
|
||||
e.util.request({
|
||||
url: "wxapp/home/nav",
|
||||
cachetime: "30",
|
||||
success: function (e) {
|
||||
e.data.message.errno ||
|
||||
(console.log(e.data.message.message),
|
||||
a.setData({ navs: e.data.message.message }));
|
||||
},
|
||||
}),
|
||||
e.util.request({
|
||||
url: "wxapp/home/slide",
|
||||
cachetime: "30",
|
||||
success: function (e) {
|
||||
e.data.message.errno ||
|
||||
a.setData({ slide: e.data.message.message });
|
||||
},
|
||||
}),
|
||||
e.util.request({
|
||||
url: "wxapp/home/commend",
|
||||
cachetime: "30",
|
||||
success: function (e) {
|
||||
e.data.message.errno ||
|
||||
a.setData({ commend: e.data.message.message });
|
||||
},
|
||||
});
|
||||
},
|
||||
});
|
28
we7/pages/index/index.wxml
Normal file
28
we7/pages/index/index.wxml
Normal file
@@ -0,0 +1,28 @@
|
||||
<view class="container">
|
||||
<view class="swiper">
|
||||
<swiper autoplay="true" duration="1200" indicatorDots="true" interval="3000">
|
||||
<swiper-item wx:for="{{slide}}" wx:key="{{index}}">
|
||||
<image class="nav-icon" mode="aspectFill" src="{{item.thumb}}"></image>
|
||||
</swiper-item>
|
||||
</swiper>
|
||||
</view>
|
||||
<view class="nav">
|
||||
<navigator class="nav-item {{(index+1)%3==0?'nav-item-no-border':''}}" hoverClass="navigator-hover" url="{{item.url}}" wx:for="{{navs}}" wx:key="{{index}}">
|
||||
<image class="nav-icon" src="{{item.icon}}"></image>
|
||||
<view class="nav-title">{{item.name}}</view>
|
||||
</navigator>
|
||||
</view>
|
||||
<view class="commend">
|
||||
<block wx:for="{{commend}}" wx:key="{{index}}">
|
||||
<view class="commend-header-title">{{item.name}}</view>
|
||||
<view class="commend-column">
|
||||
<navigator class="commend-item" hoverClass="navigator-hover" wx:for="{{item.article}}" wx:for-item="subItem">
|
||||
<image class="commend-thumb" src="{{subItem.thumb}}"></image>
|
||||
<view class="commend-title">{{subItem.title}}</view>
|
||||
</navigator>
|
||||
</view>
|
||||
</block>
|
||||
</view>
|
||||
</view>
|
||||
<import src="/we7/pages/templates/footer.wxml"></import>
|
||||
<template is="footerWx" data="{{...tabBar}}"></template>
|
74
we7/pages/index/index.wxss
Normal file
74
we7/pages/index/index.wxss
Normal file
@@ -0,0 +1,74 @@
|
||||
.container {
|
||||
background: #e6e6e6;
|
||||
}
|
||||
.nav {
|
||||
background-color: #fff;
|
||||
display: -webkit-flex;
|
||||
display: flex;
|
||||
flex-direction: row;
|
||||
flex-wrap: wrap;
|
||||
width: 100%;
|
||||
}
|
||||
.nav-item {
|
||||
border: 1px solid #c9c9c9;
|
||||
border-left: none;
|
||||
border-top: none;
|
||||
color: #fff;
|
||||
flex-direction: column;
|
||||
height: 237rpx;
|
||||
text-align: center;
|
||||
width: 248rpx;
|
||||
}
|
||||
.nav-item.nav-item-no-border {
|
||||
border-right: none;
|
||||
}
|
||||
.nav-item .nav-icon {
|
||||
align-items: center;
|
||||
height: 118rpx;
|
||||
margin-top: 38rpx;
|
||||
width: 118rpx;
|
||||
}
|
||||
.commend-item .commend-title,
|
||||
.nav-item .nav-title {
|
||||
color: #000;
|
||||
font-size: 24rpx;
|
||||
margin-top: 20rpx;
|
||||
}
|
||||
.swiper {
|
||||
height: 350rpx;
|
||||
width: 100%;
|
||||
}
|
||||
.swiper image,
|
||||
.swiper swiper {
|
||||
height: 100%;
|
||||
width: 100%;
|
||||
}
|
||||
.commend {
|
||||
background: #fff;
|
||||
flex-wrap: wrap;
|
||||
margin-top: 20rpx;
|
||||
text-align: center;
|
||||
width: 100%;
|
||||
}
|
||||
.commend .commend-column {
|
||||
display: -webkit-flex;
|
||||
display: flex;
|
||||
}
|
||||
.commend .commend-header-title {
|
||||
font-size: 30rpx;
|
||||
line-height: 98rpx;
|
||||
padding-left: 15rpx;
|
||||
text-align: left;
|
||||
}
|
||||
.commend .commend-item {
|
||||
border-right: 1px solid #c9c9c9;
|
||||
display: -webkit-flex;
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
padding-bottom: 60rpx;
|
||||
width: 372rpx;
|
||||
}
|
||||
.commend .commend-item image {
|
||||
height: 210rpx;
|
||||
width: 100%;
|
||||
}
|
45
we7/pages/newsDetail/newsDetail.js
Normal file
45
we7/pages/newsDetail/newsDetail.js
Normal file
@@ -0,0 +1,45 @@
|
||||
var e, o;
|
||||
(e = getApp()),
|
||||
(o = require("../../resource/js/htmlToWxml.js")),
|
||||
Page({
|
||||
data: { scrollHeight: 0, newsData: {} },
|
||||
getNewsDetail: function () {
|
||||
var n = this;
|
||||
wx.request({
|
||||
url: "https://wedengta.com/wxnews/getNews?action=DiscNewsContent&type=4&id=1478677877_1406730_1_9",
|
||||
headers: { "Content-Type": "application/json" },
|
||||
success: function (t) {
|
||||
var s = t.data;
|
||||
if (0 == s.ret) {
|
||||
var a = JSON.parse(s.content);
|
||||
(a.content = o.html2json(a.sContent)),
|
||||
(a.time = e.util.formatTime(1e3 * a.iTime)),
|
||||
n.setData({ newsData: a });
|
||||
} else console.log("数据拉取失败");
|
||||
},
|
||||
fail: function (e) {
|
||||
console.log("数据拉取失败");
|
||||
},
|
||||
});
|
||||
},
|
||||
stockClick: function (e) {
|
||||
var o = e.currentTarget.dataset.seccode,
|
||||
n = e.currentTarget.dataset.secname;
|
||||
console.log("stockClick:" + o + ";secName:" + n);
|
||||
},
|
||||
onLoad: function (e) {
|
||||
this.getNewsDetail(), console.log("onLoad");
|
||||
},
|
||||
onShow: function () {
|
||||
console.log("onShow");
|
||||
},
|
||||
onReady: function () {
|
||||
console.log("onReady");
|
||||
},
|
||||
onHide: function () {
|
||||
console.log("onHide");
|
||||
},
|
||||
onUnload: function () {
|
||||
console.log("onUnload");
|
||||
},
|
||||
});
|
15
we7/pages/newsDetail/newsDetail.wxml
Normal file
15
we7/pages/newsDetail/newsDetail.wxml
Normal file
@@ -0,0 +1,15 @@
|
||||
<import src="/we7/pages/templates/news.wxml"></import>
|
||||
<view class="page_gap page_news">
|
||||
<text class="h1" id="newsTitle">{{newsData.sTitle}}</text>
|
||||
<view class="news_info">
|
||||
<text class="span" id="newsAuthor">{{newsData.sFrom}}</text>
|
||||
<text class="span" id="newsDate">{{newsData.time}}</text>
|
||||
</view>
|
||||
<view id="font-adjust">
|
||||
<view class="news_relative" id="newsRelative"></view>
|
||||
<view class="summary_block" id="summary">{{newsData.sDescription}}</view>
|
||||
<view class="news_txt" id="newsContent">
|
||||
<template is="newsDetail" data="{{...newsData}}"></template>
|
||||
</view>
|
||||
</view>
|
||||
</view>
|
93
we7/pages/newsDetail/newsDetail.wxss
Normal file
93
we7/pages/newsDetail/newsDetail.wxss
Normal file
@@ -0,0 +1,93 @@
|
||||
.page_gap {
|
||||
padding: 16px 15px;
|
||||
}
|
||||
.page_news {
|
||||
background-color: #fff;
|
||||
}
|
||||
.page_news a {
|
||||
color: #106fbc;
|
||||
}
|
||||
.page_news .h1 {
|
||||
color: #373737;
|
||||
display: block;
|
||||
font-size: 21px;
|
||||
font-weight: 700;
|
||||
letter-spacing: 0.5px;
|
||||
line-height: 1.3;
|
||||
margin-bottom: 11px;
|
||||
}
|
||||
.news_info {
|
||||
color: rgba(89, 89, 89, 0.6);
|
||||
float: left;
|
||||
font-size: 12px;
|
||||
margin-bottom: 15px;
|
||||
}
|
||||
.news_info .span {
|
||||
display: inline-block;
|
||||
margin-right: 8px;
|
||||
}
|
||||
.summary_block {
|
||||
background-color: #ececec;
|
||||
border-radius: 0 3px 3px 3px;
|
||||
box-sizing: border-box;
|
||||
font-size: 14px;
|
||||
line-height: 1.8;
|
||||
margin-bottom: 20px;
|
||||
padding: 10px;
|
||||
position: relative;
|
||||
text-align: justify;
|
||||
text-indent: 30px;
|
||||
word-break: break-all;
|
||||
}
|
||||
.summary_block:before {
|
||||
background-color: #f79464;
|
||||
border-radius: 0 3px 3px 0;
|
||||
color: #fff;
|
||||
content: "摘要";
|
||||
display: inline-block;
|
||||
font-size: 12px;
|
||||
left: 0;
|
||||
line-height: 1.6;
|
||||
padding: 0 4px;
|
||||
position: absolute;
|
||||
text-indent: 0;
|
||||
top: 0;
|
||||
z-index: 10;
|
||||
}
|
||||
.news_relative {
|
||||
clear: both;
|
||||
font-size: 12px;
|
||||
margin-bottom: 13px;
|
||||
}
|
||||
.news_relative p {
|
||||
line-height: 1.7;
|
||||
}
|
||||
.news_relative p span {
|
||||
color: rgba(89, 89, 89, 0.6);
|
||||
}
|
||||
.news_relative p a {
|
||||
margin-right: 10px;
|
||||
}
|
||||
.news_txt {
|
||||
color: #252525;
|
||||
font-size: 16px;
|
||||
line-height: 1.8;
|
||||
padding-bottom: 30px;
|
||||
word-break: break-all;
|
||||
}
|
||||
.news_txt .div {
|
||||
margin-bottom: 12px;
|
||||
text-align: justify;
|
||||
}
|
||||
.news_txt .a {
|
||||
color: #106fbc;
|
||||
position: relative;
|
||||
}
|
||||
.news_txt .b {
|
||||
font-weight: 700;
|
||||
}
|
||||
.news_txt .img {
|
||||
display: block;
|
||||
padding: 5px;
|
||||
width: 100%;
|
||||
}
|
135
we7/pages/selectarea/selectarea.js
Normal file
135
we7/pages/selectarea/selectarea.js
Normal file
@@ -0,0 +1,135 @@
|
||||
var e, t, a;
|
||||
(e = require("../utils/util")),
|
||||
(t = "http://japi.zto.cn/zto/api_utf8/baseArea?msg_type=GET_AREA&data="),
|
||||
(a = {
|
||||
addDot: function (e) {
|
||||
e instanceof Array &&
|
||||
e.map(function (e) {
|
||||
return e.fullName.length > 4
|
||||
? ((e.fullNameDot = e.fullName.slice(0, 4) + "..."), e)
|
||||
: ((e.fullNameDot = e.fullName), e);
|
||||
});
|
||||
},
|
||||
load: function (d) {
|
||||
d.setData({ isShow: !1 }),
|
||||
(0, e.Promise)(wx.request, { url: t + "0", method: "GET" })
|
||||
.then(function (l) {
|
||||
var c = l.data.result[0];
|
||||
return (
|
||||
a.addDot(l.data.result),
|
||||
d.setData({
|
||||
proviceData: l.data.result,
|
||||
"selectedProvince.index": 0,
|
||||
"selectedProvince.code": c.code,
|
||||
"selectedProvince.fullName": c.fullName,
|
||||
}),
|
||||
(0, e.Promise)(wx.request, { url: t + c.code, method: "GET" })
|
||||
);
|
||||
})
|
||||
.then(function (l) {
|
||||
var c = l.data.result[0];
|
||||
return (
|
||||
a.addDot(l.data.result),
|
||||
d.setData({
|
||||
cityData: l.data.result,
|
||||
"selectedCity.index": 0,
|
||||
"selectedCity.code": c.code,
|
||||
"selectedCity.fullName": c.fullName,
|
||||
}),
|
||||
(0, e.Promise)(wx.request, { url: t + c.code, method: "GET" })
|
||||
);
|
||||
})
|
||||
.then(function (e) {
|
||||
var t = e.data.result[0];
|
||||
a.addDot(e.data.result),
|
||||
d.setData({
|
||||
districtData: e.data.result,
|
||||
"selectedDistrict.index": 0,
|
||||
"selectedDistrict.code": t.code,
|
||||
"selectedDistrict.fullName": t.fullName,
|
||||
});
|
||||
})
|
||||
.catch(function (e) {
|
||||
console.log(e);
|
||||
});
|
||||
},
|
||||
tapProvince: function (d, l) {
|
||||
var c = d.currentTarget.dataset;
|
||||
(0, e.Promise)(wx.request, { url: t + c.code, method: "GET" })
|
||||
.then(function (d) {
|
||||
return (
|
||||
a.addDot(d.data.result),
|
||||
l.setData({
|
||||
cityData: d.data.result,
|
||||
"selectedProvince.code": c.code,
|
||||
"selectedProvince.fullName": c.fullName,
|
||||
"selectedCity.code": d.data.result[0].code,
|
||||
"selectedCity.fullName": d.data.result[0].fullName,
|
||||
}),
|
||||
(0, e.Promise)(wx.request, {
|
||||
url: t + d.data.result[0].code,
|
||||
method: "GET",
|
||||
})
|
||||
);
|
||||
})
|
||||
.then(function (e) {
|
||||
a.addDot(e.data.result),
|
||||
l.setData({
|
||||
districtData: e.data.result,
|
||||
"selectedProvince.index": d.currentTarget.dataset.index,
|
||||
"selectedCity.index": 0,
|
||||
"selectedDistrict.index": 0,
|
||||
"selectedDistrict.code": e.data.result[0].code,
|
||||
"selectedDistrict.fullName": e.data.result[0].fullName,
|
||||
});
|
||||
})
|
||||
.catch(function (e) {
|
||||
console.log(e);
|
||||
});
|
||||
},
|
||||
tapCity: function (d, l) {
|
||||
var c = d.currentTarget.dataset;
|
||||
(0, e.Promise)(wx.request, { url: t + c.code, method: "GET" })
|
||||
.then(function (e) {
|
||||
a.addDot(e.data.result),
|
||||
l.setData({
|
||||
districtData: e.data.result,
|
||||
"selectedCity.index": d.currentTarget.dataset.index,
|
||||
"selectedCity.code": c.code,
|
||||
"selectedCity.fullName": c.fullName,
|
||||
"selectedDistrict.index": 0,
|
||||
"selectedDistrict.code": e.data.result[0].code,
|
||||
"selectedDistrict.fullName": e.data.result[0].fullName,
|
||||
});
|
||||
})
|
||||
.catch(function (e) {
|
||||
console.log(e);
|
||||
});
|
||||
},
|
||||
tapDistrict: function (e, t) {
|
||||
var a = e.currentTarget.dataset;
|
||||
t.setData({
|
||||
"selectedDistrict.index": e.currentTarget.dataset.index,
|
||||
"selectedDistrict.code": a.code,
|
||||
"selectedDistrict.fullName": a.fullName,
|
||||
});
|
||||
},
|
||||
confirm: function (e, t) {
|
||||
t.setData({
|
||||
address:
|
||||
t.data.selectedProvince.fullName +
|
||||
" " +
|
||||
t.data.selectedCity.fullName +
|
||||
" " +
|
||||
t.data.selectedDistrict.fullName,
|
||||
isShow: !1,
|
||||
});
|
||||
},
|
||||
cancel: function (e) {
|
||||
e.setData({ isShow: !1 });
|
||||
},
|
||||
choosearea: function (e) {
|
||||
e.setData({ isShow: !0 });
|
||||
},
|
||||
}),
|
||||
(module.exports = { SA: a });
|
19
we7/pages/selectarea/selectarea.wxml
Normal file
19
we7/pages/selectarea/selectarea.wxml
Normal file
@@ -0,0 +1,19 @@
|
||||
<view class="shade {{isShow?'show':''}}">
|
||||
<view class="selector-area box box-tb">
|
||||
<view class="handle-bar box box-lr box-align-center">
|
||||
<text bindtap="cancel" class="btn cancel flex">取消</text>
|
||||
<text bindtap="confirm" class="btn confirm flex">确定</text>
|
||||
</view>
|
||||
<view class="area-selector box box-lr">
|
||||
<scroll-view class="selector province flex" data-type="province" scrollY="true">
|
||||
<view bindtap="tapProvince" class="picker {{selectedProvince.index==index?'actived':''}}" data-code="{{item.code}}" data-full-name="{{item.fullName}}" data-index="{{index}}" wx:for="{{proviceData}}">{{item.fullNameDot}}</view>
|
||||
</scroll-view>
|
||||
<scroll-view class="selector city flex" data-type="city" scrollY="true">
|
||||
<view bindtap="tapCity" class="picker {{selectedCity.index==index?'actived':''}}" data-code="{{item.code}}" data-full-name="{{item.fullName}}" data-index="{{index}}" wx:for="{{cityData}}">{{item.fullNameDot}}</view>
|
||||
</scroll-view>
|
||||
<scroll-view class="selector district flex" data-type="district" scrollY="true">
|
||||
<view bindtap="tapDistrict" class="picker {{selectedDistrict.index==index?'actived':''}}" data-code="{{item.code}}" data-full-name="{{item.fullName}}" data-index="{{index}}" wx:for="{{districtData}}">{{item.fullNameDot}}</view>
|
||||
</scroll-view>
|
||||
</view>
|
||||
</view>
|
||||
</view>
|
50
we7/pages/selectarea/selectarea.wxss
Normal file
50
we7/pages/selectarea/selectarea.wxss
Normal file
@@ -0,0 +1,50 @@
|
||||
.shade {
|
||||
background-color: #ccc;
|
||||
display: none;
|
||||
height: 100%;
|
||||
left: 0;
|
||||
opacity: 0.6;
|
||||
position: absolute;
|
||||
top: 0;
|
||||
width: 100%;
|
||||
}
|
||||
.show {
|
||||
display: block;
|
||||
}
|
||||
.handle-bar {
|
||||
background-color: #eee;
|
||||
height: 80rpx;
|
||||
padding: 0 15px;
|
||||
}
|
||||
.confirm {
|
||||
text-align: right;
|
||||
}
|
||||
.selector-area {
|
||||
background-color: #e6ebf3;
|
||||
bottom: 0;
|
||||
height: 600rpx;
|
||||
position: absolute;
|
||||
width: 100%;
|
||||
}
|
||||
.selector {
|
||||
text-align: center;
|
||||
}
|
||||
.picker {
|
||||
font-size: 32rpx;
|
||||
height: 60rpx;
|
||||
line-height: 60rpx;
|
||||
}
|
||||
.actived {
|
||||
color: blue;
|
||||
}
|
||||
.area-selector {
|
||||
height: 520rpx;
|
||||
}
|
||||
.white-shade {
|
||||
background-color: #fff;
|
||||
height: 60rpx;
|
||||
left: 0;
|
||||
margin-top: 240rpx;
|
||||
position: absolute;
|
||||
width: 100%;
|
||||
}
|
24
we7/pages/templates/footer.wxml
Normal file
24
we7/pages/templates/footer.wxml
Normal file
@@ -0,0 +1,24 @@
|
||||
<template name="footerWx">
|
||||
<view class="we7-bottom" style="background-color:{{backgroundColor}};border-color:{{borderStyle}}" wx:if="{{list}}">
|
||||
<block wx:for="{{list}}" wx:key="{{index}}">
|
||||
<view class="we7-bottom-item" hoverClass="active" wx:if="{{item.pageUrl=='/'+thisurl}}">
|
||||
<navigator hoverClass="active" openType="redirect" url="{{item.pagePath}}">
|
||||
<image class="item-img" mode="widthFix" src="{{item.selectedIconPath}}"></image>
|
||||
<view class="item-text" style="color: {{selectedColor}};">{{item.text}}</view>
|
||||
</navigator>
|
||||
</view>
|
||||
<view class="we7-bottom-item" hoverClass="active" wx:else>
|
||||
<navigator hoverClass="active" openType="redirect" url="{{item.pagePath}}">
|
||||
<image class="item-img" mode="widthFix" src="{{item.iconPath}}"></image>
|
||||
<view class="item-text" style="color: {{color}}">{{item.text}}</view>
|
||||
</navigator>
|
||||
</view>
|
||||
</block>
|
||||
</view>
|
||||
<view class="we7-bottom-placeholder"></view>
|
||||
</template>
|
||||
<template name="goHome">
|
||||
<navigator class="goHome" hoverClass="active" openType="redirect" url="/we7/pages/index/index">
|
||||
<image mode="widthFix" src="/we7/resource/images/home.png"></image>
|
||||
</navigator>
|
||||
</template>
|
0
we7/pages/templates/footer.wxss
Normal file
0
we7/pages/templates/footer.wxss
Normal file
12
we7/pages/templates/news.wxml
Normal file
12
we7/pages/templates/news.wxml
Normal file
@@ -0,0 +1,12 @@
|
||||
<template name="newsDetail">
|
||||
<block wx:for="{{content}}" wx:for-index="idy" wx:for-item="cellData">
|
||||
<view class="p" wx:if="{{cellData.type=='view'}}">
|
||||
<block wx:for="{{cellData.child}}" wx:key="text">
|
||||
<text bindtap="stockClick" class="a" data-seccode="{{item.attr['data-seccode']}}" data-secname="{{item.attr['data-secname']}}" wx:if="{{item.type=='a'}}">{{item.text}}</text>
|
||||
<text wx:else>{{item.text}}</text>
|
||||
</block>
|
||||
</view>
|
||||
<block wx:if="{{cellData.type=='img'}}"> {{wn_html_images}} <image bindload="imageLoad" class="img" data-index="{{idy}}" mode="widthFix" src="{{cellData.attr.src}}" style="width: {{cellData['attr']['width']}};max-width: 100%;height: {{cellData['attr']['height']?cellData['attr']['height']:auto}}"></image>
|
||||
</block>
|
||||
</block>
|
||||
</template>
|
0
we7/pages/templates/news.wxss
Normal file
0
we7/pages/templates/news.wxss
Normal file
12
we7/pages/user/index/index.js
Normal file
12
we7/pages/user/index/index.js
Normal file
@@ -0,0 +1,12 @@
|
||||
var n;
|
||||
(n = getApp()),
|
||||
Page({
|
||||
data: { text: "微擎我的" },
|
||||
onLoad: function (o) {
|
||||
n.util.footer(this);
|
||||
},
|
||||
onReady: function () {},
|
||||
onShow: function () {},
|
||||
onHide: function () {},
|
||||
onUnload: function () {},
|
||||
});
|
7
we7/pages/user/index/index.wxml
Normal file
7
we7/pages/user/index/index.wxml
Normal file
@@ -0,0 +1,7 @@
|
||||
<view class="container">
|
||||
<view class="textContainer">
|
||||
<text class="textStyle">{{text}}</text>
|
||||
</view>
|
||||
</view>
|
||||
<import src="/we7/pages/templates/footer.wxml"></import>
|
||||
<template is="footerWx" data="{{...tabBar}}"></template>
|
16
we7/pages/user/index/index.wxss
Normal file
16
we7/pages/user/index/index.wxss
Normal file
@@ -0,0 +1,16 @@
|
||||
.container {
|
||||
box-sizing: border-box;
|
||||
height: 100%;
|
||||
justify-content: space-between;
|
||||
padding: 200rpx 0;
|
||||
}
|
||||
.container,
|
||||
.textStyle {
|
||||
align-items: center;
|
||||
display: -webkit-flex;
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
}
|
||||
.textContainer {
|
||||
margin-top: 200px;
|
||||
}
|
Reference in New Issue
Block a user