Skip to content
项目
群组
代码片段
帮助
当前项目
正在载入...
登录 / 注册
切换导航面板
N
nyx
概览
Overview
Details
Activity
Cycle Analytics
版本库
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
问题
0
Issues
0
列表
Board
标记
里程碑
合并请求
0
Merge Requests
0
CI / CD
CI / CD
流水线
作业
日程表
图表
维基
Wiki
代码片段
Snippets
成员
Collapse sidebar
Close sidebar
活动
图像
聊天
创建新问题
作业
提交
Issue Boards
Open sidebar
发现
nyx
Commits
aca9f2f7
Commit
aca9f2f7
authored
Oct 10, 2020
by
jscat
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
nyx weapp: 页面优化
1. 统一community/fair的变量为entity
parent
ace48180
全部展开
显示空白字符变更
内嵌
并排
正在显示
8 个修改的文件
包含
79 行增加
和
240 行删除
+79
-240
增值产品-小程序及app/nyx-dev/pages/community/community.js
+53
-44
增值产品-小程序及app/nyx-dev/pages/community/community.wxml
+10
-10
增值产品-小程序及app/nyx-dev/pages/community/introduction/introduction.js
+0
-87
增值产品-小程序及app/nyx-dev/pages/community/introduction/introduction.json
+0
-3
增值产品-小程序及app/nyx-dev/pages/community/introduction/introduction.wxml
+0
-8
增值产品-小程序及app/nyx-dev/pages/community/introduction/introduction.wxss
+0
-76
增值产品-小程序及app/nyx-dev/pages/fair/fair.js
+0
-0
增值产品-小程序及app/nyx-dev/pages/fair/fair.wxml
+16
-12
没有找到文件。
增值产品-小程序及app/nyx-dev/pages/community/community.js
查看文件 @
aca9f2f7
// pa
ges/activity/activity.js
// pa
ges/activity/activity.js
...
@@ -60,22 +60,22 @@ Page({
...
@@ -60,22 +60,22 @@ Page({
//园区
//园区
activityType
:
"02-园区"
,
activityType
:
"02-园区"
,
communities
:
[],
entities
:
[],
//包括fair和community
/*
/*
园区所在的信息
集市/
园区所在的信息
community_name, num_activity, num_like
fair_name,
community_name, num_activity, num_like
*/
*/
commun
ityInfos
:
{},
ent
ityInfos
:
{},
cur
Commun
ity
:
0
,
cur
Ent
ity
:
0
,
},
},
switchCategory
(
e
)
{
switchCategory
(
e
)
{
var
_this
=
this
;
var
_this
=
this
;
var
curIndex
=
e
.
currentTarget
.
dataset
.
index
?
e
.
currentTarget
.
dataset
.
index
:
0
var
curIndex
=
e
.
currentTarget
.
dataset
.
index
?
e
.
currentTarget
.
dataset
.
index
:
0
var
cur
Community
=
_this
.
__data__
.
curCommun
ity
var
cur
Entity
=
_this
.
__data__
.
curEnt
ity
var
strAddress
=
app
.
globalData
.
defaultCity
var
strAddress
=
app
.
globalData
.
defaultCity
var
strEntity
=
_this
.
__data__
.
communities
[
curCommun
ity
]
var
strEntity
=
_this
.
__data__
.
entities
[
curEnt
ity
]
var
strCategory
=
_this
.
__data__
.
category
[
curIndex
].
order
var
strCategory
=
_this
.
__data__
.
category
[
curIndex
].
order
var
strSearch
=
_this
.
__data__
.
strSearch
var
strSearch
=
_this
.
__data__
.
strSearch
this
.
setData
({
this
.
setData
({
...
@@ -196,18 +196,18 @@ Page({
...
@@ -196,18 +196,18 @@ Page({
// step5 new add jscat 20201008 载入园区列表 - local page
// step5 new add jscat 20201008 载入园区列表 - local page
var
strCity
=
app
.
globalData
.
defaultCity
var
strCity
=
app
.
globalData
.
defaultCity
var
activityType
=
_this
.
__data__
.
activityType
var
activityType
=
_this
.
__data__
.
activityType
let
promise_
commun
ity
=
new
Promise
(
function
(
resolve
,
reject
)
{
let
promise_
ent
ity
=
new
Promise
(
function
(
resolve
,
reject
)
{
_this
.
get
Commun
ities
(
strCity
,
activityType
,
resolve
,
reject
);
_this
.
get
Ent
ities
(
strCity
,
activityType
,
resolve
,
reject
);
})
})
// step6 初始载入四个推荐的活动 - local page
// step6 初始载入四个推荐的活动 - local page
promise_
commun
ity
.
then
(
promise_
ent
ity
.
then
(
function
(
value
){
function
(
value
){
console
.
log
(
"===enter promise_
commun
ity then_passed_"
+
value
)
console
.
log
(
"===enter promise_
ent
ity then_passed_"
+
value
)
_this
.
onGetActivities
()
_this
.
onGetActivities
()
},
},
function
(
value
){
function
(
value
){
console
.
log
(
"===enter promise_
commun
ity then_failed_"
+
value
)
console
.
log
(
"===enter promise_
ent
ity then_failed_"
+
value
)
}
}
)
)
...
@@ -273,18 +273,18 @@ Page({
...
@@ -273,18 +273,18 @@ Page({
{
{
var
strCity
=
app
.
globalData
.
defaultCity
var
strCity
=
app
.
globalData
.
defaultCity
var
activityType
=
_this
.
__data__
.
activityType
var
activityType
=
_this
.
__data__
.
activityType
let
promise_
commun
ity
=
new
Promise
(
function
(
resolve
,
reject
)
{
let
promise_
ent
ity
=
new
Promise
(
function
(
resolve
,
reject
)
{
_this
.
get
Commun
ities
(
strCity
,
activityType
,
resolve
,
reject
);
_this
.
get
Ent
ities
(
strCity
,
activityType
,
resolve
,
reject
);
})
})
// step6 初始载入四个推荐的活动 - local page
// step6 初始载入四个推荐的活动 - local page
promise_
commun
ity
.
then
(
promise_
ent
ity
.
then
(
function
(
value
){
function
(
value
){
console
.
log
(
"===enter promise_
commun
ity then_passed_"
+
value
)
console
.
log
(
"===enter promise_
ent
ity then_passed_"
+
value
)
_this
.
onGetActivities
()
_this
.
onGetActivities
()
},
},
function
(
value
){
function
(
value
){
console
.
log
(
"===enter promise_
commun
ity then_failed_"
+
value
)
console
.
log
(
"===enter promise_
ent
ity then_failed_"
+
value
)
}
}
)
)
...
@@ -323,15 +323,15 @@ Page({
...
@@ -323,15 +323,15 @@ Page({
console
.
log
(
'页面上拉触底'
)
console
.
log
(
'页面上拉触底'
)
var
_this
=
this
;
var
_this
=
this
;
var
curIndex
=
_this
.
__data__
.
curIndex
var
curIndex
=
_this
.
__data__
.
curIndex
var
cur
Community
=
_this
.
__data__
.
curCommun
ity
var
cur
Entity
=
_this
.
__data__
.
curEnt
ity
var
strAddress
=
app
.
globalData
.
defaultCity
var
strAddress
=
app
.
globalData
.
defaultCity
var
strEntity
=
_this
.
__data__
.
communities
[
curCommun
ity
]
var
strEntity
=
_this
.
__data__
.
entities
[
curEnt
ity
]
var
strCategory
=
_this
.
__data__
.
category
[
curIndex
].
order
var
strCategory
=
_this
.
__data__
.
category
[
curIndex
].
order
var
strSearch
=
_this
.
__data__
.
strSearch
var
strSearch
=
_this
.
__data__
.
strSearch
var
isHideLoadMore
=
_this
.
__data__
.
isHideLoadMore
;
var
isHideLoadMore
=
_this
.
__data__
.
isHideLoadMore
;
var
pageIndex
=
_this
.
__data__
.
pageIndex
;
var
pageIndex
=
_this
.
__data__
.
pageIndex
;
//控制逻辑,
在onClick之后或者onGetComment事件之后再允许
下拉更新操作
//控制逻辑, 下拉更新操作
//判断是否已经全部加载完毕
//判断是否已经全部加载完毕
//没有则加载更多
//没有则加载更多
if
(
!
isHideLoadMore
)
{
if
(
!
isHideLoadMore
)
{
...
@@ -476,9 +476,9 @@ Page({
...
@@ -476,9 +476,9 @@ Page({
hideInput
:
function
()
{
hideInput
:
function
()
{
var
_this
=
this
;
var
_this
=
this
;
var
curIndex
=
_this
.
__data__
.
curIndex
var
curIndex
=
_this
.
__data__
.
curIndex
var
cur
Community
=
_this
.
__data__
.
curCommun
ity
var
cur
Entity
=
_this
.
__data__
.
curEnt
ity
var
strAddress
=
app
.
globalData
.
defaultCity
var
strAddress
=
app
.
globalData
.
defaultCity
var
strEntity
=
_this
.
__data__
.
communities
[
curCommun
ity
]
var
strEntity
=
_this
.
__data__
.
entities
[
curEnt
ity
]
var
strCategory
=
_this
.
__data__
.
category
[
curIndex
].
order
var
strCategory
=
_this
.
__data__
.
category
[
curIndex
].
order
var
strSearch
=
""
var
strSearch
=
""
...
@@ -502,9 +502,9 @@ Page({
...
@@ -502,9 +502,9 @@ Page({
var
_this
=
this
;
var
_this
=
this
;
var
strSearch
=
e
.
detail
.
value
var
strSearch
=
e
.
detail
.
value
var
curIndex
=
_this
.
__data__
.
curIndex
var
curIndex
=
_this
.
__data__
.
curIndex
var
cur
Community
=
_this
.
__data__
.
curCommun
ity
var
cur
Entity
=
_this
.
__data__
.
curEnt
ity
var
strAddress
=
app
.
globalData
.
defaultCity
var
strAddress
=
app
.
globalData
.
defaultCity
var
strEntity
=
_this
.
__data__
.
communities
[
curCommun
ity
]
var
strEntity
=
_this
.
__data__
.
entities
[
curEnt
ity
]
var
strCategory
=
_this
.
__data__
.
category
[
curIndex
].
order
var
strCategory
=
_this
.
__data__
.
category
[
curIndex
].
order
console
.
log
(
"===input search text_"
+
strSearch
)
console
.
log
(
"===input search text_"
+
strSearch
)
...
@@ -639,10 +639,10 @@ Page({
...
@@ -639,10 +639,10 @@ Page({
var
_this
=
this
;
var
_this
=
this
;
var
curIndex
=
_this
.
__data__
.
curIndex
var
curIndex
=
_this
.
__data__
.
curIndex
var
cur
Community
=
_this
.
__data__
.
curCommun
ity
var
cur
Entity
=
_this
.
__data__
.
curEnt
ity
var
strAddress
=
app
.
globalData
.
defaultCity
var
strAddress
=
app
.
globalData
.
defaultCity
var
strEntity
=
_this
.
__data__
.
communities
[
curCommun
ity
]
var
strEntity
=
_this
.
__data__
.
entities
[
curEnt
ity
]
var
strCategory
=
_this
.
__data__
.
category
[
curIndex
].
order
var
strCategory
=
_this
.
__data__
.
category
[
curIndex
].
order
var
strSearch
=
_this
.
__data__
.
strSearch
var
strSearch
=
_this
.
__data__
.
strSearch
...
@@ -654,18 +654,18 @@ Page({
...
@@ -654,18 +654,18 @@ Page({
/*
/*
* 更换某一个memberInfo的地址信息
* 更换某一个memberInfo的地址信息
*/
*/
on
Commun
ityPicker
:
function
(
e
)
{
on
Ent
ityPicker
:
function
(
e
)
{
var
_this
=
this
;
var
_this
=
this
;
var
cur
Commun
ity
=
e
.
detail
.
value
var
cur
Ent
ity
=
e
.
detail
.
value
var
switchId
=
app
.
globalData
.
switchId
var
switchId
=
app
.
globalData
.
switchId
var
curIndex
=
switchId
!=
""
?
switchId
:
_this
.
__data__
.
curIndex
var
curIndex
=
switchId
!=
""
?
switchId
:
_this
.
__data__
.
curIndex
var
strAddress
=
app
.
globalData
.
defaultCity
var
strAddress
=
app
.
globalData
.
defaultCity
var
strEntity
=
_this
.
__data__
.
communities
[
curCommun
ity
]
var
strEntity
=
_this
.
__data__
.
entities
[
curEnt
ity
]
var
strCategory
=
_this
.
__data__
.
category
[
curIndex
].
order
var
strCategory
=
_this
.
__data__
.
category
[
curIndex
].
order
var
strSearch
=
""
var
strSearch
=
""
this
.
setData
({
this
.
setData
({
curIndex
,
cur
Commun
ity
,
strSearch
curIndex
,
cur
Ent
ity
,
strSearch
});
});
app
.
globalData
.
switchId
=
""
app
.
globalData
.
switchId
=
""
...
@@ -674,8 +674,8 @@ Page({
...
@@ -674,8 +674,8 @@ Page({
},
},
// 获取
Commun
ities数据 limit 10 by cityName && activityType
// 获取
ent
ities数据 limit 10 by cityName && activityType
get
Commun
ities
:
function
(
cityName
,
activityType
,
resolve
,
reject
)
{
get
Ent
ities
:
function
(
cityName
,
activityType
,
resolve
,
reject
)
{
var
_this
=
this
;
var
_this
=
this
;
var
query_url
=
'?activityType='
+
activityType
+
'&cityName='
+
cityName
var
query_url
=
'?activityType='
+
activityType
+
'&cityName='
+
cityName
...
@@ -693,32 +693,41 @@ Page({
...
@@ -693,32 +693,41 @@ Page({
//表示HTTP请求成功
//表示HTTP请求成功
console
.
log
(
res
.
data
);
console
.
log
(
res
.
data
);
var
list
=
[]
var
list
=
[]
var
commun
ities
=
[]
var
ent
ities
=
[]
for
(
var
i
=
0
;
i
<
res
.
data
.
data
.
length
;
i
++
)
{
for
(
var
i
=
0
;
i
<
res
.
data
.
data
.
length
;
i
++
)
{
var
result
=
{}
var
result
=
{}
result
[
"activity_type"
]
=
res
.
data
.
data
[
i
].
activityType
result
[
"activity_type"
]
=
res
.
data
.
data
[
i
].
activityType
result
[
"city_name"
]
=
res
.
data
.
data
[
i
].
cityName
result
[
"city_name"
]
=
res
.
data
.
data
[
i
].
cityName
result
[
"fair_name"
]
=
res
.
data
.
data
[
i
].
fairName
result
[
"community_name"
]
=
res
.
data
.
data
[
i
].
communityName
result
[
"community_name"
]
=
res
.
data
.
data
[
i
].
communityName
result
[
"num_entity"
]
=
res
.
data
.
data
[
i
].
numEntity
result
[
"num_entity"
]
=
res
.
data
.
data
[
i
].
numEntity
result
[
"num_activity"
]
=
res
.
data
.
data
[
i
].
numActivity
result
[
"num_activity"
]
=
res
.
data
.
data
[
i
].
numActivity
result
[
"num_like"
]
=
res
.
data
.
data
[
i
].
numLike
result
[
"num_like"
]
=
res
.
data
.
data
[
i
].
numLike
communities
.
push
(
res
.
data
.
data
[
i
].
communityName
)
if
(
_this
.
data
.
activityType
==
"01-集市"
)
{
entities
.
push
(
res
.
data
.
data
[
i
].
fairName
)
}
else
if
(
_this
.
data
.
activityType
==
"02-园区"
)
{
entities
.
push
(
res
.
data
.
data
[
i
].
communityName
)
}
list
.
push
(
result
)
list
.
push
(
result
)
}
}
_this
.
setData
({
_this
.
setData
({
communities
:
commun
ities
,
entities
:
ent
ities
,
commun
ityInfos
:
list
,
ent
ityInfos
:
list
,
cur
Commun
ity
:
0
,
cur
Ent
ity
:
0
,
})
})
resolve
(
"===get
Commun
ities success"
)
resolve
(
"===get
Ent
ities success"
)
}
}
},
},
fail
:
function
(
err
)
{
fail
:
function
(
err
)
{
console
.
log
(
"fail to get
Commun
ities"
,
err
.
errMsg
)
console
.
log
(
"fail to get
Ent
ities"
,
err
.
errMsg
)
reject
(
new
Error
(
'failed to get
Commun
ities'
));
reject
(
new
Error
(
'failed to get
Ent
ities'
));
},
},
})
})
},
},
...
@@ -728,13 +737,13 @@ Page({
...
@@ -728,13 +737,13 @@ Page({
var
_this
=
this
;
var
_this
=
this
;
// 如果强制更新, 则不考虑_this.data.activities length是否为0
// 如果强制更新, 则不考虑_this.data.activities length是否为0
if
(
_this
.
__data__
.
commun
ities
.
length
>
0
)
if
(
_this
.
__data__
.
ent
ities
.
length
>
0
)
{
{
var
switchId
=
app
.
globalData
.
switchId
var
switchId
=
app
.
globalData
.
switchId
var
curIndex
=
switchId
!=
""
?
switchId
:
_this
.
__data__
.
curIndex
var
curIndex
=
switchId
!=
""
?
switchId
:
_this
.
__data__
.
curIndex
var
cur
Community
=
_this
.
__data__
.
curCommun
ity
var
cur
Entity
=
_this
.
__data__
.
curEnt
ity
var
strAddress
=
app
.
globalData
.
defaultCity
var
strAddress
=
app
.
globalData
.
defaultCity
var
strEntity
=
_this
.
__data__
.
communities
[
curCommun
ity
]
var
strEntity
=
_this
.
__data__
.
entities
[
curEnt
ity
]
var
strCategory
=
_this
.
__data__
.
category
[
curIndex
].
order
var
strCategory
=
_this
.
__data__
.
category
[
curIndex
].
order
var
strSearch
=
_this
.
__data__
.
strSearch
var
strSearch
=
_this
.
__data__
.
strSearch
this
.
setData
({
curIndex
});
this
.
setData
({
curIndex
});
...
...
增值产品-小程序及app/nyx-dev/pages/community/community.wxml
查看文件 @
aca9f2f7
<wxs
module="tutil" src="./../../utils/date.wxs"></wxs>
<wxs
module="tutil" src="./../../utils/date.wxs"></wxs>
...
@@ -7,21 +7,21 @@
...
@@ -7,21 +7,21 @@
<!-- refer https://www.jb51.net/article/158292.htm -->
<!-- refer https://www.jb51.net/article/158292.htm -->
<!-- refer https://github.com/cinoliu/-selectCity -->
<!-- refer https://github.com/cinoliu/-selectCity -->
<view class="weui-search-bar">
<view class="weui-search-bar">
<picker mode="selector" range="{{
communities}}" value="{{curCommunity}}" bindchange="onCommun
ityPicker" class='address_member'>
<picker mode="selector" range="{{
entities}}" value="{{curEntity}}" bindchange="onEnt
ityPicker" class='address_member'>
<text>{{
communities[curCommun
ity]}}</text>
<text>{{
entities[curEnt
ity]}}</text>
<image src='../../icon/down.png' style='width: 40rpx;height: 40rpx;' class='selecrtImg'></image>
<image src='../../icon/down.png' style='width: 40rpx;height: 40rpx;' class='selecrtImg'></image>
</picker>
</picker>
<view class="weui-search-bar__form">
<view class="weui-search-bar__form">
<view class="weui-search-bar__box">
<view class="weui-search-bar__box">
<icon class="weui-icon-search_in-box" type="search" size="16"></icon>
<icon class="weui-icon-search_in-box" type="search" size="16"></icon>
<input type="text" class="weui-search-bar__input" placeholder="发现{{
communities[curCommun
ity]}}" value="{{inputVal}}" focus="{{inputShowed}}" bindconfirm="startSearch" />
<input type="text" class="weui-search-bar__input" placeholder="发现{{
entities[curEnt
ity]}}" value="{{inputVal}}" focus="{{inputShowed}}" bindconfirm="startSearch" />
<view class="weui-icon-clear" wx:if="{{inputVal.length > 0}}" bindtap="clearInput">
<view class="weui-icon-clear" wx:if="{{inputVal.length > 0}}" bindtap="clearInput">
<icon type="clear" size="16"></icon>
<icon type="clear" size="16"></icon>
</view>
</view>
</view>
</view>
<label class="weui-search-bar__label" hidden="{{inputShowed}}" bindtap="showInput">
<label class="weui-search-bar__label" hidden="{{inputShowed}}" bindtap="showInput">
<icon class="weui-icon-search" type="search" size="16"></icon>
<icon class="weui-icon-search" type="search" size="16"></icon>
<view class="weui-search-bar__text">发现{{
communities[curCommun
ity]}}·感兴趣的活动</view>
<view class="weui-search-bar__text">发现{{
entities[curEnt
ity]}}·感兴趣的活动</view>
</label>
</label>
</view>
</view>
<view class="weui-search-bar__cancel-btn" hidden="{{!inputShowed}}" bindtap="hideInput">取消
<view class="weui-search-bar__cancel-btn" hidden="{{!inputShowed}}" bindtap="hideInput">取消
...
@@ -48,23 +48,23 @@
...
@@ -48,23 +48,23 @@
<!-- jscat20200816 添加活动日历 for convinience -->
<!-- jscat20200816 添加活动日历 for convinience -->
<block>
<block>
<view class="items">
<view class="items">
<navigator url="/pages/activity/activity-list/activity-list?entityName={{
communities[curCommun
ity]}}&activityType={{activityType}}">
<navigator url="/pages/activity/activity-list/activity-list?entityName={{
entities[curEnt
ity]}}&activityType={{activityType}}">
<image src="../../icon/member/schedule.png" style="margin-top:10rpx; margin-bottom:-10rpx"></image>
<image src="../../icon/member/schedule.png" style="margin-top:10rpx; margin-bottom:-10rpx"></image>
<text style="font-size:28rpx;">本周活动: {{
communityInfos[curCommun
ity].num_activity}}场</text>
<text style="font-size:28rpx;">本周活动: {{
entityInfos[curEnt
ity].num_activity}}场</text>
</navigator>
</navigator>
</view>
</view>
</block>
</block>
<block wx:if="{{
communityInfos[curCommun
ity].num_entity > 1}}">
<block wx:if="{{
entityInfos[curEnt
ity].num_entity > 1}}">
<view class="items">
<view class="items">
<image src="../../icon/community/community.png" style="margin-top:10rpx; margin-bottom:-10rpx"></image>
<image src="../../icon/community/community.png" style="margin-top:10rpx; margin-bottom:-10rpx"></image>
<text style="font-size:28rpx;">园区: {{
communityInfos[curCommun
ity].num_entity}}个</text>
<text style="font-size:28rpx;">园区: {{
entityInfos[curEnt
ity].num_entity}}个</text>
</view>
</view>
</block>
</block>
<view class="items">
<view class="items">
<image src="../../icon/activity/like.png" style="margin-top:10rpx; margin-bottom:-10rpx"></image>
<image src="../../icon/activity/like.png" style="margin-top:10rpx; margin-bottom:-10rpx"></image>
<text style="font-size:28rpx;">热度: {{
communityInfos[curCommun
ity].num_like}}点</text>
<text style="font-size:28rpx;">热度: {{
entityInfos[curEnt
ity].num_like}}点</text>
</view>
</view>
</view>
</view>
...
...
增值产品-小程序及app/nyx-dev/pages/community/introduction/introduction.js
deleted
100644 → 0
查看文件 @
ace48180
// pages/user/user.js
// pages/user/user.js
Page
({
/**
* 页面的初始数据
*/
data
:
{
strAddress
:
""
,
strIntro
:
{},
},
/**
* 生命周期函数--监听页面加载
*/
onLoad
:
function
(
options
)
{
var
_this
=
this
;
var
strAddress
=
""
if
(
options
.
strAddress
!=
""
&&
options
.
strAddress
!=
undefined
)
{
strAddress
=
options
.
strAddress
}
var
strIntro
=
{
"思南公馆"
:
"思南公馆是中国上海市中心唯一一个以成片花园洋房的保留保护为宗旨的项目,坐拥51栋历史悠久的花园洋房,同时汇聚了独立式花园洋房、联立式花园洋房、带内院独立式花园洋房、联排式建筑、外廊式建筑、新式里弄、花园里弄、现代公寓等多种建筑样式 ,是上海近代居住类建筑的集中地。
\
n占地面积约5万平方米,总建筑面积近8万平方米,内设有精品酒店、酒店式公寓、企业公馆和商业区,与淮海路沿线的百年经典建筑、名人故居交相辉映,成为上海市中心集人文、历史和时尚底蕴于一身,最具特色的风景。"
,
"永平里"
:
"永平里 (上海衡复历史文化风貌区之一)
\
n永平里,北临衡山路、南接永嘉路。内部建筑错落于其中,相互由道路和庭院形成整体贯通,成为连接衡山路和永嘉路的特别区域兼具历史风貌和现代欧式风格的步行街道。"
}
_this
.
setData
({
strAddress
,
strIntro
})
wx
.
setNavigationBarTitle
({
title
:
'园区介绍'
,
})
},
/**
* 生命周期函数--监听页面初次渲染完成
*/
onReady
:
function
()
{
},
/**
* 生命周期函数--监听页面显示
*/
onShow
:
function
()
{
},
/**
* 生命周期函数--监听页面隐藏
*/
onHide
:
function
()
{
},
/**
* 生命周期函数--监听页面卸载
*/
onUnload
:
function
()
{
},
/**
* 页面相关事件处理函数--监听用户下拉动作
*/
onPullDownRefresh
:
function
()
{
},
/**
* 页面上拉触底事件的处理函数
*/
onReachBottom
:
function
()
{
},
/**
* 用户点击右上角分享
*/
onShareAppMessage
:
function
()
{
}
})
\ No newline at end of file
增值产品-小程序及app/nyx-dev/pages/community/introduction/introduction.json
deleted
100644 → 0
查看文件 @
ace48180
{}
{}
\ No newline at end of file
增值产品-小程序及app/nyx-dev/pages/community/introduction/introduction.wxml
deleted
100644 → 0
查看文件 @
ace48180
<view class="page">
<view class="page">
<view class="userInfo">
<view class="userDesc">
<span>{{strIntro[strAddress]}}</span>
</view>
</view>
</view>
增值产品-小程序及app/nyx-dev/pages/community/introduction/introduction.wxss
deleted
100644 → 0
查看文件 @
ace48180
.page{
.page{
height: 100vh;
background: #f5f8fa;
}
.userinfo{
width: 100%;
height: 450rpx;
background: rgb(185, 172, 155);
}
.head-img{
width: 100%;
display: flex;
flex-direction: column;
align-items: center;
justify-content: center;
overflow: hidden;
padding-top: 30px;
}
.thumb{
width: 120rpx;
height: 120rpx;
border: 1px solid #ffffff;
border-radius: 50%;
overflow: hidden;
}
.name{
margin: 30rpx;
color: #ffffff;
}
.userMessage{
display: flex;
justify-content: center; /*子元素水平居中*/
align-items: center; /*子元素垂直居中*/
}
.messageBox{
width: 650rpx;
height: 150rpx;
}
.focus, .fans, .praise-collect{
width: 200rpx;
color: #ffffff;
display: flex;
flex-direction: column;
align-items: center;
justify-content: center;
overflow: hidden;
float: left;
}
.border{
color: #ffffff;
width: 20rpx;
height: 150rpx;
float: left;
}
.grade{
height: 70rpx;
color: #6d6d6d;
background: #ffffff;
display: flex;
justify-content: center; /*子元素水平居中*/
align-items: center; /*子元素垂直居中*/
}
.grade-icon{
width: 50rpx;
height: 50rpx;
margin-right: 10rpx;
}
.userDesc{
height: 120rpx;
color: #6d6d6d;
background: #ffffff;
}
.userDesc span{
margin-left: 30rpx;
}
增值产品-小程序及app/nyx-dev/pages/fair/fair.js
查看文件 @
aca9f2f7
差异被折叠。
点击展开。
增值产品-小程序及app/nyx-dev/pages/fair/fair.wxml
查看文件 @
aca9f2f7
<wxs
module="tutil" src="./../../utils/date.wxs"></wxs>
<wxs
module="tutil" src="./../../utils/date.wxs"></wxs>
...
@@ -7,21 +7,21 @@
...
@@ -7,21 +7,21 @@
<!-- refer https://www.jb51.net/article/158292.htm -->
<!-- refer https://www.jb51.net/article/158292.htm -->
<!-- refer https://github.com/cinoliu/-selectCity -->
<!-- refer https://github.com/cinoliu/-selectCity -->
<view class="weui-search-bar">
<view class="weui-search-bar">
<picker mode="selector" range="{{
communities}}" value="{{curCommunity}}" bindchange="onCommun
ityPicker" class='address_member'>
<picker mode="selector" range="{{
entities}}" value="{{curEntity}}" bindchange="onEnt
ityPicker" class='address_member'>
<text>{{
communities[curCommun
ity]}}</text>
<text>{{
entities[curEnt
ity]}}</text>
<image src='../../icon/down.png' style='width: 40rpx;height: 40rpx;' class='selecrtImg'></image>
<image src='../../icon/down.png' style='width: 40rpx;height: 40rpx;' class='selecrtImg'></image>
</picker>
</picker>
<view class="weui-search-bar__form">
<view class="weui-search-bar__form">
<view class="weui-search-bar__box">
<view class="weui-search-bar__box">
<icon class="weui-icon-search_in-box" type="search" size="16"></icon>
<icon class="weui-icon-search_in-box" type="search" size="16"></icon>
<input type="text" class="weui-search-bar__input" placeholder="发现{{
communities[curCommun
ity]}}" value="{{inputVal}}" focus="{{inputShowed}}" bindconfirm="startSearch" />
<input type="text" class="weui-search-bar__input" placeholder="发现{{
entities[curEnt
ity]}}" value="{{inputVal}}" focus="{{inputShowed}}" bindconfirm="startSearch" />
<view class="weui-icon-clear" wx:if="{{inputVal.length > 0}}" bindtap="clearInput">
<view class="weui-icon-clear" wx:if="{{inputVal.length > 0}}" bindtap="clearInput">
<icon type="clear" size="16"></icon>
<icon type="clear" size="16"></icon>
</view>
</view>
</view>
</view>
<label class="weui-search-bar__label" hidden="{{inputShowed}}" bindtap="showInput">
<label class="weui-search-bar__label" hidden="{{inputShowed}}" bindtap="showInput">
<icon class="weui-icon-search" type="search" size="16"></icon>
<icon class="weui-icon-search" type="search" size="16"></icon>
<view class="weui-search-bar__text">发现{{
communities[curCommun
ity]}}·感兴趣的活动</view>
<view class="weui-search-bar__text">发现{{
entities[curEnt
ity]}}·感兴趣的活动</view>
</label>
</label>
</view>
</view>
<view class="weui-search-bar__cancel-btn" hidden="{{!inputShowed}}" bindtap="hideInput">取消
<view class="weui-search-bar__cancel-btn" hidden="{{!inputShowed}}" bindtap="hideInput">取消
...
@@ -48,19 +48,23 @@
...
@@ -48,19 +48,23 @@
<!-- jscat20200816 添加活动日历 for convinience -->
<!-- jscat20200816 添加活动日历 for convinience -->
<block>
<block>
<view class="items">
<view class="items">
<navigator url="/pages/activity/activity-list/activity-list?
strAddress={{communities[curCommunity]
}}">
<navigator url="/pages/activity/activity-list/activity-list?
entityName={{entities[curEntity]}}&activityType={{activityType
}}">
<image src="../../icon/member/schedule.png" style="margin-top:10rpx; margin-bottom:-10rpx"></image>
<image src="../../icon/member/schedule.png" style="margin-top:10rpx; margin-bottom:-10rpx"></image>
<text style="font-size:28rpx;">本周活动</text>
<text style="font-size:28rpx;">本周活动
: {{entityInfos[curEntity].num_activity}}场
</text>
</navigator>
</navigator>
</view>
</view>
</block>
</block>
<
!-- todo 0828 我的活动暂时也不实现 --
>
<
block wx:if="{{entityInfos[curEntity].num_entity > 1}}"
>
<view class="items">
<view class="items">
<navigator url="/pages/community/introduction/introduction?strAddress={{communities[curCommunity]}}">
<image src="../../icon/fair/fair.png" style="margin-top:10rpx; margin-bottom:-10rpx"></image>
<image src="../../icon/activity/order.png" style="margin-top:10rpx; margin-bottom:-10rpx"></image>
<text style="font-size:28rpx;">集市: {{entityInfos[curEntity].num_entity}}个</text>
</navigator>
</view>
<text>{{communities[curCommunity]}}介绍</text>
</block>
<view class="items">
<image src="../../icon/activity/like.png" style="margin-top:10rpx; margin-bottom:-10rpx"></image>
<text style="font-size:28rpx;">热度: {{entityInfos[curEntity].num_like}}点</text>
</view>
</view>
</view>
</view>
...
...
编写
预览
Markdown
格式
0%
重试
或
添加新文件
添加附件
取消
您添加了
0
人
到此讨论。请谨慎行事。
请先完成此评论的编辑!
取消
请
注册
或者
登录
后发表评论