|
|
@@ -10,7 +10,7 @@
|
|
|
</view>
|
|
|
</view>
|
|
|
|
|
|
- <!-- 搜索框和花材绿植按钮区域 -->
|
|
|
+ <!-- 搜索框和按钮区域 -->
|
|
|
<view class="search-wrap">
|
|
|
<view class="search-bar">
|
|
|
<app-search-module
|
|
|
@@ -21,7 +21,13 @@
|
|
|
:fontSize="28"
|
|
|
/>
|
|
|
</view>
|
|
|
- <view class="buy-material-container">
|
|
|
+ <view class="buy-flower-container">
|
|
|
+ <button class="buy-flower-btn" @click="buyHs()">
|
|
|
+ <view class="btn-content">
|
|
|
+ <view class="flower-icon-css"></view>
|
|
|
+ <text class="btn-text">花束花礼</text>
|
|
|
+ </view>
|
|
|
+ </button>
|
|
|
<button class="buy-material-btn" @click="buyProduct()">
|
|
|
<view class="btn-content">
|
|
|
<text class="btn-text">花材绿植</text>
|
|
|
@@ -175,6 +181,10 @@ export default {
|
|
|
let account = this.option.account?this.option.account:0
|
|
|
this.$util.pageTo({url:"/pages/item/item?account="+account+'&hdId='+this.hdId,type:2})
|
|
|
},
|
|
|
+ buyHs(){
|
|
|
+ let account = this.option.account ? this.option.account : 0
|
|
|
+ this.$util.pageTo({url: "/pages/home/category?account="+account+'&hdId='+this.hdId,type:2})
|
|
|
+ },
|
|
|
loginTo() {
|
|
|
let account = this.option.account?this.option.account:0
|
|
|
this.$util.pageTo({url:"/pages/login/index?needBack=1&account="+account})
|
|
|
@@ -550,8 +560,85 @@ page {
|
|
|
}
|
|
|
}
|
|
|
|
|
|
-.buy-material-container {
|
|
|
+.buy-flower-container {
|
|
|
flex-shrink: 0;
|
|
|
+ display: flex;
|
|
|
+ gap: 10upx;
|
|
|
+}
|
|
|
+
|
|
|
+.buy-flower-btn {
|
|
|
+ position: relative;
|
|
|
+ background: linear-gradient(135deg, #ff6b6b, #ff8e8e, #ffa8a8);
|
|
|
+ border: none;
|
|
|
+ border-radius: 50upx;
|
|
|
+ padding: 0;
|
|
|
+ height: 80upx;
|
|
|
+ min-width: 200upx;
|
|
|
+ box-shadow: 0 8upx 20upx rgba(255, 107, 107, 0.3);
|
|
|
+ overflow: hidden;
|
|
|
+ animation: pulse 2s infinite;
|
|
|
+
|
|
|
+ &:active {
|
|
|
+ box-shadow: 0 4upx 10upx rgba(255, 107, 107, 0.4);
|
|
|
+ }
|
|
|
+
|
|
|
+ .btn-content {
|
|
|
+ display: flex;
|
|
|
+ align-items: center;
|
|
|
+ justify-content: center;
|
|
|
+ height: 100%;
|
|
|
+ position: relative;
|
|
|
+ z-index: 1;
|
|
|
+ text-align: center;
|
|
|
+ }
|
|
|
+
|
|
|
+ .flower-icon-css {
|
|
|
+ width: 24upx;
|
|
|
+ height: 24upx;
|
|
|
+ margin-right: 8upx;
|
|
|
+ position: relative;
|
|
|
+
|
|
|
+ &::before {
|
|
|
+ content: '';
|
|
|
+ position: absolute;
|
|
|
+ width: 16upx;
|
|
|
+ height: 16upx;
|
|
|
+ background: #fff;
|
|
|
+ border-radius: 50%;
|
|
|
+ top: 4upx;
|
|
|
+ left: 4upx;
|
|
|
+ box-shadow:
|
|
|
+ 0 -8upx 0 -2upx #fff,
|
|
|
+ 8upx -6upx 0 -2upx #fff,
|
|
|
+ 8upx 6upx 0 -2upx #fff,
|
|
|
+ 0 8upx 0 -2upx #fff,
|
|
|
+ -8upx 6upx 0 -2upx #fff,
|
|
|
+ -8upx -6upx 0 -2upx #fff;
|
|
|
+ }
|
|
|
+
|
|
|
+ &::after {
|
|
|
+ content: '';
|
|
|
+ position: absolute;
|
|
|
+ width: 8upx;
|
|
|
+ height: 8upx;
|
|
|
+ background: #ffeb3b;
|
|
|
+ border-radius: 50%;
|
|
|
+ top: 8upx;
|
|
|
+ left: 8upx;
|
|
|
+ }
|
|
|
+ }
|
|
|
+
|
|
|
+ .btn-text {
|
|
|
+ color: white;
|
|
|
+ font-size: 28upx;
|
|
|
+ font-weight: bold;
|
|
|
+ text-shadow: 0 2upx 4upx rgba(0, 0, 0, 0.2);
|
|
|
+ margin-right: 8upx;
|
|
|
+ text-align: center;
|
|
|
+ line-height: 1;
|
|
|
+ display: flex;
|
|
|
+ align-items: center;
|
|
|
+ }
|
|
|
}
|
|
|
|
|
|
.buy-material-btn {
|
|
|
@@ -588,6 +675,18 @@ page {
|
|
|
}
|
|
|
}
|
|
|
|
|
|
+@keyframes pulse {
|
|
|
+ 0% {
|
|
|
+ box-shadow: 0 8upx 20upx rgba(255, 107, 107, 0.3);
|
|
|
+ }
|
|
|
+ 50% {
|
|
|
+ box-shadow: 0 12upx 30upx rgba(255, 107, 107, 0.4);
|
|
|
+ }
|
|
|
+ 100% {
|
|
|
+ box-shadow: 0 8upx 20upx rgba(255, 107, 107, 0.3);
|
|
|
+ }
|
|
|
+}
|
|
|
+
|
|
|
@keyframes fadeInFrames {
|
|
|
0% {
|
|
|
opacity: 0;
|