Commit efede916 by 胡悦

添加图片

1 parent 7590842e
<view class="user-wrapper"> <view class="user-wrapper">
<view class="user-info"> <view class="user-info">
<view> <view class="user-company">
<image webp src="{{IMGURL}}/home/logo.png"></image> <image webp src="{{IMGURL}}/home/logo.png"></image>
<text>汽车流通行业数字化运营服务商</text> <text>汽车流通行业数字化运营服务商</text>
</view> </view>
......
...@@ -3,8 +3,23 @@ ...@@ -3,8 +3,23 @@
background-color: #fff; background-color: #fff;
} }
.user-info { .user-info {
height: 416rpx; height: 416rpx;
padding: 40rpx 52rpx; padding: 40rpx 52rpx;
box-shadow: 0 12rpx 32rpx 0 rgba(147, 160, 194, .35); box-shadow: 0 12rpx 32rpx 0 rgba(147, 160, 194, .35);
border-radius: 16rpx; border-radius: 16rpx;
}
.user-company {
display: flex;
align-items: center;
}
.user-company image {
width: 112rpx;
height: 24rpx;
}
.user-company text {
font-size: 18rpx;
line-height: 24rpx;
color: #2d2d33;
margin-left: 16rpx;
} }
\ No newline at end of file \ No newline at end of file
/*
* @Description:
* @Author: huyue
* @Date: 2022-09-01 11:28:34
* @LastEditors: huyue
* @LastEditTime: 2022-09-01 17:31:43
*/
module.exports = Behavior({ module.exports = Behavior({
lifetimes: { lifetimes: {
attached() { attached() {
......
...@@ -42,6 +42,17 @@ class Router { ...@@ -42,6 +42,17 @@ class Router {
wx.onAppRoute(e => { wx.onAppRoute(e => {
let thisPage = this.getPageInstance() let thisPage = this.getPageInstance()
if (thisPage) { if (thisPage) {
if (!wx.$version) util.getImgVersion().then(({
version
}) => {
wx.$version = version || '1.0.0'
thisPage.setData({
img_version: wx.$version
})
})
else thisPage.setData({
img_version: wx.$version,
})
thisPage.setData({ thisPage.setData({
IMGURL: wx.$imgUrl IMGURL: wx.$imgUrl
}) })
......
import $router from '../router/index' import $router from '../router/index'
import {
commonApi
} from '../api/api'
/**emoji正则 */ /**emoji正则 */
const emojiReg = /([^\u0020-\u007E\u00A0-\u00BE\u2E80-\uA4CF\uF900-\uFAFF\uFE30-\uFE4F\uFF00-\uFFEF\u0080-\u009F\u2000-\u201f\u2026\u2022\u20ac])/g const emojiReg = /([^\u0020-\u007E\u00A0-\u00BE\u2E80-\uA4CF\uF900-\uFAFF\uFE30-\uFE4F\uFF00-\uFFEF\u0080-\u009F\u2000-\u201f\u2026\u2022\u20ac])/g
/** /**
* 日期格式化 * 日期格式化
* let time = new Date().format('yyyy-MM-dd hh:mm:ss') //log 2020-07-31 10:00:00 * let time = new Date().format('yyyy-MM-dd hh:mm:ss') //log 2020-07-31 10:00:00
*/ */
const getImgVersion = () => {
return commonApi.getImgVersion()
}
Date.prototype.format = function (fmt) { Date.prototype.format = function (fmt) {
let o = { let o = {
"M+": this.getMonth() + 1, //月份 "M+": this.getMonth() + 1, //月份
...@@ -398,6 +404,7 @@ const Util = { ...@@ -398,6 +404,7 @@ const Util = {
setUserInfo, setUserInfo,
showLoading, showLoading,
hideLoading, hideLoading,
getImgVersion,
getViewInfo, getViewInfo,
setCopyData, setCopyData,
getSceneId, getSceneId,
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!