diff --git a/colorui/main.css b/colorui/main.css
index 1b52349..5ffe9e5 100644
--- a/colorui/main.css
+++ b/colorui/main.css
@@ -3881,8 +3881,10 @@ scroll-view.cu-steps .cu-item {
.text-price::before {
content: "¥";
- font-size: 24rpx!important;
- margin-right: 4upx;
+ font-size: 28rpx!important;
+ margin-right: 4rpx;
+ font-weight: bold;
+ color: #FF0000;
}
.text-cut {
diff --git a/common/styles/common.css b/common/styles/common.css
index 97415b7..2bd1e98 100644
--- a/common/styles/common.css
+++ b/common/styles/common.css
@@ -322,6 +322,9 @@ radio:not([disabled]) .wx-radio-input:hover checkbox:not([disabled]) .wx-checkbo
.lf-bg-gray {
background: #777777 !important;
}
+.lf-color-price {
+ color: #FF0000 !important;
+}
.lf-color-999{
color: #999999 !important;
diff --git a/components/lf-price/lf-price.vue b/components/lf-price/lf-price.vue
new file mode 100644
index 0000000..43050c3
--- /dev/null
+++ b/components/lf-price/lf-price.vue
@@ -0,0 +1,46 @@
+
+
+
+ {{ showPrice(1) }}
+ .{{ showPrice(2) }}
+
+
+ {{ showPrice() }}
+
+
+
+
+
+
+
diff --git a/main.js b/main.js
index 4f07de6..ce39b2e 100644
--- a/main.js
+++ b/main.js
@@ -24,6 +24,10 @@ Vue.use(uView);
import { $http } from '@/common/http.js';
Vue.prototype.$http = $http;
+// 价格组件
+import lfPrice from './components/lf-price/lf-price.vue';
+Vue.component('lf-price', lfPrice);
+
//骨架屏
import Skeleton from './components/my-uni-skeleton/index.vue'
Vue.component('skeleton', Skeleton);
diff --git a/pages/goodsDetail/index.vue b/pages/goodsDetail/index.vue
index 8e0b7cb..5cb1b5a 100644
--- a/pages/goodsDetail/index.vue
+++ b/pages/goodsDetail/index.vue
@@ -14,11 +14,8 @@
{{ goods_detail.name }}
-
- ¥
- {{ goods_detail.specs[0].selling_price }}
-
- ¥{{ goods_detail.specs[0].original_price }}
+
+ ¥{{ goods_detail.specs[0].original_price }}
{{ goods_detail.specs[0].cost }}
@@ -204,17 +201,17 @@
padding: 0 32rpx;
padding-top: 20rpx;
background-color: #FFFFFF;
+ // .price>view:nth-of-type(1){
+ // color: #FF0000;
+ // margin-right: 22rpx;
+ // font-weight: bold;
+ // }
.price>view:nth-of-type(1){
- color: #FF0000;
- margin-right: 22rpx;
- font-weight: bold;
- }
- .price>view:nth-of-type(2){
text-decoration: line-through;
color: #777777;
margin-right: 22rpx;
}
- .price>view:nth-of-type(3){
+ .price>view:nth-of-type(2){
width: max-content;
padding: 0 18rpx;
height: 46rpx;
diff --git a/pages/index/index.vue b/pages/index/index.vue
index b5f399f..70073bf 100644
--- a/pages/index/index.vue
+++ b/pages/index/index.vue
@@ -18,10 +18,7 @@
{{ item.specs[0].sold_stock_text }}
-
- ¥
- {{ item.specs[0].selling_price }}
-
+
¥{{ item.specs[0].original_price }}