|
@@ -3,7 +3,7 @@
|
3
|
3
|
<view class="scanFont">您的微信未绑定工号,请填写工号后进行使用</view>
|
4
|
4
|
<view class="searchUser">
|
5
|
5
|
<input class="searchUserIpt" v-model="account" type="text" placeholder="请输入工号" />
|
6
|
|
- <button class="searchUserBtn" size="mini" @click="search(account)">检索</button>
|
|
6
|
+ <button class="searchUserBtn" @click="search(account)">检索</button>
|
7
|
7
|
</view>
|
8
|
8
|
<view class="accountName">
|
9
|
9
|
检索到的用户:{{accountName}}
|
|
@@ -34,6 +34,7 @@
|
34
|
34
|
models: {
|
35
|
35
|
disjunctor: false,
|
36
|
36
|
},
|
|
37
|
+ type: "", //登录来源类型
|
37
|
38
|
}
|
38
|
39
|
},
|
39
|
40
|
methods: {
|
|
@@ -90,6 +91,7 @@
|
90
|
91
|
account: this.bindAccount
|
91
|
92
|
}).then((res) => {
|
92
|
93
|
uni.hideLoading();
|
|
94
|
+ let _this = this;
|
93
|
95
|
if (res.status == 200) {
|
94
|
96
|
uni.showModal({
|
95
|
97
|
title: '提示',
|
|
@@ -99,8 +101,13 @@
|
99
|
101
|
confirmText: '进入系统',
|
100
|
102
|
success: function(result) {
|
101
|
103
|
if (result.confirm) {
|
102
|
|
- console.log('用户点击确定');
|
103
|
|
- location.assign(location.origin + location.pathname);
|
|
104
|
+ console.log('用户点击确定',_this.type);
|
|
105
|
+ if (_this.type) {
|
|
106
|
+ location.assign(location.origin + location.pathname + '#/pages/homePage/homePage?type=' +
|
|
107
|
+ _this.type);
|
|
108
|
+ } else {
|
|
109
|
+ location.assign(location.origin + location.pathname + '#/pages/homePage/homePage');
|
|
110
|
+ }
|
104
|
111
|
} else if (result.cancel) {
|
105
|
112
|
console.log('用户点击取消');
|
106
|
113
|
}
|
|
@@ -125,33 +132,8 @@
|
125
|
132
|
},
|
126
|
133
|
},
|
127
|
134
|
onLoad(options) {
|
128
|
|
- console.log(options, 'seimin')
|
129
|
|
- this.options = options;
|
130
|
|
- if (options.uniName == "replaceGo") { //替换
|
131
|
|
- this.qrCode = options.qrCode
|
132
|
|
- this.queryDept = {
|
133
|
|
- dept: options.queryDept,
|
134
|
|
- id: options.queryDeptId
|
135
|
|
- };
|
136
|
|
- this.msg = `此二维码绑定${options.targetDept}成功,${this.queryDept.dept}的二维码被清空`;
|
137
|
|
- this.settings = [{
|
138
|
|
- name: '替换',
|
139
|
|
- uniName: 'replaceGo'
|
140
|
|
- }, {
|
141
|
|
- name: '保存',
|
142
|
|
- uniName: 'replaceSave'
|
143
|
|
- }];
|
144
|
|
- } else if (options.uniName == "settingGo") { //设置
|
145
|
|
- this.qrCode = options.qrCode;
|
146
|
|
- this.msg = `将设置${options.targetDept}到此二维码上`;
|
147
|
|
- this.settings = [{
|
148
|
|
- name: '设置',
|
149
|
|
- uniName: 'settingGo'
|
150
|
|
- }, {
|
151
|
|
- name: '保存',
|
152
|
|
- uniName: 'settingSave'
|
153
|
|
- }];
|
154
|
|
- }
|
|
135
|
+ console.log(options, 'seimin');
|
|
136
|
+ this.type = options.type || "";
|
155
|
137
|
// #ifdef APP-PLUS
|
156
|
138
|
webHandle("no", "app");
|
157
|
139
|
// #endif
|
|
@@ -204,6 +186,7 @@
|
204
|
186
|
padding: 30rpx;
|
205
|
187
|
|
206
|
188
|
.searchUserIpt {
|
|
189
|
+ padding: 24rpx;
|
207
|
190
|
flex: 3;
|
208
|
191
|
border: 1px solid #0003;
|
209
|
192
|
margin-right: 30rpx;
|