Browse Source

色值调整

kk.shi 3 years ago
parent
commit
f876e173db

BIN
images/welfareMall/service-img.png


+ 4 - 4
pages/welfareMall/activityInfo/activityInfo.wxml

@@ -29,9 +29,9 @@
       </view>
 
       <view class="info_right flex-column">
-      <view class="info_right_top" wx:if="{{detail.isPay!=0}}">{{detail.priceFormatter}}元</view>
-      <view class="info_right_top" wx:else>免费</view>
-      <view class="info_right_bottom">价值¥{{detail.showPriceFormatter}}</view>
+      <view class="info_right_top" style="color: {{config.mainColor?config.mainColor:'#B01717'}};" wx:if="{{detail.isPay!=0}}">{{detail.priceFormatter}}元</view>
+      <view class="info_right_top" style="color: {{config.mainColor?config.mainColor:'#B01717'}};" wx:else>免费</view>
+      <view class="info_right_bottom" style="color: {{config.mainColor?config.mainColor:'#B01717'}};">价值¥{{detail.showPriceFormatter}}</view>
       </view>
     </view>
     </view>
@@ -65,7 +65,7 @@
 
     <view class="bottom_button" >
       <block wx:if="{{detail.status ==2 && detail.stock !=0}}">
-        <view class="now_buy" bindtap="nowBuy" wx:if="{{userMobile.length>0}}">{{buttonText}}</view>
+        <view class="now_buy" style="background-color: {{config.secColor?config.secColor:'#B01717'}};" bindtap="nowBuy" wx:if="{{userMobile.length>0}}">{{buttonText}}</view>
         <button class="now_buy_button" open-type="getPhoneNumber" bindgetphonenumber="getPhoneNumber" wx:else>{{buttonText}}</button>
       </block>
       <view class="go_buy"  style="background-color:#bdbdbd" wx:else>{{statusShowText}}</view>

+ 3 - 3
pages/welfareMall/activityInfo/activityInfo.wxss

@@ -67,7 +67,7 @@ Page {
 height: 60rpx;
 font-size: 48rpx;
 font-weight: bold;
-color: #B01717;
+/* color: #B01717; */
 margin-top: 54rpx;
 }
 .info_right_bottom{
@@ -75,7 +75,7 @@ height: 30rpx;
 font-size: 24rpx;
 font-weight: 500;
 text-decoration: line-through;
-color: #B01717;
+/* color: #B01717; */
 margin-top: 14rpx;
 }
 .bottom_title{
@@ -134,7 +134,7 @@ margin-left: 56rpx;
   border-radius: 25px;
   text-align: center;
   color: #fff;
-  background-color: #B01717;
+  /* background-color: #B01717; */
   font-size: 22px;
 }
 .now_buy_button {

+ 9 - 1
pages/welfareMall/feedback/feedback.js

@@ -15,6 +15,7 @@ Page({
     content: '',
     basePath: '',
     hideWindowValue: false,
+    config: {},
   },
 
   bindText: function (e) {
@@ -181,11 +182,18 @@ Page({
      })
   },
 
+  async getIndexList(){
+    let res =  await WelfareMall.getIndexList();
+    this.setData({
+      config:res.data.config
+    })
+  },
+
   /**
    * 生命周期函数--监听页面加载
    */
   onLoad: function (options) {
-    
+    this.getIndexList()
   },
 
   /**

+ 8 - 1
pages/welfareMall/feedback/feedback.wxml

@@ -32,10 +32,17 @@
       </view>
     </view>
     <view class="lower-submit flex-row" catchtap="toSubmit">
-      <view class="order-refund flex-row">
+      <view class="order-refund flex-row"  style="background: {{config.mainColor?config.mainColor:'#B01717'}};">
         <view class="lower-order-text">提交</view>
       </view>
     </view>
+
+    <view>
+      <button open-type="contact" class="call" type="warn" size="mini">
+        <image class="service-style" src="../../../images/welfareMall/service-img.png"></image>
+      </button>
+    </view>
+
     <!-- 弹框 -->
     <view class="bg-zindex" wx:if="{{hideWindowValue}}">
       <view class="success_window flex-column">

+ 26 - 1
pages/welfareMall/feedback/feedback.wxss

@@ -124,7 +124,7 @@ textarea{
 .order-refund{
   width: 631rpx;
   height: 90rpx;
-  background: #B01717;
+  /* background: #B01717; */
   border-radius: 50rpx;
 }
 
@@ -193,4 +193,29 @@ textarea{
   font-weight: 500;
   color: #444444;
   margin-top: 32rpx;
+}
+
+.call{
+  position: fixed;
+  width: 62rpx!important;
+  height: 62rpx!important;
+  border-radius: 25px!important;
+  right: 36rpx!important;
+  bottom: 206rpx!important;
+  font-size: 10px!important;
+  background-color: none !important;
+  border:none;
+  color: none !important;
+  display: flex;
+  flex-flow: row nowrap;
+  justify-content: center;
+  align-items: center;
+  padding: 0px!important;
+  line-height: 50px!important;
+  z-index: 9999;
+}
+
+.service-style{
+  width: 62rpx;
+  height: 62rpx;
 }

+ 3 - 3
pages/welfareMall/index/index.wxml

@@ -41,9 +41,9 @@
           <view class="coupon_num" wx:if="{{item.cashCouponNum ==0 && item.discountCouponNum ==0}}"></view>
         </view>
         <view class="coupon_i_r_bottom flex-row">
-          <view class="coupon_price">价值 ¥{{item.formatShowPrice}}</view>
-          <view class="coupon_buy" wx:if="{{item.isPay!=0}}">{{item.formatPrice}}元抢</view>
-          <view class="coupon_buy" wx:else>免费领取</view>
+          <view class="coupon_price" style="color: {{config.mainColor?config.mainColor:'#B01717'}};">价值 ¥{{item.formatShowPrice}}</view>
+          <view class="coupon_buy" style="background: {{config.secColor?config.secColor:'#B01717'}};" wx:if="{{item.isPay!=0}}">{{item.formatPrice}}元抢</view>
+          <view class="coupon_buy" style="background: {{config.secColor?config.secColor:'#B01717'}};" wx:else>免费领取</view>
         </view>
       </view>
     </view>

+ 2 - 2
pages/welfareMall/index/index.wxss

@@ -128,13 +128,13 @@ margin-top: 12rpx;
 .coupon_price{
 font-size: 22rpx;
 font-weight: 500;
-color: #B01717;
+/* color: #B01717; */
 }
 .coupon_buy{
   width: 160rpx;
   height: 58rpx;
   line-height: 58rpx;
-  background: #B01717;
+  /* background: #B01717; */
   border-radius: 28rpx;
   color: #ffffff;
   text-align: center;

+ 4 - 2
pages/welfareMall/personal/personal.wxml

@@ -51,8 +51,10 @@
   </custom-page>
 
   <view>
-  <button open-type="contact" class="call" type="warn" size="mini">联系我们</button>
-</view>
+    <button open-type="contact" class="call" type="warn" size="mini">
+      <image class="service-style" src="../../../images/welfareMall/service-img.png"></image>
+    </button>
+  </view>
 </page-wrap>
 
 <!-- 使用wxs 手机号码中间四位显示为*号 -->

+ 11 - 5
pages/welfareMall/personal/personal.wxss

@@ -237,14 +237,15 @@ page{
 
 .call{
   position: fixed;
-  width: 50px!important;
-  height: 50px!important;
+  width: 62rpx!important;
+  height: 62rpx!important;
   border-radius: 25px!important;
-  right: 0px!important;
+  right: 36rpx!important;
   bottom: 30px!important;
   font-size: 10px!important;
-  background-color: #B01717!important;
-  color: #fff!important;
+  background-color: none !important;
+  border:none;
+  color: none !important;
   display: flex;
   flex-flow: row nowrap;
   justify-content: center;
@@ -254,3 +255,8 @@ page{
   z-index: 9999;
 }
 
+.service-style{
+  width: 62rpx;
+  height: 62rpx;
+}
+