From d30f91bc1b90dee2d829ae5523de90c95a091fcd Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E7=8E=8B=E5=8D=9A=E5=86=89?= Date: Tue, 1 Nov 2022 10:59:14 +0800 Subject: [PATCH] =?UTF-8?q?=E6=9B=B4=E6=96=B0=E4=BC=81=E5=BE=AE=E6=8A=95?= =?UTF-8?q?=E6=94=BE?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/assets/img/business_wechat.png | Bin 0 -> 1292 bytes src/router/index.js | 6 + .../components/enterpriseBasicInformation.vue | 472 ++++++++++++++++++ .../enterpriseQuantityLimitTable.vue | 95 ++++ .../launch-center/launch-task/create.vue | 1 + .../launch-task/enterpriseWeChat.vue | 394 +++++++++++++++ .../launch-center/launch-task/index.vue | 133 ++++- 7 files changed, 1093 insertions(+), 8 deletions(-) create mode 100644 src/assets/img/business_wechat.png create mode 100644 src/views/Publish/launch-center/components/enterpriseBasicInformation.vue create mode 100644 src/views/Publish/launch-center/components/enterpriseQuantityLimitTable.vue create mode 100644 src/views/Publish/launch-center/launch-task/enterpriseWeChat.vue diff --git a/src/assets/img/business_wechat.png b/src/assets/img/business_wechat.png new file mode 100644 index 0000000000000000000000000000000000000000..4f2d14b1024eebc935153e265be357db1ddbfb3c GIT binary patch literal 1292 zcmV+n1@roeP)Px(#z{m$R9Hvtmuqa3RT#&A@B8+;b_~|+!etVMMKdnWEi*{a8Fd865Q84cc zqJanrA5_3ZO(X^)5fYF^K_CtWh7Z$lNn~mives5%vnK3()F?> z#t*z{nkGGc&hPx6|MQ%uiV#BZKYEnAKq;~@Fogv4A~FE`NR!Bm77D9xe72hz&O!YHy5%q>&(GPz0{{dO&7YD)d;(0399eQ9uSbcEobfY@blFm=NA@W zR1=j#e2auYQsxauJ6Q0I#<4mRCay@jJ56`|uMeaoEir-9F{z-uZg5Br5xOVCk503Kn3ptD&l=x)5 zNp-yy{jY^+;X?@3fmXa1G}+4(qOl0OFK*}P<;OVnH>{gkNTE$O-6Un-JGe~Um%n?d z-KF7j`q<(cn)LFJDblYmLu>s2lo-*%6&M^#h+8mz?RVgT5sV#b#AZL39%)e!nRq zKEP@SYMpL2xC$Y78ljr-G_1z{3r9EpedV)OuX(u(MMykhHC?96U+-tf_OQEx^ zK_-3HMVD^oiIG88Rt=&s+dzvyMq40CL>JgiDg`!`0=ogL;db*2-#9~b)ifAYfnN3$ zYrT`HeqbnL^DI5BB(B-*X*?|;>7(=QLD~a4Wh1g~-bHagNNwcU8h_%Udk-k`+u)XY zSbo@yP&LAJo3K{YfO320&KT$pli#X_3>rY-*bdC~vr&iYk2Ij`5v&i@q8R0jop{juPk=Hx&|RQZYW)LJEG5N3p14B*0000 import(/* webpackChunkName: "publish" */ '@/views/Publish/launch-center/launch-task/create') }, + { + path: 'enterprise-weChat', + name: 'enterprise-weChat', + meta: { showPreview: false, showPublish: false, keepAlive: true, showShare: true }, + component: () => import(/* webpackChunkName: "publish" */ '@/views/Publish/launch-center/launch-task/enterpriseWeChat') + }, // { // path: "link", // name: "link", diff --git a/src/views/Publish/launch-center/components/enterpriseBasicInformation.vue b/src/views/Publish/launch-center/components/enterpriseBasicInformation.vue new file mode 100644 index 00000000..f46297fd --- /dev/null +++ b/src/views/Publish/launch-center/components/enterpriseBasicInformation.vue @@ -0,0 +1,472 @@ + + + + + diff --git a/src/views/Publish/launch-center/components/enterpriseQuantityLimitTable.vue b/src/views/Publish/launch-center/components/enterpriseQuantityLimitTable.vue new file mode 100644 index 00000000..91adda4a --- /dev/null +++ b/src/views/Publish/launch-center/components/enterpriseQuantityLimitTable.vue @@ -0,0 +1,95 @@ + + + + + diff --git a/src/views/Publish/launch-center/launch-task/create.vue b/src/views/Publish/launch-center/launch-task/create.vue index c23c4d9e..da8a3182 100644 --- a/src/views/Publish/launch-center/launch-task/create.vue +++ b/src/views/Publish/launch-center/launch-task/create.vue @@ -252,6 +252,7 @@ export default { .link-container { padding: 32px 24px; background: #fff; + box-shadow: 0px 0px 6px 0px rgb(0 0 0 / 10%); .title { font-size: 16px; font-weight: bold; diff --git a/src/views/Publish/launch-center/launch-task/enterpriseWeChat.vue b/src/views/Publish/launch-center/launch-task/enterpriseWeChat.vue new file mode 100644 index 00000000..0943b3e6 --- /dev/null +++ b/src/views/Publish/launch-center/launch-task/enterpriseWeChat.vue @@ -0,0 +1,394 @@ + + + + + + \ No newline at end of file diff --git a/src/views/Publish/launch-center/launch-task/index.vue b/src/views/Publish/launch-center/launch-task/index.vue index 79a1765e..69e6e73f 100644 --- a/src/views/Publish/launch-center/launch-task/index.vue +++ b/src/views/Publish/launch-center/launch-task/index.vue @@ -65,6 +65,45 @@
+ +
+
+
+ + 企业微信 +
+
+

适用于内部员工调研

+

可指定多成员、多部门、多标签参与

+
+ + 开始新建 + +
+
+
小程序
+
+

通过消息中心传递至小程序

+

请先联系小程序运营人员支持标签参与

+
+
+ + 开始新建 + +
+
+
@@ -138,16 +177,22 @@ export default { // projectname.value = res.data.project_name; }; + const visible = ref(false) const addLaunchTask = (iscreate = 0, item) => { console.log("create", item); - router.push({ - path: "create", - query: { - ...route.query, - iscreate: iscreate, - id: item?.record?.plan_id, - }, - }); + if(iscreate===1) { + visible.value = true + }else{ + // 小程序投放入口 + router.push({ + path: "create", + query: { + ...route.query, + iscreate: iscreate, + id: item?.record?.plan_id, + }, + }); + } }; const lockLaunchTask = (item) => { addLaunchTask(0, item); @@ -194,6 +239,35 @@ export default { } }; + const isSelected = ref(0) + const onSelected = (isSelect) => { + isSelected.value = isSelect + } + const onNewBuilt = (type) => { + if(type===1) { + // 企业微信投放入口 + router.push({ + path: "enterprise-weChat", + query: { + ...route.query, + iscreate: 1, + }, + }); + }else{ + // 小程序投放入口 + router.push({ + path: "create", + query: { + ...route.query, + iscreate: 1, + }, + }); + } + } + const onCancel = () => { + isSelected.value = 0 + } + onMounted(async () => { await fetchInfo(route.query.sn); if (status.value === 1) { @@ -225,6 +299,11 @@ export default { createQuantityLimitRef, onPageChange, onShowSizeChange, + visible, + isSelected, + onSelected, + onCancel, + onNewBuilt, }; }, }; @@ -389,4 +468,42 @@ export default { height: 36px; border-radius: 6px; } + +.delivery-type { + display: flex; + justify-content: space-between; + .wechat-type { + width: 264px; + height: 256px; + background: #FFFFFF; + border-radius: 6px 6px 6px 6px; + opacity: 1; + border: 1px solid #DFE0E3; + display: flex; + align-items: center; + justify-content: center; + flex-direction: column; + } + .wechat-type:hover { + cursor: pointer; + } + .present { + margin: 24px 0 31px; + text-align: center; + color: #908B8B; + p { + padding: 0; + margin: 0; + } + } + .program { + margin: 25px 0 32px; + } + img { + margin-right: 9px; + } + .selected { + border: 1px solid #70B936; + } +}