chunk-7c0f1c8c.57fd884b.js 10 KB

12
  1. (window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-7c0f1c8c"],{"0a9a":function(e,t,a){"use strict";var s=a("8d7c"),n=a.n(s);n.a},"581e":function(e,t,a){"use strict";var s=a("aae8"),n=a.n(s);n.a},"62d0":function(e,t,a){},"8a0b":function(e,t,a){},"8d7c":function(e,t,a){},9082:function(e,t,a){"use strict";a.r(t);var s,n=function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("div",[a("nav-bar",{attrs:{path:"index",title:"礼品卡"}}),2===e.myPresent.status||3===e.myPresent.status?a("gift-card",{attrs:{"present-img":e.recievedPresent.imgUrl,"present-name":e.recievedPresent.name,"present-desc":e.recievedPresent.desc_long,owner:1,placeId:e.recievedPresent.placeId,gender:e.recievedPresent.gender,status:e.recievedPresent.status,wechat:e.recievedPresent.wechat}}):e._e(),0!==e.recievedPresent.comment.length?a("div",{staticClass:"letter"},[e._m(0),a("p",[e._v(e._s(e.recievedPresent.comment))])]):e._e(),a("gift-card",{attrs:{"present-img":e.myPresent.imgUrl,"present-name":e.myPresent.name,"present-desc":e.myPresent.desc_long,owner:0,placeId:e.myPresent.placeId,gender:e.myPresent.gender,status:e.myPresent.status,wechat:e.myPresent.wechat}}),0!==e.myPresent.comment.length?a("div",{staticClass:"letter"},[e._m(1),a("p",[e._v(e._s(e.myPresent.comment))])]):e._e(),4===e.myPresent.status?a("div",{staticClass:"letter"},[e._m(2),0!==e.reason.length?a("p",[e._v("原因:"+e._s(e.reason))]):e._e()]):e._e(),a("div",{staticStyle:{height:"100px",width:"100%"}}),a("img",{staticStyle:{position:"fixed",bottom:"100px","max-width":"100%","z-index":"-1"},attrs:{src:"http://pjczv6ygf.bkt.clouddn.com/present_card_bottom.png"}}),2===e.myPresent.status?a("div",{staticStyle:{position:"fixed",bottom:"0",width:"100%","background-color":"#fff6e3"}},[a("van-button",{staticStyle:{"background-color":"#fd6740","border-color":"#fd6740",width:"85%"},attrs:{type:"primary",size:"large"},on:{click:e.toWriteComment}},[e._v("确认交换成功")]),a("p",[e._v("交换成功可以开始接收对方发来的感谢信哦")])],1):e._e(),0===e.myPresent.status||1===e.myPresent.status||4===e.myPresent.status?a("div",{staticStyle:{position:"fixed",bottom:"0",width:"100%"}},[4!==e.myPresent.status?a("van-button",{staticStyle:{width:"85%"},attrs:{type:"default",size:"large"},on:{click:e.editPresent}},[e._v("修改礼物")]):e._e(),a("van-button",{staticStyle:{width:"85%",margin:"10px 0 10px"},attrs:{type:"warning",size:"large"},on:{click:e.deletePresent}},[e._v("删除礼物")])],1):e._e()],1)},r=[function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("p",{staticStyle:{"font-size":"110%"}},[a("strong",[e._v("我送出的感谢信")])])},function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("p",{staticStyle:{"font-size":"110%"}},[a("strong",[e._v("我收到的感谢信")])])},function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("p",[a("strong",[e._v("审核未通过,请前往首页重新发布礼物!")])])}],o=(a("e17f"),a("2241")),i=(a("e7e5"),a("d399")),c=a("ade3"),l=(a("7f7f"),a("66b9"),a("b650")),d=(a("cadf"),a("551c"),a("097d"),function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("div",{staticClass:"gift_card"},[a("van-row",{staticStyle:{"border-bottom":"solid 1px #e4e4e4",padding:"5px"}},[a("van-col",{attrs:{span:"8"}},[a("img",{staticStyle:{"max-width":"100%"},attrs:{src:e.presentImg}})]),a("van-col",{attrs:{span:"16"}},[a("van-row",{attrs:{type:"flex",justify:"space-between"}},[a("van-col",{staticClass:"c"},[a("p",[a("strong",[e._v(e._s(e.owner?"对方":"我")+"的礼物")])])]),a("van-col",{staticClass:"c"},[a("p",[e._v(e._s(e.place[e.placeId]))])])],1),a("van-row",{attrs:{type:"flex",justify:"space-between"}},[a("van-col",{staticClass:"c"},[a("p",[e._v("匹配性别")])]),a("van-col",{staticClass:"c"},[a("p",[e._v(e._s(e.genders[e.gender]))])])],1),a("van-row",{attrs:{type:"flex",justify:"space-between"}},[a("van-col",{staticClass:"c"},[a("p",[e._v("礼物状态")])]),a("van-col",{staticClass:"c"},[a("p",{style:{color:e.statusColor[e.status]}},[e._v(e._s(e.statusString[e.status]))])])],1),a("van-row",{attrs:{type:"flex",justify:"space-between"}},[a("van-col",{staticClass:"c"},[a("p",[e._v("微信")])]),a("van-col",{staticClass:"c"},[a("p",{style:e.owner?"color: #778899":"color: #191970; float: left",on:{click:e.toMe}},[e._v("\n "+e._s(e.wechat))]),e.owner?a("van-button",{directives:[{name:"clipboard",rawName:"v-clipboard:copy",value:e.wechat,expression:"wechat",arg:"copy"},{name:"clipboard",rawName:"v-clipboard:success",value:e.onCopy,expression:"onCopy",arg:"success"},{name:"clipboard",rawName:"v-clipboard:error",value:e.onError,expression:"onError",arg:"error"}],staticStyle:{"margin-left":"5px"},attrs:{round:"",size:"mini"}},[e._v("复制")]):e._e()],1)],1)],1)],1),a("p",{staticStyle:{"text-align":"left","font-size":"100%"}},[a("strong",[e._v(e._s(e.presentName))])]),a("p",{staticStyle:{"text-align":"left"}},[e._v(e._s(e.presentDesc))])],1)}),f=[],u=(a("c5f6"),a("81e6"),a("9ffb")),m=(a("4d48"),a("d1e1")),p=(a("9cb7"),a("66fd")),v={name:"giftCard",components:(s={},Object(c["a"])(s,p["a"].name,p["a"]),Object(c["a"])(s,m["a"].name,m["a"]),Object(c["a"])(s,u["a"].name,u["a"]),Object(c["a"])(s,l["a"].name,l["a"]),s),data:function(){return{place:["斋区","西南","南区","桂庙","西丽"],statusString:["审核中","匹配中","匹配成功","交换成功","审核失败"],statusColor:["#fd6740","#00ff00","#00bfff","#00fa9a","#ff0000"],genders:["未知","男","女"]}},props:{presentImg:{type:String,default:"http://pjczv6ygf.bkt.clouddn.com/image_load_fail.jpg"},presentName:{type:String,default:"礼物名称"},presentDesc:{type:String,default:"这是一本我很喜欢的书,我曾经把这本书反反复复看了三遍,真的非常推荐。如果你也是科幻迷,你肯定会喜欢哒。圣诞快乐,喜欢这本书可以和我一起讨论哦!"},owner:{type:Number,default:0},placeId:{type:Number,default:0},gender:{type:Number,default:0},status:{type:Number,default:0},wechat:{type:String,default:"undefined id"}},methods:{onCopy:function(e){alert("You just copied: "+e.text)},onError:function(e){alert("Failed to copy texts")},toMe:function(){0===this.owner&&this.$router.push("me")}}},g=v,_=(a("0a9a"),a("2877")),y=Object(_["a"])(g,d,f,!1,null,"1022046d",null);y.options.__file="giftCard.vue";var h=y.exports,b=a("da1d"),w=a("6ef9"),x={name:"giftDetail",components:Object(c["a"])({NavBar:b["a"],GiftCard:h},l["a"].name,l["a"]),data:function(){return{myPresent:{placeId:1,comment:""},reason:"",recievedPresent:{comment:""}}},methods:{editPresent:function(){i["a"].loading({mask:!0,message:"加载中...",duration:500});var e=this.myPresent;this.$router.push({path:"presentRegister",query:{present:e}})},deletePresent:function(){var e=this;o["a"].confirm({message:"确认删除礼物吗?"}).then(function(){i["a"].loading({mask:!0,message:"加载中...",duration:500});var t=e;w["a"].get_data("smartGoods/list?goodid="+e.myPresent.id,function(e){if(console.log("------ Data Rcvd in detail --------"),console.log(e),"10000"===e.ret){var a=e.model.list;(void 0!==a||a.length>0)&&console.warn(a),a[0].isDel=1,console.log(a),w["a"].get_data("smartGoods/updateBatch",function(e){console.log(e),"10000"===e.ret?(i["a"].success("删除成功"),t.$router.push("index")):i["a"].fail("删除失败,请检查网络")},a)}else console.warn("获取资源失败")},{})}).catch(function(){})},toWriteComment:function(){this.$router.push("assess")}},created:function(){if(localStorage.getItem("frontend-userid")){var e=this.$route.query.present,t=localStorage.getItem("frontend-userid"),a=this;e.comment="",w["a"].get_data("smartIdentity/list?userId="+t,function(t){console.log(t),"10000"===t.ret&&(e.placeId=t.model.list[0].dormDistrict,e.wechat=t.model.list[0].userWxAccount,a.myPresent=e,console.log(a.myPresent),3===e.status&&w["a"].get_data("smartOrderFeedback/list?goodId="+e.id,function(e){console.log(e),"10000"===e.ret&&(0===e.model.list.length?a.myPresent.comment="暂未收到":a.myPresent.comment=e.model.list[0].content,console.log(a.myPresent))},{}),4===e.status&&w["a"].get_data("smartGoodReview/list?goodId="+e.id,function(e){console.log(e),"10000"===e.ret&&0!==e.model.list.length&&(a.reason=e.model.list[0].displayNote)},{}),console.log(a.myPresent))},{})}else this.$router.push("login")}},P=x,S=(a("581e"),Object(_["a"])(P,n,r,!1,null,"352ffdb4",null));S.options.__file="giftDetail.vue";t["default"]=S.exports},aae8:function(e,t,a){},aeeb:function(e,t,a){"use strict";var s=a("62d0"),n=a.n(s);n.a},c3a6:function(e,t,a){"use strict";a("68ef")},da1d:function(e,t,a){"use strict";var s,n=function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("div",[a("van-nav-bar",{staticStyle:{"background-color":"#fff6e3"},attrs:{title:e.title,border:!1}},[e._v('\n style="max-width: 30px;"\n />\n '),a("van-icon",{attrs:{slot:"left",name:"arrow-left",color:"black"},on:{click:e.onClickLeft},slot:"left"})],1)],1)},r=[],o=a("ade3"),i=(a("c3a6"),a("ad06")),c=(a("7f7f"),a("68ef"),a("8a0b"),a("fe7e")),l=Object(c["a"])({render:function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("div",{class:[e.b({fixed:e.fixed}),{"van-hairline--bottom":e.border}],style:e.style},[a("div",{class:e.b("left"),on:{click:function(t){e.$emit("click-left")}}},[e._t("left",[e.leftArrow?a("icon",{class:e.b("arrow"),attrs:{name:"arrow-left"}}):e._e(),e.leftText?a("span",{class:e.b("text"),domProps:{textContent:e._s(e.leftText)}}):e._e()])],2),a("div",{staticClass:"van-ellipsis",class:e.b("title")},[e._t("title",[e._v(e._s(e.title))])],2),a("div",{class:e.b("right"),on:{click:function(t){e.$emit("click-right")}}},[e._t("right",[e.rightText?a("span",{class:e.b("text"),domProps:{textContent:e._s(e.rightText)}}):e._e()])],2)])},name:"nav-bar",props:{title:String,fixed:Boolean,leftText:String,rightText:String,leftArrow:Boolean,border:{type:Boolean,default:!0},zIndex:{type:Number,default:1}},computed:{style:function(){return{zIndex:this.zIndex}}}}),d=(a("cadf"),a("551c"),a("097d"),{name:"navBar",components:(s={},Object(o["a"])(s,l.name,l),Object(o["a"])(s,i["a"].name,i["a"]),s),props:{path:{type:String,default:"index"},title:{type:String,default:"深大换换礼物交换"}},methods:{onClickLeft:function(){this.$router.push(this.path)}}}),f=d,u=(a("aeeb"),a("2877")),m=Object(u["a"])(f,n,r,!1,null,"7f9774c3",null);m.options.__file="navBar.vue";t["a"]=m.exports}}]);
  2. //# sourceMappingURL=chunk-7c0f1c8c.57fd884b.js.map