chunk-763b02ba.a1f4b500.js.map 71 KB

1
  1. {"version":3,"sources":["webpack:///./node_modules/vant/es/rate/index.js","webpack:///./node_modules/vant/es/rate/style/index.js","webpack:///./src/components/giftCard.vue?5a1b","webpack:///./src/views/giftDetail.vue?960c","webpack:///./src/components/giftCard.vue?87ce","webpack:///src/components/giftCard.vue","webpack:///./src/components/giftCard.vue?1f78","webpack:///./src/components/giftCard.vue?66c9","webpack:///src/views/giftDetail.vue","webpack:///./src/views/giftDetail.vue?83c0","webpack:///./src/views/giftDetail.vue?31f0","webpack:///./node_modules/core-js/modules/es6.regexp.replace.js","webpack:///./src/components/navBar.vue?51a5","webpack:///./node_modules/vant/es/icon/style/index.js","webpack:///./src/components/navBar.vue?b108","webpack:///./node_modules/vant/es/nav-bar/index.js","webpack:///src/components/navBar.vue","webpack:///./src/components/navBar.vue?879c","webpack:///./src/components/navBar.vue","webpack:///./src/views/giftDetail.vue?522c"],"names":["_utils_create__WEBPACK_IMPORTED_MODULE_0__","__webpack_require__","__webpack_exports__","Object","render","_vm","this","_h","$createElement","_c","_self","class","b","on","touchmove","onTouchMove","_l","list","full","index","key","attrs","size","data-index","name","icon","voidIcon","color","disabled","disabledColor","voidColor","click","$event","onSelect","props","value","Number","readonly","Boolean","type","default","String","count","computed","_this","Array","apply","length","map","methods","$emit","event","document","elementFromPoint","preventDefault","_event$touches$","touches","clientX","clientY","target","dataset","_node_modules_mini_css_extract_plugin_dist_loader_js_ref_6_oneOf_1_0_node_modules_css_loader_index_js_ref_6_oneOf_1_1_node_modules_vue_loader_lib_loaders_stylePostLoader_js_node_modules_postcss_loader_src_index_js_ref_6_oneOf_1_2_node_modules_cache_loader_dist_cjs_js_ref_0_0_node_modules_vue_loader_lib_index_js_vue_loader_options_giftCard_vue_vue_type_style_index_0_id_2eb89ae4_scoped_true_lang_css___WEBPACK_IMPORTED_MODULE_0__","_node_modules_mini_css_extract_plugin_dist_loader_js_ref_6_oneOf_1_0_node_modules_css_loader_index_js_ref_6_oneOf_1_1_node_modules_vue_loader_lib_loaders_stylePostLoader_js_node_modules_postcss_loader_src_index_js_ref_6_oneOf_1_2_node_modules_cache_loader_dist_cjs_js_ref_0_0_node_modules_vue_loader_lib_index_js_vue_loader_options_giftCard_vue_vue_type_style_index_0_id_2eb89ae4_scoped_true_lang_css___WEBPACK_IMPORTED_MODULE_0___default","n","path","title","myPresent","status","present-img","receivedPresent","img","present-name","present-desc","desc","owner","placeId","gender","wechat","_e","RcommentDo","content","staticClass","_m","void-icon","model","callback","$$v","$set","expression","_v","_s","commentDo","reason","staticStyle","height","width","position","bottom","max-width","z-index","src","background-color","border-color","toWriteComment","editPresent","margin","deletePresent","staticRenderFns","font-size","giftCardvue_type_template_id_2eb89ae4_scoped_true_render","border-bottom","padding","span","presentImg","justify","place","genders","style","statusColor","statusString","toMe","directives","rawName","arg","margin-left","round","text-align","presentName","presentDesc","giftCardvue_type_template_id_2eb89ae4_scoped_true_staticRenderFns","giftCardvue_type_script_lang_js_","components","_components","defineProperty","card","row","col","es_button","data","onCopy","e","toast","success","text","onError","fail","$router","push","components_giftCardvue_type_script_lang_js_","component","componentNormalizer","options","__file","giftCard","giftDetailvue_type_script_lang_js_","giftDetailvue_type_script_lang_js_components","NavBar","navBar","GiftCard","rate","giftDo","identityDo","RgiftDo","RidentityDo","orderId","loading","mask","message","duration","p","query","presentId","id","dialog","confirm","then","that","basic_service","get_data","response","ret","isDel","console","warn","catch","myId","goodid","goodId","loadGift","$route","undefined","utils_get_param","res","onloadGift","initGifts","rpresent","ridentity","description","userSex","dormDistrict","userWxAccount","present","identity","sort","goodFirstKind","onloadReview","userid","localStorage","getItem","orderRes","log","order","receiverId","parseInt","note","receiverRes","onloadReceiveGift","myid","ownerId","recvRes","onloadFeedback","rgoodId","comment","ratingMajor","_comment","i","sortReason","displayNote","created","last","lastTime","Date","reviewTime","replace","time","views_giftDetailvue_type_script_lang_js_","giftDetail_component","anObject","toObject","toLength","toInteger","advanceStringIndex","regExpExec","max","Math","min","floor","SUBSTITUTION_SYMBOLS","SUBSTITUTION_SYMBOLS_NO_NAMED","maybeToString","it","defined","REPLACE","$replace","maybeCallNative","searchValue","replaceValue","O","fn","call","regexp","done","rx","S","functionalReplace","global","fullUnicode","unicode","lastIndex","results","result","matchStr","accumulatedResult","nextSourcePosition","matched","captures","j","namedCaptures","groups","replacerArgs","concat","replacement","getSubstitution","slice","str","tailPos","m","symbols","match","ch","capture","charAt","f","_node_modules_mini_css_extract_plugin_dist_loader_js_ref_6_oneOf_1_0_node_modules_css_loader_index_js_ref_6_oneOf_1_1_node_modules_vue_loader_lib_loaders_stylePostLoader_js_node_modules_postcss_loader_src_index_js_ref_6_oneOf_1_2_node_modules_cache_loader_dist_cjs_js_ref_0_0_node_modules_vue_loader_lib_index_js_vue_loader_options_navBar_vue_vue_type_style_index_0_id_7f9774c3_scoped_true_lang_css___WEBPACK_IMPORTED_MODULE_0__","_node_modules_mini_css_extract_plugin_dist_loader_js_ref_6_oneOf_1_0_node_modules_css_loader_index_js_ref_6_oneOf_1_1_node_modules_vue_loader_lib_loaders_stylePostLoader_js_node_modules_postcss_loader_src_index_js_ref_6_oneOf_1_2_node_modules_cache_loader_dist_cjs_js_ref_0_0_node_modules_vue_loader_lib_index_js_vue_loader_options_navBar_vue_vue_type_style_index_0_id_7f9774c3_scoped_true_lang_css___WEBPACK_IMPORTED_MODULE_0___default","border","slot","onClickLeft","es_nav_bar","create","fixed","van-hairline--bottom","_t","leftArrow","leftText","domProps","textContent","rightText","zIndex","navBarvue_type_script_lang_js_","components_navBarvue_type_script_lang_js_","_node_modules_mini_css_extract_plugin_dist_loader_js_ref_6_oneOf_1_0_node_modules_css_loader_index_js_ref_6_oneOf_1_1_node_modules_vue_loader_lib_loaders_stylePostLoader_js_node_modules_postcss_loader_src_index_js_ref_6_oneOf_1_2_node_modules_cache_loader_dist_cjs_js_ref_0_0_node_modules_vue_loader_lib_index_js_vue_loader_options_giftDetail_vue_vue_type_style_index_0_id_b8edaf22_scoped_true_lang_css___WEBPACK_IMPORTED_MODULE_0__","_node_modules_mini_css_extract_plugin_dist_loader_js_ref_6_oneOf_1_0_node_modules_css_loader_index_js_ref_6_oneOf_1_1_node_modules_vue_loader_lib_loaders_stylePostLoader_js_node_modules_postcss_loader_src_index_js_ref_6_oneOf_1_2_node_modules_cache_loader_dist_cjs_js_ref_0_0_node_modules_vue_loader_lib_index_js_vue_loader_options_giftDetail_vue_vue_type_style_index_0_id_b8edaf22_scoped_true_lang_css___WEBPACK_IMPORTED_MODULE_0___default"],"mappings":"kHAAA,IAAAA,EAAAC,EAAA,QACeC,EAAA,KAAAC,OAAAH,EAAA,MAAM,CACrBI,OAAA,WACA,IAAAC,EAAAC,KAEAC,EAAAF,EAAAG,eAEAC,EAAAJ,EAAAK,MAAAD,IAAAF,EAEA,OAAAE,EAAA,OACAE,MAAAN,EAAAO,IACAC,GAAA,CACAC,UAAAT,EAAAU,cAEKV,EAAAW,GAAAX,EAAAY,KAAA,SAAAC,EAAAC,GACL,OAAAV,EAAA,QACAW,IAAAD,EACAR,MAAAN,EAAAO,EAAA,QACAS,MAAA,CACAC,KAAAjB,EAAAiB,KAAA,KACAC,aAAAJ,EACAK,KAAAN,EAAAb,EAAAoB,KAAApB,EAAAqB,SACAC,MAAAtB,EAAAuB,SAAAvB,EAAAwB,cAAAX,EAAAb,EAAAsB,MAAAtB,EAAAyB,WAEAjB,GAAA,CACAkB,MAAA,SAAAC,GACA3B,EAAA4B,SAAAd,WAMAK,KAAA,OACAU,MAAA,CACAC,MAAAC,OACAC,SAAAC,QACAV,SAAAU,QACAhB,KAAA,CACAiB,KAAAH,OACAI,QAAA,IAEAf,KAAA,CACAc,KAAAE,OACAD,QAAA,QAEAd,SAAA,CACAa,KAAAE,OACAD,QAAA,UAEAb,MAAA,CACAY,KAAAE,OACAD,QAAA,WAEAV,UAAA,CACAS,KAAAE,OACAD,QAAA,WAEAX,cAAA,CACAU,KAAAE,OACAD,QAAA,WAEAE,MAAA,CACAH,KAAAH,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A,WACA,OACA+L,OAAA9S,KAAA8S,YCrDAC,iCAAA,CACA7R,KAAA,SACA2G,YAAAC,EAAA,GAAAjI,OAAAkI,EAAA,KAAAlI,CAAAiI,EACAsK,EAAAlR,KADAkR,GAAAvS,OAAAkI,EAAA,KAAAlI,CAAAiI,EAEA3G,EAAA,KAAAD,KAFAC,EAAA,MAAA2G,GAIAlG,MAAA,CACA8B,KAAA,CACAzB,KAAAE,OACAD,QAAA,SAEAyB,MAAA,CACA1B,KAAAE,OACAD,QAAA,aAGAS,QAAA,CACAwP,YAAA,WACAnS,KAAA4I,QAAAC,KAAA7I,KAAA0D,UClCgVsP,EAAA,0BCQhVjK,EAAgBlJ,OAAAmJ,EAAA,KAAAnJ,CACdmT,EACAlT,EACAuG,GACF,EACA,KACA,WACA,MAIA0C,EAAAE,QAAAC,OAAA,aACetJ,EAAA,KAAAmJ,6CCpBf,IAAAkK,EAAAtT,EAAA,QAAAuT,EAAAvT,EAAA8D,EAAAwP,GAAseC,EAAG","file":"js/chunk-763b02ba.a1f4b500.js","sourcesContent":["import create from '../utils/create';\nexport default create({\n render: function render() {\n var _vm = this;\n\n var _h = _vm.$createElement;\n\n var _c = _vm._self._c || _h;\n\n return _c('div', {\n class: _vm.b(),\n on: {\n \"touchmove\": _vm.onTouchMove\n }\n }, _vm._l(_vm.list, function (full, index) {\n return _c('icon', {\n key: index,\n class: _vm.b('item'),\n attrs: {\n \"size\": _vm.size + 'px',\n \"data-index\": index,\n \"name\": full ? _vm.icon : _vm.voidIcon,\n \"color\": _vm.disabled ? _vm.disabledColor : full ? _vm.color : _vm.voidColor\n },\n on: {\n \"click\": function click($event) {\n _vm.onSelect(index);\n }\n }\n });\n }));\n },\n name: 'rate',\n props: {\n value: Number,\n readonly: Boolean,\n disabled: Boolean,\n size: {\n type: Number,\n default: 20\n },\n icon: {\n type: String,\n default: 'star'\n },\n voidIcon: {\n type: String,\n default: 'star-o'\n },\n color: {\n type: String,\n default: '#ffd21e'\n },\n voidColor: {\n type: String,\n default: '#c7c7c7'\n },\n disabledColor: {\n type: String,\n default: '#bdbdbd'\n },\n count: {\n type: Number,\n default: 5\n }\n },\n computed: {\n list: function list() {\n var _this = this;\n\n return Array.apply(null, {\n length: this.count\n }).map(function (value, index) {\n return index < _this.value;\n });\n }\n },\n methods: {\n onSelect: function onSelect(index) {\n if (!this.disabled && !this.readonly) {\n this.$emit('input', index + 1);\n this.$emit('change', index + 1);\n }\n },\n onTouchMove: function onTouchMove(event) {\n if (!document.elementFromPoint) {\n return;\n }\n\n event.preventDefault();\n var _event$touches$ = event.touches[0],\n clientX = _event$touches$.clientX,\n clientY = _event$touches$.clientY;\n var target = document.elementFromPoint(clientX, clientY);\n\n if (target && target.dataset) {\n var index = target.dataset.index;\n /* istanbul ignore else */\n\n if (index) {\n this.onSelect(+index);\n }\n }\n }\n }\n});","import '../../style/base.css';\nimport '../index.css';","import mod from \"-!../../node_modules/mini-css-extract-plugin/dist/loader.js??ref--6-oneOf-1-0!../../node_modules/css-loader/index.js??ref--6-oneOf-1-1!../../node_modules/vue-loader/lib/loaders/stylePostLoader.js!../../node_modules/postcss-loader/src/index.js??ref--6-oneOf-1-2!../../node_modules/cache-loader/dist/cjs.js??ref--0-0!../../node_modules/vue-loader/lib/index.js??vue-loader-options!./giftCard.vue?vue&type=style&index=0&id=2eb89ae4&scoped=true&lang=css&\"; export default mod; export * from \"-!../../node_modules/mini-css-extract-plugin/dist/loader.js??ref--6-oneOf-1-0!../../node_modules/css-loader/index.js??ref--6-oneOf-1-1!../../node_modules/vue-loader/lib/loaders/stylePostLoader.js!../../node_modules/postcss-loader/src/index.js??ref--6-oneOf-1-2!../../node_modules/cache-loader/dist/cjs.js??ref--0-0!../../node_modules/vue-loader/lib/index.js??vue-loader-options!./giftCard.vue?vue&type=style&index=0&id=2eb89ae4&scoped=true&lang=css&\"","var render = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('div',[_c('nav-bar',{attrs:{\"path\":\"index\",\"title\":\"礼品卡\"}}),(_vm.myPresent.status === 2 || _vm.myPresent.status === 3)?_c('gift-card',{attrs:{\"present-img\":_vm.receivedPresent.img,\"present-name\":_vm.receivedPresent.name,\"present-desc\":_vm.receivedPresent.desc,\"owner\":1,\"placeId\":_vm.receivedPresent.placeId,\"gender\":_vm.receivedPresent.gender,\"status\":-1,\"wechat\":_vm.receivedPresent.wechat}}):_vm._e(),(_vm.RcommentDo.content.length !== 0)?_c('div',{staticClass:\"letter\"},[_vm._m(0),_c('van-rate',{attrs:{\"icon\":\"like\",\"void-icon\":\"like-o\",\"readonly\":\"\",\"color\":\"red\"},model:{value:(_vm.RcommentDo.rate),callback:function ($$v) {_vm.$set(_vm.RcommentDo, \"rate\", $$v)},expression:\"RcommentDo.rate\"}}),_c('p',[_vm._v(_vm._s(_vm.RcommentDo.content))])],1):_vm._e(),_c('gift-card',{attrs:{\"present-img\":_vm.myPresent.img,\"present-name\":_vm.myPresent.name,\"present-desc\":_vm.myPresent.desc,\"owner\":0,\"placeId\":_vm.myPresent.placeId,\"gender\":_vm.myPresent.gender,\"status\":_vm.myPresent.status,\"wechat\":_vm.myPresent.wechat}}),(_vm.commentDo.content.length !== 0)?_c('div',{staticClass:\"letter\"},[_vm._m(1),_c('van-rate',{attrs:{\"icon\":\"like\",\"void-icon\":\"like-o\",\"readonly\":\"\",\"color\":\"red\"},model:{value:(_vm.commentDo.rate),callback:function ($$v) {_vm.$set(_vm.commentDo, \"rate\", $$v)},expression:\"commentDo.rate\"}}),_c('p',[_vm._v(_vm._s(_vm.commentDo.content))])],1):_vm._e(),(_vm.myPresent.status === 4)?_c('div',{staticClass:\"letter\"},[_vm._m(2),(_vm.reason.length !== 0)?_c('p',[_vm._v(\"原因:\"+_vm._s(_vm.reason))]):_vm._e()]):_vm._e(),_c('div',{staticStyle:{\"height\":\"100px\",\"width\":\"100%\"}}),_c('img',{staticStyle:{\"position\":\"fixed\",\"bottom\":\"100px\",\"max-width\":\"100%\",\"z-index\":\"-1\"},attrs:{\"src\":\"http://pjczv6ygf.bkt.clouddn.com/present_card_bottom.png\"}}),(_vm.myPresent.status === 2)?_c('div',{staticStyle:{\"position\":\"fixed\",\"bottom\":\"0\",\"width\":\"100%\",\"background-color\":\"#fff6e3\"}},[_c('van-button',{staticStyle:{\"background-color\":\"#fd6740\",\"border-color\":\"#fd6740\",\"width\":\"85%\"},attrs:{\"type\":\"primary\",\"size\":\"large\"},on:{\"click\":_vm.toWriteComment}},[_vm._v(\"确认交换成功\")]),_c('p',[_vm._v(\"交换成功可以开始接收对方发来的感谢信哦\")])],1):_vm._e(),(_vm.myPresent.status === 0 || _vm.myPresent.status === 1 || _vm.myPresent.status === 4)?_c('div',{staticStyle:{\"position\":\"fixed\",\"bottom\":\"0\",\"width\":\"100%\"}},[(_vm.myPresent.status !== 4)?_c('van-button',{staticStyle:{\"width\":\"85%\"},attrs:{\"type\":\"default\",\"size\":\"large\"},on:{\"click\":_vm.editPresent}},[_vm._v(\"修改礼物\")]):_vm._e(),_c('van-button',{staticStyle:{\"width\":\"85%\",\"margin\":\"10px 0 10px\"},attrs:{\"type\":\"warning\",\"size\":\"large\"},on:{\"click\":_vm.deletePresent}},[_vm._v(\"删除礼物\")])],1):_vm._e()],1)}\nvar staticRenderFns = [function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('p',{staticStyle:{\"font-size\":\"110%\"}},[_c('strong',[_vm._v(\"我送出的感谢信\")])])},function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('p',{staticStyle:{\"font-size\":\"110%\"}},[_c('strong',[_vm._v(\"我收到的感谢信\")])])},function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('p',[_c('strong',[_vm._v(\"审核未通过,请前往首页重新发布礼物!\")])])}]\n\nexport { render, staticRenderFns }","var render = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('div',{staticClass:\"gift_card\"},[_c('van-row',{staticStyle:{\"border-bottom\":\"solid 1px #e4e4e4\",\"padding\":\"5px\"}},[_c('van-col',{attrs:{\"span\":\"8\"}},[_c('img',{staticStyle:{\"max-width\":\"100%\"},attrs:{\"src\":_vm.presentImg}})]),_c('van-col',{attrs:{\"span\":\"16\"}},[_c('van-row',{attrs:{\"type\":\"flex\",\"justify\":\"space-between\"}},[_c('van-col',{staticClass:\"c\"},[_c('p',[_c('strong',[_vm._v(_vm._s(_vm.owner ? '对方' : '我')+\"的礼物\")])])]),_c('van-col',{staticClass:\"c\"},[_c('p',[_vm._v(_vm._s(_vm.place[_vm.placeId]))])])],1),(_vm.gender !== -1)?_c('van-row',{attrs:{\"type\":\"flex\",\"justify\":\"space-between\"}},[_c('van-col',{staticClass:\"c\"},[_c('p',[_vm._v(_vm._s(_vm.owner ? '对方' : '匹配')+\"性别\")])]),_c('van-col',{staticClass:\"c\"},[_c('p',[_vm._v(_vm._s(_vm.genders[_vm.gender]))])])],1):_vm._e(),(_vm.status !== -1)?_c('van-row',{attrs:{\"type\":\"flex\",\"justify\":\"space-between\"}},[_c('van-col',{staticClass:\"c\"},[_c('p',[_vm._v(\"礼物状态\")])]),_c('van-col',{staticClass:\"c\"},[_c('p',{style:({ color: _vm.statusColor[_vm.status] })},[_vm._v(_vm._s(_vm.statusString[_vm.status]))])])],1):_vm._e(),_c('van-row',{attrs:{\"type\":\"flex\",\"justify\":\"space-between\"}},[_c('van-col',{staticClass:\"c\"},[_c('p',[_vm._v(\"微信\")])]),_c('van-col',{staticClass:\"c\"},[_c('p',{style:(_vm.owner ? 'color: #778899' : 'color: #191970' + '; float: left'),on:{\"click\":_vm.toMe}},[_vm._v(\"\\n \"+_vm._s(_vm.wechat))]),(_vm.owner)?_c('van-button',{directives:[{name:\"clipboard\",rawName:\"v-clipboard:copy\",value:(_vm.wechat),expression:\"wechat\",arg:\"copy\"},{name:\"clipboard\",rawName:\"v-clipboard:success\",value:(_vm.onCopy),expression:\"onCopy\",arg:\"success\"},{name:\"clipboard\",rawName:\"v-clipboard:error\",value:(_vm.onError),expression:\"onError\",arg:\"error\"}],staticStyle:{\"margin-left\":\"5px\"},attrs:{\"round\":\"\",\"size\":\"mini\"}},[_vm._v(\"复制\")]):_vm._e()],1)],1)],1)],1),_c('p',{staticStyle:{\"text-align\":\"left\",\"font-size\":\"100%\"}},[_c('strong',[_vm._v(_vm._s(_vm.presentName))])]),_c('p',{staticStyle:{\"text-align\":\"left\"}},[_vm._v(_vm._s(_vm.presentDesc))])],1)}\nvar staticRenderFns = []\n\nexport { render, staticRenderFns }","<template>\r\n <div class=\"gift_card\">\r\n <van-row\r\n style=\"border-bottom: solid 1px #e4e4e4; padding:5px\"\r\n >\r\n <van-col span=\"8\">\r\n <img :src=\"presentImg\" style=\"max-width: 100%\"/>\r\n </van-col>\r\n <van-col span=\"16\">\r\n <van-row type=\"flex\" justify=\"space-between\">\r\n <van-col class=\"c\"><p><strong>{{owner ? '对方' : '我'}}的礼物</strong></p></van-col>\r\n <van-col class=\"c\"><p>{{place[placeId]}}</p></van-col>\r\n </van-row>\r\n <van-row type=\"flex\" justify=\"space-between\" v-if=\"gender !== -1\">\r\n <van-col class=\"c\"><p>{{owner ? '对方' : '匹配'}}性别</p></van-col>\r\n <van-col class=\"c\"><p>{{genders[gender]}}</p></van-col>\r\n </van-row>\r\n <van-row type=\"flex\" justify=\"space-between\" v-if=\"status !== -1\">\r\n <van-col class=\"c\"><p>礼物状态</p></van-col>\r\n <van-col class=\"c\" ><p :style=\"{ color: statusColor[status] }\">{{statusString[status]}}</p></van-col>\r\n </van-row>\r\n <van-row type=\"flex\" justify=\"space-between\">\r\n <van-col class=\"c\"><p>微信</p></van-col>\r\n <van-col class=\"c\">\r\n <p :style=\"owner ? 'color: #778899' : 'color: #191970' + '; float: left'\" @click=\"toMe\">\r\n {{wechat}}</p>\r\n <van-button round size=\"mini\"\r\n v-if=\"owner\" style=\"margin-left: 5px\"\r\n v-clipboard:copy=\"wechat\"\r\n v-clipboard:success=\"onCopy\"\r\n v-clipboard:error=\"onError\"\r\n >复制</van-button>\r\n </van-col>\r\n </van-row>\r\n </van-col>\r\n </van-row>\r\n <p style=\"text-align: left; font-size: 100%\"><strong>{{presentName}}</strong></p>\r\n <p style=\"text-align: left\">{{presentDesc}}</p>\r\n </div>\r\n</template>\r\n\r\n<script>\r\n import {Card, Row, Col, Button, Toast} from 'vant';\r\n export default {\r\n name: \"giftCard\", //gift-card\r\n // luaOps 'lua-ops\r\n components: {\r\n [Card.name]: Card,\r\n [Row.name]: Row, [Col.name]: Col,\r\n [Button.name]: Button,\r\n },\r\n data() {\r\n return {\r\n place: ['斋区', '西南', '南区', '桂庙', '西丽'],\r\n statusString: ['审核中', '匹配中', '匹配成功', '交换成功', '审核失败'],\r\n statusColor: ['#fd6740', '#00ff00', '#00bfff', '#00fa9a', '#ff0000'],\r\n genders: ['未知', '男', '女']\r\n }\r\n },\r\n props: {\r\n presentImg: {\r\n type: String,\r\n default: \"http://pjczv6ygf.bkt.clouddn.com/image_load_fail.jpg\"\r\n },\r\n presentName: {\r\n type: String,\r\n default: \"礼物名称\"\r\n },\r\n presentDesc: {\r\n type: String,\r\n default: '没有获取到对方的礼物!'\r\n },\r\n owner: {\r\n type: Number,\r\n default: 0 // 0: 我的; 1: 对方的\r\n },\r\n placeId: {\r\n type: Number,\r\n default: 0\r\n },\r\n gender: {\r\n type: Number,\r\n default: 0\r\n },\r\n status: {\r\n type: Number,\r\n default: 0\r\n },\r\n wechat: {\r\n type: String,\r\n default: 'undefined id'\r\n }\r\n },\r\n methods: {\r\n onCopy: function (e) {\r\n Toast.success('复制成功: ' + e.text)\r\n },\r\n onError: function (e) {\r\n Toast.fail('复制失败')\r\n },\r\n toMe: function () {\r\n if (this.owner === 0) this.$router.push('me');\r\n }\r\n }\r\n }\r\n</script>\r\n\r\n<style scoped>\r\n .c {\r\n height: 25px;\r\n margin-left: 10px;\r\n margin-right: 5px;\r\n }\r\n p {\r\n margin: 0;\r\n font-size: 80%;\r\n }\r\n .gift_card {\r\n margin: 20px 20px;\r\n background-color: white;\r\n padding: 10px;\r\n }\r\n</style>","import mod from \"-!../../node_modules/cache-loader/dist/cjs.js??ref--12-0!../../node_modules/thread-loader/dist/cjs.js!../../node_modules/babel-loader/lib/index.js!../../node_modules/cache-loader/dist/cjs.js??ref--0-0!../../node_modules/vue-loader/lib/index.js??vue-loader-options!./giftCard.vue?vue&type=script&lang=js&\"; export default mod; export * from \"-!../../node_modules/cache-loader/dist/cjs.js??ref--12-0!../../node_modules/thread-loader/dist/cjs.js!../../node_modules/babel-loader/lib/index.js!../../node_modules/cache-loader/dist/cjs.js??ref--0-0!../../node_modules/vue-loader/lib/index.js??vue-loader-options!./giftCard.vue?vue&type=script&lang=js&\"","import { render, staticRenderFns } from \"./giftCard.vue?vue&type=template&id=2eb89ae4&scoped=true&\"\nimport script from \"./giftCard.vue?vue&type=script&lang=js&\"\nexport * from \"./giftCard.vue?vue&type=script&lang=js&\"\nimport style0 from \"./giftCard.vue?vue&type=style&index=0&id=2eb89ae4&scoped=true&lang=css&\"\n\n\n/* normalize component */\nimport normalizer from \"!../../node_modules/vue-loader/lib/runtime/componentNormalizer.js\"\nvar component = normalizer(\n script,\n render,\n staticRenderFns,\n false,\n null,\n \"2eb89ae4\",\n null\n \n)\n\ncomponent.options.__file = \"giftCard.vue\"\nexport default component.exports","<template>\r\n <div>\r\n <nav-bar path=\"index\" title=\"礼品卡\"/>\r\n <!--对方的礼物信息-->\r\n <!--<p>{{myPresent.name}}-{{receivedPresent.name}}</p>-->\r\n <gift-card\r\n v-if=\"myPresent.status === 2 || myPresent.status === 3\"\r\n :present-img=\"receivedPresent.img\"\r\n :present-name=\"receivedPresent.name\"\r\n :present-desc=\"receivedPresent.desc\"\r\n :owner=\"1\"\r\n :placeId=\"receivedPresent.placeId\"\r\n :gender=\"receivedPresent.gender\"\r\n :status=\"-1\"\r\n :wechat=\"receivedPresent.wechat\"\r\n />\r\n <!--我写的感谢信-->\r\n <div class=\"letter\" v-if=\"RcommentDo.content.length !== 0\">\r\n <p style=\"font-size: 110%\"><strong>我送出的感谢信</strong></p>\r\n <van-rate\r\n icon=\"like\"\r\n void-icon=\"like-o\"\r\n readonly\r\n v-model=\"RcommentDo.rate\"\r\n color=\"red\"\r\n />\r\n <p>{{RcommentDo.content}}</p>\r\n </div>\r\n <!--我的礼物信息-->\r\n <gift-card\r\n :present-img=\"myPresent.img\"\r\n :present-name=\"myPresent.name\"\r\n :present-desc=\"myPresent.desc\"\r\n :owner=\"0\"\r\n :placeId=\"myPresent.placeId\"\r\n :gender=\"myPresent.gender\"\r\n :status=\"myPresent.status\"\r\n :wechat=\"myPresent.wechat\"\r\n />\r\n <div class=\"letter\" v-if=\"commentDo.content.length !== 0\">\r\n <p style=\"font-size: 110%\"><strong>我收到的感谢信</strong></p>\r\n <van-rate\r\n icon=\"like\"\r\n void-icon=\"like-o\"\r\n readonly\r\n v-model=\"commentDo.rate\"\r\n color=\"red\"\r\n />\r\n <p>{{commentDo.content}}</p>\r\n </div>\r\n <div class=\"letter\" v-if=\"myPresent.status === 4\">\r\n <p><strong>审核未通过,请前往首页重新发布礼物!</strong></p>\r\n <p v-if=\"reason.length !== 0\">原因:{{reason}}</p>\r\n </div>\r\n <div style=\"height: 100px; width: 100%\"></div>\r\n <img src=\"http://pjczv6ygf.bkt.clouddn.com/present_card_bottom.png\"\r\n style=\"position: fixed; bottom: 100px; max-width: 100%; z-index: -1\"\r\n />\r\n <div\r\n v-if=\"myPresent.status === 2\"\r\n style=\"position: fixed; bottom: 0; width: 100%; background-color: #fff6e3\"\r\n >\r\n <van-button\r\n type=\"primary\" size=\"large\"\r\n style=\"background-color: #fd6740; border-color: #fd6740; width: 85%;\"\r\n @click=\"toWriteComment\"\r\n >确认交换成功</van-button>\r\n <p>交换成功可以开始接收对方发来的感谢信哦</p>\r\n </div>\r\n <div\r\n v-if=\"myPresent.status === 0 || myPresent.status === 1 || myPresent.status === 4\"\r\n style=\"position: fixed; bottom: 0; width: 100%\"\r\n >\r\n <van-button\r\n type=\"default\" size=\"large\"\r\n style=\"width: 85%;\"\r\n @click=\"editPresent\"\r\n v-if=\"myPresent.status !== 4\"\r\n >修改礼物</van-button>\r\n <van-button\r\n type=\"warning\" size=\"large\"\r\n style=\"width: 85%; margin: 10px 0 10px\"\r\n @click=\"deletePresent\"\r\n >删除礼物</van-button>\r\n </div>\r\n </div>\r\n</template>\r\n\r\n<script>\r\n import GiftCard from \"../components/giftCard\";\r\n import {Button, Dialog, Toast, Rate} from 'vant'\r\n import NavBar from \"../components/navBar\";\r\n import {BasicFunction} from \"../connector/basic-service\";\r\n\r\n export default {\r\n name: \"giftDetail\",\r\n components: {\r\n NavBar,\r\n GiftCard,\r\n [Button.name]: Button,\r\n [Rate.name]: Rate\r\n },\r\n data() {\r\n return {\r\n myPresent: {},\r\n reason: '',\r\n receivedPresent: {},\r\n giftDo: {},\r\n identityDo: {},\r\n commentDo: {\r\n content: '',\r\n rate: 5\r\n },\r\n RgiftDo: {},\r\n RidentityDo: {},\r\n RcommentDo: {\r\n content: '',\r\n rate: 5\r\n },\r\n orderId: -1\r\n }\r\n },\r\n methods:{\r\n editPresent: function() {\r\n Toast.loading({\r\n mask: true,\r\n message: '加载中...',\r\n duration: 500\r\n });\r\n let p = this.myPresent;\r\n this.$router.push({path: 'presentRegister', query: {presentId: p.id}});\r\n },\r\n deletePresent: function() {\r\n Dialog.confirm({\r\n message: '确认删除礼物吗?'\r\n }).then(() => {\r\n // 删除礼物:将isDel设为1\r\n Toast.loading({\r\n mask: true,\r\n message: '加载中...',\r\n duration: 1000\r\n });\r\n let that = this;\r\n BasicFunction.get_data(\"smartGoods/list?goodid=\" + this.myPresent.id, function (response) {\r\n // console.log(\"------ Data Rcvd in detail --------\");\r\n // console.log(response);\r\n try {\r\n let list = response.model.list;\r\n if (response.ret === \"10000\") {\r\n list[0].isDel = 1;\r\n // console.log(list);\r\n BasicFunction.get_data(\"smartGoods/updateBatch\", function (response) {\r\n // console.log(response);\r\n if (response.ret === '10000') {\r\n Toast.success('删除成功');\r\n that.$router.push('index');\r\n } else {\r\n Toast.fail('删除失败,请检查网络');\r\n }\r\n }, list)\r\n } else Toast.fail('获取资源失败');\r\n } catch (e) {\r\n console.warn(e);\r\n Toast.fail('获取资源失败');\r\n }\r\n }, {});\r\n }).catch(() => {\r\n // on cancel\r\n });\r\n },\r\n toWriteComment: function () {\r\n let myId = this.myPresent.id;\r\n let goodid = this.receivedPresent.id;\r\n let orderId = this.orderId;\r\n this.$router.push({\r\n path: 'assess',\r\n query: {myId: myId, goodId: goodid, orderId: orderId}\r\n });\r\n },\r\n loadGift(){\r\n let presentId = this.$route.query.presentId;\r\n if(presentId == null || presentId == undefined){\r\n presentId = BasicFunction.utils_get_param(\"presentId\");\r\n }\r\n if(presentId == undefined || presentId == null){\r\n Toast.fail('请重新进入礼物页哦');\r\n this.$router.push('index');\r\n }\r\n\r\n let that = this;\r\n BasicFunction.get_data('smartGoods/list?goodid=' + presentId, function (res) {\r\n if (res.ret === '10000') {\r\n if(res.model === undefined || res.model == null || res.model.list == undefined || res.model.list.length <= 0){\r\n Toast.fail('礼物查看遇到问题,请稍等一下再试吧');\r\n that.$router.push('index');\r\n return;\r\n }\r\n that.giftDo = res.model.list[0];\r\n that.onloadGift(that.giftDo);\r\n }\r\n }, {});\r\n },\r\n initGifts() {\r\n if (this.RgiftDo.goodid !== undefined) {\r\n let rpresent = {};\r\n let ridentity = this.RidentityDo;\r\n rpresent.id = this.RgiftDo.goodid;\r\n rpresent.name = this.RgiftDo.name;\r\n rpresent.desc = this.RgiftDo.description;\r\n rpresent.gender = ridentity.userSex;\r\n rpresent.placeId = ridentity.dormDistrict;\r\n rpresent.wechat = ridentity.userWxAccount;\r\n rpresent.img = \"http://pjczv6ygf.bkt.clouddn.com/mysterious%20gift.jpg\";\r\n this.receivedPresent = rpresent;\r\n }\r\n let present = {};\r\n let identity = {};\r\n identity = this.identityDo;\r\n present.id = this.giftDo.goodid;\r\n present.name = this.giftDo.name;\r\n present.desc = this.giftDo.description;\r\n present.status = this.giftDo.sort;\r\n present.gender = this.giftDo.goodFirstKind;\r\n present.placeId = identity.dormDistrict;\r\n present.wechat = identity.userWxAccount;\r\n present.img = \"http://gift.fogice.com\" + this.giftDo.img;\r\n this.myPresent = present;\r\n },\r\n onloadGift(){\r\n let that = this;\r\n let status = this.giftDo.sort;\r\n let id = this.giftDo.goodid;\r\n // console.log(that.myPresent);\r\n if (status >= 2) {\r\n if (status === 4) that.onloadReview(id);\r\n let userid = localStorage.getItem('frontend-userid');\r\n BasicFunction.get_data('smartOrder/list?userId=' + userid, function (orderRes) {\r\n try {\r\n console.log('----- order res -----');\r\n console.log(orderRes);\r\n if (orderRes.ret === '10000' && orderRes.model.list !== undefined && orderRes.model.list.length !== 0) {\r\n let order = orderRes.model.list[0];\r\n let receiverId = parseInt(order.note);\r\n that.orderId = order.id;\r\n BasicFunction.get_data('smartGoods/list?goodid=' + receiverId, function (receiverRes) {\r\n console.log('----- received gift -----');\r\n try {\r\n console.log(receiverRes);\r\n if (receiverRes.ret === '10000') {\r\n if (receiverRes.model === undefined || receiverRes.model == null || receiverRes.model.list == undefined || receiverRes.model.list.length <= 0) {\r\n Toast.fail('礼物查看遇到问题,请稍等一下再试吧');\r\n that.$router.push('index');\r\n return;\r\n }\r\n that.RgiftDo = receiverRes.model.list[0];\r\n that.onloadReceiveGift(id, status);\r\n }\r\n } catch (e) {\r\n console.warn(e);\r\n Toast.fail('获取数据失败,请重试');\r\n }\r\n }, {});\r\n }\r\n } catch (e) {\r\n console.warn(e);\r\n Toast.fail('数据异常!请重试');\r\n }\r\n }, {})\r\n } else this.initGifts();\r\n },\r\n onloadReceiveGift(myid, status) {\r\n let receiverId = this.RgiftDo.ownerId;\r\n let goodid = this.RgiftDo.goodid;\r\n let that = this;\r\n BasicFunction.get_data('smartIdentity/list?userId=' + receiverId, function (recvRes) {\r\n try {\r\n console.log(\"----- receiver's identity\");\r\n console.log(recvRes);\r\n if (recvRes.ret === '10000' && recvRes.model !== undefined && recvRes.model.list.length !== 0) {\r\n that.RidentityDo = recvRes.model.list[0];\r\n if (status === 3) that.onloadFeedback(myid, goodid);\r\n else that.initGifts();\r\n } else {\r\n Toast.fail('获取数据失败,请重试');\r\n }\r\n } catch (e) {\r\n console.log(e);\r\n Toast.fail('获取数据失败,请重试');\r\n }\r\n }, {});\r\n },\r\n onloadFeedback(myid, rgoodId) {\r\n let that = this;\r\n BasicFunction.get_data('smartOrderFeedback/list?goodId=' + myid, function (res) {\r\n console.log('----- received feedback -----');\r\n console.log(res);\r\n try {\r\n if (res.ret === '10000') {\r\n let comment = {\r\n content: '暂未收到'\r\n };\r\n if (res.model.list !== undefined && res.model.list.length !== 0) {\r\n comment = res.model.list[0];\r\n that.commentDo.rate = comment.ratingMajor;\r\n }\r\n that.commentDo.content = comment.content;\r\n // 对方的评价\r\n BasicFunction.get_data('smartOrderFeedback/list?goodId=' + rgoodId, function (recvRes) {\r\n console.log('----- sent feedback -----');\r\n console.log(res);\r\n try {\r\n if (recvRes.ret === '10000') {\r\n let comment = {\r\n content: '感谢信未发送或发送失败'\r\n };\r\n if (recvRes.model.list !== undefined && recvRes.model.list.length !== 0) {\r\n comment = recvRes.model.list[0];\r\n that.RcommentDo.rate = comment.ratingMajor;\r\n }\r\n that.RcommentDo.content = comment.content;\r\n that.initGifts();\r\n } else {\r\n Toast.fail('获取信息失败');\r\n that.initGifts();\r\n }\r\n } catch (e) {\r\n console.warn(e);\r\n Toast.fail('获取信息失败');\r\n that.initGifts();\r\n }\r\n }, {});\r\n } else {\r\n Toast.fail('获取信息失败');\r\n that.initGifts();\r\n }\r\n } catch (e) {\r\n console.warn(e);\r\n Toast.fail('获取信息失败');\r\n that.initGifts();\r\n }\r\n }, {});\r\n },\r\n onloadReview(goodid) {\r\n let that = this;\r\n BasicFunction.get_data('smartGoodReview/list?goodId=' + goodid, function (res) {\r\n if (res.ret === '10000' && res.model.list !== undefined) {\r\n if (res.model.list.length !== 0) {\r\n let i = sortReason(res.model.list);\r\n that.reason = res.model.list[i].displayNote;\r\n }\r\n } else Toast.fail('获取信息失败');\r\n }, {});\r\n }\r\n },\r\n created: function () {\r\n if (!localStorage.getItem('frontend-userid')) {\r\n this.$router.push('login');\r\n return;\r\n }\r\n // let presentId = this.$route.query.presentId;\r\n // console.log(this.$route.query.present);\r\n let userid = localStorage.getItem('frontend-userid');\r\n let that = this;\r\n BasicFunction.get_data('smartIdentity/list?userId=' + userid, function (res) {\r\n // console.log(res);\r\n try {\r\n if (res.ret === '10000' && !(res.model === undefined || res.model == null || res.model.list == undefined || res.model.list.length <= 0)){\r\n that.identityDo = res.model.list[0];\r\n that.loadGift();\r\n } else Toast.fail('获取信息失败');\r\n } catch (e) {\r\n console.warn(e);\r\n Toast.fail('获取信息失败');\r\n }\r\n }, {});\r\n }\r\n }\r\n\r\n // 找最后建立的那条审核单\r\n function sortReason(list) {\r\n // console.log('-----review list-----');\r\n // console.log(list);\r\n let last = 0;\r\n let lastTime = new Date((list[0].reviewTime).replace(/-/g, \"/\"));\r\n for (let i = 1; i < list.length; i++) {\r\n let time = new Date((list[i].reviewTime).replace(/-/g, \"/\"));\r\n if (lastTime < time) {\r\n lastTime = time;\r\n last = i;\r\n }\r\n }\r\n return last;\r\n }\r\n</script>\r\n\r\n<style scoped>\r\n .letter {\r\n background-color: white;\r\n margin: 20px 20px;\r\n border: solid 1px #e4e4e4;\r\n padding: 0 15px;\r\n text-align: left;\r\n }\r\n</style>","import mod from \"-!../../node_modules/cache-loader/dist/cjs.js??ref--12-0!../../node_modules/thread-loader/dist/cjs.js!../../node_modules/babel-loader/lib/index.js!../../node_modules/cache-loader/dist/cjs.js??ref--0-0!../../node_modules/vue-loader/lib/index.js??vue-loader-options!./giftDetail.vue?vue&type=script&lang=js&\"; export default mod; export * from \"-!../../node_modules/cache-loader/dist/cjs.js??ref--12-0!../../node_modules/thread-loader/dist/cjs.js!../../node_modules/babel-loader/lib/index.js!../../node_modules/cache-loader/dist/cjs.js??ref--0-0!../../node_modules/vue-loader/lib/index.js??vue-loader-options!./giftDetail.vue?vue&type=script&lang=js&\"","import { render, staticRenderFns } from \"./giftDetail.vue?vue&type=template&id=b8edaf22&scoped=true&\"\nimport script from \"./giftDetail.vue?vue&type=script&lang=js&\"\nexport * from \"./giftDetail.vue?vue&type=script&lang=js&\"\nimport style0 from \"./giftDetail.vue?vue&type=style&index=0&id=b8edaf22&scoped=true&lang=css&\"\n\n\n/* normalize component */\nimport normalizer from \"!../../node_modules/vue-loader/lib/runtime/componentNormalizer.js\"\nvar component = normalizer(\n script,\n render,\n staticRenderFns,\n false,\n null,\n \"b8edaf22\",\n null\n \n)\n\ncomponent.options.__file = \"giftDetail.vue\"\nexport default component.exports","'use strict';\n\nvar anObject = require('./_an-object');\nvar toObject = require('./_to-object');\nvar toLength = require('./_to-length');\nvar toInteger = require('./_to-integer');\nvar advanceStringIndex = require('./_advance-string-index');\nvar regExpExec = require('./_regexp-exec-abstract');\nvar max = Math.max;\nvar min = Math.min;\nvar floor = Math.floor;\nvar SUBSTITUTION_SYMBOLS = /\\$([$&`']|\\d\\d?|<[^>]*>)/g;\nvar SUBSTITUTION_SYMBOLS_NO_NAMED = /\\$([$&`']|\\d\\d?)/g;\n\nvar maybeToString = function (it) {\n return it === undefined ? it : String(it);\n};\n\n// @@replace logic\nrequire('./_fix-re-wks')('replace', 2, function (defined, REPLACE, $replace, maybeCallNative) {\n return [\n // `String.prototype.replace` method\n // https://tc39.github.io/ecma262/#sec-string.prototype.replace\n function replace(searchValue, replaceValue) {\n var O = defined(this);\n var fn = searchValue == undefined ? undefined : searchValue[REPLACE];\n return fn !== undefined\n ? fn.call(searchValue, O, replaceValue)\n : $replace.call(String(O), searchValue, replaceValue);\n },\n // `RegExp.prototype[@@replace]` method\n // https://tc39.github.io/ecma262/#sec-regexp.prototype-@@replace\n function (regexp, replaceValue) {\n var res = maybeCallNative($replace, regexp, this, replaceValue);\n if (res.done) return res.value;\n\n var rx = anObject(regexp);\n var S = String(this);\n var functionalReplace = typeof replaceValue === 'function';\n if (!functionalReplace) replaceValue = String(replaceValue);\n var global = rx.global;\n if (global) {\n var fullUnicode = rx.unicode;\n rx.lastIndex = 0;\n }\n var results = [];\n while (true) {\n var result = regExpExec(rx, S);\n if (result === null) break;\n results.push(result);\n if (!global) break;\n var matchStr = String(result[0]);\n if (matchStr === '') rx.lastIndex = advanceStringIndex(S, toLength(rx.lastIndex), fullUnicode);\n }\n var accumulatedResult = '';\n var nextSourcePosition = 0;\n for (var i = 0; i < results.length; i++) {\n result = results[i];\n var matched = String(result[0]);\n var position = max(min(toInteger(result.index), S.length), 0);\n var captures = [];\n // NOTE: This is equivalent to\n // captures = result.slice(1).map(maybeToString)\n // but for some reason `nativeSlice.call(result, 1, result.length)` (called in\n // the slice polyfill when slicing native arrays) \"doesn't work\" in safari 9 and\n // causes a crash (https://pastebin.com/N21QzeQA) when trying to debug it.\n for (var j = 1; j < result.length; j++) captures.push(maybeToString(result[j]));\n var namedCaptures = result.groups;\n if (functionalReplace) {\n var replacerArgs = [matched].concat(captures, position, S);\n if (namedCaptures !== undefined) replacerArgs.push(namedCaptures);\n var replacement = String(replaceValue.apply(undefined, replacerArgs));\n } else {\n replacement = getSubstitution(matched, S, position, captures, namedCaptures, replaceValue);\n }\n if (position >= nextSourcePosition) {\n accumulatedResult += S.slice(nextSourcePosition, position) + replacement;\n nextSourcePosition = position + matched.length;\n }\n }\n return accumulatedResult + S.slice(nextSourcePosition);\n }\n ];\n\n // https://tc39.github.io/ecma262/#sec-getsubstitution\n function getSubstitution(matched, str, position, captures, namedCaptures, replacement) {\n var tailPos = position + matched.length;\n var m = captures.length;\n var symbols = SUBSTITUTION_SYMBOLS_NO_NAMED;\n if (namedCaptures !== undefined) {\n namedCaptures = toObject(namedCaptures);\n symbols = SUBSTITUTION_SYMBOLS;\n }\n return $replace.call(replacement, symbols, function (match, ch) {\n var capture;\n switch (ch.charAt(0)) {\n case '$': return '$';\n case '&': return matched;\n case '`': return str.slice(0, position);\n case \"'\": return str.slice(tailPos);\n case '<':\n capture = namedCaptures[ch.slice(1, -1)];\n break;\n default: // \\d\\d?\n var n = +ch;\n if (n === 0) return ch;\n if (n > m) {\n var f = floor(n / 10);\n if (f === 0) return ch;\n if (f <= m) return captures[f - 1] === undefined ? ch.charAt(1) : captures[f - 1] + ch.charAt(1);\n return ch;\n }\n capture = captures[n - 1];\n }\n return capture === undefined ? '' : capture;\n });\n }\n});\n","import mod from \"-!../../node_modules/mini-css-extract-plugin/dist/loader.js??ref--6-oneOf-1-0!../../node_modules/css-loader/index.js??ref--6-oneOf-1-1!../../node_modules/vue-loader/lib/loaders/stylePostLoader.js!../../node_modules/postcss-loader/src/index.js??ref--6-oneOf-1-2!../../node_modules/cache-loader/dist/cjs.js??ref--0-0!../../node_modules/vue-loader/lib/index.js??vue-loader-options!./navBar.vue?vue&type=style&index=0&id=7f9774c3&scoped=true&lang=css&\"; export default mod; export * from \"-!../../node_modules/mini-css-extract-plugin/dist/loader.js??ref--6-oneOf-1-0!../../node_modules/css-loader/index.js??ref--6-oneOf-1-1!../../node_modules/vue-loader/lib/loaders/stylePostLoader.js!../../node_modules/postcss-loader/src/index.js??ref--6-oneOf-1-2!../../node_modules/cache-loader/dist/cjs.js??ref--0-0!../../node_modules/vue-loader/lib/index.js??vue-loader-options!./navBar.vue?vue&type=style&index=0&id=7f9774c3&scoped=true&lang=css&\"","import '../../style/base.css';","var render = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('div',[_c('van-nav-bar',{staticStyle:{\"background-color\":\"#fff6e3\"},attrs:{\"title\":_vm.title,\"border\":false}},[_vm._v(\"\\n style=\\\"max-width: 30px;\\\"\\n />\\n \"),_c('van-icon',{attrs:{\"slot\":\"left\",\"name\":\"arrow-left\",\"color\":\"black\"},on:{\"click\":_vm.onClickLeft},slot:\"left\"})],1)],1)}\nvar staticRenderFns = []\n\nexport { render, staticRenderFns }","import create from '../utils/create';\nexport default create({\n render: function render() {\n var _vm = this;\n\n var _h = _vm.$createElement;\n\n var _c = _vm._self._c || _h;\n\n return _c('div', {\n class: [_vm.b({\n fixed: _vm.fixed\n }), {\n 'van-hairline--bottom': _vm.border\n }],\n style: _vm.style\n }, [_c('div', {\n class: _vm.b('left'),\n on: {\n \"click\": function click($event) {\n _vm.$emit('click-left');\n }\n }\n }, [_vm._t(\"left\", [_vm.leftArrow ? _c('icon', {\n class: _vm.b('arrow'),\n attrs: {\n \"name\": \"arrow-left\"\n }\n }) : _vm._e(), _vm.leftText ? _c('span', {\n class: _vm.b('text'),\n domProps: {\n \"textContent\": _vm._s(_vm.leftText)\n }\n }) : _vm._e()])], 2), _c('div', {\n staticClass: \"van-ellipsis\",\n class: _vm.b('title')\n }, [_vm._t(\"title\", [_vm._v(_vm._s(_vm.title))])], 2), _c('div', {\n class: _vm.b('right'),\n on: {\n \"click\": function click($event) {\n _vm.$emit('click-right');\n }\n }\n }, [_vm._t(\"right\", [_vm.rightText ? _c('span', {\n class: _vm.b('text'),\n domProps: {\n \"textContent\": _vm._s(_vm.rightText)\n }\n }) : _vm._e()])], 2)]);\n },\n name: 'nav-bar',\n props: {\n title: String,\n fixed: Boolean,\n leftText: String,\n rightText: String,\n leftArrow: Boolean,\n border: {\n type: Boolean,\n default: true\n },\n zIndex: {\n type: Number,\n default: 1\n }\n },\n computed: {\n style: function style() {\n return {\n zIndex: this.zIndex\n };\n }\n }\n});","<template>\r\n <div>\r\n <van-nav-bar\r\n :title=\"title\"\r\n style=\"background-color: #fff6e3\"\r\n :border=\"false\">\r\n style=\"max-width: 30px;\"\r\n />\r\n <van-icon name=\"arrow-left\" slot=\"left\" @click=\"onClickLeft\" color=\"black\"/>\r\n </van-nav-bar>\r\n </div>\r\n</template>\r\n\r\n<script>\r\n import {NavBar, Icon} from 'vant';\r\n\r\n export default {\r\n name: \"navBar\",\r\n components: {\r\n [NavBar.name]: NavBar,\r\n [Icon.name]: Icon\r\n },\r\n props: {\r\n path: {\r\n type: String,\r\n default: 'index'\r\n },\r\n title: {\r\n type: String,\r\n default: \"深大换换礼物交换\"\r\n }\r\n },\r\n methods: {\r\n onClickLeft: function () {\r\n this.$router.push(this.path);\r\n }\r\n }\r\n }\r\n</script>\r\n\r\n<style scoped>\r\n\r\n</style>","import mod from \"-!../../node_modules/cache-loader/dist/cjs.js??ref--12-0!../../node_modules/thread-loader/dist/cjs.js!../../node_modules/babel-loader/lib/index.js!../../node_modules/cache-loader/dist/cjs.js??ref--0-0!../../node_modules/vue-loader/lib/index.js??vue-loader-options!./navBar.vue?vue&type=script&lang=js&\"; export default mod; export * from \"-!../../node_modules/cache-loader/dist/cjs.js??ref--12-0!../../node_modules/thread-loader/dist/cjs.js!../../node_modules/babel-loader/lib/index.js!../../node_modules/cache-loader/dist/cjs.js??ref--0-0!../../node_modules/vue-loader/lib/index.js??vue-loader-options!./navBar.vue?vue&type=script&lang=js&\"","import { render, staticRenderFns } from \"./navBar.vue?vue&type=template&id=7f9774c3&scoped=true&\"\nimport script from \"./navBar.vue?vue&type=script&lang=js&\"\nexport * from \"./navBar.vue?vue&type=script&lang=js&\"\nimport style0 from \"./navBar.vue?vue&type=style&index=0&id=7f9774c3&scoped=true&lang=css&\"\n\n\n/* normalize component */\nimport normalizer from \"!../../node_modules/vue-loader/lib/runtime/componentNormalizer.js\"\nvar component = normalizer(\n script,\n render,\n staticRenderFns,\n false,\n null,\n \"7f9774c3\",\n null\n \n)\n\ncomponent.options.__file = \"navBar.vue\"\nexport default component.exports","import mod from \"-!../../node_modules/mini-css-extract-plugin/dist/loader.js??ref--6-oneOf-1-0!../../node_modules/css-loader/index.js??ref--6-oneOf-1-1!../../node_modules/vue-loader/lib/loaders/stylePostLoader.js!../../node_modules/postcss-loader/src/index.js??ref--6-oneOf-1-2!../../node_modules/cache-loader/dist/cjs.js??ref--0-0!../../node_modules/vue-loader/lib/index.js??vue-loader-options!./giftDetail.vue?vue&type=style&index=0&id=b8edaf22&scoped=true&lang=css&\"; export default mod; export * from \"-!../../node_modules/mini-css-extract-plugin/dist/loader.js??ref--6-oneOf-1-0!../../node_modules/css-loader/index.js??ref--6-oneOf-1-1!../../node_modules/vue-loader/lib/loaders/stylePostLoader.js!../../node_modules/postcss-loader/src/index.js??ref--6-oneOf-1-2!../../node_modules/cache-loader/dist/cjs.js??ref--0-0!../../node_modules/vue-loader/lib/index.js??vue-loader-options!./giftDetail.vue?vue&type=style&index=0&id=b8edaf22&scoped=true&lang=css&\""],"sourceRoot":""}