cmy 7 månader sedan
förälder
incheckning
5f5380ca2a
100 ändrade filer med 1301 tillägg och 876 borttagningar
  1. 18 0
      .gitignore
  2. 8 0
      api/index.js
  3. 17 0
      api/wallet.js
  4. 4 7
      manifest.json
  5. 19 0
      pages.json
  6. 254 0
      pages/money/trade.vue
  7. 1 1
      pages/product/list.vue
  8. 1 1
      pages/shoping/list.vue
  9. 163 0
      pages/shoping/storelist.vue
  10. 345 313
      pages/user/cash.vue
  11. 465 0
      pages/user/tradeList.vue
  12. 5 0
      pages/user/user.vue
  13. BIN
      static/user/user16.png
  14. 1 1
      store/index.js
  15. 0 0
      unpackage/dist/build/.automator/h5/.automator.json
  16. BIN
      unpackage/dist/build/h5/h5.rar
  17. 0 2
      unpackage/dist/build/h5/index.html
  18. 0 551
      unpackage/dist/build/h5/static/css/cmy.css
  19. BIN
      unpackage/dist/build/h5/static/error/emptyCart.png
  20. BIN
      unpackage/dist/build/h5/static/error/errorImage.jpg
  21. BIN
      unpackage/dist/build/h5/static/error/missing-face.png
  22. BIN
      unpackage/dist/build/h5/static/icon/add.png
  23. BIN
      unpackage/dist/build/h5/static/icon/appleIcon.png
  24. BIN
      unpackage/dist/build/h5/static/icon/bdsj.png
  25. BIN
      unpackage/dist/build/h5/static/icon/c3.png
  26. BIN
      unpackage/dist/build/h5/static/icon/c5.png
  27. BIN
      unpackage/dist/build/h5/static/icon/c6.png
  28. BIN
      unpackage/dist/build/h5/static/icon/c7.png
  29. BIN
      unpackage/dist/build/h5/static/icon/c8.png
  30. BIN
      unpackage/dist/build/h5/static/icon/dsjh.png
  31. BIN
      unpackage/dist/build/h5/static/icon/fanhui.png
  32. BIN
      unpackage/dist/build/h5/static/icon/goto.png
  33. BIN
      unpackage/dist/build/h5/static/icon/i1.png
  34. BIN
      unpackage/dist/build/h5/static/icon/i2.png
  35. BIN
      unpackage/dist/build/h5/static/icon/i3.png
  36. BIN
      unpackage/dist/build/h5/static/icon/i4.png
  37. BIN
      unpackage/dist/build/h5/static/icon/i5.png
  38. BIN
      unpackage/dist/build/h5/static/icon/i6.png
  39. BIN
      unpackage/dist/build/h5/static/icon/i7.png
  40. BIN
      unpackage/dist/build/h5/static/icon/i8.png
  41. BIN
      unpackage/dist/build/h5/static/icon/img01.png
  42. BIN
      unpackage/dist/build/h5/static/icon/img02.png
  43. BIN
      unpackage/dist/build/h5/static/icon/img03.png
  44. BIN
      unpackage/dist/build/h5/static/icon/img04.png
  45. BIN
      unpackage/dist/build/h5/static/icon/img05.png
  46. BIN
      unpackage/dist/build/h5/static/icon/img06.png
  47. BIN
      unpackage/dist/build/h5/static/icon/img07.png
  48. BIN
      unpackage/dist/build/h5/static/icon/img08.png
  49. BIN
      unpackage/dist/build/h5/static/icon/img09.png
  50. BIN
      unpackage/dist/build/h5/static/icon/img10.png
  51. BIN
      unpackage/dist/build/h5/static/icon/img11.png
  52. BIN
      unpackage/dist/build/h5/static/icon/img12.png
  53. BIN
      unpackage/dist/build/h5/static/icon/img39.png
  54. BIN
      unpackage/dist/build/h5/static/icon/index-gou.png
  55. BIN
      unpackage/dist/build/h5/static/icon/kf.png
  56. BIN
      unpackage/dist/build/h5/static/icon/mygx.png
  57. BIN
      unpackage/dist/build/h5/static/icon/myjd.png
  58. BIN
      unpackage/dist/build/h5/static/icon/myqb.png
  59. BIN
      unpackage/dist/build/h5/static/icon/mytg.png
  60. BIN
      unpackage/dist/build/h5/static/icon/myyj.png
  61. BIN
      unpackage/dist/build/h5/static/icon/reduce.png
  62. BIN
      unpackage/dist/build/h5/static/icon/search-h.png
  63. BIN
      unpackage/dist/build/h5/static/icon/select.png
  64. BIN
      unpackage/dist/build/h5/static/icon/selected.png
  65. BIN
      unpackage/dist/build/h5/static/icon/shdz.png
  66. BIN
      unpackage/dist/build/h5/static/icon/tghb.png
  67. BIN
      unpackage/dist/build/h5/static/icon/u1.png
  68. BIN
      unpackage/dist/build/h5/static/icon/u2.png
  69. BIN
      unpackage/dist/build/h5/static/icon/u3.png
  70. BIN
      unpackage/dist/build/h5/static/icon/u4.png
  71. BIN
      unpackage/dist/build/h5/static/icon/u5.png
  72. BIN
      unpackage/dist/build/h5/static/icon/wenhao.png
  73. BIN
      unpackage/dist/build/h5/static/img/add.png
  74. BIN
      unpackage/dist/build/h5/static/img/address.png
  75. BIN
      unpackage/dist/build/h5/static/img/arc.png
  76. BIN
      unpackage/dist/build/h5/static/img/back.png
  77. BIN
      unpackage/dist/build/h5/static/img/backb.png
  78. BIN
      unpackage/dist/build/h5/static/img/bo.png
  79. BIN
      unpackage/dist/build/h5/static/img/busy.png
  80. BIN
      unpackage/dist/build/h5/static/img/call.png
  81. BIN
      unpackage/dist/build/h5/static/img/cart.png
  82. BIN
      unpackage/dist/build/h5/static/img/cash-bg.png
  83. BIN
      unpackage/dist/build/h5/static/img/copy.png
  84. BIN
      unpackage/dist/build/h5/static/img/delete.png
  85. BIN
      unpackage/dist/build/h5/static/img/deletes.png
  86. BIN
      unpackage/dist/build/h5/static/img/fanhui.png
  87. BIN
      unpackage/dist/build/h5/static/img/img009.609fc055.png
  88. BIN
      unpackage/dist/build/h5/static/img/img009.png
  89. BIN
      unpackage/dist/build/h5/static/img/img010.becc4342.png
  90. BIN
      unpackage/dist/build/h5/static/img/img010.png
  91. BIN
      unpackage/dist/build/h5/static/img/img02.png
  92. BIN
      unpackage/dist/build/h5/static/img/img03.png
  93. BIN
      unpackage/dist/build/h5/static/img/img04.png
  94. BIN
      unpackage/dist/build/h5/static/img/img05.png
  95. BIN
      unpackage/dist/build/h5/static/img/img06.png
  96. BIN
      unpackage/dist/build/h5/static/img/img07.png
  97. BIN
      unpackage/dist/build/h5/static/img/img08.png
  98. BIN
      unpackage/dist/build/h5/static/img/img09.png
  99. BIN
      unpackage/dist/build/h5/static/img/img10.png
  100. BIN
      unpackage/dist/build/h5/static/img/img11.png

+ 18 - 0
.gitignore

@@ -0,0 +1,18 @@
+.DS_Store
+node_modules
+dist
+.env.local
+.env.*.local
+npm-debug.log*
+yarn-debug.log*
+yarn-error.log*
+.idea
+*.suo
+*.ntvs*
+*.njsproj
+*.sln
+*.sw?
+public/video
+*.zip
+*.7z
+package-lock.json

+ 8 - 0
api/index.js

@@ -51,3 +51,11 @@ export function store_details(data, id) {
 		data
 	});
 }
+// 只有商家可以购买的商品列表
+export function store_shoping(data) {
+	return request({
+		url: '/api/groom/list/5',
+		method: 'get',
+		data
+	});
+}

+ 17 - 0
api/wallet.js

@@ -132,3 +132,20 @@ export function moneyChong(data) {
 		data
 	})
 }
+
+// 分红额度列表
+export function tradeList(data) {
+	return request({
+		url: '/api/award_range/list',
+		method: 'get',
+		data
+	});
+}
+// 分红额度转账
+export function trade(data) {
+	return request({
+		url: '/api/trade',
+		method: 'post',
+		data
+	});
+}

+ 4 - 7
manifest.json

@@ -1,6 +1,6 @@
 {
     "name" : "黄金稻子",
-    "appid" : "__UNI__F0EBD91",
+    "appid" : "__UNI__728DCC2",
     "description" : "",
     "versionName" : "1.0.0",
     "versionCode" : "100",
@@ -73,15 +73,12 @@
         "devServer" : {
             "proxy" : {
                 "/api" : {
-                    "target" : "http://hjdz.liuniu946.com/api",
-                    // "target": "https://xl.liuniu946.com/api",
-                    // "changeOrigin": true,
-                    "pathRewrite" : {
-                        "/api" : "" // rewrite path
-                    }
+                    "target" : "http://hjdz.qiniu1314.com"
                 }
             }
         },
+        // "target": "https://xl.liuniu946.com/api",
+        // "changeOrigin": true,
         "sdkConfigs" : {
             "maps" : {
                 "qqmap" : {

+ 19 - 0
pages.json

@@ -32,6 +32,12 @@
 
 			}
 		},
+		{
+			"path": "pages/shoping/storelist",
+			"style": {
+				"navigationBarTitleText": "商家专区"
+			}
+		},
 		{
 			"path": "pages/shoping/storeInfo",
 			"style": {
@@ -90,6 +96,12 @@
 				"navigationBarTitleText": "我的推广"
 			}
 		},
+		{
+			"path": "pages/user/tradeList",
+			"style": {
+				"navigationBarTitleText": "分红额度"
+			}
+		},
 		{
 			"path": "pages/user/cash",
 			"style": {
@@ -313,6 +325,13 @@
 				"navigationBarTitleText": "支付成功"
 			}
 		},
+		{
+			"path": "pages/money/trade",
+			"style": {
+				"navigationBarTitleText": "分红额度转账"
+			}
+		},
+		
 		{
 			"path": "pages/money/wallet",
 			"style": {

+ 254 - 0
pages/money/trade.vue

@@ -0,0 +1,254 @@
+<template>
+	<view class="content">
+		<view class="content-money">
+			<view class="flex " style="width: 750rpx;justify-content: space-around;margin-left: 0;">
+				<view class="buttom">
+					<view class="icon">{{ userInfo.award_range | getMoneyStyle }}</view>
+					<text class="text">可提现现金</text>
+				</view>
+			</view>
+		</view>
+		<view class="row-box">
+			<view class="title">转账额度</view>
+			<view class="row">
+				<text class="tit">¥</text>
+				<input class="input" type="number" v-model="withdrawal" placeholder="请输入转账额度" placeholder-class="placeholder" />
+				<view class="buttom" @click="withdrawal = userInfo.award_range">全部转账</view>
+			</view>
+		</view>
+		<view class="row-box">
+			<view class="title">转入用户UID</view>
+			<view class="row">
+				<input class="input" type="number" v-model="userid" placeholder="请输入转入用户UID" placeholder-class="placeholder" />
+			</view>
+		</view>
+		<button class="add-btn up" @click="confirm">提交申请</button>
+	</view>
+</template>
+
+<script>
+import { getMoneyStyle } from '@/utils/rocessor.js';
+import { tradeList } from '@/api/wallet.js';
+import { getUserInfo } from '@/api/user.js';
+import { mapState, mapMutations } from 'vuex';
+export default {
+	filters: {
+		getMoneyStyle
+	},
+	computed: {
+		...mapState('user', ['userInfo', 'orderInfo', 'hasLogin'])
+	},
+	data() {
+		return {
+			money: '0.00', //可提现金额
+			withdrawal: '', //提现金额
+			userid:''
+		};
+	},
+	onLoad(options) {
+	},
+	methods: {
+		...mapMutations('user', ['setUserInfo', 'setOrderInfo']),
+		// 跳转
+		navTo(url) {
+			uni.navigateTo({
+				url: url
+			});
+		},
+		// 提交
+		confirm() {
+			if(!this.userid){
+				uni.showToast({
+					title: '请输入UID',
+					icon:'error'
+				});
+				return
+			}
+			let data = {
+				num: this.withdrawal, //金额
+				uid: this.userid //0佣金1余额
+			};
+			trade(data)
+				.then(e => {
+					getUserInfo({})
+						.then(({ data }) => {
+							this.setUserInfo(data);
+						})
+						.catch(e => {
+							console.log(e);
+						});
+					uni.showToast({
+						title: '提交成功',
+						duration: 2000,
+						position: 'top'
+					});
+				})
+				.catch(e => {
+					console.log();
+				});
+		}
+	}
+};
+</script>
+
+<style lang="scss">
+page {
+	height: 100%;
+}
+.content-money {
+	padding: 30rpx 0;
+	background: #ffffff;
+}
+.flex {
+	background-color: #ffffff;
+	text-align: center;
+	margin: 0 30rpx;
+	border-radius: $border-radius-sm;
+	.buttom {
+		font-size: $font-lg;
+		width: 50%;
+	}
+	.interval {
+		width: 2px;
+		height: 60rpx;
+		background-color: #eeeeee;
+	}
+	.icon {
+		background-size: 100%;
+		font-size: 42rpx;
+		color: $font-color-dark;
+		font-weight: bold;
+		background-repeat: no-repeat;
+		background-position: center;
+	}
+	.text {
+		color: $font-color-light;
+	}
+}
+
+.row-box {
+	margin-top: 30rpx;
+	padding: 20rpx 30rpx;
+	background: #fff;
+	.title {
+		font-size: $font-base + 2rpx;
+		color: $font-color-dark;
+	}
+	.row {
+		display: flex;
+		align-items: center;
+		position: relative;
+		height: 80rpx;
+		.tit {
+			flex-shrink: 0;
+			width: 40rpx;
+			font-size: 30rpx;
+			color: $font-color-dark;
+		}
+		.input {
+			flex: 1;
+			font-size: 30rpx;
+			color: $font-color-dark;
+		}
+		.iconlocation {
+			font-size: 36rpx;
+			color: $font-color-light;
+		}
+
+		.buttom {
+			color: $font-color-spec;
+			font-size: $font-base;
+		}
+	}
+}
+.add-btn {
+	&.modified {
+		color: #ffffff;
+	}
+	&.up {
+		background: linear-gradient(90deg, #bb9159, #e6c79d);
+		color: #fff;
+	}
+	display: flex;
+	align-items: center;
+	justify-content: center;
+	width: 690rpx;
+	height: 80rpx;
+	margin: 0 auto;
+	margin-top: 30rpx;
+	font-size: $font-lg;
+	border-radius: 10rpx;
+	// box-shadow: 1px 2px 5px rgba(219, 63, 96, 0.4);
+}
+
+.list {
+	padding-left: 30rpx;
+	margin-top: 30rpx;
+	background-color: #ffffff;
+	.box {
+		display: flex;
+		align-items: center;
+		width: 100%;
+		height: 120rpx;
+		border-bottom: 1px solid $border-color-light;
+		.icon {
+			font-size: 48rpx;
+			padding-right: 20rpx;
+			.icon-img {
+				height: 50rpx;
+				width: 50rpx;
+			}
+		}
+		.iconweixin1 {
+			color: #18bf16;
+		}
+		.iconzhifubao {
+			color: #08aaec;
+		}
+		.title-box {
+			flex-grow: 1;
+			text-align: left;
+			.title {
+				font-size: $font-base + 2rpx;
+				color: $font-color-base;
+			}
+			.node {
+				font-size: $font-sm;
+				color: $font-color-light;
+			}
+		}
+	}
+}
+/deep/ .uni-radio-input {
+	width: 45rpx;
+	height: 45rpx;
+}
+.row {
+	display: flex;
+	align-items: center;
+	position: relative;
+	padding: 0 30upx;
+	height: 110upx;
+	background: #fff;
+
+	.tit {
+		flex-shrink: 0;
+		width: 250upx;
+		font-size: 30upx;
+		color: $font-color-dark;
+	}
+	.input {
+		flex: 1;
+		font-size: 30upx;
+		color: $font-color-dark;
+	}
+	.iconlocation {
+		font-size: 36upx;
+		color: $font-color-light;
+	}
+}
+.tip {
+	padding: 20rpx;
+	color: #fd3b39;
+}
+</style>

+ 1 - 1
pages/product/list.vue

@@ -92,7 +92,7 @@ export default {
 
 	onLoad(options) {
 		// #ifdef H5
-		// this.headerTop = document.getElementsByTagName('uni-page-head')[0].offsetHeight + 'px';
+		this.headerTop = document.getElementsByTagName('uni-page-head')[0].offsetHeight + 'px';
 		// #endif
 		this.cateId = options.tid;
 		this.loadCateList(options.fid, options.sid);

+ 1 - 1
pages/shoping/list.vue

@@ -42,7 +42,7 @@
 						<view class="shopm-title">
 							<view class="shopmt-font clamp">{{ item.name }}</view>
 						</view>
-						<!-- <view class="address">椒江区市府大道200号</view> -->
+						<view class="address">分红额度:{{+item.give_award_range_ratio}}</view>
 						<view class="shopmt-tip">{{ item.detailed_address }}</view>
 					</view>
 					<view class="right">

+ 163 - 0
pages/shoping/storelist.vue

@@ -0,0 +1,163 @@
+<template>
+	<view class="content">
+		<view class="goods-list">
+			<view v-for="(item, index) in goodsList" :key="index" class="goods-item" @click="navToDetailPage(item)">
+				<view class="image-wrapper"><image :src="item.image" mode="aspectFill"></image></view>
+				<text class="title clamp">{{ item.store_name }}</text>
+				<view class="price-box">
+					<text class="price">{{ item.price }}</text>
+					<text>原价 {{ item.ot_price }}</text>
+				</view>
+			</view>
+		</view>
+		<uni-load-more :status="loadingType"></uni-load-more>
+	</view>
+</template>
+
+<script>
+import uniLoadMore from '@/components/uni-load-more/uni-load-more.vue';
+import { store_shoping } from '@/api/index.js';
+export default {
+	components: {
+		uniLoadMore
+	},
+	data() {
+		return {
+			loadingType: 'more', //加载更多状态
+			limit: 6, //每次加载数据条数
+			page: 1, //当前页数
+			goodsList: [] //商品列表
+		};
+	},
+
+	onLoad(options) {
+		this.loadData();
+	},
+	//下拉刷新
+	onPullDownRefresh() {
+		this.loadData('refresh');
+	},
+	//监听页面是否滚动到底部加载更多
+	onReachBottom() {
+		this.loadData();
+	},
+	methods: {
+		//加载商品 ,带下拉刷新和上滑加载
+		async loadData(type = 'add', loading) {
+			let obj = this;
+			let data = {
+				page: obj.page,
+				limit: obj.limit,
+			};
+			//没有更多直接返回
+			if (type === 'add') {
+				if (obj.loadingType === 'nomore') {
+					return;
+				}
+				obj.loadingType = 'loading';
+			} else {
+				obj.loadingType = 'more';
+			}
+			if (type === 'refresh') {
+				// 清空数组
+				obj.goodsList = [];
+				obj.page = 1;
+			}
+			store_shoping(data).then(function(e) {
+				console.log(e.data);
+				const arr = e.data.list;
+				obj.goodsList = obj.goodsList.concat(arr);
+				//判断是否还有下一页,有是more  没有是nomore
+				if (obj.limit == arr.length) {
+					obj.page++;
+					obj.loadingType = 'more';
+				} else {
+					obj.loadingType = 'nomore';
+				}
+				if (type === 'refresh') {
+					if (loading == 1) {
+						uni.hideLoading();
+					} else {
+						uni.stopPullDownRefresh();
+					}
+				}
+			});
+		},
+		//详情
+		navToDetailPage(item) {
+			let id = item.id;
+			if (this.sid == 52) {
+				uni.navigateTo({
+					url: `/pages/product/product?id=${id}&isVip=1`
+				});
+			} else {
+				uni.navigateTo({
+					url: `/pages/product/product?id=${id}`
+				});
+			}
+		}
+	}
+};
+</script>
+
+<style lang="scss">
+page,
+.content {
+	background: $page-color-base;
+}
+/* 商品列表 */
+.goods-list {
+	display: flex;
+	flex-wrap: wrap;
+	padding: 0 30rpx;
+	padding-top: 30rpx;
+	.goods-item {
+		display: flex;
+		flex-direction: column;
+		width: 48%;
+		padding-bottom: 20rpx;
+		&:nth-child(2n + 1) {
+			margin-right: 4%;
+		}
+		background: #fff;
+		margin-bottom: 20rpx;
+		border-radius: 10rpx;
+		overflow: hiddens;
+	}
+	.image-wrapper {
+		width: 100%;
+		height: 330rpx;
+		border-radius: 3px;
+		overflow: hidden;
+		position: relative;
+		image {
+			width: 100%;
+			height: 100%;
+			opacity: 1;
+		}
+	}
+	.title {
+		font-size: $font-lg;
+		color: $font-color-dark;
+		line-height: 80rpx;
+		padding: 0 10rpx;
+	}
+	.price-box {
+		display: flex;
+		align-items: center;
+		justify-content: space-between;
+		font-size: 24rpx;
+		color: $font-color-light;
+		padding: 0 10rpx;
+	}
+	.price {
+		font-size: $font-lg;
+		color: #ff4c4c;
+		line-height: 1;
+		&:before {
+			content: '¥';
+			font-size: 26rpx;
+		}
+	}
+}
+</style>

+ 345 - 313
pages/user/cash.vue

@@ -3,10 +3,14 @@
 		<view class="content-money">
 			<view class="status_bar"><!-- 这里是状态栏 --></view>
 			<view class="body-title">
-				<view class="goback-box" @click="toBack"><image class="goback" src="../../static/icon/fanhui.png" mode=""></image></view>
+				<view class="goback-box" @click="toBack">
+					<image class="goback" src="../../static/icon/fanhui.png" mode=""></image>
+				</view>
 				<view class="header">我的抵用券</view>
 			</view>
-			<view class="content-bg"><image src="../../static/img/my-bg.png" mode=""></image></view>
+			<view class="content-bg">
+				<image src="../../static/img/my-bg.png" mode=""></image>
+			</view>
 			<view class="money-box">
 				<view class="money">{{ userInfo.voucher }}</view>
 				<view>余额</view>
@@ -24,9 +28,11 @@
 			</view>
 		</view>
 		<view class="navbar">
-			<view v-for="(item, index) in navList" :key="index" class="nav-item" :class="{ current: tabCurrentIndex === index }" @click="tabClick(index)">{{ item.text }}</view>
+			<view v-for="(item, index) in navList" :key="index" class="nav-item"
+				:class="{ current: tabCurrentIndex === index }" @click="tabClick(index)">{{ item.text }}</view>
 		</view>
-		<swiper :current="tabCurrentIndex" :style="{ height: maxheight }" class="swiper-box" duration="300" @change="changeTab">
+		<swiper :current="tabCurrentIndex" :style="{ height: maxheight }" class="swiper-box" duration="300"
+			@change="changeTab">
 			<swiper-item class="tab-content" v-for="(tabItem, tabIndex) in navList" :key="tabIndex">
 				<scroll-view scroll-y="true" class="list-scroll-content" @scrolltolower="loadData">
 					<!-- 空白页 -->
@@ -57,357 +63,383 @@
 </template>
 
 <script>
-import { cashList, userBalance } from '@/api/wallet.js';
-import { getMoneyStyle } from '@/utils/rocessor.js';
-import { mapState, mapMutations } from 'vuex';
-import uniLoadMore from '@/uview-ui/components/u-loadmore/u-loadmore.vue';
-import empty from '@/uview-ui/components/u-empty/u-empty.vue';
-export default {
-	filters: {
+	import {
+		cashList,
+		userBalance
+	} from '@/api/wallet.js';
+	import {
 		getMoneyStyle
-	},
-	computed: {
-		...mapState('user', ['userInfo', 'orderInfo', 'hasLogin'])
-	},
-	components: {
-		empty,
-		uniLoadMore
-	},
-	onReady(res) {
-		var _this = this;
-		uni.getSystemInfo({
-			success: resu => {
-				const query = uni.createSelectorQuery();
-				query.select('.swiper-box').boundingClientRect();
-				query.exec(function(res) {
-					_this.maxheight = resu.windowHeight - res[0].top + 'px';
-					console.log('打印页面的剩余高度', _this.height);
-				});
-			},
-			fail: res => {}
-		});
-	},
-	data() {
-		return {
-			// 头部图高度
-			maxheight: '',
-			tabCurrentIndex: 0,
-			orderStatusSum: 0,
-			recharge: 0,
-			navList: [
-				{
-					state: 1,
-					text: '收入',
-					loadingType: 'more',
-					orderList: [],
-					page: 1, //当前页数
-					limit: 10 //每次信息条数
+	} from '@/utils/rocessor.js';
+	import {
+		mapState,
+		mapMutations
+	} from 'vuex';
+	import uniLoadMore from '@/uview-ui/components/u-loadmore/u-loadmore.vue';
+	import empty from '@/uview-ui/components/u-empty/u-empty.vue';
+	export default {
+		filters: {
+			getMoneyStyle
+		},
+		computed: {
+			...mapState('user', ['userInfo', 'orderInfo', 'hasLogin'])
+		},
+		components: {
+			empty,
+			uniLoadMore
+		},
+		onReady(res) {
+			var _this = this;
+			uni.getSystemInfo({
+				success: resu => {
+					const query = uni.createSelectorQuery();
+					query.select('.swiper-box').boundingClientRect();
+					query.exec(function(res) {
+						_this.maxheight = resu.windowHeight - res[0].top + 'px';
+						console.log('打印页面的剩余高度', _this.height);
+					});
 				},
-				{
-					state: 0,
-					text: '支出',
-					loadingType: 'more',
-					orderList: [],
-					page: 1, //当前页数
-					limit: 10 //每次信息条数
-				}
-			],
-			money: ''
-		};
-	},
-	onLoad(options) {},
-	onShow() {
-		this.loadData();
-	},
-	methods: {
-		// 页面跳转
-		navto(e) {
-			uni.navigateTo({
-				url: e
+				fail: res => {}
 			});
 		},
-		// 点击返回 我的页面
-		toBack() {
-			uni.navigateBack({});
+		data() {
+			return {
+				// 头部图高度
+				maxheight: '',
+				tabCurrentIndex: 0,
+				orderStatusSum: 0,
+				recharge: 0,
+				navList: [{
+						state: 1,
+						text: '收入',
+						loadingType: 'more',
+						orderList: [],
+						page: 1, //当前页数
+						limit: 10 //每次信息条数
+					},
+					{
+						state: 0,
+						text: '支出',
+						loadingType: 'more',
+						orderList: [],
+						page: 1, //当前页数
+						limit: 10 //每次信息条数
+					}
+				],
+				money: ''
+			};
 		},
-		//获取收入支出信息
-		async loadData(source) {
-			let obj = this;
-			//这里是将订单挂载到tab列表下
-			let index = this.tabCurrentIndex;
-			let navItem = this.navList[index];
-			let state = navItem.state;
-			if (source === 'tabChange' && navItem.loaded === true) {
-				//tab切换只有第一次需要加载数据
-				return;
-			}
-			if (navItem.loadingType === 'loading') {
-				//防止重复加载
-				return;
-			}
-			// 修改当前对象状态为加载中
-			navItem.loadingType = 'loading';
-
-			cashList({
-				page: navItem.page,
-				limit: navItem.limit,
-				pm: state
-			})
-				.then(({ data }) => {
-					obj.recharge = data.sr;
-					obj.orderStatusSum = data.zc;
-					if (data.data.length != 0) {
-						if (data.data[0].list.length > 0) {
-							navItem.orderList = navItem.orderList.concat(data.data[0].list);
-							console.log(navItem.orderList);
+		onLoad(options) {},
+		onShow() {
+			this.loadData();
+		},
+		methods: {
+			// 页面跳转
+			navto(e) {
+				uni.navigateTo({
+					url: e
+				});
+			},
+			// 点击返回 我的页面
+			toBack() {
+				uni.navigateBack({});
+			},
+			//获取收入支出信息
+			async loadData(source) {
+				let obj = this;
+				//这里是将订单挂载到tab列表下
+				let index = this.tabCurrentIndex;
+				let navItem = this.navList[index];
+				let state = navItem.state;
+				if (source === 'tabChange' && navItem.loaded === true) {
+					//tab切换只有第一次需要加载数据
+					return;
+				}
+				if (navItem.loadingType === 'loading') {
+					//防止重复加载
+					return;
+				}
+				// 修改当前对象状态为加载中
+				navItem.loadingType = 'loading';
+
+				cashList({
+						page: navItem.page,
+						limit: navItem.limit,
+						pm: state
+					})
+					.then(({
+						data
+					}) => {
+						obj.recharge = data.sr;
+						obj.orderStatusSum = data.zc;
+						if (data.data.length == navItem.limit) {
+							navItem.orderList = navItem.orderList.concat(data.data);
 							navItem.page++;
-						} else {
-							navItem.loadingType = 'noMore';
-						}
-						if (navItem.limit == data.data[0].list.length) {
-							//判断是否还有数据, 有改为 more, 没有改为noMore
 							navItem.loadingType = 'more';
-							return;
 						} else {
-							//判断是否还有数据, 有改为 more, 没有改为noMore
 							navItem.loadingType = 'noMore';
 						}
-					} else {
-						navItem.loadingType = 'noMore';
-					}
-					uni.hideLoading();
-					this.$set(navItem, 'loaded', true);
-				})
-				.catch(e => {
-					console.log(e);
-				});
-		},
+						uni.hideLoading();
+						this.$set(navItem, 'loaded', true);
+					})
+					.catch(e => {
+						console.log(e);
+					});
+			},
 
-		//swiper 切换
-		changeTab(e) {
-			this.tabCurrentIndex = e.target.current;
-			this.loadData('tabChange');
-		},
-		//顶部tab点击
-		tabClick(index) {
-			this.tabCurrentIndex = index;
+			//swiper 切换
+			changeTab(e) {
+				this.tabCurrentIndex = e.target.current;
+				this.loadData('tabChange');
+			},
+			//顶部tab点击
+			tabClick(index) {
+				this.tabCurrentIndex = index;
+			}
 		}
-	}
-};
+	};
 </script>
 
 <style lang="scss">
-page {
-	background: #f1f1f1;
-	height: 100%;
-}
-.status_bar {
-	height: var(--status-bar-height);
-	width: 100%;
-}
-.content-money {
-	position: relative;
-	height: 480rpx;
-	.content-bg {
-		position: absolute;
-		top: 0;
-		left: 0;
-		right: 0;
-		width: 750rpx;
-		height: 480rpx;
-		image {
-			width: 100%;
-			height: 100%;
-		}
+	page {
+		background: #f1f1f1;
+		height: 100%;
 	}
-	.body-title {
-		height: 80rpx;
-		text-align: center;
-		font-size: 35rpx;
+
+	.status_bar {
+		height: var(--status-bar-height);
+		width: 100%;
+	}
+
+	.content-money {
 		position: relative;
-		.header {
+		height: 480rpx;
+
+		.content-bg {
 			position: absolute;
-			left: 0;
 			top: 0;
-			width: 100%;
-			font-size: 36rpx;
-			font-family: PingFang SC;
-			font-weight: bold;
-			color: #fffeff;
-			height: 80rpx;
-			font-size: 36rpx;
-			font-weight: 700;
-			z-index: 9;
-			display: flex;
-			justify-content: center;
-			align-items: center;
+			left: 0;
+			right: 0;
+			width: 750rpx;
+			height: 480rpx;
+
+			image {
+				width: 100%;
+				height: 100%;
+			}
 		}
-		.goback-box {
-			position: absolute;
-			left: 18rpx;
-			top: 0;
+
+		.body-title {
 			height: 80rpx;
+			text-align: center;
+			font-size: 35rpx;
+			position: relative;
+
+			.header {
+				position: absolute;
+				left: 0;
+				top: 0;
+				width: 100%;
+				font-size: 36rpx;
+				font-family: PingFang SC;
+				font-weight: bold;
+				color: #fffeff;
+				height: 80rpx;
+				font-size: 36rpx;
+				font-weight: 700;
+				z-index: 9;
+				display: flex;
+				justify-content: center;
+				align-items: center;
+			}
+
+			.goback-box {
+				position: absolute;
+				left: 18rpx;
+				top: 0;
+				height: 80rpx;
+				display: flex;
+				align-items: center;
+			}
+
+			.goback {
+				z-index: 100;
+				width: 34rpx;
+				height: 34rpx;
+			}
+		}
+	}
+
+	.info-box {
+		width: 670rpx;
+		height: 186rpx;
+		background: #ffffff;
+		box-shadow: 0px 0px 20rpx 0px rgba(50, 50, 52, 0.06);
+		border-radius: 20rpx;
+		margin: -100rpx auto 0;
+		position: relative;
+		z-index: 2;
+
+		.info-item {
+			width: 50%;
 			display: flex;
+			flex-direction: column;
 			align-items: center;
+			line-height: 1;
+
+			.info-font {
+				font-size: 30rpx;
+				font-family: PingFang SC;
+				font-weight: bold;
+				color: #999999;
+			}
+
+			.info-num {
+				margin-top: 30rpx;
+				font-size: 30rpx;
+				font-family: PingFang SC;
+				font-weight: bold;
+				color: #181818;
+			}
 		}
 
-		.goback {
-			z-index: 100;
-			width: 34rpx;
-			height: 34rpx;
+		.shu {
+			width: 2rpx;
+			height: 74rpx;
+			background: #dcdfe6;
 		}
 	}
-}
-.info-box {
-	width: 670rpx;
-	height: 186rpx;
-	background: #ffffff;
-	box-shadow: 0px 0px 20rpx 0px rgba(50, 50, 52, 0.06);
-	border-radius: 20rpx;
-	margin: -100rpx auto 0;
-	position: relative;
-	z-index: 2;
-	.info-item {
-		width: 50%;
+
+	.moneybtn-box {
 		display: flex;
-		flex-direction: column;
-		align-items: center;
-		line-height: 1;
-		.info-font {
-			font-size: 30rpx;
+		justify-content: space-between;
+		position: relative;
+		z-index: 2;
+		color: #ffffff;
+		padding: 20rpx 50rpx;
+		font-size: 30rpx;
+		font-family: PingFang SC;
+		font-weight: bold;
+		color: #ffffff;
+	}
+
+	.money-box {
+		position: relative;
+		z-index: 2;
+		padding-top: 90rpx;
+		color: #ffffff;
+		text-align: center;
+
+		.money {
+			font-size: 72rpx;
 			font-family: PingFang SC;
 			font-weight: bold;
-			color: #999999;
+			color: #ffffff;
 		}
-		.info-num {
-			margin-top: 30rpx;
+
+		.text {
 			font-size: 30rpx;
-			font-family: PingFang SC;
-			font-weight: bold;
-			color: #181818;
 		}
 	}
-	.shu {
-		width: 2rpx;
-		height: 74rpx;
-		background: #dcdfe6;
-	}
-}
-.moneybtn-box {
-	display: flex;
-	justify-content: space-between;
-	position: relative;
-	z-index: 2;
-	color: #ffffff;
-	padding: 20rpx 50rpx;
-	font-size: 30rpx;
-	font-family: PingFang SC;
-	font-weight: bold;
-	color: #ffffff;
-}
-.money-box {
-	position: relative;
-	z-index: 2;
-	padding-top: 90rpx;
-	color: #ffffff;
-	text-align: center;
-	.money {
-		font-size: 72rpx;
-		font-family: PingFang SC;
-		font-weight: bold;
-		color: #ffffff;
-	}
-	.text {
-		font-size: 30rpx;
-	}
-}
-
-.navbar {
-	margin-top: 20rpx;
-	display: flex;
-	height: 88rpx;
-	padding: 0 5px;
-	background: #fff;
-	box-shadow: 0 1px 5px rgba(0, 0, 0, 0.06);
-	position: relative;
-	z-index: 10;
-	.nav-item {
-		flex: 1;
+
+	.navbar {
+		margin-top: 20rpx;
 		display: flex;
-		justify-content: center;
-		align-items: center;
-		height: 100%;
-		font-size: 15px;
-		color: #999999;
+		height: 88rpx;
+		padding: 0 5px;
+		background: #fff;
+		box-shadow: 0 1px 5px rgba(0, 0, 0, 0.06);
 		position: relative;
-		&.current {
-			color: #000;
-			&:after {
-				content: '';
-				position: absolute;
-				left: 50%;
-				bottom: 0;
-				transform: translateX(-50%);
-				width: 44px;
-				height: 0;
-				border-bottom: 2px solid #fe5b38;
+		z-index: 10;
+
+		.nav-item {
+			flex: 1;
+			display: flex;
+			justify-content: center;
+			align-items: center;
+			height: 100%;
+			font-size: 15px;
+			color: #999999;
+			position: relative;
+
+			&.current {
+				color: #000;
+
+				&:after {
+					content: '';
+					position: absolute;
+					left: 50%;
+					bottom: 0;
+					transform: translateX(-50%);
+					width: 44px;
+					height: 0;
+					border-bottom: 2px solid #fe5b38;
+				}
 			}
 		}
 	}
-}
-//列表
-.swiper-box {
-	.order-item:last-child {
-		margin-bottom: 60rpx;
-	}
-	.order-item {
-		padding: 20rpx 30rpx;
-		line-height: 1.5;
-		.title-box {
-			.title {
-				font-size: $font-lg;
-				color: $font-color-base;
+
+	//列表
+	.swiper-box {
+		.order-item:last-child {
+			margin-bottom: 60rpx;
+		}
+
+		.order-item {
+			padding: 20rpx 30rpx;
+			line-height: 1.5;
+
+			.title-box {
+				.title {
+					font-size: $font-lg;
+					color: $font-color-base;
+				}
+
+				.time {
+					font-size: $font-base;
+					color: $font-color-light;
+				}
 			}
-			.time {
-				font-size: $font-base;
-				color: $font-color-light;
+
+			.money {
+				color: #fd5b23;
+				font-size: $font-lg;
+				text-align: right;
+
+				.status {
+					color: $font-color-light;
+				}
 			}
 		}
-		.money {
-			color: #fd5b23;
-			font-size: $font-lg;
-			text-align: right;
-			.status {
-				color: $font-color-light;
-			}
+	}
+
+	.list-scroll-content {
+		background: #ffffff;
+		height: 100%;
+	}
+
+	.content {
+		height: 100%;
+
+		.empty-content {
+			background-color: #ffffff;
 		}
 	}
-}
-.list-scroll-content {
-	background: #ffffff;
-	height: 100%;
-}
-.content {
-	height: 100%;
-	.empty-content {
-		background-color: #ffffff;
+
+	.btn-box {
+		width: 674rpx;
+		height: 88rpx;
+		background: linear-gradient(0deg, #2e58ff, #32c6ff);
+		border-radius: 44rpx;
+		font-size: 36rpx;
+		font-family: PingFang SC;
+		font-weight: 500;
+		color: #ffffff;
+		text-align: center;
+		line-height: 88rpx;
+		position: fixed;
+		bottom: 48rpx;
+		left: 0;
+		right: 0;
+		margin: 0 auto;
 	}
-}
-.btn-box {
-	width: 674rpx;
-	height: 88rpx;
-	background: linear-gradient(0deg, #2e58ff, #32c6ff);
-	border-radius: 44rpx;
-	font-size: 36rpx;
-	font-family: PingFang SC;
-	font-weight: 500;
-	color: #ffffff;
-	text-align: center;
-	line-height: 88rpx;
-	position: fixed;
-	bottom: 48rpx;
-	left: 0;
-	right: 0;
-	margin: 0 auto;
-}
-</style>
+</style>

+ 465 - 0
pages/user/tradeList.vue

@@ -0,0 +1,465 @@
+<template>
+	<view class="content">
+		<view class="content-money">
+			<view class="status_bar"><!-- 这里是状态栏 --></view>
+			<view class="body-title">
+				<view class="goback-box" @click="toBack">
+					<image class="goback" src="../../static/icon/fanhui.png" mode=""></image>
+				</view>
+				<view class="header">分红额度</view>
+			</view>
+			<view class="content-bg">
+				<image src="../../static/img/my-bg.png" mode=""></image>
+			</view>
+			<view class="money-box">
+				<view class="money">{{ userInfo.award_range }}</view>
+				<view>余额</view>
+			</view>
+			<view class="money-btn" @click="navto('/pages/money/trade')">
+				额度转账
+				<text>></text>
+			</view>
+		</view>
+		<view class="info-box flex">
+			<view class="info-item">
+				<view class="info-font">累计收入</view>
+				<view class="info-num">{{ recharge }}</view>
+			</view>
+			<view class="shu"></view>
+			<view class="info-item">
+				<view class="info-font">累计支出</view>
+				<view class="info-num">{{ orderStatusSum }}</view>
+			</view>
+		</view>
+		<view class="navbar">
+			<view v-for="(item, index) in navList" :key="index" class="nav-item"
+				:class="{ current: tabCurrentIndex === index }" @click="tabClick(index)">{{ item.text }}</view>
+		</view>
+		<swiper :current="tabCurrentIndex" :style="{ height: maxheight }" class="swiper-box" duration="300"
+			@change="changeTab">
+			<swiper-item class="tab-content" v-for="(tabItem, tabIndex) in navList" :key="tabIndex">
+				<scroll-view scroll-y="true" class="list-scroll-content" @scrolltolower="loadData">
+					<!-- 空白页 -->
+					<empty v-if="tabItem.loaded === true && tabItem.orderList.length === 0"></empty>
+
+					<!-- 订单列表 -->
+					<view>
+						<view class="order-item flex" v-for="(item, index) in tabItem.orderList" :key="index">
+							<view class="title-box">
+								<view class="title">
+									<text>{{ item.mark }}</text>
+								</view>
+								<view class="time">
+									<text>{{ item.add_time }}</text>
+								</view>
+							</view>
+							<view class="money">
+								<view>{{ (item.pm == 0 ? '-' : '+') + item.number }}</view>
+								<view v-if="item.status == 0" class="status">待发放</view>
+							</view>
+						</view>
+					</view>
+					<uni-load-more :status="tabItem.loadingType"></uni-load-more>
+				</scroll-view>
+			</swiper-item>
+		</swiper>
+	</view>
+</template>
+
+<script>
+	import {
+		tradeList,
+		userBalance
+	} from '@/api/wallet.js';
+	import {
+		getMoneyStyle
+	} from '@/utils/rocessor.js';
+	import {
+		mapState,
+		mapMutations
+	} from 'vuex';
+	import uniLoadMore from '@/uview-ui/components/u-loadmore/u-loadmore.vue';
+	import empty from '@/uview-ui/components/u-empty/u-empty.vue';
+	export default {
+		filters: {
+			getMoneyStyle
+		},
+		computed: {
+			...mapState('user', ['userInfo', 'orderInfo', 'hasLogin'])
+		},
+		components: {
+			empty,
+			uniLoadMore
+		},
+		onReady(res) {
+			var _this = this;
+			uni.getSystemInfo({
+				success: resu => {
+					const query = uni.createSelectorQuery();
+					query.select('.swiper-box').boundingClientRect();
+					query.exec(function(res) {
+						_this.maxheight = resu.windowHeight - res[0].top + 'px';
+						console.log('打印页面的剩余高度', _this.height);
+					});
+				},
+				fail: res => {}
+			});
+		},
+		data() {
+			return {
+				// 头部图高度
+				maxheight: '',
+				tabCurrentIndex: 0,
+				orderStatusSum: 0,
+				recharge: 0,
+				navList: [{
+						state: 1,
+						text: '收入',
+						loadingType: 'more',
+						orderList: [],
+						page: 1, //当前页数
+						limit: 10 //每次信息条数
+					},
+					{
+						state: 0,
+						text: '支出',
+						loadingType: 'more',
+						orderList: [],
+						page: 1, //当前页数
+						limit: 10 //每次信息条数
+					}
+				],
+				money: ''
+			};
+		},
+		onLoad(options) {},
+		onShow() {
+			this.loadData();
+		},
+		methods: {
+			// 页面跳转
+			navto(e) {
+				uni.navigateTo({
+					url: e
+				});
+			},
+			// 点击返回 我的页面
+			toBack() {
+				uni.navigateBack({});
+			},
+			//获取收入支出信息
+			async loadData(source) {
+				let obj = this;
+				//这里是将订单挂载到tab列表下
+				let index = this.tabCurrentIndex;
+				let navItem = this.navList[index];
+				let state = navItem.state;
+				if (source === 'tabChange' && navItem.loaded === true) {
+					//tab切换只有第一次需要加载数据
+					return;
+				}
+				if (navItem.loadingType === 'loading') {
+					//防止重复加载
+					return;
+				}
+				// 修改当前对象状态为加载中
+				navItem.loadingType = 'loading';
+
+				tradeList({
+						page: navItem.page,
+						limit: navItem.limit,
+						pm: state
+					})
+					.then(({
+						data
+					}) => {
+						obj.recharge = data.sr;
+						obj.orderStatusSum = data.zc;
+						if (data.data.length == navItem.limit) {
+							navItem.orderList = navItem.orderList.concat(data.data);
+							navItem.page++;
+							navItem.loadingType = 'more';
+						} else {
+							navItem.loadingType = 'noMore';
+						}
+						uni.hideLoading();
+						this.$set(navItem, 'loaded', true);
+					})
+					.catch(e => {
+						console.log(e);
+					});
+			},
+
+			//swiper 切换
+			changeTab(e) {
+				this.tabCurrentIndex = e.target.current;
+				this.loadData('tabChange');
+			},
+			//顶部tab点击
+			tabClick(index) {
+				this.tabCurrentIndex = index;
+			}
+		}
+	};
+</script>
+
+<style lang="scss">
+	page {
+		background: #f1f1f1;
+		height: 100%;
+	}
+
+	.status_bar {
+		height: var(--status-bar-height);
+		width: 100%;
+	}
+
+	.content-money {
+		position: relative;
+		height: 480rpx;
+
+		.content-bg {
+			position: absolute;
+			top: 0;
+			left: 0;
+			right: 0;
+			width: 750rpx;
+			height: 480rpx;
+
+			image {
+				width: 100%;
+				height: 100%;
+			}
+		}
+
+		.body-title {
+			height: 80rpx;
+			text-align: center;
+			font-size: 35rpx;
+			position: relative;
+
+			.header {
+				position: absolute;
+				left: 0;
+				top: 0;
+				width: 100%;
+				font-size: 36rpx;
+				font-family: PingFang SC;
+				font-weight: bold;
+				color: #fffeff;
+				height: 80rpx;
+				font-size: 36rpx;
+				font-weight: 700;
+				z-index: 9;
+				display: flex;
+				justify-content: center;
+				align-items: center;
+			}
+
+			.goback-box {
+				position: absolute;
+				left: 18rpx;
+				top: 0;
+				height: 80rpx;
+				display: flex;
+				align-items: center;
+			}
+
+			.goback {
+				z-index: 100;
+				width: 34rpx;
+				height: 34rpx;
+			}
+		}
+	}
+
+	.info-box {
+		width: 670rpx;
+		height: 186rpx;
+		background: #ffffff;
+		box-shadow: 0px 0px 20rpx 0px rgba(50, 50, 52, 0.06);
+		border-radius: 20rpx;
+		margin: -100rpx auto 0;
+		position: relative;
+		z-index: 2;
+
+		.info-item {
+			width: 50%;
+			display: flex;
+			flex-direction: column;
+			align-items: center;
+			line-height: 1;
+
+			.info-font {
+				font-size: 30rpx;
+				font-family: PingFang SC;
+				font-weight: bold;
+				color: #999999;
+			}
+
+			.info-num {
+				margin-top: 30rpx;
+				font-size: 30rpx;
+				font-family: PingFang SC;
+				font-weight: bold;
+				color: #181818;
+			}
+		}
+
+		.shu {
+			width: 2rpx;
+			height: 74rpx;
+			background: #dcdfe6;
+		}
+	}
+
+	.moneybtn-box {
+		display: flex;
+		justify-content: space-between;
+		position: relative;
+		z-index: 2;
+		color: #ffffff;
+		padding: 20rpx 50rpx;
+		font-size: 30rpx;
+		font-family: PingFang SC;
+		font-weight: bold;
+		color: #ffffff;
+	}
+
+	.money-box {
+		position: relative;
+		z-index: 2;
+		padding-top: 90rpx;
+		color: #ffffff;
+		text-align: center;
+
+		.money {
+			font-size: 72rpx;
+			font-family: PingFang SC;
+			font-weight: bold;
+			color: #ffffff;
+		}
+
+		.text {
+			font-size: 30rpx;
+		}
+	}
+
+	.navbar {
+		margin-top: 20rpx;
+		display: flex;
+		height: 88rpx;
+		padding: 0 5px;
+		background: #fff;
+		box-shadow: 0 1px 5px rgba(0, 0, 0, 0.06);
+		position: relative;
+		z-index: 10;
+
+		.nav-item {
+			flex: 1;
+			display: flex;
+			justify-content: center;
+			align-items: center;
+			height: 100%;
+			font-size: 15px;
+			color: #999999;
+			position: relative;
+
+			&.current {
+				color: #000;
+
+				&:after {
+					content: '';
+					position: absolute;
+					left: 50%;
+					bottom: 0;
+					transform: translateX(-50%);
+					width: 44px;
+					height: 0;
+					border-bottom: 2px solid #fe5b38;
+				}
+			}
+		}
+	}
+
+	//列表
+	.swiper-box {
+		.order-item:last-child {
+			margin-bottom: 60rpx;
+		}
+
+		.order-item {
+			padding: 20rpx 30rpx;
+			line-height: 1.5;
+
+			.title-box {
+				.title {
+					font-size: $font-lg;
+					color: $font-color-base;
+				}
+
+				.time {
+					font-size: $font-base;
+					color: $font-color-light;
+				}
+			}
+
+			.money {
+				color: #fd5b23;
+				font-size: $font-lg;
+				text-align: right;
+
+				.status {
+					color: $font-color-light;
+				}
+			}
+		}
+	}
+
+	.list-scroll-content {
+		background: #ffffff;
+		height: 100%;
+	}
+
+	.content {
+		height: 100%;
+
+		.empty-content {
+			background-color: #ffffff;
+		}
+	}
+
+	.btn-box {
+		width: 674rpx;
+		height: 88rpx;
+		background: linear-gradient(0deg, #2e58ff, #32c6ff);
+		border-radius: 44rpx;
+		font-size: 36rpx;
+		font-family: PingFang SC;
+		font-weight: 500;
+		color: #ffffff;
+		text-align: center;
+		line-height: 88rpx;
+		position: fixed;
+		bottom: 48rpx;
+		left: 0;
+		right: 0;
+		margin: 0 auto;
+	}
+	.money-btn {
+		position: relative;
+		z-index: 2;
+		color: #ffffff;
+		padding-right: 50rpx;
+		text-align: right;
+		font-size: 30rpx;
+		font-family: PingFang SC;
+		font-weight: bold;
+		color: #ffffff;
+	
+		text {
+			display: inline-block;
+			padding-left: 10rpx;
+		}
+	}
+</style>

+ 5 - 0
pages/user/user.vue

@@ -52,6 +52,10 @@
 					<view class="item-num">{{ userInfo.voucher }}</view>
 					<view class="item-font">抵用券</view>
 				</view>
+				<view class="item" @click="navTo('/pages/user/tradeList')">
+					<view class="item-num">{{ userInfo.award_range }}</view>
+					<view class="item-font">分红额度</view>
+				</view>
 			</view>
 		</view>
 		<view class="main-box">
@@ -82,6 +86,7 @@
 			</view>
 		</view>
 		<uni-list class="tool-list">
+			<uni-list-item title="商家专区" v-if="userInfo.is_store==1" @click="navTo('/pages/shoping/storelist')" thumb="/static/user/user16.png"></uni-list-item>
 			<uni-list-item title="我的推广" @click="navTo('/pages/user/team')" thumb="/static/user/user15.png"></uni-list-item>
 			<uni-list-item title="邀请有礼" @click="navTo('/pages/user/shareQrCode')" thumb="/static/user/user10.png"></uni-list-item>
 			<uni-list-item title="我的收藏" @click="navTo('/pages/user/favorites')" thumb="/static/user/user11.png"></uni-list-item>

BIN
static/user/user16.png


+ 1 - 1
store/index.js

@@ -11,7 +11,7 @@ Vue.use(Vuex)
 
 const store = new Vuex.Store({
 	state: {
-		baseURL: 'http://hjdz.liuniu946.com', //请求地址配置 
+		baseURL: 'http://hjdz.qiniu1314.com', //请求地址配置 
 		urlFile: '/index', //项目部署所在文件夹
 		userInfo: {}, //登录信息
 		loginInterceptor: false, //是否打开强制登录

+ 0 - 0
unpackage/dist/build/.automator/h5/.automator.json


BIN
unpackage/dist/build/h5/h5.rar


+ 0 - 2
unpackage/dist/build/h5/index.html

@@ -1,2 +0,0 @@
-<!DOCTYPE html><html lang=zh-CN><head><meta charset=utf-8><meta http-equiv=X-UA-Compatible content="IE=edge"><title>黄金稻子</title><script>var coverSupport = 'CSS' in window && typeof CSS.supports === 'function' && (CSS.supports('top: env(a)') || CSS.supports('top: constant(a)'))
-            document.write('<meta name="viewport" content="width=device-width, user-scalable=no, initial-scale=1.0, maximum-scale=1.0, minimum-scale=1.0' + (coverSupport ? ', viewport-fit=cover' : '') + '" />')</script><link rel=stylesheet href=/index/static/index.a5c69d49.css></head><body><noscript><strong>Please enable JavaScript to continue.</strong></noscript><div id=app></div><script src=/index/static/js/chunk-vendors.a0f378b7.js></script><script src=/index/static/js/index.9be10489.js></script></body></html>

+ 0 - 551
unpackage/dist/build/h5/static/css/cmy.css

@@ -1,551 +0,0 @@
-/*初始化类*/
-@font-face {
-	font-family: 'iconfont';
-	/* project id 1482221 */
-	src: url('https://at.alicdn.com/t/font_1482221_x9emymthrxs.eot');
-	src: url('https://at.alicdn.com/t/font_1482221_x9emymthrxs.eot?#iefix') format('embedded-opentype'),
-		url('https://at.alicdn.com/t/font_1482221_x9emymthrxs.woff2') format('woff2'),
-		url('https://at.alicdn.com/t/font_1482221_x9emymthrxs.woff') format('woff'),
-		url('https://at.alicdn.com/t/font_1482221_x9emymthrxs.ttf') format('truetype'),
-		url('https://at.alicdn.com/t/font_1482221_x9emymthrxs.svg#iconfont') format('svg');
-}
-
-.acea-row {
-	display: -webkit-box;
-	display: -moz-box;
-	display: -webkit-flex;
-	display: -ms-flexbox;
-	display: flex;
-	-webkit-box-lines: multiple;
-	-moz-box-lines: multiple;
-	-o-box-lines: multiple;
-	-webkit-flex-wrap: wrap;
-	-ms-flex-wrap: wrap;
-	flex-wrap: wrap
-}
-
-.acea-row.row-middle {
-	-webkit-box-align: center;
-	-moz-box-align: center;
-	-o-box-align: center;
-	-ms-flex-align: center;
-	-webkit-align-items: center;
-	align-items: center
-}
-
-.bg-color-red {
-	background-color: #e93323 !important;
-}
-
-.acea-row.row-right {
-	-webkit-box-pack: end;
-	-moz-box-pack: end;
-	-o-box-pack: end;
-	-ms-flex-pack: end;
-	-webkit-justify-content: flex-end;
-	justify-content: flex-end
-}
-
-.acea-row.row-between-wrapper {
-	-webkit-box-align: center;
-	-moz-box-align: center;
-	-o-box-align: center;
-	-ms-flex-align: center;
-	-webkit-align-items: center;
-	align-items: center;
-	-webkit-box-pack: justify;
-	-moz-box-pack: justify;
-	-o-box-pack: justify;
-	-ms-flex-pack: justify;
-	-webkit-justify-content: space-between;
-	justify-content: space-between
-}
-
-.acea-row.row-column-around {
-	-webkit-flex-direction: column;
-	-ms-flex-direction: column;
-	flex-direction: column;
-	justify-content: space-around;
-	-webkit-justify-content: space-around
-}
-
-.acea-row.row-center-wrapper {
-	-webkit-box-align: center;
-	-moz-box-align: center;
-	-o-box-align: center;
-	-ms-flex-align: center;
-	-webkit-align-items: center;
-	align-items: center;
-	-webkit-box-pack: center;
-	-moz-box-pack: center;
-	-o-box-pack: center;
-	-ms-flex-pack: center;
-	-webkit-justify-content: center;
-	justify-content: center
-}
-
-.iconfont {
-	font-family: "iconfont" !important;
-	font-size: 34rpx;
-	font-style: normal;
-	-webkit-font-smoothing: antialiased;
-	-webkit-text-stroke-width: 0rpx;
-	-moz-osx-font-smoothing: grayscale;
-}
-
-.iconedit:before {
-	content: "\e649";
-}
-
-.iconfavorfill:before {
-	content: "\e64b";
-}
-
-.iconfavor:before {
-	content: "\e64c";
-}
-
-.iconlocation:before {
-	content: "\e651";
-}
-
-.iconroundcheckfill:before {
-	content: "\e656";
-}
-
-.iconroundcheck:before {
-	content: "\e657";
-}
-
-.iconunfold:before {
-	content: "\e661";
-}
-
-.iconlikefill:before {
-	content: "\e668";
-}
-
-.iconlike:before {
-	content: "\e669";
-}
-
-.iconshop:before {
-	content: "\e676";
-}
-
-.iconcart:before {
-	content: "\e6af";
-}
-
-.icondelete:before {
-	content: "\e6b4";
-}
-
-.iconhome:before {
-	content: "\e6b8";
-}
-
-.iconcartfill:before {
-	content: "\e6b9";
-}
-
-.iconhomefill:before {
-	content: "\e6bb";
-}
-
-.iconlock:before {
-	content: "\e6c0";
-}
-
-.iconfriendadd:before {
-	content: "\e6ca";
-}
-
-.iconfold:before {
-	content: "\e6de";
-}
-
-.iconapps:before {
-	content: "\e729";
-}
-
-.iconadd:before {
-	content: "\e767";
-}
-
-.iconmove:before {
-	content: "\e768";
-}
-
-.icontriangledownfill:before {
-	content: "\e79b";
-}
-
-.icontriangleupfill:before {
-	content: "\e79c";
-}
-
-.iconshaixuan:before {
-	content: "\e74a";
-}
-
-.iconyanzhengma:before {
-	content: "\e684";
-}
-
-.iconjifen:before {
-	content: "\e60f";
-}
-
-.iconwuliuxinxi:before {
-	content: "\e62b";
-}
-
-.iconmessage:before {
-	content: "\e78a";
-}
-
-.iconsetting:before {
-	content: "\e78e";
-}
-
-.iconaddition:before {
-	content: "\e6e0";
-}
-
-.iconclose:before {
-	content: "\e6e9";
-}
-
-.iconenter:after {
-	content: "\e6f8";
-}
-
-.iconprompt:before {
-	content: "\e71b";
-}
-
-.iconreturn:before {
-	content: "\e720";
-}
-
-.iconsearch:before {
-	content: "\e741";
-}
-
-.iconpengyouquan:before {
-	content: "\e62c";
-}
-
-.iconweixin:before {
-	content: "\e60e";
-}
-
-.iconzhifubao:before {
-	content: "\e673";
-}
-
-.iconyue:before {
-	content: "\e618";
-}
-
-.iconweixin1:before {
-	content: "\e622";
-}
-
-.iconlock1:before {
-	content: "\e64d";
-}
-
-.iconuser:before {
-	content: "\e64e";
-}
-
-.iconchenggongtixianshouyi:before {
-	content: "\e64f";
-}
-
-.iconviptuiguangdingdan:before {
-	content: "\e650";
-}
-
-.icondaifukuan:before {
-	content: "\e652";
-}
-
-.icondaijiesuanshouyi:before {
-	content: "\e653";
-}
-
-.icondaidakuanshouyi:before {
-	content: "\e654";
-}
-
-.icondaifahuo:before {
-	content: "\e655";
-}
-
-.icondaishouhuoshouyi:before {
-	content: "\e658";
-}
-
-.icondaishouhuo:before {
-	content: "\e659";
-}
-
-.iconwuxiaoshouyi:before {
-	content: "\e65a";
-}
-
-.icontixianmingxi:before {
-	content: "\e65b";
-}
-
-.iconshouyi:before {
-	content: "\e65c";
-}
-
-.iconkouchutixianshouxufei:before {
-	content: "\e65d";
-}
-
-.iconyishenqingshouyi:before {
-	content: "\e65e";
-}
-
-.icontuihuanhuo:before {
-	content: "\e65f";
-}
-
-
-/*水平线*/
-.hr {
-	width: 100%;
-	position: relative;
-	border-bottom: 1px solid #dddddd;
-	/* height: 0.5rpx; */
-}
-
-/* 一行显示 */
-.clamp {
-	overflow: hidden;
-	text-overflow: ellipsis;
-	white-space: nowrap;
-	display: block;
-}
-
-/* 二行显示 */
-.clamp2 {
-	overflow: hidden;
-	text-overflow: ellipsis;
-	display: -webkit-box;
-	-webkit-line-clamp: 2;
-	-webkit-box-orient: vertical;
-}
-
-/* 二行显示 */
-.ellipsis {
-	overflow: hidden;
-	text-overflow: ellipsis;
-	display: -webkit-box;
-	-webkit-box-orient: vertical;
-	-webkit-line-clamp: 2;
-}
-
-.common-hover {
-	background: #f5f5f5;
-}
-
-/* 角标 */
-.corner {
-	background-color: #e51c23;
-	position: absolute;
-	right: -18rpx;
-	top: -18rpx;
-	color: #FFFFFF;
-	text-align: center;
-	border-radius: 999px;
-	font-size: 24rpx !important;
-	min-width: 35rpx;
-	min-height: 35rpx;
-	display: flex;
-	align-items: center;
-	justify-content: center;
-	line-height: 1;
-}
-
-.flex_item {
-	display: flex;
-	align-items: center;
-	/* justify-content: space-between; */
-}
-
-/* 左右顶格加上下居中 */
-.flex-between-center {
-	display: flex;
-	justify-content: space-between;
-	align-items: center;
-}
-
-/* flex布局-整体居中 */
-.flex-center {
-	display: flex;
-	align-items: center;
-	justify-content: center;
-}
-
-.flex-start {
-	display: flex;
-	align-items: center;
-	justify-content: flex-start;
-}
-
-/*文字对齐*/
-.text-left {
-	text-align: left !important;
-}
-
-.text-center {
-	text-align: center !important;
-}
-
-.text-justify {
-	text-align: justify !important;
-}
-
-.text-right {
-	text-align: right !important;
-}
-
-.text-default {
-	color: #212121 !important;
-}
-
-.text-white {
-	color: #ffffff !important;
-}
-
-.text-primary {
-	color: #00bcd4 !important;
-}
-
-.text-success {
-	color: #009688 !important;
-}
-
-.text-info {
-	color: #03a9f4 !important;
-}
-
-.text-warning {
-	color: #ffc107 !important;
-}
-
-.text-danger {
-	color: #e51c23 !important;
-}
-
-.text-pink {
-	color: #e91e63 !important;
-}
-
-.text-purple {
-	color: #673ab7 !important;
-}
-
-.text-indigo {
-	color: #3f51b5 !important;
-}
-
-.text-gray {
-	color: #999999 !important;
-}
-
-.bg-default {
-	background-color: #f5f5f5 !important;
-}
-
-.bg-primary {
-	background-color: #00bcd4 !important;
-}
-
-.bg-success {
-	background-color: #009688 !important;
-}
-
-.bg-info {
-	background-color: #03a9f4 !important;
-}
-
-.bg-warning {
-	background-color: #FFB238 !important;
-}
-
-.bg-danger {
-	background-color: #DC4D46 !important;
-}
-
-.bg-pink {
-	background-color: #e91e63 !important;
-}
-
-.bg-purple {
-	background-color: #673ab7 !important;
-}
-
-.bg-indigo {
-	background-color: #3f51b5 !important;
-}
-
-.bg-white {
-	background-color: white !important;
-}
-
-.bg-gray {
-	background-color: #e3e3e3 !important;
-}
-
-/* 边框 */
-.border-radius-15 {
-	border-radius: 15rpx;
-}
-
-.border-radius-10 {
-	border-radius: 10rpx;
-}
-
-.border-radius-all {
-	border-radius: 1000rpx;
-}
-
-/* 底部边线 */
-.borde-b {
-	border-bottom: 1px solid #dddddd;
-}
-
-/* 弹性盒子 */
-.flex {
-	display: flex;
-	align-items: center;
-	justify-content: space-between;
-}
-
-.items-left {
-	justify-content: flex-start;
-}
-
-.items-right {
-	justify-content: flex-end;
-}
-
-.flex-shrink-false {
-	flex-shrink: 0;
-}
-
-.flex-grow-true {
-	flex-grow: 1;
-}
-
-.position-relative {
-	position: relative;
-}

BIN
unpackage/dist/build/h5/static/error/emptyCart.png


BIN
unpackage/dist/build/h5/static/error/errorImage.jpg


BIN
unpackage/dist/build/h5/static/error/missing-face.png


BIN
unpackage/dist/build/h5/static/icon/add.png


BIN
unpackage/dist/build/h5/static/icon/appleIcon.png


BIN
unpackage/dist/build/h5/static/icon/bdsj.png


BIN
unpackage/dist/build/h5/static/icon/c3.png


BIN
unpackage/dist/build/h5/static/icon/c5.png


BIN
unpackage/dist/build/h5/static/icon/c6.png


BIN
unpackage/dist/build/h5/static/icon/c7.png


BIN
unpackage/dist/build/h5/static/icon/c8.png


BIN
unpackage/dist/build/h5/static/icon/dsjh.png


BIN
unpackage/dist/build/h5/static/icon/fanhui.png


BIN
unpackage/dist/build/h5/static/icon/goto.png


BIN
unpackage/dist/build/h5/static/icon/i1.png


BIN
unpackage/dist/build/h5/static/icon/i2.png


BIN
unpackage/dist/build/h5/static/icon/i3.png


BIN
unpackage/dist/build/h5/static/icon/i4.png


BIN
unpackage/dist/build/h5/static/icon/i5.png


BIN
unpackage/dist/build/h5/static/icon/i6.png


BIN
unpackage/dist/build/h5/static/icon/i7.png


BIN
unpackage/dist/build/h5/static/icon/i8.png


BIN
unpackage/dist/build/h5/static/icon/img01.png


BIN
unpackage/dist/build/h5/static/icon/img02.png


BIN
unpackage/dist/build/h5/static/icon/img03.png


BIN
unpackage/dist/build/h5/static/icon/img04.png


BIN
unpackage/dist/build/h5/static/icon/img05.png


BIN
unpackage/dist/build/h5/static/icon/img06.png


BIN
unpackage/dist/build/h5/static/icon/img07.png


BIN
unpackage/dist/build/h5/static/icon/img08.png


BIN
unpackage/dist/build/h5/static/icon/img09.png


BIN
unpackage/dist/build/h5/static/icon/img10.png


BIN
unpackage/dist/build/h5/static/icon/img11.png


BIN
unpackage/dist/build/h5/static/icon/img12.png


BIN
unpackage/dist/build/h5/static/icon/img39.png


BIN
unpackage/dist/build/h5/static/icon/index-gou.png


BIN
unpackage/dist/build/h5/static/icon/kf.png


BIN
unpackage/dist/build/h5/static/icon/mygx.png


BIN
unpackage/dist/build/h5/static/icon/myjd.png


BIN
unpackage/dist/build/h5/static/icon/myqb.png


BIN
unpackage/dist/build/h5/static/icon/mytg.png


BIN
unpackage/dist/build/h5/static/icon/myyj.png


BIN
unpackage/dist/build/h5/static/icon/reduce.png


BIN
unpackage/dist/build/h5/static/icon/search-h.png


BIN
unpackage/dist/build/h5/static/icon/select.png


BIN
unpackage/dist/build/h5/static/icon/selected.png


BIN
unpackage/dist/build/h5/static/icon/shdz.png


BIN
unpackage/dist/build/h5/static/icon/tghb.png


BIN
unpackage/dist/build/h5/static/icon/u1.png


BIN
unpackage/dist/build/h5/static/icon/u2.png


BIN
unpackage/dist/build/h5/static/icon/u3.png


BIN
unpackage/dist/build/h5/static/icon/u4.png


BIN
unpackage/dist/build/h5/static/icon/u5.png


BIN
unpackage/dist/build/h5/static/icon/wenhao.png


BIN
unpackage/dist/build/h5/static/img/add.png


BIN
unpackage/dist/build/h5/static/img/address.png


BIN
unpackage/dist/build/h5/static/img/arc.png


BIN
unpackage/dist/build/h5/static/img/back.png


BIN
unpackage/dist/build/h5/static/img/backb.png


BIN
unpackage/dist/build/h5/static/img/bo.png


BIN
unpackage/dist/build/h5/static/img/busy.png


BIN
unpackage/dist/build/h5/static/img/call.png


BIN
unpackage/dist/build/h5/static/img/cart.png


BIN
unpackage/dist/build/h5/static/img/cash-bg.png


BIN
unpackage/dist/build/h5/static/img/copy.png


BIN
unpackage/dist/build/h5/static/img/delete.png


BIN
unpackage/dist/build/h5/static/img/deletes.png


BIN
unpackage/dist/build/h5/static/img/fanhui.png


BIN
unpackage/dist/build/h5/static/img/img009.609fc055.png


BIN
unpackage/dist/build/h5/static/img/img009.png


BIN
unpackage/dist/build/h5/static/img/img010.becc4342.png


BIN
unpackage/dist/build/h5/static/img/img010.png


BIN
unpackage/dist/build/h5/static/img/img02.png


BIN
unpackage/dist/build/h5/static/img/img03.png


BIN
unpackage/dist/build/h5/static/img/img04.png


BIN
unpackage/dist/build/h5/static/img/img05.png


BIN
unpackage/dist/build/h5/static/img/img06.png


BIN
unpackage/dist/build/h5/static/img/img07.png


BIN
unpackage/dist/build/h5/static/img/img08.png


BIN
unpackage/dist/build/h5/static/img/img09.png


BIN
unpackage/dist/build/h5/static/img/img10.png


BIN
unpackage/dist/build/h5/static/img/img11.png


Vissa filer visades inte eftersom för många filer har ändrats