¶Ô±ÈÐÂÎļþ |
| | |
| | | /* |
| | | * Eslint config file |
| | | * Documentation: https://eslint.org/docs/user-guide/configuring/ |
| | | * Install the Eslint extension before using this feature. |
| | | */ |
| | | module.exports = { |
| | | env: { |
| | | es6: true, |
| | | browser: true, |
| | | node: true, |
| | | }, |
| | | ecmaFeatures: { |
| | | modules: true, |
| | | }, |
| | | parserOptions: { |
| | | ecmaVersion: 2018, |
| | | sourceType: 'module', |
| | | }, |
| | | globals: { |
| | | wx: true, |
| | | App: true, |
| | | Page: true, |
| | | getCurrentPages: true, |
| | | getApp: true, |
| | | Component: true, |
| | | requirePlugin: true, |
| | | requireMiniProgram: true, |
| | | }, |
| | | // extends: 'eslint:recommended', |
| | | rules: {}, |
| | | } |
¶Ô±ÈÐÂÎļþ |
| | |
| | | .DS_Store |
| | | coderd.json |
| | | node_modules |
| | | miniprogram_npm |
| | | /dist |
| | | |
| | | |
| | | # local env files |
| | | .env.local |
| | | .env.*.local |
| | | |
| | | # Log files |
| | | npm-debug.log* |
| | | yarn-debug.log* |
| | | yarn-error.log* |
| | | pnpm-debug.log* |
| | | |
| | | # Editor directories and files |
| | | .idea |
| | | .vscode |
| | | *.suo |
| | | *.ntvs* |
| | | *.njsproj |
| | | *.sln |
| | | *.sw? |
¶Ô±ÈÐÂÎļþ |
| | |
| | | // app.js |
| | | App({ |
| | | globalData: { |
| | | primary: '#B08771', |
| | | bottomLift: '' |
| | | }, |
| | | onLaunch: function () { |
| | | //è·åå½å设å¤ä¿¡æ¯ |
| | | const WindowInfo = wx.getWindowInfo() |
| | | console.log('WindowInfo', WindowInfo); |
| | | if (WindowInfo.safeArea.top > 20) { |
| | | this.globalData.bottomLift = WindowInfo.screenHeight - WindowInfo.safeArea.bottom; |
| | | console.log(this.globalData.bottomLift); |
| | | } |
| | | } |
| | | }) |
¶Ô±ÈÐÂÎļþ |
| | |
| | | { |
| | | "pages": [ |
| | | "pages/index/index", |
| | | "pages/discover/discover", |
| | | "pages/consult/consult", |
| | | "pages/consult/detail", |
| | | "pages/mine/mine", |
| | | "pages/auth/auth", |
| | | "pages/design/design" |
| | | ], |
| | | "window": { |
| | | "navigationBarTitleText": "å¿é¦å®¶é", |
| | | "navigationBarTextStyle": "black", |
| | | "navigationBarBackgroundColor": "#fff" |
| | | }, |
| | | "renderer": "skyline", |
| | | "rendererOptions": { |
| | | "skyline": { |
| | | "defaultDisplayBlock": true, |
| | | "disableABTest": true, |
| | | "sdkVersionBegin": "3.0.0", |
| | | "sdkVersionEnd": "15.255.255" |
| | | } |
| | | }, |
| | | "tabBar": { |
| | | "color": "#999", |
| | | "selectedColor": "#110000", |
| | | "list": [ |
| | | { |
| | | "pagePath": "pages/index/index", |
| | | "iconPath": "static/tabbar/nav_home.png", |
| | | "selectedIconPath": "static/tabbar/nav_homeAc.png", |
| | | "text": "é¦é¡µ" |
| | | }, |
| | | { |
| | | "pagePath": "pages/discover/discover", |
| | | "iconPath": "static/tabbar/nav_faxian.png", |
| | | "selectedIconPath": "static/tabbar/nav_faxianAc.png", |
| | | "text": "åç°" |
| | | }, |
| | | { |
| | | "pagePath": "pages/consult/consult", |
| | | "iconPath": "static/tabbar/nav_mendian.png", |
| | | "selectedIconPath": "static/tabbar/nav_mendianAc.png", |
| | | "text": "å¨è¯¢" |
| | | }, |
| | | { |
| | | "pagePath": "pages/mine/mine", |
| | | "iconPath": "static/tabbar/nav_wode.png", |
| | | "selectedIconPath": "static/tabbar/nav_wodeAc.png", |
| | | "text": "æç" |
| | | } |
| | | ] |
| | | }, |
| | | "usingComponents": { |
| | | "van-button": "@vant/weapp/button/index", |
| | | "van-icon": "@vant/weapp/icon/index", |
| | | "van-loading": "@vant/weapp/loading/index", |
| | | "van-empty": "@vant/weapp/empty/index", |
| | | "navBar": "./components/navBar/navBar" |
| | | }, |
| | | "permission": { |
| | | "scope.userLocation": { |
| | | "desc": "ä½ çä½ç½®ä¿¡æ¯å°ç¨äºå°ç¨åºä½ç½®æ¥å£çææå±ç¤º" |
| | | } |
| | | }, |
| | | "componentFramework": "glass-easel", |
| | | "sitemapLocation": "sitemap.json", |
| | | "lazyCodeLoading": "requiredComponents" |
| | | } |
¶Ô±ÈÐÂÎļþ |
| | |
| | | |
| | | view,text{ |
| | | box-sizing: border-box; |
| | | } |
| | | page{ |
| | | background-color: #fff; |
| | | --themeColor:#B08771; |
| | | } |
| | | image{ |
| | | display: flex; |
| | | } |
| | | .container { |
| | | min-height: 100vh; |
| | | padding: 0; |
| | | box-sizing: border-box; |
| | | font-size: 28rpx; |
| | | } |
| | | .primary{ |
| | | color: var(--themeColor); |
| | | } |
| | | .df_sb{ |
| | | display: flex; |
| | | justify-content: space-between; |
| | | align-items: center; |
| | | } |
| | | .placeholder9{ |
| | | color: #999999; |
| | | } |
| | | .arrow_right{ |
| | | width: 16rpx; |
| | | } |
¶Ô±ÈÐÂÎļþ |
| | |
| | | // components/authCard/authCard.js |
| | | Component({ |
| | | /** |
| | | * ç»ä»¶ç屿§å表 |
| | | */ |
| | | properties: { |
| | | type: { // 屿§å |
| | | type: String, |
| | | value: '0' |
| | | }, |
| | | }, |
| | | |
| | | /** |
| | | * ç»ä»¶çåå§æ°æ® |
| | | */ |
| | | data: { |
| | | |
| | | }, |
| | | |
| | | /** |
| | | * ç»ä»¶çæ¹æ³å表 |
| | | */ |
| | | methods: { |
| | | |
| | | } |
| | | }) |
¶Ô±ÈÐÂÎļþ |
| | |
| | | { |
| | | "component": true, |
| | | "usingComponents": {} |
| | | } |
¶Ô±ÈÐÂÎļþ |
| | |
| | | .container{ |
| | | width: 750rpx; |
| | | background-color: #fff; |
| | | padding: 10rpx 40rpx; |
| | | } |
| | | .wrap1{ |
| | | display: flex; |
| | | box-shadow: 0rpx 4rpx 16rpx 0rpx rgba(176,135,113,0.2); |
| | | border-radius: 8rpx; |
| | | padding: 30rpx; |
| | | height: 140rpx; |
| | | .ai{ |
| | | width: 80rpx; |
| | | height: 80rpx; |
| | | display: flex; |
| | | border-radius: 50%; |
| | | justify-content: center; |
| | | align-items: center; |
| | | margin-right: 24rpx; |
| | | background: rgba(176,135,113,0.14); |
| | | image{ |
| | | width: 56rpx; |
| | | height: 56rpx; |
| | | } |
| | | } |
| | | .content{ |
| | | flex: 1; |
| | | .name{ |
| | | font-weight: 600; |
| | | font-size: 32rpx; |
| | | color: #111111; |
| | | margin-bottom: 2rpx; |
| | | } |
| | | .desc{ |
| | | font-weight: 300; |
| | | font-size: 24rpx; |
| | | color: #333333; |
| | | } |
| | | } |
| | | .btn{ |
| | | font-weight: 300; |
| | | font-size: 26rpx; |
| | | line-height: 32rpx; |
| | | width: 68rpx; |
| | | height: 140rpx; |
| | | display: flex; |
| | | flex-direction: column; |
| | | align-items: center; |
| | | justify-content: center; |
| | | margin: -30rpx -30rpx -30rpx 24rpx; |
| | | color: #FFFFFF; |
| | | background: #B08771; |
| | | border-radius: 0rpx 8rpx 8rpx 0rpx; |
| | | } |
| | | } |
¶Ô±ÈÐÂÎļþ |
| | |
| | | <view class="container"> |
| | | <!-- æªææ --> |
| | | <view wx:if="{{ type == '0' }}" class="wrap1"> |
| | | <view class="ai df_ct"> |
| | | <image src="../../static/icon/ai_auth.png"></image> |
| | | </view> |
| | | <view class="content"> |
| | | <view class="name">AIæ¾è®¾è®¡</view> |
| | | <view class="desc">ä½ èº«è¾¹çå
¨å±è®¾è®¡ä¸å®¶</view> |
| | | </view> |
| | | <view class="btn"> |
| | | <view>å»</view> |
| | | <view>ç</view> |
| | | <view>ç</view> |
| | | </view> |
| | | </view> |
| | | <!-- å·²ææ --> |
| | | <view wx:if="{{ type == '1' }}" class="wrap2"> |
| | | |
| | | </view> |
| | | <!-- å·²ææ å·²ç»å® --> |
| | | </view> |
¶Ô±ÈÐÂÎļþ |
| | |
| | | .container { |
| | | width: 750rpx; |
| | | background-color: #fff; |
| | | padding: 10rpx 40rpx; |
| | | } |
| | | .wrap1 { |
| | | display: flex; |
| | | box-shadow: 0rpx 4rpx 16rpx 0rpx rgba(176, 135, 113, 0.2); |
| | | border-radius: 8rpx; |
| | | padding: 30rpx; |
| | | height: 140rpx; |
| | | } |
| | | .wrap1 .ai { |
| | | width: 80rpx; |
| | | height: 80rpx; |
| | | display: flex; |
| | | border-radius: 50%; |
| | | justify-content: center; |
| | | align-items: center; |
| | | margin-right: 24rpx; |
| | | background: rgba(176, 135, 113, 0.14); |
| | | } |
| | | .wrap1 .ai image { |
| | | width: 56rpx; |
| | | height: 56rpx; |
| | | } |
| | | .wrap1 .content { |
| | | flex: 1; |
| | | } |
| | | .wrap1 .content .name { |
| | | font-weight: 600; |
| | | font-size: 32rpx; |
| | | color: #111111; |
| | | margin-bottom: 2rpx; |
| | | } |
| | | .wrap1 .content .desc { |
| | | font-weight: 300; |
| | | font-size: 24rpx; |
| | | color: #333333; |
| | | } |
| | | .wrap1 .btn { |
| | | font-weight: 300; |
| | | font-size: 26rpx; |
| | | line-height: 32rpx; |
| | | width: 68rpx; |
| | | height: 140rpx; |
| | | display: flex; |
| | | flex-direction: column; |
| | | align-items: center; |
| | | justify-content: center; |
| | | margin: -30rpx -30rpx -30rpx 24rpx; |
| | | color: #FFFFFF; |
| | | background: #B08771; |
| | | border-radius: 0rpx 8rpx 8rpx 0rpx; |
| | | } |
¶Ô±ÈÐÂÎļþ |
| | |
| | | // components/navBar/navBar.js |
| | | Component({ |
| | | /** |
| | | * ç»ä»¶ç屿§å表 |
| | | */ |
| | | properties: { |
| | | title: '', |
| | | showBack: { |
| | | type: Boolean, |
| | | value: true |
| | | } |
| | | }, |
| | | |
| | | /** |
| | | * ç»ä»¶çåå§æ°æ® |
| | | */ |
| | | data: { |
| | | |
| | | }, |
| | | |
| | | /** |
| | | * ç»ä»¶çæ¹æ³å表 |
| | | */ |
| | | methods: { |
| | | |
| | | } |
| | | }) |
¶Ô±ÈÐÂÎļþ |
| | |
| | | { |
| | | "component": true, |
| | | "usingComponents": { |
| | | "van-nav-bar": "@vant/weapp/nav-bar/index" |
| | | } |
| | | } |
¶Ô±ÈÐÂÎļþ |
| | |
| | | <van-nav-bar title="{{ title }}" border="{{ false }}"> |
| | | <view slot="left"> |
| | | <van-icon wx:if="{{ showBack }}" name="arrow-left" size="22px" color="#000000" /> |
| | | </view> |
| | | </van-nav-bar> |
¶Ô±ÈÐÂÎļþ |
| | |
| | | /* components/navBar/navBar.wxss */ |
¶Ô±ÈÐÂÎļþ |
| | |
| | | { |
| | | "name": "party", |
| | | "version": "1.0.0", |
| | | "lockfileVersion": 1, |
| | | "requires": true, |
| | | "dependencies": { |
| | | "@vant/weapp": { |
| | | "version": "1.11.6", |
| | | "resolved": "https://registry.npmjs.org/@vant/weapp/-/weapp-1.11.6.tgz", |
| | | "integrity": "sha512-a3heReWYT2gNdsyj6x1hBwsM8V8NrjcPAmle86NH2CD2V/i/h0le75piW6KntSfOPCwekVWMBKhysNrBpJeKdw==" |
| | | } |
| | | } |
| | | } |
¶Ô±ÈÐÂÎļþ |
| | |
| | | { |
| | | "name": "party", |
| | | "version": "1.0.0", |
| | | "main": "app.js", |
| | | "dependencies": { |
| | | "@vant/area-data": "^1.1.3", |
| | | "@vant/weapp": "^1.11.6", |
| | | "vant-weapp": "^0.5.28" |
| | | }, |
| | | "scripts": { |
| | | "test": "echo \"Error: no test specified\" && exit 1" |
| | | }, |
| | | "author": "", |
| | | "license": "ISC", |
| | | "repository": { |
| | | "type": "git", |
| | | "url": "git@gitee.com:ttttimor/party.git" |
| | | }, |
| | | "description": "" |
| | | } |
¶Ô±ÈÐÂÎļþ |
| | |
| | | // pages/auth/auth.js |
| | | Page({ |
| | | |
| | | /** |
| | | * 页é¢çåå§æ°æ® |
| | | */ |
| | | data: { |
| | | agreementFalg: false, |
| | | primary: '' |
| | | }, |
| | | |
| | | agreementChange(e) { |
| | | this.setData({ |
| | | agreementFalg: e.detail, |
| | | }) |
| | | }, |
| | | onLoad(options) { |
| | | var app = getApp().globalData |
| | | this.setData({ |
| | | primary: app.primary |
| | | }) |
| | | }, |
| | | |
| | | /** |
| | | * çå½å¨æå½æ°--çå¬é¡µé¢å次渲æå®æ |
| | | */ |
| | | onReady() { |
| | | |
| | | }, |
| | | |
| | | /** |
| | | * çå½å¨æå½æ°--çå¬é¡µé¢æ¾ç¤º |
| | | */ |
| | | onShow() { |
| | | |
| | | }, |
| | | |
| | | /** |
| | | * çå½å¨æå½æ°--çå¬é¡µé¢éè |
| | | */ |
| | | onHide() { |
| | | |
| | | }, |
| | | |
| | | /** |
| | | * çå½å¨æå½æ°--çå¬é¡µé¢å¸è½½ |
| | | */ |
| | | onUnload() { |
| | | |
| | | }, |
| | | |
| | | /** |
| | | * 页é¢ç¸å
³äºä»¶å¤ç彿°--çå¬ç¨æ·ä¸æå¨ä½ |
| | | */ |
| | | onPullDownRefresh() { |
| | | |
| | | }, |
| | | |
| | | /** |
| | | * 页é¢ä¸æè§¦åºäºä»¶çå¤ç彿° |
| | | */ |
| | | onReachBottom() { |
| | | |
| | | }, |
| | | |
| | | /** |
| | | * ç¨æ·ç¹å»å³ä¸è§å享 |
| | | */ |
| | | onShareAppMessage() { |
| | | |
| | | } |
| | | }) |
¶Ô±ÈÐÂÎļþ |
| | |
| | | { |
| | | "usingComponents": { |
| | | "van-nav-bar": "@vant/weapp/nav-bar/index", |
| | | "van-checkbox": "@vant/weapp/checkbox/index" |
| | | } |
| | | } |
¶Ô±ÈÐÂÎļþ |
| | |
| | | .logo_wrap{ |
| | | width: 140rpx; |
| | | height: 140rpx; |
| | | margin-bottom: 48rpx; |
| | | image{ |
| | | width: 100%; |
| | | height: 100%; |
| | | border-radius: 50%; |
| | | } |
| | | } |
| | | .main_footer{ |
| | | position: fixed; |
| | | bottom: 220rpx; |
| | | left: 40rpx; |
| | | width: 630rpx; |
| | | .line{ |
| | | display: flex; |
| | | flex-wrap: wrap; |
| | | color: #555555; |
| | | font-size: 24rpx; |
| | | margin-bottom: 40rpx; |
| | | .content{ |
| | | flex: 1; |
| | | } |
| | | } |
| | | .btn{ |
| | | width: 630rpx; |
| | | height: 88rpx; |
| | | background: var(--themeColor); |
| | | border-radius: 8rpx; |
| | | display: flex; |
| | | justify-content: center; |
| | | align-items: center; |
| | | color: #fff; |
| | | font-weight: 500; |
| | | font-size: 30rpx; |
| | | } |
| | | } |
| | | .title{ |
| | | font-weight: 600; |
| | | font-size: 44rpx; |
| | | color: #111111; |
| | | line-height: 60rpx; |
| | | margin-bottom: 28rpx; |
| | | } |
| | | .container{ |
| | | min-height: 100vh; |
| | | padding: 120rpx 60rpx; |
| | | background-color: #fff; |
| | | } |
¶Ô±ÈÐÂÎļþ |
| | |
| | | <view> |
| | | <van-nav-bar title="ææç»å½"> |
| | | <view slot="left"> |
| | | <van-icon name="arrow-left" size="22px" color="#000000" /> |
| | | </view> |
| | | </van-nav-bar> |
| | | <view class="container"> |
| | | <view class="logo_wrap"> |
| | | <image src="../../static/icon/logo.png"></image> |
| | | </view> |
| | | <view class="title">æ¬¢è¿æ¥å°å¿é¦å®¶å±
éå¿é¦ï¼å®ç°æ¨å¯¹å®¶çç¾å¥½æ³è±¡</view> |
| | | <view class="placeholder9">æ¨åæ¬¢çæ ·åï¼æé½æï½</view> |
| | | <view class="main_footer"> |
| | | <view class="line"> |
| | | <van-checkbox value="{{ agreementFalg }}" checked-color="{{primary}}" shape="round" bind:change="agreementChange"></van-checkbox> |
| | | <view class="content"> |
| | | <text>æå·²é
读并åæ</text> |
| | | <text class="primary">ãZBOMç¨æ·æå¡åè®®ã</text> |
| | | <text>å</text> |
| | | <text class="primary">ãZBOMç¨æ·éç§æ¿çã</text> |
| | | </view> |
| | | </view> |
| | | <view class="btn">ææºå·å¿«æ·ç»å½</view> |
| | | </view> |
| | | </view> |
| | | </view> |
¶Ô±ÈÐÂÎļþ |
| | |
| | | .logo_wrap { |
| | | width: 140rpx; |
| | | height: 140rpx; |
| | | margin-bottom: 48rpx; |
| | | } |
| | | .logo_wrap image { |
| | | width: 100%; |
| | | height: 100%; |
| | | border-radius: 50%; |
| | | } |
| | | .main_footer { |
| | | position: fixed; |
| | | bottom: 220rpx; |
| | | left: 40rpx; |
| | | width: 630rpx; |
| | | } |
| | | .main_footer .line { |
| | | display: flex; |
| | | flex-wrap: wrap; |
| | | color: #555555; |
| | | font-size: 24rpx; |
| | | margin-bottom: 40rpx; |
| | | } |
| | | .main_footer .line .content { |
| | | flex: 1; |
| | | } |
| | | .main_footer .btn { |
| | | width: 630rpx; |
| | | height: 88rpx; |
| | | background: var(--themeColor); |
| | | border-radius: 8rpx; |
| | | display: flex; |
| | | justify-content: center; |
| | | align-items: center; |
| | | color: #fff; |
| | | font-weight: 500; |
| | | font-size: 30rpx; |
| | | } |
| | | .title { |
| | | font-weight: 600; |
| | | font-size: 44rpx; |
| | | color: #111111; |
| | | line-height: 60rpx; |
| | | margin-bottom: 28rpx; |
| | | } |
| | | .container { |
| | | min-height: 100vh; |
| | | padding: 120rpx 60rpx; |
| | | background-color: #fff; |
| | | } |
¶Ô±ÈÐÂÎļþ |
| | |
| | | // pages/consult/consult.js |
| | | Page({ |
| | | |
| | | /** |
| | | * 页é¢çåå§æ°æ® |
| | | */ |
| | | data: { |
| | | category: ['æ°åä¸å¸', 'ä¸å©è¯ä¹¦', 'å¤§çææ','æ°åä¸å¸', 'ä¸å©è¯ä¹¦', 'å¤§çææ'], |
| | | secondCategory: ['级åç±»','级åç±»','级åç±»','级åç±»','级åç±»','级åç±»'], |
| | | activeCate: '', |
| | | seActiveCate: '', |
| | | dataList: [] |
| | | }, |
| | | |
| | | itemClick(e) { |
| | | const { id } = e.target.dataset |
| | | console.log(e.target.dataset); |
| | | wx.navigateTo({ |
| | | url: '/pages/consult/detail', |
| | | }) |
| | | }, |
| | | cateClick(e) { |
| | | const { index } = e.target.dataset |
| | | console.log(index); |
| | | }, |
| | | seCateClick(e) { |
| | | const { index } = e.target.dataset |
| | | console.log(index); |
| | | }, |
| | | onLoad(options) { |
| | | |
| | | }, |
| | | |
| | | /** |
| | | * çå½å¨æå½æ°--çå¬é¡µé¢å次渲æå®æ |
| | | */ |
| | | onReady() { |
| | | |
| | | }, |
| | | |
| | | /** |
| | | * çå½å¨æå½æ°--çå¬é¡µé¢æ¾ç¤º |
| | | */ |
| | | onShow() { |
| | | |
| | | }, |
| | | |
| | | /** |
| | | * çå½å¨æå½æ°--çå¬é¡µé¢éè |
| | | */ |
| | | onHide() { |
| | | |
| | | }, |
| | | |
| | | /** |
| | | * çå½å¨æå½æ°--çå¬é¡µé¢å¸è½½ |
| | | */ |
| | | onUnload() { |
| | | |
| | | }, |
| | | |
| | | /** |
| | | * 页é¢ç¸å
³äºä»¶å¤ç彿°--çå¬ç¨æ·ä¸æå¨ä½ |
| | | */ |
| | | onPullDownRefresh() { |
| | | |
| | | }, |
| | | |
| | | /** |
| | | * 页é¢ä¸æè§¦åºäºä»¶çå¤ç彿° |
| | | */ |
| | | onReachBottom() { |
| | | |
| | | }, |
| | | |
| | | /** |
| | | * ç¨æ·ç¹å»å³ä¸è§å享 |
| | | */ |
| | | onShareAppMessage() { |
| | | |
| | | } |
| | | }) |
¶Ô±ÈÐÂÎļþ |
| | |
| | | { |
| | | "navigationStyle": "custom", |
| | | "navigationBarTextStyle": "white" |
| | | } |
¶Ô±ÈÐÂÎļþ |
| | |
| | | .container { |
| | | background-color: #fff; |
| | | } |
| | | |
| | | .scroll_cate { |
| | | display: flex; |
| | | align-items: center; |
| | | margin-left: 40rpx; |
| | | height: 60rpx; |
| | | .item { |
| | | margin-right: 54rpx; |
| | | color: #666666; |
| | | flex-shrink: 0; |
| | | } |
| | | |
| | | .active { |
| | | color: #222222; |
| | | font-weight: 500; |
| | | font-size: 30rpx; |
| | | } |
| | | } |
| | | |
| | | .second_list { |
| | | .item { |
| | | padding: 0 40rpx; |
| | | display: flex; |
| | | align-items: center; |
| | | font-size: 24rpx; |
| | | color: #333333; |
| | | height: 60rpx; |
| | | background: #F7F7F7; |
| | | border-radius: 8rpx; |
| | | margin-right: 24rpx; |
| | | } |
| | | .active{ |
| | | background-color: var(--themeColor); |
| | | color: #fff; |
| | | font-size: 24rpx; |
| | | font-weight: 400; |
| | | } |
| | | } |
| | | .content{ |
| | | padding: 0 40rpx 40rpx; |
| | | .item{ |
| | | .img{ |
| | | width: 100%; |
| | | } |
| | | .title{ |
| | | font-size: 30rpx; |
| | | color: #111111; |
| | | margin: 24rpx 0 12rpx; |
| | | } |
| | | .static{ |
| | | font-size: 24rpx; |
| | | color: #999999; |
| | | .liulan{ |
| | | width: 26rpx; |
| | | margin-right: 10rpx; |
| | | } |
| | | } |
| | | } |
| | | } |
¶Ô±ÈÐÂÎļþ |
| | |
| | | <view class="container"> |
| | | <navBar showBack="{{ false }}" title="å¨è¯¢"></navBar> |
| | | <!-- åç±» --> |
| | | <view> |
| | | <scroll-view scroll-x="true" style="weight: 710rpx;margin-bottom: 30rpx;"> |
| | | <view class="scroll_cate"> |
| | | <view bindtap="cateClick" data-index="{{index}}" wx:for="{{ category }}" class="item {{ index == 0 ? 'active': '' }}">{{ item }}</view> |
| | | </view> |
| | | </scroll-view> |
| | | <scroll-view scroll-x="true" style="weight: 710rpx;margin-bottom: 28rpx;"> |
| | | <view class="scroll_cate second_list"> |
| | | <view bindtap="seCateClick" data-index="{{index}}" wx:for="{{ secondCategory }}" class="item {{ index == 0 ? 'active': '' }}">{{ index }}{{ item }}</view> |
| | | </view> |
| | | </scroll-view> |
| | | </view> |
| | | <!-- content --> |
| | | <view class="content"> |
| | | <view class="item" bindtap="itemClick" data-abg="qwe"> |
| | | <image class="img" src="../../static/icon/test.png" mode="widthFix"></image> |
| | | <view class="title">åç¯å®ç¨ç¹è¾ | 䏿¥å¦ä¼çæ³å
å½±å¸å±</view> |
| | | <view class="df_sb static"> |
| | | <view>{{ '2021-08-21 12:00:00' }}</view> |
| | | <view class="df_sb"> |
| | | <image class="liulan" src="../../static/icon/zixun_ic_liulan.png" mode="widthFix"></image> |
| | | <text>1000</text> |
| | | </view> |
| | | </view> |
| | | </view> |
| | | </view> |
| | | </view> |
¶Ô±ÈÐÂÎļþ |
| | |
| | | .container { |
| | | background-color: #fff; |
| | | } |
| | | .scroll_cate { |
| | | display: flex; |
| | | align-items: center; |
| | | margin-left: 40rpx; |
| | | height: 60rpx; |
| | | } |
| | | .scroll_cate .item { |
| | | margin-right: 54rpx; |
| | | color: #666666; |
| | | flex-shrink: 0; |
| | | } |
| | | .scroll_cate .active { |
| | | color: #222222; |
| | | font-weight: 500; |
| | | font-size: 30rpx; |
| | | } |
| | | .second_list .item { |
| | | padding: 0 40rpx; |
| | | display: flex; |
| | | align-items: center; |
| | | font-size: 24rpx; |
| | | color: #333333; |
| | | height: 60rpx; |
| | | background: #F7F7F7; |
| | | border-radius: 8rpx; |
| | | margin-right: 24rpx; |
| | | } |
| | | .second_list .active { |
| | | background-color: var(--themeColor); |
| | | color: #fff; |
| | | font-size: 24rpx; |
| | | font-weight: 400; |
| | | } |
| | | .content { |
| | | padding: 0 40rpx 40rpx; |
| | | } |
| | | .content .item .img { |
| | | width: 100%; |
| | | } |
| | | .content .item .title { |
| | | font-size: 30rpx; |
| | | color: #111111; |
| | | margin: 24rpx 0 12rpx; |
| | | } |
| | | .content .item .static { |
| | | font-size: 24rpx; |
| | | color: #999999; |
| | | } |
| | | .content .item .static .liulan { |
| | | width: 26rpx; |
| | | margin-right: 10rpx; |
| | | } |
¶Ô±ÈÐÂÎļþ |
| | |
| | | // pages/consult/detail.js |
| | | Page({ |
| | | |
| | | /** |
| | | * 页é¢çåå§æ°æ® |
| | | */ |
| | | data: { |
| | | navTitle: '详æ
' |
| | | }, |
| | | |
| | | /** |
| | | * çå½å¨æå½æ°--çå¬é¡µé¢å è½½ |
| | | */ |
| | | onLoad(options) { |
| | | |
| | | }, |
| | | |
| | | /** |
| | | * çå½å¨æå½æ°--çå¬é¡µé¢å次渲æå®æ |
| | | */ |
| | | onReady() { |
| | | |
| | | }, |
| | | |
| | | /** |
| | | * çå½å¨æå½æ°--çå¬é¡µé¢æ¾ç¤º |
| | | */ |
| | | onShow() { |
| | | |
| | | }, |
| | | |
| | | /** |
| | | * çå½å¨æå½æ°--çå¬é¡µé¢éè |
| | | */ |
| | | onHide() { |
| | | |
| | | }, |
| | | |
| | | /** |
| | | * çå½å¨æå½æ°--çå¬é¡µé¢å¸è½½ |
| | | */ |
| | | onUnload() { |
| | | |
| | | }, |
| | | |
| | | /** |
| | | * 页é¢ç¸å
³äºä»¶å¤ç彿°--çå¬ç¨æ·ä¸æå¨ä½ |
| | | */ |
| | | onPullDownRefresh() { |
| | | |
| | | }, |
| | | |
| | | /** |
| | | * 页é¢ä¸æè§¦åºäºä»¶çå¤ç彿° |
| | | */ |
| | | onReachBottom() { |
| | | |
| | | }, |
| | | |
| | | /** |
| | | * ç¨æ·ç¹å»å³ä¸è§å享 |
| | | */ |
| | | onShareAppMessage() { |
| | | |
| | | } |
| | | }) |
¶Ô±ÈÐÂÎļþ |
| | |
| | | { |
| | | "usingComponents": {} |
| | | } |
¶Ô±ÈÐÂÎļþ |
| | |
| | | .main_content { |
| | | padding: 40rpx 40rpx 100rpx; |
| | | |
| | | .main_title { |
| | | font-weight: 500; |
| | | font-size: 44rpx; |
| | | color: #222222; |
| | | margin-bottom: 12rpx; |
| | | } |
| | | |
| | | .datetime { |
| | | margin-bottom: 32rpx; |
| | | font-size: 26rpx; |
| | | color: #999999; |
| | | } |
| | | } |
| | | |
| | | .footer { |
| | | display: flex; |
| | | align-items: center; |
| | | height: 100rpx; |
| | | position: fixed; |
| | | bottom: 0; |
| | | left: 40rpx; |
| | | width: 670rpx; |
| | | .sub_btn { |
| | | display: flex; |
| | | justify-content: center; |
| | | align-items: center; |
| | | height: 72rpx; |
| | | flex: 1; |
| | | background-color: var(--themeColor); |
| | | font-weight: 500; |
| | | color: #FFFFFF; |
| | | font-style: 28rpx; |
| | | box-shadow: 0rpx 4rpx 16rpx 0rpx rgba(176,135,113,0.3), inset 0rpx 2rpx 2rpx 0rpx rgba(255,255,255,0.33); |
| | | border-radius: 8rpx; |
| | | .sheji{ |
| | | width: 28rpx; |
| | | margin-right: 8rpx; |
| | | } |
| | | } |
| | | .item { |
| | | display: flex; |
| | | flex-direction: column; |
| | | justify-content: center; |
| | | align-items: center; |
| | | font-size: 20rpx; |
| | | color: #666666; |
| | | margin-right: 48rpx; |
| | | |
| | | .icon { |
| | | width: 44rpx; |
| | | } |
| | | } |
| | | } |
¶Ô±ÈÐÂÎļþ |
| | |
| | | <view> |
| | | <navBar title="{{ navTitle }}"></navBar> |
| | | <view class="main_content"> |
| | | <view class="main_title">ä¸ç§ç¾å¥½çå
³ï¼è¿å±ç¬é´å¸è½½ç²æ«</view> |
| | | <view class="datetime">å叿¶é´ï¼2021-08-21 10:0</view> |
| | | <view class="content"> |
| | | 客å
ãé¤å
ãå§å®¤ã卿¿ãé³å°â¦â¦å®¶ä¸ç©ºé´çç§°è°ï¼å¤§å¤æ´å®æ åï¼å¯ç¬âçå
³âä¸è¯æ ¼å¤å丽æ½è±¡ã |
| | | è¿ä¸ªä¸å¤ªèµ·ç¼çå°ç©ºé´ï¼åè¯æ¥èªéæï¼âçå
³âæä¿®ç¼å
丹è¿ç¨ä¸ï¼ä½å
çæ°ç»å·¡å
¨èº«æ¶ï¼æå
éè¿çå°æ¹ï¼ä¹æâ夫çå
³è
ï¼è³çè³å¦ä¹æºå
³ä¹âç说æ³ã |
| | | </view> |
| | | </view> |
| | | <!-- footer --> |
| | | <view class="footer"> |
| | | <view class="item"> |
| | | <image class="icon" src="../../static/icon/detail_nav_collected.png" mode="widthFix"></image> |
| | | <view class="name">æ¶è</view> |
| | | </view> |
| | | <view class="item"> |
| | | <image class="icon" src="../../static/icon/detail_nav_share.png" mode="widthFix"></image> |
| | | <view class="name">å享</view> |
| | | </view> |
| | | <view class="sub_btn"> |
| | | <image class="sheji" src="../../static/icon/ic_sheji.png" mode="widthFix"></image> |
| | | <view>å
è´¹é¢çº¦ä¸å±è®¾è®¡</view> |
| | | </view> |
| | | </view> |
| | | </view> |
¶Ô±ÈÐÂÎļþ |
| | |
| | | .main_content { |
| | | padding: 40rpx 40rpx 100rpx; |
| | | } |
| | | .main_content .main_title { |
| | | font-weight: 500; |
| | | font-size: 44rpx; |
| | | color: #222222; |
| | | margin-bottom: 12rpx; |
| | | } |
| | | .main_content .datetime { |
| | | margin-bottom: 32rpx; |
| | | font-size: 26rpx; |
| | | color: #999999; |
| | | } |
| | | .footer { |
| | | display: flex; |
| | | align-items: center; |
| | | height: 100rpx; |
| | | position: fixed; |
| | | bottom: 0; |
| | | left: 40rpx; |
| | | width: 670rpx; |
| | | } |
| | | .footer .sub_btn { |
| | | display: flex; |
| | | justify-content: center; |
| | | align-items: center; |
| | | height: 72rpx; |
| | | flex: 1; |
| | | background-color: var(--themeColor); |
| | | font-weight: 500; |
| | | color: #FFFFFF; |
| | | font-style: 28rpx; |
| | | box-shadow: 0rpx 4rpx 16rpx 0rpx rgba(176, 135, 113, 0.3), inset 0rpx 2rpx 2rpx 0rpx rgba(255, 255, 255, 0.33); |
| | | border-radius: 8rpx; |
| | | } |
| | | .footer .sub_btn .sheji { |
| | | width: 28rpx; |
| | | margin-right: 8rpx; |
| | | } |
| | | .footer .item { |
| | | display: flex; |
| | | flex-direction: column; |
| | | justify-content: center; |
| | | align-items: center; |
| | | font-size: 20rpx; |
| | | color: #666666; |
| | | margin-right: 48rpx; |
| | | } |
| | | .footer .item .icon { |
| | | width: 44rpx; |
| | | } |
¶Ô±ÈÐÂÎļþ |
| | |
| | | // pages/design/design.js |
| | | Page({ |
| | | |
| | | /** |
| | | * 页é¢çåå§æ°æ® |
| | | */ |
| | | data: { |
| | | name: '', |
| | | phone: '', |
| | | city: '' |
| | | }, |
| | | onLoad(options) { |
| | | |
| | | }, |
| | | |
| | | onSubmit() { |
| | | console.log('dd', this.data.name); |
| | | console.log('dd', this.data.phone); |
| | | }, |
| | | selAddress() { |
| | | console.log('ç¹å»äº'); |
| | | wx.chooseLocation({ |
| | | type: 'wgs84', |
| | | success: (res)=> { |
| | | this.setData({ |
| | | city: res.name |
| | | }) |
| | | console.log('res', res); |
| | | } |
| | | }) |
| | | }, |
| | | onReady() { |
| | | |
| | | }, |
| | | |
| | | /** |
| | | * çå½å¨æå½æ°--çå¬é¡µé¢æ¾ç¤º |
| | | */ |
| | | onShow() { |
| | | |
| | | }, |
| | | |
| | | /** |
| | | * çå½å¨æå½æ°--çå¬é¡µé¢éè |
| | | */ |
| | | onHide() { |
| | | |
| | | }, |
| | | |
| | | /** |
| | | * çå½å¨æå½æ°--çå¬é¡µé¢å¸è½½ |
| | | */ |
| | | onUnload() { |
| | | |
| | | }, |
| | | |
| | | /** |
| | | * 页é¢ç¸å
³äºä»¶å¤ç彿°--çå¬ç¨æ·ä¸æå¨ä½ |
| | | */ |
| | | onPullDownRefresh() { |
| | | |
| | | }, |
| | | |
| | | /** |
| | | * 页é¢ä¸æè§¦åºäºä»¶çå¤ç彿° |
| | | */ |
| | | onReachBottom() { |
| | | |
| | | }, |
| | | |
| | | /** |
| | | * ç¨æ·ç¹å»å³ä¸è§å享 |
| | | */ |
| | | onShareAppMessage() { |
| | | |
| | | } |
| | | }) |
¶Ô±ÈÐÂÎļþ |
| | |
| | | { |
| | | "usingComponents": { |
| | | "van-field": "@vant/weapp/field/index" |
| | | }, |
| | | "navigationStyle": "custom", |
| | | "navigationBarTextStyle": "white" |
| | | } |
¶Ô±ÈÐÂÎļþ |
| | |
| | | .banner { |
| | | width: 100%; |
| | | } |
| | | |
| | | .main_content { |
| | | width: 670rpx; |
| | | position: relative; |
| | | top: -100rpx; |
| | | margin: 0 auto; |
| | | background: #FFFFFF; |
| | | box-shadow: 0rpx 0rpx 20rpx 0rpx rgba(0, 0, 0, 0.14); |
| | | border-radius: 8rpx; |
| | | padding: 40rpx; |
| | | |
| | | .btn { |
| | | width: 590rpx; |
| | | height: 88rpx; |
| | | background: #B08771; |
| | | border-radius: 8rpx; |
| | | display: flex; |
| | | justify-content: center; |
| | | align-items: center; |
| | | font-weight: 500; |
| | | font-size: 30rpx; |
| | | color: #FFFFFF; |
| | | } |
| | | |
| | | .line { |
| | | display: flex; |
| | | align-items: center; |
| | | width: 590rpx; |
| | | height: 100rpx; |
| | | background: #F6F6F6; |
| | | border-radius: 8rpx; |
| | | padding: 0 32rpx; |
| | | margin-bottom: 40rpx; |
| | | |
| | | .icon { |
| | | width: 40rpx; |
| | | } |
| | | .city{ |
| | | flex: 1; |
| | | margin-left: 32rpx; |
| | | } |
| | | .input { |
| | | flex: 1; |
| | | } |
| | | |
| | | .van-field__control { |
| | | background: #F6F6F6 !important; |
| | | } |
| | | } |
| | | |
| | | .title { |
| | | font-weight: 600; |
| | | font-size: 32rpx; |
| | | color: #222222; |
| | | line-height: 44rpx; |
| | | margin-bottom: 34rpx; |
| | | text-align: center; |
| | | } |
| | | } |
¶Ô±ÈÐÂÎļþ |
| | |
| | | <view class="container"> |
| | | <navBar title="0å
å
费设计"></navBar> |
| | | <image class="banner" src="../../static/images/design_banner.png"></image> |
| | | <view class="main_content"> |
| | | <view class="title">0å
å®å¶ | æ¨çæ·åè£
ä¿®æ¹æ¡</view> |
| | | <view class="line"> |
| | | <image class="icon" src="../../static/icon/design_ic_name.png" mode="widthFix"></image> |
| | | <van-field type="text" class="input" custom-style="background-color: #F6F6F6;" model:value="{{ name }}" placeholder="请è¾å
¥å§å" maxlength="{{ 15 }}" clearable /> |
| | | </view> |
| | | <view class="line"> |
| | | <image class="icon" src="../../static/icon/design_ic_phone.png" mode="widthFix"></image> |
| | | <van-field type="number" class="input" custom-style="background-color: #F6F6F6;" model:value="{{ phone }}" placeholder="请è¾å
¥èç³»çµè¯" clearable maxlength="{{ 11 }}" /> |
| | | </view> |
| | | <view class="line" bindtap="selAddress"> |
| | | <image class="icon" src="../../static/icon/design_ic_city.png" mode="widthFix"></image> |
| | | <view class="city">{{ city }}</view> |
| | | <image class="arrow_right" src="../../static/icon/arrow_right.png" mode="widthFix"></image> |
| | | </view> |
| | | <view class="btn" bindtap="onSubmit">ç«å³æ¥å</view> |
| | | </view> |
| | | </view> |
¶Ô±ÈÐÂÎļþ |
| | |
| | | .banner { |
| | | width: 100%; |
| | | } |
| | | .main_content { |
| | | width: 670rpx; |
| | | position: relative; |
| | | top: -100rpx; |
| | | margin: 0 auto; |
| | | background: #FFFFFF; |
| | | box-shadow: 0rpx 0rpx 20rpx 0rpx rgba(0, 0, 0, 0.14); |
| | | border-radius: 8rpx; |
| | | padding: 40rpx; |
| | | } |
| | | .main_content .btn { |
| | | width: 590rpx; |
| | | height: 88rpx; |
| | | background: #B08771; |
| | | border-radius: 8rpx; |
| | | display: flex; |
| | | justify-content: center; |
| | | align-items: center; |
| | | font-weight: 500; |
| | | font-size: 30rpx; |
| | | color: #FFFFFF; |
| | | } |
| | | .main_content .line { |
| | | display: flex; |
| | | align-items: center; |
| | | width: 590rpx; |
| | | height: 100rpx; |
| | | background: #F6F6F6; |
| | | border-radius: 8rpx; |
| | | padding: 0 32rpx; |
| | | margin-bottom: 40rpx; |
| | | } |
| | | .main_content .line .icon { |
| | | width: 40rpx; |
| | | } |
| | | .main_content .line .city { |
| | | flex: 1; |
| | | margin-left: 32rpx; |
| | | } |
| | | .main_content .line .input { |
| | | flex: 1; |
| | | } |
| | | .main_content .line .van-field__control { |
| | | background: #F6F6F6 !important; |
| | | } |
| | | .main_content .title { |
| | | font-weight: 600; |
| | | font-size: 32rpx; |
| | | color: #222222; |
| | | line-height: 44rpx; |
| | | margin-bottom: 34rpx; |
| | | text-align: center; |
| | | } |
¶Ô±ÈÐÂÎļþ |
| | |
| | | // pages/discover/discover.js |
| | | Page({ |
| | | |
| | | /** |
| | | * 页é¢çåå§æ°æ® |
| | | */ |
| | | data: { |
| | | |
| | | }, |
| | | |
| | | /** |
| | | * çå½å¨æå½æ°--çå¬é¡µé¢å è½½ |
| | | */ |
| | | onLoad(options) { |
| | | |
| | | }, |
| | | |
| | | /** |
| | | * çå½å¨æå½æ°--çå¬é¡µé¢å次渲æå®æ |
| | | */ |
| | | onReady() { |
| | | |
| | | }, |
| | | |
| | | /** |
| | | * çå½å¨æå½æ°--çå¬é¡µé¢æ¾ç¤º |
| | | */ |
| | | onShow() { |
| | | |
| | | }, |
| | | |
| | | /** |
| | | * çå½å¨æå½æ°--çå¬é¡µé¢éè |
| | | */ |
| | | onHide() { |
| | | |
| | | }, |
| | | |
| | | /** |
| | | * çå½å¨æå½æ°--çå¬é¡µé¢å¸è½½ |
| | | */ |
| | | onUnload() { |
| | | |
| | | }, |
| | | |
| | | /** |
| | | * 页é¢ç¸å
³äºä»¶å¤ç彿°--çå¬ç¨æ·ä¸æå¨ä½ |
| | | */ |
| | | onPullDownRefresh() { |
| | | |
| | | }, |
| | | |
| | | /** |
| | | * 页é¢ä¸æè§¦åºäºä»¶çå¤ç彿° |
| | | */ |
| | | onReachBottom() { |
| | | |
| | | }, |
| | | |
| | | /** |
| | | * ç¨æ·ç¹å»å³ä¸è§å享 |
| | | */ |
| | | onShareAppMessage() { |
| | | |
| | | } |
| | | }) |
¶Ô±ÈÐÂÎļþ |
| | |
| | | { |
| | | "navigationStyle": "custom", |
| | | "navigationBarTextStyle": "white" |
| | | } |
¶Ô±ÈÐÂÎļþ |
| | |
| | | <!--pages/discover/discover.wxml--> |
| | | <text>pages/discover/discover.wxml</text> |
¶Ô±ÈÐÂÎļþ |
| | |
| | | // pages/index/index.js |
| | | Page({ |
| | | |
| | | /** |
| | | * 页é¢çåå§æ°æ® |
| | | */ |
| | | data: { |
| | | // é¡¶é¨nav |
| | | topHeadStyle: 1, |
| | | showWhiteHead: true, |
| | | topHeadBorder: false, |
| | | |
| | | bannerList: [ |
| | | {imgurl: ''}, |
| | | {imgurl: 'adsa.png'}, |
| | | {imgurl: 'adsa.png'}, |
| | | {imgurl: 'adsa.png'}, |
| | | ], |
| | | |
| | | bannerSwiperOption: { |
| | | indicatorDots: true, |
| | | vertical: false, |
| | | autoplay: true, |
| | | interval: 3000, |
| | | duration: 500 |
| | | }, |
| | | }, |
| | | |
| | | toSearch() {}, |
| | | onLoad(options) { |
| | | |
| | | }, |
| | | |
| | | /** |
| | | * çå½å¨æå½æ°--çå¬é¡µé¢å次渲æå®æ |
| | | */ |
| | | onReady() { |
| | | |
| | | }, |
| | | |
| | | /** |
| | | * çå½å¨æå½æ°--çå¬é¡µé¢æ¾ç¤º |
| | | */ |
| | | onShow() { |
| | | |
| | | }, |
| | | |
| | | /** |
| | | * çå½å¨æå½æ°--çå¬é¡µé¢éè |
| | | */ |
| | | onHide() { |
| | | |
| | | }, |
| | | |
| | | /** |
| | | * çå½å¨æå½æ°--çå¬é¡µé¢å¸è½½ |
| | | */ |
| | | onUnload() { |
| | | |
| | | }, |
| | | |
| | | /** |
| | | * 页é¢ç¸å
³äºä»¶å¤ç彿°--çå¬ç¨æ·ä¸æå¨ä½ |
| | | */ |
| | | onPullDownRefresh() { |
| | | |
| | | }, |
| | | |
| | | /** |
| | | * 页é¢ä¸æè§¦åºäºä»¶çå¤ç彿° |
| | | */ |
| | | onReachBottom() { |
| | | |
| | | }, |
| | | |
| | | /** |
| | | * ç¨æ·ç¹å»å³ä¸è§å享 |
| | | */ |
| | | onShareAppMessage() { |
| | | |
| | | } |
| | | }) |
¶Ô±ÈÐÂÎļþ |
| | |
| | | { |
| | | "usingComponents": { |
| | | "van-nav-bar": "@vant/weapp/nav-bar/index", |
| | | "authCard": "/components/authCard/authCard", |
| | | "van-popup": "@vant/weapp/popup/index" |
| | | }, |
| | | "navigationStyle": "custom", |
| | | "navigationBarTextStyle": "white" |
| | | } |
¶Ô±ÈÐÂÎļþ |
| | |
| | | .container { |
| | | background-color: #f7f7f7; |
| | | overflow-y: auto; |
| | | height: 100vh; |
| | | .banner_swiper { |
| | | height: 600rpx; |
| | | width: 100%; |
| | | |
| | | image { |
| | | width: 100%; |
| | | height: 100%; |
| | | display: block; |
| | | } |
| | | } |
| | | |
| | | .consult_swiper { |
| | | height: 420rpx; |
| | | width: 100%; |
| | | |
| | | image { |
| | | width: 100%; |
| | | height: 100%; |
| | | display: block; |
| | | } |
| | | } |
| | | |
| | | .logo_wrap { |
| | | width: 100%; |
| | | display: flex; |
| | | justify-content: center; |
| | | align-items: center; |
| | | padding: 60rpx 0; |
| | | background-color: #fff; |
| | | .logo { |
| | | width: 246rpx; |
| | | } |
| | | } |
| | | |
| | | .active_baoming { |
| | | position: fixed; |
| | | right: 28rpx; |
| | | bottom: 60rpx; |
| | | width: 146rpx; |
| | | } |
| | | |
| | | .function_wrap { |
| | | width: 100%; |
| | | display: flex; |
| | | justify-content: space-between; |
| | | background-color: #fff; |
| | | padding: 40rpx; |
| | | |
| | | .item { |
| | | width: 214rpx; |
| | | height: 232rpx; |
| | | background: #F7F7F7; |
| | | border-radius: 8rpx; |
| | | display: flex; |
| | | flex-direction: column; |
| | | justify-content: center; |
| | | align-items: center; |
| | | |
| | | .img { |
| | | width: 72rpx; |
| | | height: 72rpx; |
| | | background: #FFFFFF; |
| | | border: 1px solid; |
| | | border-radius: 50%; |
| | | } |
| | | |
| | | .name { |
| | | font-weight: 600; |
| | | font-size: 32rpx; |
| | | color: #111111; |
| | | margin: 22rpx 0 10rpx; |
| | | } |
| | | |
| | | .placeholder9 { |
| | | font-weight: 300; |
| | | color: #666666; |
| | | } |
| | | } |
| | | |
| | | } |
| | | |
| | | // 产åè§é¢ |
| | | .product_video { |
| | | padding: 72rpx 40rpx; |
| | | background-color: #fff; |
| | | |
| | | video { |
| | | width: 670rpx; |
| | | height: 300rpx; |
| | | border: 1px solid; |
| | | } |
| | | } |
| | | |
| | | .strategy { |
| | | padding: 80rpx 40rpx; |
| | | background: #F7F7F7; |
| | | |
| | | image { |
| | | width: 100%; |
| | | height: 100%; |
| | | } |
| | | |
| | | .line { |
| | | display: flex; |
| | | justify-content: space-between; |
| | | |
| | | .line_left { |
| | | width: 324rpx; |
| | | height: 304rpx; |
| | | } |
| | | |
| | | .line_right { |
| | | .item { |
| | | width: 322rpx; |
| | | height: 140rpx; |
| | | |
| | | &:nth-last-child(1) { |
| | | margin-top: 24rpx; |
| | | } |
| | | } |
| | | } |
| | | } |
| | | |
| | | .home_id { |
| | | width: 670rpx; |
| | | height: 240rpx; |
| | | margin-top: 24rpx; |
| | | } |
| | | } |
| | | |
| | | // å¨è¯¢ |
| | | .consult { |
| | | padding: 80rpx 40rpx 60rpx; |
| | | background: #fff; |
| | | } |
| | | |
| | | .service { |
| | | padding: 0rpx 40rpx 0rpx; |
| | | background: #fff; |
| | | } |
| | | |
| | | .com_header { |
| | | display: flex; |
| | | justify-content: space-between; |
| | | align-items: center; |
| | | width: 670rpx; |
| | | margin-bottom: 42rpx; |
| | | |
| | | .left { |
| | | font-weight: 600; |
| | | font-size: 36rpx; |
| | | color: #111111; |
| | | line-height: 50rpx; |
| | | flex: 1; |
| | | |
| | | .name { |
| | | display: flex; |
| | | align-items: center; |
| | | |
| | | .icon { |
| | | width: 36rpx; |
| | | height: 36rpx; |
| | | margin-right: 8rpx; |
| | | } |
| | | } |
| | | |
| | | .desc { |
| | | font-weight: 300; |
| | | font-size: 26rpx; |
| | | color: #333333; |
| | | } |
| | | } |
| | | |
| | | .ar_right { |
| | | width: 44rpx; |
| | | height: 44rpx; |
| | | } |
| | | |
| | | } |
| | | } |
¶Ô±ÈÐÂÎļþ |
| | |
| | | <!-- é¡¶é¨nav --> |
| | | <view class="container"> |
| | | <van-nav-bar wx:if="{{ showWhiteHead }}" border="{{ topHeadBorder }}" custom-class="top-head" fixed custom-style="opacity: {{ topHeadStyle }}"> |
| | | <view slot="left" class="flex-cc search" bindtap="toSearch"> |
| | | <text>å¿é¦å®¶é</text> |
| | | <van-icon name="search" size="23px" color="#fff" /> |
| | | <!-- <image src="/static/icon/home_ic_search_black.png" mode="widthFix"></image> --> |
| | | <!-- <text>æç´¢</text> --> |
| | | </view> |
| | | </van-nav-bar> |
| | | <!-- bannerè½®æ --> |
| | | <swiper class="banner_swiper" circular indicator-dots="{{ bannerSwiperOption.indicatorDots }}" autoplay="{{ bannerSwiperOption.autoplay }}" interval="{{ bannerSwiperOption.interval }}" duration="{{ bannerSwiperOption.duration }}"> |
| | | <block wx:for="{{ bannerList }}" wx:key="index"> |
| | | <swiper-item> |
| | | <image mode="aspectFill" src="../../static/icon/test.png"></image> |
| | | </swiper-item> |
| | | </block> |
| | | </swiper> |
| | | <!-- --> |
| | | <view class="function_wrap"> |
| | | <view class="item"> |
| | | <image class="img" src="../../static/icon/test.png"></image> |
| | | <view class="name">éæ±</view> |
| | | <view class="placeholder9">åæå°å¸®æ</view> |
| | | </view> |
| | | <view class="item"> |
| | | <image class="img" src="../../static/icon/test.png"></image> |
| | | <view class="name">å
è´¹éå°º</view> |
| | | <view class="placeholder9">åæå°å¸®æ</view> |
| | | </view> |
| | | <view class="item"> |
| | | <image class="img" src="../../static/icon/test.png"></image> |
| | | <view class="name">é¢ç®</view> |
| | | <view class="placeholder9">å¿«éè·åæ¥ä»·</view> |
| | | </view> |
| | | </view> |
| | | <!-- --> |
| | | <authCard /> |
| | | <!-- 产åè§é¢ --> |
| | | <view class="product_video"> |
| | | <view class="com_header"> |
| | | <view class="left"> |
| | | <view class="name"> |
| | | <image class="icon" src="../../static/icon/home_ic_zhutihuodong.png"></image> |
| | | <text>产åè§é¢</text> |
| | | </view> |
| | | <view class="desc">ä¼éæ´»å¨ï¼æ¢å
䏿¥</view> |
| | | </view> |
| | | <image class="ar_right" src="../../static/icon/home_ar@2x.png"></image> |
| | | </view> |
| | | <video controls class="main_video" src="https://vdept3.bdstatic.com/mda-njed6187hpegim0d/cae_h264/1665826435448713448/mda-njed6187hpegim0d.mp4?v_from_s=hkapp-haokan-hbe&auth_key=1720440602-0-0-f249e56273037ad05b8f7066fd0973ca&bcevod_channel=searchbox_feed&pd=1&cr=0&cd=0&pt=3&logid=0601949156&vid=646246476325419292&klogid=0601949156&abtest=101830_1-17451_2"></video> |
| | | </view> |
| | | <!-- æ»ç¥ --> |
| | | <view class="strategy"> |
| | | <view class="com_header"> |
| | | <view class="left"> |
| | | <view class="name"> |
| | | <image class="icon" src="../../static/icon/home_ic_zhuangxiu@2x.png"></image> |
| | | <view>å¿è¯´è£
ä¿®</view> |
| | | </view> |
| | | <view class="desc">æå
¨çè£
ä¿®æ»ç¥æ¥äºï¼å¿«æ¥getèµ·æ¥</view> |
| | | </view> |
| | | </view> |
| | | <view class="line"> |
| | | <view class="line_left"> |
| | | <image src="../../static/images/home_class_a@2x.png"></image> |
| | | </view> |
| | | <view class="line_right"> |
| | | <view class="item"><image src="../../static/images/home_class_b@2x.png"></image></view> |
| | | <view class="item"><image src="../../static/images/home_class_b2@2x.png"></image></view> |
| | | </view> |
| | | </view> |
| | | <view class="home_id"> |
| | | <image src="../../static/images/home_class_c@2x.png"></image> |
| | | </view> |
| | | </view> |
| | | <!-- å¨è¯¢ --> |
| | | <view class="consult"> |
| | | <view class="com_header"> |
| | | <view class="left"> |
| | | <view class="name"> |
| | | <image class="icon" src="../../static/icon/home_ic_zixun@2x.png"></image> |
| | | <text>产åèµè®¯</text> |
| | | </view> |
| | | <view class="desc">æ´éåä½ çï¼è£
ä¿®å°è´´å£«</view> |
| | | </view> |
| | | <image class="ar_right" src="../../static/icon/home_ar@2x.png"></image> |
| | | </view> |
| | | <swiper class="consult_swiper" circular indicator-dots="{{ bannerSwiperOption.indicatorDots }}" autoplay="{{ bannerSwiperOption.autoplay }}" interval="{{ bannerSwiperOption.interval }}" duration="{{ bannerSwiperOption.duration }}"> |
| | | <block wx:for="{{ bannerList }}" wx:key="index"> |
| | | <swiper-item> |
| | | <image mode="aspectFill" src="../../static/icon/test.png"></image> |
| | | </swiper-item> |
| | | </block> |
| | | </swiper> |
| | | </view> |
| | | <!-- service --> |
| | | <view class="consult"> |
| | | <view class="com_header"> |
| | | <view class="left"> |
| | | <view class="name"> |
| | | <image class="icon" src="../../static/icon/home_ic_fuwu@2x.png"></image> |
| | | <view>å®å¶æå¡</view> |
| | | </view> |
| | | <view class="desc">设身å¤å°ä¸ºä½ æèæ´å¤ï¼éªä¼´ä½ çç¾å¥½çæ´»</view> |
| | | </view> |
| | | </view> |
| | | <swiper class="consult_swiper" circular indicator-dots="{{ bannerSwiperOption.indicatorDots }}" autoplay="{{ bannerSwiperOption.autoplay }}" interval="{{ bannerSwiperOption.interval }}" duration="{{ bannerSwiperOption.duration }}"> |
| | | <block wx:for="{{ bannerList }}" wx:key="index"> |
| | | <swiper-item> |
| | | <image mode="aspectFill" src="../../static/icon/test.png"></image> |
| | | </swiper-item> |
| | | </block> |
| | | </swiper> |
| | | </view> |
| | | <!-- logo --> |
| | | <view class="logo_wrap"> |
| | | <image src="../../static/icon/home_logo@2x.png" class="logo" mode="widthFix"></image> |
| | | </view> |
| | | <!-- active --> |
| | | <image class="active_baoming" src="../../static/icon/ic_float_baoming@2x.png" mode="widthFix"></image> |
| | | |
| | | </view> |
¶Ô±ÈÐÂÎļþ |
| | |
| | | .container { |
| | | background-color: #f7f7f7; |
| | | overflow-y: auto; |
| | | height: 100vh; |
| | | } |
| | | .container .banner_swiper { |
| | | height: 600rpx; |
| | | width: 100%; |
| | | } |
| | | .container .banner_swiper image { |
| | | width: 100%; |
| | | height: 100%; |
| | | display: block; |
| | | } |
| | | .container .consult_swiper { |
| | | height: 420rpx; |
| | | width: 100%; |
| | | } |
| | | .container .consult_swiper image { |
| | | width: 100%; |
| | | height: 100%; |
| | | display: block; |
| | | } |
| | | .container .logo_wrap { |
| | | width: 100%; |
| | | display: flex; |
| | | justify-content: center; |
| | | align-items: center; |
| | | padding: 60rpx 0; |
| | | background-color: #fff; |
| | | } |
| | | .container .logo_wrap .logo { |
| | | width: 246rpx; |
| | | } |
| | | .container .active_baoming { |
| | | position: fixed; |
| | | right: 28rpx; |
| | | bottom: 60rpx; |
| | | width: 146rpx; |
| | | } |
| | | .container .function_wrap { |
| | | width: 100%; |
| | | display: flex; |
| | | justify-content: space-between; |
| | | background-color: #fff; |
| | | padding: 40rpx; |
| | | } |
| | | .container .function_wrap .item { |
| | | width: 214rpx; |
| | | height: 232rpx; |
| | | background: #F7F7F7; |
| | | border-radius: 8rpx; |
| | | display: flex; |
| | | flex-direction: column; |
| | | justify-content: center; |
| | | align-items: center; |
| | | } |
| | | .container .function_wrap .item .img { |
| | | width: 72rpx; |
| | | height: 72rpx; |
| | | background: #FFFFFF; |
| | | border: 1px solid; |
| | | border-radius: 50%; |
| | | } |
| | | .container .function_wrap .item .name { |
| | | font-weight: 600; |
| | | font-size: 32rpx; |
| | | color: #111111; |
| | | margin: 22rpx 0 10rpx; |
| | | } |
| | | .container .function_wrap .item .placeholder9 { |
| | | font-weight: 300; |
| | | color: #666666; |
| | | } |
| | | .container .product_video { |
| | | padding: 72rpx 40rpx; |
| | | background-color: #fff; |
| | | } |
| | | .container .product_video video { |
| | | width: 670rpx; |
| | | height: 300rpx; |
| | | border: 1px solid; |
| | | } |
| | | .container .strategy { |
| | | padding: 80rpx 40rpx; |
| | | background: #F7F7F7; |
| | | } |
| | | .container .strategy image { |
| | | width: 100%; |
| | | height: 100%; |
| | | } |
| | | .container .strategy .line { |
| | | display: flex; |
| | | justify-content: space-between; |
| | | } |
| | | .container .strategy .line .line_left { |
| | | width: 324rpx; |
| | | height: 304rpx; |
| | | } |
| | | .container .strategy .line .line_right .item { |
| | | width: 322rpx; |
| | | height: 140rpx; |
| | | } |
| | | .container .strategy .line .line_right .item:nth-last-child(1) { |
| | | margin-top: 24rpx; |
| | | } |
| | | .container .strategy .home_id { |
| | | width: 670rpx; |
| | | height: 240rpx; |
| | | margin-top: 24rpx; |
| | | } |
| | | .container .consult { |
| | | padding: 80rpx 40rpx 60rpx; |
| | | background: #fff; |
| | | } |
| | | .container .service { |
| | | padding: 0rpx 40rpx 0rpx; |
| | | background: #fff; |
| | | } |
| | | .container .com_header { |
| | | display: flex; |
| | | justify-content: space-between; |
| | | align-items: center; |
| | | width: 670rpx; |
| | | margin-bottom: 42rpx; |
| | | } |
| | | .container .com_header .left { |
| | | font-weight: 600; |
| | | font-size: 36rpx; |
| | | color: #111111; |
| | | line-height: 50rpx; |
| | | flex: 1; |
| | | } |
| | | .container .com_header .left .name { |
| | | display: flex; |
| | | align-items: center; |
| | | } |
| | | .container .com_header .left .name .icon { |
| | | width: 36rpx; |
| | | height: 36rpx; |
| | | margin-right: 8rpx; |
| | | } |
| | | .container .com_header .left .desc { |
| | | font-weight: 300; |
| | | font-size: 26rpx; |
| | | color: #333333; |
| | | } |
| | | .container .com_header .ar_right { |
| | | width: 44rpx; |
| | | height: 44rpx; |
| | | } |
¶Ô±ÈÐÂÎļþ |
| | |
| | | // pages/mine/mine.js |
| | | Page({ |
| | | |
| | | /** |
| | | * 页é¢çåå§æ°æ® |
| | | */ |
| | | data: { |
| | | |
| | | }, |
| | | |
| | | /** |
| | | * çå½å¨æå½æ°--çå¬é¡µé¢å è½½ |
| | | */ |
| | | onLoad(options) { |
| | | |
| | | }, |
| | | |
| | | /** |
| | | * çå½å¨æå½æ°--çå¬é¡µé¢å次渲æå®æ |
| | | */ |
| | | onReady() { |
| | | |
| | | }, |
| | | |
| | | /** |
| | | * çå½å¨æå½æ°--çå¬é¡µé¢æ¾ç¤º |
| | | */ |
| | | onShow() { |
| | | |
| | | }, |
| | | |
| | | /** |
| | | * çå½å¨æå½æ°--çå¬é¡µé¢éè |
| | | */ |
| | | onHide() { |
| | | |
| | | }, |
| | | |
| | | /** |
| | | * çå½å¨æå½æ°--çå¬é¡µé¢å¸è½½ |
| | | */ |
| | | onUnload() { |
| | | |
| | | }, |
| | | |
| | | /** |
| | | * 页é¢ç¸å
³äºä»¶å¤ç彿°--çå¬ç¨æ·ä¸æå¨ä½ |
| | | */ |
| | | onPullDownRefresh() { |
| | | |
| | | }, |
| | | |
| | | /** |
| | | * 页é¢ä¸æè§¦åºäºä»¶çå¤ç彿° |
| | | */ |
| | | onReachBottom() { |
| | | |
| | | }, |
| | | |
| | | /** |
| | | * ç¨æ·ç¹å»å³ä¸è§å享 |
| | | */ |
| | | onShareAppMessage() { |
| | | |
| | | } |
| | | }) |
¶Ô±ÈÐÂÎļþ |
| | |
| | | { |
| | | "navigationStyle": "custom", |
| | | "navigationBarTextStyle": "white" |
| | | } |
¶Ô±ÈÐÂÎļþ |
| | |
| | | <!--pages/mine/mine.wxml--> |
| | | <text>pages/mine/mine.wxml</text> |
¶Ô±ÈÐÂÎļþ |
| | |
| | | { |
| | | "appid": "wx9c8b22ccc4642e07", |
| | | "compileType": "miniprogram", |
| | | "libVersion": "3.4.10", |
| | | "packOptions": { |
| | | "ignore": [], |
| | | "include": [] |
| | | }, |
| | | "setting": { |
| | | "urlCheck": true, |
| | | "coverView": true, |
| | | "es6": true, |
| | | "postcss": true, |
| | | "lazyloadPlaceholderEnable": false, |
| | | "preloadBackgroundData": false, |
| | | "minified": true, |
| | | "autoAudits": false, |
| | | "uglifyFileName": false, |
| | | "uploadWithSourceMap": true, |
| | | "enhance": true, |
| | | "showShadowRootInWxmlPanel": true, |
| | | "packNpmManually": true, |
| | | "packNpmRelationList": [ |
| | | { |
| | | "packageJsonPath": "./package.json", |
| | | "miniprogramNpmDistDir": "./" |
| | | } |
| | | ], |
| | | "minifyWXSS": true, |
| | | "useStaticServer": true, |
| | | "showES6CompileOption": false, |
| | | "checkInvalidKey": true, |
| | | "babelSetting": { |
| | | "ignore": [], |
| | | "disablePlugins": [], |
| | | "outputPath": "" |
| | | }, |
| | | "disableUseStrict": false, |
| | | "useCompilerPlugins": false, |
| | | "minifyWXML": true |
| | | }, |
| | | "condition": {}, |
| | | "editorSetting": { |
| | | "tabIndent": "insertSpaces", |
| | | "tabSize": 2 |
| | | }, |
| | | "description": "项ç®é
ç½®æä»¶ï¼è¯¦è§ææ¡£ï¼https://developers.weixin.qq.com/miniprogram/dev/devtools/projectconfig.html" |
| | | } |
¶Ô±ÈÐÂÎļþ |
| | |
| | | { |
| | | "projectname": "wechat_jiaxuan", |
| | | "setting": { |
| | | "compileHotReLoad": true |
| | | }, |
| | | "description": "项ç®ç§æé
ç½®æä»¶ãæ¤æä»¶ä¸çå
容å°è¦ç project.config.json ä¸çç¸ååæ®µã项ç®çæ¹å¨ä¼å
忥尿¤æä»¶ä¸ãè¯¦è§ææ¡£ï¼https://developers.weixin.qq.com/miniprogram/dev/devtools/projectconfig.html", |
| | | "libVersion": "3.4.9", |
| | | "condition": { |
| | | "miniprogram": { |
| | | "list": [ |
| | | { |
| | | "name": "", |
| | | "pathName": "pages/auth/auth", |
| | | "query": "", |
| | | "launchMode": "default", |
| | | "scene": null |
| | | }, |
| | | { |
| | | "name": "", |
| | | "pathName": "pages/design/design", |
| | | "query": "", |
| | | "launchMode": "default", |
| | | "scene": null |
| | | }, |
| | | { |
| | | "name": "", |
| | | "pathName": "pages/consult/consult", |
| | | "query": "", |
| | | "launchMode": "default", |
| | | "scene": null |
| | | }, |
| | | { |
| | | "name": "", |
| | | "pathName": "pages/consult/detail", |
| | | "query": "", |
| | | "launchMode": "default", |
| | | "scene": null |
| | | } |
| | | ] |
| | | } |
| | | } |
| | | } |
¶Ô±ÈÐÂÎļþ |
| | |
| | | { |
| | | "desc": "å
³äºæ¬æä»¶çæ´å¤ä¿¡æ¯ï¼è¯·åèææ¡£ https://developers.weixin.qq.com/miniprogram/dev/framework/sitemap.html", |
| | | "rules": [{ |
| | | "action": "allow", |
| | | "page": "*" |
| | | }] |
| | | } |