shish 4 лет назад
Родитель
Сommit
d20d7d3981

+ 3 - 0
hdApp/src/admin/home/workbench.vue

@@ -436,6 +436,9 @@ export default {
       .ling {
         font-size: 28rpx;
       }
+      span{
+        font-size:29rpx;
+      }
     }
     .news-right {
       font-size: 26px;

+ 11 - 7
hdApp/src/pagesPurchase/ghsProduct.vue

@@ -23,8 +23,8 @@
 			</view>
 
         </view>
-		<image class="hbImg" :src="`${constant.imgUrl}/icon/hb128.png`" mode="widthFix" @click="invite()"></image>
-        <view class="hbInfo" @click="invite()">邀请得红包</view>
+		<image v-if="tjFl == 1" class="hbImg" :src="`${constant.imgUrl}/icon/hb128.png`" mode="widthFix" @click="invite()"></image>
+        <view v-if="tjFl == 1" class="hbInfo" @click="invite()">邀请得红包</view>
       </view>
     </view>
 		<view class="input-wrap" >
@@ -99,13 +99,13 @@
 			</template>
 		</modal-module>
 
-		<modal-module :show="showInvite" color="#333" :size="32" padding="60rpx 30rpx" width="94%" :button="[]">
+		<modal-module :show="showInvite" color="#333" :size="32" padding="60rpx 30rpx" width="98%" :button="[]">
 			<template slot="customContent">
 				<view>
-					<view style="margin-bottom:60rpx;margin-top:20rpx;font-size:30rpx;">邀新人下单,您得30元红包,新人得100元红包</view>
+					<view style="margin-bottom:60rpx;margin-top:20rpx;font-size:30rpx;">邀请新朋友下单,您得<text style="color:red;font-weight:bold;">{{parseFloat(ghsInfo.tjFlAmount)}}元</text>红包<text v-if="ghsInfo.xrFl==1">,朋友得<text style="color:red;font-weight:bold;">{{parseFloat(ghsInfo.xrFlAmount)}}元</text>红包</text></view>
 					<view>
-						<button style="padding-left:85rpx;padding-right:85rpx;" class="admin-button-com default big" @click="closeInvite()">取消</button>
-						<button style="padding-left:150rpx;padding-right:150rpx;margin-left:30rpx;" class="admin-button-com blue big" @click="closeInvite()" open-type="share">邀请</button>
+						<button style="padding-left:88rpx;padding-right:88rpx;" class="admin-button-com default big" @click="closeInvite()">取消</button>
+						<button style="padding-left:160rpx;padding-right:160rpx;margin-left:30rpx;" class="admin-button-com blue big" @click="closeInvite()" open-type="share">邀请</button>
 					</view>
 				</view>
 			</template>
@@ -191,7 +191,9 @@ export default {
 			ghsId:0,
 			newCustomGift:{amount:100,miniCost:500,validTime:'2021-12-05'},
 			isNewCustom:false,
-			showInvite:false
+			showInvite:false,
+			//推荐新人福利
+			tjFl:0
 		};
 	},
 	onPullDownRefresh() {
@@ -371,6 +373,7 @@ export default {
 						}else{
 							this.isNewCustom = true
 						}
+						this.tjFl = res.data.tjFl
 					}
 					uni.setNavigationBarTitle({title: this.ghsInfo.name})
 					this.option.id = res.data.id;
@@ -390,6 +393,7 @@ export default {
 					}else{
 						this.isNewCustom = true
 					}
+					this.tjFl = res.data.tjFl
 				}).catch(err => {})
 			}
 		},

+ 3 - 3
hdApp/src/pagesPurchase/order.vue

@@ -36,11 +36,11 @@
         </block>
       </block>
     </view>
-    <!--
+    
     <view class="app-footer open_btn">
-			<view @click="inviteGhs" class="admin-button-com middle blue">邀请供应商得300元</view>
+			<text style="color:#3385FF;margin-right:30rpx;">更多</text> <view @click="inviteGhs" class="admin-button-com middle blue">邀请供应商得300元</view>
 		</view>
-    -->
+
   </view>
 </template>