Compare commits
3 Commits
Author | SHA1 | Date | |
---|---|---|---|
|
a7d42ebaf3 | ||
|
d4bb4f1c78 | ||
|
c3a50e5cd8 |
131
app.js
@ -1,73 +1,72 @@
|
||||
//app.js
|
||||
var restAjax = require('utils/restAjax.js');
|
||||
var dialog = require('utils/dialog.js');
|
||||
var utils = require('utils/util.js');
|
||||
// + 'https://www.xzszwhy.cn/usercenter'
|
||||
App({
|
||||
loginUrl: restAjax.baseUrl,
|
||||
usercenterUrl: restAjax.baseUrl,
|
||||
newsUrl: restAjax.baseUrl,
|
||||
newsContentUrl: restAjax.url,
|
||||
libraryUrl: restAjax.baseUrl,
|
||||
venueUrl: restAjax.baseUrl,
|
||||
activityUrl: restAjax.baseUrl,
|
||||
volunteerUrl: restAjax.baseUrl,
|
||||
activityUrl: restAjax.baseUrl,
|
||||
volunteerUrl: restAjax.baseUrl,
|
||||
liveUrl: restAjax.url + 'live',
|
||||
liveRecordUrl: restAjax.baseUrl,
|
||||
socialUrl: restAjax.baseUrl,
|
||||
areaCode: '540200000000',
|
||||
areaName: '日喀则市',
|
||||
areaId: '640675',
|
||||
appId: 'wxa5c5246b283713de',
|
||||
shopUrl: restAjax.url + "xzshop",
|
||||
bigDataUrl: restAjax.url + "module",
|
||||
restAjax: restAjax,
|
||||
shopImgUrl: restAjax.url + "xzshop/route/file/download/true/",
|
||||
imgUrl: restAjax.baseUrl + "/route/file/download/true/",
|
||||
liveImgUrl: restAjax.url + "live/route/file/download/true/",
|
||||
dialog: dialog,
|
||||
utils: utils,
|
||||
wssUrl: restAjax.wssUrl,
|
||||
onLaunch: function () {
|
||||
// 展示本地存储能力
|
||||
var logs = wx.getStorageSync('logs') || []
|
||||
logs.unshift(Date.now())
|
||||
wx.setStorageSync('logs', logs)
|
||||
// loginUrl: 'https://www.xzszwhy.cn/usercenter',
|
||||
// usercenterUrl: 'https://www.xzszwhy.cn/usercenter',
|
||||
// newsUrl: 'https://www.xzszwhy.cn/news',
|
||||
// newsContentUrl: 'https://www.xzszwhy.cn',
|
||||
// libraryUrl: 'https://www.xzszwhy.cn/library',
|
||||
// venueUrl: 'https://www.xzszwhy.cn/venuebooking',
|
||||
// activityUrl: 'https://www.xzszwhy.cn/culturalactivity',
|
||||
// volunteerUrl: 'https://www.xzszwhy.cn/volunteer',
|
||||
// activityUrl: 'https://www.xzszwhy.cn/culturalactivity',
|
||||
// volunteerUrl: 'https://www.xzszwhy.cn/volunteer',
|
||||
// liveUrl: 'https://www.xzszwhy.cn/live',
|
||||
// liveRecordUrl: 'https://www.xzszwhy.cn.ink',
|
||||
// socialUrl: 'https://www.xzszwhy.cn/social',
|
||||
// settingUrl: 'https://www.xzszwhy.cn/miniapp',
|
||||
|
||||
// 登录
|
||||
wx.login({
|
||||
success: res => {
|
||||
// 发送 res.code 到后台换取 openId, sessionKey, unionId
|
||||
}
|
||||
})
|
||||
// 获取用户信息
|
||||
wx.getSetting({
|
||||
success: res => {
|
||||
if (res.authSetting['scope.userInfo']) {
|
||||
// 已经授权,可以直接调用 getUserInfo 获取头像昵称,不会弹框
|
||||
wx.getUserInfo({
|
||||
success: res => {
|
||||
// 可以将 res 发送给后台解码出 unionId
|
||||
this.globalData.userInfo = res.userInfo
|
||||
loginUrl: 'http://219.159.20.131:8081/usercenter',
|
||||
usercenterUrl: 'http://219.159.20.131:8081/usercenter',
|
||||
newsUrl: 'http://219.159.20.131:8081/news',
|
||||
newsContentUrl: 'http://219.159.20.131:8081',
|
||||
libraryUrl: 'http://219.159.20.131:8081/library',
|
||||
venueUrl: 'http://219.159.20.131:8081/venuebooking',
|
||||
activityUrl: 'http://219.159.20.131:8081/culturalactivity',
|
||||
volunteerUrl: 'http://219.159.20.131:8081/volunteer',
|
||||
activityUrl: 'http://219.159.20.131:8081/culturalactivity',
|
||||
volunteerUrl: 'http://219.159.20.131:8081/volunteer',
|
||||
liveUrl: 'http://219.159.20.131:8081/live',
|
||||
liveRecordUrl: 'https://www.xzszwhy.cn.ink',
|
||||
socialUrl: 'http://219.159.20.131:8081/social',
|
||||
settingUrl: 'http://219.159.20.131:8081/miniapp',
|
||||
restAjax: restAjax,
|
||||
dialog: dialog,
|
||||
onLaunch: function () {
|
||||
// 展示本地存储能力
|
||||
var logs = wx.getStorageSync('logs') || []
|
||||
logs.unshift(Date.now())
|
||||
wx.setStorageSync('logs', logs)
|
||||
|
||||
// 由于 getUserInfo 是网络请求,可能会在 Page.onLoad 之后才返回
|
||||
// 所以此处加入 callback 以防止这种情况
|
||||
if (this.userInfoReadyCallback) {
|
||||
this.userInfoReadyCallback(res)
|
||||
}
|
||||
}
|
||||
})
|
||||
}
|
||||
}
|
||||
})
|
||||
},
|
||||
globalData: {
|
||||
userInfo: null,
|
||||
curLat: -1,
|
||||
curLng: -1,
|
||||
carList: [],
|
||||
isPublic: false,//是否关注了公众号
|
||||
}
|
||||
// 登录
|
||||
wx.login({
|
||||
success: res => {
|
||||
// 发送 res.code 到后台换取 openId, sessionKey, unionId
|
||||
}
|
||||
})
|
||||
// 获取用户信息
|
||||
wx.getSetting({
|
||||
success: res => {
|
||||
if (res.authSetting['scope.userInfo']) {
|
||||
// 已经授权,可以直接调用 getUserInfo 获取头像昵称,不会弹框
|
||||
wx.getUserInfo({
|
||||
success: res => {
|
||||
// 可以将 res 发送给后台解码出 unionId
|
||||
this.globalData.userInfo = res.userInfo
|
||||
|
||||
// 由于 getUserInfo 是网络请求,可能会在 Page.onLoad 之后才返回
|
||||
// 所以此处加入 callback 以防止这种情况
|
||||
if (this.userInfoReadyCallback) {
|
||||
this.userInfoReadyCallback(res)
|
||||
}
|
||||
}
|
||||
})
|
||||
}
|
||||
}
|
||||
})
|
||||
},
|
||||
globalData: {
|
||||
userInfo: null
|
||||
}
|
||||
})
|
209
app.json
@ -1,121 +1,92 @@
|
||||
{
|
||||
"pages": [
|
||||
"pages/index/index",
|
||||
"pages/travel/travel",
|
||||
"pages/resource/resource",
|
||||
"pages/template/template",
|
||||
"pages/train/train",
|
||||
"pages/cultureMap/cultureMap",
|
||||
"pages/order/order",
|
||||
"pages/venue/venue",
|
||||
"pages/center/center",
|
||||
"pages/myFriendCircle/myFriendCircle",
|
||||
"pages/friendCircle/friendCircle",
|
||||
"pages/orderDetail/orderDetail",
|
||||
"pages/broadcastList/broadcastList",
|
||||
"pages/myVenueOrder/myVenueOrder",
|
||||
"pages/broadcast/broadcast",
|
||||
"pages/activityDialog/activityDialog",
|
||||
"pages/teamDetail/teamDetail",
|
||||
"pages/volunteerRegister/volunteerRegister",
|
||||
"pages/volunteer/volunteer",
|
||||
"pages/heritage/heritage",
|
||||
"pages/broadcastDetail/broadcastDetail",
|
||||
"pages/venueDetail/venueDetail",
|
||||
"pages/book/book",
|
||||
"pages/register/register",
|
||||
"pages/login/login",
|
||||
"pages/newVolunteerActivity/newVolunteerActivity",
|
||||
"pages/newTeam/newTeam",
|
||||
"pages/volunteerTeam/volunteerTeam",
|
||||
"pages/cultureDetail/cultureDetail",
|
||||
"pages/activitySign/activitySign",
|
||||
"pages/activityDetail/activityDetail",
|
||||
"pages/activity/activity",
|
||||
"pages/newsDetail/newsDetail",
|
||||
"pages/newsList/newsList",
|
||||
"pages/myActivity/myActivity",
|
||||
"pages/myVolunteerTeam/myVolunteerTeam",
|
||||
"pages/myVolunteerActivity/myVolunteerActivity",
|
||||
"pages/serviceActivityDetail/serviceActivityDetail",
|
||||
"pages/shop/shopcategory",
|
||||
"pages/commonQrCode/commonQrCode"
|
||||
],
|
||||
"subPackages": [
|
||||
{
|
||||
"root": "subpages/",
|
||||
"pages": [
|
||||
"goodslist/goodslist",
|
||||
"goodsdetail/goodsdetail",
|
||||
"goodscar/goodscar",
|
||||
"goodsaddress/goodsaddress",
|
||||
"goodsorder/goodsorder",
|
||||
"addshopaddress/addshopaddress",
|
||||
"editshopaddress/editshopaddress",
|
||||
"orderconfirm/orderconfirm",
|
||||
"addresschoose/addresschoose",
|
||||
"webcontentview/webcontent",
|
||||
"search/commonSearch",
|
||||
"liverecord/liverecord"
|
||||
]
|
||||
}
|
||||
],
|
||||
"window": {
|
||||
"backgroundTextStyle": "light",
|
||||
"navigationBarBackgroundColor": "#9F1512",
|
||||
"navigationBarTitleText": "日喀则市数字文化云",
|
||||
"navigationBarTextStyle": "white"
|
||||
},
|
||||
"tabBar": {
|
||||
"color": "#BBBBBB",
|
||||
"borderStyle": "black",
|
||||
"selectedColor": "#000000",
|
||||
"list": [
|
||||
{
|
||||
"pagePath": "pages/index/index",
|
||||
"iconPath": "images/index.png",
|
||||
"text": "首页",
|
||||
"selectedIconPath": "images/index-on.png"
|
||||
},
|
||||
{
|
||||
"pagePath": "pages/activity/activity",
|
||||
"iconPath": "images/activity.png",
|
||||
"text": "活动",
|
||||
"selectedIconPath": "images/activity-on.png"
|
||||
},
|
||||
{
|
||||
"pagePath": "pages/venue/venue",
|
||||
"iconPath": "images/venue.png",
|
||||
"text": "场馆",
|
||||
"selectedIconPath": "images/venue-on.png"
|
||||
},
|
||||
{
|
||||
"pagePath": "pages/shop/shopcategory",
|
||||
"iconPath": "images/culture.png",
|
||||
"text": "商城",
|
||||
"selectedIconPath": "images/culture-on.png"
|
||||
},
|
||||
{
|
||||
"pagePath": "pages/center/center",
|
||||
"iconPath": "images/center.png",
|
||||
"text": "我的",
|
||||
"selectedIconPath": "images/center-on.png"
|
||||
}
|
||||
]
|
||||
},
|
||||
"usingComponents": {
|
||||
"page-loading": "/components/loading/pageloading",
|
||||
"page-empty": "/components/empty/empty",
|
||||
"loading-more": "/components/loadmore/loading-more"
|
||||
},
|
||||
"permission": {
|
||||
"scope.userLocation": {
|
||||
"desc": "你的位置信息将用于您当前所在位置"
|
||||
}
|
||||
},
|
||||
"requiredPrivateInfos": [
|
||||
"getLocation"
|
||||
],
|
||||
"style": "v2",
|
||||
"sitemapLocation": "sitemap.json"
|
||||
"pages": [
|
||||
"pages/index/index",
|
||||
"pages/newsPage/newsPage",
|
||||
"pages/travel/travel",
|
||||
"pages/resource/resource",
|
||||
"pages/template/template",
|
||||
"pages/train/train",
|
||||
"pages/cultureMap/cultureMap",
|
||||
"pages/order/order",
|
||||
"pages/venue/venue",
|
||||
"pages/center/center",
|
||||
"pages/friendCircle/friendCircle",
|
||||
"pages/orderDetail/orderDetail",
|
||||
"pages/broadcastList/broadcastList",
|
||||
"pages/myVenueOrder/myVenueOrder",
|
||||
"pages/broadcast/broadcast",
|
||||
"pages/activityDialog/activityDialog",
|
||||
"pages/teamDetail/teamDetail",
|
||||
"pages/volunteerRegister/volunteerRegister",
|
||||
"pages/volunteer/volunteer",
|
||||
"pages/heritage/heritage",
|
||||
"pages/broadcastDetail/broadcastDetail",
|
||||
"pages/venueDetail/venueDetail",
|
||||
"pages/book/book",
|
||||
"pages/register/register",
|
||||
"pages/login/login",
|
||||
"pages/newVolunteerActivity/newVolunteerActivity",
|
||||
"pages/newTeam/newTeam",
|
||||
"pages/volunteerTeam/volunteerTeam",
|
||||
"pages/cultureDetail/cultureDetail",
|
||||
"pages/activitySign/activitySign",
|
||||
"pages/activityDetail/activityDetail",
|
||||
"pages/activity/activity",
|
||||
"pages/newsDetail/newsDetail",
|
||||
"pages/newsList/newsList",
|
||||
"pages/myActivity/myActivity",
|
||||
"pages/myVolunteerTeam/myVolunteerTeam",
|
||||
"pages/myVolunteerActivity/myVolunteerActivity",
|
||||
"pages/serviceActivityDetail/serviceActivityDetail"
|
||||
],
|
||||
"window": {
|
||||
"backgroundTextStyle": "light",
|
||||
"navigationBarBackgroundColor": "#ffffff",
|
||||
"navigationBarTitleText": "日喀则市数字文化云",
|
||||
"navigationBarTextStyle": "black"
|
||||
},
|
||||
"tabBar": {
|
||||
"color": "#BBBBBB",
|
||||
"borderStyle": "black",
|
||||
"selectedColor": "#000000",
|
||||
"list": [
|
||||
{
|
||||
"pagePath": "pages/index/index",
|
||||
"iconPath": "images/index.png",
|
||||
"text": "首页",
|
||||
"selectedIconPath": "images/index-on.png"
|
||||
},
|
||||
{
|
||||
"pagePath": "pages/activity/activity",
|
||||
"iconPath": "images/activity.png",
|
||||
"text": "活动",
|
||||
"selectedIconPath": "images/activity-on.png"
|
||||
},
|
||||
{
|
||||
"pagePath": "pages/venue/venue",
|
||||
"iconPath": "images/venue.png",
|
||||
"text": "场馆",
|
||||
"selectedIconPath": "images/venue-on.png"
|
||||
},
|
||||
{
|
||||
"pagePath": "pages/heritage/heritage",
|
||||
"iconPath": "images/culture.png",
|
||||
"text": "文化",
|
||||
"selectedIconPath": "images/culture-on.png"
|
||||
},
|
||||
{
|
||||
"pagePath": "pages/center/center",
|
||||
"iconPath": "images/center.png",
|
||||
"text": "我的",
|
||||
"selectedIconPath": "images/center-on.png"
|
||||
}
|
||||
]
|
||||
},
|
||||
"permission": {
|
||||
"scope.userLocation": {
|
||||
"desc": "你的位置信息将用于您当前所在位置"
|
||||
}
|
||||
},
|
||||
"style": "v2",
|
||||
"sitemapLocation": "sitemap.json"
|
||||
}
|
188
app.wxss
@ -1,188 +0,0 @@
|
||||
/**app.wxss**/
|
||||
.container {
|
||||
height: 100%;
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
align-items: center;
|
||||
justify-content: space-between;
|
||||
padding: 200rpx 0;
|
||||
box-sizing: border-box;
|
||||
}
|
||||
|
||||
radio-group text {
|
||||
font-size: 25rpx;
|
||||
}
|
||||
|
||||
radio .wx-radio-input {
|
||||
border-radius: 50%;
|
||||
width: 24rpx;
|
||||
border: 2rpx solid #5e5e5f;
|
||||
height: 24rpx;
|
||||
}
|
||||
|
||||
radio .wx-radio-input.wx-radio-input-checked {
|
||||
border: none;
|
||||
background: #07c160;
|
||||
}
|
||||
|
||||
radio .wx-radio-input.wx-radio-input-checked::before {
|
||||
border-radius: 50%;
|
||||
/* 圆角 */
|
||||
width: 28rpx;
|
||||
/* 选中后对勾大小,不要超过背景的尺寸 */
|
||||
height: 28rpx;
|
||||
/* 选中后对勾大小,不要超过背景的尺寸 */
|
||||
line-height: 28rpx;
|
||||
text-align: center;
|
||||
font-size: 20rpx;
|
||||
/* 对勾大小 30rpx */
|
||||
color: #fff;
|
||||
/* 对勾颜色 白色 */
|
||||
background: #07c160;
|
||||
transform: translate(-50%, -50%) scale(1);
|
||||
}
|
||||
|
||||
|
||||
|
||||
checkbox-group text {
|
||||
font-size: 25rpx;
|
||||
|
||||
}
|
||||
|
||||
checkbox .wx-checkbox-input {
|
||||
width: 24rpx;
|
||||
border: 2rpx solid #5e5e5f;
|
||||
height: 24rpx;
|
||||
margin-left: 5rpx;
|
||||
}
|
||||
|
||||
checkbox .wx-checkbox-input.wx-checkbox-input-checked {
|
||||
border: none;
|
||||
background: #07c160;
|
||||
}
|
||||
|
||||
checkbox .wx-checkbox-input.wx-checkbox-input-checked::before {
|
||||
/* 圆角 */
|
||||
width: 28rpx;
|
||||
/* 选中后对勾大小,不要超过背景的尺寸 */
|
||||
height: 28rpx;
|
||||
/* 选中后对勾大小,不要超过背景的尺寸 */
|
||||
line-height: 28rpx;
|
||||
text-align: center;
|
||||
font-size: 20rpx;
|
||||
margin-left: 5rpx;
|
||||
/* 对勾大小 30rpx */
|
||||
color: #fff;
|
||||
/* 对勾颜色 白色 */
|
||||
background: #07c160;
|
||||
transform: translate(-50%, -50%) scale(1);
|
||||
}
|
||||
|
||||
|
||||
|
||||
.text-clamp1 {
|
||||
overflow: hidden;
|
||||
display: -webkit-box;
|
||||
-webkit-box-orient: vertical;
|
||||
-webkit-line-clamp: 1;
|
||||
}
|
||||
|
||||
.text-clamp2 {
|
||||
overflow: hidden;
|
||||
display: -webkit-box;
|
||||
-webkit-box-orient: vertical;
|
||||
-webkit-line-clamp: 2;
|
||||
}
|
||||
|
||||
.text-clamp3 {
|
||||
overflow: hidden;
|
||||
display: -webkit-box;
|
||||
-webkit-box-orient: vertical;
|
||||
-webkit-line-clamp: 3;
|
||||
}
|
||||
|
||||
.text-clamp4 {
|
||||
overflow: hidden;
|
||||
display: -webkit-box;
|
||||
-webkit-box-orient: vertical;
|
||||
-webkit-line-clamp: 4;
|
||||
}
|
||||
|
||||
.text-clamp5 {
|
||||
overflow: hidden;
|
||||
display: -webkit-box;
|
||||
-webkit-box-orient: vertical;
|
||||
-webkit-line-clamp: 5;
|
||||
}
|
||||
|
||||
.flex {
|
||||
display: -webkit-box;
|
||||
display: -webkit-flex;
|
||||
display: flex;
|
||||
}
|
||||
|
||||
.flex-center {
|
||||
display: -webkit-box;
|
||||
display: -webkit-flex;
|
||||
display: flex;
|
||||
align-items: center;
|
||||
justify-content: center;
|
||||
-webkit-align-items: center;
|
||||
-webkit-justify-content: center;
|
||||
}
|
||||
|
||||
.flex-alignStart {
|
||||
display: -webkit-box;
|
||||
display: -webkit-flex;
|
||||
display: flex;
|
||||
align-items: flex-start;
|
||||
-webkit-align-items: flex-start;
|
||||
}
|
||||
|
||||
.flex-alignCenter {
|
||||
display: -webkit-box;
|
||||
display: -webkit-flex;
|
||||
display: flex;
|
||||
align-items: center;
|
||||
-webkit-align-items: center;
|
||||
}
|
||||
|
||||
.flex-alignEnd {
|
||||
display: -webkit-box;
|
||||
display: -webkit-flex;
|
||||
display: flex;
|
||||
align-items: flex-end;
|
||||
-webkit-align-items: flex-end;
|
||||
}
|
||||
|
||||
.flex-between {
|
||||
display: -webkit-box;
|
||||
display: -webkit-flex;
|
||||
display: flex;
|
||||
justify-content: space-between;
|
||||
-webkit-justify-content: space-between;
|
||||
}
|
||||
|
||||
.flex-around {
|
||||
display: -webkit-box;
|
||||
display: -webkit-flex;
|
||||
display: flex;
|
||||
justify-content: space-around;
|
||||
-webkit-justify-content: space-around;
|
||||
}
|
||||
|
||||
.flex-middle {
|
||||
display: -webkit-box;
|
||||
display: -webkit-flex;
|
||||
display: flex;
|
||||
justify-content: center;
|
||||
-webkit-justify-content: center;
|
||||
}
|
||||
|
||||
.flex-end {
|
||||
display: -webkit-box;
|
||||
display: -webkit-flex;
|
||||
display: flex;
|
||||
justify-content: flex-end;
|
||||
-webkit-justify-content: flex-end;
|
||||
}
|
@ -1,23 +0,0 @@
|
||||
// components/empty/empty.js
|
||||
Component({
|
||||
/**
|
||||
* 组件的属性列表
|
||||
*/
|
||||
properties: {
|
||||
|
||||
},
|
||||
|
||||
/**
|
||||
* 组件的初始数据
|
||||
*/
|
||||
data: {
|
||||
|
||||
},
|
||||
|
||||
/**
|
||||
* 组件的方法列表
|
||||
*/
|
||||
methods: {
|
||||
|
||||
}
|
||||
})
|
@ -1,4 +0,0 @@
|
||||
{
|
||||
"component": true,
|
||||
"usingComponents": {}
|
||||
}
|
@ -1,5 +0,0 @@
|
||||
<!--components/empty/empty.wxml-->
|
||||
<view class="data-empty">
|
||||
<image src="/images/ic_empty_data.png" mode="scaleToFill"></image>
|
||||
<text class="hint">暂无数据</text>
|
||||
</view>
|
@ -1,24 +0,0 @@
|
||||
/* components/empty/empty.wxss */
|
||||
.data-empty {
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
justify-content: center;
|
||||
align-items: center;
|
||||
text-align: center;
|
||||
align-self: center;
|
||||
|
||||
position: fixed;
|
||||
top: 50%;
|
||||
left: 50%;
|
||||
transform: translateX(-50%)translateY(-50%);
|
||||
}
|
||||
|
||||
.data-empty image {
|
||||
width: 180rpx;
|
||||
height: 120rpx;
|
||||
}
|
||||
|
||||
.data-empty .hint {
|
||||
margin-top: 30rpx;
|
||||
font-size: 32rpx;
|
||||
}
|
@ -1,80 +0,0 @@
|
||||
// components/expandabletext/expandabletext.js
|
||||
/**
|
||||
* 长文本内容展开与收起
|
||||
* @param {String} content 长文本内容
|
||||
* @param {Number} maxline 最多展示行数[只允许 1-5 的正整数]
|
||||
* @param {String} position 展开收起按钮位置[可选值为 left right]
|
||||
* @param {Boolean} foldable 点击长文本是否展开收起
|
||||
*/
|
||||
|
||||
Component({
|
||||
options: {
|
||||
addGlobalClass: true
|
||||
},
|
||||
/**
|
||||
* 组件的属性列表
|
||||
*/
|
||||
properties: {
|
||||
content: {
|
||||
type: String,
|
||||
observer(val) {
|
||||
console.log(val)
|
||||
if (this.data.onReady) {
|
||||
setTimeout(() => this.checkFold(), 10)
|
||||
}
|
||||
}
|
||||
},
|
||||
maxline: {
|
||||
type: Number,
|
||||
value: 1,
|
||||
observer(value) {
|
||||
if (!(/^[1-5]$/).test(value)) {
|
||||
throw new Error(`Maxline field value can only be digits (1-5), Error value: ${value}`)
|
||||
} else if (this.data.onReady) {
|
||||
setTimeout(() => this.checkFold(), 10)
|
||||
}
|
||||
}
|
||||
},
|
||||
position: {
|
||||
type: String,
|
||||
value: "left"
|
||||
},
|
||||
foldable: {
|
||||
type: Boolean,
|
||||
value: true
|
||||
}
|
||||
},
|
||||
|
||||
/**
|
||||
* 组件的初始数据
|
||||
*/
|
||||
data: {
|
||||
onFold: false,
|
||||
showFold: false,
|
||||
onReady: false
|
||||
},
|
||||
lifetimes: {
|
||||
ready() {
|
||||
this.checkFold()
|
||||
this.data.onReady = true
|
||||
}
|
||||
},
|
||||
/**
|
||||
* 组件的方法列表
|
||||
*/
|
||||
methods: {
|
||||
checkFold() {
|
||||
const query = wx.createSelectorQuery().in(this);
|
||||
query.selectAll(".showArea, .hideArea").boundingClientRect(res => {
|
||||
this.setData({
|
||||
showFold: res[0].height < res[1].height
|
||||
})
|
||||
}).exec()
|
||||
},
|
||||
handleFold() {
|
||||
this.setData({
|
||||
onFold: !this.data.onFold
|
||||
})
|
||||
}
|
||||
}
|
||||
})
|
@ -1,4 +0,0 @@
|
||||
{
|
||||
"component": true,
|
||||
"usingComponents": {}
|
||||
}
|
@ -1,7 +0,0 @@
|
||||
<view class="content">
|
||||
<view class="contentInner showArea {{!onFold ? 'text-clamp' + maxline : ''}}" bindtap="{{foldable ? 'handleFold' : ''}}">{{content || "示例文本"}}</view>
|
||||
<view class="contentInner hideArea">{{content || "示例文本"}}</view>
|
||||
<view class="foldInner {{position === 'right' ? 'flex-end' : 'flex'}}" wx:if="{{showFold}}">
|
||||
<text class="fold" catchtap="handleFold">{{onFold ? "收起" : "展开"}}</text>
|
||||
</view>
|
||||
</view>
|
@ -1,34 +0,0 @@
|
||||
.content {
|
||||
width: 690rpx;
|
||||
padding: 0 30rpx;
|
||||
border-top: 20rpx solid transparent;
|
||||
border-bottom: 20rpx solid transparent;
|
||||
margin-bottom: 20rpx;
|
||||
}
|
||||
|
||||
.contentInner {
|
||||
width: 690rpx;
|
||||
color: #ffffff;
|
||||
font-size: 30rpx;
|
||||
line-height: 1.35;
|
||||
text-align: justify;
|
||||
}
|
||||
|
||||
.hideArea {
|
||||
display: -webkit-box;
|
||||
overflow: hidden;
|
||||
position: fixed;
|
||||
top: 100vh;
|
||||
left: -100vw;
|
||||
}
|
||||
|
||||
.foldInner {
|
||||
width: 690rpx;
|
||||
padding-top: 10rpx;
|
||||
}
|
||||
|
||||
.foldInner .fold {
|
||||
color: #eb0000;
|
||||
font-size: 32rpx;
|
||||
cursor: pointer;
|
||||
}
|
@ -1,23 +0,0 @@
|
||||
// components/loading/pageloading.js
|
||||
Component({
|
||||
/**
|
||||
* 组件的属性列表
|
||||
*/
|
||||
properties: {
|
||||
|
||||
},
|
||||
|
||||
/**
|
||||
* 组件的初始数据
|
||||
*/
|
||||
data: {
|
||||
|
||||
},
|
||||
|
||||
/**
|
||||
* 组件的方法列表
|
||||
*/
|
||||
methods: {
|
||||
|
||||
}
|
||||
})
|
@ -1,4 +0,0 @@
|
||||
{
|
||||
"component": true,
|
||||
"usingComponents": {}
|
||||
}
|
@ -1,5 +0,0 @@
|
||||
<!--components/loading/pageloading.wxml-->
|
||||
<view class="page-loading-box">
|
||||
<image src="/images/loading-small.gif" mode="scaleToFill"></image>
|
||||
<view class="text">加载中...</view>
|
||||
</view>
|
@ -1,24 +0,0 @@
|
||||
/* components/loading/pageloading.wxss */
|
||||
.page-loading-box {
|
||||
position: fixed;
|
||||
top: 0;
|
||||
left: 0;
|
||||
right: 0;
|
||||
bottom: 0;
|
||||
/* background: rgba(255, 255, 255, 1); */
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
justify-content: center;
|
||||
align-items: center;
|
||||
z-index: 99;
|
||||
}
|
||||
|
||||
.page-loading-box image {
|
||||
width: 128rpx;
|
||||
height: 128rpx;
|
||||
}
|
||||
|
||||
.page-loading-box .text {
|
||||
margin-top: 20rpx;
|
||||
font-size: 28rpx;
|
||||
}
|
@ -1,30 +0,0 @@
|
||||
// components/loadmore/loading-more.js
|
||||
Component({
|
||||
/**
|
||||
* 组件的属性列表
|
||||
*/
|
||||
properties: {
|
||||
isShowloading: true,
|
||||
loadingTxt: "加载中..."
|
||||
},
|
||||
|
||||
/**
|
||||
* 组件的初始数据
|
||||
*/
|
||||
data: {
|
||||
|
||||
},
|
||||
|
||||
/**
|
||||
* 组件的方法列表
|
||||
*/
|
||||
methods: {
|
||||
|
||||
},
|
||||
observers: {
|
||||
'isShowloading,loadingTxt': function (ss, sss) {
|
||||
console.log(ss)
|
||||
console.log(sss)
|
||||
}
|
||||
}
|
||||
})
|
@ -1,4 +0,0 @@
|
||||
{
|
||||
"component": true,
|
||||
"usingComponents": {}
|
||||
}
|
@ -1,5 +0,0 @@
|
||||
<!--components/loadmore/loading-more.wxml-->
|
||||
<view class="loading-box">
|
||||
<image src="/images/loading.gif" wx:if="{{isShowloading}}"></image>
|
||||
<view class="loading-content">{{loadingTxt}}</view>
|
||||
</view>
|
@ -1,20 +0,0 @@
|
||||
/* components/loadmore/loading-more.wxss */
|
||||
|
||||
.loading-box {
|
||||
width: 100%;
|
||||
height: 80rpx;
|
||||
display: flex;
|
||||
flex-direction: row;
|
||||
justify-content: center;
|
||||
align-items: center;
|
||||
font-size: 35rpx;
|
||||
}
|
||||
|
||||
.loading-box image {
|
||||
width: 40rpx;
|
||||
height: 40rpx;
|
||||
}
|
||||
|
||||
.loading-content {
|
||||
margin-left: 20rpx;
|
||||
}
|
BIN
images/activity-on.png
Executable file → Normal file
Before Width: | Height: | Size: 600 B After Width: | Height: | Size: 3.9 KiB |
BIN
images/activity.png
Executable file → Normal file
Before Width: | Height: | Size: 539 B After Width: | Height: | Size: 3.3 KiB |
BIN
images/address.png
Executable file → Normal file
Before Width: | Height: | Size: 400 B After Width: | Height: | Size: 1.0 KiB |
Before Width: | Height: | Size: 7.3 KiB |
BIN
images/avatar.png
Executable file → Normal file
Before Width: | Height: | Size: 530 B After Width: | Height: | Size: 1.3 KiB |
BIN
images/big-news.png
Executable file → Normal file
Before Width: | Height: | Size: 2.1 KiB After Width: | Height: | Size: 9.0 KiB |
BIN
images/center-activity.png
Normal file
After Width: | Height: | Size: 6.5 KiB |
BIN
images/center-bg.jpg
Normal file
After Width: | Height: | Size: 108 KiB |
Before Width: | Height: | Size: 26 KiB |
BIN
images/center-img.png
Normal file
After Width: | Height: | Size: 133 KiB |
BIN
images/center-on.png
Executable file → Normal file
Before Width: | Height: | Size: 537 B After Width: | Height: | Size: 6.5 KiB |
BIN
images/center-order.png
Normal file
After Width: | Height: | Size: 5.4 KiB |
BIN
images/center-team-activity.png
Normal file
After Width: | Height: | Size: 5.2 KiB |
BIN
images/center-team.png
Normal file
After Width: | Height: | Size: 6.2 KiB |
BIN
images/center.png
Executable file → Normal file
Before Width: | Height: | Size: 507 B After Width: | Height: | Size: 5.4 KiB |
BIN
images/collect.png
Executable file → Normal file
Before Width: | Height: | Size: 541 B After Width: | Height: | Size: 1.7 KiB |
BIN
images/collected.png
Executable file → Normal file
Before Width: | Height: | Size: 445 B After Width: | Height: | Size: 1.1 KiB |
BIN
images/culture-map.png
Normal file
After Width: | Height: | Size: 9.2 KiB |
BIN
images/culture-on.png
Executable file → Normal file
Before Width: | Height: | Size: 756 B After Width: | Height: | Size: 7.9 KiB |
BIN
images/culture.png
Executable file → Normal file
Before Width: | Height: | Size: 632 B After Width: | Height: | Size: 6.3 KiB |
BIN
images/database.png
Normal file
After Width: | Height: | Size: 23 KiB |
BIN
images/delete-photo.png
Executable file → Normal file
Before Width: | Height: | Size: 289 B After Width: | Height: | Size: 1.4 KiB |
BIN
images/delete.png
Executable file → Normal file
Before Width: | Height: | Size: 284 B After Width: | Height: | Size: 497 B |
BIN
images/friend.png
Executable file → Normal file
Before Width: | Height: | Size: 459 B After Width: | Height: | Size: 1.2 KiB |
BIN
images/good.png
Executable file → Normal file
Before Width: | Height: | Size: 349 B After Width: | Height: | Size: 796 B |
Before Width: | Height: | Size: 14 KiB |
Before Width: | Height: | Size: 444 B |
Before Width: | Height: | Size: 455 B |
Before Width: | Height: | Size: 921 B |
Before Width: | Height: | Size: 1.9 KiB |
Before Width: | Height: | Size: 1.1 KiB |
Before Width: | Height: | Size: 341 B |
BIN
images/index-on.png
Executable file → Normal file
Before Width: | Height: | Size: 461 B After Width: | Height: | Size: 1.7 KiB |
BIN
images/index.png
Executable file → Normal file
Before Width: | Height: | Size: 399 B After Width: | Height: | Size: 4.5 KiB |
Before Width: | Height: | Size: 9.6 KiB |
Before Width: | Height: | Size: 33 KiB |
BIN
images/logo.png
Executable file → Normal file
Before Width: | Height: | Size: 4.3 KiB After Width: | Height: | Size: 12 KiB |
BIN
images/man.png
Normal file
After Width: | Height: | Size: 1010 B |
BIN
images/marker_red.png
Executable file → Normal file
Before Width: | Height: | Size: 671 B After Width: | Height: | Size: 812 B |
BIN
images/marker_yellow.png
Executable file → Normal file
Before Width: | Height: | Size: 713 B After Width: | Height: | Size: 3.5 KiB |
BIN
images/my-collect.png
Executable file → Normal file
Before Width: | Height: | Size: 537 B After Width: | Height: | Size: 1.4 KiB |
BIN
images/my-comment.png
Executable file → Normal file
Before Width: | Height: | Size: 573 B After Width: | Height: | Size: 1.4 KiB |
BIN
images/my-sign.png
Executable file → Normal file
Before Width: | Height: | Size: 450 B After Width: | Height: | Size: 1002 B |
BIN
images/people-b.png
Normal file
After Width: | Height: | Size: 3.5 KiB |
BIN
images/phone-b.png
Normal file
After Width: | Height: | Size: 1.8 KiB |
BIN
images/phone-g.png
Normal file
After Width: | Height: | Size: 725 B |
BIN
images/play.png
Executable file → Normal file
Before Width: | Height: | Size: 507 B After Width: | Height: | Size: 33 KiB |
Before Width: | Height: | Size: 578 B |
Before Width: | Height: | Size: 737 B |
Before Width: | Height: | Size: 573 B |
Before Width: | Height: | Size: 805 B |
BIN
images/position-b.png
Normal file
After Width: | Height: | Size: 3.5 KiB |
BIN
images/prev.png
Executable file → Normal file
Before Width: | Height: | Size: 270 B After Width: | Height: | Size: 526 B |
BIN
images/row-icon-1.png
Normal file
After Width: | Height: | Size: 1.2 KiB |
BIN
images/row-icon-2.png
Normal file
After Width: | Height: | Size: 1.0 KiB |
BIN
images/row-icon-3.png
Normal file
After Width: | Height: | Size: 1005 B |
BIN
images/row-icon-4.png
Normal file
After Width: | Height: | Size: 725 B |
BIN
images/row-icon-5.png
Normal file
After Width: | Height: | Size: 1.1 KiB |
BIN
images/row-icon-6.png
Normal file
After Width: | Height: | Size: 790 B |
BIN
images/row-icon-7.png
Normal file
After Width: | Height: | Size: 683 B |
BIN
images/row-icon-8.png
Normal file
After Width: | Height: | Size: 1.1 KiB |
BIN
images/select-tab.png
Executable file → Normal file
Before Width: | Height: | Size: 5.5 KiB After Width: | Height: | Size: 14 KiB |
Before Width: | Height: | Size: 121 B |
Before Width: | Height: | Size: 122 B |
BIN
images/setting.png
Executable file → Normal file
Before Width: | Height: | Size: 636 B After Width: | Height: | Size: 1.8 KiB |
BIN
images/share.png
Executable file → Normal file
Before Width: | Height: | Size: 687 B After Width: | Height: | Size: 1.5 KiB |
BIN
images/tab1.png
Before Width: | Height: | Size: 1.5 KiB After Width: | Height: | Size: 15 KiB |
BIN
images/tab2.png
Before Width: | Height: | Size: 1.7 KiB After Width: | Height: | Size: 18 KiB |
BIN
images/tab3.png
Before Width: | Height: | Size: 1.6 KiB After Width: | Height: | Size: 12 KiB |
BIN
images/tab4.png
Before Width: | Height: | Size: 1.2 KiB After Width: | Height: | Size: 14 KiB |
BIN
images/tab5.png
Before Width: | Height: | Size: 1.4 KiB After Width: | Height: | Size: 14 KiB |
BIN
images/tab6.png
Before Width: | Height: | Size: 3.2 KiB After Width: | Height: | Size: 16 KiB |
BIN
images/tab7.png
Before Width: | Height: | Size: 2.8 KiB After Width: | Height: | Size: 14 KiB |
BIN
images/tab8.png
Normal file
After Width: | Height: | Size: 15 KiB |
BIN
images/tab9.png
Normal file
After Width: | Height: | Size: 17 KiB |
BIN
images/team-activity.png
Normal file
After Width: | Height: | Size: 5.2 KiB |
BIN
images/time-g.png
Normal file
After Width: | Height: | Size: 520 B |
BIN
images/upload-team-avatar.png
Normal file
After Width: | Height: | Size: 23 KiB |
BIN
images/upload-xc.png
Normal file
After Width: | Height: | Size: 11 KiB |
BIN
images/venue-detail-top.png
Normal file
After Width: | Height: | Size: 143 KiB |
Before Width: | Height: | Size: 1.0 KiB After Width: | Height: | Size: 6.2 KiB |