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.5 KiB
1 line
3.5 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=style&index=0&id=43ff2bc8&scoped=true&lang=css&","dependencies":[{"path":"/Users/linhuakun/Downloads/coderlhk/codewhy/src/components/content/mineOrder/ordermineListItem.vue","mtime":1616294244997},{"path":"/Users/linhuakun/Downloads/coderlhk/codewhy/node_modules/css-loader/dist/cjs.js","mtime":499162500000},{"path":"/Users/linhuakun/Downloads/coderlhk/codewhy/node_modules/vue-loader/lib/loaders/stylePostLoader.js","mtime":499162500000},{"path":"/Users/linhuakun/Downloads/coderlhk/codewhy/node_modules/postcss-loader/src/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:CgoKCgoKCgoKCgoKCgoKCgoKCgoKCgoKCgoKCgoKCgoKCgoKCgoKCgoKCgoKCgoKCgoKCgoKCgoKCgoKCgoKCgoKCgoKCiAuZ29vZHMtY2FyZCB7CiAgbWFyZ2luOiAwOwogIGJhY2tncm91bmQtY29sb3I6ICNmZmY7Cn0KCi5kZWxldGUtYnV0dG9uIHsKICBoZWlnaHQ6IDEwMCU7Cn0KCg=="},{"version":3,"sources":["ordermineListItem.vue"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAsEA;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 <!-- <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.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"]}]} |