hwq hai 1 ano
pai
achega
d8388e0010
Modificáronse 57 ficheiros con 1020 adicións e 369 borrados
  1. 10 0
      api/wallet.js
  2. 14 2
      pages.json
  3. 1 1
      pages/index/index.vue
  4. 449 326
      pages/money/pay.vue
  5. 1 1
      pages/money/wallet.vue
  6. 5 10
      pages/order/createOrder.vue
  7. 1 1
      pages/product/classify.vue
  8. 6 12
      pages/product/product.vue
  9. 14 1
      pages/public/register.vue
  10. 1 1
      pages/user/award.vue
  11. 2 2
      pages/user/consumption.vue
  12. 496 0
      pages/user/money.vue
  13. 12 5
      pages/user/user.vue
  14. 1 1
      pages/user/withdrawal.vue
  15. 2 2
      pages/user/yjzye.vue
  16. 4 3
      pages/user/yue.vue
  17. BIN=BIN
      static/icon/xxzf.png
  18. BIN=BIN
      static/icon/yj.png
  19. BIN=BIN
      unpackage/dist/build/h5/5-25-1.rar
  20. 1 1
      unpackage/dist/build/h5/index.html
  21. BIN=BIN
      unpackage/dist/build/h5/static/icon/xxzf.png
  22. BIN=BIN
      unpackage/dist/build/h5/static/icon/yj.png
  23. 0 0
      unpackage/dist/build/h5/static/js/index.d44a92ef.js
  24. 0 0
      unpackage/dist/build/h5/static/js/index.e8f3bf04.js
  25. 0 0
      unpackage/dist/build/h5/static/js/pages-index-index.9ac0e60d.js
  26. 0 0
      unpackage/dist/build/h5/static/js/pages-money-pay.01830f06.js
  27. 0 0
      unpackage/dist/build/h5/static/js/pages-money-pay.d5767808.js
  28. 0 0
      unpackage/dist/build/h5/static/js/pages-money-recharge.657d1654.js
  29. 0 0
      unpackage/dist/build/h5/static/js/pages-money-recharge.7365eca2.js
  30. 0 0
      unpackage/dist/build/h5/static/js/pages-money-wallet.c50234e2.js
  31. 0 0
      unpackage/dist/build/h5/static/js/pages-money-wallet.d0e68d02.js
  32. 0 0
      unpackage/dist/build/h5/static/js/pages-order-createOrder.0e61e748.js
  33. 0 0
      unpackage/dist/build/h5/static/js/pages-order-createOrder.e410afab.js
  34. 0 0
      unpackage/dist/build/h5/static/js/pages-order-order~pages-user-award~pages-user-consumption~pages-user-jf~pages-user-money~pages-user-yue.4929d89b.js
  35. 0 0
      unpackage/dist/build/h5/static/js/pages-order-order~pages-user-award~pages-user-consumption~pages-user-jf~pages-user-yue.01211561.js
  36. 0 0
      unpackage/dist/build/h5/static/js/pages-product-classify.65e290de.js
  37. 0 0
      unpackage/dist/build/h5/static/js/pages-product-classify.8a470f99.js
  38. 0 0
      unpackage/dist/build/h5/static/js/pages-product-product.3d1976ce.js
  39. 0 0
      unpackage/dist/build/h5/static/js/pages-product-product.8023cbdc.js
  40. 0 0
      unpackage/dist/build/h5/static/js/pages-public-register.abdf50e2.js
  41. 0 0
      unpackage/dist/build/h5/static/js/pages-public-register.e586e1e4.js
  42. 0 0
      unpackage/dist/build/h5/static/js/pages-set-address.2fc5262e.js
  43. 0 0
      unpackage/dist/build/h5/static/js/pages-set-address.9980a0eb.js
  44. 0 0
      unpackage/dist/build/h5/static/js/pages-user-award.4ffbe03e.js
  45. 0 0
      unpackage/dist/build/h5/static/js/pages-user-award.c7244f6e.js
  46. 0 0
      unpackage/dist/build/h5/static/js/pages-user-consumption.9aa922da.js
  47. 0 0
      unpackage/dist/build/h5/static/js/pages-user-consumption.ea628ecb.js
  48. 0 0
      unpackage/dist/build/h5/static/js/pages-user-jf.5d9ba4c2.js
  49. 0 0
      unpackage/dist/build/h5/static/js/pages-user-money.f84463c3.js
  50. 0 0
      unpackage/dist/build/h5/static/js/pages-user-user.3df22d50.js
  51. 0 0
      unpackage/dist/build/h5/static/js/pages-user-user.7eab4eac.js
  52. 0 0
      unpackage/dist/build/h5/static/js/pages-user-withdrawal.432dc05e.js
  53. 0 0
      unpackage/dist/build/h5/static/js/pages-user-withdrawal.f215d910.js
  54. 0 0
      unpackage/dist/build/h5/static/js/pages-user-yjzye.30d447ce.js
  55. 0 0
      unpackage/dist/build/h5/static/js/pages-user-yjzye.e8e4f720.js
  56. 0 0
      unpackage/dist/build/h5/static/js/pages-user-yue.7305d567.js
  57. 0 0
      unpackage/dist/build/h5/static/js/pages-user-yue.cb98d628.js

+ 10 - 0
api/wallet.js

@@ -122,4 +122,14 @@ export function pay_money(data) {
 		data
 	});
 
+}
+
+// money列表
+export function money(data) {
+	return request({
+		url: '/api/money/list',
+		method: 'get',
+		data
+	});
+
 }

+ 14 - 2
pages.json

@@ -181,7 +181,7 @@
 		{
 			"path": "pages/user/yue",
 			"style": {
-				"navigationBarTitleText": "我的钱包",
+				"navigationBarTitleText": "消费积分",
 				"navigationBarBackgroundColor": "#ff4c4c",
 				"navigationBarTextStyle": "white"
 
@@ -190,7 +190,7 @@
 		{
 			"path": "pages/user/yjzye",
 			"style": {
-				"navigationBarTitleText": "佣金转余额"
+				"navigationBarTitleText": "佣金转消费积分"
 
 			}
 		},
@@ -206,6 +206,18 @@
 				}
 			}
 		},
+		{
+			"path": "pages/user/money",
+			"style": {
+				"navigationBarTitleText": "",
+				"navigationStyle": "custom",
+				"app-plus": {
+					"titleNView": {
+						"type": "transparent"
+					}
+				}
+			}
+		},
 		{
 			"path": "pages/user/withdrawal",
 			"style": {

+ 1 - 1
pages/index/index.vue

@@ -80,7 +80,7 @@
 		<view class="product-box" v-if="goodList.length > 0">
 			<view class="hotgoods">
 				<view class="hotgoods-item" v-for="item in goodList" :key="item.id"
-					@click="navto('/pages/product/product?id=' + item.id)" style="height: 520rpx;">
+					@click="navto('/pages/product/product?id=' + item.id+'&isbao=1')" style="height: 520rpx;">
 					<view class="image-wrapper">
 						<image class="image" :src="item.image" mode="scaleToFill"></image>
 						<view class="give-jf">

+ 449 - 326
pages/money/pay.vue

@@ -11,22 +11,48 @@
 					<text class="tit">微信支付</text>
 					<text>推荐使用微信支付</text>
 				</view>
-				<label class="radio"><radio value="" color="#5dbc7c" :checked="payType == 1"></radio></label>
+				<label class="radio">
+					<radio value="" color="#5dbc7c" :checked="payType == 1"></radio>
+				</label>
 			</view>
 			<!-- #ifdef APP-PLUS -->
 			<view class="type-item b-b" @click="changePayType(2)">
 				<text class="icon iconfont iconzhifubao"></text>
 				<view class="con"><text class="tit">支付宝支付</text></view>
-				<label class="radio"><radio value="" color="#5dbc7c" :checked="payType == 2"></radio></label>
+				<label class="radio">
+					<radio value="" color="#5dbc7c" :checked="payType == 2"></radio>
+				</label>
 			</view>
 			<!-- #endif -->
-			<view class="type-item" @click="changePayType(3)">
-				<text class="icon iconfont iconyue"></text>
+			<view class="type-item b-b" @click="changePayType(5)">
+				<image class="pay-icon" src="../../static/icon/yj.png" mode=""></image>
+				<view class="con">
+					<text class="tit">佣金支付</text>
+					<text>可用佣金 ¥{{ userInfo.brokerage_price }}</text>
+				</view>
+				<label class="radio">
+					<radio value="" color="#5dbc7c" :checked="payType == 5"></radio>
+				</label>
+			</view>
+			<view class="type-item b-b" @click="changePayType(4)">
+				<image class="pay-icon" src="../../static/icon/xxzf.png" mode=""></image>
 				<view class="con">
 					<text class="tit">余额支付</text>
-					<text>可用余额 ¥{{ now_money }}</text>
+					<text>可用余额 ¥{{ userInfo.money }}</text>
 				</view>
-				<label class="radio"><radio value="" color="#5dbc7c" :checked="payType == 3"></radio></label>
+				<label class="radio">
+					<radio value="" color="#5dbc7c" :checked="payType == 4"></radio>
+				</label>
+			</view>
+			<view class="type-item" @click="changePayType(3)" v-if="isbao==0">
+				<text class="icon iconfont iconyue"></text>
+				<view class="con">
+					<text class="tit">消费积分支付</text>
+					<text>可用消费积分 ¥{{ userInfo.now_money }}</text>
+				</view>
+				<label class="radio">
+					<radio value="" color="#5dbc7c" :checked="payType == 3"></radio>
+				</label>
 			</view>
 		</view>
 		<text class="mix-btn" :class="{ clickbg: payLoding }" @click="!payLoding ? confirm() : ''">确认支付</text>
@@ -34,358 +60,455 @@
 </template>
 
 <script>
-import { balance } from '@/api/wallet.js';
-import { createOrderkey, computedOrderkey, orderPay } from '@/api/order.js';
-import { mapState } from 'vuex';
-// #ifdef H5
-import weichatObj from '@/plugin/jweixin-module/index.js';
-// #endif
-export default {
-	data() {
-		return {
-			payType: 1, //支付类型
-			// #ifdef H5
-			payName: 'weixin',
-			// #endif
-			// #ifdef MP-WEIXIN
-			payName: 'weixin',
-			// #endif
-			orderInfo: {},
-			money: 0.0, //订单金额
-			now_money: 0.0, //余额
-			orderKey: '',
-			orderId: '', //保存订单id
-			payLoding: false, //判断是否支付中
-			type: '', //判断是否从订单中进入
+	import {
+		balance
+	} from '@/api/wallet.js';
+	import {
+		createOrderkey,
+		computedOrderkey,
+		orderPay
+	} from '@/api/order.js';
+	import {
+		mapState,
+		mapMutations
+	} from 'vuex';
+	// #ifdef H5
+	import weichatObj from '@/plugin/jweixin-module/index.js';
+	// #endif
+	export default {
+		data() {
+			return {
+				isbao: 0,
+				payType: 1, //支付类型
+				// #ifdef H5
+				payName: 'weixin',
+				// #endif
+				// #ifdef MP-WEIXIN
+				payName: 'weixin',
+				// #endif
+				orderInfo: {},
+				money: 0.0, //订单金额
+				now_money: 0.0, //余额
+				orderKey: '',
+				orderId: '', //保存订单id
+				payLoding: false, //判断是否支付中
+				type: '', //判断是否从订单中进入
+				// #ifdef H5
+				froms: '', //保存h5中数据来源对象
+				// #endif
+				pinkid: '' //保存拼团商品id
+			};
+		},
+		computed: {
 			// #ifdef H5
-			froms: '', //保存h5中数据来源对象
+			...mapState(['weichatObj']),
 			// #endif
-			pinkid: '' //保存拼团商品id
-		};
-	},
-	computed: {
-		// #ifdef H5
-		...mapState(['weichatObj']),
-		// #endif
-		...mapState('user', ['userInfo'])
-	},
-	onLoad(options) {
-		if (options.type == 1) {
-			this.type = 1;
-			this.orderId = options.ordid;
-			this.money = options.money;
-		} else {
-			this.orderKey = options.key;
-			let prepage = this.$api.prePage();
-			computedOrderkey({
-				orderkey: this.orderKey,
-				couponId: prepage.couponChecked.id, //优惠券编号
-				addressId: prepage.addressData.id, //地址编号
-				useIntegral: prepage.checkedPoints ? 1 : 0
-			}).then(({ data }) => {
-				// 获取支付金额
-				this.money = data.result.pay_price;
-			});
-		}
-		// 保存pinkid
-		if (options.pinkid) {
-			this.pinkid = options.pinkid;
-		}
-		// 载入余额
-		balance({}).then(({ data }) => {
-			// 获取余额
-			this.now_money = data.now_money;
-		});
-	},
-	methods: {
-		//选择支付方式
-		changePayType(type) {
-			this.payType = type;
-			if (this.payType == 1) {
-				this.payName = 'weixin';
+			...mapState('user', ['userInfo'])
+		},
+		onLoad(options) {
+			if (options.isbao) {
+				this.isbao = options.isbao
 			}
-			if (this.payType == 2) {
-				this.payName = 'ali';
+			if (options.type == 1) {
+				this.type = 1;
+				this.orderId = options.ordid;
+				this.money = options.money;
+			} else {
+				this.orderKey = options.key;
+				let prepage = this.$api.prePage();
+				computedOrderkey({
+					orderkey: this.orderKey,
+					couponId: prepage.couponChecked.id, //优惠券编号
+					addressId: prepage.addressData.id, //地址编号
+					useIntegral: prepage.checkedPoints ? 1 : 0
+				}).then(({
+					data
+				}) => {
+					// 获取支付金额
+					this.money = data.result.pay_price;
+				});
 			}
-			if (this.payType == 3) {
-				this.payName = 'yue';
+			// 保存pinkid
+			if (options.pinkid) {
+				this.pinkid = options.pinkid;
 			}
+			this.loadBaseData();
 		},
-		// 支付金额
-		orderMoneyPay() {
-			let obj = this;
-			console.log('支付金额');
-			orderPay({
-				uni: obj.orderId,
-				// #ifdef H5
-				from: obj.froms ? 'weixin' : 'H5', //来源
-				// #endif
-				// #ifdef MP-WEIXIN
-				from: 'routine', //来源
-				// #endif
-				// #ifdef APP-PLUS
-				from: 'app', //来源
-				// #endif
-				paytype: obj.payName //支付类型  weixin-微信 yue-余额
-			})
-				.then(e => {
-					console.log(obj.payName, '支付类型');
-					console.log(e, '支付金额');
-					// 判断是否为余额支付
-					if (obj.payName == 'yue' && e.data.status == 'SUCCESS') {
-						if (e.status == 200) {
-							obj.paySuccessTo();
-						} else {
-							obj.$api.msg(msg);
+		methods: {
+			...mapMutations('user', ['setUserInfo']),
+			loadBaseData() {
+				getUserInfo({})
+					.then(({
+						data
+					}) => {
+						this.setUserInfo(data);
+						// 判断是否已经登录
+					})
+					.catch(e => {
+						console.log(e);
+					});
+			},
+			//选择支付方式
+			changePayType(type) {
+				this.payType = type;
+				if (this.payType == 1) {
+					this.payName = 'weixin';
+				}
+				if (this.payType == 2) {
+					this.payName = 'ali';
+				}
+				if (this.payType == 3) {
+					this.payName = 'yue';
+				}
+				if (this.payType == 4) {
+					this.payName = 'money';
+				}
+				if (this.payType == 5) {
+					this.payName = 'brokerage';
+				}
+			},
+			// 支付金额
+			orderMoneyPay() {
+				let obj = this;
+				console.log('支付金额');
+				orderPay({
+						uni: obj.orderId,
+						// #ifdef H5
+						from: obj.froms ? 'weixin' : 'H5', //来源
+						// #endif
+						// #ifdef MP-WEIXIN
+						from: 'routine', //来源
+						// #endif
+						// #ifdef APP-PLUS
+						from: 'app', //来源
+						// #endif
+						paytype: obj.payName //支付类型  weixin-微信 yue-余额
+					})
+					.then(e => {
+						console.log(obj.payName, '支付类型');
+						console.log(e, '支付金额');
+						// 判断是否为余额支付
+						if (obj.payName == 'yue' && e.data.status == 'SUCCESS') {
+							if (e.status == 200) {
+								obj.paySuccessTo();
+							} else {
+								obj.$api.msg(msg);
+							}
 						}
-					}
-					if (obj.payName == 'weixin' || obj.payName == 'routine') {
-						let da = e.data.result.jsConfig;
-						let data = {
-							// #ifdef H5
-							timestamp: da.timestamp,
-							// #endif
-							// #ifdef MP
-							timeStamp: da.timestamp,
-							// #endif
-							nonceStr: da.nonceStr,
-							package: da.package,
-							signType: da.signType,
-							paySign: da.paySign,
-							success: function(res) {
+						if (obj.payName == 'money' && e.data.status == 'SUCCESS') {
+							if (e.status == 200) {
 								obj.paySuccessTo();
-							},
-							fail: () => {
-								uni.navigateTo({
-									url: '/pages/order/order?state=0'
-								});
+							} else {
+								obj.$api.msg(msg);
+							}
+						}
+						if (obj.payName == 'brokerage' && e.data.status == 'SUCCESS') {
+							if (e.status == 200) {
+								obj.paySuccessTo();
+							} else {
+								obj.$api.msg(msg);
 							}
-						};
-						// #ifdef H5
-						if (obj.payName == 'weixin') {
-							weichatObj.chooseWXPay(data);
 						}
-						// #endif
-						// #ifdef MP-WEIXIN
 						if (obj.payName == 'weixin' || obj.payName == 'routine') {
-							console.log('开始支付');
-							wx.requestPayment(data);
+							let da = e.data.result.jsConfig;
+							let data = {
+								// #ifdef H5
+								timestamp: da.timestamp,
+								// #endif
+								// #ifdef MP
+								timeStamp: da.timestamp,
+								// #endif
+								nonceStr: da.nonceStr,
+								package: da.package,
+								signType: da.signType,
+								paySign: da.paySign,
+								success: function(res) {
+									obj.paySuccessTo();
+								},
+								fail: () => {
+									uni.navigateTo({
+										url: '/pages/order/order?state=0'
+									});
+								}
+							};
+							// #ifdef H5
+							if (obj.payName == 'weixin') {
+								weichatObj.chooseWXPay(data);
+							}
+							// #endif
+							// #ifdef MP-WEIXIN
+							if (obj.payName == 'weixin' || obj.payName == 'routine') {
+								console.log('开始支付');
+								wx.requestPayment(data);
+							}
+							// #endif
 						}
-						// #endif
-					}
-					uni.hideLoading();
-					obj.payLoding = false;
-				})
-				.catch(e => {
-					// 支付完成
-					uni.hideLoading();
-					obj.payLoding = false;
-					console.log(e);
+						uni.hideLoading();
+						obj.payLoding = false;
+					})
+					.catch(e => {
+						// 支付完成
+						uni.hideLoading();
+						obj.payLoding = false;
+						console.log(e);
+					});
+			},
+			// 支付成功跳转
+			paySuccessTo() {
+				let obj = this;
+				uni.hideLoading();
+				uni.redirectTo({
+					url: '/pages/money/paySuccess?orderid=' + this.orderId
 				});
-		},
-		// 支付成功跳转
-		paySuccessTo() {
-			let obj = this;
-			uni.hideLoading();
-			uni.redirectTo({
-				url: '/pages/money/paySuccess?orderid=' + this.orderId
-			});
-		},
-		//确认支付
-		confirm: async function() {
-			let obj = this;
-			// 判断是否余额不足
-			if (obj.payName == 'yue' && +obj.now_money < obj.money) {
-				uni.showModal({
-					title: '提示',
-					content: '账户余额不足!',
-					showCancel: false,
-					success: res => {},
-					fail: () => {},
-					complete: () => {}
+			},
+			//确认支付
+			confirm: async function() {
+				let obj = this;
+				// 判断是否余额不足
+				if (obj.payName == 'yue' && +obj.userInfo.now_money < obj.money) {
+					uni.showModal({
+						title: '提示',
+						content: '账户消费积分不足!',
+						showCancel: false,
+						success: res => {},
+						fail: () => {},
+						complete: () => {}
+					});
+					return;
+				}
+				if (obj.payName == 'money' && +obj.userInfo.money < obj.money) {
+					uni.showModal({
+						title: '提示',
+						content: '账户余额不足!',
+						showCancel: false,
+						success: res => {},
+						fail: () => {},
+						complete: () => {}
+					});
+					return;
+				}
+				if (obj.payName == 'brokerage' && +obj.userInfo.brokerage_price < obj.money) {
+					uni.showModal({
+						title: '提示',
+						content: '账户佣金不足!',
+						showCancel: false,
+						success: res => {},
+						fail: () => {},
+						complete: () => {}
+					});
+					return;
+				}
+				uni.showLoading({
+					title: '支付中',
+					mask: true
 				});
-				return;
-			}
-			uni.showLoading({
-				title: '支付中',
-				mask: true
-			});
 
-			// 支付中
-			obj.payLoding = true;
-			// #ifdef H5
-			// 获取当前是否为微信浏览器
-			obj.froms = uni.getStorageSync('weichatBrowser') || '';
-			// #endif
-			// 判断是否为未支付订单中跳转进入
-			if (obj.type != 1) {
-				// 初次生成订单
-				obj.firstCreateOrder();
-			} else {
-				// 已经生成订单未支付
-				obj.orderMoneyPay();
-			}
-		},
-		// 初次订单创建
-		firstCreateOrder() {
-			let obj = this;
-			// 获取下单页面数据
-			let prepage = obj.$api.prePage();
-
-			let data = {
-				real_name: prepage.addressData.real_name, //联系人名称
-				phone: prepage.addressData.phone, //联系人号码
-				couponId: prepage.couponChecked.id, //优惠券编号
-				addressId: prepage.addressData.id, //支付地址id
-				useIntegral: prepage.checkedPoints ? 1 : 0, //是否积分抵扣1为是0为否
-				payType: obj.payName, //支付类型  weixin-微信 yue-余额
-				mark: prepage.desc, //备注
+				// 支付中
+				obj.payLoding = true;
 				// #ifdef H5
-				from: obj.froms ? 'weixin' : 'H5', //来源
+				// 获取当前是否为微信浏览器
+				obj.froms = uni.getStorageSync('weichatBrowser') || '';
 				// #endif
-				// #ifdef MP-WEIXIN
-				from: 'routine', //来源
-				// #endif
-				// #ifdef APP-PLUS
-				from: 'app', //来源
-				// #endif
-				shipping_type: 1 //提货方式 1 快递 2自提
-			};
-			// 判断是否拼团商品
-			if (obj.pinkid) {
-				data.pinkId = obj.pinkid;
-			}
-			// 生成订单
-			createOrderkey(data, obj.orderKey)
-				.then(({ data, status, msg }) => {
-					console.log('生成订单');
-					// 判断是否支付失败
-					if (data.status == 'ORDER_EXIST') {
+				// 判断是否为未支付订单中跳转进入
+				if (obj.type != 1) {
+					// 初次生成订单
+					obj.firstCreateOrder();
+				} else {
+					// 已经生成订单未支付
+					obj.orderMoneyPay();
+				}
+			},
+			// 初次订单创建
+			firstCreateOrder() {
+				let obj = this;
+				// 获取下单页面数据
+				let prepage = obj.$api.prePage();
+
+				let data = {
+					real_name: prepage.addressData.real_name, //联系人名称
+					phone: prepage.addressData.phone, //联系人号码
+					couponId: prepage.couponChecked.id, //优惠券编号
+					addressId: prepage.addressData.id, //支付地址id
+					useIntegral: prepage.checkedPoints ? 1 : 0, //是否积分抵扣1为是0为否
+					payType: obj.payName, //支付类型  weixin-微信 yue-余额
+					mark: prepage.desc, //备注
+					// #ifdef H5
+					from: obj.froms ? 'weixin' : 'H5', //来源
+					// #endif
+					// #ifdef MP-WEIXIN
+					from: 'routine', //来源
+					// #endif
+					// #ifdef APP-PLUS
+					from: 'app', //来源
+					// #endif
+					shipping_type: 1 //提货方式 1 快递 2自提
+				};
+				// 判断是否拼团商品
+				if (obj.pinkid) {
+					data.pinkId = obj.pinkid;
+				}
+				// 生成订单
+				createOrderkey(data, obj.orderKey)
+					.then(({
+						data,
+						status,
+						msg
+					}) => {
+						console.log('生成订单');
+						// 判断是否支付失败
+						if (data.status == 'ORDER_EXIST') {
+							uni.showModal({
+								title: '提示',
+								content: msg,
+								showCancel: false
+							});
+							uni.hideLoading();
+							obj.payLoding = false;
+							return;
+						}
+						// 保存订单号
+						obj.orderId = data.result.orderId;
+						// 判断是否为余额支付
+						if (obj.payName == 'yue') {
+							if (status == 200 && data.status == 'SUCCESS') {
+								obj.paySuccessTo();
+							} else {
+								obj.$api.msg(msg);
+							}
+						} else if (obj.payName == 'money') {
+							if (status == 200 && data.status == 'SUCCESS') {
+								obj.paySuccessTo();
+							} else {
+								obj.$api.msg(msg);
+							}
+						} else if (obj.payName == 'brokerage') {
+							if (status == 200 && data.status == 'SUCCESS') {
+								obj.paySuccessTo();
+							} else {
+								obj.$api.msg(msg);
+							}
+						} else {
+							// 立即支付
+							obj.orderMoneyPay();
+						}
+					})
+					.catch(e => {
+						uni.hideLoading();
+						obj.payLoding = false;
+						console.log(e);
+						// uni.showToast({
+						// 	title: e.msg,
+						// 	duration: 4000,
+						// 	mask: false,
+						// 	icon: none
+						// });
 						uni.showModal({
 							title: '提示',
-							content: msg,
-							showCancel: false
+							content: e.msg
 						});
-						uni.hideLoading();
-						obj.payLoding = false;
-						return;
-					}
-					// 保存订单号
-					obj.orderId = data.result.orderId;
-					// 判断是否为余额支付
-					if (obj.payName == 'yue') {
-						if (status == 200 && data.status == 'SUCCESS') {
-							obj.paySuccessTo();
-						} else {
-							obj.$api.msg(msg);
-						}
-					} else {
-						// 立即支付
-						obj.orderMoneyPay();
-					}
-				})
-				.catch(e => {
-					uni.hideLoading();
-					obj.payLoding = false;
-					console.log(e);
-					// uni.showToast({
-					// 	title: e.msg,
-					// 	duration: 4000,
-					// 	mask: false,
-					// 	icon: none
-					// });
-					uni.showModal({
-						title: '提示',
-						content: e.msg
 					});
-				});
+			}
 		}
-	}
-};
+	};
 </script>
 
 <style lang="scss">
-.app {
-	width: 100%;
-}
-
-.price-box {
-	background-color: #fff;
-	height: 265upx;
-	display: flex;
-	flex-direction: column;
-	justify-content: center;
-	align-items: center;
-	font-size: 28upx;
-	color: #909399;
-
-	.price {
-		font-size: 50upx;
-		color: #303133;
-		margin-top: 12upx;
-		&:before {
-			content: '¥';
-			font-size: 40upx;
-		}
+	.app {
+		width: 100%;
 	}
-}
 
-.pay-type-list {
-	margin-top: 20upx;
-	background-color: #fff;
-	padding-left: 60upx;
-	.type-item {
-		height: 120upx;
-		padding: 20upx 0;
+	.price-box {
+		background-color: #fff;
+		height: 265upx;
 		display: flex;
-		justify-content: space-between;
+		flex-direction: column;
+		justify-content: center;
 		align-items: center;
-		padding-right: 60upx;
-		font-size: 30upx;
-		position: relative;
-	}
+		font-size: 28upx;
+		color: #909399;
 
-	.icon {
-		width: 100upx;
-		font-size: 52upx;
-	}
-	.iconyue {
-		color: #fe8e2e;
-	}
-	.iconweixin {
-		color: #36cb59;
-	}
-	.iconzhifubao {
-		color: #01aaef;
+		.price {
+			font-size: 50upx;
+			color: #303133;
+			margin-top: 12upx;
+
+			&:before {
+				content: '¥';
+				font-size: 40upx;
+			}
+		}
 	}
-	.tit {
-		font-size: $font-lg;
-		color: $font-color-dark;
-		margin-bottom: 4upx;
+
+	.pay-type-list {
+		margin-top: 20upx;
+		background-color: #fff;
+		padding-left: 60upx;
+
+		.type-item {
+			height: 120upx;
+			padding: 20upx 0;
+			display: flex;
+			justify-content: space-between;
+			align-items: center;
+			padding-right: 60upx;
+			font-size: 30upx;
+			position: relative;
+		}
+
+		.pay-icon {
+			width: 52rpx;
+			height: 52rpx;
+			display: inline-block;
+			margin-right: 50rpx;
+		}
+
+		.icon {
+			width: 100upx;
+			font-size: 52upx;
+		}
+
+		.iconyue {
+			color: #fe8e2e;
+		}
+
+		.iconweixin {
+			color: #36cb59;
+		}
+
+		.iconzhifubao {
+			color: #01aaef;
+		}
+
+		.tit {
+			font-size: $font-lg;
+			color: $font-color-dark;
+			margin-bottom: 4upx;
+		}
+
+		.con {
+			flex: 1;
+			display: flex;
+			flex-direction: column;
+			font-size: $font-sm;
+			color: $font-color-light;
+		}
 	}
-	.con {
-		flex: 1;
+
+	.mix-btn {
 		display: flex;
-		flex-direction: column;
-		font-size: $font-sm;
-		color: $font-color-light;
+		align-items: center;
+		justify-content: center;
+		width: 630upx;
+		height: 80upx;
+		margin: 80upx auto 30upx;
+		font-size: $font-lg;
+		color: #fff;
+		background-color: $base-color;
+		border-radius: 10upx;
+		/* box-shadow: 1px 2px 5px rgba(219, 63, 96, 0.4); */
 	}
-}
-.mix-btn {
-	display: flex;
-	align-items: center;
-	justify-content: center;
-	width: 630upx;
-	height: 80upx;
-	margin: 80upx auto 30upx;
-	font-size: $font-lg;
-	color: #fff;
-	background-color: $base-color;
-	border-radius: 10upx;
-	/* box-shadow: 1px 2px 5px rgba(219, 63, 96, 0.4); */
-}
 
-.clickbg {
-	background-color: $color-gray !important;
-}
-</style>
+	.clickbg {
+		background-color: $color-gray !important;
+	}
+</style>

+ 1 - 1
pages/money/wallet.vue

@@ -80,7 +80,7 @@
 					.then(e => {
 						// 保存返回用户数据
 						obj.setUserInfo(e.data);
-						this.money = this.userInfo.now_money;
+						this.money = this.userInfo.money;
 					})
 					.catch(e => {
 						console.log(e);

A diferenza do arquivo foi suprimida porque é demasiado grande
+ 5 - 10
pages/order/createOrder.vue


+ 1 - 1
pages/product/classify.vue

@@ -47,7 +47,7 @@
 		methods: {
 			navTo: function(ls) {
 				uni.navigateTo({
-					url: '/pages/product/product?id=' + ls.id
+					url: '/pages/product/product?id=' + ls.id + '&isbao=1'
 				});
 			},
 			// 请求载入数据

+ 6 - 12
pages/product/product.vue

@@ -33,20 +33,13 @@
 				<text class="price-tip">¥</text>
 				<text class="price">{{ goodsObjact.price}}</text>
 				<text class="m-price" v-if="goodsObjact.ot_price > goodsObjact.price">¥{{ goodsObjact.ot_price }}</text>
-				<text class="give-jf">
+				<text class="give-jf" v-if="goodsObjact.give_award_range !=0">
 					赠{{goodsObjact.give_award_range*1}}绿色积分
 				</text>
 			</view>
 			<text class="title" v-if="goodsType == 0">{{ goodsObjact.store_name }}</text>
 		</view>
 		<view class="c-list">
-			<view class="c-row b-b" @click="toggleSpec">
-				<text class="tit">购买数量</text>
-				<view class="con">
-					<text class="selected-text">{{ goodsNumber }}</text>
-				</view>
-				<text class="iconfont iconenter"></text>
-			</view>
 			<view class="c-row b-b" @click="toggleSpec">
 				<text class="tit">购买数量</text>
 				<view class="con">
@@ -81,7 +74,7 @@
 				</view>
 				<view class="buy-now">
 					<button type="primary" class=" action-btn no-border buy-now-btn" @click.stop="toggleSpec(2)"
-						v-if="is_bk == 0 && is_xf ==0">加入购物车</button>
+						v-if="isbao == 0">加入购物车</button>
 					<button type="primary" class=" action-btn no-border  add-cart-btn"
 						@click.stop="toggleSpec(1)">立即购买</button>
 				</view>
@@ -173,6 +166,7 @@
 		},
 		data() {
 			return {
+				isbao: 0,
 				details: '',
 				reply: '', //评论
 				type: 1, //默认支付方式add为
@@ -229,8 +223,8 @@
 		},
 		async onLoad(options) {
 			let obj = this;
-			if (options.is_bk) {
-				obj.is_bk = options.is_bk
+			if (options.isbao) {
+				obj.isbao = options.isbao
 			}
 			if (options.is_xf) {
 				obj.is_xf = options.is_xf
@@ -525,7 +519,7 @@
 							// 跳转到支付页
 							uni.navigateTo({
 								url: '/pages/order/createOrder?id=' + data.cartId + '&goodsType=' + obj
-									.goodsType + '&is_xf=' + obj.is_xf + '&is_bk=' + obj.is_bk
+									.goodsType + '&isbao=' + obj.isbao
 							});
 						}
 						if (obj.type == 2) {

+ 14 - 1
pages/public/register.vue

@@ -53,7 +53,8 @@
 				invitation: '', //邀请码
 				code: '', //验证码
 				time: '', //保存倒计时对象
-				countDown: 0 //倒计时
+				countDown: 0, //倒计时
+				iszhu: 0,
 			};
 		},
 		onLoad(options) {
@@ -103,22 +104,34 @@
 				// 	obj.$api.msg('请输入验证码');
 				// 	return;
 				// }
+				if (obj.iszhu == 1) {
+					return
+				}
+				obj.iszhu = 1
+				uni.showLoading({
+					title: '注册中'
+				})
 				register({
 					account: obj.phone, //账号
 					captcha: '123456', //验证码
 					password: obj.password, //密码
 					spread: this.invitation //上级推广人
 				}).then(function(e) {
+					obj.iszhu = 0;
 					uni.showToast({
 						title: '注册成功',
 						duration: 2000,
 						position: 'top'
 					});
+					uni.hideLoading()
 					setTimeout(function() {
 						uni.navigateTo({
 							url: '/pages/public/login'
 						});
 					}, 1000);
+				}).catch(e => {
+					uni.hideLoading()
+					obj.iszhu = 0
 				});
 				//调用注册接口,成功跳转登录页
 			},

+ 1 - 1
pages/user/award.vue

@@ -25,7 +25,7 @@
 				<view class="money-btn" @click="navto('/pages/user/yjzye')">
 					<image class="money-btn-icon" src="../../static/img/tr.png" mode=""></image>
 					<view class="money-font">
-						转换余额
+						转换消费积分
 					</view>
 				</view>
 			</view>

+ 2 - 2
pages/user/consumption.vue

@@ -6,14 +6,14 @@
 				<view class="goback-box" @click="toBack">
 					<image class="goback" src="../../static/icon/fanhui.png" mode=""></image>
 				</view>
-				<view class="header">消费总额</view>
+				<view class="header">股权</view>
 			</view>
 			<view class="content-bg">
 				<image src="../../static/img/comm-bg.png" mode=""></image>
 			</view>
 			<view class="money-box">
 				<view class="money">{{ userInfo.pay_money * 1 || 0 }}</view>
-				<view>消费总额</view>
+				<view>股权</view>
 			</view>
 		</view>
 		<swiper :current="tabCurrentIndex" :style="{ height: height }" class="swiper-box" duration="300"

+ 496 - 0
pages/user/money.vue

@@ -0,0 +1,496 @@
+<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/break-bg.png" mode=""></image>
+			</view>
+			<view class="money-box">
+				<view class="money">{{ userInfo.money || 0 }}</view>
+				<view>我的余额</view>
+			</view>
+			<view class="moneybtn-box">
+				<view class="money-btn">
+				</view>
+				<view class="money-btn" @click="navto('/pages/money/wallet')">
+					<image class="money-btn-icon" src="../../static/img/tr.png" mode=""></image>
+					<view class="money-font">
+						余额互转
+					</view>
+				</view>
+			</view>
+		</view>
+		<!-- <view class="info-box flex">
+			<view class="info-item">
+				<view class="info-font">累计收入</view>
+				<view class="info-num">{{ recharge || '0' }}</view>
+			</view>
+			<view class="shu"></view>
+			<view class="info-item">
+				<view class="info-font">累计支出</view>
+				<view class="info-num">{{ orderStatusSum || '0' }}</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: height }" 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>
+						</view>
+					</view>
+					<uni-load-more :status="tabItem.loadingType"
+						v-if="!(tabItem.orderList.length == 0 && tabItem.loaded)"></uni-load-more>
+				</scroll-view>
+			</swiper-item>
+		</swiper>
+	</view>
+</template>
+
+<script>
+	import {
+		mapState,
+		mapMutations
+	} from 'vuex';
+	import {
+		getMoneyStyle
+	} from '@/utils/rocessor.js';
+	import {
+		mapGetters
+	} from 'vuex';
+	import uniLoadMore from '@/components/uni-load-more/uni-load-more.vue';
+	import empty from '@/components/empty';
+	import {
+		extractBank,
+		integral,
+		money
+	} from '@/api/wallet.js';
+	export default {
+		filters: {
+			getMoneyStyle
+		},
+		components: {
+			empty,
+			uniLoadMore
+		},
+		computed: {
+			...mapState('user', ['userInfo'])
+		},
+		onReady(res) {
+			var _this = this;
+			console.log(_this.userInfo);
+			uni.getSystemInfo({
+				success: resu => {
+					const query = uni.createSelectorQuery();
+					query.select('.swiper-box').boundingClientRect();
+					query.exec(function(res) {
+						_this.height = resu.windowHeight - res[0].top + 'px';
+						console.log('打印页面的剩余高度', _this.height);
+					});
+				},
+				fail: res => {}
+			});
+		},
+		data() {
+			return {
+				yj: '',
+				height: '',
+				// 头部图高度
+				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.extractBank();
+			this.loadData();
+		},
+		methods: {
+			extractBank() {
+				extractBank().then(res => {
+					console.log(res);
+					this.yj = res.data.brokerage_price;
+				});
+			},
+			toBack() {
+				uni.switchTab({
+					url: '/pages/user/user'
+				});
+			},
+			// 页面跳转
+			navto(e) {
+				uni.navigateTo({
+					url: e
+				});
+			},
+			//获取收入支出信息
+			async loadData(source) {
+				//这里时将订单挂载到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';
+
+				money({
+						page: navItem.page,
+						limit: navItem.limit,
+						pm: state
+					})
+					.then(({
+						data
+					}) => {
+						if (data.length > 0) {
+							navItem.orderList = navItem.orderList.concat(data);
+							navItem.page++;
+						}
+						//判断是否还有数据, 有改为more, 没有改为noMore
+						if (navItem.limit == data.length) {
+							navItem.loadingType = 'more';
+							return;
+						} 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: -80rpx 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;
+		}
+	}
+
+	.money-box {
+		position: relative;
+		z-index: 2;
+		/* #ifdef H5 */
+		padding-top: 90rpx;
+		/* #endif */
+		color: #ffffff;
+		text-align: center;
+		/* #ifdef APP-PLUS */
+		height: 200rpx;
+		display: flex;
+		flex-direction: column;
+		justify-content: center;
+		/* #endif */
+		/* #ifdef MP-WEIXIN */
+		padding-top: 40rpx;
+		/* #endif */
+
+		.money {
+			font-size: 72rpx;
+			font-family: PingFang SC;
+			font-weight: bold;
+			color: #ffffff;
+		}
+
+		.text {
+			font-size: 30rpx;
+		}
+	}
+
+	.moneybtn-box {
+		display: flex;
+		justify-content: space-between;
+		position: relative;
+		z-index: 2;
+		color: #ffffff;
+		padding: 0rpx 50rpx;
+		font-size: 30rpx;
+		font-family: PingFang SC;
+		font-weight: bold;
+
+		.money-btn {
+			display: flex;
+			align-items: center;
+
+			.money-btn-icon {
+				width: 40rpx;
+				height: 40rpx;
+			}
+
+			.money-font {
+				margin-left: 10rpx;
+			}
+		}
+	}
+
+	.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: 50rpx;
+					height: 6rpx;
+					background: linear-gradient(90deg, #CA57DC, #65B2E9);
+					border-radius: 4rpx;
+				}
+			}
+		}
+	}
+
+	//列表
+	.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;
+	}
+</style>

+ 12 - 5
pages/user/user.vue

@@ -33,18 +33,25 @@
 				<view class="user-xian"></view>
 				<view class="user-money-item" @click="navTo('/pages/user/yue')">
 					<view class="user-money-num">{{ userInfo.now_money * 1 || 0 }}</view>
-					<view class="user-money-font">余额</view>
+					<view class="user-money-font">消费积分</view>
 				</view>
 				<view class="user-xian"></view>
-				<view class="user-money-item">
-					<view class="user-money-num">{{ userInfo.pay_money * 1 || 0 }}</view>
-					<view class="user-money-font">消费总额</view>
+				<view class="user-money-item" @click="navTo('/pages/user/money')">
+					<view class="user-money-num">{{ userInfo.money *1|| 0 }}</view>
+					<view class="user-money-font">额</view>
 				</view>
-				<view class="user-xian"></view>
+			</view>
+			<view class="user-money flex">
 				<view class="user-money-item" @click="navTo('/pages/user/jf')">
 					<view class="user-money-num">{{ userInfo.award_range *1|| 0 }}</view>
 					<view class="user-money-font">绿色积分</view>
 				</view>
+				<view class="user-xian"></view>
+				<view class="user-money-item">
+					<view class="user-money-num">{{ userInfo.pay_money * 1 || 0 }}</view>
+					<view class="user-money-font">股权</view>
+				</view>
+
 			</view>
 		</view>
 		<view class="main-box">

+ 1 - 1
pages/user/withdrawal.vue

@@ -189,7 +189,7 @@
 					money: this.withdrawal, //金额
 					type: 0 //0佣金1余额
 				};
-				if (this.withdrawal < this.minPrice) {
+				if (this.withdrawal * 1 < this.minPrice * 1) {
 					uni.showToast({
 						title: '提现金额不可少于' + this.minPrice,
 						duration: 2000,

+ 2 - 2
pages/user/yjzye.vue

@@ -4,12 +4,12 @@
 			<view class="flex">
 				<view class="buttom">
 					<view class="icon">{{ userInfo.brokerage_price | getMoneyStyle }}</view>
-					<text class="text">可转换余额</text>
+					<text class="text">可转换消费积分</text>
 				</view>
 			</view>
 		</view>
 		<view class="row-box">
-			<view class="title">转换金额</view>
+			<view class="title">转换消费积分</view>
 			<view class="row">
 				<!-- <text class="tit">¥</text> -->
 				<input class="input" type="number" v-model="withdrawal" placeholder="转换金额"

+ 4 - 3
pages/user/yue.vue

@@ -4,11 +4,12 @@
 		<view class="yue-wrap flex">
 			<view class="yue-tit flex">
 				<view class="yue-left">总资产(CNY)</view>
-				<view class="tx" v-if="userInfo.phone == '13676659288' || userInfo.phone == '13738601238' "
+				<!-- <view class="tx"
+					v-if="userInfo.phone == '13676659288' || userInfo.phone == '13738601238' || userInfo.phone == '18258668700' "
 					@click="navto('/pages/money/wallet')">
 					<image src="../../static/icon/hz.png" mode="widthFix"></image>
-					余额互转
-				</view>
+					消费积分互转
+				</view> -->
 			</view>
 			<view class="yue-num flex">
 				<view class="yue">{{ userInfo.now_money || '0.00' }}</view>

BIN=BIN
static/icon/xxzf.png


BIN=BIN
static/icon/yj.png


BIN=BIN
unpackage/dist/build/h5/4-27-1.rar → unpackage/dist/build/h5/5-25-1.rar


+ 1 - 1
unpackage/dist/build/h5/index.html

@@ -1,2 +1,2 @@
 <!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.63b34199.css></head><body><noscript><strong>Please enable JavaScript to continue.</strong></noscript><div id=app></div><script src=/index/static/js/chunk-vendors.3e31b09f.js></script><script src=/index/static/js/index.e8f3bf04.js></script></body></html>
+            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.63b34199.css></head><body><noscript><strong>Please enable JavaScript to continue.</strong></noscript><div id=app></div><script src=/index/static/js/chunk-vendors.3e31b09f.js></script><script src=/index/static/js/index.d44a92ef.js></script></body></html>

BIN=BIN
unpackage/dist/build/h5/static/icon/xxzf.png


BIN=BIN
unpackage/dist/build/h5/static/icon/yj.png


A diferenza do arquivo foi suprimida porque é demasiado grande
+ 0 - 0
unpackage/dist/build/h5/static/js/index.d44a92ef.js


A diferenza do arquivo foi suprimida porque é demasiado grande
+ 0 - 0
unpackage/dist/build/h5/static/js/index.e8f3bf04.js


A diferenza do arquivo foi suprimida porque é demasiado grande
+ 0 - 0
unpackage/dist/build/h5/static/js/pages-index-index.9ac0e60d.js


A diferenza do arquivo foi suprimida porque é demasiado grande
+ 0 - 0
unpackage/dist/build/h5/static/js/pages-money-pay.01830f06.js


A diferenza do arquivo foi suprimida porque é demasiado grande
+ 0 - 0
unpackage/dist/build/h5/static/js/pages-money-pay.d5767808.js


A diferenza do arquivo foi suprimida porque é demasiado grande
+ 0 - 0
unpackage/dist/build/h5/static/js/pages-money-recharge.657d1654.js


A diferenza do arquivo foi suprimida porque é demasiado grande
+ 0 - 0
unpackage/dist/build/h5/static/js/pages-money-recharge.7365eca2.js


A diferenza do arquivo foi suprimida porque é demasiado grande
+ 0 - 0
unpackage/dist/build/h5/static/js/pages-money-wallet.c50234e2.js


A diferenza do arquivo foi suprimida porque é demasiado grande
+ 0 - 0
unpackage/dist/build/h5/static/js/pages-money-wallet.d0e68d02.js


A diferenza do arquivo foi suprimida porque é demasiado grande
+ 0 - 0
unpackage/dist/build/h5/static/js/pages-order-createOrder.0e61e748.js


A diferenza do arquivo foi suprimida porque é demasiado grande
+ 0 - 0
unpackage/dist/build/h5/static/js/pages-order-createOrder.e410afab.js


A diferenza do arquivo foi suprimida porque é demasiado grande
+ 0 - 0
unpackage/dist/build/h5/static/js/pages-order-order~pages-user-award~pages-user-consumption~pages-user-jf~pages-user-money~pages-user-yue.4929d89b.js


A diferenza do arquivo foi suprimida porque é demasiado grande
+ 0 - 0
unpackage/dist/build/h5/static/js/pages-order-order~pages-user-award~pages-user-consumption~pages-user-jf~pages-user-yue.01211561.js


A diferenza do arquivo foi suprimida porque é demasiado grande
+ 0 - 0
unpackage/dist/build/h5/static/js/pages-product-classify.65e290de.js


A diferenza do arquivo foi suprimida porque é demasiado grande
+ 0 - 0
unpackage/dist/build/h5/static/js/pages-product-classify.8a470f99.js


A diferenza do arquivo foi suprimida porque é demasiado grande
+ 0 - 0
unpackage/dist/build/h5/static/js/pages-product-product.3d1976ce.js


A diferenza do arquivo foi suprimida porque é demasiado grande
+ 0 - 0
unpackage/dist/build/h5/static/js/pages-product-product.8023cbdc.js


A diferenza do arquivo foi suprimida porque é demasiado grande
+ 0 - 0
unpackage/dist/build/h5/static/js/pages-public-register.abdf50e2.js


A diferenza do arquivo foi suprimida porque é demasiado grande
+ 0 - 0
unpackage/dist/build/h5/static/js/pages-public-register.e586e1e4.js


A diferenza do arquivo foi suprimida porque é demasiado grande
+ 0 - 0
unpackage/dist/build/h5/static/js/pages-set-address.2fc5262e.js


A diferenza do arquivo foi suprimida porque é demasiado grande
+ 0 - 0
unpackage/dist/build/h5/static/js/pages-set-address.9980a0eb.js


A diferenza do arquivo foi suprimida porque é demasiado grande
+ 0 - 0
unpackage/dist/build/h5/static/js/pages-user-award.4ffbe03e.js


A diferenza do arquivo foi suprimida porque é demasiado grande
+ 0 - 0
unpackage/dist/build/h5/static/js/pages-user-award.c7244f6e.js


A diferenza do arquivo foi suprimida porque é demasiado grande
+ 0 - 0
unpackage/dist/build/h5/static/js/pages-user-consumption.9aa922da.js


A diferenza do arquivo foi suprimida porque é demasiado grande
+ 0 - 0
unpackage/dist/build/h5/static/js/pages-user-consumption.ea628ecb.js


A diferenza do arquivo foi suprimida porque é demasiado grande
+ 0 - 0
unpackage/dist/build/h5/static/js/pages-user-jf.5d9ba4c2.js


A diferenza do arquivo foi suprimida porque é demasiado grande
+ 0 - 0
unpackage/dist/build/h5/static/js/pages-user-money.f84463c3.js


A diferenza do arquivo foi suprimida porque é demasiado grande
+ 0 - 0
unpackage/dist/build/h5/static/js/pages-user-user.3df22d50.js


A diferenza do arquivo foi suprimida porque é demasiado grande
+ 0 - 0
unpackage/dist/build/h5/static/js/pages-user-user.7eab4eac.js


A diferenza do arquivo foi suprimida porque é demasiado grande
+ 0 - 0
unpackage/dist/build/h5/static/js/pages-user-withdrawal.432dc05e.js


A diferenza do arquivo foi suprimida porque é demasiado grande
+ 0 - 0
unpackage/dist/build/h5/static/js/pages-user-withdrawal.f215d910.js


A diferenza do arquivo foi suprimida porque é demasiado grande
+ 0 - 0
unpackage/dist/build/h5/static/js/pages-user-yjzye.30d447ce.js


A diferenza do arquivo foi suprimida porque é demasiado grande
+ 0 - 0
unpackage/dist/build/h5/static/js/pages-user-yjzye.e8e4f720.js


A diferenza do arquivo foi suprimida porque é demasiado grande
+ 0 - 0
unpackage/dist/build/h5/static/js/pages-user-yue.7305d567.js


A diferenza do arquivo foi suprimida porque é demasiado grande
+ 0 - 0
unpackage/dist/build/h5/static/js/pages-user-yue.cb98d628.js


Algúns arquivos non se mostraron porque demasiados arquivos cambiaron neste cambio