Compare commits
6 Commits
yss_branch
...
main
Author | SHA1 | Date |
---|---|---|
|
59193debec | 1 year ago |
|
50476f2f75 | 2 years ago |
|
6105c294e5 | 2 years ago |
|
4560149a26 | 2 years ago |
|
0fdd0633e0 | 2 years ago |
|
7084ff2e52 | 2 years ago |
@ -1,14 +0,0 @@
|
||||
# Windows
|
||||
[Dd]esktop.ini
|
||||
Thumbs.db
|
||||
$RECYCLE.BIN/
|
||||
|
||||
# macOS
|
||||
.DS_Store
|
||||
.fseventsd
|
||||
.Spotlight-V100
|
||||
.TemporaryItems
|
||||
.Trashes
|
||||
|
||||
# Node.js
|
||||
node_modules/
|
@ -1,19 +0,0 @@
|
||||
// app.js
|
||||
App({
|
||||
onLaunch() {
|
||||
// 展示本地存储能力
|
||||
const logs = wx.getStorageSync('logs') || []
|
||||
logs.unshift(Date.now())
|
||||
wx.setStorageSync('logs', logs)
|
||||
|
||||
// 登录
|
||||
wx.login({
|
||||
success: res => {
|
||||
// 发送 res.code 到后台换取 openId, sessionKey, unionId
|
||||
}
|
||||
})
|
||||
},
|
||||
globalData: {
|
||||
userInfo: null
|
||||
}
|
||||
})
|
@ -1,14 +0,0 @@
|
||||
{
|
||||
"pages":[
|
||||
"pages/index/index",
|
||||
"pages/logs/logs"
|
||||
],
|
||||
"window":{
|
||||
"backgroundTextStyle":"light",
|
||||
"navigationBarBackgroundColor": "#fff",
|
||||
"navigationBarTitleText": "Weixin",
|
||||
"navigationBarTextStyle":"black"
|
||||
},
|
||||
"style": "v2",
|
||||
"sitemapLocation": "sitemap.json"
|
||||
}
|
Before Width: | Height: | Size: 23 KiB |
Before Width: | Height: | Size: 15 KiB |
Before Width: | Height: | Size: 14 KiB |
Before Width: | Height: | Size: 12 KiB |
Before Width: | Height: | Size: 394 KiB |
Before Width: | Height: | Size: 12 KiB |
Before Width: | Height: | Size: 98 KiB |
Before Width: | Height: | Size: 52 KiB |
Before Width: | Height: | Size: 12 KiB |
Before Width: | Height: | Size: 11 KiB |
Before Width: | Height: | Size: 171 KiB |
Before Width: | Height: | Size: 37 KiB |
After Width: | Height: | Size: 248 KiB |
@ -1,2 +0,0 @@
|
||||
<!--pages/book/book.wxml-->
|
||||
<text>pages/book/book.wxml</text>
|
@ -1 +0,0 @@
|
||||
/* pages/book/book.wxss */
|
@ -1,20 +0,0 @@
|
||||
<!--pages/home/home.wxml-->
|
||||
<!--轮播图的结构-->
|
||||
<swiper class="swiper-container" indicator-dots indicator-color="white" indicator-active-color="gray" autoplay interval="3000" circular>
|
||||
<!--第一个轮播图-->
|
||||
<swiper-item>
|
||||
<image src="/images/word.png"/>
|
||||
</swiper-item>
|
||||
<!--第二个轮播图-->
|
||||
<swiper-item>
|
||||
<image src="/images/normalworld.png"/>
|
||||
</swiper-item>
|
||||
<!--第三个轮播图-->
|
||||
<swiper-item>
|
||||
<image src="/images/reddream.png"/>
|
||||
</swiper-item>
|
||||
<!--第四个轮播图-->
|
||||
<swiper-item>
|
||||
<image src="/images/gangtie.png"/>
|
||||
</swiper-item>
|
||||
</swiper>
|
@ -1,10 +0,0 @@
|
||||
/* pages/home/home.wxss */
|
||||
/*--轮播图的样式*/
|
||||
.swiper-container{
|
||||
height: 450rpx;
|
||||
}
|
||||
|
||||
.swiper-container image{
|
||||
width: 100%;
|
||||
height: 100%;
|
||||
}
|
@ -1,23 +0,0 @@
|
||||
<!--index.wxml-->
|
||||
<view class="container">
|
||||
<view class="userinfo">
|
||||
<block wx:if="{{canIUseOpenData}}">
|
||||
<view class="userinfo-avatar" bindtap="bindViewTap">
|
||||
<open-data type="userAvatarUrl"></open-data>
|
||||
</view>
|
||||
<open-data type="userNickName"></open-data>
|
||||
</block>
|
||||
<block wx:elif="{{!hasUserInfo}}">
|
||||
<button wx:if="{{canIUseGetUserProfile}}" bindtap="getUserProfile"> 获取头像昵称 </button>
|
||||
<button wx:elif="{{canIUse}}" open-type="getUserInfo" bindgetuserinfo="getUserInfo"> 获取头像昵称 </button>
|
||||
<view wx:else> 请使用1.4.4及以上版本基础库 </view>
|
||||
</block>
|
||||
<block wx:else>
|
||||
<image bindtap="bindViewTap" class="userinfo-avatar" src="{{userInfo.avatarUrl}}" mode="cover"></image>
|
||||
<text class="userinfo-nickname">{{userInfo.nickName}}</text>
|
||||
</block>
|
||||
</view>
|
||||
<view class="usermotto">
|
||||
<text class="user-motto">{{motto}}</text>
|
||||
</view>
|
||||
</view>
|
@ -1,19 +0,0 @@
|
||||
/**index.wxss**/
|
||||
.userinfo {
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
align-items: center;
|
||||
color: #aaa;
|
||||
}
|
||||
|
||||
.userinfo-avatar {
|
||||
overflow: hidden;
|
||||
width: 128rpx;
|
||||
height: 128rpx;
|
||||
margin: 20rpx;
|
||||
border-radius: 50%;
|
||||
}
|
||||
|
||||
.usermotto {
|
||||
margin-top: 200px;
|
||||
}
|
@ -1,2 +0,0 @@
|
||||
<!--pages/person/person.wxml-->
|
||||
<text>pages/person/person.wxml</text>
|
@ -1 +0,0 @@
|
||||
/* pages/person/person.wxss */
|
@ -0,0 +1,21 @@
|
||||
MIT License
|
||||
|
||||
Copyright (c) 2020 jwhuang
|
||||
|
||||
Permission is hereby granted, free of charge, to any person obtaining a copy
|
||||
of this software and associated documentation files (the "Software"), to deal
|
||||
in the Software without restriction, including without limitation the rights
|
||||
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
||||
copies of the Software, and to permit persons to whom the Software is
|
||||
furnished to do so, subject to the following conditions:
|
||||
|
||||
The above copyright notice and this permission notice shall be included in all
|
||||
copies or substantial portions of the Software.
|
||||
|
||||
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
||||
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
||||
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
||||
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
||||
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
||||
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
||||
SOFTWARE.
|
@ -0,0 +1,38 @@
|
||||
// app.js
|
||||
const amapFile = require('utils/amap-wx.js');
|
||||
App({
|
||||
onLaunch() {
|
||||
// 展示本地存储能力
|
||||
const logs = wx.getStorageSync('logs') || []
|
||||
logs.unshift(Date.now())
|
||||
wx.setStorageSync('logs', logs)
|
||||
|
||||
// 登录
|
||||
wx.login({
|
||||
success: res => {
|
||||
// 发送 res.code 到后台换取 openId, sessionKey, unionId
|
||||
}
|
||||
})
|
||||
|
||||
wx.cloud.init({
|
||||
env:'cloud-travel-7gc7n4zqa50965ff', //xxx填写云开发环境id
|
||||
traceUser: true
|
||||
})
|
||||
|
||||
},
|
||||
globalData: {
|
||||
mapInfo:"",
|
||||
mapApi:"https://restapi.amap.com/v3/",
|
||||
history:[],
|
||||
historyRoute:[],
|
||||
homePart: {
|
||||
homeText: '设置一个地址',
|
||||
homePoint: ''
|
||||
|
||||
},
|
||||
companyPart: {
|
||||
companyText: '设置一个地址',
|
||||
companyPoint: '',
|
||||
},
|
||||
}
|
||||
})
|
@ -0,0 +1,74 @@
|
||||
{
|
||||
"pages":[
|
||||
"pages/home/home",
|
||||
"pages/my/my",
|
||||
"pages/information/information",
|
||||
"pages/calendar/calendar",
|
||||
"pages/newslist/newslist",
|
||||
"pages/details/details",
|
||||
"pages/course/course",
|
||||
"pages/login/login",
|
||||
"pages/index/index",
|
||||
"pages/logs/logs",
|
||||
"pages/search/search",
|
||||
"pages/nearby/nearby",
|
||||
"pages/site/site",
|
||||
"pages/route/route",
|
||||
"pages/detail/detail",
|
||||
"pages/admin/admin",
|
||||
"pages/navigation/navigation",
|
||||
"pages/collect/collect"
|
||||
],
|
||||
"requiredPrivateInfos":[
|
||||
"getLocation",
|
||||
"chooseAddress",
|
||||
"onLocationChange",
|
||||
"startLocationUpdate",
|
||||
"startLocationUpdateBackground",
|
||||
"choosePoi",
|
||||
"chooseLocation"
|
||||
],
|
||||
"window":{
|
||||
"backgroundTextStyle":"light",
|
||||
"navigationBarBackgroundColor": "#fff",
|
||||
"navigationBarTitleText": "HDY",
|
||||
"navigationBarTextStyle":"black"
|
||||
},
|
||||
"navigateToMiniProgramAppIdList": [
|
||||
"wxbbec65de8931cc38"
|
||||
],
|
||||
"tabBar": {
|
||||
"borderStyle":"black",
|
||||
"selectedColor": "#00BCD4",
|
||||
"backgroundColor": "#ffffff",
|
||||
"list": [
|
||||
{
|
||||
"pagePath": "pages/home/home",
|
||||
"text": "首页",
|
||||
"iconPath": "/images/home.png",
|
||||
"selectedIconPath": "/images/home.png"
|
||||
},
|
||||
{
|
||||
"pagePath": "pages/index/index",
|
||||
"text": "导航",
|
||||
"iconPath": "/images/navigate.png",
|
||||
"selectedIconPath": "/images/navigate.png"
|
||||
},
|
||||
{
|
||||
"pagePath": "pages/my/my",
|
||||
"text": "个人中心",
|
||||
"iconPath": "/images/my.png",
|
||||
"selectedIconPath": "images/my.png"
|
||||
}
|
||||
]
|
||||
},
|
||||
"style": "v2",
|
||||
"sitemapLocation": "sitemap.json",
|
||||
"permission": {
|
||||
"scope.userLocation": {
|
||||
"desc": "你的位置信息将用于小程序位置接口的效果展示"
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
After Width: | Height: | Size: 1.0 KiB |
After Width: | Height: | Size: 1.7 KiB |
After Width: | Height: | Size: 1.0 KiB |
After Width: | Height: | Size: 1.0 KiB |
After Width: | Height: | Size: 8.0 KiB |
After Width: | Height: | Size: 7.4 KiB |
After Width: | Height: | Size: 410 B |
After Width: | Height: | Size: 1.1 KiB |
After Width: | Height: | Size: 3.0 KiB |
After Width: | Height: | Size: 1.8 KiB |
After Width: | Height: | Size: 1.7 KiB |
After Width: | Height: | Size: 1.1 KiB |
After Width: | Height: | Size: 1.3 KiB |
After Width: | Height: | Size: 8.1 KiB |
After Width: | Height: | Size: 1.0 KiB |
After Width: | Height: | Size: 595 B |
After Width: | Height: | Size: 924 B |
After Width: | Height: | Size: 7.0 KiB |
After Width: | Height: | Size: 1.1 KiB |
After Width: | Height: | Size: 1.8 KiB |
After Width: | Height: | Size: 1.1 KiB |
After Width: | Height: | Size: 9.3 KiB |
After Width: | Height: | Size: 21 KiB |
After Width: | Height: | Size: 8.0 KiB |
After Width: | Height: | Size: 4.5 KiB |
After Width: | Height: | Size: 8.7 KiB |
After Width: | Height: | Size: 4.5 KiB |
After Width: | Height: | Size: 1.3 KiB |
After Width: | Height: | Size: 1.1 KiB |
After Width: | Height: | Size: 1.1 KiB |
After Width: | Height: | Size: 3.0 KiB |
After Width: | Height: | Size: 1.4 KiB |
After Width: | Height: | Size: 835 B |
After Width: | Height: | Size: 6.6 KiB |
After Width: | Height: | Size: 2.0 KiB |
After Width: | Height: | Size: 2.9 KiB |
After Width: | Height: | Size: 1.7 KiB |
After Width: | Height: | Size: 84 KiB |
After Width: | Height: | Size: 61 KiB |
After Width: | Height: | Size: 910 B |
After Width: | Height: | Size: 6.8 KiB |
After Width: | Height: | Size: 7.6 KiB |
After Width: | Height: | Size: 6.4 KiB |
After Width: | Height: | Size: 14 KiB |
After Width: | Height: | Size: 10 KiB |
After Width: | Height: | Size: 22 KiB |
After Width: | Height: | Size: 23 KiB |
After Width: | Height: | Size: 9.3 KiB |
After Width: | Height: | Size: 538 B |
After Width: | Height: | Size: 14 KiB |
After Width: | Height: | Size: 6.7 KiB |
After Width: | Height: | Size: 8.0 KiB |
After Width: | Height: | Size: 16 KiB |
After Width: | Height: | Size: 9.5 KiB |
After Width: | Height: | Size: 12 KiB |
After Width: | Height: | Size: 587 B |