Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
M
mayi-mp-shop
Overview
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
程默
mayi-mp-shop
Commits
bb4c23c7
Commit
bb4c23c7
authored
Aug 20, 2023
by
李嘉林
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
图片画廊组件优化
parent
fe33149a
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
2 additions
and
2 deletions
+2
-2
src/utils/index.js
+1
-1
static/nativeComponents/PhotoGallery/index.wxml
+1
-1
No files found.
src/utils/index.js
View file @
bb4c23c7
...
@@ -89,7 +89,7 @@ export function DFSImg(path, w, h, type = 0) { //
...
@@ -89,7 +89,7 @@ export function DFSImg(path, w, h, type = 0) { //
return
'https://mayi-newshop.oss-cn-shanghai.aliyuncs.com/product/8ezKQbm2x3.png'
;
return
'https://mayi-newshop.oss-cn-shanghai.aliyuncs.com/product/8ezKQbm2x3.png'
;
}
}
let
baseImg
=
process
.
env
.
IMG_DOMAIN
;
let
baseImg
=
process
.
env
.
IMG_DOMAIN
;
if
(
!
Array
.
isArray
(
baseImg
)
&&
(
baseImg
.
indexOf
(
'aliyun'
)
>=
0
||
baseImg
.
indexOf
(
'cdn'
)
>=
0
))
{
if
(
!
Array
.
isArray
(
baseImg
)
&&
(
baseImg
.
indexOf
(
'aliyun'
)
>=
0
||
baseImg
.
indexOf
(
'cdn'
)
>=
0
)
||
baseImg
.
indexOf
(
'cmecloud'
)
>=
0
)
{
var
style
=
''
;
var
style
=
''
;
if
(
w
)
style
+=
',w_'
+
w
;
if
(
w
)
style
+=
',w_'
+
w
;
if
(
h
)
style
+=
',h_'
+
h
;
if
(
h
)
style
+=
',h_'
+
h
;
...
...
static/nativeComponents/PhotoGallery/index.wxml
View file @
bb4c23c7
<!--static/nativeComponents/PhotoGallery/index.wxml-->
<!--static/nativeComponents/PhotoGallery/index.wxml-->
<view class="photo-gallery" style="padding-top:{{
getPaddingList[0]['value'] * 2}}rpx;padding-bottom:{{getPaddingList[1]['value'] * 2}}rpx;padding-left:{{getPaddingList[2]['value'] * 2}}rpx;padding-right:{{getP
addingList[3]['value'] * 2}}rpx">
<view class="photo-gallery" style="padding-top:{{
datas.componentData.paddingList[0]['value'] * 2}}rpx;padding-bottom:{{datas.componentData.paddingList[1]['value'] * 2}}rpx;padding-left:{{datas.componentData.paddingList[2]['value'] * 2}}rpx;padding-right:{{datas.componentData.p
addingList[3]['value'] * 2}}rpx">
<view wx:if="{{datas.componentData.titles!=''}}" style="font-size:{{datas.componentData.titleSize}}em;padding-bottom:{{datas.componentData.titlePadding * 2}}rpx" class="textH">
<view wx:if="{{datas.componentData.titles!=''}}" style="font-size:{{datas.componentData.titleSize}}em;padding-bottom:{{datas.componentData.titlePadding * 2}}rpx" class="textH">
{{datas.componentData.titles}}
{{datas.componentData.titles}}
</view>
</view>
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
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 comment