|
|
@ -1,5 +1,6 @@ |
|
|
|
<template> |
|
|
|
<div class="pb80 ml12 mr12"> |
|
|
|
<div class="serviceAdd-wrap"> |
|
|
|
<div class="ml12 mr12 overFlow-wrap"> |
|
|
|
<PromptText text="如何添加服务?" :type="1" class="add-info"> |
|
|
|
<template #next_desc> |
|
|
|
<div class="alert-more flex gap12" :class="alertShow ? '' : 'alert-more-hide'" @click="handleAlert"> |
|
|
@ -10,7 +11,8 @@ |
|
|
|
</template> |
|
|
|
<template #desc> |
|
|
|
<div class="alert-more-info mt12" v-show="alertShow"> |
|
|
|
<div class="flex mb10 gap10">1.点击左侧导航进入设置页,开启所需服务(<img src="@/assets/site/open_success_menu.svg" alt="">图标表示已开启)。</div> |
|
|
|
<div class="flex mb10 gap10">1.点击左侧导航进入设置页,开启所需服务(<img src="@/assets/site/open_success_menu.svg" |
|
|
|
alt="">图标表示已开启)。</div> |
|
|
|
<div class="flex mb10 gap10">2.可开启多个服务。</div> |
|
|
|
<div class="flex gap10">3.全部开启后,点击底部 [添加完成] 。</div> |
|
|
|
</div> |
|
|
@ -33,13 +35,16 @@ |
|
|
|
<el-form class="el-row demo-ruleForm" ref="formRef"> |
|
|
|
<div class="price-top"> |
|
|
|
<span class="title">网页支付与售价</span> |
|
|
|
<span class="desc" v-if="serviceAddInfo.supply_price">供货价:{{serviceAddInfo.supply_price}}{{serviceAddInfo.supply_price_warning}}</span> |
|
|
|
<span class="desc" |
|
|
|
v-if="serviceAddInfo.supply_price">供货价:{{ serviceAddInfo.supply_price }}{{ serviceAddInfo.supply_price_warning }}</span> |
|
|
|
</div> |
|
|
|
|
|
|
|
<PromptText v-if="serviceAddInfo.prompt.title" :text='serviceAddInfo.prompt.title' :type="1" class="mb12"> |
|
|
|
<PromptText v-if="serviceAddInfo.prompt.title" :text='serviceAddInfo.prompt.title' :type="1" |
|
|
|
class="mb12"> |
|
|
|
<template #desc v-if="serviceAddInfo.prompt.content"> |
|
|
|
<div class="alert-more-info mt12"> |
|
|
|
<div class="flex mb10" v-for="item in serviceAddInfo.prompt.content" :key="item">{{item}}</div> |
|
|
|
<div class="flex mb10" v-for="item in serviceAddInfo.prompt.content" :key="item"> |
|
|
|
{{ item }}</div> |
|
|
|
</div> |
|
|
|
</template> |
|
|
|
</PromptText> |
|
|
@ -51,19 +56,24 @@ |
|
|
|
</div> |
|
|
|
<div class="flex-between"> |
|
|
|
<div class="short-width"> |
|
|
|
<GuipSelect width="100%" v-model="serviceInfo.unit" placeholder="选择计费方式" :options="serviceAddInfo.set_units"/> |
|
|
|
<GuipSelect width="100%" v-model="serviceInfo.unit" placeholder="选择计费方式" |
|
|
|
:options="serviceAddInfo.set_units" /> |
|
|
|
</div> |
|
|
|
<div class="short-width" v-if="serviceInfo.unit > 0"> |
|
|
|
<GuipInput v-if="serviceInfo.unit === '1'" v-model="serviceInfo.price" width="100%" ref="GuipInput" unit="元/篇"></GuipInput> |
|
|
|
<GuipInput v-if="serviceInfo.unit === '2'" v-model="serviceInfo.price" width="100%" ref="GuipInput" unit="元/页"></GuipInput> |
|
|
|
<GuipInput v-if="serviceInfo.unit === '1'" v-model="serviceInfo.price" width="100%" |
|
|
|
ref="GuipInput" unit="元/篇"></GuipInput> |
|
|
|
<GuipInput v-if="serviceInfo.unit === '2'" v-model="serviceInfo.price" width="100%" |
|
|
|
ref="GuipInput" unit="元/页"></GuipInput> |
|
|
|
</div> |
|
|
|
</div> |
|
|
|
<div class="flex-between mt12" v-if="serviceInfo.unit === '0'"> |
|
|
|
<div class="short-width"> |
|
|
|
<GuipInput width="100%" v-model="serviceInfo.price" ref="GuipInput" unit="元"></GuipInput> |
|
|
|
<GuipInput width="100%" v-model="serviceInfo.price" ref="GuipInput" unit="元"> |
|
|
|
</GuipInput> |
|
|
|
</div> |
|
|
|
<div class="short-width"> |
|
|
|
<GuipInput width="100%" v-model="serviceInfo.unit_num" ref="GuipInput" unit="字符"></GuipInput> |
|
|
|
<GuipInput width="100%" v-model="serviceInfo.unit_num" ref="GuipInput" unit="字符"> |
|
|
|
</GuipInput> |
|
|
|
</div> |
|
|
|
</div> |
|
|
|
</div> |
|
|
@ -76,13 +86,15 @@ |
|
|
|
</div> |
|
|
|
<div class="flex-between"> |
|
|
|
<div class="third-width"> |
|
|
|
<GuipInput width="100%" v-model="serviceInfo.base_unit_num" ref="GuipInput" unit="字符内"></GuipInput> |
|
|
|
<GuipInput width="100%" v-model="serviceInfo.base_unit_num" ref="GuipInput" |
|
|
|
unit="字符内"></GuipInput> |
|
|
|
</div> |
|
|
|
<div class="w85"> |
|
|
|
用户需支付 |
|
|
|
</div> |
|
|
|
<div class="third-width"> |
|
|
|
<GuipInput width="100%" v-model="serviceInfo.base_unit_price" ref="GuipInput" unit="元"></GuipInput> |
|
|
|
<GuipInput width="100%" v-model="serviceInfo.base_unit_price" ref="GuipInput" |
|
|
|
unit="元"></GuipInput> |
|
|
|
</div> |
|
|
|
</div> |
|
|
|
</div> |
|
|
@ -110,19 +122,24 @@ |
|
|
|
</div> |
|
|
|
<div class="flex-between"> |
|
|
|
<div class="short-width"> |
|
|
|
<GuipSelect width="100%" v-model="serviceInfo.unit" placeholder="选择计费方式" :options="serviceAddInfo.set_units"/> |
|
|
|
<GuipSelect width="100%" v-model="serviceInfo.unit" placeholder="选择计费方式" |
|
|
|
:options="serviceAddInfo.set_units" /> |
|
|
|
</div> |
|
|
|
<div class="short-width" v-if="serviceInfo.unit > 0"> |
|
|
|
<GuipInput v-if="serviceInfo.unit === '1'" v-model="serviceAddInfo.unit_piece" width="100%" ref="GuipInput" unit="件/篇"></GuipInput> |
|
|
|
<GuipInput v-if="serviceInfo.unit === '2'" v-model="serviceAddInfo.unit_piece" width="100%" ref="GuipInput" unit="件/页"></GuipInput> |
|
|
|
<GuipInput v-if="serviceInfo.unit === '1'" v-model="serviceAddInfo.unit_piece" |
|
|
|
width="100%" ref="GuipInput" unit="件/篇"></GuipInput> |
|
|
|
<GuipInput v-if="serviceInfo.unit === '2'" v-model="serviceAddInfo.unit_piece" |
|
|
|
width="100%" ref="GuipInput" unit="件/页"></GuipInput> |
|
|
|
</div> |
|
|
|
</div> |
|
|
|
<div class="flex-between mt12" v-if="serviceInfo.unit === '0'"> |
|
|
|
<div class="short-width"> |
|
|
|
<GuipInput width="100%" v-model="serviceInfo.unit_piece" ref="GuipInput" unit="件"></GuipInput> |
|
|
|
<GuipInput width="100%" v-model="serviceInfo.unit_piece" ref="GuipInput" unit="件"> |
|
|
|
</GuipInput> |
|
|
|
</div> |
|
|
|
<div class="short-width"> |
|
|
|
<GuipInput width="100%" v-model="serviceInfo.unit_num" ref="GuipInput" unit="字符"></GuipInput> |
|
|
|
<GuipInput width="100%" v-model="serviceInfo.unit_num" ref="GuipInput" unit="字符"> |
|
|
|
</GuipInput> |
|
|
|
</div> |
|
|
|
</div> |
|
|
|
</div> |
|
|
@ -135,13 +152,15 @@ |
|
|
|
</div> |
|
|
|
<div class="flex-between"> |
|
|
|
<div class="third-width"> |
|
|
|
<GuipInput width="100%" v-model="serviceInfo.base_unit_num" ref="GuipInput" unit="字符内"></GuipInput> |
|
|
|
<GuipInput width="100%" v-model="serviceInfo.base_unit_num" ref="GuipInput" |
|
|
|
unit="字符内"></GuipInput> |
|
|
|
</div> |
|
|
|
<div class="w85"> |
|
|
|
用户需支付 |
|
|
|
</div> |
|
|
|
<div class="third-width"> |
|
|
|
<GuipInput width="100%" v-model="serviceInfo.base_unit_piece" ref="GuipInput" unit="件"></GuipInput> |
|
|
|
<GuipInput width="100%" v-model="serviceInfo.base_unit_piece" ref="GuipInput" |
|
|
|
unit="件"></GuipInput> |
|
|
|
</div> |
|
|
|
</div> |
|
|
|
</div> |
|
|
@ -171,15 +190,20 @@ |
|
|
|
<div class="bind-item" v-for="(row, key) in bindList" :key="key"> |
|
|
|
<img :src="row.pic_url ? row.pic_url : require('@/assets/site/invalid.png')" alt=""> |
|
|
|
<div class="bind-goods-info"> |
|
|
|
<div class="bind-goods-title"><el-link :href="row.link" target="_blank">{{row.title}}</el-link></div> |
|
|
|
<div class="bind-goods-title"><el-link :href="row.link" |
|
|
|
target="_blank">{{ row.title }}</el-link> |
|
|
|
</div> |
|
|
|
<div class="flex-between gap12"> |
|
|
|
<div class="flex gap12"> |
|
|
|
<span v-if="row.price">¥{{ row.price }}</span> |
|
|
|
<span v-if="row.sec_title">{{ row.sec_title }}</span> |
|
|
|
</div> |
|
|
|
<div class="flex gap12"> |
|
|
|
<span class="bind-btn bind-delete" @click="handleDelBindClick(row, key)">删除</span> |
|
|
|
<span class="bind-btn" :class="row.is_default === '1' ? 'bind-default-active' : 'bind-default' " @click="handleDefaultConfirm(row.id)">默认商品</span> |
|
|
|
<span class="bind-btn bind-delete" |
|
|
|
@click="handleDelBindClick(row, key)">删除</span> |
|
|
|
<span class="bind-btn" |
|
|
|
:class="row.is_default === '1' ? 'bind-default-active' : 'bind-default'" |
|
|
|
@click="handleDefaultConfirm(row.id)">默认商品</span> |
|
|
|
</div> |
|
|
|
</div> |
|
|
|
</div> |
|
|
@ -187,23 +211,28 @@ |
|
|
|
</div> |
|
|
|
</el-form> |
|
|
|
|
|
|
|
<bindGoods :showBind="showBind" :uid="uid" :type="type" :pati="pati" :pageCode="pageCode" @handleBind="handleBind"></bindGoods> |
|
|
|
<bindGoods :showBind="showBind" :uid="uid" :type="type" :pati="pati" :pageCode="pageCode" |
|
|
|
@handleBind="handleBind"> |
|
|
|
</bindGoods> |
|
|
|
|
|
|
|
<GuipDialog :dialogVisible="dialogDelBindConfim" title="提示" :show-close-button="false" @confirm="handleDelBindConfirm" |
|
|
|
@cancel="handleDelBindCancel"> |
|
|
|
<GuipDialog :dialogVisible="dialogDelBindConfim" title="提示" :show-close-button="false" |
|
|
|
@confirm="handleDelBindConfirm" @cancel="handleDelBindCancel"> |
|
|
|
您确定要删除吗?删除后所有绑定都会删除 |
|
|
|
</GuipDialog> |
|
|
|
</div> |
|
|
|
|
|
|
|
<GuipDialog :dialogVisible="dialogDelServiceConfim" title="提示" :show-close-button="false" @confirm="handleDelServiceConfirm" |
|
|
|
@cancel="handleDelServiceCancel"> |
|
|
|
<GuipDialog :dialogVisible="dialogDelServiceConfim" title="提示" :show-close-button="false" |
|
|
|
@confirm="handleDelServiceConfirm" @cancel="handleDelServiceCancel"> |
|
|
|
确定要移除服务吗? |
|
|
|
</GuipDialog> |
|
|
|
|
|
|
|
</div> |
|
|
|
<div class="register-btns"> |
|
|
|
<GuipButton type="primary" :btnstyle="{ width: '144px', height: '46px' }" @click="jumpStep">添加完成</GuipButton> |
|
|
|
<GuipButton type="primary" :btnstyle="{ width: '144px', height: '46px' }" @click="jumpStep">添加完成 |
|
|
|
</GuipButton> |
|
|
|
</div> |
|
|
|
</div> |
|
|
|
|
|
|
|
</template> |
|
|
|
<script> |
|
|
|
import store from '@/store'; |
|
|
@ -578,9 +607,19 @@ export default { |
|
|
|
} |
|
|
|
</script> |
|
|
|
<style lang="scss" scoped> |
|
|
|
.serviceAdd-wrap{ |
|
|
|
height: 100%; |
|
|
|
display: flex; |
|
|
|
flex-direction: column; |
|
|
|
.overFlow-wrap{ |
|
|
|
flex: 1; |
|
|
|
overflow-y: auto; |
|
|
|
} |
|
|
|
} |
|
|
|
.pb80 { |
|
|
|
padding-bottom: 80px; |
|
|
|
} |
|
|
|
|
|
|
|
.ml12 { |
|
|
|
margin-left: 12px; |
|
|
|
} |
|
|
@ -602,16 +641,22 @@ export default { |
|
|
|
color: #006AFF; |
|
|
|
letter-spacing: 0.08em; |
|
|
|
cursor: pointer; |
|
|
|
user-select: none; /* 标准语法 */ |
|
|
|
-webkit-user-select: none; /* Safari */ |
|
|
|
-moz-user-select: none; /* Firefox */ |
|
|
|
-ms-user-select: none; /* IE/Edge */ |
|
|
|
user-select: none; |
|
|
|
/* 标准语法 */ |
|
|
|
-webkit-user-select: none; |
|
|
|
/* Safari */ |
|
|
|
-moz-user-select: none; |
|
|
|
/* Firefox */ |
|
|
|
-ms-user-select: none; |
|
|
|
/* IE/Edge */ |
|
|
|
} |
|
|
|
|
|
|
|
.alert-more-hide { |
|
|
|
img { |
|
|
|
transform: rotate(180deg); |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
.alert-more-info { |
|
|
|
color: #1E2226; |
|
|
|
letter-spacing: 0.08em; |
|
|
@ -647,6 +692,7 @@ export default { |
|
|
|
background-size: 16px 16px; |
|
|
|
margin-right: 12px; |
|
|
|
} |
|
|
|
|
|
|
|
.service-status-close { |
|
|
|
cursor: pointer; |
|
|
|
color: #8A9099; |
|
|
@ -661,21 +707,25 @@ export default { |
|
|
|
|
|
|
|
.price-set { |
|
|
|
letter-spacing: 0.08em; |
|
|
|
|
|
|
|
.price-top { |
|
|
|
display: flex; |
|
|
|
align-items: center; |
|
|
|
margin-bottom: 16px; |
|
|
|
|
|
|
|
.title { |
|
|
|
font-size: 14px; |
|
|
|
font-weight: bold; |
|
|
|
color: #1E2226; |
|
|
|
} |
|
|
|
|
|
|
|
.desc { |
|
|
|
font-size: 14px; |
|
|
|
color: #626573; |
|
|
|
margin-left: 12px; |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
.el-form-item { |
|
|
|
margin-bottom: 0; |
|
|
|
} |
|
|
@ -731,9 +781,11 @@ export default { |
|
|
|
|
|
|
|
.bind-goods-title { |
|
|
|
text-align: left; |
|
|
|
|
|
|
|
a { |
|
|
|
color: #1E2226; |
|
|
|
} |
|
|
|
|
|
|
|
a:hover { |
|
|
|
color: #006AFF; |
|
|
|
} |
|
|
@ -773,9 +825,9 @@ export default { |
|
|
|
} |
|
|
|
|
|
|
|
.register-btns { |
|
|
|
position: fixed; |
|
|
|
left: 0; |
|
|
|
bottom: 0; |
|
|
|
// position: absolute; |
|
|
|
// left: 0; |
|
|
|
// bottom: 0; |
|
|
|
width: 100%; |
|
|
|
display: flex; |
|
|
|
flex-direction: row; |
|
|
@ -785,6 +837,7 @@ export default { |
|
|
|
/* 蓝色阴影_常规 */ |
|
|
|
box-shadow: 0px 4px 16px 0px rgba(17, 55, 143, 0.12); |
|
|
|
z-index: 999; |
|
|
|
|
|
|
|
button:nth-child(1) { |
|
|
|
margin-right: 56px; |
|
|
|
} |
|
|
|