Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
E
ElectricitySheep
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
黄媛媛
ElectricitySheep
Commits
a6926dc2
Commit
a6926dc2
authored
Aug 25, 2020
by
黄奎
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
页面修改
parent
3d2add3c
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
45 additions
and
42 deletions
+45
-42
liveConfig.vue
src/components/StoreDesign/liveConfig.vue
+45
-42
No files found.
src/components/StoreDesign/liveConfig.vue
View file @
a6926dc2
<
style
>
.customPoster
.custom_Main
{
display
:
flex
;
}
...
...
@@ -330,9 +329,11 @@
margin
:
5px
;
padding
:
0
5px
;
}
.activeCustomer
{
border
:
1px
solid
#409eff
!important
;
.activeCustomer
{
border
:
1px
solid
#409eff
!important
;
}
.custom_rightCheck
.el-radio
{
height
:
32px
;
line-height
:
32px
;
...
...
@@ -374,11 +375,11 @@
<div
class=
"custom_Main"
>
<div
class=
"custom_mobile_box"
>
<div
class=
"custom_bg_box"
>
<div
class=
"custom_bg_pic"
:style=
"
{ backgroundImage:'url('+ShareMsg.
Poster
BgImg+')'}">
<div
class=
"custom_bg_pic"
:style=
"
{ backgroundImage:'url('+ShareMsg.
Live
BgImg+')'}">
</div>
<div
class=
"custom_AppImage"
v-if=
"ShareMsg.IsShowQrCode==0"
:style=
"
{left:ShareMsg.QrCodePaddingLeft+'px',
width:ShareMsg.
QrCodeSize+'px',height:ShareMsg.QrCodeSize+'px',top:ShareMsg.
QrCodePaddingTop+'px',
'borderRadius':ShareMsg.QrCodeType==0?'50%':'0%'}">
</div>
<div
class=
"custom_AppImage"
v-if=
"ShareMsg.IsShowQrCode==0"
:style=
"
{left:ShareMsg.
Live
QrCodePaddingLeft+'px',
width:ShareMsg.
LiveQrCodeSize+'px',height:ShareMsg.LiveQrCodeSize+'px',top:ShareMsg.Live
QrCodePaddingTop+'px',
'borderRadius':ShareMsg.
Live
QrCodeType==0?'50%':'0%'}">
</div>
</div>
</div>
<div
class=
"custom_formBody"
>
...
...
@@ -387,35 +388,32 @@
<div
class=
"el-card__header"
>
二维码设置
</div>
<el-form
label-width=
"20%"
style=
"padding:20px;"
>
<el-form-item
label=
"样式"
size=
"small"
>
<el-radio-group
v-model=
"ShareMsg.QrCodeType"
>
<el-radio-group
v-model=
"ShareMsg.
Live
QrCodeType"
>
<el-radio
:label=
"0"
>
圆形
</el-radio>
<el-radio
:label=
"1"
>
方形
</el-radio>
</el-radio-group>
</el-form-item>
<el-form-item
label=
"大小"
size=
"small"
>
<el-slider
v-model=
"ShareMsg.
QrCodeSize"
@
change=
"getCodeMax(ShareMsg.
QrCodeSize)"
:max=
"300"
<el-slider
v-model=
"ShareMsg.
LiveQrCodeSize"
@
change=
"getCodeMax(ShareMsg.Live
QrCodeSize)"
:max=
"300"
show-input
>
</el-slider>
</el-form-item>
<el-form-item
label=
"上边距"
size=
"small"
>
<el-slider
v-model=
"ShareMsg.QrCodePaddingTop"
:max=
"maxTwocodeTop"
show-input
></el-slider>
<el-slider
v-model=
"ShareMsg.
Live
QrCodePaddingTop"
:max=
"maxTwocodeTop"
show-input
></el-slider>
</el-form-item>
<el-form-item
label=
"左边距"
size=
"small"
>
<el-slider
v-model=
"ShareMsg.QrCodePaddingLeft"
:max=
"maxTwocodeLeft"
show-input
></el-slider>
<el-slider
v-model=
"ShareMsg.
Live
QrCodePaddingLeft"
:max=
"maxTwocodeLeft"
show-input
></el-slider>
</el-form-item>
</el-form>
</
template
>
</div>
<div
class=
"customShareBtn"
>
<el-button
size=
"small"
type=
"primary"
@
click=
"Set
FenXiaoPoster
()"
>
保存
</el-button>
<el-button
size=
"small"
type=
"primary"
@
click=
"Set
LiveConfig
()"
>
保存
</el-button>
</div>
</div>
</div>
</template>
<!-- 选择图片文件 -->
<el-dialog
title=
"选择文件"
:visible
.
sync=
"choicImg"
width=
"1240px"
>
<ChooseImg
@
SelectId=
"SelectId"
></ChooseImg>
</el-dialog>
</div>
</template>
<
script
>
...
...
@@ -427,16 +425,15 @@
//二维码最大左边距
maxTwocodeLeft
:
0
,
//分销默认背景图
sharePosterDefaultImg
:
this
.
domainManager
().
ImageUrl
+
'/Static/
shareposter
default.jpg'
,
sharePosterDefaultImg
:
this
.
domainManager
().
ImageUrl
+
'/Static/
live
default.jpg'
,
//分销海报
ShareMsg
:
{
Id
:
0
,
PosterBgImg
:
""
,
//海报背景图
IsShowQrCode
:
0
,
//是否显示二维码(0-显示,1-不显示)
QrCodeSize
:
0
,
//二维码大小
QrCodePaddingTop
:
0
,
//二维码上间距
QrCodePaddingLeft
:
0
,
//二维码左间距
QrCodeType
:
0
,
//二维码形状(0-圆形,1-方形)
LiveBgImg
:
""
,
//海报背景图
LiveQrCodeSize
:
0
,
//二维码大小
LiveQrCodePaddingTop
:
0
,
//二维码上间距
LiveQrCodePaddingLeft
:
0
,
//二维码左间距
LiveQrCodeType
:
0
,
//二维码形状(0-圆形,1-方形)
},
};
},
...
...
@@ -444,31 +441,30 @@
methods
:
{
//拉伸二维码尺寸动态设置最大值
getCodeMax
(
chicun
)
{
this
.
maxTwocodeTop
=
1334
-
chicun
;
this
.
maxTwocodeLeft
=
750
-
chicun
;
this
.
maxTwocodeTop
=
1334
-
chicun
;
this
.
maxTwocodeLeft
=
750
-
chicun
;
},
//获取分销海报
Get
FenXiaoPoster
()
{
this
.
apipost
(
"/api/Tenant/Get
FenXiaoPoster
"
,
{},
res
=>
{
Get
LiveConfig
()
{
this
.
apipost
(
"/api/Tenant/Get
LiveConfig
"
,
{},
res
=>
{
if
(
res
.
data
.
resultCode
==
1
)
{
var
jsonData
=
res
.
data
.
data
;
if
(
jsonData
)
{
this
.
ShareMsg
.
Id
=
jsonData
.
Id
;
this
.
ShareMsg
.
PosterBgImg
=
jsonData
.
Poster
BgImg
;
this
.
ShareMsg
.
LiveBgImg
=
jsonData
.
Live
BgImg
;
this
.
ShareMsg
.
IsShowQrCode
=
jsonData
.
IsShowQrCode
;
this
.
ShareMsg
.
QrCodePaddingTop
=
jsonData
.
QrCodePaddingTop
;
this
.
ShareMsg
.
QrCodePaddingLeft
=
jsonData
.
QrCodePaddingLeft
;
this
.
ShareMsg
.
QrCodeSize
=
jsonData
.
QrCodeSize
;
this
.
ShareMsg
.
QrCodeType
=
jsonData
.
QrCodeType
;
this
.
ShareMsg
.
LiveQrCodePaddingTop
=
jsonData
.
Live
QrCodePaddingTop
;
this
.
ShareMsg
.
LiveQrCodePaddingLeft
=
jsonData
.
Live
QrCodePaddingLeft
;
this
.
ShareMsg
.
LiveQrCodeSize
=
jsonData
.
Live
QrCodeSize
;
this
.
ShareMsg
.
LiveQrCodeType
=
jsonData
.
Live
QrCodeType
;
}
else
{
this
.
ShareMsg
.
Poster
BgImg
=
this
.
sharePosterDefaultImg
;
this
.
ShareMsg
.
Live
BgImg
=
this
.
sharePosterDefaultImg
;
this
.
ShareMsg
.
IsShowQrCode
=
0
;
this
.
ShareMsg
.
QrCodeSize
=
162
;
this
.
ShareMsg
.
QrCodePaddingTop
=
1022
;
this
.
ShareMsg
.
QrCodePaddingLeft
=
76
;
this
.
ShareMsg
.
QrCodeSize
=
162
;
this
.
ShareMsg
.
QrCodeType
=
0
;
this
.
ShareMsg
.
Live
QrCodeSize
=
162
;
this
.
ShareMsg
.
Live
QrCodePaddingTop
=
1022
;
this
.
ShareMsg
.
Live
QrCodePaddingLeft
=
76
;
this
.
ShareMsg
.
Live
QrCodeSize
=
162
;
this
.
ShareMsg
.
Live
QrCodeType
=
0
;
}
}
else
{
this
.
Error
(
res
.
data
.
message
);
...
...
@@ -476,14 +472,21 @@
})
},
//添加修改分销海报
SetFenXiaoPoster
()
{
SetLiveConfig
()
{
this
.
apipost
(
"/api/Tenant/SetLiveConfig"
,
this
.
ShareMsg
,
res
=>
{
if
(
res
.
data
.
resultCode
==
1
)
{
this
.
GetLiveConfig
();
this
.
Success
(
res
.
data
.
message
);
}
else
{
this
.
Error
(
res
.
data
.
message
);
}
})
}
},
mounted
()
{
this
.
maxTwocodeTop
=
1334
-
this
.
ShareMsg
.
QrCodeSize
;
this
.
maxTwocodeLeft
=
750
-
this
.
ShareMsg
.
QrCodeSize
;
this
.
Get
FenXiaoPoster
();
this
.
Get
LiveConfig
();
}
};
...
...
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