1 line
3.3 KiB
Plaintext
1 line
3.3 KiB
Plaintext
|
{"version":3,"file":"s-address-item.js","sources":["../../../../../../src/sheep/components/s-address-item/s-address-item.vue","../../../../../../uniComponent:/RDovQXBwL1dvcmsvYWRkci9hY2RyLXVpL3NyYy9zaGVlcC9jb21wb25lbnRzL3MtYWRkcmVzcy1pdGVtL3MtYWRkcmVzcy1pdGVtLnZ1ZQ"],"sourcesContent":["<!-- 地址卡片 -->\r\n<template>\r\n <view\r\n class=\"address-item ss-flex ss-row-between ss-col-center\"\r\n :class=\"[{ 'border-bottom': props.hasBorderBottom }]\"\r\n >\r\n <view class=\"item-left\" v-if=\"!isEmpty(props.item)\">\r\n <view class=\"area-text ss-flex ss-col-center\">\r\n <uni-tag\r\n class=\"ss-m-r-10\"\r\n size=\"small\"\r\n custom-style=\"background-color: var(--ui-BG-Main); border-color: var(--ui-BG-Main); color: #fff;\"\r\n v-if=\"props.item.defaultStatus\"\r\n text=\"默认\"\r\n />\r\n {{ props.item.areaName }}\r\n </view>\r\n <view class=\"address-text\">\r\n {{ props.item.detailAddress }}\r\n </view>\r\n <view class=\"person-text\">{{ props.item.name }} {{ props.item.mobile }}</view>\r\n </view>\r\n <view v-else>\r\n <view class=\"address-text ss-m-b-10\">请选择收货地址</view>\r\n </view>\r\n <slot>\r\n <button class=\"ss-reset-button edit-btn\" @tap.stop=\"onEdit\">\r\n <view class=\"edit-icon ss-flex ss-row-center ss-col-center\">\r\n <image :src=\"sheep.$url.static('/static/img/shop/user/address/edit.png')\" />\r\n </view>\r\n </button>\r\n </slot>\r\n </view>\r\n</template>\r\n\r\n<script setup>\r\n/**\r\n * 基础组件 - 地址卡片\r\n *\r\n * @param {String} icon = _icon-edit - icon\r\n *\r\n * @event {Function()} click\t\t\t - 点击\r\n * @event {Function()} actionClick\t\t - 点击工具栏\r\n *\r\n * @slot \t\t\t\t\t\t\t\t - 默认插槽\r\n */\r\nimport sheep from '@/sheep'\r\nimport { isEmpty } from 'lodash-es'\r\nconst props = defineProps({\r\n item: {\r\n type: Object,\r\n default() {},\r\n },\r\n hasBorderBottom: {\r\n type: Boolean,\r\n defult: true,\r\n },\r\n})\r\n\r\nconst onEdit = () => {\r\n sheep.$router.go('/modules/mall/user/address/edit', {\r\n id: props.item.id,\r\n })\r\n}\r\n</script>\r\n\r\n<style lang=\"scss\" scoped>\r\n \r\n.address-item {\r\n padding: 24rpx 30rpx;\r\n\r\n .item-left {\r\n width: 600rpx;\r\n }\r\n\r\n .area-text {\r\n font-size: 26rpx;\r\n font-weight: 400;\r\n color: $dark-9;\r\n }\r\n\r\n .address-text {\r\n font-size: 32rpx;\r\n font-weight: 500;\r\n line-height: 48rpx;\r\n color: #333333;\r\n }\r\n\r\n .person-text {\r\n font-size: 28rpx;\r\n font-weight: 400;\r\n color: $dark-9;\r\n }\r\n}\r\n\r\n.edit-btn {\r\n width: 44rpx;\r\n height: 44rpx;\r\n background: $gray-f;\r\n border-radius: 50%;\r\n\r\n .edit-icon {\r\n width: 24rpx;\r\n height: 24rpx;\r\n }\r\n}\r\nimage {\r\n width: 100%;\r\n height: 100%;\r\n}\r\n</style>\r\n","import Component from 'D:/App/Work/addr/acdr-ui/src/sheep/components/s-address-item/s-address-item.vue'\nwx.createComponent(Component)"],"names":["sheep"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;AAgDA,UAAM,QAAQ;AAWd,UAAM,SAAS,MAAM;AACnBA,wBAAM,QAAQ,GAAG,mCAAmC;AAAA,QAClD,IAAI,MAAM,KAAK;AAAA,MACnB,CAAG;AAAA,IACH;;;;;;;;;;;;;;;;;;;;;;;;;;;;AC9DA,GAAG,gBAAgB,SAAS;"}
|