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
2dd89b74
Commit
2dd89b74
authored
Aug 06, 2020
by
黄奎
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
页面修改
parent
23340e85
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
60 additions
and
104 deletions
+60
-104
pintuanSet.vue
src/components/pintuan/pintuanSet.vue
+60
-104
No files found.
src/components/pintuan/pintuanSet.vue
View file @
2dd89b74
...
...
@@ -111,13 +111,13 @@
<span>
购买设置
</span>
</div>
<el-form-item
label=
"是否开启分销"
size=
"mini"
>
<el-switch
v-model=
"msg.
is_s
hare"
active-color=
"#409EFF"
:active-value=
"1"
:inactive-value=
"0"
>
<el-switch
v-model=
"msg.
Is_S
hare"
active-color=
"#409EFF"
:active-value=
"1"
:inactive-value=
"0"
>
</el-switch>
<span
class=
"red"
>
注:必须在“
<el-button
type=
"text"
@
click=
"CommonJump('baseSet')"
>
分销中心=>基础设置
</el-button>
”中开启,才能使用
</span>
</el-form-item>
<el-form-item
label=
"是否开启区域允许购买"
size=
"mini"
>
<el-switch
v-model=
"msg.
is_territorial_l
imitation"
active-color=
"#409EFF"
:active-value=
"1"
<el-switch
v-model=
"msg.
Is_Territorial_L
imitation"
active-color=
"#409EFF"
:active-value=
"1"
:inactive-value=
"0"
>
</el-switch>
<span
class=
"red"
>
注:必须在“
<el-button
type=
"text"
>
系统管理=>区域允许购买
</el-button>
”中开启,才能使用
</span>
...
...
@@ -126,20 +126,20 @@
<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=
"msg.
payment_type
"
style=
"display:inline-block;margin-left:10px;"
>
<el-checkbox
:label=
"0
"
>
线上支付
</el-checkbox>
<el-checkbox
:label=
"1
"
>
货到付款
</el-checkbox>
<el-checkbox
:label=
"2
"
>
余额支付
</el-checkbox>
<el-checkbox-group
v-model=
"msg.
Payment_TypeList
"
style=
"display:inline-block;margin-left:10px;"
>
<el-checkbox
label=
"online_pay
"
>
线上支付
</el-checkbox>
<el-checkbox
label=
"huodao
"
>
货到付款
</el-checkbox>
<el-checkbox
label=
"balance
"
>
余额支付
</el-checkbox>
</el-checkbox-group>
</el-form-item>
<el-form-item
label=
"发货方式"
size=
"mini"
>
<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=
"msg.
send_type
"
style=
"display:inline-block;margin-left:10px;"
>
<el-checkbox
:label=
"0
"
>
快递配送
</el-checkbox>
<el-checkbox
:label=
"1
"
>
到店自提
</el-checkbox>
<el-checkbox
:label=
"2
"
>
同城配送
</el-checkbox>
<el-checkbox-group
v-model=
"msg.
Send_TypeList
"
style=
"display:inline-block;margin-left:10px;"
>
<el-checkbox
label=
"express
"
>
快递配送
</el-checkbox>
<el-checkbox
label=
"offline
"
>
到店自提
</el-checkbox>
<el-checkbox
label=
"city
"
>
同城配送
</el-checkbox>
</el-checkbox-group>
<div
style=
"color: rgb(204, 204, 204);"
>
注:手机端显示排序(1.快递配送 2.到店自提 3.同城配送)
...
...
@@ -152,20 +152,20 @@
<span>
优惠叠加设置
</span>
</div>
<el-form-item
label=
"优惠券"
size=
"mini"
>
<el-switch
v-model=
"msg.
is_c
oupon"
active-color=
"#409EFF"
:active-value=
"1"
:inactive-value=
"0"
>
<el-switch
v-model=
"msg.
Is_C
oupon"
active-color=
"#409EFF"
:active-value=
"1"
:inactive-value=
"0"
>
</el-switch>
</el-form-item>
<el-form-item
label=
"超级会员卡"
size=
"mini"
>
<el-switch
v-model=
"msg.
svip_s
tatus"
active-color=
"#409EFF"
:active-value=
"1"
:inactive-value=
"0"
>
<el-switch
v-model=
"msg.
SVIP_S
tatus"
active-color=
"#409EFF"
:active-value=
"1"
:inactive-value=
"0"
>
</el-switch>
<span
class=
"red"
>
注:必须在“
<el-button
type=
"text"
>
插件中心=>超级会员卡
</el-button>
”中开启,才能使用
</span>
</el-form-item>
<el-form-item
label=
"会员价"
size=
"mini"
>
<el-switch
v-model=
"msg.
is_member_p
rice"
active-color=
"#409EFF"
:active-value=
"1"
:inactive-value=
"0"
>
<el-switch
v-model=
"msg.
Is_Member_P
rice"
active-color=
"#409EFF"
:active-value=
"1"
:inactive-value=
"0"
>
</el-switch>
</el-form-item>
<el-form-item
label=
"积分抵扣"
size=
"mini"
>
<el-switch
v-model=
"msg.
is_i
ntegral"
active-color=
"#409EFF"
:active-value=
"1"
:inactive-value=
"0"
>
<el-switch
v-model=
"msg.
Is_I
ntegral"
active-color=
"#409EFF"
:active-value=
"1"
:inactive-value=
"0"
>
</el-switch>
</el-form-item>
...
...
@@ -175,7 +175,7 @@
<span>
拼团规则设置
</span>
</div>
<el-form-item
label=
"活动规则"
size=
"mini"
>
<UE
style=
"width:750px;"
:defaultMsg=
"msg.
new_rules
"
ref=
"ue"
></UE>
<UE
style=
"width:750px;"
:defaultMsg=
"msg.
RuleText
"
ref=
"ue"
></UE>
</el-form-item>
</el-card>
</el-form>
...
...
@@ -189,7 +189,7 @@
<
template
v-if=
"checkIndex==3"
>
<el-form
label-width=
"150px"
>
<el-form-item
label=
"拼团广告状态"
size=
"mini"
>
<el-switch
v-model=
"msg.
is_a
dvertisement"
active-color=
"#409EFF"
:active-value=
"1"
:inactive-value=
"0"
>
<el-switch
v-model=
"msg.
Is_A
dvertisement"
active-color=
"#409EFF"
:active-value=
"1"
:inactive-value=
"0"
>
</el-switch>
</el-form-item>
<el-form-item
label=
"样式选择"
size=
"mini"
>
...
...
@@ -228,7 +228,7 @@
</el-form>
</
template
>
<el-button
size=
"small"
style=
"margin:30px 0 150px 0;padding:9px 25px;"
type=
"primary"
>
保 存
</el-button>
<el-button
size=
"small"
style=
"margin:30px 0 150px 0;padding:9px 25px;"
type=
"primary"
@
click=
"saveGroupBuyConfig"
>
保 存
</el-button>
</div>
</div>
</template>
...
...
@@ -245,91 +245,19 @@
},
isActive
:
-
1
,
msg
:
{
is_share
:
0
,
//是否开启分销
is_territorial_limitation
:
0
,
//是否开启区域允许购买
payment_type
:
[
0
,
1
],
//支付方式
send_type
:
[
0
,
2
],
//发货方式
is_coupon
:
1
,
//优惠券
svip_status
:
1
,
//超级会员卡
is_member_price
:
1
,
//会员价
is_integral
:
1
,
//积分抵扣
new_rules
:
''
,
//活动规则
is_advertisement
:
1
,
//拼团广告状态
advertisement
:
{
"list"
:
[{
"pic_url"
:
"https://cdnimg.iotweixin.com/uploads/mall1285/20200628/169f6e411ba6a62a4bc7a6fc37f04961.jpg"
,
"link_url"
:
"/plugins/pt/index/index"
,
"open_type"
:
"navigate"
,
"style"
:
"width:750rpx;height:360rpx;top:0;left:0;"
,
"width"
:
"750rpx"
,
"height"
:
"360rpx"
,
"top"
:
"0"
,
"left"
:
"0"
}],
"current_style_id"
:
1
,
"style"
:
0
,
"type"
:
0
,
"value"
:
[{
"width"
:
"100%"
,
"height"
:
"auto"
,
"left"
:
0
,
"top"
:
0
,
"zIndex"
:
11
,
"link"
:
{
"id"
:
1
,
"open_type"
:
"navigate"
,
"value"
:
"/plugins/pt/index/index"
,
"new_link_url"
:
""
,
"icon"
:
""
,
"name"
:
""
},
"pic_url"
:
"https://cdnimg.iotweixin.com/uploads/mall1285/20200628/169f6e411ba6a62a4bc7a6fc37f04961.jpg"
}]
},
},
//样式选择枚举
styleList
:
[{
Id
:
0
,
size
:
[
'750*360'
],
Style
:
1
,
ImgUrl
:
this
.
domainManager
().
ImageUrl
+
'/Static/cube1-1.png'
},
{
Id
:
1
,
size
:
[
'300*360'
,
'450*360'
],
Style
:
2
,
ImgUrl
:
this
.
domainManager
().
ImageUrl
+
'/Static/cube1-2.png'
},
{
Id
:
2
,
size
:
[
'300*360'
,
'450*180'
,
'450*180'
],
Style
:
3
,
ImgUrl
:
this
.
domainManager
().
ImageUrl
+
'/Static/cube1-3.png'
},
{
Id
:
3
,
size
:
[
'300*360'
,
'450*180'
,
'225*180'
,
'225*180'
],
Style
:
4
,
ImgUrl
:
this
.
domainManager
().
ImageUrl
+
'/Static/cube1-4.png'
},
{
Id
:
4
,
size
:
[
'375*240'
,
'375*240'
],
Style
:
2
,
ImgUrl
:
this
.
domainManager
().
ImageUrl
+
'/Static/cube2-1.png'
},
{
Id
:
5
,
size
:
[
'250*240'
,
'250*240'
,
'250*240'
],
Style
:
3
,
ImgUrl
:
this
.
domainManager
().
ImageUrl
+
'/Static/cube2-2.png'
},
{
Id
:
6
,
size
:
[
'188*188'
,
'188*188'
,
'188*188'
,
'188*188'
],
Style
:
4
,
ImgUrl
:
this
.
domainManager
().
ImageUrl
+
'/Static/cube2-3.png'
},
{
Id
:
7
,
size
:
[
'375*186'
,
'375*186'
,
'375*186'
,
'375*186'
],
Style
:
4
,
ImgUrl
:
this
.
domainManager
().
ImageUrl
+
'/Static/cube3-1.png'
}],
GroupByConfigId
:
0
,
//配置编号
Is_Share
:
0
,
//是否开启分销
Is_Territorial_Limitation
:
0
,
//是否开启区域允许购买
Payment_TypeList
:
[
"online_pay"
,
"balance"
,
"huodao"
],
//支付方式
Send_TypeList
:
[
"express"
,
"offline"
,
"city"
],
//发货方式
Is_Coupon
:
1
,
//优惠券
SVIP_Status
:
1
,
//超级会员卡
Is_Member_Price
:
1
,
//会员价
Is_Integral
:
1
,
//积分抵扣
RuleText
:
''
,
//活动规则
Is_Advertisement
:
1
,
//拼团广告状态
Goods_Poster
:
""
,
}
};
},
created
()
{},
...
...
@@ -344,9 +272,37 @@
//点击选择广告
getStyleType
()
{
},
//保存拼团配置
saveGroupBuyConfig
()
{
this
.
apipost
(
"/api/GroupBuy/SetGroupBuyConfig"
,
this
.
msg
,
res
=>
{
if
(
res
.
data
.
resultCode
==
1
)
{
this
.
getGroupBuyConfig
();
this
.
Success
(
res
.
data
.
message
);
}
else
{
this
.
Info
(
res
.
data
.
message
);
}
})
},
mounted
()
{}
//获取拼团配置
getGroupBuyConfig
()
{
this
.
apipost
(
"/api/GroupBuy/GetGroupBuyConfigModule"
,
{},
res
=>
{
if
(
res
.
data
.
resultCode
==
1
)
{
var
dataObj
=
res
.
data
.
data
;
console
.
log
(
"dataObj"
,
dataObj
);
if
(
dataObj
)
{
}
}
else
{
this
.
Info
(
res
.
data
.
message
);
}
})
}
},
mounted
()
{
this
.
getGroupBuyConfig
();
}
};
</
script
>
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