From 5550649e8a5c022de37b7582b2be7ca44c363c0a Mon Sep 17 00:00:00 2001 From: GaoHao <1210693421@qq.com> Date: Wed, 14 Aug 2024 10:47:16 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BC=9A=E5=91=98=E7=9B=B8=E5=85=B3=E5=8A=9F?= =?UTF-8?q?=E8=83=BD=E6=9B=B4=E6=96=B0?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- common/js/api.js | 4 + components/navseat.vue | 23 +- pages.json | 21 +- pages/member/billDetails - 副本.vue | 180 +++++++++++ pages/member/billDetails.vue | 11 +- pages/member/components/registermember.vue | 318 +++++++++++++++++++ pages/member/index.vue | 260 +++++++++++---- pages/member/instructions.vue | 136 ++++++++ pages/member/memberdetails - 副本.vue | 304 ++++++++++++++++++ pages/member/memberdetails.vue | 327 +++++++++++++++++-- pages/member/setPassword.vue | 251 +++++++++++++++ pages/member/storedManage.vue | 68 ++++ pages/order_food/order_food.vue | 242 ++++++++++---- pages/user/coupon - 副本.vue | 353 +++++++++++++++++++++ pages/user/coupon.vue | 14 +- pages/user/my_info.vue | 24 +- pages/user/user.vue | 4 +- 17 files changed, 2343 insertions(+), 197 deletions(-) create mode 100644 pages/member/billDetails - 副本.vue create mode 100644 pages/member/components/registermember.vue create mode 100644 pages/member/instructions.vue create mode 100644 pages/member/memberdetails - 副本.vue create mode 100644 pages/member/setPassword.vue create mode 100644 pages/member/storedManage.vue create mode 100644 pages/user/coupon - 副本.vue diff --git a/common/js/api.js b/common/js/api.js index 8d7b8a6..87e4744 100644 --- a/common/js/api.js +++ b/common/js/api.js @@ -86,6 +86,10 @@ export default { shopUserInfo(data) { return uni.api.get("/user/shopUserInfo", data); }, + // 注册会员 + openMember(data) { + return uni.api.post("/user/openMember", data); + }, // 优惠券数量 userCoupon(data) { return uni.api.get("/user/userCoupon", data); diff --git a/components/navseat.vue b/components/navseat.vue index d218c4b..33d185a 100644 --- a/components/navseat.vue +++ b/components/navseat.vue @@ -15,7 +15,18 @@ :style="{'height':HeighT.customBar+'px','marginTop':HeighT.heightBar+'px','padding-right':HeighT.custwidth + 'px'}"> - + + + + @@ -42,7 +53,8 @@ export default { data() { return { - Topdistance: '' + Topdistance: '', + searchVal: "" }; }, props: { @@ -54,6 +66,10 @@ type: String, default: '#333333' }, + search: { + type: Boolean, + default: false + }, opacity: { type: Boolean, default: false @@ -104,6 +120,9 @@ } else { uni.navigateBack() } + }, + confirmSearch () { + this.$emit('searchVal', this.searchVal) } } diff --git a/pages.json b/pages.json index 0637899..4707eea 100644 --- a/pages.json +++ b/pages.json @@ -119,6 +119,22 @@ "style": { "navigationBarTitleText": "会员列表" } + }, + { + "path": "pages/member/storedManage", + "style": { + "navigationBarTitleText": "储值管理" + } + },{ + "path": "pages/member/setPassword", + "style": { + "navigationBarTitleText": "密码设置" + } + },{ + "path": "pages/member/instructions", + "style": { + "navigationBarTitleText": "使用须知" + } }, { "path": "pages/make/make", "style": { @@ -175,7 +191,7 @@ { "path": "pages/user/coupon", "style": { - "navigationBarTitleText": "优惠券" + "navigationBarTitleText": "我的优惠券" } }, @@ -272,7 +288,8 @@ { "path": "pages/member/billDetails", "style": { - "navigationBarTitleText": "账单明细" + "navigationBarTitleText": "账单明细", + "navigationBarBackgroundColor": "#E9B385" } }, { diff --git a/pages/member/billDetails - 副本.vue b/pages/member/billDetails - 副本.vue new file mode 100644 index 0000000..46e0442 --- /dev/null +++ b/pages/member/billDetails - 副本.vue @@ -0,0 +1,180 @@ + + + + + \ No newline at end of file diff --git a/pages/member/billDetails.vue b/pages/member/billDetails.vue index 46e0442..aec7806 100644 --- a/pages/member/billDetails.vue +++ b/pages/member/billDetails.vue @@ -91,7 +91,7 @@ \ No newline at end of file diff --git a/pages/member/index.vue b/pages/member/index.vue index 446cb5f..67f672b 100644 --- a/pages/member/index.vue +++ b/pages/member/index.vue @@ -12,7 +12,7 @@ {{userInfo.amount || '0.00'}} - + {{item.name}} @@ -41,6 +41,17 @@ + + + + + 您将获得: + + + + {{ item }} + + @@ -57,28 +68,40 @@ + + + + + 已同意 + 《用户储值协议》 + 《用户授权协议》 + 立即充值 - + - + @@ -386,13 +463,13 @@ justify-content: center; text:nth-child(1){ font-weight: bold; - font-size: 24rpx; - color: #C14D3A; + font-size: 20rpx; + color: #fff; } text:nth-child(2){ font-weight: 400; - font-size: 20rpx; - color: #F7664E; + font-size: 24rpx; + color: #fff; } } } @@ -426,6 +503,39 @@ } } + .gift{ + display: flex; + flex-direction: column; + padding: 0 22rpx; + margin-bottom: 48rpx; + .gift_title{ + font-weight: bold; + font-size: 32rpx; + color: #333333; + margin-bottom: 16rpx; + } + .gift_list{ + display: flex; + flex-direction: column; + .gift_list_item{ + display: flex; + align-items: center; + .icon{ + width: 24rpx; + height: 24rpx; + border-radius: 50%; + background-color: #F7853D; + margin-right: 8rpx; + } + .text{ + font-weight: 400; + font-size: 28rpx; + color: #333333; + } + } + } + } + .explain{ background-color: #fff; border-radius: 12rpx; @@ -471,6 +581,18 @@ position: fixed; left: 0; bottom: 0; + .agreement{ + display: flex; + align-items: center; + justify-content: center; + margin-bottom: 20rpx; + text{ + font-size: 24rpx; + } + .agreement_text{ + color: #E3AD7F; + } + } .recharge { width: 100%; height: 90rpx; diff --git a/pages/member/instructions.vue b/pages/member/instructions.vue new file mode 100644 index 0000000..5df26bd --- /dev/null +++ b/pages/member/instructions.vue @@ -0,0 +1,136 @@ + + + + + \ No newline at end of file diff --git a/pages/member/memberdetails - 副本.vue b/pages/member/memberdetails - 副本.vue new file mode 100644 index 0000000..8e3ec8d --- /dev/null +++ b/pages/member/memberdetails - 副本.vue @@ -0,0 +1,304 @@ + + + + + \ No newline at end of file diff --git a/pages/member/memberdetails.vue b/pages/member/memberdetails.vue index 8e3ec8d..e6defbc 100644 --- a/pages/member/memberdetails.vue +++ b/pages/member/memberdetails.vue @@ -1,71 +1,138 @@ @@ -77,7 +144,197 @@ .content { padding: 0 28rpx; - + font-size: 12rpx; + + .card_info{ + width: 630rpx; + height: 304rpx; + margin: auto; + position: relative; + z-index: 2; + .card_info_bg{ + width: 630rpx; + height: 304rpx; + position: absolute; + z-index: 1; + } + .card_content{ + position: relative; + left: 0; + top: 0; + z-index: 2; + color: #fff; + padding: 30rpx; + .card_head{ + display: flex; + align-items: center; + justify-content: space-between; + .card_head_left{ + display: flex; + align-items: center; + .card_head_left_head{ + width: 40rpx; + height: 40rpx; + margin-right: 16rpx; + } + .card_head_left_name{ + font-weight: 400; + font-size: 32rpx; + color: #FFFFFF; + margin-right: 12rpx; + } + .card_head_left_icon_box{ + width: 64.23rpx; + height: 26.56rpx; + position: relative; + display: flex; + align-items: center; + justify-content: center; + .card_head_left_icon1{ + width: 64.23rpx; + height: 26.56rpx; + position: absolute; + left: 0; + top: 0; + } + .card_head_left_iconText{ + font-weight: bold; + font-size: 18rpx; + color: #FFFFFF; + position: relative; + z-index: 1; + } + } + + } + .card_head_right{ + width: 56rpx; + height: 56rpx; + border-radius: 50%; + background: #000000; + box-shadow: 0rpx 6rpx 12rpx 2rpx rgba(0,0,0,0.16); + display: flex; + justify-content: center; + align-items: center; + .card_head_left_qrCode{ + width: 24rpx; + height: 24rpx; + } + } + } + .card_cen{ + display: flex; + justify-content: space-between; + font-weight: 400; + font-size: 20rpx; + color: #FFFFFF; + margin-top: 20rpx; + } + .card_bom{ + display: flex; + justify-content: space-between; + margin-top: 60rpx; + .card_bom_item{ + width: 25%; + display: flex; + flex-direction: column; + align-items: center; + font-weight: 400; + text:nth-child(1){ + font-size: 30rpx; + color: #FFFFFF; + } + text:nth-child(2){ + font-size: 24rpx; + color: #FFFFFF; + } + } + } + } + } + + .card_bottom{ + width: 100%; + height: 280rpx; + background-color: #fff; + border-radius: 24rpx; + position: relative; + z-index: 1; + margin-top: -120rpx; + display: flex; + align-items: flex-end; + padding: 16rpx 42rpx; + .card_bottom_Box{ + width: 100%; + display: flex; + justify-content: space-between; + align-items: flex-end; + .card_bottom_left{ + margin-bottom: 16rpx; + } + .card_bottom_head{ + width: 80rpx; + height: 80rpx; + margin-right: 14rpx; + } + .card_bottom_title{ + font-weight: 400; + font-size: 32rpx; + color: #333333; + } + .card_bottom_text{ + font-weight: 400; + font-size: 24rpx; + color: #999999; + margin-right: 8rpx; + } + .card_bottom_icon{ + width: 22.7rpx; + height: 22.18rpx; + } + .card_bottom_right_img{ + width: 132rpx; + height: 132rpx; + } + + + .card_bottom_equity{ + display: flex; + flex-direction: column; + .card_bottom_equity_title{ + font-weight: bold; + font-size: 32rpx; + color: #333333; + } + .card_bottom_equity_list{ + display: flex; + flex-wrap: wrap; + margin-top: 32rpx; + .card_bottom_equity_list_item{ + display: flex; + flex-direction: column; + align-items: center; + margin-right: 56rpx; + .list_item_icon{ + width: 52rpx; + height: 46rpx; + margin-bottom: 6rpx; + } + .list_item_text{ + font-weight: 500; + font-size: 22rpx; + color: #333333; + } + } + } + } + } + } + .card_bottom.n{ + padding: 24rpx 42rpx; + margin-top: -80rpx; + } + .towcontentitem { width: 100%; position: relative; diff --git a/pages/member/setPassword.vue b/pages/member/setPassword.vue new file mode 100644 index 0000000..9658790 --- /dev/null +++ b/pages/member/setPassword.vue @@ -0,0 +1,251 @@ + + + + \ No newline at end of file diff --git a/pages/member/storedManage.vue b/pages/member/storedManage.vue new file mode 100644 index 0000000..251c491 --- /dev/null +++ b/pages/member/storedManage.vue @@ -0,0 +1,68 @@ + + + + + \ No newline at end of file diff --git a/pages/order_food/order_food.vue b/pages/order_food/order_food.vue index aca1fed..8b61504 100644 --- a/pages/order_food/order_food.vue +++ b/pages/order_food/order_food.vue @@ -9,7 +9,7 @@ - 月售{{item.stockNumber}} - - - ¥ - {{item.lowPrice}} - /份 - 「{{item.suit}}份起点」 + + + + + + + ¥{{item.lowPrice}}/份 - - - - - - 选规格 - {{item.cartNumber<99?item.cartNumber:'99+'}} - - - - - - {{ item.cartNumber }} - - + + + + 已售罄 + + + ¥{{item.lowPrice}}/份 + + + + + {{item.suit}}份起点 + {{item.cartNumber<99?item.cartNumber:'99+'}} + + + + + + + + 选规格 + {{item.cartNumber<99?item.cartNumber:'99+'}} + + + + + + + {{ item.cartNumber }} + + + + + + + + + + @@ -120,35 +144,59 @@ TOP{{index1+1}} + {{ item1.name }} 本店回头客第{{index1+1}}名 {{item1.shortTitle?item1.shortTitle:''}} 月售{{item1.stockNumber}} - {{ item1.lowPrice }}/份「{{item1.suit}}份起点」 - - - - 选规格 - {{item1.cartNumber<99?item1.cartNumber:'99+'}} + + + + {{ item1.lowPrice }}/份 + + + 已售罄 + - - - - + + {{ item1.lowPrice }}/份 + + + + {{item1.suit}}份起点 + {{item1.cartNumber<99?item1.cartNumber:'99+'}} + + - {{ item1.cartNumber }} - - + + + + 选规格 + {{item1.cartNumber<99?item1.cartNumber:'99+'}} + + + + + + + + {{ item1.cartNumber }} + + + + + - + + + @@ -205,12 +253,14 @@ {{ item.salePrice }} - + + {{ item.number }} - + + @@ -296,14 +346,14 @@ - + + {{amountcartNumber}} - + + @@ -513,6 +563,10 @@ // e.currentTarget.src }, + searchVal (e) { + console.log(e) + }, + /** * 商品数量增加/减少 * @param {Object} item @@ -614,7 +668,7 @@ if (res.code == 0) { this.showShopsku = false; this.pagemetashow = false; - this.$set(this, 'amountcartNumber', 0) + // this.$set(this, 'amountcartNumber', 0) } }, @@ -682,6 +736,9 @@ * @param {Object} index1 */ async clickspecifications(item1, index, index1, type) { + if ( item1.isPauseSale != 0 ) { + return; + } this.skuidname = [] this.specifications = item1 this.specifications.indexa = index @@ -854,7 +911,15 @@ this.showShopsku = true //打开弹框 this.pagemetashow = true } - this.$set(this, 'amountcartNumber', 0) + this.$set(this, 'amountcartNumber', 0); + if ( this.isSpec ) { + if ( this.skuSuit > 1) { + this.$set(this, 'amountcartNumber', 0); + } else { + this.$set(this, 'amountcartNumber', 1); + } + } + } catch (e) {} }, @@ -1204,7 +1269,6 @@ } .panelfiveitemsex { - margin-top: 32rpx; .panelfiveitemsex_oen { text:nth-child(1) { @@ -1241,7 +1305,6 @@ // position: absolute; // bottom: 82rpx; // right: 0; - padding-bottom: 48rpx; display: flex; align-items: center; justify-content: flex-end; @@ -1282,6 +1345,18 @@ .num { margin: 8rpx 8rpx 0 8rpx; } + .btn{ + display: flex; + align-items: center; + justify-content: center; + position: relative; + .btnClick{ + width: 100rpx; + height: 100rpx; + position: absolute; + // bottom: 0; + } + } } } } @@ -1471,7 +1546,18 @@ padding: 0 16upx; } - + .btn{ + display: flex; + align-items: center; + justify-content: center; + position: relative; + .btnClick{ + width: 100rpx; + height: 100rpx; + position: absolute; + // bottom: 0; + } + } } .addShopping { @@ -1562,16 +1648,20 @@ } .btn { - width: 160rpx; - height: 64rpx; - background: #E7AE7B; - border-radius: 36rpx 36rpx 36rpx 36rpx; - border: 2rpx solid #E8AD7B; + height: 100%; + width: 40%; display: flex; align-items: center; - justify-content: center; + justify-content: flex-end; .t { + width: 160rpx; + height: 64rpx; + line-height: 64rpx; + text-align: center; + background: #E7AE7B; + border-radius: 36rpx 36rpx 36rpx 36rpx; + border: 2rpx solid #E8AD7B; font-weight: bold; font-size: 28rpx; color: #FFFFFF; @@ -1728,8 +1818,19 @@ display: flex; align-items: center; justify-content: center; - - + position: relative; + .btnClick{ + width: 100rpx; + height: 100rpx; + position: absolute; + // bottom: 0; + } + .btnClick.l{ + right: 0; + } + .btnClick.r{ + left: 0; + } } } } @@ -2016,7 +2117,20 @@ // bottom: 10rpx; // right: 20rpx; .num { - margin: auto 8rpx; + + margin: auto 16rpx; + } + .btn{ + display: flex; + align-items: center; + justify-content: center; + position: relative; + .btnClick{ + width: 100rpx; + height: 100rpx; + position: absolute; + // bottom: 0; + } } } } diff --git a/pages/user/coupon - 副本.vue b/pages/user/coupon - 副本.vue new file mode 100644 index 0000000..9c4e07e --- /dev/null +++ b/pages/user/coupon - 副本.vue @@ -0,0 +1,353 @@ + + + + + \ No newline at end of file diff --git a/pages/user/coupon.vue b/pages/user/coupon.vue index 9c4e07e..f65f80d 100644 --- a/pages/user/coupon.vue +++ b/pages/user/coupon.vue @@ -5,7 +5,7 @@ - {{item.name}} + {{item.name}} @@ -144,7 +144,7 @@ }; -