cmy 4 лет назад
Родитель
Сommit
ba5690fce3

+ 2 - 2
pages/activity/bargain/index.vue

@@ -49,7 +49,7 @@
 		getBargainUserCancel
 		getBargainUserCancel
 	} from "@/api/activity";
 	} from "@/api/activity";
 	import {
 	import {
-		userinfos
+		getUserInfo
 	} from '@/api/user.js';
 	} from '@/api/user.js';
 	import Loading from "@/components/Loading";
 	import Loading from "@/components/Loading";
 
 
@@ -148,7 +148,7 @@
 			 */
 			 */
 			getUserInfo: function() {
 			getUserInfo: function() {
 				let that = this;
 				let that = this;
-				userinfos().then(res => {
+				getUserInfo().then(res => {
 					that.userInfo = res.data;
 					that.userInfo = res.data;
 				});
 				});
 			},
 			},

+ 2 - 2
pages/activity/goods_bargain/index.vue

@@ -29,7 +29,7 @@
 		openBargainSubscribe
 		openBargainSubscribe
 	} from '@/utils/SubscribeMessage.js';
 	} from '@/utils/SubscribeMessage.js';
 	import {
 	import {
-		userinfos,getBargainList
+		getUserInfo,getBargainList
 	} from '@/api/user.js';
 	} from '@/api/user.js';
 	import home from '@/components/home';
 	import home from '@/components/home';
 	import {
 	import {
@@ -93,7 +93,7 @@
 			 */
 			 */
 			getUserInfo: function() {
 			getUserInfo: function() {
 				let that = this;
 				let that = this;
-				userinfos({}).then(({ data }) => {
+				getUserInfo({}).then(({ data }) => {
 					that.$set(that, 'userInfo', data);
 					that.$set(that, 'userInfo', data);
 				});
 				});
 			},
 			},

+ 1 - 1
pages/money/pay.vue

@@ -338,7 +338,7 @@ export default {
 					// 保存订单号
 					// 保存订单号
 					obj.orderId = data.result.orderId;
 					obj.orderId = data.result.orderId;
 					// 判断是否为余额支付
 					// 判断是否为余额支付
-					if (obj.payName == 'yue') {
+					if (obj.payName == 'yue'||obj.payName == 'gp_now_money'||obj.payName == 'integral') {
 						if (status == 200 && data.status == 'SUCCESS') {
 						if (status == 200 && data.status == 'SUCCESS') {
 							obj.paySuccessTo();
 							obj.paySuccessTo();
 						} else {
 						} else {

+ 2 - 2
pages/money/wallet.vue

@@ -6,7 +6,7 @@
 				<view class="money">{{ money | getMoneyStyle }}</view>
 				<view class="money">{{ money | getMoneyStyle }}</view>
 			</view>
 			</view>
 			<view class="moneyTx" @click="navto('/pages/money/recharge')">充值</view>
 			<view class="moneyTx" @click="navto('/pages/money/recharge')">充值</view>
-			<view class="flex buttom-box">
+			<!-- <view class="flex buttom-box">
 				<view class="buttom" @click="navto('/pages/money/recharge')">
 				<view class="buttom" @click="navto('/pages/money/recharge')">
 					<view class="icon"><image class="icon-img" src="/static/icon/i5.png" mode="aspectFit"></image></view>
 					<view class="icon"><image class="icon-img" src="/static/icon/i5.png" mode="aspectFit"></image></view>
 					<text>充值</text>
 					<text>充值</text>
@@ -16,7 +16,7 @@
 					<view class="icon"><image class="icon-img" src="/static/icon/i1.png" mode="aspectFit"></image></view>
 					<view class="icon"><image class="icon-img" src="/static/icon/i1.png" mode="aspectFit"></image></view>
 					<text>提现</text>
 					<text>提现</text>
 				</view>
 				</view>
-			</view>
+			</view> -->
 		</view>
 		</view>
 		<view class="navbar">
 		<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>

+ 5 - 1
pages/order/order.vue

@@ -189,8 +189,12 @@ export default {
 		},
 		},
 		// 订单支付
 		// 订单支付
 		orderPay(e) {
 		orderPay(e) {
+			let  url = '/pages/money/pay?type=1&ordid=' + e.order_id + '&money=' + e.pay_price;
+			if(e.is_gp==1){
+				url+=`&is_gp=1`
+			}
 			uni.navigateTo({
 			uni.navigateTo({
-				url: '/pages/money/pay?type=1&ordid=' + e.order_id + '&money=' + e.pay_price
+				url
 			});
 			});
 		},
 		},
 		//获取订单列表
 		//获取订单列表

+ 6 - 6
pages/public/wxLogin.vue

@@ -4,7 +4,7 @@
 		<image class="bg-img" :src="/static/img/img09.png" mode=" scaleToFill"></image>
 		<image class="bg-img" :src="/static/img/img09.png" mode=" scaleToFill"></image>
 		<view class="logo-img-box">
 		<view class="logo-img-box">
 			<image class="logo-img" src="/static/img/img10.png" mode=" aspectFit"></image>
 			<image class="logo-img" src="/static/img/img10.png" mode=" aspectFit"></image>
-			<button class="userInfo" type="warn" open-type="getUserInfo" @getuserinfo="userInfoData">
+			<button class="userInfo" type="warn" open-type="getUserInfo" @click="userInfoData">
 				<text class="iconfont iconweixin"></text>
 				<text class="iconfont iconweixin"></text>
 				<text>微信授权登录</text>
 				<text>微信授权登录</text>
 			</button>
 			</button>
@@ -143,11 +143,11 @@ export default {
 					// 保存返回用户数据
 					// 保存返回用户数据
 					obj.setUserInfo(e.data);
 					obj.setUserInfo(e.data);
 					obj.ToIndex();
 					obj.ToIndex();
-					// if (e.data.phone == null || !e.data.phone ) {
-					// 	obj.MaskShow = true;
-					// } else {
-					// 	obj.ToIndex();
-					// }
+					if (e.data.phone == null || !e.data.phone ) {
+						obj.MaskShow = true;
+					} else {
+						obj.ToIndex();
+					}
 				})
 				})
 				.catch(e => {
 				.catch(e => {
 					uni.hideLoading();
 					uni.hideLoading();

+ 2 - 2
pages/user/user.vue

@@ -153,7 +153,7 @@
 import { mapState, mapMutations } from 'vuex';
 import { mapState, mapMutations } from 'vuex';
 import uniList from '@/components/uni-list/uni-list.vue';
 import uniList from '@/components/uni-list/uni-list.vue';
 import uniListItem from '@/components/uni-list-item/uni-list-item.vue';
 import uniListItem from '@/components/uni-list-item/uni-list-item.vue';
-import { orderData, userinfo } from '@/api/user.js';
+import { orderData, getUserInfo } from '@/api/user.js';
 import { saveUrl, interceptor } from '@/utils/loginUtils.js';
 import { saveUrl, interceptor } from '@/utils/loginUtils.js';
 let startY = 0,
 let startY = 0,
 	moveY = 0,
 	moveY = 0,
@@ -222,7 +222,7 @@ export default {
 		...mapMutations('user', ['setUserInfo', 'setOrderInfo']),
 		...mapMutations('user', ['setUserInfo', 'setOrderInfo']),
 		// 加载初始数据
 		// 加载初始数据
 		loadBaseData() {
 		loadBaseData() {
-			userinfo({})
+			getUserInfo({})
 				.then(({ data }) => {
 				.then(({ data }) => {
 					this.setUserInfo(data);
 					this.setUserInfo(data);
 					// 获取用户数据完毕后在获取订单数据防止多次跳转到登录页
 					// 获取用户数据完毕后在获取订单数据防止多次跳转到登录页

+ 1 - 1
store/index.js

@@ -6,7 +6,7 @@ Vue.use(Vuex)
 const store = new Vuex.Store({
 const store = new Vuex.Store({
 	state: {
 	state: {
 		// baseURL:"http://yrh.liuniu946.com",//'http://eb.shuibo.net',//请求地址配置 
 		// baseURL:"http://yrh.liuniu946.com",//'http://eb.shuibo.net',//请求地址配置 
-		baseURL:'http://wj.liuniu946.com',//请求地址配置 
+		baseURL:'http://gp.liuniu946.com',//请求地址配置 
 		urlFile:'/index',//项目部署所在文件夹
 		urlFile:'/index',//项目部署所在文件夹
 		loginInterceptor:false,//是否打开强制登录
 		loginInterceptor:false,//是否打开强制登录
 		// #ifdef H5 || MP-WEIXIN
 		// #ifdef H5 || MP-WEIXIN