|  | @@ -28,20 +28,19 @@ export default defineComponent({
 | 
											
												
													
														|  |      // window.atob() 解密
 |  |      // window.atob() 解密
 | 
											
												
													
														|  |      // console.log(qs.parse(location.hash))
 |  |      // console.log(qs.parse(location.hash))
 | 
											
												
													
														|  |  
 |  |  
 | 
											
												
													
														|  | -    const getAppIdAndCode = async (url?: string) => {
 |  | 
 | 
											
												
													
														|  | 
 |  | +    const getAppIdAndCode = async (url: string) => {
 | 
											
												
													
														|  |        try {
 |  |        try {
 | 
											
												
													
														|  |          const { data } = await request.get(state.platformApi + '/open/paramConfig/wechatAppId')
 |  |          const { data } = await request.get(state.platformApi + '/open/paramConfig/wechatAppId')
 | 
											
												
													
														|  |          // 判断是否有微信appId
 |  |          // 判断是否有微信appId
 | 
											
												
													
														|  |          if (data) {
 |  |          if (data) {
 | 
											
												
													
														|  |            closeToast()
 |  |            closeToast()
 | 
											
												
													
														|  |            const replaceUrl =
 |  |            const replaceUrl =
 | 
											
												
													
														|  | -            'https://online.lexiaoya.cn/api-backend/open/agent/wx/oauth2?appId=' +
 |  | 
 | 
											
												
													
														|  | -            data +
 |  | 
 | 
											
												
													
														|  | -            '&redirectUrl=' +
 |  | 
 | 
											
												
													
														|  | -            url
 |  | 
 | 
											
												
													
														|  | 
 |  | +            `https://online.lexiaoya.cn/getWxCode?appid=${data}&state=STATE&redirect_uri=` +
 | 
											
												
													
														|  | 
 |  | +            encodeURIComponent(url)
 | 
											
												
													
														|  | 
 |  | +
 | 
											
												
													
														|  |            console.log(data, 'aaaa')
 |  |            console.log(data, 'aaaa')
 | 
											
												
													
														|  |            console.log(replaceUrl)
 |  |            console.log(replaceUrl)
 | 
											
												
													
														|  | -          // window.location.replace(replaceUrl)
 |  | 
 | 
											
												
													
														|  | 
 |  | +          window.location.replace(replaceUrl)
 | 
											
												
													
														|  |            // goAuth(data, url)
 |  |            // goAuth(data, url)
 | 
											
												
													
														|  |          }
 |  |          }
 | 
											
												
													
														|  |        } catch {
 |  |        } catch {
 | 
											
										
											
												
													
														|  | @@ -79,6 +78,8 @@ export default defineComponent({
 | 
											
												
													
														|  |      onMounted(async () => {
 |  |      onMounted(async () => {
 | 
											
												
													
														|  |        // console.log(dayjs(Number(data.time)).subtract(3, 'hour').valueOf())
 |  |        // console.log(dayjs(Number(data.time)).subtract(3, 'hour').valueOf())
 | 
											
												
													
														|  |        // 判断是否是微信,只能微信中打开
 |  |        // 判断是否是微信,只能微信中打开
 | 
											
												
													
														|  | 
 |  | +
 | 
											
												
													
														|  | 
 |  | +      console.log(import.meta.env)
 | 
											
												
													
														|  |        if (!browser().weixin) {
 |  |        if (!browser().weixin) {
 | 
											
												
													
														|  |          forms.showPopup = true
 |  |          forms.showPopup = true
 | 
											
												
													
														|  |          return
 |  |          return
 |