Selaa lähdekoodia

Merge branch 'CYGX_10.10'

hbchen 1 vuosi sitten
vanhempi
commit
c5231016e8
3 muutettua tiedostoa jossa 38 lisäystä ja 0 poistoa
  1. 8 0
      src/api/cygx/api.js
  2. BIN
      src/assets/cygx/appointment-expert.png
  3. 30 0
      src/views/cygx/raiReportDtl.vue

+ 8 - 0
src/api/cygx/api.js

@@ -37,6 +37,14 @@ export const RaiApi = {
   userIndustryFollow: (params) => {
     return post("/industry/follow", params);
   },
+  /**
+   * 约访专家
+   * @param {} params:{number ArticleId:ArticleId}
+   * @returns 
+   */
+  appointmentExpert: (params) => {
+    return post("/article/applyAppointmentExpert", params);
+  },
 };
 export const FreeButton = {
   /*获取是否展示免费试用按钮接口*/

BIN
src/assets/cygx/appointment-expert.png


+ 30 - 0
src/views/cygx/raiReportDtl.vue

@@ -87,6 +87,11 @@
         <img src="@/assets/cygx/leaving_message.png" class="img_ico" />
         <div>留言</div>
       </div>
+      <div class="handle-item" v-if="reportInfo?.IsApplyAppointmentExpert" 
+      @click="appointment(reportInfo?.ArticleId)">
+        <img src="@/assets/cygx/appointment-expert.png" class="img_ico" />
+        <div>约访专家</div>
+      </div>
       <div class="handle-item" @click="collectHandle">
         <img src="@/assets/cygx/collect_act.png" class="img_ico" v-if="reportInfo.IsCollect" />
         <img src="@/assets/cygx/collect_ico.png" class="img_ico" v-else />
@@ -326,6 +331,31 @@ const quizBtn = () => {
     url: "/activityPages/generationAsk/generationAsk?id=" + state.reportInfo.ArticleId + "&type=文章",
   });
 };
+// 约访专家
+const appointment=(articleId)=>{
+  console.log(articleId);
+  if(!articleId){
+    Toast("ArticleId 值错误");
+    return
+  }
+  Dialog.confirm({
+    message: "约访专家的请求会提醒您的对口销售,确定要发起吗?",
+    messageAlign:'left',
+    showCancelButton:true,
+    confirmButtonColor:'blue'
+  }).then(() => {
+    RaiApi.appointmentExpert({ArticleId:articleId}).then(res=>{
+      if (res.Ret === 200 || res.Ret === 403) {
+        Dialog.confirm({
+          message: "约访申请已提醒您的对口销售,请等待销售与您联系",
+          messageAlign:'left',
+          showConfirmButton:false,
+          cancelButtonText:'知道了'
+        }).then(() => {}).catch(()=>{})
+      }
+    })
+  }).catch(()=>{})
+}
 /* 获取报告详情 */
 const getReport = (id, token, type) => {
   if (type == "mpwechat") {