1 |
- (window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["pages-shop-eval-shop-eval"],{"0c70":function(t,e,n){"use strict";var a=n("c1d3"),o=n.n(a);o.a},5569:function(t,e,n){"use strict";n.r(e);var a=n("a14c"),o=n.n(a);for(var i in a)"default"!==i&&function(t){n.d(e,t,(function(){return a[t]}))}(i);e["default"]=o.a},8325:function(t,e,n){"use strict";var a=n("4ea4");Object.defineProperty(e,"__esModule",{value:!0}),e.getAgentUser=e.getShareStore=e.replaceStore=e.diffStore=e.getGoodsList=e.editInfo=e.shopInfo=e.commentShop=e.getInfo=void 0;var o=a(n("57f7")),i=function(t){return o.default.get("/store/get_store_index",t)};e.getInfo=i;var r=function(t){return o.default.post("/store/add_store_comment",t)};e.commentShop=r;var s=function(t){return o.default.get("/store/get_store_info",t)};e.shopInfo=s;var c=function(t){return o.default.get("/store/edit_store_info",t)};e.editInfo=c;var d=function(t){return o.default.get("/store_goods/get_goods_list",t)};e.getGoodsList=d;var f=function(t){return o.default.get("/store/get_user_store_diff",t)};e.diffStore=f;var u=function(t){return o.default.get("/store/replace_store",t)};e.replaceStore=u;var l=function(t){return o.default.get("/store/get_store_index",t)};e.getShareStore=l;var v=function(t){return o.default.get("/store/get_agent_auth",t)};e.getAgentUser=v},8597:function(t,e,n){"use strict";var a;n.d(e,"b",(function(){return o})),n.d(e,"c",(function(){return i})),n.d(e,"a",(function(){return a}));var o=function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("v-uni-view",{staticClass:"shop_eval"},[a("v-uni-image",{staticClass:"bg",attrs:{src:n("dd28")}}),a("v-uni-view",{staticClass:"eval_con"},[a("v-uni-view",{staticClass:"star"},[a("v-uni-view",{staticClass:"title"},[t._v("评价店铺")]),a("v-uni-text",[t._v("宝贝收到了,赶快评价一下店铺吧!")]),a("v-uni-view",{staticClass:"star_count flexC"},t._l(t.starList,(function(e,n){return a("v-uni-view",{key:n,on:{click:function(e){arguments[0]=e=t.$handleEvent(e),t.clickStars(n)}}},[a("v-uni-image",{attrs:{src:t.star>n?t.startA:t.startB}})],1)})),1),a("v-uni-view",{staticClass:"eval_option"},t._l(t.evalList,(function(e,n){return a("v-uni-view",{key:e.id,staticClass:"option_con",class:e.isChecked?"option_active":"",on:{click:function(a){arguments[0]=a=t.$handleEvent(a),t.checkOption(n,e.text)}}},[t._v(t._s(e.text))])})),1)],1),a("v-uni-textarea",{attrs:{placeholder:"您对这家店铺还有什么建议吗?","placeholder-class":"place"},model:{value:t.content,callback:function(e){t.content=e},expression:"content"}}),a("v-uni-view",{staticClass:"sub_btn",on:{click:function(e){arguments[0]=e=t.$handleEvent(e),t.subCommit.apply(void 0,arguments)}}},[t._v("提交")])],1)],1)},i=[]},"9fa3":function(t,e,n){"use strict";n.r(e);var a=n("8597"),o=n("5569");for(var i in o)"default"!==i&&function(t){n.d(e,t,(function(){return o[t]}))}(i);n("0c70");var r,s=n("f0c5"),c=Object(s["a"])(o["default"],a["b"],a["c"],!1,null,"69fdbf6e",null,!1,a["a"],r);e["default"]=c.exports},a14c:function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var a=n("8325"),o={data:function(){return{content:"",startB:"../../static/imgs/index/star.png",startA:"../../static/imgs/index/star_active.png",starList:[0,1,2,3,4],star:"",evalList:[{id:1,text:"服务热情",isChecked:!1},{id:2,text:"质量不错",isChecked:!1},{id:3,text:"包装独特",isChecked:!1},{id:4,text:"穿着舒适",isChecked:!1}]}},onLoad:function(t){this.order_no=t.order_no},methods:{checkOption:function(t,e){this.evalList[t].isChecked=!0,this.evalList[t].isChecked&&(this.content=this.content?this.content+","+e:e)},clickStars:function(t){this.star=t+1},subCommit:function(){if(!this.star)return uni.showModal({content:"评价星级不能为空",showCancel:!1}),!1;(0,a.commentShop)({star:this.star,content:this.content,order_no:this.order_no}).then((function(t){200==t.code?uni.showModal({content:"评价成功!",showCancel:!1,success:function(t){uni.redirectTo({url:"../evaluate/evaluate"})}}):uni.showModal({content:t.msg||"评论失败",showCancel:!1})}))}}};e.default=o},ae07:function(t,e,n){var a=n("24fb");e=a(!1),e.push([t.i,'@charset "UTF-8";\r\n/**\r\n * 这里是uni-app内置的常用样式变量\r\n *\r\n * uni-app 官方扩展插件及插件市场(https://ext.dcloud.net.cn)上很多三方插件均使用了这些样式变量\r\n * 如果你是插件开发者,建议你使用scss预处理,并在插件代码中直接使用这些变量(无需 import 这个文件),方便用户通过搭积木的方式开发整体风格一致的App\r\n *\r\n */\r\n/**\r\n * 如果你是App开发者(插件使用者),你可以通过修改这些变量来定制自己的插件主题,实现自定义主题功能\r\n *\r\n * 如果你的项目同样使用了scss预处理,你也可以直接在你的 scss 代码中使用如下变量,同时无需 import 这个文件\r\n */\r\n/* 颜色变量 */\r\n/* 行为相关颜色 */\r\n/* 文字基本颜色 */\r\n/* 背景颜色 */\r\n/* 边框颜色 */\r\n/* 尺寸变量 */\r\n/* 文字尺寸 */\r\n/* 图片尺寸 */\r\n/* Border Radius */\r\n/* 水平间距 */\r\n/* 垂直间距 */\r\n/* 透明度 */\r\n/* 文章场景相关 */\r\n/*主题色及按钮渐变背景*/\r\n/*字体大小*/.shop_eval[data-v-69fdbf6e]{width:100%;min-height:100%;background:#fff;padding-bottom:%?100?%}.bg[data-v-69fdbf6e]{width:%?750?%;height:%?346?%}.eval_con[data-v-69fdbf6e]{width:%?690?%;margin:0 auto}.eval_con .star[data-v-69fdbf6e]{text-align:center}.eval_con .star .title[data-v-69fdbf6e]{color:#fb231f;padding:%?30?% 0;font-size:%?52?%;font-weight:700}.eval_con .star uni-text[data-v-69fdbf6e]{font-size:%?28?%}.eval_con .star .star_count[data-v-69fdbf6e]{margin:%?48?% 0}.eval_con .star .star_count uni-image[data-v-69fdbf6e]{width:%?72?%;height:%?72?%;margin-right:%?15?%}.eval_con .star .eval_option[data-v-69fdbf6e]{display:flex;justify-content:space-around;flex-wrap:wrap;align-items:center;width:%?690?%;matgin:0 auto}.eval_con .star .eval_option .option_con[data-v-69fdbf6e]{border:%?2?% solid #ccc;width:23%;border-radius:%?28?%;height:%?52?%;line-height:%?52?%;padding:0 %?10?%;font-size:%?28?%}.eval_con .star .eval_option .option_active[data-v-69fdbf6e]{color:#fb231f;border:%?2?% solid #fb231f}.eval_con uni-textarea[data-v-69fdbf6e]{width:100%;background:#f9f9fb;padding:%?30?%;box-sizing:border-box;border-radius:%?24?%;margin-top:%?40?%}.eval_con .place[data-v-69fdbf6e]{font-size:%?28?%;color:#999}.eval_con .sub_btn[data-v-69fdbf6e]{width:%?530?%;margin:%?60?% auto 0;text-align:center;height:%?88?%;line-height:%?88?%;font-size:%?32?%;color:#fff;background:linear-gradient(93deg,#ff232c,#ff571b);border-radius:%?44?%}',""]),t.exports=e},c1d3:function(t,e,n){var a=n("ae07");"string"===typeof a&&(a=[[t.i,a,""]]),a.locals&&(t.exports=a.locals);var o=n("4f06").default;o("39bcf028",a,!0,{sourceMap:!1,shadowMode:!1})},dd28:function(t,e,n){t.exports=n.p+"static/img/eval.5be335b7.png"}}]);
|