diff --git a/gasStation-uni/pages/index/index.vue b/gasStation-uni/pages/index/index.vue
index 7455b7242..509dc5d83 100644
--- a/gasStation-uni/pages/index/index.vue
+++ b/gasStation-uni/pages/index/index.vue
@@ -181,6 +181,16 @@
}
},
onLoad(query) {
+
+ if (query.storeId) {
+ uni.setStorageSync("y_storeId", query.storeId)
+ }
+ if (query.type) {
+ uni.setStorageSync("y_type", query.type)
+ }
+ if (query.userId) {
+ uni.setStorageSync("y_userId", query.userId)
+ }
const q = decodeURIComponent(query.q) // 获取到二维码原始链接内容
if (query.q) {
let str = q.split("?")[1];
@@ -201,9 +211,9 @@
this.storeId = uni.getStorageSync("storeId")
this.staffId = uni.getStorageSync("inviteStaffId")
} else {
- if (uni.getStorageSync("storeId")){
+ if (uni.getStorageSync("storeId")) {
this.storeId = uni.getStorageSync("storeId")
- }else{
+ } else {
let storeId = "19";
uni.setStorageSync("storeId", storeId)
}
@@ -783,4 +793,4 @@
color: white;
margin: 0 auto;
}
-
\ No newline at end of file
+
diff --git a/gasStation-uni/pagesLogin/login/login.vue b/gasStation-uni/pagesLogin/login/login.vue
index 3d0faf193..d1d2725bf 100644
--- a/gasStation-uni/pagesLogin/login/login.vue
+++ b/gasStation-uni/pagesLogin/login/login.vue
@@ -138,6 +138,11 @@
},
success: (rex) => {
console.log('请求成功', rex)
+ if (uni.getStorageSync("y_type") ==
+ 'yaoqingyouli') {
+ this.activeRecommendRecords()
+
+ }
if (rex.data.code == 200) {
uni.setStorageSync('App-Token', rex.data.data
@@ -174,6 +179,18 @@
}
})
},
+ async activeRecommendRecords() {
+ let res = await request({
+ url: "clientApi/sign/alipayLogin/getUserid",
+ method: 'post',
+ data: {
+ storeId: uni.getStorageSync("y_storeId"),
+ type: uni.getStorageSync("y_type"),
+ userId: uni.getStorageSync("y_userId"),
+ },
+ })
+
+ },
goback() {
uni.navigateBack()
}
@@ -330,4 +347,4 @@
border: 1px solid #0078FF;
color: white;
}
-
\ No newline at end of file
+
diff --git a/gasStation-uni/pagesMy/invite/invite.vue b/gasStation-uni/pagesMy/invite/invite.vue
index 8fcb38582..c40cadffa 100644
--- a/gasStation-uni/pagesMy/invite/invite.vue
+++ b/gasStation-uni/pagesMy/invite/invite.vue
@@ -23,7 +23,7 @@
-
+
面对面邀请
@@ -60,6 +60,11 @@
+
+
+
@@ -75,7 +80,14 @@
title: '',
userId: '',
storeId: '',
-
+ show: false,
+ options: {
+ code: 'https://www.tuofeng.cc/oilStation?storeId=' + uni.getStorageSync('storeId') + '&staffId=' + uni
+ .getStorageSync('storeId'),
+ // code: 'https://www.tuofeng.cc/oily?storeId=' + uni.getStorageSync('storeId') + ' &userId=' + uni
+ // .getStorageSync('userId'), // 生成二维码的值
+ size: 460, // 460代表生成的二维码的宽高均为460rpx
+ },
}
},
@@ -88,9 +100,10 @@
components: {
},
+
onShareAppMessage() {
return {
- title: '来个油惠1',
+ title: '来个油惠',
path: '/pages/index/index?userId=' + uni.getStorageSync('userId') + '&storeId=' + uni.getStorageSync(
'storeId') + '&type=yaoqingyouli',
success() {
@@ -106,7 +119,13 @@
this.getActiveRecommendRecords();
},
methods: {
+ // https://www.tuofeng.cc/oilStation?storeId=19&staffId=45
+ close() {
+ this.show = false
+ },
+ open() {
+ },
getAllAmount() {
request({
url: 'business/marketingActivity/activeRecommendRecords/selectAllAmount',
@@ -341,7 +360,10 @@
box-shadow: 0px
}
-
+ .popup_box {
+ box-sizing: border-box;
+ padding: 15px;
+ }
button {
/* 清除默认边框 */