You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

1 line
3.7 KiB

{"remainingRequest":"/Users/linhuakun/Downloads/coderlhk/big bar/bigbar-start/node_modules/vue-loader/lib/index.js??vue-loader-options!/Users/linhuakun/Downloads/coderlhk/big bar/bigbar-start/src/components/content/mineOrder/ordermineListItem.vue?vue&type=style&index=0&id=4d4b246e&scoped=true&lang=css&","dependencies":[{"path":"/Users/linhuakun/Downloads/coderlhk/big bar/bigbar-start/src/components/content/mineOrder/ordermineListItem.vue","mtime":1617458787223},{"path":"/Users/linhuakun/Downloads/coderlhk/big bar/bigbar-start/node_modules/css-loader/dist/cjs.js","mtime":499162500000},{"path":"/Users/linhuakun/Downloads/coderlhk/big bar/bigbar-start/node_modules/vue-loader/lib/loaders/stylePostLoader.js","mtime":499162500000},{"path":"/Users/linhuakun/Downloads/coderlhk/big bar/bigbar-start/node_modules/postcss-loader/src/index.js","mtime":499162500000},{"path":"/Users/linhuakun/Downloads/coderlhk/big bar/bigbar-start/node_modules/cache-loader/dist/cjs.js","mtime":499162500000},{"path":"/Users/linhuakun/Downloads/coderlhk/big bar/bigbar-start/node_modules/vue-loader/lib/index.js","mtime":499162500000}],"contextDependencies":[],"result":[{"type":"Buffer","data":"base64:CgoKCgoKCgoKCgoKCgoKCgoKCgoKCgoKCgoKCgoKCgoKCgoKCgoKCgoKCgoKCgoKCgoKCgoKCgoKCgoKCgoKCgoKCgoKCgoKCgoKCgoKCgoKLmdvb2RzLWNhcmQgewogIG1hcmdpbjogMDsKICBiYWNrZ3JvdW5kLWNvbG9yOiAjZmZmOwp9CgouZGVsZXRlLWJ1dHRvbiB7CiAgaGVpZ2h0OiAxMDAlOwp9Cg=="},{"version":3,"sources":["ordermineListItem.vue"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAiFA;AACA;AACA;AACA;;AAEA;AACA;AACA","file":"ordermineListItem.vue","sourceRoot":"src/components/content/mineOrder","sourcesContent":["<template>\n <div id=\"shop-item\" v-if=\"isexit\">\n <van-swipe-cell>\n <van-card\n :num=\"itemInfo.count\"\n :price=\"itemInfo.price\"\n :desc=\"itemInfo.detail\"\n :title=\"itemInfo.title\"\n class=\"goods-card\"\n :thumb=\"itemInfo.picture\"\n >\n <template #tags>\n <van-tag plain type=\"danger\"\n >收货地址:{{ itemInfo.province }}{{ itemInfo.city\n }}{{ itemInfo.area }}{{ itemInfo.address }}</van-tag\n >\n <van-tag plain type=\"danger\">收货人:{{ itemInfo.name }}</van-tag>\n <van-tag plain type=\"danger\"\n >电话号码:{{ itemInfo.telephone }}</van-tag\n >\n <van-tag plain type=\"primary\">货物状态:{{ isemit() }}</van-tag>\n </template>\n </van-card>\n <template #right>\n <van-button\n square\n text=\"删除\"\n type=\"danger\"\n class=\"delete-button\"\n @click=\"remove\"\n />\n </template>\n </van-swipe-cell>\n </div>\n</template>\n<script>\nexport default {\n name: \"ordermineListItem\",\n components: {},\n data() {\n return {\n isexit: true,\n };\n },\n props: {\n itemInfo: {\n type: Object,\n default() {\n return {};\n }\n }\n },\n created(){\n },\n computed: {},\n methods: {\n async remove() {\n try {\n await this.$http.delete(\"/order/remove/\" + this.itemInfo.id);\n this.isexit = false;\n this.$message.success(\"删除成功\");\n } catch (err) {\n this.$message.error(\"删除失败\");\n }\n },\n isemit() {\n if (this.itemInfo.isemit == \"2\") {\n this.isexit = false;\n return \"发货\";\n } else if(this.itemInfo.isemit == \"3\"){\n this.isexit = false;\n return \"已完成\";\n } else {\n return \"未发货\";\n }\n }\n }\n};\n</script>\n\n<style scoped>\n.goods-card {\n margin: 0;\n background-color: #fff;\n}\n\n.delete-button {\n height: 100%;\n}\n</style>\n"]}]}