Commit c90ddb01 authored by geruidan's avatar geruidan

1.h5有一个友好提示正在授权,请稍候...2.康喜生鲜首页图更改去掉康喜生鲜

parent 77dd46a3
......@@ -11,16 +11,19 @@ export const MAP_KEY = '426ebc3f1bbaced***89ee6061a98'; //高德地图开发者W
export const HAS_LIVE = false //后台是否开通直播权限,根据情况在manifest.json中,开启注释相应组件的引入,pages.json中打开直播
// http://172.18.1.66:9001/api/a1/mall/homePage/mp?code={前端传入的code}
export const MALL_ID ="120939311101327"; //中会汇豪泰
export const COMPANY_ID ="2025030401";
export const APP_ID = "wx60c6530c49c52ff7"; //小程序APPID
export const APP_KEY = "a20511dcfd6b07114afacbb482b2e7e0"; //勿改
// export const MALL_ID ="120939311101327"; //中会汇豪泰
// export const COMPANY_ID ="2025030401";
// export const APP_ID = "wx60c6530c49c52ff7"; //小程序APPID
// export const APP_KEY = "a20511dcfd6b07114afacbb482b2e7e0"; //勿改
// export const MALL_ID ="189099911100589";
// export const COMPANY_ID ="2023062901";
// export const APP_ID = "wx91fa336def077983"; //小程序APPID
// export const APP_ID = "wx91fa336def077983"; //zhonghui小程序APPID
// export const APP_KEY = "a20511dcfd6b07114afacbb482b2e7e0"; //勿改
export const MALL_ID ="150076611100683";
export const COMPANY_ID ="2023071003";
export const APP_ID = "wxb46902f9572bfa50"; //zhonghui小程序APPID
export const APP_KEY = "a20511dcfd6b07114afacbb482b2e7e0"; //勿改
\ No newline at end of file
......@@ -54,12 +54,12 @@
"quickapp" : {},
/* 小程序特有相关 */
"mp-weixin" : {
"appid" : "wx60c6530c49c52ff7",
"appid" : "wxb46902f9572bfa50",
"setting" : {
"urlCheck" : true,
"minified" : false,
"urlCheck" : false,
"minified" : true,
"es6" : true,
"postcss" : true,
"postcss" : false,
"ignoreDevUnusedFiles" : false,
"ignoreUploadUnusedFiles" : false
},
......
......@@ -31,7 +31,7 @@ APPID: wx60c6530c49c52ff7
### 无步数商城小程序 :正式 中汇豪泰小程序
```
商城:189099911100589
企业:20230328
企业:2023062901
AppID:wx91fa336def077983
AppSecret: 7f2855a8ff743f1f295ecb9af07f5998
```
......
<template>
<view class="">
<view class="auth-container">
<view class="auth-centered">
{{tips}}
</view>
</view>
</template>
......@@ -31,7 +34,8 @@
appointPage:'personalCenter',
authCode:'',//authCode
h5Url:'https://wx.zhonghuihaotai.com/webpage/wxdist/index.html#/',//传递参数1
backMiniProgram:''//回退到小程序的参数
backMiniProgram:'',//回退到小程序的参数
tips:'正在授权,请稍候...',
}
},
......@@ -45,13 +49,13 @@
this.butTips="请稍候..."
this.butDis = true
if (this.unregistered && !this.loading) {
let h5url = encodeURIComponent(this.h5Url);
let h5url = this.h5Url;
uni.redirectTo({
url: `${this.path}?h5Url=${h5url}&backMiniProgram=${this.backMiniProgram}`
})
} else {
this.tips='授权失败'
uni.showToast({
title: "不允许",
duration: 2000,
......@@ -219,10 +223,14 @@
// uni.hideTabBar();
},
onReady() {
// this.authCode = this.$Route.query.authCode;
this.authCode = this.$Route.query.authCode;
// this.backMiniProgram = this.$Route.query.backMiniProgram;
this.backMiniProgram = this.$Route.query.backMiniProgram
this.backMiniProgram = this.$Route.query.backMiniProgram;
this.h5Url = this.$Route.query.h5Url?encodeURIComponent(this.$Route.query.h5Url):encodeURIComponent("https://wx.zhonghuihaotai.com/webpage/wxdist/index.html#/");//传递了h5url用传递的。否则默认
wx.clearStorage();
if (COMPANY_ID) { //配置了COMPANY_ID用COMPANY_ID 。否则用router上的COMPANY_ID
this.companyId = COMPANY_ID
......@@ -254,6 +262,20 @@
</script>
<style lang="scss" scoped>
.auth-container {
position: relative;
height: 100vh;
}
.auth-centered {
position: absolute;
top: 50%;
left: 50%;
transform: translate(-50%, -50%); /* 使用 transform 调整 */
width: 100%;
text-align: center;
color:#606266;
}
.screen-container {
// position: fixed;
position: absolute;
......
......@@ -5,7 +5,7 @@ let bgUrl = ""
if(MALL_ID == '133309911100709'){ //康喜日鲜
bgUrl="https://img.zhonghuihaotai.com/file_20230711101314F7CCY.png"
}else if(MALL_ID == '150076611100683'){ //康喜生鲜
bgUrl="https://img.zhonghuihaotai.com/file_20230711101151AaeuQ.png"
bgUrl="https://img.zhonghuihaotai.com/file_20250509151333D8ZRJ.png"
}else{//默认
bgUrl="https://img.zhonghuihaotai.com/file_2023071110404202WHI.png"
}
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment