| | |
| | | <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">
|
| | |
| | | <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;">
|
| | |
| | | var h5Url = "http://192.168.1.114:8848";
|
| | |
|
| | | var check = null;
|
| | | var wId = null; |
| | | var wId = null;
|
| | | var isLoadProgress = true;
|
| | |
|
| | | $(function() {
|
| | |
| | | clearInterval(check);
|
| | | },
|
| | | // 云发单开通信息
|
| | | fetcCloudInfo: function() { |
| | | if (isLoadProgress) { |
| | | yesApp.showLoading(); |
| | | fetcCloudInfo: function() {
|
| | | if (isLoadProgress) {
|
| | | yesApp.showLoading();
|
| | | isLoadProgress = true;
|
| | | }
|
| | | var uid = yesApp.getUid();
|
| | | var params = {
|
| | |
| | | }
|
| | | });
|
| | | },
|
| | | // 云发单群搜索
|
| | | 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({
|
| | |
| | | dataType: "jsonp",
|
| | | async: false,
|
| | | success: function(result) {
|
| | | yesApp.hideLoading();
|
| | | if (result.code == 0) {
|
| | | isLoadProgress = false;
|
| | | app.fetcCloudInfo();
|
| | |
|
| | | } else {
|
| | | yesApp.hideLoading();
|
| | | yesApp.toast(result.msg);
|
| | | }
|
| | | },
|