pages-order-appraise.0f840fdf.js 11 KB

1
  1. (window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["pages-order-appraise"],{"0d511":function(i,t,e){"use strict";e("7a82"),Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0,e("c975");var a={name:"bar-title",props:{bgColor:{type:String,default:""},isBack:{type:Boolean,default:!0},backText:{type:String,default:""},fixed:{type:Boolean,default:!0},shadow:{type:Boolean,default:!1},title:{type:String,default:""}},data:function(){return{isWechatBrowser:!1}},methods:{BackPage:function(){uni.navigateBack()},leftTap:function(){this.$emit("leftTap")},contentTap:function(){this.$emit("contentTap")},rightTap:function(){this.$emit("rightTap")}},created:function(){uni.setNavigationBarTitle({title:this.title}),this.isWechatBrowser=navigator.userAgent.toLocaleLowerCase().indexOf("micromessenger")>0},watch:{title:function(i){uni.setNavigationBarTitle({title:i})}}};t.default=a},"29cc":function(i,t,e){"use strict";var a=e("a13d"),o=e.n(a);o.a},"56ba":function(i,t,e){"use strict";e("7a82");var a=e("ee27").default;Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0,e("99af"),e("a434");var o=a(e("713c")),n=a(e("b27f")),s={components:{barTitle:o.default},data:function(){return{id:"",info:{},bg_img:"/static/images/home/goods/1.png",imgList:[],content:"",goodsIndex:0}},computed:{curGoods:function(){return this.info.detail?this.info.detail&&this.info.detail.length>1?this.info.detail[this.goodsIndex]:this.info.detail[0]:{}}},onLoad:function(i){this.id=i.id,this.loadInfo()},onReady:function(){n.default.setBarColor(!0),uni.pageScrollTo({scrollTop:0,duration:0})},methods:{loadInfo:function(){var i=this;this.reqByuser({url:"?l=resource.getOrderView",data:{type:3,id:this.id},success:function(t){1==t.data.status?i.info=t.data.data.info:uni.showToast({icon:"error",title:t.data.msg})}})},submit:function(){this.reqByuser({url:"?l=review.up",data:{type:3,type_id:this.curGoods.id,content:this.content},success:function(i){1==i.data.status?(uni.showToast({icon:"success",title:"提交成功"}),setTimeout((function(){uni.navigateBack()}),1e3)):uni.showToast({icon:"error",title:i.data.msg})}})},ChooseImage:function(){var i=this;uni.chooseImage({count:4,sizeType:["original","compressed"],sourceType:["album"],success:function(t){0!=i.imgList.length?i.imgList=i.imgList.concat(t.tempFilePaths):i.imgList=t.tempFilePaths}})},ViewImage:function(i){uni.previewImage({urls:this.imgList,current:i.currentTarget.dataset.url})},DelImg:function(i){var t=this;uni.showModal({title:"召唤师",content:"确定要删除这段回忆吗?",cancelText:"再看看",confirmText:"再见",success:function(e){e.confirm&&t.imgList.splice(i.currentTarget.dataset.index,1)}})}}};t.default=s},"5a30":function(i,t,e){var a=e("7ed5");a.__esModule&&(a=a.default),"string"===typeof a&&(a=[[i.i,a,""]]),a.locals&&(i.exports=a.locals);var o=e("4f06").default;o("e9abf2d4",a,!0,{sourceMap:!1,shadowMode:!1})},6206:function(i,t,e){"use strict";e.r(t);var a=e("56ba"),o=e.n(a);for(var n in a)["default"].indexOf(n)<0&&function(i){e.d(t,i,(function(){return a[i]}))}(n);t["default"]=o.a},6675:function(i,t,e){"use strict";var a=e("5a30"),o=e.n(a);o.a},"713c":function(i,t,e){"use strict";e.r(t);var a=e("e88e"),o=e("df75a");for(var n in o)["default"].indexOf(n)<0&&function(i){e.d(t,i,(function(){return o[i]}))}(n);e("6675");var s=e("f0c5"),r=Object(s["a"])(o["default"],a["b"],a["c"],!1,null,"1b7fdbfe",null,!1,a["a"],void 0);t["default"]=r.exports},"7ed5":function(i,t,e){var a=e("24fb");t=a(!1),t.push([i.i,".zaiui-bar-title-box .cu-bar[data-v-1b7fdbfe]{padding-top:0;min-height:calc(0px + %?101?%)}.zaiui-bar-title-box .cu-bar .content[data-v-1b7fdbfe]{top:0}.zaiui-bar-title-box .cu-bar .content .cu-tag[data-v-1b7fdbfe]{position:relative;top:%?-2.72?%;padding:0 %?5.45?%}.zaiui-bar-title-box .cu-bar .content .cu-tag uni-text[data-v-1b7fdbfe]{position:relative;top:%?2?%}.zaiui-bar-title-box .cu-bar.fixed.no-shadow[data-v-1b7fdbfe]{box-shadow:inherit}.zaiui-bar-title-box .cu-bar.bg-white[data-v-1b7fdbfe]{color:#333}.zaiui-bar-title-box .zaiui-seat-height[data-v-1b7fdbfe]{width:100%;height:calc(0px + %?101?%)}",""]),i.exports=t},a13d:function(i,t,e){var a=e("dc6f");a.__esModule&&(a=a.default),"string"===typeof a&&(a=[[i.i,a,""]]),a.locals&&(i.exports=a.locals);var o=e("4f06").default;o("d3d539e0",a,!0,{sourceMap:!1,shadowMode:!1})},b27f:function(i,t,e){"use strict";e("7a82"),Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0,e("a9e3"),e("d401"),e("d3b7"),e("25f0"),e("e25e"),e("c975"),e("ac1f"),e("5319");var a={strLeng:function(i){if(i){for(var t=i.length,e=0,a=0;a<t;a++)i.charCodeAt(a)>128?e+=2:e+=1;return e}return 0},getPageNum:function(i,t){var e=Number(i)/Number(t);if(e%1!==0){var a=e.toString(),o=parseInt(a.substring(0,a.indexOf("."))),n=a.replace(/\d+\.(\d*)/,"$1");n>0&&(e=o+1)}return e},setBarColor:function(){var i=arguments.length>0&&void 0!==arguments[0]&&arguments[0];i?uni.setNavigationBarColor({frontColor:"#000000",backgroundColor:"#FAFAFA"}):uni.setNavigationBarColor({frontColor:"#ffffff",backgroundColor:"#FAFAFA"})},zaiui_log:function(i){}},o=a;t.default=o},dc6f:function(i,t,e){var a=e("24fb");t=a(!1),t.push([i.i,".zaiui-goods-info-view[data-v-6a4e6bee]{position:relative}.zaiui-goods-info-view .cu-avatar[data-v-6a4e6bee]{position:absolute}.zaiui-goods-info-view .goods-info-view[data-v-6a4e6bee]{position:relative;padding-left:%?112.72?%;height:%?94.54?%;line-height:1.7}.zaiui-score-view[data-v-6a4e6bee]{position:relative;padding:%?25.45?% %?27.27?% 0}.zaiui-score-view .item-score[data-v-6a4e6bee]{position:relative;height:%?118.18?%}.zaiui-score-view .item-score .text-view[data-v-6a4e6bee]{position:relative;padding-right:%?290.9?%;top:%?18.18?%}.zaiui-score-view .item-score .score-img-view[data-v-6a4e6bee]{position:absolute;display:flex;right:0;top:0}.zaiui-score-view .item-score .score-img-view .img-view[data-v-6a4e6bee]{position:relative;text-align:center;width:%?72.72?%}.zaiui-score-view .item-score .score-img-view .img-view .title[data-v-6a4e6bee]{margin-top:%?5.45?%;font-size:%?20?%}.zaiui-score-view .item-score .score-img-view .img-view + .img-view[data-v-6a4e6bee]{margin-left:%?18.18?%}.zaiui-img-view[data-v-6a4e6bee]{position:relative;padding:0 %?29.09?%}.zaiui-img-view .img-grid-view[data-v-6a4e6bee]{position:relative;padding-right:%?72.72?%;padding-bottom:%?18.18?%}.zaiui-img-view .img-grid-view .grid.col-5 .bg-img[data-v-6a4e6bee]{position:relative;border-radius:%?3.63?%;margin-bottom:%?27.27?%;margin-right:%?27.27?%;height:%?72.72?%;width:%?72.72?%}.zaiui-img-view .img-grid-view .grid.col-5 .bg-img .image[data-v-6a4e6bee]{border-radius:%?3.63?%;height:%?72.72?%;width:%?72.72?%}.zaiui-img-view .img-grid-view .grid.col-5 .bg-img .cu-tag[data-v-6a4e6bee]{position:absolute;border-radius:%?3.63?%;padding:0 %?1.81?%;height:auto;right:0;top:0}.zaiui-img-view .img-grid-view .grid.col-5 .bg-img .cu-tag uni-text[data-v-6a4e6bee]{position:relative;top:%?1.81?%}.zaiui-img-view .img-grid-view .grid.col-5 .add-view[data-v-6a4e6bee]{border:%?2?% solid #efeeee;margin-bottom:%?27.27?%;border-radius:%?3.63?%;line-height:%?72.72?%;text-align:center;height:%?72.72?%;width:%?72.72?%}.zaiui-img-view .img-grid-view .grid.col-5 .add-view uni-text[data-v-6a4e6bee]{position:relative;font-size:%?54.54?%;color:#e4e3e3}.zaiui-btn-view[data-v-6a4e6bee]{position:fixed;width:100%;bottom:0}.zaiui-btn-view .flex[data-v-6a4e6bee]{padding:%?18.18?%}",""]),i.exports=t},df75a:function(i,t,e){"use strict";e.r(t);var a=e("0d511"),o=e.n(a);for(var n in a)["default"].indexOf(n)<0&&function(i){e.d(t,i,(function(){return a[i]}))}(n);t["default"]=o.a},e88e:function(i,t,e){"use strict";e.d(t,"b",(function(){return a})),e.d(t,"c",(function(){return o})),e.d(t,"a",(function(){}));var a=function(){var i=this,t=i.$createElement,e=i._self._c||t;return e("v-uni-view",{staticClass:"zaiui-bar-title-box",style:i.isWechatBrowser?"display: none;":""},[e("v-uni-view",{staticClass:"cu-bar",class:[i.fixed?"fixed":"",i.shadow?"":"no-shadow",i.bgColor]},[i.isBack?e("v-uni-view",{staticClass:"action",on:{click:function(t){arguments[0]=t=i.$handleEvent(t),i.BackPage.apply(void 0,arguments)}}},[e("v-uni-text",{staticClass:"cuIcon-back"}),e("v-uni-text",[i._v(i._s(i.backText))])],1):i._e(),i.isBack?i._e():e("v-uni-view",{staticClass:"action",on:{click:function(t){arguments[0]=t=i.$handleEvent(t),i.leftTap.apply(void 0,arguments)}}},[i._t("left")],2),e("v-uni-view",{staticClass:"content",on:{click:function(t){arguments[0]=t=i.$handleEvent(t),i.contentTap.apply(void 0,arguments)}}},[i._t("content")],2),e("v-uni-view",{staticClass:"action",on:{click:function(t){arguments[0]=t=i.$handleEvent(t),i.rightTap.apply(void 0,arguments)}}},[i._t("right")],2)],1),i.fixed?e("v-uni-view",{staticClass:"zaiui-seat-height"}):i._e()],1)},o=[]},fabd:function(i,t,e){"use strict";e.r(t);var a=e("feea"),o=e("6206");for(var n in o)["default"].indexOf(n)<0&&function(i){e.d(t,i,(function(){return o[i]}))}(n);e("29cc");var s=e("f0c5"),r=Object(s["a"])(o["default"],a["b"],a["c"],!1,null,"6a4e6bee",null,!1,a["a"],void 0);t["default"]=r.exports},feea:function(i,t,e){"use strict";e.d(t,"b",(function(){return a})),e.d(t,"c",(function(){return o})),e.d(t,"a",(function(){}));var a=function(){var i=this,t=i.$createElement,e=i._self._c||t;return e("v-uni-view",[e("bar-title",{attrs:{bgColor:"bg-white",isBack:!0}},[e("template",{attrs:{slot:"content"},slot:"content"},[i._v("交易评价")])],2),i.info.detail&&i.info.detail.length>1?e("v-uni-view",{staticClass:"cu-form-group margin-top"},[e("v-uni-view",{staticClass:"title"},[i._v("选择商品")]),e("v-uni-picker",{attrs:{value:i.goodsIndex,range:i.info.detail,"range-key":"name"},on:{change:function(t){arguments[0]=t=i.$handleEvent(t),i.expressPickerChange.apply(void 0,arguments)}}},[e("v-uni-view",{staticClass:"picker"},[i._v(i._s(i.info.detail[i.goodsIndex]&&i.info.detail[i.goodsIndex].name))])],1)],1):i._e(),e("v-uni-view",{staticClass:"bg-white padding-sm zaiui-goods-info-view margin-bottom"},[e("v-uni-view",{staticClass:"cu-avatar round lg",style:[{backgroundImage:"url("+i.curGoods.pic+")"}]}),e("v-uni-view",{staticClass:"goods-info-view"},[e("v-uni-view",{staticClass:"text-cut text-black text-lg"},[i._v(i._s(i.curGoods.name))]),e("v-uni-view",{staticClass:"text-cut text-gray"},[i._v(i._s(i.curGoods.sku_name))])],1)],1),e("v-uni-view",{staticClass:"bg-white zaiui-content-view"},[e("v-uni-view",{staticClass:"cu-form-group solid-top"},[e("v-uni-textarea",{attrs:{placeholder:"随手评价,造福你我他"},model:{value:i.content,callback:function(t){i.content=t},expression:"content"}})],1)],1),e("v-uni-view",{staticClass:"bg-white zaiui-btn-view zaiui-foot-padding-bottom"},[e("v-uni-view",{staticClass:"flex flex-direction"},[e("v-uni-button",{staticClass:"cu-btn bg-red",on:{click:function(t){arguments[0]=t=i.$handleEvent(t),i.submit.apply(void 0,arguments)}}},[i._v("提交评价")])],1)],1)],1)},o=[]}}]);