From bb1d32a20cb770b0c84a72b6afef8bfef75a54da Mon Sep 17 00:00:00 2001
From: ld0104 <3037885725@qq.com>
Date: Thu, 20 Oct 2022 19:45:29 +0800
Subject: [PATCH] =?UTF-8?q?=E8=B0=83=E8=BD=AE=E6=92=AD=E5=9B=BE=EF=BC=8C?=
=?UTF-8?q?=E5=B8=B8=E8=A7=81=E9=97=AE=E9=A2=98=EF=BC=8C=E5=85=B3=E4=BA=8E?=
=?UTF-8?q?=E6=88=91=E4=BB=AC=E9=A1=B5=E9=9D=A2=E6=8E=A5=E5=8F=A3?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
---
api/public.js | 2 +
api/store.js | 27 +-
api/user.js | 26 +
pages/activity/activity/index.vue | 22 +-
pages/home/index.vue | 1867 +++++++++--------
.../Evaluations/EvaluationDetail/index.vue | 26 +-
pages/shop/GoodsCollection/index.vue | 738 ++++---
pages/shop/brands/index.vue | 24 +-
pages/user/AboutUs/index.vue | 21 +-
pages/user/PersonalData/index.vue | 3 +
pages/user/Problem/index.vue | 84 +-
pages/user/coupon/GetCoupon/index.vue | 22 +-
pages/user/signIn/Sign/index.vue | 1 +
13 files changed, 1582 insertions(+), 1281 deletions(-)
diff --git a/api/public.js b/api/public.js
index fe8d4b1..98a1139 100644
--- a/api/public.js
+++ b/api/public.js
@@ -17,6 +17,8 @@ export function getCanvas() {
return request.get("/getCanvas?terminal=3", {}, { login: false });
}
+
+
/**
* 热门榜单
* @returns {*}
diff --git a/api/store.js b/api/store.js
index a9d2c5d..8469f78 100644
--- a/api/store.js
+++ b/api/store.js
@@ -1,4 +1,13 @@
import request from "@/utils/request";
+/**
+ * 获取各类轮播图
+ *
+ */
+export function getBanner(type) {
+ return request.get("/menu/banner/"+type,{}, { login: false });
+}
+
+
/*
* 商品分类
@@ -209,15 +218,15 @@ export function getBrands() {
login: false
});
}
-/**
- * 添加收藏
- *
- */
-export function getUserCollection(data) {
- console.log(9999999966);
- return request.post("/collectEvaluation/add", data, {
- login: true
- });
+/**
+ * 添加收藏
+ *
+ */
+export function getUserCollection(data) {
+ console.log(9999999966);
+ return request.post("/collectEvaluation/add", data, {
+ login: true
+ });
}
/**
*
diff --git a/api/user.js b/api/user.js
index 32f4512..1e9644a 100644
--- a/api/user.js
+++ b/api/user.js
@@ -1,4 +1,5 @@
import request from '@/utils/request'
+import { dataFormat } from '../utils'
/**
* 省市区
@@ -195,6 +196,17 @@ export function getCollectUser(page, limit, type) {
type,
})
}
+/**
+ *
+ * 获取评测收藏
+ */
+export function getCollectEvaluation(page, limit, type) {
+ return request.get('/collectEvaluation/user', {
+ page: page,
+ limit: limit,
+ type,
+ })
+}
/*
* 删除收藏产品
@@ -442,3 +454,17 @@ export function setDetection() {
export function getRechargeApi() {
return request.get('recharge/index')
}
+
+/**
+ * 常见问题
+ */
+export function getProblem() {
+ return request.get('/menu/problem',{})
+}
+/**
+ * 关于我们
+ */
+export function getAboutUs() {
+ return request.get('/menu/aboutUs',{})
+}
+
diff --git a/pages/activity/activity/index.vue b/pages/activity/activity/index.vue
index 819de7f..9ff1eb2 100644
--- a/pages/activity/activity/index.vue
+++ b/pages/activity/activity/index.vue
@@ -15,7 +15,7 @@
-
+
@@ -88,6 +88,7 @@
+
+ // .menus-box {
+ // position: relative;
+ // top: ;
+ // }
+
+ // .cu-bar.fixed {
+ // position: fixed;
+ // width: 100%;
+ // top: 0;
+ // z-index: 1024;
+ // // box-shadow: 0 1upx 6upx rgba(0, 0, 0, 0.1);
+ // }
+
+ // .cu-bar {
+ // box-sizing: border-box;
+
+ // .index .header {
+ // height: 64rpx;
+ // // width: 100%;
+ // // padding: 0 30rpx;
+ // // box-sizing: border-box;
+ // }
+ // }
+
+ .header-search {
+ transition: all linear 0.3s;
+ }
+
+ .cu-bar .action {
+ display: -webkit-box;
+ display: -webkit-flex;
+ display: flex;
+ align-items: center;
+ height: 100%;
+ max-height: 100%;
+
+ &:first-child {
+ margin-left: 15px;
+ font-size: 15px;
+ }
+ }
+
+ // .home_content_box {
+ // // margin-top: -20rpx;
+ // }
+
+ .index {
+ .uni-noticebar {
+ margin-bottom: 0;
+ }
+ }
+
diff --git a/pages/shop/Evaluations/EvaluationDetail/index.vue b/pages/shop/Evaluations/EvaluationDetail/index.vue
index 345af24..35578ae 100644
--- a/pages/shop/Evaluations/EvaluationDetail/index.vue
+++ b/pages/shop/Evaluations/EvaluationDetail/index.vue
@@ -135,7 +135,6 @@
onLoad() {
this.id = this._route.query.id
this.getInfo(this.id);
- this.getEvaluation(this.id)
},
onShareAppMessage() {
return {
@@ -156,21 +155,31 @@
// this.isCollection=!this.isCollection
// console.log('++++++++');
// })
+ // },
+ //收藏评测
+ // setCollect: function() {
+ // let that = this,
+ // id = that.storeInfo.id,
+ // category = 'collect'
+ // if (that.storeInfo.userCollect) {
+ // getCollectDel(id, category).then(function() {
+ // that.storeInfo.userCollect = !that.storeInfo.userCollect
+ // })
+ // } else {
+ // getCollectAdd(id, category).then(function() {
+ // that.storeInfo.userCollect = !that.storeInfo.userCollect
+ // })
+ // }
// },
-
- // 是否已经收藏
- getEvaluation(id){
- // collectEvaluation/add
- },
// 收藏
getCollection(){
-
var param={}
param.id=this.id
- param.category= ""
+ param.category= "collect"
+
getUserCollection(param).then(res=>{
console.log(res,'==========11');
})
@@ -437,6 +446,7 @@
height: 80rpx;
padding: 0;
background-color: #F1F1F1;
+ width: 100rpx;
}
.contacButton::after {
border: 0;
diff --git a/pages/shop/GoodsCollection/index.vue b/pages/shop/GoodsCollection/index.vue
index 722f41f..3c392c4 100644
--- a/pages/shop/GoodsCollection/index.vue
+++ b/pages/shop/GoodsCollection/index.vue
@@ -1,158 +1,206 @@
-
-
-
-
-
-
-
-
- 甄选商品
-
-
- 甄选评测
-
-
-
-
-
-
-
-
-
-
-
- {{ item.storeName }}
-
- {{ item.productInfo.attrInfo.sku }}
-
- {{ item.costPrice }}积分
- ¥{{ item.price }}
-
-
- 删除
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
+ box-shadow: 0rpx 10rpx 16rpx 0rpx rgba(0,0,0,0.15);
+ .left{
+ max-width: 460rpx;
+
+ .title{
+ font-size: 36rpx;
+ font-weight: 500;
+ text-transform: uppercase;
+ }
+ .title1{
+ margin: 10rpx 0 5rpx 0;
+ font-size: 24rpx;
+ text-transform: uppercase;
+ }
+ .title2{
+ font-size: 28rpx;
+
+
+ }
+ .more{
+ font-size: 24rpx;
+ position: relative;
+ }
+ .more::before{
+ position: absolute;
+ border-bottom: 1rpx solid black;
+ bottom: -8rpx;
+ left: -4rpx;
+ content: '';
+ width: 100rpx;
+ background-color: black;
+ height: 1rpx;
+ }
+ .more::after{
+ margin-left: 10rpx;
+ content: '';
+ display: inline-block;
+ width: 0;
+ height: 0;
+ border-top: 10rpx solid transparent;
+ border-left: 10rpx solid black;
+ border-bottom: 10rpx solid transparent;
+ border-right: 10rpx solid transparent;
+ }
+ }
+ .right{
+ image{
+ width: 200rpx;
+ height: 100%;
+ }
+
+ }
+ }
+
+
+
+
+
+
+
+
+
+
+
+
+ .header {
+ .tab-title {
+ font-size: 32rpx;
+ font-family: PingFang SC;
+ font-weight: 600;
+ color: #2DB5AE;
+ line-height: 42rpx;
+ }
+ .backImg {
+ width: 88rpx;
+ height: 62rpx;
+ padding-left: 26rpx;
+ image {
+ width: 100%;
+ height: 100%;
+ }
+ }
+ }
+
+ .content-box {
+ padding-top: 4rpx;
+ width: 100vw;
+ position: relative;
+ .content {
+ width: 100%;
+ height: 100%;
+ overflow-y: scroll;
+ background: #FFFFFF;
+ border-radius: 28rpx 28rpx 0rpx 0rpx;
+ .nav {
+ width: 100vw;
+ background: #FFFFFF;
+ height: 92rpx;
+ padding: 34rpx 32rpx 16rpx;
+ position: fixed;
+ left: 0;
+ z-index: 5;
+ border-radius: 28rpx 28rpx 0rpx 0rpx;
+ .item {
+ width: 112rpx;
+ text-align: center;
+ position: relative;
+ .title {
+ font-size: 26rpx;
+ font-family: PingFang SC;
+ font-weight: 500;
+ color: #3A3A3C;
+ line-height: 38rpx;
+ }
+ .active {
+ color: #2DB5AE;
+ font-weight: 600;
+ }
+ .title::after {
+ display: block;
+ content: '';
+ width: 100%;
+ height: 4rpx;
+ background: #2DB5AE;
+ position: absolute;
+ bottom: 0;
+ left: 0;
+ opacity: 0;
+ transform:scaleX(0);
+ transition: all .2s cubic-bezier(.18,.89,.17,.88),opacity .15s ease;
+ }
+ .active::after {
+ opacity: 1;
+ transform: scaleX(1);
+ }
+ }
+ }
+ }
+ }
+
+ .info-box {
+ width: 686rpx;
+ height: 202rpx;
+ background: #F5F6F8;
+ box-shadow: 0rpx 10rpx 16rpx 0rpx rgba(0,0,0,0.15);
+ border-radius: 16rpx;
+ padding: 20rpx;
+ .sku-box {
+ margin: 18rpx 0rpx;
+ height: 46rpx;
+ }
+ .sku {
+ padding: 0rpx 16rpx;
+ height: 46rpx;
+ background: #E3E3E3;
+ border-radius: 8rpx;
+ font-size: 20rpx;
+ font-family: PingFang SC;
+ font-weight: 500;
+ color: #999999;
+ line-height: 46rpx;
+ }
+ }
+ .collectionGoods .item .delete {
+ position: absolute;
+ top: 0;
+ right: -186rpx;
+ width: 154rpx;
+ height: 202rpx;
+ background: #EC3A5B;
+ box-shadow: 0rpx 10rpx 16rpx 0rpx rgba(0,0,0,0.15);
+ border-radius: 16rpx;
+ font-size: 26rpx;
+ font-family: PingFang SC;
+ font-weight: 600;
+ color: #FFFFFF;
+ line-height: 202rpx;
+ text-align: center;
+ text-shadow: 0rpx 10rpx 16rpx rgba(0,0,0,0.15);
+ }
+ .del-height{
+ height: 250rpx !important;
+ line-height: 250rpx !important;
+ }
+
+
diff --git a/pages/shop/brands/index.vue b/pages/shop/brands/index.vue
index 4d24a7b..86a1fcb 100644
--- a/pages/shop/brands/index.vue
+++ b/pages/shop/brands/index.vue
@@ -14,11 +14,12 @@
-
+
-
- {{item}}
+
+
+
@@ -35,7 +36,7 @@
选品标准
-
+
@@ -96,7 +97,7 @@