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
4.1 KiB

{"remainingRequest":"/Users/linhuakun/Downloads/coderlhk/codewhy/node_modules/vue-loader/lib/index.js??vue-loader-options!/Users/linhuakun/Downloads/coderlhk/codewhy/src/components/content/mineOrder/ordermineListItem.vue?vue&type=script&lang=js&","dependencies":[{"path":"/Users/linhuakun/Downloads/coderlhk/codewhy/src/components/content/mineOrder/ordermineListItem.vue","mtime":1616682061518},{"path":"/Users/linhuakun/Downloads/coderlhk/codewhy/node_modules/cache-loader/dist/cjs.js","mtime":499162500000},{"path":"/Users/linhuakun/Downloads/coderlhk/codewhy/node_modules/thread-loader/dist/cjs.js","mtime":499162500000},{"path":"/Users/linhuakun/Downloads/coderlhk/codewhy/node_modules/babel-loader/lib/index.js","mtime":499162500000},{"path":"/Users/linhuakun/Downloads/coderlhk/codewhy/node_modules/cache-loader/dist/cjs.js","mtime":499162500000},{"path":"/Users/linhuakun/Downloads/coderlhk/codewhy/node_modules/vue-loader/lib/index.js","mtime":499162500000}],"contextDependencies":[],"result":[{"type":"Buffer","data":"base64:Ly8KLy8KLy8KLy8KLy8KLy8KLy8KLy8KLy8KLy8KLy8KLy8KLy8KLy8KLy8KLy8KLy8KLy8KLy8KLy8KLy8KLy8KLy8KLy8KLy8KLy8KLy8KLy8KLy8KLy8KLy8KLy8KLy8KLy8KLy8KCmV4cG9ydCBkZWZhdWx0IHsKICBuYW1lOiAib3JkZXJtaW5lTGlzdEl0ZW0iLAogIGNvbXBvbmVudHM6IHsKICB9LAogIGRhdGEoKXsKICAgIHJldHVybiB7CiAgICAgIGlzZXhpdDp0cnVlCiAgICB9CiAgfSwKICBwcm9wczp7CiAgICBpdGVtSW5mbzp7CiAgICAgIHR5cGU6T2JqZWN0LAogICAgICBkZWZhdWx0KCl7CiAgICAgICAgcmV0dXJuIHt9CiAgICAgIH0KICAgIH0KICB9LAogIGNvbXB1dGVkOnsKICB9LAogIG1ldGhvZHM6ewogICAgYXN5bmMgcmVtb3ZlKCl7CiAgICAgIHRyeXsKICAgICAgYXdhaXQgdGhpcy4kaHR0cC5kZWxldGUoJy9vcmRlci9yZW1vdmUvJyt0aGlzLml0ZW1JbmZvLmlkKTsKICAgICAgdGhpcy5pc2V4aXQ9ZmFsc2UKICAgICAgdGhpcy4kbWVzc2FnZS5zdWNjZXNzKCfliKDpmaTmiJDlip8nKQogICAgICB9Y2F0Y2goZXJyKXsKICAgICAgICB0aGlzLiRtZXNzYWdlLmVycm9yKCfliKDpmaTlpLHotKUnKQogICAgICB9CiAgICB9CiAgfQp9Cg=="},{"version":3,"sources":["ordermineListItem.vue"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAoCA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA","file":"ordermineListItem.vue","sourceRoot":"src/components/content/mineOrder","sourcesContent":["<template>\n <div id=\"shop-item\" v-if=\"isexit\">\n <!-- <div class=\"item-img\">\n <img :src=\"itemInfo.picture\" alt=\"商品图片\">\n </div>\n <div class=\"item-info\">\n <div class=\"item-title\">{{itemInfo.title}}</div>\n <div class=\"item-desc\">商品描述: {{itemInfo.title}}</div>\n <div class=\"info-bottom\">\n <div class=\"item-price left\">¥{{itemInfo.price}}</div>\n <div class=\"item-count right\">x{{itemInfo.count}}</div>\n </div>\n </div> --> \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\" >收货地址:{{itemInfo.province}}{{itemInfo.city}}{{itemInfo.area}}{{itemInfo.address}}</van-tag>\n <van-tag plain type=\"danger\" >收货人:{{itemInfo.name}}</van-tag>\n <van-tag plain type=\"danger\" >电话号码:{{itemInfo.telephone}}</van-tag>\n </template>\n </van-card>\n <template #right>\n <van-button square text=\"删除\" type=\"danger\" class=\"delete-button\" @click=\"remove\"/>\n </template>\n</van-swipe-cell>\n\n </div>\n</template> \n<script>\n export default {\n name: \"ordermineListItem\",\n components: {\n },\n data(){\n return {\n isexit:true\n }\n },\n props:{\n itemInfo:{\n type:Object,\n default(){\n return {}\n }\n }\n },\n computed:{\n },\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 }\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\n</style>\n"]}]}