浏览代码

1.主题色

guo 2 年之前
父节点
当前提交
b59fd1d4a1

+ 5 - 3
pages/index/paint.vue

@@ -80,7 +80,7 @@
 					<view class="hejiMs">合计数量:{{selectItemList.length}}</view>
 				</view>
 			</view>
-			<view class="settlement" @click="sure">确定</view>
+			<view class="settlement" :style="{background:'#'+themeColor}" @click="sure">确定</view>
 		</view>
 
 		<view class="caidanTk" v-show="qingdanShow" @click="qingdanShow=false">
@@ -123,14 +123,16 @@
 				leftIndex: 0,
 				selectItemList: [],
 				sumMoney: 0,
-				qingdanShow: false,
+				qingdanShow: false,
+				themeColor:'',
 			}
 		},
 		onShow() {
 			this.carInfo = this.$store.state.carInfo
 			console.log("车=", this.carInfo);
 		},
-		onLoad() {
+		onLoad() {
+			 this.themeColor = uni.getStorageSync("themeColor");
 			this.getData();
 		},
 		methods: {

+ 5 - 3
pages/index/paintSure.vue

@@ -81,7 +81,7 @@
 				<view class="bottomLeftLine">合计 <span>¥</span> <span class="bottomPrice">{{totalMoney}}</span> </view>
 				
 			</view>
-			<view class="bottomBtn" @click="submit">提交订单</view>
+			<view class="bottomBtn" :style="{background:'#'+themeColor}" @click="submit">提交订单</view>
 		</view>
 		
 		<timeSelect ref="timeSelect" :timedata="timedata" @changeTime="changeTime"></timeSelect>
@@ -115,7 +115,8 @@
 				timedata:'',
 				billDate:'',
 				itemList:[],
-				sheetDetail:[],
+				sheetDetail:[],
+				 themeColor:'',
 			}
 		},
 		onLoad(opt) {
@@ -134,7 +135,8 @@
 			this.goodsnum = opt.itemQty;
 			//console.log(this.carInfo)
 			this.userInfo = uni.getStorageSync("userInfo");
-			this.goodsInfo = uni.getStorageSync("goodsDetail");
+			this.goodsInfo = uni.getStorageSync("goodsDetail");
+			this.themeColor = uni.getStorageSync("themeColor");
 			this.jsMoney()
 			
 			

+ 5 - 2
pages/user/addCar/addCar.vue

@@ -53,7 +53,7 @@
 
 		<view class="bottomView">
 
-			<view class="saveCar" @click="saveCar()">保存</view>
+			<view class="saveCar" :style="{background:'#'+themeColor}" @click="saveCar()">保存</view>
 
 		</view>
 		
@@ -88,11 +88,14 @@
 					"value": "ids"
 				},
 				vin: '',
-				type:'',
+				type:'',
+				 themeColor:'',
+
 			}
 		},
 		onLoad(opt) {
 			uni.removeStorageSync('carModelInfo');
+			 this.themeColor = uni.getStorageSync("themeColor");
 
 			this.getNowFormatDate();
 

+ 8 - 4
pages/user/addCar/cailist.vue

@@ -33,7 +33,7 @@
 
 
 		<view class="bottomView">
-			<view class="saveCar" @click="addBtn">
+			<view class="saveCar" :style="{background:'#'+themeColor}" @click="addBtn">
 				<!-- <image src="../../../static/img/icon_tianjiacheliang.png" mode=""
 					style="width: 44rpx; height: 36rpx; margin-right: 10rpx;"></image> -->
 				<view>添加爱车</view>
@@ -51,14 +51,18 @@
 				loding: false,
 				type: '',
 				carId: '',
-				fromMe: false,
+				fromMe: false,
+				 themeColor:'',
+
 			}
 		},
 		onLoad(opt) {
 			this.$common.isUserId()
 			this.type = opt.type;
 			// console.log(this.type)
-			this.fromMe = opt.fromMe
+			this.fromMe = opt.fromMe
+			 this.themeColor = uni.getStorageSync("themeColor");
+
 		},
 		onShow() {
 			this.getqueryMyBMemberCar();
@@ -155,7 +159,7 @@
 
 	.saveCar {
 
-		background: linear-gradient(135deg, #FD5300 0%, #FF270A 100%);
+		background: #D53533;
 		margin: 23rpx 30rpx;
 		height: 74rpx;
 

+ 4 - 2
pages/user/bespeakDetail.vue

@@ -85,7 +85,7 @@
 		<view class="bottom" v-if="(orderData.orderSheet.sheetState == 0)||(orderData.orderSheet.sheetState == 1)">
 		
 			<view class="cancel" @click="cancelBespeak" >取消预约</view>
-			<view class="defer" @click="cktime">延期</view>
+			<view class="defer" :style="{border:'1rpx solid #'+themeColor,color:'#'+themeColor}" @click="cktime">延期</view>
 		</view>
 		
 		<!-- 预约时间 -->
@@ -108,13 +108,15 @@
 				orderData: '',
 				timedata:'',
 				billDate:'',
+				 themeColor:'',
 
 			}
 		},
 		onLoad(opt) {
 			
 			this.id = opt.id
-			
+			 this.themeColor = uni.getStorageSync("themeColor");
+
 			if (this.id) {
 				this.getData()
 			}

+ 7 - 2
pages/user/feedBack.vue

@@ -29,7 +29,7 @@
 		</view>
 
 		<view class="bottom">
-			<view class="shoreDz" @click="submit">提交</view>
+			<view class="shoreDz" :style="{background:'#'+themeColor}"  @click="submit">提交</view>
 		</view>
 	</view>
 </template>
@@ -41,11 +41,16 @@
 			return {
 				imgArr: [],
 				exeContent: '',
+				 themeColor:'',
 
 			}
 		},
 
-		methods: {
+		methods: {
+			onload() {
+				 this.themeColor = uni.getStorageSync("themeColor");
+
+			},
 			feedDone(e) {
 				this.exeContent = e.target.value
 

+ 4 - 3
pages/user/myOrder/activityOrderDetail.vue

@@ -165,7 +165,7 @@
 		<view class="bottom" v-if="orderData.data.sheetState == 1">
 
 			<view class="cancel" @click="cancelBespeak">取消订单</view>
-			<view class="defer" @click="pay">立即支付</view>
+			<view class="defer" :style="{border:'1rpx solid #'+themeColor,color:'#'+themeColor}" @click="pay">立即支付</view>
 		</view>
 
 
@@ -233,13 +233,14 @@
 				src: '', // 二维码生成后的图片地址或base64
 				isShowMa: false,
 				quanMaList:[],
-				
+				 themeColor:'',
+
 			}
 		},
 		onLoad(opt) {
 			 this.iStatusBarHeight = uni.getSystemInfoSync().statusBarHeight;
 			this.id = opt.id
-			
+			this.themeColor = uni.getStorageSync("themeColor");
 
 			if (this.id) {
 				this.getData()

+ 3 - 3
pages/user/myOrder/mallOrderDetail.vue

@@ -194,7 +194,7 @@
 		<view class="bottom" v-if="orderData.data.sheetState == 1">
 
 			<view class="cancel" @click="cancelBespeak">取消订单</view>
-			<view class="defer" @click="pay">立即支付</view>
+			<view class="defer" :style="{border:'1rpx solid #'+themeColor,color:'#'+themeColor}"  @click="pay">立即支付</view>
 		</view>
 
 
@@ -262,14 +262,14 @@
 				src: '', // 二维码生成后的图片地址或base64
 				isShowMa: false,
 				quanMaList:[],
-				
+				themeColor:'',
 			}
 		},
 		onLoad(opt) {
 			 this.iStatusBarHeight = uni.getSystemInfoSync().statusBarHeight;
 			this.id = opt.id
 			this.SheetType = opt.SheetType
-
+			this.themeColor = uni.getStorageSync("themeColor");
 			if (this.id) {
 				this.getData()
 			}

+ 4 - 2
pages/user/myOrder/paintOrderDetail.vue

@@ -173,7 +173,7 @@
 		<view class="bottom" v-if="orderData.data.sheetState == 1">
 
 			<view class="cancel" @click="cancelBespeak">取消订单</view>
-			<view class="defer" @click="pay">立即支付</view>
+			<view class="defer" :style="{border:'1rpx solid #'+themeColor,color:'#'+themeColor}" @click="pay">立即支付</view>
 		</view>
 
 
@@ -241,13 +241,15 @@
 				src: '', // 二维码生成后的图片地址或base64
 				isShowMa: false,
 				quanMaList:[],
-				
+				 themeColor:'',
+
 			}
 		},
 		onLoad(opt) {
 			 this.iStatusBarHeight = uni.getSystemInfoSync().statusBarHeight;
 			this.id = opt.id
 			
+			 this.themeColor = uni.getStorageSync("themeColor");
 
 			if (this.id) {
 				this.getData()