From b6967b121b7f90dd2a2ed440b5af04b10a01b0d3 Mon Sep 17 00:00:00 2001
From: Esdese <2114339600@qq.com>
Date: Thu, 21 Jul 2022 14:23:49 +0800
Subject: [PATCH] =?UTF-8?q?=E5=AF=B9=E6=AF=94=E5=BC=80=E5=8F=91?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
---
app.json | 1 +
pages/varComm/pages/brand/index.js | 16 ++-
pages/varComm/pages/brand/index.wxml | 6 +-
pages/varComm/pages/brand/index.wxss | 2 +-
.../pages/brandRatio/comm/survey/index.js | 17 ++++
.../pages/brandRatio/comm/survey/index.json | 6 ++
.../pages/brandRatio/comm/survey/index.wxml | 4 +
.../pages/brandRatio/comm/survey/index.wxss | 11 +++
pages/varComm/pages/brandRatio/index.js | 62 +++---------
pages/varComm/pages/brandRatio/index.json | 3 +-
pages/varComm/pages/brandRatio/index.wxml | 32 ++++--
pages/varComm/pages/brandRatio/index.wxss | 98 +++++++++++++++++--
12 files changed, 180 insertions(+), 78 deletions(-)
create mode 100644 pages/varComm/pages/brandRatio/comm/survey/index.js
create mode 100644 pages/varComm/pages/brandRatio/comm/survey/index.json
create mode 100644 pages/varComm/pages/brandRatio/comm/survey/index.wxml
create mode 100644 pages/varComm/pages/brandRatio/comm/survey/index.wxss
diff --git a/app.json b/app.json
index 0ce2096..4a797e6 100644
--- a/app.json
+++ b/app.json
@@ -24,6 +24,7 @@
"pages/mine/pages/myReport/index",
"pages/mine/pages/helpCenter/index",
"pages/varComm/pages/brandRatio/index",
+ "pages/varComm/pages/brandRatio/comm/survey/index",
"pages/brandCrisis/index"
],
"window": {
diff --git a/pages/varComm/pages/brand/index.js b/pages/varComm/pages/brand/index.js
index f993942..9e65b16 100644
--- a/pages/varComm/pages/brand/index.js
+++ b/pages/varComm/pages/brand/index.js
@@ -4,15 +4,16 @@ const words = [];
Component({
data: {
mockData: [],
- result: new Array(6)
+ result: new Array(6),
+ boxArr:new Array(6),
},
methods: {
startCp() {
- wx.navigateTo({
- url: `/pages/varComm/pages/brandRatio/index?name=${this.data.result}`,
-
+ wx.setStorageSync('brandData',this.data.boxArr)
+ wx.navigateTo({
+ url: `/pages/varComm/pages/brandRatio/index`,
})
},
del(index){
@@ -35,9 +36,14 @@ Component({
}
}
result.length = 6
- console.log(result);
+ let boxArr = result
+ boxArr = boxArr.map(ele=>{
+ return ele !=undefined ? JSON.parse(ele):undefined
+ })
+ console.log(this.data.boxArr);
this.setData({
result: result,
+ boxArr:boxArr
});
},
},
diff --git a/pages/varComm/pages/brand/index.wxml b/pages/varComm/pages/brand/index.wxml
index 3ce2c96..621136c 100644
--- a/pages/varComm/pages/brand/index.wxml
+++ b/pages/varComm/pages/brand/index.wxml
@@ -2,7 +2,7 @@
-
+
@@ -14,9 +14,9 @@
删除
-
+
- 宝马
+ {{item.brandname}}
diff --git a/pages/varComm/pages/brand/index.wxss b/pages/varComm/pages/brand/index.wxss
index 870d8d3..d9b0918 100644
--- a/pages/varComm/pages/brand/index.wxss
+++ b/pages/varComm/pages/brand/index.wxss
@@ -124,7 +124,7 @@ page {
}
.car_barnd{
text-align: center;
- font-size: 28rpx;
+ font-size: 20rpx;
font-weight: bold;
color: white;
margin-top: 4rpx;
diff --git a/pages/varComm/pages/brandRatio/comm/survey/index.js b/pages/varComm/pages/brandRatio/comm/survey/index.js
new file mode 100644
index 0000000..e8d7612
--- /dev/null
+++ b/pages/varComm/pages/brandRatio/comm/survey/index.js
@@ -0,0 +1,17 @@
+import brokenLine from "../../../../../components/option/stackingLineOption"
+const app = getApp()
+Component({
+ data:{
+ showChart: true,
+ transformOption: brokenLine([],[],[],[]),
+ },
+ lifetimes:{
+ attached() {
+ //页面数据
+ // app.globalData.request({
+ // action: 'getUserBrand',
+ // token: 't%2BrswgjvzGM=',
+ // })
+ }
+}
+})
\ No newline at end of file
diff --git a/pages/varComm/pages/brandRatio/comm/survey/index.json b/pages/varComm/pages/brandRatio/comm/survey/index.json
new file mode 100644
index 0000000..74e09c2
--- /dev/null
+++ b/pages/varComm/pages/brandRatio/comm/survey/index.json
@@ -0,0 +1,6 @@
+{
+ "usingComponents": {
+ "c-echars": "../../../../../../components/c-echars/index"
+ },
+ "component": true
+}
\ No newline at end of file
diff --git a/pages/varComm/pages/brandRatio/comm/survey/index.wxml b/pages/varComm/pages/brandRatio/comm/survey/index.wxml
new file mode 100644
index 0000000..34b0080
--- /dev/null
+++ b/pages/varComm/pages/brandRatio/comm/survey/index.wxml
@@ -0,0 +1,4 @@
+
+ 信息量趋势
+
+
\ No newline at end of file
diff --git a/pages/varComm/pages/brandRatio/comm/survey/index.wxss b/pages/varComm/pages/brandRatio/comm/survey/index.wxss
new file mode 100644
index 0000000..f5be1b7
--- /dev/null
+++ b/pages/varComm/pages/brandRatio/comm/survey/index.wxss
@@ -0,0 +1,11 @@
+.chart_box{
+ width: 686rpx;
+ height: 454rpx;
+ padding-top:32rpx ;
+ background: white;
+}
+.chart_title{
+ font-size: 36rpx;
+ font-weight: bold;
+ margin-left:32rpx ;
+}
\ No newline at end of file
diff --git a/pages/varComm/pages/brandRatio/index.js b/pages/varComm/pages/brandRatio/index.js
index d6e2ab6..15d2bd2 100644
--- a/pages/varComm/pages/brandRatio/index.js
+++ b/pages/varComm/pages/brandRatio/index.js
@@ -5,62 +5,22 @@ Page({
* 页面的初始数据
*/
data: {
-
+ boxArr:new Array(6),
+ tabActive:1,
},
/**
* 生命周期函数--监听页面加载
*/
onLoad(options) {
- console.log(options);
- },
-
- /**
- * 生命周期函数--监听页面初次渲染完成
- */
- onReady() {
-
- },
-
- /**
- * 生命周期函数--监听页面显示
- */
- onShow() {
-
- },
-
- /**
- * 生命周期函数--监听页面隐藏
- */
- onHide() {
-
- },
-
- /**
- * 生命周期函数--监听页面卸载
- */
- onUnload() {
-
- },
-
- /**
- * 页面相关事件处理函数--监听用户下拉动作
- */
- onPullDownRefresh() {
-
- },
-
- /**
- * 页面上拉触底事件的处理函数
- */
- onReachBottom() {
-
- },
-
- /**
- * 用户点击右上角分享
- */
- onShareAppMessage() {
-
+ this.setData({
+ boxArr:wx.getStorageSync('brandData')
+ })
+ },
+ changeTab(val) {
+ let n = val.detail.index;
+ this.setData({
+ tabActive: n
+ })
}
})
\ No newline at end of file
diff --git a/pages/varComm/pages/brandRatio/index.json b/pages/varComm/pages/brandRatio/index.json
index 1e2650c..1bf4842 100644
--- a/pages/varComm/pages/brandRatio/index.json
+++ b/pages/varComm/pages/brandRatio/index.json
@@ -1,6 +1,7 @@
{
"usingComponents": {
- "time-component":"/components/timecomponent/index"
+ "time-component":"/components/timecomponent/index",
+ "survey":"./comm/survey/index"
},
"navigationBarTitleText": "品牌对比"
}
\ No newline at end of file
diff --git a/pages/varComm/pages/brandRatio/index.wxml b/pages/varComm/pages/brandRatio/index.wxml
index 41076f2..86350ec 100644
--- a/pages/varComm/pages/brandRatio/index.wxml
+++ b/pages/varComm/pages/brandRatio/index.wxml
@@ -3,19 +3,35 @@
-
-
- ×
- 删除
+
+
+
+
+ 添加品牌一
-
-
+
+
+ ×
+ 删除
+
+
+
+
+ {{item.brandname}}
- 宝马
+
-
+
+
+
+
+
+
+
+
+
\ No newline at end of file
diff --git a/pages/varComm/pages/brandRatio/index.wxss b/pages/varComm/pages/brandRatio/index.wxss
index 0935c0b..bc23ff3 100644
--- a/pages/varComm/pages/brandRatio/index.wxss
+++ b/pages/varComm/pages/brandRatio/index.wxss
@@ -10,10 +10,11 @@ page {
}
.add1{
width:750rpx;
+ margin-top: 16rpx;
overflow-x:scroll;
white-space: nowrap;
}
-.add_box {
+.add_box1 {
display: inline-block;
height: 208rpx;
width: 200rpx;
@@ -22,8 +23,36 @@ page {
border-radius: 8rpx;
border: 2rpx solid #85c3ff;
overflow: hidden;
- margin-top: 16rpx;
}
+
+.heng1 {
+ height: 8rpx;
+ width: 72rpx;
+ background: white;
+ border-radius: 6rpx;
+ position: relative;
+ left: 66rpx;
+ top: 82rpx
+}
+
+.shu1 {
+ width: 8rpx;
+ height: 72rpx;
+ background: white;
+ border-radius: 6rpx;
+ position: relative;
+ left: 98rpx;
+ top: 45rpx
+}
+
+.event1 {
+ display: inline-block;
+ color: white;
+ font-size: 28rpx;
+ margin-left: 32rpx;
+ margin-top: 60rpx;
+}
+
.btns {
margin-top: 32rpx;
width: 686rpx;
@@ -33,17 +62,56 @@ page {
color: rgba(0, 132, 255, 1);
font-size: 28rpx;
}
-
-.event_recom {
+.event_recom1 {
margin-top: 32rpx;
+ padding-top:18rpx;
min-height: 1000rpx;
background-color: #f9f9f9;
border-top-left-radius: 24rpx;
border-top-right-radius: 24rpx;
- padding-top: 32rpx;
- padding-left: 32rpx;
}
-.add_box .del{
+
+
+.van-index-anchor text{
+ font-size: 24rpx;
+ color: rgba(153, 153, 153, 1);
+}
+.event_recom1 .van-cell .van-cell__title{
+ font-size: 28rpx;
+}
+.my_cell{
+ width: 750rpx;
+ height: 96rpx;
+ background: white;
+ display: flex;
+ align-items: center;
+}
+.van-checkbox{
+ display: inline-block !important;
+}
+
+.my_cell text{
+ font-size: 28rpx;
+ margin-left: 24rpx;
+}
+.del_box {
+ display: inline-block;
+ height: 208rpx;
+ width: 200rpx;
+ margin-left: 32rpx;
+ background-color: #339cff;
+ border-radius: 8rpx;
+ border: 2rpx solid #85c3ff;
+ overflow: hidden;
+ /* margin-top: 16rpx; */
+}
+.content_box{
+ width: 686rpx;
+ height: 100vh;
+ background: pink;
+ margin-left: 32rpx;
+}
+.del_box .del{
/* background: pink; */
border-bottom: 1rpx solid ;
border-image: linear-gradient(to right,rgba(245, 245, 245, 0),rgba(238, 238, 238, 1),rgba(232, 232, 232, 0))1;
@@ -63,8 +131,20 @@ page {
}
.car_barnd{
text-align: center;
- font-size: 28rpx;
+ font-size: 20rpx;
font-weight: bold;
color: white;
margin-top: 4rpx;
-}
\ No newline at end of file
+}
+ .view-tabs .van-tab {
+ color: #999999; /* 字体颜色 */
+ background-color: #F9F9F9;/* 标签背景颜色 */
+ }
+
+ .view-tabs .van-tab--active{
+ color: #0084FF; /* 字体颜色 */
+ font-size: 40rpx;
+ }
+ .view-tabs .van-tabs__line {
+ background: transparent;
+ }
\ No newline at end of file