Meimei 6 years ago
parent
commit
6dc0a3d86c
  1. 2
      .gitignore
  2. 3
      app.json
  3. BIN
      components/image-button/images/btn_bg.png
  4. 26
      components/image-button/index.js
  5. 4
      components/image-button/index.json
  6. 5
      components/image-button/index.wxml
  7. 19
      components/image-button/index.wxss
  8. 4
      components/segment/index.js
  9. 4
      components/segment/index.wxml
  10. 6
      components/segment/index.wxss
  11. BIN
      images/billboard/2.png
  12. BIN
      images/common/btn_bg_disable.png
  13. BIN
      images/common/close.png
  14. 380
      pages/article/index.js
  15. 4
      pages/article/index.json
  16. 7
      pages/article/index.wxml
  17. 17
      pages/article/index.wxss
  18. 12
      pages/billboards/firm/index.js
  19. 3
      pages/billboards/firm/index.json
  20. 15
      pages/billboards/firm/index.wxml
  21. 14
      pages/billboards/firm/index.wxss
  22. 2
      pages/billboards/park/index.json
  23. 2
      pages/billboards/policy/components/tags/index.wxml
  24. 11
      pages/billboards/policy/index.wxss
  25. 42
      pages/billboards/policy/policy-list/index.js
  26. 5
      pages/billboards/policy/policy-list/index.json
  27. 9
      pages/billboards/policy/policy-list/index.wxml
  28. 16
      pages/billboards/policy/policy-list/index.wxss
  29. 5
      pages/home/index.js
  30. 57
      pages/register/index.js
  31. 9
      pages/register/index.json
  32. 25
      pages/register/index.wxml
  33. 35
      pages/register/index.wxss
  34. 11
      project.config.json

2
.gitignore

@ -3,6 +3,8 @@
# Logs # Logs
logs logs
*.log *.log
# 项目配置文件
project.config.json
# Runtime data # Runtime data
pids pids

3
app.json

@ -7,11 +7,12 @@
"pages/billboards/firm/index", "pages/billboards/firm/index",
"pages/billboards/park/index", "pages/billboards/park/index",
"pages/billboards/policy/index", "pages/billboards/policy/index",
"pages/billboards/policy/policy-list/index",
"pages/topics/common/interactive/index", "pages/topics/common/interactive/index",
"pages/topics/common/message/index", "pages/topics/common/message/index",
"pages/topics/common/goodIdea/index", "pages/topics/common/goodIdea/index",
"pages/article/index", "pages/article/index",
"pages/billboards/policy/policy-list/index", "pages/register/index",
"pages/user/common/myActivity/index", "pages/user/common/myActivity/index",
"pages/user/common/myFavorite/index", "pages/user/common/myFavorite/index",
"pages/user/common/myIdea/index", "pages/user/common/myIdea/index",

BIN
components/image-button/images/btn_bg.png

Binary file not shown.

After

Width:  |  Height:  |  Size: 10 KiB

26
components/image-button/index.js

@ -0,0 +1,26 @@
// components/image-botton/index.js
Component({
/**
* 组件的属性列表
*/
properties: {
title: String,
},
/**
* 组件的初始数据
*/
data: {
},
/**
* 组件的方法列表
*/
methods: {
onTap () {
console.log('onTap')
this.triggerEvent('onTap')
}
}
})

4
components/image-button/index.json

@ -0,0 +1,4 @@
{
"component": true,
"usingComponents": {}
}

5
components/image-button/index.wxml

@ -0,0 +1,5 @@
<!--components/image-botton/index.wxml-->
<view class="image-button" bindtap="onTap">
<image class="image-btn-bg" src="images/btn_bg.png"></image>
{{title}}
</view>

19
components/image-button/index.wxss

@ -0,0 +1,19 @@
/* components/image-botton/index.wxss */
.image-button {
width: 100%;
height: 50px;
position: relative;
display: flex;
justify-content: center;
align-items: center;
color: white;
font-size: 15px;
}
.image-btn-bg {
position: absolute;
top: 0;
left: 0;
width: 100%;
height: 100%;
z-index: -1;
}

4
components/segment/index.js

@ -30,9 +30,9 @@ Component({
*/ */
methods: { methods: {
bindtap: function (e) { bindtap: function (e) {
const { item } = e.currentTarget.dataset const item = e.currentTarget.dataset
this.setData({ this.setData({
selectedTitle: item selectedTitle: item.item
}) })
this.triggerEvent('tapSegment', item) this.triggerEvent('tapSegment', item)
}, },

4
components/segment/index.wxml

@ -4,10 +4,10 @@
<view class="header-titles"> <view class="header-titles">
<block wx:for="{{headerTitles}}" wx:key="index" > <block wx:for="{{headerTitles}}" wx:key="index" >
<view class="item-title"> <view class="item-title">
<view id="{{index}}" bindtap="bindtap" data-item="{{index}}" class="title {{index==selectedTitle ? 'title-selected' : ''}}"> <view id="{{index}}" bindtap="bindtap" data-content="{{item}}" data-item="{{index}}" class="title {{index==selectedTitle ? 'title-selected' : ''}}">
{{item}} {{item}}
</view> </view>
<view class="select-line" hidden="{{index==selectedTitle ? false : true}}"></view> <view class="select-line {{index==selectedTitle ? 'select-line-active': ''}}"></view>
</view> </view>
</block> </block>
</view> </view>

6
components/segment/index.wxss

@ -18,6 +18,7 @@
display: flex; display: flex;
flex-direction: column; flex-direction: column;
align-items: center; align-items: center;
transition: 0.5s all ease-in-out;
} }
.title-selected { .title-selected {
font-size: 16px; font-size: 16px;
@ -25,9 +26,12 @@
} }
.select-line{ .select-line{
margin-top: 4px; margin-top: 4px;
width: 10px;
height: 2px; height: 2px;
border-radius: 5px; border-radius: 5px;
transition: 0.5s all ease-in-out;
}
.select-line-active {
width: 10px;
background-color: #FA4646; background-color: #FA4646;
} }

BIN
images/billboard/2.png

Binary file not shown.

Before

Width:  |  Height:  |  Size: 50 KiB

After

Width:  |  Height:  |  Size: 49 KiB

BIN
images/common/btn_bg_disable.png

Binary file not shown.

After

Width:  |  Height:  |  Size: 247 B

BIN
images/common/close.png

Binary file not shown.

After

Width:  |  Height:  |  Size: 278 B

380
pages/article/index.js

@ -5,10 +5,385 @@ Page({
* 页面的初始数据 * 页面的初始数据
*/ */
data: { data: {
nodes: '<h1 style="color: red;">我是内容</h1>', nodes: `
<section data-tplid="95330" data-tools="135编辑器">
<section class="_135editor">
<section style="width: 100%;" data-width="100%">
<section style="display: flex;justify-content: space-between;align-items:flex-end;margin-bottom: -2.4em;" class="">
<section style="margin-left:0.5em;display: flex;justify-content: center;align-items: flex-end;" class="">
<section style=" width:4em;" class="">
<img style="width: 100%;display: block;" src="https://image2.135editor.com/cache/remote/aHR0cHM6Ly9tbWJpei5xbG9nby5jbi9tbWJpel9wbmcvN1FSVHZrSzJxQzY3aWM4TGd1QlNyTndaNlhwaGNBMlphckk3YW9NaEhhd01naWNISGgwZXJlbVVRaGppYmlhaWFYM01pYkFFbjk3cjRpY3FEaDkyTVFJMjZLU3VnLzA=" data-width="100%" data-ratio="1"/>
</section>
<section style=" width:3.5em;margin-left: 0.5em;" class="">
<img style="width: 100%;display: block;" src="https://image2.135editor.com/cache/remote/aHR0cHM6Ly9tbWJpei5xbG9nby5jbi9tbWJpel9wbmcvN1FSVHZrSzJxQzY3aWM4TGd1QlNyTndaNlhwaGNBMlphckk3YW9NaEhhd01naWNISGgwZXJlbVVRaGppYmlhaWFYM01pYkFFbjk3cjRpY3FEaDkyTVFJMjZLU3VnLzA=" data-width="100%" data-ratio="1"/>
</section>
</section>
<section style="margin-right:0.5em;display: flex;justify-content: center;align-items: flex-end;">
<section style=" width:3.5em;" class="">
<img style="width: 100%;display: block;" src="https://image2.135editor.com/cache/remote/aHR0cHM6Ly9tbWJpei5xbG9nby5jbi9tbWJpel9wbmcvN1FSVHZrSzJxQzY3aWM4TGd1QlNyTndaNlhwaGNBMlphckk3YW9NaEhhd01naWNISGgwZXJlbVVRaGppYmlhaWFYM01pYkFFbjk3cjRpY3FEaDkyTVFJMjZLU3VnLzA=" data-width="100%" data-ratio="1"/>
</section>
<section style=" width:4.2em;margin-left: 0.5em;" class="">
<img style="width: 100%;display: block;" src="https://image2.135editor.com/cache/remote/aHR0cHM6Ly9tbWJpei5xbG9nby5jbi9tbWJpel9wbmcvN1FSVHZrSzJxQzY3aWM4TGd1QlNyTndaNlhwaGNBMlphckk3YW9NaEhhd01naWNISGgwZXJlbVVRaGppYmlhaWFYM01pYkFFbjk3cjRpY3FEaDkyTVFJMjZLU3VnLzA=" data-width="100%" data-ratio="1"/>
</section>
</section>
</section>
<section style="width: 100%;text-align:center;height:60px; background: url(https://image2.135editor.com/cache/remote/aHR0cHM6Ly9tbWJpei5xbG9nby5jbi9tbWJpel9wbmcvN1FSVHZrSzJxQzY3aWM4TGd1QlNyTndaNlhwaGNBMlphMzkwYVFjbHdwWkRwZE50aWJDc29tOGNTQ25BazNMTEpMSkNIN3FSMXVYaWNucEhQOGRpYUZtaWE4Zy8w)repeat-x;background-size:68px 58px;background-position:center ;" data-width="100%" class="">
<section style="width:2.6em;display: inline-block;margin-top:10px;" class="">
<img style="width: 100%;display: block;" src="https://image2.135editor.com/cache/remote/aHR0cHM6Ly9tbWJpei5xbG9nby5jbi9tbWJpel9wbmcvN1FSVHZrSzJxQzZ0SUd2YzNvekNIY0Jvbnl3STdmRFZMSnFiaWFoaGVIRmhDcldkNnhyYnpjRTNLbVVXZGlhZDFTMjRJSUJvR2R5aWFYckE3WEFRV0F3UkEvMD93eF9mbXQ9cG5n" data-width="100%" data-ratio="1"/>
</section>
</section>
<section style="padding: 0px 0.6em; box-sizing: border-box;" class="">
<section style="border-right: 1px solid rgb(212, 10, 17); border-bottom: 1px solid rgb(212, 10, 17); border-left: 1px solid rgb(212, 10, 17); border-image: initial; border-top: none; box-sizing: border-box;" class="">
<section data-autoskip="1" class="135brush" style="font-size: 14px; letter-spacing: 1.5px; color: rgb(51, 51, 51); line-height: 1.75em; padding: 0.4em 1em; text-align: justify; box-sizing: border-box;">
<p style="text-align:center; margin: 1em auto; font-size: 12px; line-height: 1.75em; letter-spacing: 1px;" align="center">
<span style="color: #3F3F3F; font-size: 18px; font-family: &quot;Helvetica Neue&quot;, Helvetica, &quot;Hiragino Sans GB&quot;, &quot;Apple Color Emoji&quot;, &quot;Emoji Symbols Font&quot;, &quot;Segoe UI Symbol&quot;, Arial, sans-serif;"><strong> </strong></span>
</p>
<section class="135brush" data-brushtype="text" style="text-align: center;letter-spacing:1px;margin: 1em auto;font-size:12px;">
<p style="letter-spacing: 1px; line-height: 1.75em;">
<span style="color: #3F3F3F; font-family: &quot;Helvetica Neue&quot;, Helvetica, &quot;Hiragino Sans GB&quot;, &quot;Apple Color Emoji&quot;, &quot;Emoji Symbols Font&quot;, &quot;Segoe UI Symbol&quot;, Arial, sans-serif;"><strong><span style="font-size: 14px; color: #3F3F3F; font-family: &quot;Helvetica Neue&quot;, Helvetica, &quot;Hiragino Sans GB&quot;, &quot;Apple Color Emoji&quot;, &quot;Emoji Symbols Font&quot;, &quot;Segoe UI Symbol&quot;, Arial, sans-serif;">1921.7 ~ 2019.7</span></strong><strong><span style="font-size: 14px; color: #3F3F3F; font-family: &quot;Helvetica Neue&quot;, Helvetica, &quot;Hiragino Sans GB&quot;, &quot;Apple Color Emoji&quot;, &quot;Emoji Symbols Font&quot;, &quot;Segoe UI Symbol&quot;, Arial, sans-serif;"></span></strong></span>
</p>
<p style="letter-spacing: 1px; line-height: 1.75em;">
<span style="color: #3F3F3F; font-family: &quot;Helvetica Neue&quot;, Helvetica, &quot;Hiragino Sans GB&quot;, &quot;Apple Color Emoji&quot;, &quot;Emoji Symbols Font&quot;, &quot;Segoe UI Symbol&quot;, Arial, sans-serif;"><strong><span style="font-size: 14px; color: #3F3F3F; font-family: &quot;Helvetica Neue&quot;, Helvetica, &quot;Hiragino Sans GB&quot;, &quot;Apple Color Emoji&quot;, &quot;Emoji Symbols Font&quot;, &quot;Segoe UI Symbol&quot;, Arial, sans-serif;">筚路蓝缕砥砺前行</span></strong><strong><span style="font-size: 14px; color: #3F3F3F; font-family: &quot;Helvetica Neue&quot;, Helvetica, &quot;Hiragino Sans GB&quot;, &quot;Apple Color Emoji&quot;, &quot;Emoji Symbols Font&quot;, &quot;Segoe UI Symbol&quot;, Arial, sans-serif;"></span></strong></span>
</p>
<p style="letter-spacing: 1px; line-height: 1.75em;">
<span style="color: #3F3F3F; font-family: &quot;Helvetica Neue&quot;, Helvetica, &quot;Hiragino Sans GB&quot;, &quot;Apple Color Emoji&quot;, &quot;Emoji Symbols Font&quot;, &quot;Segoe UI Symbol&quot;, Arial, sans-serif;"><strong><span style="font-size: 14px; color: #3F3F3F; font-family: &quot;Helvetica Neue&quot;, Helvetica, &quot;Hiragino Sans GB&quot;, &quot;Apple Color Emoji&quot;, &quot;Emoji Symbols Font&quot;, &quot;Segoe UI Symbol&quot;, Arial, sans-serif;">初心不忘迈向复兴</span></strong></span>
</p>
<p style="letter-spacing: 1px; line-height: 1.75em;">
<br/>
</p>
<section style="padding: 10px; box-sizing: border-box;" class="">
<section style="width: 100%" data-width="100%">
<section style="width: 100%; padding-bottom: 60%; height: 0px; text-align: center; vertical-align: top; overflow: hidden; background-image: url(&quot;https://image.135editor.com/files/users/455/4550562/201906/XZuYaQ9T_zDxp.png&quot;); background-size: cover; background-repeat: no-repeat; background-position: center center; box-sizing: border-box;" data-role="square" class="135bg" data-width="100%">
<section style="width: 100%; padding-bottom: 20%; background-image: url(&quot;https://image2.135editor.com/cache/remote/aHR0cHM6Ly9tbWJpei5xbG9nby5jbi9tbWJpel9wbmcvdU4xTElhdjdvSjhkcEhhM1ZYaWFTcFQwZnBaMzdPQ3V6S2gzeG9FYlBOME5BUkRxSXYxb2lhTGZrcnB2WDZIdElqZWc1ODJhd2RpYmJiNXFxVGZ1OTB0T1EvMD93eF9mbXQ9cG5n&quot;); background-size: contain; background-repeat: no-repeat; box-sizing: border-box;" data-width="100%" class=""></section><img src="https://image.135editor.com/files/users/455/4550562/201906/XZuYaQ9T_zDxp.png" style="width: 100%;visibility: visible;opacity: 0;" data-width="100%" data-ratio="0.5544303797468354" data-op="change" title="undefined" alt=""/>
</section>
</section>
</section>
</section>
</section>
</section>
</section>
</section>
</section>
<section class="_135editor">
<section>
<p style="text-align:center;margin: 0px; padding: 0px; max-width: 100%; box-sizing: border-box; clear: both; min-height: 1em; color: rgb(51, 51, 51); font-size: 14px; font-weight: normal; letter-spacing: 1px; line-height: 1.75em; word-wrap: break-word !important; font-family: -apple-system-font, BlinkMacSystemFont, &quot;Helvetica Neue&quot;, &quot;PingFang SC&quot;, &quot;Hiragino Sans GB&quot;, &quot;Microsoft YaHei UI&quot;, &quot;Microsoft YaHei&quot;, Arial, sans-serif;" align="center">
<span style="color: #3F3F3F; font-size: 14px; font-family: &quot;Helvetica Neue&quot;, Helvetica, &quot;Hiragino Sans GB&quot;, &quot;Apple Color Emoji&quot;, &quot;Emoji Symbols Font&quot;, &quot;Segoe UI Symbol&quot;, Arial, sans-serif;">98对于一个人也许很漫长</span>
</p>
<p style="text-align:center;margin: 0px; padding: 0px; max-width: 100%; box-sizing: border-box; clear: both; min-height: 1em; color: rgb(51, 51, 51); font-size: 14px; font-weight: normal; letter-spacing: 1px; line-height: 1.75em; word-wrap: break-word !important; font-family: -apple-system-font, BlinkMacSystemFont, &quot;Helvetica Neue&quot;, &quot;PingFang SC&quot;, &quot;Hiragino Sans GB&quot;, &quot;Microsoft YaHei UI&quot;, &quot;Microsoft YaHei&quot;, Arial, sans-serif;" align="center">
<span style="color: #3F3F3F; font-size: 14px; font-family: &quot;Helvetica Neue&quot;, Helvetica, &quot;Hiragino Sans GB&quot;, &quot;Apple Color Emoji&quot;, &quot;Emoji Symbols Font&quot;, &quot;Segoe UI Symbol&quot;, Arial, sans-serif;">对于一个国家弹指一挥间</span>
</p>
<p style="text-align:center;margin: 0px; padding: 0px; max-width: 100%; box-sizing: border-box; clear: both; min-height: 1em; color: rgb(51, 51, 51); font-size: 14px; font-weight: normal; letter-spacing: 1px; line-height: 1.75em; word-wrap: break-word !important; font-family: -apple-system-font, BlinkMacSystemFont, &quot;Helvetica Neue&quot;, &quot;PingFang SC&quot;, &quot;Hiragino Sans GB&quot;, &quot;Microsoft YaHei UI&quot;, &quot;Microsoft YaHei&quot;, Arial, sans-serif;" align="center">
<span style="color: #3F3F3F; font-size: 14px; font-family: &quot;Helvetica Neue&quot;, Helvetica, &quot;Hiragino Sans GB&quot;, &quot;Apple Color Emoji&quot;, &quot;Emoji Symbols Font&quot;, &quot;Segoe UI Symbol&quot;, Arial, sans-serif;">对于一个政党恰是风华正茂</span>
</p>
<p style="text-align:center;margin: 0px; padding: 0px; max-width: 100%; box-sizing: border-box; clear: both; min-height: 1em; color: rgb(51, 51, 51); font-size: 14px; font-weight: normal; letter-spacing: 1px; line-height: 1.75em; word-wrap: break-word !important; font-family: -apple-system-font, BlinkMacSystemFont, &quot;Helvetica Neue&quot;, &quot;PingFang SC&quot;, &quot;Hiragino Sans GB&quot;, &quot;Microsoft YaHei UI&quot;, &quot;Microsoft YaHei&quot;, Arial, sans-serif;" align="center">
<span style="color: #3F3F3F; font-size: 14px; font-family: &quot;Helvetica Neue&quot;, Helvetica, &quot;Hiragino Sans GB&quot;, &quot;Apple Color Emoji&quot;, &quot;Emoji Symbols Font&quot;, &quot;Segoe UI Symbol&quot;, Arial, sans-serif;">今年党的98岁生日</span>
</p>
<p style="text-align:center;margin: 0px; padding: 0px; max-width: 100%; box-sizing: border-box; clear: both; min-height: 1em; color: rgb(51, 51, 51); font-size: 14px; font-weight: normal; letter-spacing: 1px; line-height: 1.75em; word-wrap: break-word !important; font-family: -apple-system-font, BlinkMacSystemFont, &quot;Helvetica Neue&quot;, &quot;PingFang SC&quot;, &quot;Hiragino Sans GB&quot;, &quot;Microsoft YaHei UI&quot;, &quot;Microsoft YaHei&quot;, Arial, sans-serif;" align="center">
<span style="color: #3F3F3F; font-size: 14px; font-family: &quot;Helvetica Neue&quot;, Helvetica, &quot;Hiragino Sans GB&quot;, &quot;Apple Color Emoji&quot;, &quot;Emoji Symbols Font&quot;, &quot;Segoe UI Symbol&quot;, Arial, sans-serif;">热烈庆祝中国共产党98周年快乐</span>
</p>
</section>
</section>
<p>
<br/>
</p>
<section class="">
<section class="">
<p>
<br/>
</p>
</section>
</section>
<section class="_135editor">
<section style="width:50%;margin: 0px auto;">
<img style="width: 100%;display: block;" src="https://image2.135editor.com/cache/remote/aHR0cHM6Ly9tbWJpei5xbG9nby5jbi9tbWJpel9naWYvN1FSVHZrSzJxQzVRRGRRSlBuR3hpYjRrMEplQlo0NHlrNFhySWhSbEN0TUFVY3dSTEVNWUdlWk03SUJpY1VoS1cxbHRnNGJYTUVqaWJZeHlsQWROQWdVUXcvMD93eF9mbXQ9Z2lm" data-ratio="1" data-width="100%"/>
</section>
</section>
<section class="">
<section class="">
<p>
<br/>
</p>
</section>
<p>
<br/>
</p>
</section>
<section class="_135editor">
<section>
<p style="text-align:center; letter-spacing: 1px; line-height: 1.75em;" align="center">
<span style="font-weight: normal; letter-spacing: 0.544px; text-align: justify; text-indent: 28px; color: #3F3F3F; font-size: 14px; display: inline !important; font-family: &quot;Helvetica Neue&quot;, Helvetica, &quot;Hiragino Sans GB&quot;, &quot;Apple Color Emoji&quot;, &quot;Emoji Symbols Font&quot;, &quot;Segoe UI Symbol&quot;, Arial, sans-serif;">作为社会主义接班人我们本应了解一些党的基本知识</span>
</p>
<p style="text-align:center; letter-spacing: 1px; line-height: 1.75em;" align="center">
<br/>
</p>
</section>
</section>
<p>
<br/>
</p>
<section class="_135editor">
<section style="text-align: center; width: auto; letter-spacing: 1px; line-height: 1.75em;">
<section style="width:100%;display: inline-block;" data-width="100%">
<section style="display: flex;justify-content: center;align-items: center;" class="">
<section style="width:2.8em;transform: scaleX(-1);-webkit-transform: scaleX(-1);-moz-transform: scaleX(-1);-o-transform: scaleX(-1);" class="">
<section style="width: 60%; height: 4px; background: rgb(212, 10, 17); border-radius: 6px; box-sizing: border-box;" data-width="60%"></section>
<section style="width: 80%; height: 4px; background: rgb(212, 10, 17); border-radius: 6px; margin: 5px 0px; box-sizing: border-box;" data-width="80%" class=""></section>
<section style="width: 60%; height: 4px; background: rgb(212, 10, 17); border-radius: 6px; box-sizing: border-box;" data-width="60%" class=""></section>
</section>
<section style="display:inline-block;margin-left:5px;">
<section style="padding: 4px 1.5em 5px; background-image: url(&quot;https://image2.135editor.com/cache/remote/aHR0cHM6Ly9tbWJpei5xbG9nby5jbi9tbWJpel9wbmcvN1FSVHZrSzJxQzY3aWM4TGd1QlNyTndaNlhwaGNBMlphNUpYSkthelMxMTBDM0pBb2xBN2lhZ0I0WEZCRlpkQ0dhbW1EZDRFNWdTeHFZQURxdjlaalpYQS8w&quot;); background-repeat: no-repeat; text-align: center; background-size: 100% 100%; color: rgb(254, 255, 254); font-size: 16px; letter-spacing: 1.5px; box-sizing: border-box;" class="135brush" data-brushtype="text">
<span style="font-size: 14px;">中国共产党名字由来</span>
</section>
</section>
<section style="width:2.8em;margin-left:5px;">
<section style="width: 60%; height: 4px; background: rgb(212, 10, 17); border-radius: 6px; box-sizing: border-box;" data-width="60%"></section>
<section style="width: 80%; height: 4px; background: rgb(212, 10, 17); border-radius: 6px; margin: 5px 0px; box-sizing: border-box;" data-width="80%"></section>
<section style="width: 60%; height: 4px; background: rgb(212, 10, 17); border-radius: 6px; box-sizing: border-box;" data-width="60%" class="">
<br/>
</section>
</section>
</section>
</section>
</section>
</section>
<p>
<br/>
</p>
<section class="_135editor">
<p style="letter-spacing: 1px; line-height: 1.75em;">
<span style="font-size: 14px;">最早提出中国共产党这一名称的是蔡和森1920年8月13日和9月16日正在留法勤工俭学的他在给毛泽东写的两封信中详细地研讨了共产党问题提出先要组织党共产党因为它是革命运动的发动者宣传者先锋队作战部</span>
</p>
</section>
<p>
<br/>
</p>
<section class="_135editor">
<section style="width:98%;margin: 0px auto;" data-width="98%">
<section style="height: 0px;width: 0px;border-top:0px solid transparent;border-left:45px solid #c72936;border-bottom:45px solid transparent;margin-bottom: -45px;transform: rotate(0deg);-webkit-transform: rotate(0deg);-moz-transform: rotate(0deg);-o-transform: rotate(0deg);"></section>
<section style="width: 100%;" data-width="100%" class="">
<img style="width: 100%;display: block;" src="https://image2.135editor.com/cache/remote/aHR0cHM6Ly9tbWJpei5xbG9nby5jbi9tbWJpel9wbmcvN1FSVHZrSzJxQzZWM2VXeldjSUwwdGlhSzFmekxlRnFvWENKOGVUdDg3Qlc3Y2w3WFVOeDVCQ2Y4ektZRkkzQzZIcm9waWFzakppY0FvMlhuYjdySjNuV3cvMD93eF9mbXQ9cG5n" data-width="100%" data-ratio="1"/>
</section>
<section style="height: 0px;width: 0px;border-top:0px solid transparent;border-right:45px solid #fefefe;border-top:45px solid transparent;float: right;margin-right: -5px; margin-top: -40px;transform: rotate(0deg);-webkit-transform: rotate(0deg);-moz-transform: rotate(0deg);-o-transform: rotate(0deg);"></section>
</section>
</section>
<p style="letter-spacing: 1px; line-height: 1.75em;">
<br/>
</p>
<section class="_135editor">
<p style="letter-spacing: 1px; line-height: 1.75em;">
<span style="font-size: 14px;">他在对西欧各国共产党特别是俄国共产党考察的基础上提出了具体的建党步骤其中包括明目张胆正式成立一个中国共产党</span>
</p>
<p>
<br/>
</p>
<p style="letter-spacing: 1px; line-height: 1.75em;">
<span style="font-size: 14px;">在此前后陈独秀在上海李大钊张申府在北京也通过信函讨论了党的名称问题决定采用共产党作为中国无产阶级政党的名称</span>
</p>
<p>
<br/>
</p><br/>
</section>
<section class="_135editor">
<section style="text-align: center; width: auto; letter-spacing: 1px; line-height: 1.75em;">
<section style="width:100%;display: inline-block;" data-width="100%">
<section style="display: flex;justify-content: center;align-items: center;" class="">
<section style="width:2.8em;transform: scaleX(-1);-webkit-transform: scaleX(-1);-moz-transform: scaleX(-1);-o-transform: scaleX(-1);" class="">
<section style="width: 60%; height: 4px; background: rgb(212, 10, 17); border-radius: 6px; box-sizing: border-box;" data-width="60%"></section>
<section style="width: 80%; height: 4px; background: rgb(212, 10, 17); border-radius: 6px; margin: 5px 0px; box-sizing: border-box;" data-width="80%"></section>
<section style="width: 60%; height: 4px; background: rgb(212, 10, 17); border-radius: 6px; box-sizing: border-box;" data-width="60%"></section>
</section>
<section style="display:inline-block;margin-left:5px;">
<section style="padding: 4px 1.5em 5px; background-image: url(&quot;https://image2.135editor.com/cache/remote/aHR0cHM6Ly9tbWJpei5xbG9nby5jbi9tbWJpel9wbmcvN1FSVHZrSzJxQzY3aWM4TGd1QlNyTndaNlhwaGNBMlphNUpYSkthelMxMTBDM0pBb2xBN2lhZ0I0WEZCRlpkQ0dhbW1EZDRFNWdTeHFZQURxdjlaalpYQS8w&quot;); background-repeat: no-repeat; text-align: center; background-size: 100% 100%; color: rgb(254, 255, 254); font-size: 16px; letter-spacing: 1.5px; box-sizing: border-box;" class="135brush" data-brushtype="text">
<span style="font-size: 14px;">建党节的由来</span>
</section>
</section>
<section style="width:2.8em;margin-left:5px;" class="">
<section style="width: 60%; height: 4px; background: rgb(212, 10, 17); border-radius: 6px; box-sizing: border-box;" data-width="60%"></section>
<section style="width: 80%; height: 4px; background: rgb(212, 10, 17); border-radius: 6px; margin: 5px 0px; box-sizing: border-box;" data-width="80%"></section>
<section style="width: 60%; height: 4px; background: rgb(212, 10, 17); border-radius: 6px; box-sizing: border-box;" data-width="60%">
<br/>
</section>
</section>
</section>
</section>
</section>
</section>
<p>
<br/>
</p>
<section class="_135editor">
<p style="letter-spacing: 1px; line-height: 1.75em;">
<span style="font-size: 14px;">九十七年前的盛夏七月毛泽东陈独秀和李大钊等中国第一代马克思主义革命家在上海和嘉兴召开了中国共产党第一次代表大会中国共产党正式成立伟大的革命发展征程就此开启</span>
</p>
</section>
<p>
<br/>
</p>
<section class="_135editor">
<section style="width:98%;margin: 0px auto;" data-width="98%">
<section style="height: 0px;width: 0px;border-top:0px solid transparent;border-left:45px solid #c72936;border-bottom:45px solid transparent;margin-bottom: -45px;transform: rotate(0deg);-webkit-transform: rotate(0deg);-moz-transform: rotate(0deg);-o-transform: rotate(0deg);"></section>
<section style="width: 100%;" data-width="100%" class="">
<img style="width: 100%;display: block;" src="https://image2.135editor.com/cache/remote/aHR0cHM6Ly9tbWJpei5xbG9nby5jbi9tbWJpel9wbmcvN1FSVHZrSzJxQzZWM2VXeldjSUwwdGlhSzFmekxlRnFvWENKOGVUdDg3Qlc3Y2w3WFVOeDVCQ2Y4ektZRkkzQzZIcm9waWFzakppY0FvMlhuYjdySjNuV3cvMD93eF9mbXQ9cG5n" data-width="100%" data-ratio="0.5692307692307692"/>
</section>
<section style="height: 0px;width: 0px;border-top:0px solid transparent;border-right:45px solid #fefefe;border-top:45px solid transparent;float: right;margin-right: -5px; margin-top: -40px;transform: rotate(0deg);-webkit-transform: rotate(0deg);-moz-transform: rotate(0deg);-o-transform: rotate(0deg);" class=""></section>
</section>
</section>
<section class="_135editor">
<p style="letter-spacing: 1px; line-height: 1.75em;">
<span style="font-size: 14px;">在战争时期中共一大的召开日期难以考证因此毛泽东在著名文论论持久战中首次提出以七月一日作为党的生日</span>
</p>
<p>
<br/>
</p>
<p style="letter-spacing: 1px; line-height: 1.75em;">
<span style="font-size: 14px;">建国之后经过党史工作者的细致考证确认中共一大的召开时间是 1921 7 23 7 1 日的建党节传统深入人心一直延续了下来</span>
</p>
</section>
<p>
<br/>
</p>
<p>
<br/>
</p>
<section class="_135editor">
<section style="text-align: center; width: auto; letter-spacing: 1px; line-height: 1.75em;">
<section style="width:100%;display: inline-block;" data-width="100%">
<section style="display: flex;justify-content: center;align-items: center;" class="">
<section style="width:2.8em;transform: scaleX(-1);-webkit-transform: scaleX(-1);-moz-transform: scaleX(-1);-o-transform: scaleX(-1);" class="">
<section style="width: 60%; height: 4px; background: rgb(212, 10, 17); border-radius: 6px; box-sizing: border-box;" data-width="60%" class=""></section>
<section style="width: 80%; height: 4px; background: rgb(212, 10, 17); border-radius: 6px; margin: 5px 0px; box-sizing: border-box;" data-width="80%" class=""></section>
<section style="width: 60%; height: 4px; background: rgb(212, 10, 17); border-radius: 6px; box-sizing: border-box;" data-width="60%" class=""></section>
</section>
<section style="display:inline-block;margin-left:5px;">
<section style="padding: 4px 1.5em 5px; background-image: url(&quot;https://image2.135editor.com/cache/remote/aHR0cHM6Ly9tbWJpei5xbG9nby5jbi9tbWJpel9wbmcvN1FSVHZrSzJxQzY3aWM4TGd1QlNyTndaNlhwaGNBMlphNUpYSkthelMxMTBDM0pBb2xBN2lhZ0I0WEZCRlpkQ0dhbW1EZDRFNWdTeHFZQURxdjlaalpYQS8w&quot;); background-repeat: no-repeat; text-align: center; background-size: 100% 100%; color: rgb(254, 255, 254); font-size: 16px; letter-spacing: 1.5px; box-sizing: border-box;" class="135brush" data-brushtype="text">
<span style="font-size: 14px;">党建的四项基本要求</span>
</section>
</section>
<section style="width:2.8em;margin-left:5px;">
<section style="width: 60%; height: 4px; background: rgb(212, 10, 17); border-radius: 6px; box-sizing: border-box;" data-width="60%" class=""></section>
<section style="width: 80%; height: 4px; background: rgb(212, 10, 17); border-radius: 6px; margin: 5px 0px; box-sizing: border-box;" data-width="80%"></section>
<section style="width: 60%; height: 4px; background: rgb(212, 10, 17); border-radius: 6px; box-sizing: border-box;" data-width="60%"></section>
</section>
</section>
</section>
</section>
</section>
<p>
<br/>
</p>
<section class="_135editor">
<section style="background:#eeeeee;">
<section data-autoskip="1" class="135brush" style="font-size: 14px; text-align: justify; letter-spacing: 1.5px; line-height: 1.75em; color: rgb(63, 62, 63); padding: 1em; box-sizing: border-box;">
<p style="letter-spacing: 1px; line-height: 1.75em;">
<strong><span style="font-size: 14px;">第一坚持党的基本路线</span></strong>
</p>
<p style="letter-spacing: 1px; line-height: 1.75em;">
<strong><span style="font-size: 14px;">第二坚持解放思想实事求是与时俱进</span></strong>
</p>
<p style="letter-spacing: 1px; line-height: 1.75em;">
<strong><span style="font-size: 14px;">第三坚持全心全意为人民服务</span></strong>
</p>
<p style="letter-spacing: 1px; line-height: 1.75em;">
<strong><span style="font-size: 14px;">第四坚持民主集中制</span></strong>
</p>
</section>
</section>
<section style="text-align: right; margin-top: -18px; margin-right: 1em; letter-spacing: 1px; line-height: 1.75em;" class="">
<section style="width: 4em;height:4px;background: #c00000;display: inline-block;" class=""></section>
</section>
</section>
<p>
<br/>
</p>
<p>
<br/>
</p>
<section class="_135editor">
<p style="text-align:center; letter-spacing: 1px; line-height: 1.75em;" align="center">
<span style="font-size: 15px;"><strong><span style="color: #c00000;">九十八年峥嵘岁月</span></strong></span>
</p>
<p style="text-align:center; letter-spacing: 1px; line-height: 1.75em;" align="center">
<span style="font-size: 15px;"><strong><span style="color: #c00000; font-size: 15px;">九十八年辉煌历程</span></strong></span>
</p>
<p>
<br/>
</p>
<p style="letter-spacing: 1px; line-height: 1.75em;">
<span style="font-size: 14px;">今天的我们挥舞着前辈们的伟大旗帜 ,追随着那从未熄灭的明灯,冲锋陷阵,高扬风帆,向着那彼岸,向着那未来更加执着而勇敢地前进, 前进 ,前进&nbsp;</span>
</p>
</section>
<p>
<br/>
</p>
<section class="_135editor">
<section style="text-align: center;" class="">
<section style="display: inline-block;width:3em;" class="">
<img style="width: 100%;display: block;" src="https://image2.135editor.com/cache/remote/aHR0cHM6Ly9tbWJpei5xbG9nby5jbi9tbWJpel9naWYvN1FSVHZrSzJxQzdLUzZhNVBJdDVmQlB0V3M0QUFZVnRRRTE1RnQ1elIzRUhrYnRmWGJhSUF0VGliOUhtRDNIQU16clBPbk1QSVlhMkNmQ2hUcEtiaWJhZy8wP3d4X2ZtdD1naWY=" data-width="100%" data-ratio="1"/>
</section>
<section class="135brush" data-brushtype="text" style="text-align: center;letter-spacing: 1.5px;font-size: 14px;margin-top:-10px;color:#c00000;">
<span style="color: #c00000;"></span>-END-
</section>
</section>
</section>
<section class="_135editor">
<p style="text-align:center; letter-spacing: 1px; line-height: 1.75em;" align="center">
<br/>
</p>
<p style="text-align:center; letter-spacing: 1px; line-height: 1.75em;" align="center">
<span style="font-size: 13px;">排版丨135小编</span>
</p>
<p style="text-align:center; letter-spacing: 1px; line-height: 1.75em;" align="center">
<span style="font-size: 13px;">文案丨来源网络侵删</span>
</p>
<p style="text-align:center; letter-spacing: 1px; line-height: 1.75em;" align="center">
<span style="font-size: 13px;">图片丨来源网络侵删</span>
</p>
<p>
<br/>
</p>
</section>
<section class="_135editor">
<section style="padding-right: 2em; box-sizing: border-box;" class="">
<section style="width:2em;height:2em;background: #fefefe;overflow: hidden;margin-bottom: -2em;transform: rotate(0deg);-webkit-transform: rotate(0deg);-moz-transform: rotate(0deg);-o-transform: rotate(0deg);">
<section style="height:3em;border-left:2px solid #c00000;margin-left:12px;transform: rotate(45deg);-webkit-transform: rotate(45deg);-moz-transform: rotate(45deg);-o-transform: rotate(45deg);"></section>
</section>
<section style="box-sizing:border-box;border:2px solid #c00000;padding: 1em;" class="">
<section style="display: flex;justify-content:space-between;align-items: center;" class="">
<section style="width: 50%; text-align: left; font-size: 14px; letter-spacing: 1.5px; color: #c00000;" data-width="50%">
<section style="font-size: 14px;text-align: justify;letter-spacing: 1.5px;line-height: 1.75em;" class="">
<section data-autoskip="1" class="135brush" style="font-size: 14px;color: #c00000;letter-spacing: 2px;line-height: 1.75em;">
<p>
扫码关注
</p>
</section>
<section style="display: flex;justify-content:space-between;align-items: center;flex:1;margin:10px auto;" class="">
<section style="display: flex;justify-content:center;align-items: center;" class="">
<section data-bgless="spin" data-bgopacity="60%" style="width:4em;height:1.4em;background:rgba(222,69,69,0.40);" class=""></section>
<section data-bgless="spin" data-bgopacity="0%" style="width:3em;height:0.6em;background:#c00000;margin-left: -1em;transform: rotate(0deg);-webkit-transform: rotate(0deg);-moz-transform: rotate(0deg);-o-transform: rotate(0deg);" class=""></section>
</section>
</section>
<section data-autoskip="1" class="135brush" style="font-size: 14px;color: #c00000;letter-spacing: 2px;line-height: 1.75em;">
<p>
有趣的灵魂在等你
</p>
</section>
</section>
</section>
<section style="width: 45%;flex:1;margin-left:1em;margin-right: -3em;" data-width="45%" class="">
<img style="width: 100%; display: block; border: 5px solid rgb(192, 0, 0); height: 116px;" src="https://image2.135editor.com/cache/remote/aHR0cHM6Ly9tbWJpei5xbG9nby5jbi9tbWJpel9wbmcvN1FSVHZrSzJxQzZEZjRCeUQydWxJTmY3c3NxZTBLa3dPdGFBTjZkbGpFc0ZEbmZlRFRsUnBMaWFjbmN5eHg5WDFpYmljZkRQRW9zam1QZzcweFpTM2dLaWF3LzA=" data-ratio="1" data-width="100%" width="116" height="116"/>
</section>
</section>
</section>
</section>
</section>
</section>
<p>
<br/>
</p>`,
unStar: '/images/common/star.png', unStar: '/images/common/star.png',
star: '/images/common/star_light.png', star: '/images/common/star_light.png',
isStar: true, isStar: true,
showBtn: true,
}, },
onClickCollect () { onClickCollect () {
this.setData({ this.setData({
@ -16,6 +391,9 @@ Page({
}) })
// 收藏功能 // 收藏功能
}, },
onlineSubmit () {
console.log('在线报名')
},
/** /**
* 生命周期函数--监听页面加载 * 生命周期函数--监听页面加载
*/ */

4
pages/article/index.json

@ -1,3 +1,5 @@
{ {
"usingComponents": {} "usingComponents": {
"e-ibutton": "/components/image-button/index"
}
} }

7
pages/article/index.wxml

@ -8,7 +8,10 @@
<image class="artice_collect" src="{{isStar ? star : unStar}}" bindtap="onClickCollect"></image> <image class="artice_collect" src="{{isStar ? star : unStar}}" bindtap="onClickCollect"></image>
</view> </view>
</view> </view>
<view class="page_bd"> <view class="page_bd {{showBtn ? 'page_bd_short':''}}">
<rich-text nodes="{{nodes}}" bindtap="tap"></rich-text> <rich-text nodes="{{nodes}}"></rich-text>
</view>
<view class="page_footer" wx:if="{{showBtn}}">
<e-ibutton title="在线报名" bind:onTap="onlineSubmit"/>
</view> </view>
</view> </view>

17
pages/article/index.wxss

@ -1,6 +1,4 @@
/* pages/article/index.wxss */ /* pages/article/index.wxss */
.container {
}
.page_hd { .page_hd {
padding: 0 15px; padding: 0 15px;
display: flex; display: flex;
@ -30,4 +28,19 @@
padding: 0 10px; padding: 0 10px;
width: 20px; width: 20px;
height: 20px; height: 20px;
}
.page_footer {
background-color: white;
border-top: 1px solid #f7f7f7;
padding: 10px 20px 20px 20px;
bottom: 0;
left: 0;
right: 0;
position: fixed;
}
.page_bd {
padding: 0 10px;
}
.page_bd_short {
margin-bottom: 81px;
} }

12
pages/billboards/firm/index.js

@ -5,7 +5,14 @@ Page({
* 页面的初始数据 * 页面的初始数据
*/ */
data: { data: {
navs: [
"千人计划",
"泰山学者",
"泰山学者",
"泰山学者",
"泰山学者",
"泰山学者",
]
}, },
/** /**
@ -13,6 +20,9 @@ Page({
*/ */
onLoad: function (options) { onLoad: function (options) {
},
tapSegemnt (e) {
console.log(e.detail)
}, },
clickCardItem(e) { clickCardItem(e) {
console.log(e.detail) console.log(e.detail)

3
pages/billboards/firm/index.json

@ -1,6 +1,7 @@
{ {
"navigationBarTitleText": "重点企业", "navigationBarTitleText": "重点企业",
"usingComponents": { "usingComponents": {
"e-card": "/components/card/index" "e-card": "/components/card/index",
"e-segment": "/components/segment/index"
} }
} }

15
pages/billboards/firm/index.wxml

@ -1,8 +1,13 @@
<!--pages/billboards/firm/index.wxml--> <!--pages/billboards/firm/index.wxml-->
<view class="container"> <view class="container">
<block wx:for="{{[1,3,4]}}" wx:key="*this"> <view class="page_hd">
<e-card cId="{{index}}" <e-segment headerTitles="{{navs}}" bind:tapSegment="tapSegemnt"/>
tag-class="e_card" </view>
bind:clickCardItem="clickCardItem"/> <view class="page_bd">
</block> <block wx:for="{{[1,3,4]}}" wx:key="*this">
<e-card cId="{{index}}"
tag-class="e_card"
bind:clickCardItem="clickCardItem"/>
</block>
</view>
</view> </view>

14
pages/billboards/firm/index.wxss

@ -1,10 +1,24 @@
/* pages/billboards/firm/index.wxss */ /* pages/billboards/firm/index.wxss */
.container { .container {
}
.page_hd {
position: fixed;
border-bottom: 1px solid #f7f7f7;
top: 0;
height: 48px;
width: 100%;
left: 0;
z-index: 10;
background-color: white;
}
.page_bd {
padding: 0 3vw; padding: 0 3vw;
display: flex; display: flex;
flex-direction: row; flex-direction: row;
justify-content: space-between; justify-content: space-between;
flex-wrap: wrap; flex-wrap: wrap;
margin-top: 50px;
} }
.e_card { .e_card {
width: 45vw; width: 45vw;

2
pages/billboards/park/index.json

@ -1,5 +1,5 @@
{ {
"navigationBarTitleText": "创业园区", "navigationBarTitleText": "平台载体",
"usingComponents": { "usingComponents": {
"e-card": "/components/card/index" "e-card": "/components/card/index"
} }

2
pages/billboards/policy/components/tags/index.wxml

@ -5,5 +5,5 @@
<view class="tag-item" bindtap="onTap" data-index="{{index}}">人才政策</view> <view class="tag-item" bindtap="onTap" data-index="{{index}}">人才政策</view>
</block> </block>
</view> </view>
<view class="tag-all" bindtap="onTap" data-index="-1">全部</view> <view class="tag-all" bindtap="onTap" data-index="0">全部</view>
</view> </view>

11
pages/billboards/policy/index.wxss

@ -1 +1,10 @@
/* pages/billboards/policy/index.wxss */ /* pages/billboards/policy/index.wxss */
.page_hd .weui-search-bar {
background-color: white;
}
.page_hd .weui-search-bar__label {
background-color: #EDEDED;
}
.page_hd .weui-search-bar__form {
background-color: #EDEDED;
}

42
pages/billboards/policy/policy-list/index.js

@ -5,7 +5,44 @@ Page({
* 页面的初始数据 * 页面的初始数据
*/ */
data: { data: {
navSelectIndex: 0,
nodes: `<section class="_editor" data-support="96编辑器" data-style-id="24818">
<section style="text-align: center;margin:10px 0px;">
<section style="width:4px;height:24px;background-color:#ffc100;display:inline-block;vertical-align: middle;transform: rotatez(0deg);"></section>
<section style="margin-right: -2px; margin-left: -2px; border-style: solid; border-width: 1px; border-color: #000000; padding: 2px 10px; display: inline-block; vertical-align: middle;">
<p style="letter-spacing: 2px;">
便民举措<br/>
</p>
</section>
<section style="width:4px;height:24px;background-color:#ffc100;display:inline-block;vertical-align: middle;"></section>
</section>
</section>
<section class="_editor" data-support="96编辑器" data-style-id="24804">
<section style="margin:10px 0px;">
<section style="width: 12px; height: 12px; background-color: #ffc81c; border-radius: 50%; box-sizing: border-box;"></section>
<section style="margin-top: -12px; margin-left: auto; width: 12px; height: 12px; background-color: #ffc81c; border-radius: 50%; box-sizing: border-box;"></section>
<section style="margin:-6px 6px;border-style:solid;border-width:1px;border-color:#ffcc9c;background-color:#fefefe;padding:15px;display:inline-block;transform: rotateZ(0deg);-webkit-transform: rotateZ(0deg);-moz-transform: rotateZ(0deg);-ms-transform: rotateZ(0deg);-o-transform: rotateZ(0deg);">
<p style="letter-spacing: 2px;">
<span style="font-size: 14px;">当清晨的一缕阳光透过窗帘上的空隙映照在沉睡的脸庞时微微张开的双眼朦胧地注视着周遭的一切新的一天悄然而至</span>
</p>
</section>
<section style="width: 12px; height: 12px; background-color: #ffc81c; border-radius: 50%; box-sizing: border-box;"></section>
<section style="margin-top: -12px; margin-left: auto; width: 12px; height: 12px; background-color: #ffc81c; border-radius: 50%; box-sizing: border-box;"></section>
</section>
</section>
<section class="_editor">
<p>
<br/>
</p>
</section>`,
navs: [
"千人计划",
"泰山学者",
"泰山学者",
"泰山学者",
"泰山学者",
"泰山学者",
]
}, },
/** /**
@ -14,6 +51,9 @@ Page({
onLoad: function (options) { onLoad: function (options) {
console.log(options) console.log(options)
const {index} = options const {index} = options
this.setData({
navSelectIndex: index
})
}, },
/** /**

5
pages/billboards/policy/policy-list/index.json

@ -1,3 +1,6 @@
{ {
"usingComponents": {} "navigationBarTitleText": "人才政策",
"usingComponents": {
"e-segment": "/components/segment/index"
}
} }

9
pages/billboards/policy/policy-list/index.wxml

@ -1,2 +1,9 @@
<!--pages/billboards/policy/policy-list/index.wxml--> <!--pages/billboards/policy/policy-list/index.wxml-->
<text>pages/billboards/policy/policy-list/index.wxml</text> <view class="container">
<view class="page_hd">
<e-segment headerTitles="{{navs}}" defaultSelectIndex="{{navSelectIndex}}"/>
</view>
<view class="page_bd">
<rich-text nodes="{{nodes}}"></rich-text>
</view>
</view>

16
pages/billboards/policy/policy-list/index.wxss

@ -1 +1,15 @@
/* pages/billboards/policy/policy-list/index.wxss */ /* pages/billboards/policy/policy-list/index.wxss */
.page_hd {
position: fixed;
border-bottom: 1px solid #f7f7f7;
top: 0;
height: 48px;
width: 100%;
left: 0;
z-index: 10;
background-color: white;
}
.page_bd {
padding: 10px 10px 0 10px;
margin-top: 48px;
}

5
pages/home/index.js

@ -38,7 +38,10 @@ Page({
}, },
clickListItem (e) { clickListItem (e) {
console.log(e.detail) console.log(e.detail)
this.gotoArticePage(e.detail.id) // this.gotoArticePage(e.detail.id)
wx.redirectTo({
url: '/pages/register/index',
})
}, },
gotoArticePage (id) { gotoArticePage (id) {
wx.navigateTo({ wx.navigateTo({

57
pages/register/index.js

@ -0,0 +1,57 @@
// pages/register/index.js
Page({
/**
* 页面的初始数据
*/
data: {
disabled: false, // 是否允许点击注册
rules: [
{
name: 'name',
rules: { required: true, message: '姓名必填' },
}, { // 多个规则
name: 'mobile',
rules: [{ required: true, message: '手机号必填' }, { mobile: true, message: '手机号格式不对' }],
}, {
name: 'vcode',
rules: { required: true, message: '验证码必填' },
},
],
formData: {
}
},
/**
* 生命周期函数--监听页面加载
*/
onLoad: function (options) {
},
formInputChange (e) {
const { field } = e.currentTarget.dataset
this.setData({
[`formData.${field}`]: e.detail.value
})
},
submitClick () {
this.selectComponent('#form').validate((valid, errors) => {
console.log('valid', valid, errors)
if (!valid) {
const firstError = Object.keys(errors)
if (firstError.length) {
const error = errors[firstError[0]].message
wx.showToast({
icon: "none",
title: error
})
}
} else {
wx.showToast({
title: '校验通过'
})
}
})
}
})

9
pages/register/index.json

@ -0,0 +1,9 @@
{
"usingComponents": {
"mp-cell": "/components/weui/cell/cell",
"mp-cells": "/components/weui/cells/cells",
"mp-checkbox": "/components/weui/checkbox/checkbox",
"mp-form": "/components/weui/form/form",
"e-ibotton": "/components/image-button/index"
}
}

25
pages/register/index.wxml

@ -0,0 +1,25 @@
<!--pages/register/index.wxml-->
<view class="container">
<navigator open-type="reLaunch" url="/pages/home/index">
<image class="register_cancel" src="/images/common/close.png"></image>
</navigator>
<view class="page_bd">
<view class="register_form">
<mp-form id="form" rules="{{rules}}" models="{{formData}}">
<mp-cells title="注册验证" >
<mp-cell icon="/images/common/user.png" prop="name" title="" ext-class="">
<input bindinput="formInputChange" data-field="name" class="weui-input" placeholder="请输入真实姓名"/>
</mp-cell>
<mp-cell icon="/images/common/phone.png" prop="mobile" ext-class="">
<input bindinput="formInputChange" data-field="mobile" class="weui-input" placeholder="请输入手机号"/>
</mp-cell>
<mp-cell prop="vcode" ext-class=" weui-cell_vcode">
<input bindinput="formInputChange" data-field="vcode" class="weui-input" placeholder="请输入验证码"/>
<view slot="footer" class="weui-vcode-btn">获取验证码</view>
</mp-cell>
</mp-cells>
</mp-form>
</view>
<e-ibotton title="注册" bind:onTap="submitClick"/>
</view>
</view>

35
pages/register/index.wxss

@ -0,0 +1,35 @@
/* pages/register/index.wxss */
.container {
position: relative;
padding: 0 20px;
display: flex;
height: 100vh;
justify-items: center;
align-items: center;
}
.register_cancel {
position: absolute;
padding: 10px;
width: 30px;
height: 30px;
top: 0;
right: 20px;
}
.page_bd {
height: 60vh;
width: 100%;
}
.register_form .weui-cells__title {
font-size: 19px;
color: black;
}
.register_form .weui-cell__icon {
padding-right:5px;
width: 25px;
height: 30px;
}
.register_form .weui-cells::before {
border-top: 0px solid white;
}

11
project.config.json

@ -4,7 +4,7 @@
"ignore": [] "ignore": []
}, },
"setting": { "setting": {
"urlCheck": true, "urlCheck": false,
"es6": true, "es6": true,
"enhance": false, "enhance": false,
"postcss": true, "postcss": true,
@ -50,7 +50,7 @@
"list": [] "list": []
}, },
"miniprogram": { "miniprogram": {
"current": 4, "current": 5,
"list": [ "list": [
{ {
"id": -1, "id": -1,
@ -84,6 +84,13 @@
"id": -1, "id": -1,
"name": "policy-list", "name": "policy-list",
"pathName": "pages/billboards/policy/policy-list/index", "pathName": "pages/billboards/policy/policy-list/index",
"query": "",
"scene": null
},
{
"id": -1,
"name": "Register",
"pathName": "pages/register/index",
"scene": null "scene": null
} }
] ]

Loading…
Cancel
Save