hmp 4 年之前
父节点
当前提交
f1e0faf6e8
共有 5 个文件被更改,包括 214 次插入2 次删除
  1. 82 2
      components/alert/pointAuth.vue
  2. 104 0
      pages/mine/my-help/help-records.vue
  3. 28 0
      pages/webview/createOrder.vue
  4. 二进制
      static/icon/mingxi.png
  5. 二进制
      static/icon/titles.png

+ 82 - 2
components/alert/pointAuth.vue

@@ -1,4 +1,84 @@
 <template>
+	<view>
+		<u-popup :custom-style="popupStyle" @close="close" class="auth-point" v-model="show" mode="center" width="80%"
+			height="680rpx" border-radius="16">
+			<view class="">
+				<image class="auth-bg" mode="aspectFill" src="../../static/poster/bg_shouyetc.png">
+					<view class="auth-msg" style="display: flex;flex-direction: column;">
+						<view class="margin-bottom-20 flex justify-start"
+							style="font-size: 26rpx;color: #353535;font-family: PingFang-SC-Medium;line-height: 45rpx;"
+							v-for="(item,index) in vuex_active_setting.helpExplainList" :key="index">
+							<view class="center">
+								<u-icon name="/static/icon/titles.png" size="30"></u-icon>
+							</view>
+							<view class="center margin-left-10">
+								<text>{{item.helpExplain}}</text>
+							</view>
+						</view>
+					</view>
+					<u-button @click="toAuth" :custom-style="customStyle" shape="circle">去授权</u-button>
+				</image>
+			</view>
+		</u-popup>
+	</view>
+</template>
+
+<script>
+	export default {
+		name: "pointAuth",
+		data() {
+			return {
+				show: true,
+				popupStyle: {
+					'u-mode-center-box': 'red'
+				},
+				authUrl: '',
+				customStyle: {
+					color: 'white',
+					background: "#E72226",
+					width: '400rpx',
+					margin: '25rpx auto'
+				}
+			};
+		},
+
+		methods: {
+			showAuth(url) {
+				this.authUrl = url;
+				this.show = true;
+			},
+			hide() {
+				this.show = false;
+			},
+			close() {
+				this.$emit('close')
+			},
+			toAuth() {
+				let params = {
+					url: encodeURIComponent(this.authUrl),
+					title: '移动积分授权'
+				}
+				this.$jump('/pages/webview/webview' + this.$u.queryParams(params));
+			}
+		}
+	}
+</script>
+
+<style lang="scss" scoped>
+	.auth-bg {
+		width: 100%;
+		height: 266rpx;
+	}
+
+	.auth-msg {
+		padding: 40rpx 40rpx 20rpx 40rpx;
+		display: flex;
+		align-items: center;
+		justify-content: left;
+	}
+</style>
+
+<!-- <template>
 	<view>
 		<u-popup :custom-style="popupStyle" class="auth-point" v-model="show" mode="center" width="80%" border-radius="18" >
 			<image class="auth-bg" mode="aspectFill" src="../../static/poster/bg_shouyetc.png">
@@ -18,7 +98,7 @@
 		name:"pointAuth",
 		data() {
 			return {
-				show: false,
+				show: true,
 				popupStyle: {
 					'u-mode-center-box': 'red'
 				},
@@ -78,4 +158,4 @@
 			background: url(../../static/icon/item-dot.png) no-repeat center/contain;
 		}
 	}
-</style>
+</style> -->

+ 104 - 0
pages/mine/my-help/help-records.vue

@@ -0,0 +1,104 @@
+<template>
+	<view>
+		<mescroll-body-diy ref="mescrollRef" @init="mescrollInit" :down="downOption" @down="downCallback"
+			@up="upCallback">
+			<view @click="jump(item)" class="card" v-for="(item,index) in list" :key="index">
+				<view class="card-top">
+					<view>
+						<text v-if="item.heatType=='HEAT_VALUE_EXCHANGE'">热力值兑换</text>
+						<text v-if="item.heatType=='HEAT_VALUE_SEND'">热力值赠送</text>
+					</view>
+					<view class="flex">
+						<image src="/static/icon/remen.png" style="width: 36rpx;height: 36rpx;margin-right: 6rpx;">
+						</image>
+						<text v-if="item.heatType=='HEAT_VALUE_EXCHANGE'" class="center reduce">{{heatValue}}</text>
+						<text v-if="item.heatType=='HEAT_VALUE_SEND'" class="center plus">{{heatValue}}</text>
+					</view>
+				</view>
+
+				<view class="card-bottom">
+					<view class="center">{{item.createTime}}</view>
+				</view>
+			</view>
+		</mescroll-body-diy>
+	</view>
+</template>
+
+<script>
+	import MescrollBodyDiy from "@/uni_modules/mescroll-uni/components/mescroll-diy/xinlang/mescroll-body.vue";
+	import MescrollMixin from "@/uni_modules/mescroll-uni/components/mescroll-uni/mescroll-mixins.js";
+	export default {
+		mixins: [MescrollMixin],
+		components: {
+			MescrollBodyDiy,
+		},
+		data() {
+			return {
+				downOption: {
+					auto: false
+				},
+				top: 0,
+				list: []
+			}
+		},
+		methods: {
+			jump(item){
+				if (this.$isNotEmpty(item.activeProductId)) {
+					uni.navigateTo({
+						url:'/pages/activity/activityDetail?id='+item.activeProductId
+					})
+				}
+			},
+			downCallback() {
+				setTimeout(() => {
+					this.mescroll.resetUpScroll();
+				}, 1000)
+			},
+			upCallback(mescroll) {
+				try {
+					let params = {
+						userId: this.vuex_userId,
+						current: mescroll.num,
+						size: mescroll.size,
+					}
+					this.$api.heatrecord.list(params).then(res => {
+						let data = res.data.data.records
+						let total = res.data.data.total
+						mescroll.endBySize(data.length, total);
+						if (mescroll.num == 1) this.list = []; //如果是第一页需手动制空列表
+						this.list = this.list.concat(data); //追加新数据
+					})
+				} catch (e) {
+					console.error(e);
+					this.mescroll.endErr()
+				}
+			}
+		}
+	}
+</script>
+
+<style lang="scss" scoped>
+	.card {
+		background-color: #FFFFFF;
+		margin: 20rpx 0;
+		padding: 35rpx;
+
+		.card-top {
+			display: flex;
+			justify-content: space-between;
+			color: #353535;
+			font-size: 32rpx;
+			margin-bottom: 20rpx;
+			font-family: PingFang-SC-Bold;
+		}
+
+		.card-bottom {
+			display: flex;
+			justify-content: space-between;
+			margin-top: 20rpx;
+			color: #999999;
+			font-size: 26rpx;
+			font-weight: 400;
+		}
+	}
+</style>

+ 28 - 0
pages/webview/createOrder.vue

@@ -0,0 +1,28 @@
+<template>
+	<view class="">
+		<loading ref="loading" type="3"/>
+		<web-view :src="src"></web-view>
+	</view>
+</template>
+
+<script>
+	export default {
+		name: '',
+		data() {
+			return {
+				src: ''
+			};
+		},
+		onLoad(options) {
+			this.$refs.loading.showLoading()
+			this.src=options.url +'?goodsId='+options.goodsId
+		},
+		methods: {
+			
+		}
+	};
+</script>
+
+<style lang="scss" scoped>
+
+</style>

二进制
static/icon/mingxi.png


二进制
static/icon/titles.png