ss
重庆迈尖科技有限公司
2020-06-11 71ed4091cc34933bce544f97cd89a754a3224d1f
AppInside/cloudPushOrder/cloudPushOrderManage.html
@@ -142,7 +142,8 @@
                  <div>
                     朋友圈发单
                  </div>
                  <img src="img/icon_off.png">
                  <img v-if="circle" src="img/icon_on.png" @click="switchCircleState(false)">
                  <img v-else src="img/icon_off.png" @click="switchCircleState(true)">
               </div>
               <div class="div_cloudPushOrderManage_login_content3">
@@ -150,7 +151,7 @@
                     <div>
                        微信群发单
                     </div>
                     <img src="img/icon_refresh.png">
                     <img src="img/icon_refresh.png" @click="searchGroup">
                  </div>
                  <div class="" style="margin-top: 0.2rem; background-color: #FFF3D3; display: -webkit-flex;align-items: center;justify-content: center;margin-left: 0.15rem;margin-right: 0.1rem;">
                     <p style="font-size: 0.24rem;color: #666666; padding-top: 0.25rem;padding-left: 0.25rem;padding-bottom: 0.25rem;padding-right: 0.05rem;">
@@ -321,7 +322,7 @@
      var h5Url = "http://192.168.1.114:8848";
      var check = null;
      var wId = null;
      var wId = null;
      var isLoadProgress = true;
      $(function() {
@@ -490,9 +491,10 @@
                  clearInterval(check);
               },
               // 云发单开通信息
               fetcCloudInfo: function() {
                  if (isLoadProgress) {
                     yesApp.showLoading();
               fetcCloudInfo: function() {
                  if (isLoadProgress) {
                     yesApp.showLoading();
                     isLoadProgress = true;
                  }
                  var uid = yesApp.getUid();
                  var params = {
@@ -531,14 +533,92 @@
                     }
                  });
               },
               // 云发单群搜索
               searchGroup: function() {
                  yesApp.showLoading();
                  var uid = yesApp.getUid();
                  var params = {
                     uid: uid,
                  };
                  params = yesApp.getRequestBaseParams(params);
                  $.ajax({
                     type: "GET",
                     data: JSON.parse(params),
                     url: host + "/fanli/api/v2/user/cloud/searchGroup",
                     dataType: "jsonp",
                     async: false,
                     success: function(result) {
                        yesApp.hideLoading();
                        if (result.code == 0) {
                           app.listGroup = result.data.listGroup;
                        } else {
                           yesApp.toast(result.msg);
                        }
                     },
                     error: function(XMLHttpRequest, textStatus, errorThrown) {
                        yesApp.hideLoading();
                        if (textStatus === 'timeout') {
                           setTimeout(function() {}, 2000);
                        }
                     }
                  });
               },
               // 改变群发单状态
               switchCircleState: function(state) {
                  var states = null;
                  if (state == true) {
                     states = 1;
                  } else {
                     states = 0;
                  }
                  yesApp.showLoading();
                  var uid = yesApp.getUid();
                  var params = {
                     uid: uid,
                     state: states
                  };
                  params = yesApp.getRequestBaseParams(params);
                  $.ajax({
                     type: "GET",
                     data: JSON.parse(params),
                     url: host + "/fanli/api/v2/user/cloud/switchCircleState",
                     dataType: "jsonp",
                     async: false,
                     success: function(result) {
                        if (result.code == 0) {
                           isLoadProgress = false;
                           app.fetcCloudInfo();
                        } else {
                           yesApp.hideLoading();
                           yesApp.toast(result.msg);
                        }
                     },
                     error: function(XMLHttpRequest, textStatus, errorThrown) {
                        yesApp.hideLoading();
                        if (textStatus === 'timeout') {
                           setTimeout(function() {}, 2000);
                        }
                     }
                  });
               },
               // 改变群状态
               switchGroupState: function(mId, state) {
                  var states = null;
                  if (state == true) {
                     states = 1;
                  } else {
                     states = 0;
                  }
                  yesApp.showLoading();
                  var uid = yesApp.getUid();
                  var params = {
                     uid: uid,
                     id: mId,
                     state: state
                     state: states
                  };
                  params = yesApp.getRequestBaseParams(params);
                  $.ajax({
@@ -548,11 +628,12 @@
                     dataType: "jsonp",
                     async: false,
                     success: function(result) {
                        yesApp.hideLoading();
                        if (result.code == 0) {
                           isLoadProgress = false;
                           app.fetcCloudInfo();
                        } else {
                           yesApp.hideLoading();
                           yesApp.toast(result.msg);
                        }
                     },