优化状态 判断bug

This commit is contained in:
java110 2020-08-02 01:02:38 +08:00
parent c7b42cb52d
commit f76e39316f
23 changed files with 16 additions and 13 deletions

View File

@ -6,7 +6,7 @@
const constant = require("../constant/index.js");
// 服务器域名
const baseUrl = 'https://app.demo.winqi.cn/';
const baseUrl = '/';
//const baseUrl = 'http://hc.demo.winqi.cn:8012/';
//const baseUrl = 'https://app.demo.winqi.cn/';

View File

@ -327,7 +327,8 @@
method: "POST",
data: obj, //
success: function(res) {
if (res.statusCode == 200) {
let _json = res.data;
if (_json.code == 0) {
wx.redirectTo({
url: '/pages/myRepair/myRepair',
});

View File

@ -2,4 +2,4 @@
document.documentElement.style.fontSize = document.documentElement.clientWidth / 20 + 'px'
})
var coverSupport = 'CSS' in window && typeof CSS.supports === 'function' && (CSS.supports('top: env(a)') || CSS.supports('top: constant(a)'))
document.write('<meta name="viewport" content="width=device-width, user-scalable=no, initial-scale=1.0, maximum-scale=1.0, minimum-scale=1.0' + (coverSupport ? ', viewport-fit=cover' : '') + '" />')</script><link rel=stylesheet href=./static/index.5ca1c9cc.css></head><body><noscript><strong>Please enable JavaScript to continue.</strong></noscript><div id=app></div><script src=./static/js/chunk-vendors.efaf568a.js></script><script src=./static/js/index.0de73a5c.js></script></body></html>
document.write('<meta name="viewport" content="width=device-width, user-scalable=no, initial-scale=1.0, maximum-scale=1.0, minimum-scale=1.0' + (coverSupport ? ', viewport-fit=cover' : '') + '" />')</script><link rel=stylesheet href=./static/index.5ca1c9cc.css></head><body><noscript><strong>Please enable JavaScript to continue.</strong></noscript><div id=app></div><script src=./static/js/chunk-vendors.efaf568a.js></script><script src=./static/js/index.328ee1be.js></script></body></html>

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

View File

@ -0,0 +1 @@
(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["pages-complaintHandle-complaintHandle"],{3713:function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var a=n("7b36"),i=a.constant,s={data:function(){return{stateCloums:[{id:"0",name:"请选择"},{id:"1200",name:"结束"},{id:"1100",name:"退回"}],state:"",content:"",complaintId:"",stateIndex:0,taskId:"",storeId:"",userId:"",userName:"",communityId:""}},onLoad:function(t){var e=this;this.complaintId=t.complaintId,this.communityId=t.communityId,this.taskId=t.taskId;var n=a.getUserInfo();this.userId=n.userId,this.userName=n.userName,a.getProperty().then((function(t){e.storeId=t.storeId}))},methods:{_dispatchComplaint:function(){var t={state:this.state,remark:this.content,communityId:this.communityId,taskId:this.taskId,complaintId:this.complaintId,storeId:this.storeId,userId:this.userId,userName:this.userName};a.request({url:i.url.auditComplaint,header:a.getHeaders(),method:"POST",data:t,success:function(t){200==t.statusCode?uni.navigateBack({delta:1}):uni.showToast({icon:"none",title:t.data})},fail:function(t){wx.showToast({title:"服务器异常了",icon:"none",duration:2e3})}})},stateChange:function(t){if(this.stateIndex=t.target.value,0!=this.stateIndex){var e=this.stateCloums[this.stateIndex];this.state=e.id}else this.state=""}}};e.default=s},"8f33":function(t,e,n){"use strict";n.r(e);var a=n("3713"),i=n.n(a);for(var s in a)"default"!==s&&function(t){n.d(e,t,(function(){return a[t]}))}(s);e["default"]=i.a},"9e2f":function(t,e,n){"use strict";n.r(e);var a=n("fd85"),i=n("8f33");for(var s in i)"default"!==s&&function(t){n.d(e,t,(function(){return i[t]}))}(s);var o,u=n("f0c5"),r=Object(u["a"])(i["default"],a["b"],a["c"],!1,null,"60ae100a",null,!1,a["a"],o);e["default"]=r.exports},fd85:function(t,e,n){"use strict";var a,i=function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("v-uni-view",[n("v-uni-view",{staticClass:"cu-form-group margin-top"},[n("v-uni-view",{staticClass:"title"},[t._v("审核")]),n("v-uni-picker",{attrs:{bindchange:"PickerChange",value:t.stateIndex,range:t.stateCloums,"range-key":"name"},on:{change:function(e){arguments[0]=e=t.$handleEvent(e),t.stateChange.apply(void 0,arguments)}}},[n("v-uni-view",{staticClass:"picker"},[t._v(t._s(t.stateCloums[t.stateIndex].name))])],1)],1),n("v-uni-view",{staticClass:"cu-form-group margin-top"},[n("v-uni-textarea",{attrs:{placeholder:"请输入处理意见"},model:{value:t.content,callback:function(e){t.content=e},expression:"content"}})],1),n("v-uni-view",{staticClass:"flex flex-direction margin-top"},[n("v-uni-button",{staticClass:"cu-btn bg-green margin-tb-sm lg",on:{click:function(e){arguments[0]=e=t.$handleEvent(e),t._dispatchComplaint()}}},[t._v("提交")])],1)],1)},s=[];n.d(e,"b",(function(){return i})),n.d(e,"c",(function(){return s})),n.d(e,"a",(function(){return a}))}}]);

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

View File

@ -0,0 +1 @@
(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["pages-viewPersonFace-viewPersonFace"],{"0cfe":function(t,e,a){"use strict";a.r(e);var n=a("5382"),o=a("90cd");for(var i in o)"default"!==i&&function(t){a.d(e,t,(function(){return o[t]}))}(i);a("adc7");var c,f=a("f0c5"),r=Object(f["a"])(o["default"],n["b"],n["c"],!1,null,"6713f8f9",null,!1,n["a"],c);e["default"]=r.exports},"2b3f":function(t,e,a){var n=a("7069");"string"===typeof n&&(n=[[t.i,n,""]]),n.locals&&(t.exports=n.locals);var o=a("4f06").default;o("5e43ebe4",n,!0,{sourceMap:!1,shadowMode:!1})},"3ffa":function(t,e,a){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var n=a("7b36"),o=n.constant,i=n.factory,c={data:function(){return{face:null,btnValue:"采集人脸"}},components:{},props:{},onLoad:function(t){n.onLoad(t),this.face=""},onReady:function(){},onShow:function(){this.loadOwnerFace()},onHide:function(){},onUnload:function(){},onPullDownRefresh:function(){},onReachBottom:function(){},onShareAppMessage:function(){},methods:{collectFace:function(){var t=this;uni.chooseImage({count:1,sizeType:["original","compressed"],sourceType:["album","camera"],success:function(e){var a=i.base64.urlTobase64(e.tempFilePaths[0]);a.then((function(e){t.uploadOwnerPhoto(e)}),(function(t){console.log(t)}))}})},uploadOwnerPhoto:function(t){var e=this;n.getOwner((function(a){var i=a.memberId,c=a.communityId,f={memberId:i,communityId:c,photo:t};n.request({url:o.url.uploadOwnerPhoto,header:n.getHeaders(),method:"POST",data:f,success:function(t){console.log(t),200==t.statusCode?e.loadOwnerFace():wx.showToast({title:"人脸上传失败",icon:"none",duration:2e3})},fail:function(t){wx.showToast({title:"服务器异常了",icon:"none",duration:2e3}),e.uploadFlag=!1}})}))},loadOwnerFace:function(){var t=this;n.getOwner((function(e){var a=o.url.getOwnerPhotoPath+"?objId="+e.memberId+"&communityId="+e.communityId+"&fileTypeCd=10000&time="+new Date;t.face=a}))}}};e.default=c},5382:function(t,e,a){"use strict";var n,o=function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("v-uni-view",{staticClass:"vpf_context"},[a("v-uni-view",{staticClass:"vpf_row"},[a("v-uni-view",{staticClass:"vpf_row_black"}),a("v-uni-view",{staticClass:"vpf_row_title"},[a("v-uni-text",[t._v("人脸信息")])],1),a("v-uni-view",{staticClass:"vpf_row_black_01"}),a("v-uni-view",{staticClass:"vpf_image"},[a("v-uni-view",{staticClass:"padding"},[a("v-uni-image",{staticClass:"round cu-avatar",staticStyle:{width:"480upx",height:"480upx","background-color":"#eeeeee"},attrs:{src:t.face,mode:"scaleToFill"}})],1)],1),a("v-uni-view",{staticClass:"vpf_row_black_03"}),a("v-uni-view",{staticClass:"padding flex flex-direction"},[a("v-uni-button",{staticClass:"cu-btn bg-green lg",on:{click:function(e){arguments[0]=e=t.$handleEvent(e),t.collectFace()}}},[t._v(t._s(t.btnValue))])],1),a("v-uni-view",{staticClass:"vpf_row_black_04"})],1)],1)},i=[];a.d(e,"b",(function(){return o})),a.d(e,"c",(function(){return i})),a.d(e,"a",(function(){return n}))},7069:function(t,e,a){var n=a("24fb");e=n(!1),e.push([t.i,".vpf_context[data-v-6713f8f9]{padding:%?30?% %?20?%}.vpf_context .vpf_row[data-v-6713f8f9]{background-color:#fff;overflow:hidden}.vpf_row_black[data-v-6713f8f9]{height:%?40?%}.vpf_row_title[data-v-6713f8f9]{padding-left:%?40?%;font-size:%?31?%;font-weight:700}.vpf_row_col[data-v-6713f8f9]{text-align:center}.vpf_row_top[data-v-6713f8f9]{margin-top:%?60?%}.vpf_row_black_01[data-v-6713f8f9]{height:%?80?%}.vpf_row_black_02[data-v-6713f8f9]{height:%?100?%}.vpf_row_black_03[data-v-6713f8f9]{height:%?140?%}.vpf_row_black_04[data-v-6713f8f9]{height:%?40?%}.vpf_icon_text[data-v-6713f8f9]{font-size:%?100?%;color:#0a0}.vpf_row_col_t uni-text[data-v-6713f8f9]{font-size:%?30?%;color:#8a8a8a}.vpf_btn[data-v-6713f8f9]{width:80%;margin:0 auto}.vpf_image[data-v-6713f8f9]{text-align:center}",""]),t.exports=e},"90cd":function(t,e,a){"use strict";a.r(e);var n=a("3ffa"),o=a.n(n);for(var i in n)"default"!==i&&function(t){a.d(e,t,(function(){return n[t]}))}(i);e["default"]=o.a},adc7:function(t,e,a){"use strict";var n=a("2b3f"),o=a.n(n);o.a}}]);

View File

@ -1 +0,0 @@
(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["pages-viewPersonFace-viewPersonFace"],{"0cfe":function(t,a,e){"use strict";e.r(a);var n=e("165a"),o=e("90cd");for(var i in o)"default"!==i&&function(t){e.d(a,t,(function(){return o[t]}))}(i);e("d297");var c,r=e("f0c5"),u=Object(r["a"])(o["default"],n["b"],n["c"],!1,null,"212a7d58",null,!1,n["a"],c);a["default"]=u.exports},"165a":function(t,a,e){"use strict";var n,o=function(){var t=this,a=t.$createElement,e=t._self._c||a;return e("v-uni-view",{staticClass:"vpf_context"},[e("v-uni-view",{staticClass:"vpf_row"},[e("v-uni-view",{staticClass:"vpf_row_black"}),e("v-uni-view",{staticClass:"vpf_row_title"},[e("v-uni-text",[t._v("人脸信息")])],1),e("v-uni-view",{staticClass:"vpf_row_black_01"}),e("v-uni-view",{staticClass:"vpf_image"},[e("v-uni-view",{staticClass:"padding"},[e("v-uni-image",{staticClass:"round cu-avatar",staticStyle:{width:"480upx",height:"480upx","background-color":"#eeeeee"},attrs:{src:t.face,mode:"scaleToFill"}})],1)],1),e("v-uni-view",{staticClass:"vpf_row_black_03"}),e("v-uni-view",{staticClass:"padding flex flex-direction"},[e("v-uni-button",{staticClass:"cu-btn bg-green lg",on:{click:function(a){arguments[0]=a=t.$handleEvent(a),t.collectFace()}}},[t._v(t._s(t.btnValue))])],1),e("v-uni-view",{staticClass:"vpf_row_black_04"})],1)],1)},i=[];e.d(a,"b",(function(){return o})),e.d(a,"c",(function(){return i})),e.d(a,"a",(function(){return n}))},"3ffa":function(t,a,e){"use strict";Object.defineProperty(a,"__esModule",{value:!0}),a.default=void 0;var n=e("7b36"),o=n.constant,i=n.factory,c={data:function(){return{face:null,btnValue:"采集人脸"}},components:{},props:{},onLoad:function(t){n.onLoad(t),this.face=""},onReady:function(){},onShow:function(){this.loadOwnerFace()},onHide:function(){},onUnload:function(){},onPullDownRefresh:function(){},onReachBottom:function(){},onShareAppMessage:function(){},methods:{collectFace:function(){var t=this;uni.chooseImage({count:1,sizeType:["original","compressed"],sourceType:["album","camera"],success:function(a){var e=i.base64.urlTobase64(a.tempFilePaths);t.uploadOwnerPhoto(e)}})},uploadOwnerPhoto:function(t){var a=this;n.getOwner((function(e){var i=e.memberId,c=e.communityId,r={memberId:i,communityId:c,photo:t};n.request({url:o.url.uploadOwnerPhoto,header:n.getHeaders(),method:"POST",data:r,success:function(t){console.log(t),200==t.statusCode?a.loadOwnerFace():wx.showToast({title:"人脸上传失败",icon:"none",duration:2e3})},fail:function(t){wx.showToast({title:"服务器异常了",icon:"none",duration:2e3}),a.uploadFlag=!1}})}))},loadOwnerFace:function(){var t=this;n.getOwner((function(a){var e=o.url.getOwnerPhotoPath+"?objId="+a.memberId+"&communityId="+a.communityId+"&fileTypeCd=10000&time="+new Date;t.face=e}))}}};a.default=c},"6e5d":function(t,a,e){var n=e("24fb");a=n(!1),a.push([t.i,".vpf_context[data-v-212a7d58]{padding:%?30?% %?20?%}.vpf_context .vpf_row[data-v-212a7d58]{background-color:#fff;overflow:hidden}.vpf_row_black[data-v-212a7d58]{height:%?40?%}.vpf_row_title[data-v-212a7d58]{padding-left:%?40?%;font-size:%?31?%;font-weight:700}.vpf_row_col[data-v-212a7d58]{text-align:center}.vpf_row_top[data-v-212a7d58]{margin-top:%?60?%}.vpf_row_black_01[data-v-212a7d58]{height:%?80?%}.vpf_row_black_02[data-v-212a7d58]{height:%?100?%}.vpf_row_black_03[data-v-212a7d58]{height:%?140?%}.vpf_row_black_04[data-v-212a7d58]{height:%?40?%}.vpf_icon_text[data-v-212a7d58]{font-size:%?100?%;color:#0a0}.vpf_row_col_t uni-text[data-v-212a7d58]{font-size:%?30?%;color:#8a8a8a}.vpf_btn[data-v-212a7d58]{width:80%;margin:0 auto}.vpf_image[data-v-212a7d58]{text-align:center}",""]),t.exports=a},7171:function(t,a,e){var n=e("6e5d");"string"===typeof n&&(n=[[t.i,n,""]]),n.locals&&(t.exports=n.locals);var o=e("4f06").default;o("f94a7f90",n,!0,{sourceMap:!1,shadowMode:!1})},"90cd":function(t,a,e){"use strict";e.r(a);var n=e("3ffa"),o=e.n(n);for(var i in n)"default"!==i&&function(t){e.d(a,t,(function(){return n[t]}))}(i);a["default"]=o.a},d297:function(t,a,e){"use strict";var n=e("7171"),o=e.n(n);o.a}}]);

File diff suppressed because one or more lines are too long

View File

@ -1618,7 +1618,7 @@ module.exports = AppConstant;
var constant = __webpack_require__(/*! ../constant/index.js */ 9);
// 服务器域名
var baseUrl = 'https://app.demo.winqi.cn/';
var baseUrl = '/';
//const baseUrl = 'http://hc.demo.winqi.cn:8012/';
//const baseUrl = 'https://app.demo.winqi.cn/';