Commit 7590842e by 胡悦

xiuagai

1 parent 02645b96
// components/UserInfo/UserInfo.js
import { componentsMixin } from '../../mixins/index'
Component({
behaviors:[componentsMixin],
/**
* 组件的属性列表
*/
properties: {
},
/**
* 组件的初始数据
*/
......
<text>这里是用户信息组件</text>
\ 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
.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
import componentsMixin from './componentsMixin'
module.exports = {
componentsMixin
}
\ No newline at end of file
{
"usingComponents": {
"user-info": "../../../components/UserInfo/UserInfo"
}
},
"navigationBarTitleText": "广联数科智能名片"
}
\ No newline at end of file
......@@ -42,6 +42,9 @@ class Router {
wx.onAppRoute(e => {
let thisPage = this.getPageInstance()
if (thisPage) {
thisPage.setData({
IMGURL: wx.$imgUrl
})
this.setNavigationBarTitleText(thisPage)
let onRoute = thisPage.onRoute
thisPage.$query = this[_query]
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!