Explorar el Código

优化+海报页面

xhj hace 2 años
padre
commit
d413d5f6bb

+ 2 - 2
card/index/index.vue

@@ -128,14 +128,14 @@
 					<view class="extend-info-item fflex">
 						<view class="extend-info-data">{{cardInfo.faceAmnt?cardInfo.faceAmnt:0}}</view>
 						<view class="extend-info-label ddflex">
-							<image src="/static/pages/images/dz_hui.png"></image>
+							<image style="width: 30rpx;height: 30rpx;" src="/static/pages/images/khbz.png"></image>
 							<view>客户保障(万元)</view>
 						</view>
 					</view>
 					<view class="extend-info-item fflex">
 						<view class="extend-info-data">{{cardInfo.cpnstAmnt?cardInfo.cpnstAmnt:0}}</view>
 						<view class="extend-info-label ddflex">
-							<image src="/static/pages/images/dz_hui.png"></image>
+							<image style="width: 30rpx;height: 30rpx;" src="/static/pages/images/khlp.png"></image>
 							<view>客户理赔(万元)</view>
 						</view>
 					</view>

+ 1 - 1
pages/authorize/authorize.vue

@@ -315,7 +315,7 @@ export default {
 					}
 				}
 
-				that.isshop();
+				// that.isshop();
 			});
 		},
 		//原来的登录

+ 0 - 0
pages/post/post.css


+ 58 - 0
pages/post/post.vue

@@ -0,0 +1,58 @@
+<template>
+	<view>
+		<image style="width: 100%;" mode="widthFix" :src="config.index_post?config.index_post:''" show-menu-by-longpress="true"></image>
+	</view>
+</template>
+
+<script>
+	const app = getApp();
+	const req = require("../../utils/request.js");
+
+	export default {
+		components: {},
+		props: {},
+		data() {
+			return {
+				systems: {},
+				isTop:0,
+				config:{}
+			}
+		},
+		onLoad(options) {
+			this.getConfig();
+		},
+		onShow() {
+			
+		},
+		methods: {
+			getConfig(){
+				req.getRequest('/api/other/config',{},data=>{
+					req.setStorage('configRes',JSON.stringify(data));
+					this.config = data;
+				})
+			},
+		},
+		mounted() {
+			const systemInfo = uni.getSystemInfoSync();
+			// px转换到rpx的比例
+			let pxToRpxScale = 750 / systemInfo.windowWidth;
+			let systems = {
+				ktxStatusHeight: systemInfo.statusBarHeight * pxToRpxScale, // 状态栏的高度
+				navigationHeight: 44 * pxToRpxScale // 导航栏的高度
+			};
+			systems.barHeight = systems.ktxStatusHeight + systems.navigationHeight;
+			this.systems = systems;
+		},
+		onPageScroll: function(e) {
+			if (e.scrollTop > this.systems.barHeight) {
+				this.isTop = 1;
+			} else {
+				this.isTop = 0;
+			}
+		}
+	}
+</script>
+
+<style>
+	@import "./post.css";
+</style>

BIN
static/pages/images/khbz.png


BIN
static/pages/images/khlp.png