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
575c7adb
Commit
575c7adb
authored
May 19, 2020
by
黄奎
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
页面修改
parent
6938705f
Hide whitespace changes
Inline
Side-by-side
Showing
19 changed files
with
476 additions
and
453 deletions
+476
-453
addGoodsClass.vue
src/components/CommodityMan/addGoodsClass.vue
+3
-3
goodsClassification.vue
src/components/CommodityMan/goodsClassification.vue
+4
-4
materialMan.vue
src/components/CommodityMan/materialMan.vue
+2
-2
baseSet.vue
src/components/UserMan/baseSet.vue
+397
-369
customSet.vue
src/components/UserMan/customSet.vue
+15
-15
distributors.vue
src/components/UserMan/distributors.vue
+1
-1
setMember.vue
src/components/UserMan/setMember.vue
+3
-4
usersList.vue
src/components/UserMan/usersList.vue
+1
-1
choiceGood.vue
src/components/common/choiceGood.vue
+1
-1
ChooseImg.vue
src/components/global/ChooseImg.vue
+1
-1
Choosevideo.vue
src/components/global/Choosevideo.vue
+1
-1
addCardTicket.vue
src/components/sallCenter/addCardTicket.vue
+1
-1
banner.vue
src/components/sallCenter/plugin/banner.vue
+3
-3
goods.vue
src/components/sallCenter/plugin/goods.vue
+4
-4
navigationIcon.vue
src/components/sallCenter/plugin/navigationIcon.vue
+3
-3
rubik.vue
src/components/sallCenter/plugin/rubik.vue
+4
-4
rechargeSet.vue
src/components/sallCenter/rechargeSet.vue
+3
-4
basicSetUp.vue
src/components/setup/basicSetUp.vue
+12
-13
index.js
src/plug/index.js
+17
-19
No files found.
src/components/CommodityMan/addGoodsClass.vue
View file @
575c7adb
...
...
@@ -49,7 +49,7 @@
</el-tooltip>
<div
class=
"app-gallery-item"
>
<el-button
@
click=
"userInfo.IconPath='',userInfo.Icon=''"
v-if=
"userInfo.IconPath!=''"
type=
"danger"
icon=
"el-icon-close"
circle
></el-button>
<img
style=
"width:100px;height:100px"
:src=
"
'http://viitto-1301420277.cos.ap-chengdu.myqcloud.com'+userInfo.IconPath
"
alt=
""
>
<img
style=
"width:100px;height:100px"
:src=
"
getIconLink(userInfo.IconPath)
"
alt=
""
>
</div>
</el-form-item>
<el-form-item
class=
"commonLabel discount"
label=
"分类大图"
>
...
...
@@ -61,7 +61,7 @@
</el-tooltip>
<div
class=
"app-gallery-item"
>
<el-button
@
click=
"userInfo.BigIconPath='',userInfo.BigIcon=''"
v-if=
"userInfo.BigIconPath!=''"
type=
"danger"
icon=
"el-icon-close"
circle
></el-button>
<img
style=
"width:100px;height:100px"
:src=
"
'http://viitto-1301420277.cos.ap-chengdu.myqcloud.com'+userInfo.BigIconPath
"
alt=
""
>
<img
style=
"width:100px;height:100px"
:src=
"
getIconLink(userInfo.BigIconPath)
"
alt=
""
>
</div>
<p
class=
"blue f12"
>
<span
@
click=
"czjfDig=true,imgDig=1"
class=
"point"
>
查看图例
</span>
...
...
@@ -76,7 +76,7 @@
</el-tooltip>
<div
class=
"app-gallery-item"
>
<el-button
@
click=
"userInfo.AdvertisingImagePath='',userInfo.AdvertisingImage=''"
v-if=
"userInfo.AdvertisingImagePath!=''"
size=
"mini"
type=
"danger"
icon=
"el-icon-close"
circle
></el-button>
<img
style=
"width:100px;height:100px"
:src=
"
'http://viitto-1301420277.cos.ap-chengdu.myqcloud.com'+userInfo.AdvertisingImagePath
"
alt=
""
>
<img
style=
"width:100px;height:100px"
:src=
"
getIconLink(userInfo.AdvertisingImagePath)
"
alt=
""
>
</div>
<p
class=
"blue f12"
>
<span
@
click=
"czjfDig=true,imgDig=2"
class=
"point"
>
查看图例
</span>
...
...
src/components/CommodityMan/goodsClassification.vue
View file @
575c7adb
...
...
@@ -56,7 +56,7 @@
</el-col>
<el-col
:span=
"11"
flex=
"cross:center"
>
<div
v-if=
"item.IconPath==''"
class=
"app-image cat-icon noIcon"
></div>
<div
v-else
class=
"app-image cat-icon"
:style=
"{backgroundImage:'url(
http://viitto-1301420277.cos.ap-chengdu.myqcloud.com' + item.IconPath
+ ')',backgroundSize:'cover'}"
></div>
<div
v-else
class=
"app-image cat-icon"
:style=
"{backgroundImage:'url(
' + getIconLink(item.IconPath)
+ ')',backgroundSize:'cover'}"
></div>
<div
class=
"cat-name-info"
>
<el-tooltip
class=
"item"
effect=
"dark"
:content=
"item.Name"
placement=
"top"
>
<span>
{{item.Name}}
</span>
...
...
@@ -102,7 +102,7 @@
</el-col>
<el-col
:span=
"11"
flex=
"cross:center"
>
<div
v-if=
"item.IconPath==''"
class=
"app-image cat-icon noIcon"
></div>
<div
v-else
class=
"app-image cat-icon"
:style=
"{backgroundImage:'url(
http://viitto-1301420277.cos.ap-chengdu.myqcloud.com' + item.IconPath
+ ')',backgroundSize:'cover'}"
></div>
<div
v-else
class=
"app-image cat-icon"
:style=
"{backgroundImage:'url(
' + getIconLink(item.IconPath)
+ ')',backgroundSize:'cover'}"
></div>
<div
class=
"cat-name-info"
>
<el-tooltip
class=
"item"
effect=
"dark"
:content=
"item.Name"
placement=
"top"
>
<span>
{{item.Name}}
</span>
...
...
@@ -177,7 +177,7 @@
</el-col>
<el-col
:span=
"11"
flex=
"cross:center"
>
<div
v-if=
"item.IconPath==''"
class=
"app-image cat-icon noIcon"
></div>
<div
v-else
class=
"app-image cat-icon"
:style=
"{backgroundImage:'url(
http://viitto-1301420277.cos.ap-chengdu.myqcloud.com' + item.IconPath
+ ')',backgroundSize:'cover'}"
></div>
<div
v-else
class=
"app-image cat-icon"
:style=
"{backgroundImage:'url(
' + getIconLink(item.IconPath)
+ ')',backgroundSize:'cover'}"
></div>
<div
class=
"cat-name-info"
>
<el-tooltip
class=
"item"
effect=
"dark"
:content=
"item.Name"
placement=
"top"
>
<span>
{{item.Name}}
</span>
...
...
@@ -344,7 +344,7 @@
width=
"300"
>
<
template
slot-scope=
"scope"
>
<span>
<img
v-if=
"scope.row.IconPath!=''"
style=
"width:30px;height:30px"
:src=
"
'http://viitto-1301420277.cos.ap-chengdu.myqcloud.com'+scope.row.IconPath
"
alt=
""
>
<img
v-if=
"scope.row.IconPath!=''"
style=
"width:30px;height:30px"
:src=
"
getIconLink(scope.row.IconPath)
"
alt=
""
>
{{
scope
.
row
.
Name
}}
</span>
</
template
>
...
...
src/components/CommodityMan/materialMan.vue
View file @
575c7adb
...
...
@@ -86,7 +86,7 @@
</div>
<el-tooltip
v-for=
"(item,index) in PageList"
:key=
"index"
class=
"item"
effect=
"dark"
:content=
"item.Name"
placement=
"top-start"
>
<div
@
click=
"PageSelect(item,index)"
:class=
"item.Selected ? 'selected' :''"
class=
"el-tooltip item material-item "
>
<img
:src=
"
'http://viitto-1301420277.cos.ap-chengdu.myqcloud.com'+item.Path
"
class=
"material-img"
style=
"width: 140px; height: 140px;"
>
<img
:src=
"
getIconLink(item.Path)
"
class=
"material-img"
style=
"width: 140px; height: 140px;"
>
<div
flex=
"dir:left"
style=
"margin-top: 5px;"
>
<div
class=
"material-name"
>
{{
item
.
Name
}}
</div>
<div
style=
"margin: 0px 5px;"
>
|
</div>
...
...
@@ -112,7 +112,7 @@
</div>
<el-tooltip
v-for=
"(item,index) in PageList"
:key=
"index"
class=
"item"
effect=
"dark"
:content=
"item.Name"
placement=
"top-start"
>
<div
@
click=
"PageSelect(item,index)"
:class=
"item.Selected ? 'selected' :''"
class=
"el-tooltip item material-item "
>
<img
:src=
"
'http://viitto-1301420277.cos.ap-chengdu.myqcloud.com'+item.Path
+'?x-oss-process=video/snapshot,t_9,f_jpg,w_299,h_0,m_fast'"
class=
"material-img"
style=
"width: 140px; height: 140px;"
>
<img
:src=
"
getIconLink(item.Path)
+'?x-oss-process=video/snapshot,t_9,f_jpg,w_299,h_0,m_fast'"
class=
"material-img"
style=
"width: 140px; height: 140px;"
>
<div
class=
"material-video-info"
><i
class=
"el-icon-video-play"
></i>
<span>
{{
Time
(
item
.
VideoTime
)
}}
</span></div>
<div
flex=
"dir:left"
style=
"margin-top: 5px;"
>
<div
class=
"material-name"
>
{{
item
.
Name
}}
</div>
...
...
src/components/UserMan/baseSet.vue
View file @
575c7adb
<
template
>
<div
v-loading=
"loading"
class=
"baseSet"
>
<div
class=
"head-title"
>
<span
@
click=
"goUrl"
class=
"point"
>
基础设置
</span>
<span
@
click=
"goUrl"
class=
"point"
>
基础设置
</span>
</div>
<div
class=
"content"
>
<el-form
:model=
"addMsg"
:rules=
"rules"
ref=
"addMsg"
label-width=
"150px"
>
<el-card
class=
"box-card"
>
<div
slot=
"header"
class=
"clearfix"
>
<span>
分销设置
</span>
</div>
<div>
<el-form-item
label=
"分销层级"
prop=
"DistributorTier"
>
<el-radio
v-model=
"addMsg.DistributorTier"
:label=
"0"
>
关闭
</el-radio>
<el-radio
v-model=
"addMsg.DistributorTier"
:label=
"1"
>
一级分销
</el-radio>
<el-radio
v-model=
"addMsg.DistributorTier"
:label=
"2"
>
二级分销
</el-radio>
<el-radio
v-model=
"addMsg.DistributorTier"
:label=
"3"
>
三级分销
</el-radio>
</el-form-item>
<el-form-item
class=
"nocommonLabel"
label=
"分销内购"
prop=
"InPurchasing"
>
<el-tooltip
class=
"item"
effect=
"dark"
content=
"开启分销内购,分销商自己购买商品,享受一级佣金,上级享受二级佣金,上上级享受三级佣金"
placement=
"top"
>
<i
class=
"topelzk elzk el-tooltip el-icon-info"
></i>
</el-tooltip>
<el-switch
v-model=
"addMsg.InPurchasing"
active-color=
"#409EFF"
:active-value=
"1"
:inactive-value=
"2"
>
</el-switch>
</el-form-item>
<el-form-item
label=
"成为下线的条件"
prop=
"ReferralsCondition"
>
<el-radio
v-for=
"(item,index) in ReferralsList"
v-model=
"addMsg.ReferralsCondition"
:key=
"index"
:label=
"item.Id"
>
{{
item
.
Name
}}
</el-radio>
</el-form-item>
<el-form-item
label=
"申请成为分销商"
prop=
"ApplyFor"
>
<el-radio
v-for=
"(item,index) in EnumList"
v-model=
"addMsg.ApplyFor"
:key=
"index"
:label=
"item.Id"
>
{{
item
.
Name
}}
</el-radio>
</el-form-item>
<el-form-item
label=
"成为分销商的条件"
prop=
"DistributorCondition"
>
<el-radio
v-for=
"(item,index) in conditionList"
v-model=
"addMsg.DistributorCondition"
:key=
"index"
:label=
"item.Id"
>
{{
item
.
Name
}}
</el-radio>
</el-form-item>
</div>
</el-card>
<el-card
class=
"box-card"
style=
"margin-top:10px"
>
<div
slot=
"header"
class=
"clearfix"
>
<span>
分销佣金设置
</span>
<el-tooltip
class=
"item"
effect=
"dark"
content=
"需要开启分销层级,才能设置对应的分销佣金"
placement=
"top"
>
<i
class=
"elzk el-tooltip el-icon-info"
></i>
</el-tooltip>
</div>
<div>
<el-form-item
v-if=
"addMsg.DistributorTier==1 || addMsg.DistributorTier==2 || addMsg.DistributorTier==3"
label=
"分销佣金类型"
prop=
"DistributorTier"
>
<el-radio
v-model=
"addMsg.DistributorCommissionType"
:label=
"1"
>
百分比
</el-radio>
<el-radio
v-model=
"addMsg.DistributorCommissionType"
:label=
"2"
>
固定金额
</el-radio>
</el-form-item>
<el-form-item
v-if=
"addMsg.DistributorTier==1 || addMsg.DistributorTier==2 || addMsg.DistributorTier==3"
class=
"commonLabel"
label=
"一级佣金"
>
<el-input
style=
"width:293px;"
type=
"number"
min=
"1"
size=
"small"
placeholder=
"请输入"
v-model=
"addMsg.OneCommission"
class=
"input-with-select"
>
<el-button
slot=
"append"
>
<span
v-if=
"addMsg.DistributorCommissionType==1"
>
%
</span>
<span
v-if=
"addMsg.DistributorCommissionType==2"
>
元
</span>
</el-button>
</el-input>
</el-form-item>
<el-form-item
v-if=
"addMsg.DistributorTier==2 || addMsg.DistributorTier==3"
class=
"commonLabel"
label=
"二级佣金"
>
<el-input
style=
"width:293px;"
type=
"number"
min=
"1"
size=
"small"
placeholder=
"请输入"
v-model=
"addMsg.TwoCommission"
class=
"input-with-select"
>
<el-button
slot=
"append"
>
<span
v-if=
"addMsg.DistributorCommissionType==1"
>
%
</span>
<span
v-if=
"addMsg.DistributorCommissionType==2"
>
元
</span>
</el-button>
</el-input>
</el-form-item>
<el-form-item
v-if=
"addMsg.DistributorTier==3"
class=
"commonLabel"
label=
"三级佣金"
>
<el-input
style=
"width:293px;"
type=
"number"
min=
"1"
size=
"small"
placeholder=
"请输入"
v-model=
"addMsg.ThreeCommission"
class=
"input-with-select"
>
<el-button
slot=
"append"
>
<span
v-if=
"addMsg.DistributorCommissionType==1"
>
%
</span>
<span
v-if=
"addMsg.DistributorCommissionType==2"
>
元
</span>
</el-button>
</el-input>
</el-form-item>
<el-form-item
v-if=
"addMsg.DistributorTier==1 || addMsg.DistributorTier==2 || addMsg.DistributorTier==3"
label=
"佣金是否提完"
prop=
"IsCommissionResidue"
>
<el-radio
v-model=
"addMsg.IsCommissionResidue"
:label=
"1"
>
是
</el-radio>
<el-radio
v-model=
"addMsg.IsCommissionResidue"
:label=
"2"
>
否
</el-radio>
</el-form-item>
</div>
</el-card>
<el-card
class=
"box-card"
style=
"margin-top:10px"
>
<div
slot=
"header"
class=
"clearfix"
>
<span>
分销商等级设置
</span>
<el-tooltip
class=
"item"
effect=
"dark"
content=
"需要开启分销层级,才能设置对应的分销佣金"
placement=
"top"
>
<i
class=
"elzk el-tooltip el-icon-info"
></i>
</el-tooltip>
</div>
<div>
<el-form-item
label=
"分销商等级入口"
>
<el-switch
v-model=
"addMsg.GradeEntrance"
active-color=
"#409EFF"
:active-value=
"1"
:inactive-value=
"2"
>
</el-switch>
<p
style=
"margin-left:-60px"
class=
"blue f12"
>
<span
@
click=
"czjfDig=true"
class=
"point"
>
查看图例
</span>
</p>
</el-form-item>
</div>
</el-card>
<el-card
class=
"box-card"
style=
"margin-top:10px"
>
<div
slot=
"header"
class=
"clearfix"
>
<span>
提现设置
</span>
</div>
<div>
<el-form-item
class=
"nocommonLabel"
label=
"提现方式"
prop=
"WithdrawWayList"
>
<el-tooltip
class=
"item"
effect=
"dark"
content=
"自动打款支付,需要申请相应小程序的相应功能,例如:微信需要申请企业付款到零钱功能"
placement=
"top"
>
<i
class=
"topelzk elzk el-tooltip el-icon-info"
></i>
</el-tooltip>
<el-checkbox-group
v-model=
"addMsg.WithdrawWayList"
>
<el-checkbox
v-for=
"item in WithdrawWayList"
:label=
"item.Id"
:key=
"item.id"
>
{{
item
.
Name
}}
</el-checkbox>
</el-checkbox-group>
</el-form-item>
<el-form-item
class=
"commonLabel"
label=
"最少提现额度"
prop=
"MinimumWithdrawalLimit"
>
<el-input
v-model=
"addMsg.MinimumWithdrawalLimit"
style=
"width:293px;"
type=
"number"
min=
"1"
size=
"small"
placeholder=
"请输入"
class=
"input-with-select"
>
<el-button
slot=
"append"
>
元
</el-button>
</el-input>
</el-form-item>
<el-form-item
class=
"discount commonLabel"
label=
"每次提现上限"
prop=
"DailyWithdrawalLimit"
>
<el-tooltip
class=
"item"
effect=
"dark"
content=
"-1元表示不限制每日提现金额"
placement=
"top-start"
>
<i
class=
" elzk el-tooltip el-icon-info"
></i>
</el-tooltip>
<el-input
v-model=
"addMsg.DailyWithdrawalLimit"
style=
"width:293px;"
type=
"number"
min=
"1"
size=
"small"
placeholder=
"请输入"
class=
"input-with-select"
>
<el-button
slot=
"append"
>
元
</el-button>
</el-input>
</el-form-item>
<el-form-item
class=
"discount commonLabel"
label=
"提现手续费"
prop=
"WithdrawFee"
>
<el-tooltip
class=
"item"
effect=
"dark"
content=
"0表示不设置提现手续费"
placement=
"top-start"
>
<i
class=
" elzk el-tooltip el-icon-info"
></i>
</el-tooltip>
<el-input
v-model=
"addMsg.WithdrawFee"
style=
"width:293px;"
type=
"number"
min=
"1"
size=
"small"
placeholder=
"请输入"
class=
"input-with-select"
>
<el-button
slot=
"append"
>
%
</el-button>
</el-input>
<p>
提现手续费额外从提现中扣除
</p>
<p>
例如:
<span
class=
"cred"
>
10%
</span>
的提现手续费:
</p>
<p>
提现
<span
class=
"cred"
>
100
</span>
元,扣除手续费
<span
class=
"cred"
>
10
</span>
元, 实际到手
<span
class=
"cred"
>
90
</span>
元
</p>
</el-form-item>
</div>
</el-card>
<el-card
class=
"box-card"
style=
"margin-top:10px"
>
<div
slot=
"header"
class=
"clearfix"
>
<span>
页面设置
</span>
</div>
<div>
<el-form-item
label=
"申请协议"
>
<el-input
style=
"width:293px"
type=
"textarea"
:rows=
"2"
placeholder=
"申请协议"
v-model=
"addMsg.ApplicationProtocol"
>
</el-input>
</el-form-item>
<el-form-item
label=
"用户须知"
>
<el-input
style=
"width:293px"
type=
"textarea"
:rows=
"2"
placeholder=
"用户须知"
v-model=
"addMsg.UserNotes"
>
</el-input>
</el-form-item>
<el-form-item
label=
"待审核页面背景图片"
>
<el-button
@
click=
"openChangeDig(1)"
size=
"small"
>
选择图片
</el-button>
<div
class=
"app-gallery-item"
>
<img
style=
"width:100px;height:100px"
:src=
"'http://viitto-1301420277.cos.ap-chengdu.myqcloud.com'+addMsg.BackgroundImagePath"
alt=
""
>
</div>
</el-form-item>
<el-form-item
label=
"首页背景图片"
>
<el-button
@
click=
"openChangeDig(2)"
size=
"small"
>
选择图片
</el-button>
<div
class=
"app-gallery-item"
>
<img
style=
"width:100px;height:100px"
:src=
"'http://viitto-1301420277.cos.ap-chengdu.myqcloud.com'+addMsg.IndexImagePath"
alt=
""
>
</div>
</el-form-item>
</div>
</el-card>
</el-form>
<el-form
:model=
"addMsg"
:rules=
"rules"
ref=
"addMsg"
label-width=
"150px"
>
<el-card
class=
"box-card"
>
<div
slot=
"header"
class=
"clearfix"
>
<span>
分销设置
</span>
</div>
<div>
<el-form-item
label=
"分销层级"
prop=
"DistributorTier"
>
<el-radio
v-model=
"addMsg.DistributorTier"
:label=
"0"
>
关闭
</el-radio>
<el-radio
v-model=
"addMsg.DistributorTier"
:label=
"1"
>
一级分销
</el-radio>
<el-radio
v-model=
"addMsg.DistributorTier"
:label=
"2"
>
二级分销
</el-radio>
<el-radio
v-model=
"addMsg.DistributorTier"
:label=
"3"
>
三级分销
</el-radio>
</el-form-item>
<el-form-item
class=
"nocommonLabel"
label=
"分销内购"
prop=
"InPurchasing"
>
<el-tooltip
class=
"item"
effect=
"dark"
content=
"开启分销内购,分销商自己购买商品,享受一级佣金,上级享受二级佣金,上上级享受三级佣金"
placement=
"top"
>
<i
class=
"topelzk elzk el-tooltip el-icon-info"
></i>
</el-tooltip>
<el-switch
v-model=
"addMsg.InPurchasing"
active-color=
"#409EFF"
:active-value=
"1"
:inactive-value=
"2"
>
</el-switch>
</el-form-item>
<el-form-item
label=
"成为下线的条件"
prop=
"ReferralsCondition"
>
<el-radio
v-for=
"(item,index) in ReferralsList"
v-model=
"addMsg.ReferralsCondition"
:key=
"index"
:label=
"item.Id"
>
{{
item
.
Name
}}
</el-radio>
</el-form-item>
<el-form-item
label=
"申请成为分销商"
prop=
"ApplyFor"
>
<el-radio
v-for=
"(item,index) in EnumList"
v-model=
"addMsg.ApplyFor"
:key=
"index"
:label=
"item.Id"
>
{{
item
.
Name
}}
</el-radio>
</el-form-item>
<el-form-item
label=
"成为分销商的条件"
prop=
"DistributorCondition"
>
<el-radio
v-for=
"(item,index) in conditionList"
v-model=
"addMsg.DistributorCondition"
:key=
"index"
:label=
"item.Id"
>
{{
item
.
Name
}}
</el-radio>
</el-form-item>
</div>
</el-card>
<el-card
class=
"box-card"
style=
"margin-top:10px"
>
<div
slot=
"header"
class=
"clearfix"
>
<span>
分销佣金设置
</span>
<el-tooltip
class=
"item"
effect=
"dark"
content=
"需要开启分销层级,才能设置对应的分销佣金"
placement=
"top"
>
<i
class=
"elzk el-tooltip el-icon-info"
></i>
</el-tooltip>
</div>
<div>
<el-form-item
v-if=
"addMsg.DistributorTier==1 || addMsg.DistributorTier==2 || addMsg.DistributorTier==3"
label=
"分销佣金类型"
prop=
"DistributorTier"
>
<el-radio
v-model=
"addMsg.DistributorCommissionType"
:label=
"1"
>
百分比
</el-radio>
<el-radio
v-model=
"addMsg.DistributorCommissionType"
:label=
"2"
>
固定金额
</el-radio>
</el-form-item>
<el-form-item
v-if=
"addMsg.DistributorTier==1 || addMsg.DistributorTier==2 || addMsg.DistributorTier==3"
class=
"commonLabel"
label=
"一级佣金"
>
<el-input
style=
"width:293px;"
type=
"number"
min=
"1"
size=
"small"
placeholder=
"请输入"
v-model=
"addMsg.OneCommission"
class=
"input-with-select"
>
<el-button
slot=
"append"
>
<span
v-if=
"addMsg.DistributorCommissionType==1"
>
%
</span>
<span
v-if=
"addMsg.DistributorCommissionType==2"
>
元
</span>
</el-button>
</el-input>
</el-form-item>
<el-form-item
v-if=
"addMsg.DistributorTier==2 || addMsg.DistributorTier==3"
class=
"commonLabel"
label=
"二级佣金"
>
<el-input
style=
"width:293px;"
type=
"number"
min=
"1"
size=
"small"
placeholder=
"请输入"
v-model=
"addMsg.TwoCommission"
class=
"input-with-select"
>
<el-button
slot=
"append"
>
<span
v-if=
"addMsg.DistributorCommissionType==1"
>
%
</span>
<span
v-if=
"addMsg.DistributorCommissionType==2"
>
元
</span>
</el-button>
</el-input>
</el-form-item>
<el-form-item
v-if=
"addMsg.DistributorTier==3"
class=
"commonLabel"
label=
"三级佣金"
>
<el-input
style=
"width:293px;"
type=
"number"
min=
"1"
size=
"small"
placeholder=
"请输入"
v-model=
"addMsg.ThreeCommission"
class=
"input-with-select"
>
<el-button
slot=
"append"
>
<span
v-if=
"addMsg.DistributorCommissionType==1"
>
%
</span>
<span
v-if=
"addMsg.DistributorCommissionType==2"
>
元
</span>
</el-button>
</el-input>
</el-form-item>
<el-form-item
v-if=
"addMsg.DistributorTier==1 || addMsg.DistributorTier==2 || addMsg.DistributorTier==3"
label=
"佣金是否提完"
prop=
"IsCommissionResidue"
>
<el-radio
v-model=
"addMsg.IsCommissionResidue"
:label=
"1"
>
是
</el-radio>
<el-radio
v-model=
"addMsg.IsCommissionResidue"
:label=
"2"
>
否
</el-radio>
</el-form-item>
</div>
</el-card>
<el-card
class=
"box-card"
style=
"margin-top:10px"
>
<div
slot=
"header"
class=
"clearfix"
>
<span>
分销商等级设置
</span>
<el-tooltip
class=
"item"
effect=
"dark"
content=
"需要开启分销层级,才能设置对应的分销佣金"
placement=
"top"
>
<i
class=
"elzk el-tooltip el-icon-info"
></i>
</el-tooltip>
</div>
<div>
<el-form-item
label=
"分销商等级入口"
>
<el-switch
v-model=
"addMsg.GradeEntrance"
active-color=
"#409EFF"
:active-value=
"1"
:inactive-value=
"2"
>
</el-switch>
<p
style=
"margin-left:-60px"
class=
"blue f12"
>
<span
@
click=
"czjfDig=true"
class=
"point"
>
查看图例
</span>
</p>
</el-form-item>
</div>
</el-card>
<el-card
class=
"box-card"
style=
"margin-top:10px"
>
<div
slot=
"header"
class=
"clearfix"
>
<span>
提现设置
</span>
</div>
<div>
<el-form-item
class=
"nocommonLabel"
label=
"提现方式"
prop=
"WithdrawWayList"
>
<el-tooltip
class=
"item"
effect=
"dark"
content=
"自动打款支付,需要申请相应小程序的相应功能,例如:微信需要申请企业付款到零钱功能"
placement=
"top"
>
<i
class=
"topelzk elzk el-tooltip el-icon-info"
></i>
</el-tooltip>
<el-checkbox-group
v-model=
"addMsg.WithdrawWayList"
>
<el-checkbox
v-for=
"item in WithdrawWayList"
:label=
"item.Id"
:key=
"item.id"
>
{{
item
.
Name
}}
</el-checkbox>
</el-checkbox-group>
</el-form-item>
<el-form-item
class=
"commonLabel"
label=
"最少提现额度"
prop=
"MinimumWithdrawalLimit"
>
<el-input
v-model=
"addMsg.MinimumWithdrawalLimit"
style=
"width:293px;"
type=
"number"
min=
"1"
size=
"small"
placeholder=
"请输入"
class=
"input-with-select"
>
<el-button
slot=
"append"
>
元
</el-button>
</el-input>
</el-form-item>
<el-form-item
class=
"discount commonLabel"
label=
"每次提现上限"
prop=
"DailyWithdrawalLimit"
>
<el-tooltip
class=
"item"
effect=
"dark"
content=
"-1元表示不限制每日提现金额"
placement=
"top-start"
>
<i
class=
" elzk el-tooltip el-icon-info"
></i>
</el-tooltip>
<el-input
v-model=
"addMsg.DailyWithdrawalLimit"
style=
"width:293px;"
type=
"number"
min=
"1"
size=
"small"
placeholder=
"请输入"
class=
"input-with-select"
>
<el-button
slot=
"append"
>
元
</el-button>
</el-input>
</el-form-item>
<el-form-item
class=
"discount commonLabel"
label=
"提现手续费"
prop=
"WithdrawFee"
>
<el-tooltip
class=
"item"
effect=
"dark"
content=
"0表示不设置提现手续费"
placement=
"top-start"
>
<i
class=
" elzk el-tooltip el-icon-info"
></i>
</el-tooltip>
<el-input
v-model=
"addMsg.WithdrawFee"
style=
"width:293px;"
type=
"number"
min=
"1"
size=
"small"
placeholder=
"请输入"
class=
"input-with-select"
>
<el-button
slot=
"append"
>
%
</el-button>
</el-input>
<p>
提现手续费额外从提现中扣除
</p>
<p>
例如:
<span
class=
"cred"
>
10%
</span>
的提现手续费:
</p>
<p>
提现
<span
class=
"cred"
>
100
</span>
元,扣除手续费
<span
class=
"cred"
>
10
</span>
元, 实际到手
<span
class=
"cred"
>
90
</span>
元
</p>
</el-form-item>
</div>
</el-card>
<el-card
class=
"box-card"
style=
"margin-top:10px"
>
<div
slot=
"header"
class=
"clearfix"
>
<span>
页面设置
</span>
</div>
<div>
<el-form-item
label=
"申请协议"
>
<el-input
style=
"width:293px"
type=
"textarea"
:rows=
"2"
placeholder=
"申请协议"
v-model=
"addMsg.ApplicationProtocol"
>
</el-input>
</el-form-item>
<el-form-item
label=
"用户须知"
>
<el-input
style=
"width:293px"
type=
"textarea"
:rows=
"2"
placeholder=
"用户须知"
v-model=
"addMsg.UserNotes"
>
</el-input>
</el-form-item>
<el-form-item
label=
"待审核页面背景图片"
>
<el-button
@
click=
"openChangeDig(1)"
size=
"small"
>
选择图片
</el-button>
<div
class=
"app-gallery-item"
>
<img
style=
"width:100px;height:100px"
:src=
"getIconLink(addMsg.BackgroundImagePath)"
alt=
""
>
</div>
</el-form-item>
<el-form-item
label=
"首页背景图片"
>
<el-button
@
click=
"openChangeDig(2)"
size=
"small"
>
选择图片
</el-button>
<div
class=
"app-gallery-item"
>
<img
style=
"width:100px;height:100px"
:src=
"getIconLink(addMsg.IndexImagePath)"
alt=
""
>
</div>
</el-form-item>
</div>
</el-card>
</el-form>
</div>
<div
style=
"margin-top:20px"
>
<el-button
size=
"small"
type=
"primary"
@
click=
"Save('addMsg')"
>
保存
</el-button>
<el-button
size=
"small"
type=
"primary"
@
click=
"Save('addMsg')"
>
保存
</el-button>
</div>
<!-- 选择文件 -->
<el-dialog
title=
"选择文件"
:visible
.
sync=
"changeState"
width=
"1240px"
>
<ChooseImg
@
SelectId=
"SelectId"
></ChooseImg>
<ChooseImg
@
SelectId=
"SelectId"
></ChooseImg>
</el-dialog>
<!-- 查看图例 -->
<!-- 查看图例 -->
<el-dialog
title=
"查看分销商等级入口示例"
:visible
.
sync=
"czjfDig"
width=
"600px"
>
<div
class=
"center"
>
<img
style=
"width:280px"
src=
"../../assets/img/userman/is_show_share_level.png"
alt=
""
>
<img
style=
"width:280px"
src=
"../../assets/img/userman/is_show_share_level.png"
alt=
""
>
</div>
<span
slot=
"footer"
class=
"dialog-footer"
>
<el-button
type=
"primary"
size=
"small"
@
click=
"czjfDig = false"
>
我知道了
</el-button>
...
...
@@ -200,200 +201,219 @@
</div>
</
template
>
<
script
>
import
ChooseImg
from
"@/components/global/ChooseImg.vue"
;
import
ChooseImg
from
"@/components/global/ChooseImg.vue"
;
export
default
{
components
:
{
ChooseImg
},
data
()
{
return
{
loading
:
false
,
czjfDig
:
false
,
checkedCities
:[],
currentPage4
:
3
,
changeState
:
false
,
val
:
''
,
addMsg
:{
Id
:
0
,
DistributorTier
:
2
,
InPurchasing
:
1
,
ReferralsCondition
:
3
,
ApplyFor
:
1
,
DistributorCondition
:
3
,
DistributorCommissionType
:
1
,
OneCommission
:
0
,
TwoCommission
:
0
,
ThreeCommission
:
0
,
GradeEntrance
:
1
,
WithdrawWay
:
[
1
],
MinimumWithdrawalLimit
:
50
,
DailyWithdrawalLimit
:
0
,
WithdrawFee
:
0
,
WithdrawWayList
:
[],
ApplicationProtocol
:
''
,
UserNotes
:
''
,
BackgroundImage
:
''
,
BackgroundImagePath
:
''
,
IndexImage
:
''
,
IndexImagePath
:
''
,
IsCommissionResidue
:
1
,
loading
:
false
,
czjfDig
:
false
,
checkedCities
:
[],
currentPage4
:
3
,
changeState
:
false
,
val
:
''
,
addMsg
:
{
Id
:
0
,
DistributorTier
:
2
,
InPurchasing
:
1
,
ReferralsCondition
:
3
,
ApplyFor
:
1
,
DistributorCondition
:
3
,
DistributorCommissionType
:
1
,
OneCommission
:
0
,
TwoCommission
:
0
,
ThreeCommission
:
0
,
GradeEntrance
:
1
,
WithdrawWay
:
[
1
],
MinimumWithdrawalLimit
:
50
,
DailyWithdrawalLimit
:
0
,
WithdrawFee
:
0
,
WithdrawWayList
:
[],
ApplicationProtocol
:
''
,
UserNotes
:
''
,
BackgroundImage
:
''
,
BackgroundImagePath
:
''
,
IndexImage
:
''
,
IndexImagePath
:
''
,
IsCommissionResidue
:
1
,
},
dialogVisible
:
false
,
value
:
''
,
options
:[],
msg
:{
pageIndex
:
1
,
pageSize
:
15
,
dialogVisible
:
false
,
value
:
''
,
options
:
[],
msg
:
{
pageIndex
:
1
,
pageSize
:
15
,
},
total
:
0
,
total
:
0
,
rules
:
{
DistributorTier
:[
{
required
:
true
,
message
:
'请选择分销层级'
,
trigger
:
'change'
}
],
ReferralsCondition
:[
{
required
:
true
,
message
:
'请选择成为下线条件'
,
trigger
:
'change'
}
],
ApplyFor
:[
{
required
:
true
,
message
:
'请选择申请为分销商'
,
trigger
:
'change'
}
],
DistributorCondition
:[
{
required
:
true
,
message
:
'请选择成为分销商条件'
,
trigger
:
'change'
}
],
DistributorCommissionType
:[
{
required
:
true
,
message
:
'请选择分销佣金类型'
,
trigger
:
'change'
}
],
WithdrawWay
:
[
{
type
:
'array'
,
required
:
true
,
message
:
'请至少选择一个提现方式'
,
trigger
:
'change'
}
],
MinimumWithdrawalLimit
:
[
{
required
:
true
,
message
:
'请输入最少提现额度'
,
trigger
:
'blur'
}
],
DailyWithdrawalLimit
:
[
{
required
:
true
,
message
:
'请输入每日提现上限'
,
trigger
:
'blur'
}
],
WithdrawFee
:
[
{
required
:
true
,
message
:
'请输入提现手续费'
,
trigger
:
'blur'
}
],
DistributorTier
:
[{
required
:
true
,
message
:
'请选择分销层级'
,
trigger
:
'change'
}],
ReferralsCondition
:
[{
required
:
true
,
message
:
'请选择成为下线条件'
,
trigger
:
'change'
}],
ApplyFor
:
[{
required
:
true
,
message
:
'请选择申请为分销商'
,
trigger
:
'change'
}],
DistributorCondition
:
[{
required
:
true
,
message
:
'请选择成为分销商条件'
,
trigger
:
'change'
}],
DistributorCommissionType
:
[{
required
:
true
,
message
:
'请选择分销佣金类型'
,
trigger
:
'change'
}],
WithdrawWay
:
[{
type
:
'array'
,
required
:
true
,
message
:
'请至少选择一个提现方式'
,
trigger
:
'change'
}],
MinimumWithdrawalLimit
:
[{
required
:
true
,
message
:
'请输入最少提现额度'
,
trigger
:
'blur'
}],
DailyWithdrawalLimit
:
[{
required
:
true
,
message
:
'请输入每日提现上限'
,
trigger
:
'blur'
}],
WithdrawFee
:
[{
required
:
true
,
message
:
'请输入提现手续费'
,
trigger
:
'blur'
}],
},
conditionList
:[],
EnumList
:[],
ReferralsList
:[],
WithdrawWayList
:[],
imgType
:
1
,
conditionList
:
[],
EnumList
:
[],
ReferralsList
:
[],
WithdrawWayList
:
[],
imgType
:
1
,
};
},
created
()
{
this
.
ApplyForEnumList
();
this
.
ConditionEnumList
();
this
.
ReferralsEnumList
();
this
.
WithdrawWayEnumList
();
this
.
getData
();
this
.
ApplyForEnumList
();
this
.
ConditionEnumList
();
this
.
ReferralsEnumList
();
this
.
WithdrawWayEnumList
();
this
.
getData
();
},
methods
:
{
Save
(
formName
){
this
.
$refs
[
formName
].
validate
((
valid
)
=>
{
if
(
valid
)
{
let
cmd
=
"/api/user/SetDistributorBasicsInfo"
;
this
.
apipost
(
cmd
,
this
.
addMsg
,
res
=>
{
if
(
res
.
data
.
resultCode
===
1
)
{
this
.
Success
(
res
.
data
.
message
);
this
.
getData
();
}
else
{
this
.
Error
(
res
.
data
.
message
);
}
},
null
);
Save
(
formName
)
{
this
.
$refs
[
formName
].
validate
((
valid
)
=>
{
if
(
valid
)
{
let
cmd
=
"/api/user/SetDistributorBasicsInfo"
;
this
.
apipost
(
cmd
,
this
.
addMsg
,
res
=>
{
if
(
res
.
data
.
resultCode
===
1
)
{
this
.
Success
(
res
.
data
.
message
);
this
.
getData
();
}
else
{
return
false
;
}
});
},
SelectId
(
msg
){
if
(
this
.
imgType
==
1
){
this
.
addMsg
.
BackgroundImage
=
msg
.
selectId
;
this
.
addMsg
.
BackgroundImagePath
=
msg
.
url
;
}
else
{
this
.
addMsg
.
IndexImage
=
msg
.
selectId
;
this
.
addMsg
.
IndexImagePath
=
msg
.
url
;
}
this
.
changeState
=
false
;
},
openChangeDig
(
val
){
this
.
changeState
=
true
;
this
.
imgType
=
val
;
},
goUrl
(){
this
.
$router
.
push
({
name
:
'MembershipGrade'
,
query
:
{
blank
:
"y"
}
});
},
handleCurrentChange
(
val
)
{
this
.
msg
.
pageIndex
=
val
;
this
.
getList
();
},
getData
(){
this
.
loading
=
true
;
this
.
apipost
(
"/api/user/GetDistributorBasicsInfo"
,
{},
res
=>
{
this
.
loading
=
false
;
if
(
res
.
data
.
resultCode
==
1
){
this
.
addMsg
=
res
.
data
.
data
;
}
})
},
WithdrawWayEnumList
(){
this
.
apipost
(
"/api/user/GetDistrbutorWithdrawWayEnumList"
,
{},
res
=>
{
if
(
res
.
data
.
resultCode
==
1
){
this
.
WithdrawWayList
=
res
.
data
.
data
;
}
})
},
ApplyForEnumList
(){
this
.
apipost
(
"/api/user/GetDistributorApplyForEnumList"
,
{},
res
=>
{
if
(
res
.
data
.
resultCode
==
1
){
this
.
EnumList
=
res
.
data
.
data
;
}
})
},
ConditionEnumList
(){
this
.
apipost
(
"/api/user/GetDistributorConditionEnumList"
,
{},
res
=>
{
if
(
res
.
data
.
resultCode
==
1
){
this
.
conditionList
=
res
.
data
.
data
;
}
})
},
ReferralsEnumList
(){
this
.
apipost
(
"/api/user/GetDistrbutorReferralsEnumList"
,
{},
res
=>
{
if
(
res
.
data
.
resultCode
==
1
){
this
.
ReferralsList
=
res
.
data
.
data
;
this
.
Error
(
res
.
data
.
message
);
}
})
},
},
null
);
}
else
{
return
false
;
}
});
},
SelectId
(
msg
)
{
if
(
this
.
imgType
==
1
)
{
this
.
addMsg
.
BackgroundImage
=
msg
.
selectId
;
this
.
addMsg
.
BackgroundImagePath
=
msg
.
url
;
}
else
{
this
.
addMsg
.
IndexImage
=
msg
.
selectId
;
this
.
addMsg
.
IndexImagePath
=
msg
.
url
;
}
this
.
changeState
=
false
;
},
openChangeDig
(
val
)
{
this
.
changeState
=
true
;
this
.
imgType
=
val
;
},
goUrl
()
{
this
.
$router
.
push
({
name
:
'MembershipGrade'
,
query
:
{
blank
:
"y"
}
});
},
handleCurrentChange
(
val
)
{
this
.
msg
.
pageIndex
=
val
;
this
.
getList
();
},
getData
()
{
this
.
loading
=
true
;
this
.
apipost
(
"/api/user/GetDistributorBasicsInfo"
,
{},
res
=>
{
this
.
loading
=
false
;
if
(
res
.
data
.
resultCode
==
1
)
{
this
.
addMsg
=
res
.
data
.
data
;
}
})
},
WithdrawWayEnumList
()
{
this
.
apipost
(
"/api/user/GetDistrbutorWithdrawWayEnumList"
,
{},
res
=>
{
if
(
res
.
data
.
resultCode
==
1
)
{
this
.
WithdrawWayList
=
res
.
data
.
data
;
}
})
},
ApplyForEnumList
()
{
this
.
apipost
(
"/api/user/GetDistributorApplyForEnumList"
,
{},
res
=>
{
if
(
res
.
data
.
resultCode
==
1
)
{
this
.
EnumList
=
res
.
data
.
data
;
}
})
},
ConditionEnumList
()
{
this
.
apipost
(
"/api/user/GetDistributorConditionEnumList"
,
{},
res
=>
{
if
(
res
.
data
.
resultCode
==
1
)
{
this
.
conditionList
=
res
.
data
.
data
;
}
})
},
ReferralsEnumList
()
{
this
.
apipost
(
"/api/user/GetDistrbutorReferralsEnumList"
,
{},
res
=>
{
if
(
res
.
data
.
resultCode
==
1
)
{
this
.
ReferralsList
=
res
.
data
.
data
;
}
})
},
},
mounted
()
{
}
};
</
script
>
<
style
>
.baseSet
.app-gallery-item
{
.baseSet
.app-gallery-item
{
width
:
100px
;
height
:
100px
;
border
:
1px
solid
#e3e3e3
;
...
...
@@ -401,36 +421,44 @@ import ChooseImg from "@/components/global/ChooseImg.vue";
margin-right
:
10px
;
margin-bottom
:
10px
;
position
:
relative
;
}
.baseSet
.el-form-item
.topelzk
{
top
:
12px
!important
;
}
.baseSet
.el-form-item
.elzk
{
}
.baseSet
.el-form-item
.topelzk
{
top
:
12px
!important
;
}
.baseSet
.el-form-item
.elzk
{
position
:
absolute
;
left
:
-25px
;
top
:
8px
;
}
.baseSet
.el-checkbox-group
{
}
.baseSet
.el-checkbox-group
{
display
:
inline-block
;
}
.baseSet
.nocommonLabel
.el-form-item__label
{
margin-top
:
0px
;
}
.baseSet
.nocommonLabel
.el-form-item__label
{
margin-top
:
0px
;
padding-right
:
30px
;
}
.baseSet
.commonLabel
.el-form-item__label
{
margin-top
:
-4px
;
}
.baseSet
.discount
.el-form-item__label
{
}
.baseSet
.commonLabel
.el-form-item__label
{
margin-top
:
-4px
;
}
.baseSet
.discount
.el-form-item__label
{
padding-right
:
30px
;
margin-top
:
-4px
;
}
.baseSet
.blue
{
color
:
#409EFF
;
}
.baseSet
.content
{
margin-top
:
10px
;
}
.baseSet
.blue
{
color
:
#409EFF
;
}
.baseSet
.content
{
margin-top
:
10px
;
box-sizing
:
border-box
;
}
}
</
style
>
src/components/UserMan/customSet.vue
View file @
575c7adb
...
...
@@ -14,7 +14,7 @@
<div
class=
"el-scrollbar__view"
>
<div>
<div
class=
"el-image"
style=
"display: block; width: 100%; height: 150px;"
>
<img
:src=
"
'http://viitto-1301420277.cos.ap-chengdu.myqcloud.com' + addMsg.HeadImagePath
"
<img
:src=
"
getIconLink(addMsg.HeadImagePath)
"
class=
"el-image__inner"
>
</div>
<div
style=
"background: rgb(255, 255, 255); height: 40px; padding: 0px 14px;"
>
...
...
@@ -57,7 +57,7 @@
{{
addMsg
.
ButtonText
}}
</div>
<div
class=
"el-image"
style=
"display: block; width: 100%;"
>
<img
:src=
"
'http://viitto-1301420277.cos.ap-chengdu.myqcloud.com' + addMsg.BottomImagePath
"
<img
:src=
"
getIconLink(addMsg.BottomImagePath)
"
class=
"el-image__inner"
>
</div>
</div>
...
...
@@ -82,7 +82,7 @@
<img
@
click=
"openChangeDig(1)"
v-if=
"addMsg.HeadImagePath==''"
style=
"width:100px;height:100px"
src=
"../../assets/img/default.png"
alt=
""
>
<div
v-else
class=
"app-image"
:style=
"
{backgroundImage:'url(
http://viitto-1301420277.cos.ap-chengdu.myqcloud.com' + addMsg.HeadImagePath
+ ')',backgroundSize:'cover'}">
:style=
"
{backgroundImage:'url(
' + getIconLink(addMsg.HeadImagePath)
+ ')',backgroundSize:'cover'}">
</div>
<button
@
click=
"addMsg.HeadImagePath=''"
type=
"button"
class=
"el-button del-btn el-button--danger el-button--mini is-circle"
><i
...
...
@@ -96,7 +96,7 @@
<img
@
click=
"openChangeDig(2)"
v-if=
"addMsg.BottomImagePath==''"
style=
"width:100px;height:100px"
src=
"../../assets/img/default.png"
alt=
""
>
<div
v-else
class=
"app-image"
:style=
"
{backgroundImage:'url(
http://viitto-1301420277.cos.ap-chengdu.myqcloud.com' + addMsg.BottomImagePath
+ ')',backgroundSize:'cover'}">
:style=
"
{backgroundImage:'url(
' + getIconLink(addMsg.BottomImagePath)
+ ')',backgroundSize:'cover'}">
</div>
<button
@
click=
"addMsg.BottomImagePath=''"
type=
"button"
class=
"el-button del-btn el-button--danger el-button--mini is-circle"
><i
...
...
@@ -202,7 +202,7 @@
<div
flex=
"dir:top cross:center main:center"
class=
"text-center"
style=
"border-right: 1px solid rgb(226, 226, 226); border-bottom: 1px solid rgb(226, 226, 226); width: 125px; height: 110px;"
>
<img
:src=
"
'http://viitto-1301420277.cos.ap-chengdu.myqcloud.com'+addMsg.DistributionCommissionImagePath
"
:src=
"
getIconLink(addMsg.DistributionCommissionImagePath)
"
style=
"width: 35px; height: 35px;"
>
<div
style=
"transform: scale(0.8); font-size: 16px; padding-top: 8px; color: rgb(102, 102, 102);"
>
{{
addMsg
.
DistributionCommissionName
}}
...
...
@@ -211,7 +211,7 @@
<div
flex=
"dir:top cross:center main:center"
class=
"text-center"
style=
"border-right: 1px solid rgb(226, 226, 226); border-bottom: 1px solid rgb(226, 226, 226); width: 125px; height: 110px;"
>
<img
:src=
"
'http://viitto-1301420277.cos.ap-chengdu.myqcloud.com'+addMsg.DistributionOrderImagePath
"
:src=
"
getIconLink(addMsg.DistributionOrderImagePath)
"
style=
"width: 35px; height: 35px;"
>
<div
style=
"transform: scale(0.8); font-size: 16px; padding-top: 8px; color: rgb(102, 102, 102);"
>
{{
addMsg
.
DistributionOrderName
}}
...
...
@@ -219,7 +219,7 @@
</div>
<div
flex=
"dir:top cross:center main:center"
class=
"text-center"
style=
"border-right: 1px solid rgb(226, 226, 226); border-bottom: 1px solid rgb(226, 226, 226); width: 125px; height: 110px;"
>
<img
:src=
"
'http://viitto-1301420277.cos.ap-chengdu.myqcloud.com'+addMsg.WithdrawDetialsImagePath
"
<img
:src=
"
getIconLink(addMsg.WithdrawDetialsImagePath)
"
style=
"width: 35px; height: 35px;"
>
<div
style=
"transform: scale(0.8); font-size: 16px; padding-top: 8px; color: rgb(102, 102, 102);"
>
{{
addMsg
.
WithdrawDetialsName
}}
...
...
@@ -227,7 +227,7 @@
</div>
<div
flex=
"dir:top cross:center main:center"
class=
"text-center"
style=
"border-right: 1px solid rgb(226, 226, 226); border-bottom: 1px solid rgb(226, 226, 226); width: 125px; height: 110px;"
>
<img
:src=
"
'http://viitto-1301420277.cos.ap-chengdu.myqcloud.com'+addMsg.MyTeamImagePath
"
<img
:src=
"
getIconLink(addMsg.MyTeamImagePath)
"
style=
"width: 35px; height: 35px;"
>
<div
style=
"transform: scale(0.8); font-size: 16px; padding-top: 8px; color: rgb(102, 102, 102);"
>
{{
addMsg
.
MyTeamName
}}
...
...
@@ -235,7 +235,7 @@
</div>
<div
flex=
"dir:top cross:center main:center"
class=
"text-center"
style=
"border-right: 1px solid rgb(226, 226, 226); border-bottom: 1px solid rgb(226, 226, 226); width: 125px; height: 110px;"
>
<img
:src=
"
'http://viitto-1301420277.cos.ap-chengdu.myqcloud.com'+addMsg.PromoteQRCodeImagePath
"
<img
:src=
"
getIconLink(addMsg.PromoteQRCodeImagePath)
"
style=
"width: 35px; height: 35px;"
>
<div
style=
"transform: scale(0.8); font-size: 16px; padding-top: 8px; color: rgb(102, 102, 102);"
>
{{
addMsg
.
PromoteQRCodeName
}}
...
...
@@ -254,7 +254,7 @@
flex=
"dir:top main:center cross:center"
style=
"cursor: pointer; height: 100px; width: 100px; border: 1px solid rgb(227, 227, 227); margin-left: -1px;"
>
<div
class=
"app-image"
:style=
"
{backgroundImage:'url(
http://viitto-1301420277.cos.ap-chengdu.myqcloud.com' + addMsg.DistributionCommissionImagePath
+ ')',backgroundSize:'cover'}">
:style=
"
{backgroundImage:'url(
' + getIconLink(addMsg.DistributionCommissionImagePath)
+ ')',backgroundSize:'cover'}">
</div>
<div
style=
"margin-top: 8px;"
>
{{
addMsg
.
DistributionCommissionName
}}
</div>
</span>
...
...
@@ -262,7 +262,7 @@
flex=
"dir:top main:center cross:center"
style=
"cursor: pointer; height: 100px; width: 100px; border: 1px solid rgb(227, 227, 227); margin-left: -1px;"
>
<div
class=
"app-image"
:style=
"
{backgroundImage:'url(
http://viitto-1301420277.cos.ap-chengdu.myqcloud.com' + addMsg.DistributionOrderImagePath
+ ')',backgroundSize:'cover'}">
:style=
"
{backgroundImage:'url(
' + getIconLink(addMsg.DistributionOrderImagePath)
+ ')',backgroundSize:'cover'}">
</div>
<div
style=
"margin-top: 8px;"
>
{{
addMsg
.
DistributionOrderName
}}
</div>
</span>
...
...
@@ -270,7 +270,7 @@
flex=
"dir:top main:center cross:center"
style=
"cursor: pointer; height: 100px; width: 100px; border: 1px solid rgb(227, 227, 227); margin-left: -1px;"
>
<div
class=
"app-image"
:style=
"
{backgroundImage:'url(
http://viitto-1301420277.cos.ap-chengdu.myqcloud.com' + addMsg.WithdrawDetialsImagePath
+ ')',backgroundSize:'cover'}">
:style=
"
{backgroundImage:'url(
' + getIconLink(addMsg.WithdrawDetialsImagePath)
+ ')',backgroundSize:'cover'}">
</div>
<div
style=
"margin-top: 8px;"
>
{{
addMsg
.
WithdrawDetialsName
}}
</div>
</span>
...
...
@@ -278,7 +278,7 @@
flex=
"dir:top main:center cross:center"
style=
"cursor: pointer; height: 100px; width: 100px; border: 1px solid rgb(227, 227, 227); margin-left: -1px;"
>
<div
class=
"app-image"
:style=
"
{backgroundImage:'url(
http://viitto-1301420277.cos.ap-chengdu.myqcloud.com' + addMsg.MyTeamImagePath
+ ')',backgroundSize:'cover'}">
:style=
"
{backgroundImage:'url(
' + getIconLink(addMsg.MyTeamImagePath)
+ ')',backgroundSize:'cover'}">
</div>
<div
style=
"margin-top: 8px;"
>
{{
addMsg
.
MyTeamName
}}
</div>
</span>
...
...
@@ -286,7 +286,7 @@
flex=
"dir:top main:center cross:center"
style=
"cursor: pointer; height: 100px; width: 100px; border: 1px solid rgb(227, 227, 227); margin-left: -1px;"
>
<div
class=
"app-image"
:style=
"
{backgroundImage:'url(
http://viitto-1301420277.cos.ap-chengdu.myqcloud.com' + addMsg.PromoteQRCodeImagePath
+ ')',backgroundSize:'cover'}">
:style=
"
{backgroundImage:'url(
' + getIconLink(addMsg.PromoteQRCodeImagePath)
+ ')',backgroundSize:'cover'}">
</div>
<div
style=
"margin-top: 8px;"
>
{{
addMsg
.
PromoteQRCodeName
}}
</div>
</span>
...
...
@@ -657,7 +657,7 @@
<el-button
@
click=
"openChangeDig(imgType)"
size=
"small"
>
选择文件
</el-button>
<div>
<img
style=
"width:80px;height:80px"
:src=
"
'http://viitto-1301420277.cos.ap-chengdu.myqcloud.com'+iconMsg.Path
"
alt=
""
>
:src=
"
getIconLink(iconMsg.Path)
"
alt=
""
>
</div>
</el-form-item>
</el-form>
...
...
src/components/UserMan/distributors.vue
View file @
575c7adb
...
...
@@ -500,7 +500,7 @@
SelectId
(
msg
)
{
this
.
changeState
=
false
;
this
.
addMsg
.
Image
=
msg
.
id
;
this
.
imgurl
=
"http://viitto-1301420277.cos.ap-chengdu.myqcloud.com"
+
msg
.
url
;
this
.
imgurl
=
this
.
getIconLink
(
msg
.
url
)
;
},
EditgoUrl
(
row
)
{
this
.
$router
.
push
({
...
...
src/components/UserMan/setMember.vue
View file @
575c7adb
...
...
@@ -32,7 +32,7 @@
<div>
<img
v-if=
"addMsg.IconPath==''"
style=
"width:80px;height:80px"
src=
"../../assets/img/default.png"
alt=
""
>
<img
v-else
style=
"width:80px;height:80px"
:src=
"
'http://viitto-1301420277.cos.ap-chengdu.myqcloud.com'+addMsg.IconPath
"
alt=
""
>
:src=
"
getIconLink(addMsg.IconPath)
"
alt=
""
>
</div>
</el-form-item>
<el-form-item
label=
"会员背景色"
prop=
"BackgroundImage"
>
...
...
@@ -41,8 +41,7 @@
<img
v-if=
"addMsg.BackgroundImagePath==''"
style=
"width:80px;height:80px"
src=
"../../assets/img/default.png"
alt=
""
>
<img
v-else
style=
"width:80px;height:80px"
:src=
"'http://viitto-1301420277.cos.ap-chengdu.myqcloud.com'+addMsg.BackgroundImagePath"
alt=
""
>
:src=
"getIconLink(addMsg.BackgroundImagePath)"
alt=
""
>
</div>
</el-form-item>
<el-form-item
label=
"累计金额自动升级"
>
...
...
@@ -80,7 +79,7 @@
<img
v-if=
"scope.row.ImagePath==''"
style=
"margin-left: 10px;width:50px;height:50px"
src=
"../../assets/img/default.png"
alt=
""
>
<img
v-else
style=
"margin-left: 10px;width:50px;height:50px"
:src=
"
'http://viitto-1301420277.cos.ap-chengdu.myqcloud.com'+scope.row.ImagePath
"
alt=
""
>
:src=
"
getIconLink(scope.row.ImagePath)
"
alt=
""
>
</
template
>
</el-table-column>
<el-table-column
prop=
"address"
width=
"500px"
label=
"权益内容"
>
...
...
src/components/UserMan/usersList.vue
View file @
575c7adb
...
...
@@ -231,7 +231,7 @@
SelectId
(
msg
)
{
this
.
changeState
=
false
;
this
.
addMsg
.
Image
=
msg
.
id
;
this
.
imgurl
=
"http://viitto-1301420277.cos.ap-chengdu.myqcloud.com"
+
msg
.
url
;
this
.
imgurl
=
this
.
getIconLink
(
msg
.
url
)
;
},
EditgoUrl
(
row
)
{
this
.
$router
.
push
({
...
...
src/components/common/choiceGood.vue
View file @
575c7adb
...
...
@@ -14,7 +14,7 @@
<el-table-column
prop=
"name"
label=
"名称"
>
<
template
slot-scope=
"scope"
>
<div
flex=
"cross:center dir:left"
>
<img
style=
"width:50px;height:50px;margin-right:10px;"
:src=
"
'http://viitto-1301420277.cos.ap-chengdu.myqcloud.com'+scope.row.CoverImage
"
/>
<img
style=
"width:50px;height:50px;margin-right:10px;"
:src=
"
getIconLink(scope.row.CoverImage)
"
/>
<div>
{{
scope
.
row
.
Name
}}
</div>
</div>
</
template
>
...
...
src/components/global/ChooseImg.vue
View file @
575c7adb
...
...
@@ -47,7 +47,7 @@
</div>
<el-tooltip
v-for=
"(item,index) in PageList"
:key=
"index"
class=
"item"
effect=
"dark"
:content=
"item.Name"
placement=
"top-start"
>
<div
@
click=
"PageSelect(item,index)"
:class=
"selectId==item.Id ? 'selected' :''"
class=
"el-tooltip item app-attachment-item"
>
<img
:src=
"
'http://viitto-1301420277.cos.ap-chengdu.myqcloud.com'+item.Path
"
class=
"app-attachment-img"
style=
"width: 100px; height: 100px;"
>
<img
:src=
"
getIconLink(item.Path)
"
class=
"app-attachment-img"
style=
"width: 100px; height: 100px;"
>
<div
class=
"app-attachment-name"
>
{{
item
.
Name
}}
</div>
</div>
</el-tooltip>
...
...
src/components/global/Choosevideo.vue
View file @
575c7adb
...
...
@@ -47,7 +47,7 @@
</div>
<el-tooltip
v-for=
"(item,index) in PageList"
:key=
"index"
class=
"item"
effect=
"dark"
:content=
"item.Name"
placement=
"top-start"
>
<div
@
click=
"PageSelect(item,index)"
:class=
"selectId==item.Id ? 'selected' :''"
class=
"el-tooltip item material-item "
>
<img
:src=
"
'http://viitto-1301420277.cos.ap-chengdu.myqcloud.com'+item.Path
+'?x-oss-process=video/snapshot,t_9,f_jpg,w_299,h_0,m_fast'"
class=
"material-img"
style=
"width: 100px; height: 100px;"
>
<img
:src=
"
getIconLink(item.Path)
+'?x-oss-process=video/snapshot,t_9,f_jpg,w_299,h_0,m_fast'"
class=
"material-img"
style=
"width: 100px; height: 100px;"
>
<div
class=
"material-video-info"
><i
class=
"el-icon-video-play"
></i>
<span>
{{
item
.
VideoTime
}}
</span></div>
<div
flex=
"dir:left"
style=
"margin-top: 5px;"
>
<div
class=
"material-name"
>
{{
item
.
Name
}}
</div>
...
...
src/components/sallCenter/addCardTicket.vue
View file @
575c7adb
...
...
@@ -206,7 +206,7 @@
},
SelectId
(
msg
){
this
.
changeState
=
false
;
this
.
msg
.
CouponIco
=
"http://viitto-1301420277.cos.ap-chengdu.myqcloud.com"
+
msg
.
url
;
this
.
msg
.
CouponIco
=
this
.
getIconLink
(
msg
.
url
)
;
},
}
...
...
src/components/sallCenter/plugin/banner.vue
View file @
575c7adb
...
...
@@ -129,12 +129,12 @@
<div
class=
"banner-container"
:style=
"
{height:banData.data.height+'px'}">
<el-carousel
:interval=
"3000"
arrow=
"always"
v-if=
"banData.data.style==1"
:height=
"banData.data.height+'px'"
>
<el-carousel-item
v-for=
"(item,index) in banData.data.banners"
:key=
"index"
>
<div
class=
"banner-img"
:class=
"banData.data.fill==1?'banner-img-cover':'banner-img-contain'"
:style=
"
{backgroundImage:'url(
http://viitto-1301420277.cos.ap-chengdu.myqcloud.com'+item.picUrl
+')'}">
</div>
<div
class=
"banner-img"
:class=
"banData.data.fill==1?'banner-img-cover':'banner-img-contain'"
:style=
"
{backgroundImage:'url(
'+getIconLink(item.picUrl)
+')'}">
</div>
</el-carousel-item>
</el-carousel>
<el-carousel
v-else
:interval=
"4000"
type=
"card"
:height=
"banData.data.height+'px'"
>
<el-carousel-item
v-for=
"(item,index) in banData.data.banners"
:key=
"index"
>
<div
class=
"banner-img"
:class=
"banData.data.fill==1?'banner-img-cover':'banner-img-contain'"
:style=
"
{backgroundImage:'url(
http://viitto-1301420277.cos.ap-chengdu.myqcloud.com'+item.picUrl
+')'}">
</div>
<div
class=
"banner-img"
:class=
"banData.data.fill==1?'banner-img-cover':'banner-img-contain'"
:style=
"
{backgroundImage:'url(
'+getIconLink(item.picUrl)
+')'}">
</div>
</el-carousel-item>
</el-carousel>
</div>
...
...
@@ -179,7 +179,7 @@
<div
flex=
"box:first"
>
<div>
<div
class=
"banner_image_upload"
style=
"margin-right:5px;"
>
<div
flex=
"main:center cross:center"
@
click=
"choiceMyImg(index)"
class=
"pic-box"
:style=
"{backgroundImage:'url(
http://viitto-1301420277.cos.ap-chengdu.myqcloud.com' + item.picUrl
+ ')'}"
>
<div
flex=
"main:center cross:center"
@
click=
"choiceMyImg(index)"
class=
"pic-box"
:style=
"{backgroundImage:'url(
' + getIconLink(item.picUrl)
+ ')'}"
>
<i
style=
"font-size:22px;color:#909399;"
class=
"el-icon-picture-outline"
v-if=
"item.picUrl==''"
></i>
<div
class=
"size-tip"
>
720 × 250
</div>
<el-button
type=
"danger"
v-if=
"item.picUrl!=''"
class=
"image-delete"
size=
"mini"
icon=
"el-icon-close"
@
click
.
stop=
"item.picUrl=''"
circle
></el-button>
...
...
src/components/sallCenter/plugin/goods.vue
View file @
575c7adb
...
...
@@ -322,7 +322,7 @@
<div
:style=
"cGoodsItemStyle"
:flex=
"cGoodsItemFlex"
style=
"position: relative;"
>
<div
class=
"goods-pic"
:class=
"'goods-pic-'+data.goodsCoverProportion+' goods-pic-fill-'+data.fill"
:style=
"'background-image: url(
http://viitto-1301420277.cos.ap-chengdu.myqcloud.com'+goods.CoverImage
+')'"
>
:style=
"'background-image: url(
'+getIconLink(goods.CoverImage)
+')'"
>
<div
v-if=
"data.showGoodsTag"
class=
"goods-tag"
:style=
"'background-image: url('+ getIconLink(data.goodsTagPicUrl)+')'"
></div>
</div>
...
...
@@ -410,7 +410,7 @@
<el-button
@
click=
"deleteGoods(goodsIndex,catIndex)"
circle
class=
"goods-delete"
type=
"danger"
icon=
"el-icon-close"
></el-button>
</el-tooltip>
<div
class=
"goods-pic"
:style=
"'background-image:url(
http://viitto-1301420277.cos.ap-chengdu.myqcloud.com'+goods.CoverImage
+')'"
></div>
<div
class=
"goods-pic"
:style=
"'background-image:url(
'+getIconLink(goods.CoverImage)
+')'"
></div>
</div>
</draggable>
<div
class=
"goods-add"
>
...
...
@@ -437,7 +437,7 @@
<el-button
@
click=
"deleteGoods(goodsIndex,null)"
circle
class=
"goods-delete"
type=
"danger"
icon=
"el-icon-close"
></el-button>
</el-tooltip>
<div
class=
"goods-pic"
:style=
"'background-image:url(
http://viitto-1301420277.cos.ap-chengdu.myqcloud.com'+goods.CoverImage
+')'"
></div>
<div
class=
"goods-pic"
:style=
"'background-image:url(
'+getIconLink(goods.CoverImage)
+')'"
></div>
</div>
</draggable>
<div
class=
"goods-add"
>
...
...
@@ -506,7 +506,7 @@
<el-radio
v-model=
"data.customizeGoodsTag"
:label=
"true"
@
change=
"customizeGoodsTagChange"
>
自定义
</el-radio>
</el-form-item>
<el-form-item
label=
"自定义商品角标"
v-if=
"data.showGoodsTag&&data.customizeGoodsTag"
>
<div
flex=
"main:center cross:center"
@
click=
"choicImg=true"
class=
"Goodspic-box"
:style=
"{backgroundImage:'url(
http://viitto-1301420277.cos.ap-chengdu.myqcloud.com'+data.goodsTagPicUrl
+')'}"
>
<div
flex=
"main:center cross:center"
@
click=
"choicImg=true"
class=
"Goodspic-box"
:style=
"{backgroundImage:'url(
'+getIconLink(data.goodsTagPicUrl)
+')'}"
>
<i
v-if=
"data.goodsTagPicUrl==''"
class=
"el-icon-picture-outline"
></i>
<div
class=
"size-tip"
>
64 × 64
</div>
</div>
...
...
src/components/sallCenter/plugin/navigationIcon.vue
View file @
575c7adb
...
...
@@ -150,10 +150,10 @@
</div>
<div
class=
"diy-component-preview"
>
<div
class=
"diynav-container"
:style=
"
{backgroundColor:navData.data.backgroundColor,overflowX:navData.data.scroll?'auto':'hidden',backgroundPosition:bgPostion,
backgroundImage:'url(
http://viitto-1301420277.cos.ap-chengdu.myqcloud.com' + navData.data.backgroundPicUrl
+ ')'}">
backgroundImage:'url(
' + getIconLink(navData.data.backgroundPicUrl)
+ ')'}">
<div
flex=
"dir:left"
style=
"width:750px;flex-wrap:wrap;"
>
<div
class=
"Headernav-item"
v-for=
"(item,index) in navData.data.navs"
:key=
"index"
:style=
"
{width:getNavWidth(navData.data.columns)}">
<img
:src=
"
'http://viitto-1301420277.cos.ap-chengdu.myqcloud.com'+item.icon
"
/>
<img
:src=
"
getIconLink(item.icon)
"
/>
<div
style=
"color: rgb(53, 53, 53);"
>
{{
item
.
name
}}
</div>
</div>
</div>
...
...
@@ -218,7 +218,7 @@
</el-form-item>
<el-form-item
label=
"上传背景"
v-if=
"navData.data.showImg"
>
<div
style=
"line-height:normal;display:inline-block;"
>
<div
class=
"navigation_pic_boxDiv"
@
click=
"choicImg=true,selectType=1"
flex=
"main:center cross:center"
:style=
"
{backgroundImage:'url(
http://viitto-1301420277.cos.ap-chengdu.myqcloud.com' + navData.data.backgroundPicUrl
+ ')'}">
<div
class=
"navigation_pic_boxDiv"
@
click=
"choicImg=true,selectType=1"
flex=
"main:center cross:center"
:style=
"
{backgroundImage:'url(
' + getIconLink(navData.data.backgroundPicUrl)
+ ')'}">
<i
class=
"el-icon-picture-outline"
v-if=
"navData.data.backgroundPicUrl==''"
></i>
<el-button
type=
"danger"
class=
"image-delete"
v-if=
"navData.data.backgroundPicUrl!=''"
size=
"mini"
icon=
"el-icon-close"
@
click
.
stop=
"navData.data.backgroundPicUrl=''"
circle
></el-button>
</div>
...
...
src/components/sallCenter/plugin/rubik.vue
View file @
575c7adb
...
...
@@ -89,12 +89,12 @@
icon=
"el-icon-close"
circle
@
click
.
stop=
"deleteRubik(index)"
></el-button>
</
template
>
<span
v-if=
"!rubData.data.list[index].pic_url"
>
{{rubikSize(index)}}
</span>
<img
v-else
:src=
"
'http://viitto-1301420277.cos.ap-chengdu.myqcloud.com'+rubData.data.list[index].pic_url
"
<img
v-else
:src=
"
getIconLink(rubData.data.list[index].pic_url)
"
style=
"width: 100%;visibility: hidden;"
>
</div>
<div
class=
"rubik"
:style=
"emptyStyle(index)"
v-if=
"rubData.data.style == 8"
:key=
"index"
></div>
<img
v-if=
"rubData.data.list[index].pic_url && rubData.data.style == 0"
:src=
"
'http://viitto-1301420277.cos.ap-chengdu.myqcloud.com'+rubData.data.list[index].pic_url
"
:src=
"
getIconLink(rubData.data.list[index].pic_url)
"
:key=
"index"
style=
"width: 100%;visibility: hidden;display: block"
>
</template>
</div>
...
...
@@ -144,7 +144,7 @@
<div
flex=
"main:center cross:center"
class=
"app-gallery-item"
style=
"height: 100px; width: 100px;"
>
<img
:src=
"
'http://viitto-1301420277.cos.ap-chengdu.myqcloud.com'+rubData.data.list[rubik].pic_url
"
:src=
"
getIconLink(rubData.data.list[rubik].pic_url)
"
style=
"width:100%;height:100%;"
>
</div>
</div>
...
...
@@ -555,7 +555,7 @@
style
=
this
.
getStyle
(
style
,
this
.
rubData
.
data
,
true
,
true
);
if
(
style
.
pic_url
)
{
style
.
backgroundImage
=
`url('
http://viitto-1301420277.cos.ap-chengdu.myqcloud.com
${
style
.
pic_url
}
')`
;
style
.
backgroundImage
=
`url('
${
this
.
getIconLink
(
style
.
pic_url
)
}
')`
;
style
.
backgroundRepeat
=
'no-repeat'
;
style
.
backgroundSize
=
'cover'
;
style
.
backgroundPosition
=
'center'
;
...
...
src/components/sallCenter/rechargeSet.vue
View file @
575c7adb
...
...
@@ -155,12 +155,11 @@
SelectId
(
msg
){
this
.
changeState
=
false
;
if
(
this
.
Choiceimg
==
1
){
this
.
msg
.
BackImg
=
"http://viitto-1301420277.cos.ap-chengdu.myqcloud.com"
+
msg
.
url
;
this
.
msg
.
BackImg
=
this
.
getIconLink
(
msg
.
url
)
;
}
else
if
(
this
.
Choiceimg
==
2
){
this
.
msg
.
AdvertisingImg
=
"http://viitto-1301420277.cos.ap-chengdu.myqcloud.com"
+
msg
.
url
;
this
.
msg
.
AdvertisingImg
=
this
.
getIconLink
(
msg
.
url
)
;
}
else
if
(
this
.
Choiceimg
==
3
){
this
.
msg
.
ExplainIco
=
"http://viitto-1301420277.cos.ap-chengdu.myqcloud.com"
+
msg
.
url
;
this
.
msg
.
ExplainIco
=
this
.
getIconLink
(
msg
.
url
);
}
},
//获取选择链接
...
...
src/components/setup/basicSetUp.vue
View file @
575c7adb
...
...
@@ -1099,32 +1099,31 @@
this
.
changeState
=
false
;
// this.addMsg.Image=msg.id;
if
(
this
.
Choiceimg
==
1
){
this
.
msg
.
MinShareIco
=
"http://viitto-1301420277.cos.ap-chengdu.myqcloud.com"
+
msg
.
url
;
this
.
msg
.
MinShareIco
=
this
.
getIconLink
(
msg
.
url
)
;
}
else
if
(
this
.
Choiceimg
==
2
){
this
.
msg
.
UnfoldIco
=
"http://viitto-1301420277.cos.ap-chengdu.myqcloud.com"
+
msg
.
url
;
this
.
msg
.
UnfoldIco
=
this
.
getIconLink
(
msg
.
url
)
;
}
else
if
(
this
.
Choiceimg
==
3
){
this
.
msg
.
PackUpIco
=
"http://viitto-1301420277.cos.ap-chengdu.myqcloud.com"
+
msg
.
url
;
this
.
msg
.
PackUpIco
=
this
.
getIconLink
(
msg
.
url
)
;
}
else
if
(
this
.
Choiceimg
==
4
){
this
.
msg
.
OnlineServiceIco
=
"http://viitto-1301420277.cos.ap-chengdu.myqcloud.com"
+
msg
.
url
;
this
.
msg
.
OnlineServiceIco
=
this
.
getIconLink
(
msg
.
url
)
;
}
else
if
(
this
.
Choiceimg
==
5
){
this
.
msg
.
BackTopNavigationIco
=
"http://viitto-1301420277.cos.ap-chengdu.myqcloud.com"
+
msg
.
url
;
this
.
msg
.
BackTopNavigationIco
=
this
.
getIconLink
(
msg
.
url
)
;
}
else
if
(
this
.
Choiceimg
==
6
){
this
.
msg
.
OneCallIco
=
"http://viitto-1301420277.cos.ap-chengdu.myqcloud.com"
+
msg
.
url
;
this
.
msg
.
OneCallIco
=
this
.
getIconLink
(
msg
.
url
)
;
}
else
if
(
this
.
Choiceimg
==
7
){
this
.
msg
.
ServiceOutLinkIco
=
"http://viitto-1301420277.cos.ap-chengdu.myqcloud.com"
+
msg
.
url
;
this
.
msg
.
ServiceOutLinkIco
=
this
.
getIconLink
(
msg
.
url
)
;
}
else
if
(
this
.
Choiceimg
==
8
){
this
.
msg
.
ShortcutNavigationIco
=
"http://viitto-1301420277.cos.ap-chengdu.myqcloud.com"
+
msg
.
url
;
this
.
msg
.
ShortcutNavigationIco
=
this
.
getIconLink
(
msg
.
url
)
;
}
else
if
(
this
.
Choiceimg
==
9
){
this
.
msg
.
TurnMiniIco
=
"http://viitto-1301420277.cos.ap-chengdu.myqcloud.com"
+
msg
.
url
;
this
.
msg
.
TurnMiniIco
=
this
.
getIconLink
(
msg
.
url
)
;
}
else
if
(
this
.
Choiceimg
==
10
){
this
.
msg
.
TurnIco
=
"http://viitto-1301420277.cos.ap-chengdu.myqcloud.com"
+
msg
.
url
;
this
.
msg
.
TurnIco
=
this
.
getIconLink
(
msg
.
url
)
;
}
else
if
(
this
.
Choiceimg
==
11
){
this
.
msg
.
SellOutDefaultIco
=
0
this
.
msg
.
GoodsNormalPic
=
"http://viitto-1301420277.cos.ap-chengdu.myqcloud.com"
+
msg
.
url
;
this
.
msg
.
GoodsNormalPic
=
this
.
getIconLink
(
msg
.
url
)
;
}
else
if
(
this
.
Choiceimg
==
12
){
this
.
msg
.
SellOutDefaultIco
=
0
this
.
msg
.
GoodsZoomPic
=
"http://viitto-1301420277.cos.ap-chengdu.myqcloud.com"
+
msg
.
url
;
this
.
msg
.
GoodsZoomPic
=
this
.
getIconLink
(
msg
.
url
);
}
},
preserve
(){
...
...
src/plug/index.js
View file @
575c7adb
...
...
@@ -55,10 +55,8 @@ export default {
Vue
.
prototype
.
domainManager
=
function
()
{
let
domainUrl
=
''
;
//domainUrl = "http://192.168.2.214:8200";
// domainUrl = "https://localhost:5001";
domainUrl
=
"http://192.168.0.102:8200"
;
domainUrl
=
"https://localhost:5001"
;
// domainUrl = "http://192.168.2.17:8088";
let
locationName
=
window
.
location
.
hostname
;
if
(
locationName
.
indexOf
(
'testerp.oytour'
)
!==
-
1
)
{
domainUrl
=
"http://testapi.oytour.com"
;
...
...
@@ -70,7 +68,7 @@ export default {
DomainUrl
:
domainUrl
,
//常用提交数据URL
PostUrl
:
domainUrl
+
"/api/common/post"
,
ImageUrl
:
'https://viitto-1301420277.cos.ap-chengdu.myqcloud.com'
ImageUrl
:
'https://viitto-1301420277.cos.ap-chengdu.myqcloud.com'
};
return
obj
;
},
...
...
@@ -182,19 +180,19 @@ export default {
query
:
obj
});
}
//公用判断图片地址 判断是否包含http
Vue
.
prototype
.
getIconLink
=
function
(
url
)
{
let
str
=
''
if
(
url
!=
''
){
if
(
url
.
indexOf
(
'http'
)
!=
-
1
)
{
str
=
url
}
else
{
str
=
'http://viitto-1301420277.cos.ap-chengdu.myqcloud.com'
+
url
}
return
str
;
//公用判断图片地址 判断是否包含http
Vue
.
prototype
.
getIconLink
=
function
(
url
)
{
let
str
=
''
if
(
url
&&
url
!=
''
)
{
if
(
url
.
indexOf
(
'http'
)
!=
-
1
)
{
str
=
url
}
else
{
str
=
this
.
domainManager
().
ImageUrl
+
url
;
}
return
str
;
}
}
//HTTP提交数据
Vue
.
prototype
.
apipost
=
function
(
cmd
,
msg
,
successCall
,
faildCall
,
isOnline
)
{
if
(
msg
==
null
||
msg
==
""
)
{
...
...
@@ -203,10 +201,10 @@ export default {
var
apiurl
=
this
.
domainManager
().
DomainUrl
+
cmd
;
var
timestamp
=
(
new
Date
()).
valueOf
();
this
.
apiurl
=
apiurl
;
if
(
!
localStorage
.
mall_userInfo
&&
localStorage
.
mall_userInfo
!=
""
&&
this
.
$route
.
path
.
toLowerCase
()
!=
"/login"
&&
this
.
$route
.
path
.
toLowerCase
()
!=
"/register"
&&
this
.
$route
.
path
.
toLowerCase
()
!=
"/forgetpassword"
if
(
!
localStorage
.
mall_userInfo
&&
localStorage
.
mall_userInfo
!=
""
&&
this
.
$route
.
path
.
toLowerCase
()
!=
"/login"
&&
this
.
$route
.
path
.
toLowerCase
()
!=
"/register"
&&
this
.
$route
.
path
.
toLowerCase
()
!=
"/forgetpassword"
)
{
this
.
$router
.
push
({
path
:
'/login'
...
...
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