1 line
12 KiB
Plaintext
1 line
12 KiB
Plaintext
{"version":3,"sources":["uni-app:///main.js","webpack:///D:/chenq/chen/uniapp(兼小程序)/dengrui/pagesA/evaluate/evaluate.vue?0d29","webpack:///D:/chenq/chen/uniapp(兼小程序)/dengrui/pagesA/evaluate/evaluate.vue?4f3a","webpack:///D:/chenq/chen/uniapp(兼小程序)/dengrui/pagesA/evaluate/evaluate.vue?8d51","webpack:///D:/chenq/chen/uniapp(兼小程序)/dengrui/pagesA/evaluate/evaluate.vue?5af8","uni-app:///pagesA/evaluate/evaluate.vue"],"names":["createPage","Page"],"mappings":";;;;;;;;;;kDAAA;AACA;AACA,sG;AACAA,UAAU,CAACC,iBAAD,CAAV,C;;;;;;;;;;;;;ACHA;AAAA;AAAA;AAAA;AAAA;AAAqH;AACrH;AAC4D;AACL;;;AAGvD;AACmL;AACnL,gBAAgB,uLAAU;AAC1B,EAAE,8EAAM;AACR,EAAE,mFAAM;AACR,EAAE,4FAAe;AACjB;AACA;AACA;AACA;AACA;AACA,EAAE,uFAAU;AACZ;AACA;;AAEA;AACe,gF;;;;;;;;;;;;ACtBf;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;;;;;;;;;;;;;ACAA;AAAA;AAAA;AAAA;AAAA;AAAA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;;;;;;;;;;;;;ACRA;AAAA;AAAA;AAAA;AAAqrB,CAAgB,oqBAAG,EAAC,C;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AC2CzsB;AACA;AACA,cADA,EADA;;AAIA,MAJA,kBAIA;AACA;AACA,gBADA;AAEA,gBAFA;AAGA,oBAHA;AAIA,iBAJA;AAKA,oBALA;AAMA,qBANA;AAOA,mBAPA;AAQA,kBARA;AASA,gDATA;;AAWA,GAhBA;AAiBA,UAjBA,sBAiBA;AACA;AACA,GAnBA;AAoBA,QApBA,oBAoBA;AACA;AACA;AACA,GAvBA;AAwBA,QAxBA,oBAwBA;AACA;AACA,GA1BA;AA2BA;AACA,UADA,oBACA;AACA;AACA;AACA;AACA,qDADA;AAEA,2BAFA;AAGA,6BAHA;AAIA,6BAJA;;AAMA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,4CADA;;AAGA,WALA,EAKA,GALA;AAMA;AACA,OAZA,EAYA;AACA;AACA;AACA,OAfA;AAgBA,KA3BA;AA4BA,cA5BA,sBA4BA,GA5BA,EA4BA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,KAnCA;AAoCA,aApCA,uBAoCA;AACA;AACA,gBADA;AAEA,gCAFA;AAGA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,yDADA,CACA;AACA;AACA;AACA;AACA;AACA;AACA,mFADA;AAEA,mCAFA;;AAIA,iBALA,MAKA;AACA;AACA;AACA;AACA;AACA,aAjBA,EAiBA,mBAjBA;AAkBA,WAnBA;AAoBA,SA1BA;;AA4BA,KAjEA;AAkEA,cAlEA,sBAkEA,KAlEA,EAkEA;AACA;AACA,sBADA;AAEA,yBAFA;;AAIA,KAvEA;AAwEA,UAxEA,kBAwEA,KAxEA,EAwEA;AACA;AACA,KA1EA,EA3BA,E","file":"pagesA/evaluate/evaluate.js","sourcesContent":["import 'uni-pages';\nimport Vue from 'vue'\nimport Page from './pagesA/evaluate/evaluate.vue'\ncreatePage(Page)","import { render, staticRenderFns, recyclableRender, components } from \"./evaluate.vue?vue&type=template&id=5641606a&\"\nvar renderjs\nimport script from \"./evaluate.vue?vue&type=script&lang=js&\"\nexport * from \"./evaluate.vue?vue&type=script&lang=js&\"\n\n\n/* normalize component */\nimport normalizer from \"!../../../../../../HbuilderX/HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/vue-cli-plugin-uni/packages/vue-loader/lib/runtime/componentNormalizer.js\"\nvar component = normalizer(\n script,\n render,\n staticRenderFns,\n false,\n null,\n null,\n null,\n false,\n components,\n renderjs\n)\n\ncomponent.options.__file = \"pagesA/evaluate/evaluate.vue\"\nexport default component.exports","export * from \"-!../../../../../../HbuilderX/HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/vue-cli-plugin-uni/packages/vue-loader/lib/loaders/templateLoader.js??vue-loader-options!../../../../../../HbuilderX/HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/vue-cli-plugin-uni/packages/webpack-preprocess-loader/index.js??ref--16-0!../../../../../../HbuilderX/HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/webpack-uni-mp-loader/lib/template.js!../../../../../../HbuilderX/HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/vue-cli-plugin-uni/packages/webpack-uni-app-loader/page-meta.js!../../../../../../HbuilderX/HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/vue-cli-plugin-uni/packages/vue-loader/lib/index.js??vue-loader-options!../../../../../../HbuilderX/HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/webpack-uni-mp-loader/lib/style.js!./evaluate.vue?vue&type=template&id=5641606a&\"","var components\nvar render = function() {\n var _vm = this\n var _h = _vm.$createElement\n var _c = _vm._self._c || _h\n}\nvar recyclableRender = false\nvar staticRenderFns = []\nrender._withStripped = true\n\nexport { render, staticRenderFns, recyclableRender, components }","import mod from \"-!../../../../../../HbuilderX/HBuilderX/plugins/uniapp-cli/node_modules/babel-loader/lib/index.js!../../../../../../HbuilderX/HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/vue-cli-plugin-uni/packages/webpack-preprocess-loader/index.js??ref--12-1!../../../../../../HbuilderX/HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/webpack-uni-mp-loader/lib/script.js!../../../../../../HbuilderX/HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/vue-cli-plugin-uni/packages/vue-loader/lib/index.js??vue-loader-options!../../../../../../HbuilderX/HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/webpack-uni-mp-loader/lib/style.js!./evaluate.vue?vue&type=script&lang=js&\"; export default mod; export * from \"-!../../../../../../HbuilderX/HBuilderX/plugins/uniapp-cli/node_modules/babel-loader/lib/index.js!../../../../../../HbuilderX/HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/vue-cli-plugin-uni/packages/webpack-preprocess-loader/index.js??ref--12-1!../../../../../../HbuilderX/HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/webpack-uni-mp-loader/lib/script.js!../../../../../../HbuilderX/HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/vue-cli-plugin-uni/packages/vue-loader/lib/index.js??vue-loader-options!../../../../../../HbuilderX/HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/webpack-uni-mp-loader/lib/style.js!./evaluate.vue?vue&type=script&lang=js&\"","<template>\n <view class=\"\">\n <!-- 使用标题栏 -->\r\n <status-nav :statusBackw=\"true\" :statusTitle=\"true\" :title-val=\"'评价'\" :tabcolor=\"'#ffffff'\"></status-nav>\r\n <view :style=\"{paddingTop:statusHNH+'px'}\">\r\n <view class=\"margin-s20 bacb padding-zy20 borbot padding-x20\">\r\n <view class=\"dis padding-sx30\">\r\n <image class=\"flexs goodsImg\" :src=\"orderPing.skuList[0].src\" mode=\"aspectFill\"></image>\r\n <view class=\"margin-z20\">\r\n <view class=\"clips2 fon28 color33\">{{orderPing.skuList[0].title}}</view>\r\n <view v-if=\"rateCon!=''\" class=\"fon24 colorf78 margin-s20\">已评价{{rateNum}}星,{{rateCon}}.</view>\r\n </view>\r\n </view>\r\n <view class=\"borbot\"></view>\r\n <view class=\"disac fon30 padding-sx30\">\r\n <view class=\"color33 margin-y20\">商品评价</view>\r\n <rate :size=\"42\" :gutter=\"20\" v-model=\"rateNum\" @change=\"chooseRate\"></rate>\r\n <view class=\"color9\">{{rateCon}}</view>\r\n </view>\r\n <view class=\"dis padding-sx30 padding-zy30\" style=\"background-color: #f6f6f6;height: 144rpx;border-radius: 8rpx;\">\r\n <image class=\"flexs\" style=\"width: 32rpx;height: 35rpx;\" src=\"/static/img/public/evaEdit.png\" mode=\"\"></image>\r\n <textarea v-model=\"content\" style=\"height: auto;\" maxlength=\"500\" class=\"fon26 color9 margin-z20\" placeholder=\"多方面描述评价宝,可以帮助等多想买的人哦!\" />\r\n </view>\r\n <view class=\" margin-s20 flexs disac flw padding-x40\">\r\n <view v-if=\"imgSrc.length!=0\" v-for=\"(item,index) in imgSrc\" :key=\"index\" class=\"posir margin-y20 margin-x20 pimg-box\">\r\n <image @tap=\"previewImg(index)\" style=\"border-radius: 8rpx;height: 159rpx;width: 159rpx;\" :src=\"item\" mode=\"aspectFill\"></image>\r\n <image @tap=\"delimg(index)\" class=\"posia\" style=\"width: 30rpx;height: 30rpx;right: 6rpx;top: 6rpx;\" src=\"/static/img/product/pclose.png\" mode=\"\"></image>\r\n </view>\r\n <view @tap=\"chooseImg\" class=\"discc margin-x20\" style=\"height: 159rpx;width: 159rpx;border: 1rpx dashed #9c9c9c;border-radius: 8rpx;\">\r\n <image style=\"width: 63rpx;height: 57rpx;\" src=\"/static/img/public/bussiness.png\" mode=\"\"></image>\r\n <view class=\"fon26 margin-s20\" style=\"color: #7d7b7e;\">添加图片</view>\r\n </view>\r\n </view>\r\n </view>\r\n <view class=\"disbc\">\r\n <button class=\"businessbtn\" @tap=\"submit\" :disabled=\"disabled\">{{btncon}}</button>\r\n </view>\r\n </view>\r\n </view>\n</template>\n\n<script>\r\n import rate from '@/components/rate.vue';\r\n export default {\r\n components:{\r\n rate\r\n },\r\n data() {\n return {\r\n imgSrc:[],\r\n rateNum:5,\r\n rateCon:'非常好',\r\n content:'',\r\n btncon:'提交评价',\r\n disabled:false,\r\n\t\t\t\torderPing:{},\r\n\t\t\t\tchuanImg:'',\r\n\t\t\t\tstatusHNH:uni.getStorageSync('statusHNH')\r\n }\n },\r\n\t\tonUnload() {\r\n\t\t\tuni.removeStorageSync('orderPing')\r\n\t\t},\r\n onLoad() {\r\n this.orderPing = uni.getStorageSync('orderPing')\r\n\t\t\t// console.log('数据:',this.orderPing);\r\n },\r\n\t\tonShow() {\r\n\t\t\tthis.$toolAll.tools.guoq()\r\n\t\t},\n methods: {\r\n submit(){//提交评价事件\r\n\t\t\t\tthis.disabled = true\r\n\t\t\t\tthis.btncon = '正在提交评价...'\r\n\t\t\t\tlet pingObj = {\r\n\t\t\t\t\torder_sku_id:this.orderPing.skuList[0].danId,\r\n\t\t\t\t\tgrade:this.rateNum,\r\n\t\t\t\t\tcontent:this.content,\r\n\t\t\t\t\timages:this.chuanImg\r\n\t\t\t\t}\r\n\t\t\t\t// console.log(pingObj);\r\n\t\t\t\tthis.$requst.post('order/comment-add',pingObj).then(res=>{\r\n\t\t\t\t\t// console.log(res);\r\n\t\t\t\t\tif(res.code==0){\r\n\t\t\t\t\t\tthis.$toolAll.tools.showToast('提交评论成功')\r\n\t\t\t\t\t\tthis.btncon = '提交评价'\r\n\t\t\t\t\t\tsetTimeout(()=>{\r\n\t\t\t\t\t\t\tthis.disabled = false\r\n\t\t\t\t\t\t\tuni.navigateTo({\r\n\t\t\t\t\t\t\t\turl:'/pagesA/myOrder/myOrder'\r\n\t\t\t\t\t\t\t})\r\n\t\t\t\t\t\t},500)\r\n\t\t\t\t\t}\r\n\t\t\t\t},error=>{\r\n\t\t\t\t\tthis.disabled = false\r\n\t\t\t\t\tthis.$toolAll.tools.showToast('提交评论失败')\r\n\t\t\t\t})\r\n },\r\n chooseRate(val){\r\n this.rateNum = val\r\n if(val==1){this.rateCon = '极差'}\r\n if(val==2){this.rateCon = '差'}\r\n if(val==3){this.rateCon = '一般'}\r\n if(val==4){this.rateCon = '好'}\r\n if(val==5){this.rateCon = '非常好'}\r\n },\r\n chooseImg(){\r\n uni.chooseImage({\r\n count:9,\r\n sizeType:['compressed'],\r\n success: (res) => {\r\n\t\t\t\t\t\tlet len = res.tempFilePaths.length\r\n\t\t\t\t\t\tlet imgArr = []\r\n res.tempFilePaths.forEach(item=>{\r\n\t\t\t\t\t\t\tthis.$requst.upload('file/upload/image',{file:item}).then(res=>{\r\n\t\t\t\t\t\t\t\t// console.log('图片',res);\r\n\t\t\t\t\t\t\t\tif(res.code==0){//\tsrc原图\r\n\t\t\t\t\t\t\t\t\tlet imgsrc = this.$http + res.data.src//缩略图\r\n\t\t\t\t\t\t\t\t\timgArr.push(res.data.src)\r\n\t\t\t\t\t\t\t\t\tthis.imgSrc.push(imgsrc)\r\n\t\t\t\t\t\t\t\t\tlen--\r\n\t\t\t\t\t\t\t\t\tif(len!=0){\r\n\t\t\t\t\t\t\t\t\t\tuni.showToast({\r\n\t\t\t\t\t\t\t\t\t\t\ttitle:`正在上传第 ${len} 张`,\r\n\t\t\t\t\t\t\t\t\t\t\ticon:'loading'\r\n\t\t\t\t\t\t\t\t\t\t})\r\n\t\t\t\t\t\t\t\t\t} else {\r\n\t\t\t\t\t\t\t\t\t\tthis.$toolAll.tools.showToast('图片上传成功(*^▽^*)')\r\n\t\t\t\t\t\t\t\t\t\tthis.chuanImg = imgArr.join(',');\r\n\t\t\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\t},error=>{})\r\n })\r\n }\r\n })\r\n },\r\n previewImg(index){//预览图片\r\n uni.previewImage({\r\n current:index,\r\n urls:this.imgSrc\r\n })\r\n },\r\n delimg(index){//删除图片\r\n this.imgSrc.splice(index,1)\r\n }\n }\n }\n</script>\n\n<style>\n</style>\n"],"sourceRoot":""} |