Forráskód Böngészése

shareiD 客户转介绍

twt 3 hete%!(EXTRA string=óta)
szülő
commit
2655487471

+ 10 - 1
pages/index/index.vue

@@ -367,7 +367,7 @@
 		
 		<view style="height: 60rpx;"></view>
 		<!-- 手机号授权 -->
-		<view class="authorizBox"  v-if="authorizShow"   @click="authorizShowHide"><!--   -->
+		<view class="authorizBox"  v-if="authorizShow" @click="authorizShowHide"><!--      -->
 			<view class="authorizCont" @click.stop="">
 				<view class="authorizName">{{wxOpenData.miniAppName}}</view>
 				<view class="authorizMs">未注册的手机号登录后将自动创会员账号,如果您不同意授权获取手机号,会影响您使用我们的产品和服务。</view>
@@ -482,6 +482,7 @@
 			
 			if (shareID) {
 				this.shareID = shareID
+				this.$store.commit('mutationsshareID', shareID)
 				console.log('this.shareID==='+this.shareID)
 				//this.$store.commit('mutationsshareID', shareID)
 			}
@@ -1173,6 +1174,10 @@
 							 }
 						}); 
 					}else{
+						if(that.shareID){
+							//that.getCouponList()
+							this.authorizShow=true;
+						}
 						//this.authorizShow=true;
 					}
 					if(res.data.loginInfo.discount){
@@ -1251,6 +1256,9 @@
 										if(that.shareID&&that.discount==2){
 											that.getCouponList()
 										}
+										if(that.shareID&&that.discount==1){
+											that.getCouponList()
+										}
 									}
 								 	
 								 	
@@ -2043,6 +2051,7 @@ margin-top: 10rpx;
 		position: fixed;
 		top: 0;
 		left: 0;
+		z-index: 111;
 	}
 	.authorizCont{
 		margin-top: 30vh;

+ 2 - 2
pages/partner/myQr.vue

@@ -7,7 +7,7 @@
 				<image :src="userInfo.headImg" mode="" class="headImg" v-if="userInfo.headImg"></image>
 				<image src="../../static/img/icon_me.png" mode="" class="headImg" v-else></image>
 			</view>
-			<view class="nickName">{{userInfo.nickName?userInfo.nickName:'微信昵称'}}</view>
+			<view class="nickName">{{wxOpenData.loginInfo.customerInfo.customerName?wxOpenData.loginInfo.customerInfo.customerName:'微信昵称'}}</view>
 		</view>
 		
 		<view class="wqmBox">
@@ -27,7 +27,7 @@
 				<image :src="userInfo.headImg" mode="" class="headImg" v-if="userInfo.headImg"></image>
 				<image src="../../static/img/icon_me.png" mode="" class="headImg" v-else></image>
 			</view>
-			<view class="nickName">{{userInfo.nickName?userInfo.nickName:'微信昵称'}}</view>
+			<view class="nickName">{{wxOpenData.loginInfo.customerInfo.customerName?wxOpenData.loginInfo.customerInfo.customerName:'微信昵称'}}</view>
 		</view>
 		
 		<view class="wqmBox">

+ 3 - 2
pages/subPack/offerSheetDetail.vue

@@ -372,6 +372,7 @@
 		onLoad(opt) {
             this.iStatusBarHeight = uni.getSystemInfoSync().statusBarHeight;
 			this.id = opt.id
+			this.id="18618D1A-B7EF-4C1B-B4EE-587A26F56769"
 			this.themeColor = uni.getStorageSync("themeColor");
 			this.userInfo = this.$store.state.userInfo;
 			this.ext = this.$common.getExtStoreId();
@@ -433,7 +434,7 @@
 			},
 			//显示权限
 			showPower() {
-				this.$http('openweiXinCardInfoController/getShowSetting', {
+				this.$http('openweiXinCardInfoController/getOfferShowSetting', {
 
 				}, 'GET').then(res => {
 
@@ -646,7 +647,7 @@
 					title: '加载中'
 				});
 
-				this.$http('openweiXinCardInfoController/queryConsumptionDetail', {
+				this.$http('openweiXinCardInfoController/queryOfferDetail', {
 					// lat: this.location.lat,
 					// lng: this.location.lng,
 					id: this.id,

+ 2 - 1
pages/user/user.vue

@@ -862,7 +862,8 @@
 					appId: this.ext.appId,
 					unionId: this.ext.unionId,
 					code: this.code,
-					openId: this.wxOpenData.openid
+					openId: this.wxOpenData.openid,
+					shareId:this.$store.state.shareID
 				}, 'POST').then(res => {
 					var data = res.data;
 					if (data.loginInfo) {

+ 10 - 0
store/index.js

@@ -10,6 +10,7 @@ const store = new Vuex.Store({
 		userInfo:'',
 		wxOpenData:'',
 		exitNum:'',
+		shareID:'',
 	},
 	getters:{
 		getyuyueData(state){
@@ -29,6 +30,9 @@ const store = new Vuex.Store({
 		},
 		getexitNum(state){
 			return state.exitNum
+		},
+		getshareID(state){
+			return state.shareID
 		}
     },
     mutations: {
@@ -50,6 +54,9 @@ const store = new Vuex.Store({
 		mutationsexitNum(state,data){
 			state.exitNum=data
 		},
+		mutationsshareID(state,data){
+			state.shareID=data
+		},
 	},
     actions: {
 		actionsyuyueData(context,playload){
@@ -70,6 +77,9 @@ const store = new Vuex.Store({
 		actionsexitNum(context,playload){
 			context.commit('mutationsexitNum',playload)
 		},
+		actionshareID(context,playload){
+			context.commit('mutationshareID',playload)
+		},
 	}
 })
 export default store