Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
M
mallapp
Project
Project
Details
Activity
Releases
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
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
viitto
mallapp
Commits
ee9fdc4b
Commit
ee9fdc4b
authored
Oct 11, 2022
by
黄奎
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
商城修改
parent
47ce8df3
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
1505 additions
and
1282 deletions
+1505
-1282
style3.vue
components/cats/style3.vue
+66
-53
goodsku2.vue
components/goods/goodsku2.vue
+1
-0
goods.vue
pages/goods/goods.vue
+1438
-1229
No files found.
components/cats/style3.vue
View file @
ee9fdc4b
...
...
@@ -11,65 +11,67 @@
padding: 10px;
padding-bottom: 0px;
"
>
<u-row
gutter=
"20"
>
<u-col
span=
"6"
v-for=
"(cx, ci) in g"
:key=
"ci"
>
<view
class=
"good"
@
click=
"clickHandler(cx)"
>
<view
class=
"good-img"
style=
"position: relative;"
>
<image
mode=
"aspectFit"
:src=
"cx.cover_pic"
style=
"width: 100%; height: 100%"
>
<u-row
gutter=
"12"
>
<view
class=
"layout"
>
<u-col
span=
"6"
v-for=
"(cx, ci) in g"
:key=
"ci"
>
<view
class=
"good"
@
click=
"clickHandler(cx)"
>
<view
class=
"good-img"
style=
"position: relative;"
>
<image
mode=
"aspectFit"
:src=
"cx.cover_pic"
style=
"width: 100%; height: 100%"
>
<image
src=
"https://viitto-1301420277.cos.ap-chengdu.myqcloud.com/Static/plugins-out.png"
v-if=
"cx.totalStock==0"
style=
"width: 100%; height: 100%;position: absolute;left:0;top:0;background: #000;opacity: 0.6;"
/>
</image>
</view>
<view
class=
"good-name"
>
<view
v-if=
"cx.marketingLogo.iswords && cx.marketingLogo.iswords==1&& cx.marketingLogo.words!=''"
class=
"Logo"
:style=
"
{color: cx.marketingLogo.wordsColor,background:cx.marketingLogo.wordsBack ,}">
{{
cx
.
marketingLogo
.
words
}}
</view>
<image
src=
"https://viitto-1301420277.cos.ap-chengdu.myqcloud.com/Static/plugins-out.png"
v-if=
"cx.totalStock==0"
style=
"width: 100%; height: 100%;position: absolute;left:0;top:0;background: #000;opacity: 0.6;"
/>
</image>
</view>
<view
class=
"good-name"
>
<view
v-if=
"cx.marketingLogo.iswords && cx.marketingLogo.iswords==1&& cx.marketingLogo.words!=''"
class=
"Logo"
:style=
"
{color: cx.marketingLogo.wordsColor,background:cx.marketingLogo.wordsBack ,}">
{{
cx
.
marketingLogo
.
words
}}
</view>
<image
v-if=
"cx.marketingLogo.iswords&&cx.marketingLogo.iswords==2&& cx.marketingLogo.ico!=''"
mode=
"heightFix"
:src=
"cx.marketingLogo.ico"
style=
" height: 12px;margin-right: 5px"
/>
<view
style=
"color: #FF4048;background: #fdf6ec;padding: 0 5px;display: inline-block;height: 32rpx;font-size: 20rpx;margin-right: 5rpx;"
v-if=
"cx.freeShippingFullMoneyPinkage>0 || cx.freeShippingFullNumPinkage>0"
>
{{
cx
.
freeShippingFullMoneyPinkage
>
0
&&
cx
.
freeShippingFullNumPinkage
==
0
?
cx
.
freeShippingFullMoneyPinkage
+
'元包邮'
:
''
}}
{{
cx
.
freeShippingFullMoneyPinkage
==
0
&&
cx
.
freeShippingFullNumPinkage
>
0
?
cx
.
freeShippingFullNumPinkage
+
'件包邮'
:
''
}}
v-if=
"cx.marketingLogo.iswords&&cx.marketingLogo.iswords==2&& cx.marketingLogo.ico!=''"
mode=
"heightFix"
:src=
"cx.marketingLogo.ico"
style=
" height: 12px;margin-right: 5px"
/>
<view
style=
"color: #FF4048;background: #fdf6ec;padding: 0 5px;display: inline-block;height: 32rpx;font-size: 20rpx;margin-right: 5rpx;"
v-if=
"cx.freeShippingFullMoneyPinkage>0 || cx.freeShippingFullNumPinkage>0"
>
{{
cx
.
freeShippingFullMoneyPinkage
>
0
&&
cx
.
freeShippingFullNumPinkage
==
0
?
cx
.
freeShippingFullMoneyPinkage
+
'元包邮'
:
''
}}
{{
cx
.
freeShippingFullMoneyPinkage
==
0
&&
cx
.
freeShippingFullNumPinkage
>
0
?
cx
.
freeShippingFullNumPinkage
+
'件包邮'
:
''
}}
</view>
{{
cx
.
name
}}
</view>
{{
cx
.
name
}}
</view>
<!-- 新增上课日期 -->
<view
v-if=
"u.TenantId==27"
>
<view
v-if=
"u.TenantId==27&&cx.edudata.ClassTime"
class=
"have"
>
{{
cx
.
edudata
.
ClassTime
}}
</view>
<!-- 新增次数 -->
<div
v-if=
"cx.edudata.ClassNum&&u.TenantId==27"
class=
"have"
>
{{
cx
.
edudata
.
ClassNum
}}
次
</div>
<!-- 新增老师相片资料 -->
<view
class=
"price-box"
>
<view
class=
"portrait-box"
>
<image
v-if=
"cx.edudata.TeacherIcon"
class=
"portrait"
mode=
"aspectFit"
:src=
"cx.edudata.TeacherIcon"
/>
<view
v-if=
"cx.edudata.TeacherName"
class=
"sell2"
>
{{
cx
.
edudata
.
TeacherName
}}
</view>
<!-- 新增上课日期 -->
<view
v-if=
"u.TenantId==27"
class=
"rqi"
>
<view
v-if=
"u.TenantId==27&&cx.edudata.ClassTime"
class=
"have"
>
{{
cx
.
edudata
.
ClassTime
}}
</view>
<!-- 新增次数 -->
<view
v-if=
"cx.edudata.ClassNum&&u.TenantId==27"
class=
"have"
>
{{
cx
.
edudata
.
ClassNum
}}
次
</view>
<view
class=
"good-info2"
>
<view
class=
"price"
:style=
"
{ color: mainColor }">
{{
cx
.
price_content
}}
</view>
<!-- 新增老师相片资料 -->
<view
class=
"price-box"
>
<view
class=
"portrait-box"
>
<image
v-if=
"cx.edudata.TeacherIcon"
class=
"portrait"
mode=
"aspectFit"
:src=
"cx.edudata.TeacherIcon"
/>
<view
v-if=
"cx.edudata.TeacherName"
class=
"sell2"
>
{{
cx
.
edudata
.
TeacherName
}}
</view>
</view>
<view
class=
"good-info2"
>
<view
class=
"price"
:style=
"
{ color: mainColor }">
{{
cx
.
price_content
}}
</view>
</view>
</view>
</view>
</view>
<!-- 新增上课日期结束 -->
<view
class=
"good-info"
v-if=
"u.TenantId!=27"
>
<view
class=
"price"
:style=
"
{ color: mainColor }">
{{
cx
.
price_content
}}
</view>
<view
class=
"sell"
>
{{
cx
.
sales
}}
</view>
<!-- 新增上课日期结束 -->
<view
class=
"good-info"
v-if=
"u.TenantId!=27"
>
<view
class=
"price"
:style=
"
{ color: mainColor }">
{{
cx
.
price_content
}}
</view>
<view
class=
"sell"
>
{{
cx
.
sales
}}
</view>
</view>
</view>
</view>
</u-col>
</u-col>
</view>
</u-row>
<u-divider
v-if=
"isover"
bg-color=
"#F5f5f5"
:margin-top=
"20"
:margin-bottom=
"20"
>
没有更多商品了
</u-divider>
...
...
@@ -222,6 +224,15 @@
</
script
>
<
style
>
.layout
{
display
:
flex
;
justify-content
:
space-between
;
flex-wrap
:
wrap
;
}
.rqi
{
/* background: red; */
/* width: 130px; */
}
.good-info2
{
display
:
flex
;
margin
:
0px
10px
;
...
...
@@ -233,6 +244,7 @@
display
:
flex
;
justify-content
:
space-between
;
align-items
:
center
;
height
:
60
rpx
;
}
.portrait-box
{
display
:
flex
;
...
...
@@ -281,6 +293,7 @@
border-radius
:
10px
;
overflow
:
hidden
;
margin-bottom
:
10px
;
width
:
345
rpx
;
}
.catstyle3
.good
.good-img
{
...
...
components/goods/goodsku2.vue
View file @
ee9fdc4b
...
...
@@ -713,5 +713,6 @@
align-items
:
center
;
border-top
:
1px
solid
#eee
;
padding
:
5px
10px
;
margin-top
:
20
rpx
;
}
</
style
>
pages/goods/goods.vue
View file @
ee9fdc4b
This diff is collapsed.
Click to expand it.
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