新聞動態

                                                                                  位置:首頁 新聞動態 常見問題

                                                                                  湖北速建時代cms,圖靈智能客服使用

                                                                                  新聞動態
                                                                                  2021年01月24日 閱讀:2778次

                                                                                  安裝包 下載地址

                                                                                  安裝方式

                                                                                  壓縮包放置位置 根目錄/app下

                                                                                  配置方式
                                                                                  到圖靈申請賬號 建模板 得到KEY。修改的到的KEY

                                                                                   public $url="http://www.tuling123.com/openapi/api"; 
                                                                                   //圖靈地址 public $key="81e307c9b66f4d3a95993f6e2eddf70f";

                                                                                  前端使用方式
                                                                                  在需要使用頁面中添加下面代碼

                                                                                  <div class="bottom">
                                                                                      <div class="text">在線智能客服<a class="but">x</a></div>
                                                                                      <iframe src="http://demo2.hbsjsd.cn/kefu/index/index.html" width="100%" height="100%" scrolling="auto" frameborder="0"> </iframe>
                                                                                  </div>

                                                                                  js部分

                                                                                    $(".but").click(function(){
                                                                                          if($("iframe").css("display")=="none"){
                                                                                              $("iframe").show();
                                                                                              $(".bottom").removeClass("intro");
                                                                                          }else{
                                                                                              $("iframe").hide();
                                                                                              $(".bottom").addClass("intro");
                                                                                          }
                                                                                      });

                                                                                  樣式css

                                                                                  <style>
                                                                                      .bottom{width: 400px;background: #fff;border-radius:5px;overflow: hidden;
                                                                                          height: 510px;
                                                                                          position: fixed;
                                                                                          bottom: 80px;
                                                                                          z-index: 1000;
                                                                                          right: 10px;}
                                                                                      .text{background: #00a0e9;line-height: 45px; line-height: 45px; color: #fff; font-size: 16px; padding-left: 15px;}
                                                                                      .text a{display: inline-block;padding:0 5px; float: right;margin-right: 10px; color: #fff; font-size: 16px;}
                                                                                      .intro{height: 45px;
                                                                                          line-height: 45px; width: 150px;}
                                                                                  </style>

                                                                                  上一篇

                                                                                  下一篇

                                                                                  亚洲中文字幕在线19页_99久久国产精品免费热7788_欧美专区日韩专区综合专区_小泽玛利亚一区_gogo999亚洲肉体艺术