Skip to content
Toggle navigation
Projects
Groups
Snippets
Help
saas
/
mini-program
/
ai-card
This project
Loading...
Sign in
Toggle navigation
Go to a project
Project
Repository
Issues
0
Merge Requests
0
Pipelines
Wiki
Settings
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Commit 7590842e
authored
Sep 01, 2022
by
胡悦
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
xiuagai
1 parent
02645b96
Hide whitespace changes
Inline
Side-by-side
Showing
6 changed files
with
30 additions
and
4 deletions
components/UserInfo/UserInfo.js
components/UserInfo/UserInfo.wxml
components/UserInfo/UserInfo.wxss
mixins/index.js
pages/tab/index/index.json
router/router.js
components/UserInfo/UserInfo.js
View file @
7590842
// components/UserInfo/UserInfo.js
// components/UserInfo/UserInfo.js
import
{
componentsMixin
}
from
'../../mixins/index'
Component
({
Component
({
behaviors
:[
componentsMixin
],
/**
/**
* 组件的属性列表
* 组件的属性列表
*/
*/
properties
:
{
properties
:
{
},
},
/**
/**
* 组件的初始数据
* 组件的初始数据
*/
*/
...
...
components/UserInfo/UserInfo.wxml
View file @
7590842
<text>这里是用户信息组件</text>
\ No newline at end of file
\ No newline at end of file
<view class="user-wrapper">
<view class="user-info">
<view>
<image webp src="{{IMGURL}}/home/logo.png"></image>
<text>汽车流通行业数字化运营服务商</text>
</view>
</view>
</view>
\ No newline at end of file
\ No newline at end of file
components/UserInfo/UserInfo.wxss
View file @
7590842
.user-wrapper {
padding: 24rpx 32rpx 32rpx;
background-color: #fff;
}
.user-info {
height: 416rpx;
padding: 40rpx 52rpx;
box-shadow: 0 12rpx 32rpx 0 rgba(147, 160, 194, .35);
border-radius: 16rpx;
}
\ No newline at end of file
\ No newline at end of file
mixins/index.js
0 → 100644
View file @
7590842
import
componentsMixin
from
'./componentsMixin'
module
.
exports
=
{
componentsMixin
}
\ No newline at end of file
\ No newline at end of file
pages/tab/index/index.json
View file @
7590842
{
{
"usingComponents"
:
{
"usingComponents"
:
{
"user-info"
:
"../../../components/UserInfo/UserInfo"
"user-info"
:
"../../../components/UserInfo/UserInfo"
}
},
"navigationBarTitleText"
:
"广联数科智能名片"
}
}
\ No newline at end of file
\ No newline at end of file
router/router.js
View file @
7590842
...
@@ -42,6 +42,9 @@ class Router {
...
@@ -42,6 +42,9 @@ class Router {
wx
.
onAppRoute
(
e
=>
{
wx
.
onAppRoute
(
e
=>
{
let
thisPage
=
this
.
getPageInstance
()
let
thisPage
=
this
.
getPageInstance
()
if
(
thisPage
)
{
if
(
thisPage
)
{
thisPage
.
setData
({
IMGURL
:
wx
.
$imgUrl
})
this
.
setNavigationBarTitleText
(
thisPage
)
this
.
setNavigationBarTitleText
(
thisPage
)
let
onRoute
=
thisPage
.
onRoute
let
onRoute
=
thisPage
.
onRoute
thisPage
.
$query
=
this
[
_query
]
thisPage
.
$query
=
this
[
_query
]
...
...
Write
Preview
Markdown
is supported
Attach a file
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to post a comment