pnkx-admin-mongo/pnkx-app-apk/unpackage/cache/wgt/H5A8E5E14/static/js/chunk-59597efc.34d0c3a5.js

1 line
4.2 KiB
JavaScript
Raw Normal View History

2024-01-13 13:29:20 +08:00
(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-59597efc"],{5099:function(t,e,r){},"72c9":function(t,e,r){"use strict";r.d(e,"d",(function(){return a})),r.d(e,"b",(function(){return n})),r.d(e,"f",(function(){return o})),r.d(e,"a",(function(){return c})),r.d(e,"e",(function(){return i})),r.d(e,"c",(function(){return u}));var s=r("b775");function a(t){return Object(s["a"])({url:"/px/card/listRecord",method:"get",params:t})}function n(){return Object(s["a"])({url:"/px/card/getCardByUserId",method:"get"})}function o(t){return Object(s["a"])({url:"/px/card/useCard",method:"post",data:t})}function c(t){return Object(s["a"])({url:"/px/card/confirmCard",method:"post",data:t})}function i(t){return Object(s["a"])({url:"/px/card/scoreCard",method:"post",data:t})}function u(){return Object(s["a"])({url:"/px/card/getToDoCard",method:"get"})}},d304:function(t,e,r){"use strict";r("5099")},e246:function(t,e,r){"use strict";r.r(e);var s=function(){var t=this,e=t.$createElement,r=t._self._c||e;return r("div",{staticClass:"history"},[r("van-nav-bar",{attrs:{fixed:"","left-arrow":"","left-text":"返回",title:"使用记录"},on:{"click-left":function(e){return t.$router.go(-1)}}}),r("div",{staticClass:"history-list"},t._l(t.historyList,(function(e){return r("van-row",{staticClass:"history-item"},[r("van-col",{staticClass:"card-name",attrs:{span:2}},[t._v(t._s(e.cardName))]),r("van-col",{staticClass:"card-content",attrs:{span:15}},[r("van-row",{staticClass:"card-text"},[t._v("使用说明:"+t._s(e.instructions))]),r("van-row",{staticClass:"card-text"},[t._v("使用时间:"+t._s(e.createTime))]),r("van-row",{staticClass:"card-text"},[t._v("确认状态:"+t._s(e.confirm?"已确认":"未确认"))]),r("van-row",{directives:[{name:"show",rawName:"v-show",value:e.confirm,expression:"item.confirm"}],staticClass:"card-text"},[t._v("确认时间:"+t._s(e.confirmTime))])],1),r("van-col",{staticClass:"card-score",attrs:{span:7}},[r("van-rate",{attrs:{readonly:"",size:"15",icon:"like","void-icon":"like-o"},model:{value:e.score,callback:function(r){t.$set(e,"score",r)},expression:"item.score"}}),r("van-row",{staticClass:"card-icon"},[r("svg-icon",{staticClass:"business-icon",attrs:{"icon-class":"秦可爱"===e.userName?"female":"male"}})],1),r("van-row",{directives:[{name:"show",rawName:"v-show",value:e.userId!==t.$store.getters.id&&!e.confirm,expression:"item.userId !== $store.getters.id && !item.confirm"}],staticClass:"go-score",on:{click:function(r){return t.ensureCard(e)}}},[t._v("确认 ")]),r("van-row",{directives:[{name:"show",rawName:"v-show",value:e.userId===t.$store.getters.id&&e.confirm&&0===e.score,expression:"item.userId === $store.getters.id && item.confirm && item.score === 0"}],staticClass:"go-score",on:{click:function(r){return t.openScore(e)}}},[t._v("去评分 ")])],1)],1)})),1),r("van-dialog",{attrs:{title:"评分","show-cancel-button":""},on:{close:function(e){t.rate.score=0},confirm:t.setScore},model:{value:t.showRate,callback:function(e){t.showRate=e},expression:"showRate"}},[r("van-rate",{staticClass:"set-score",attrs:{icon:"like","void-icon":"like-o"},model:{value:t.rate.score,callback:function(e){t.$set(t.rate,"score",e)},expression:"rate.score"}}),r("van-field",{attrs:{placeholder:"请输入备注"},model:{value:t.rate.remark,callback:function(e){t.$set(t.rate,"remark",e)},expression:"rate.remark"}})],1)],1)},a=[],n=r("72c9"),o={name:"history",data:function(){return{historyList:[],showRate:!1,rate:{score:0,remark:""},cardInfo:{}}},mounted:function(){this.getHistoryList()},methods:{getHistoryList:function(){var t=this;Object(n["d"])().then((function(e){t.historyList=e.rows}))},openScore:function(t){this.cardInfo=t,this.showRate=!0},setScore:function(){var t=this;this.cardInfo.score=this.rate.score,this.cardInfo.remark=this.rate.remark,Object(n["e"])(this.cardInfo).then((function(e){t.$toast("评分成功"),t.getHistoryList()}))},ensureCard:function(t){var e=this;this.$dialog.confirm({title:"提示",message:"接受卡券要求确认?"}).then((function(){Object(n["a"])(t).then((function(t){e.$toast("<EFBFBD>