Commit f4a363b6 authored by 小耗子's avatar 小耗子

分享

parent 3d78f3e3
......@@ -3,10 +3,12 @@
*/
// export const BASE_URL = 'http://172.18.0.229:9001' //后台根域名 https://demo.shopro.top
export const BASE_URL = 'https://wxcs.zhonghuihaotai.com' //后台根域名 https://demo.shopro.top
export const BASE_URL = 'https://wx.zhonghuihaotai.com' //后台根域名 https://demo.shopro.top
// export const BASE_URL = 'https://wxcs.zhonghuihaotai.com' //后台根域名 https://demo.shopro.top
export const API_URL = `${BASE_URL}/api/a1/` //后台接口域名
export const IMG_URL = 'http://file.shopro.top' //全局网络图片地址变量,css背景图片地址变量在uni.scss
export const MAP_KEY = '426ebc3f1bbaced***89ee6061a98'; //高德地图开发者Web服务key,逆坐标解析
export const HAS_LIVE = false //后台是否开通直播权限,根据情况在manifest.json中,开启注释相应组件的引入,pages.json中打开直播
// http://172.18.1.66:9001/api/a1/mall/homePage/mp?code={前端传入的code}
\ No newline at end of file
// http://172.18.1.66:9001/api/a1/mall/homePage/mp?code={前端传入的code}
export const MALL_ID ="189099911100589";
export const COMPANY_ID ="20230328";
......@@ -6,6 +6,12 @@
<script>
import http from '@/shopro/request/index';
import {
BASE_URL,
MALL_ID,
COMPANY_ID
} from "@/env";
export default {
data() {
return {
......@@ -28,8 +34,8 @@
if (!res.code && res.data) {
let code = res.data.sfCode;
let time = new Date().getTime();
this.webUrl= `https://wxcs.zhonghuihaotai.com/webpage/wxdist/index.html#/${this.appointPage?this.appointPage:""}?mallId=119583623123146&companyId=625&time=${time}&sfCode=${code}&authMode=force`
// this.webUrl = `https://wxcs.zhonghuihaotai.com/webpage/wxdist/index.html#/?mallId=106975910000477&companyId=999999998&time=${time}&sfCode=${code}`
this.webUrl= `${BASE_URL}/webpage/wxdist/index.html#/${this.appointPage?this.appointPage:""}?mallId=${MALL_ID}&companyId=${COMPANY_ID}&time=${time}&sfCode=${code}&authMode=force`
console.log(this.webUrl)
console.log(this.webUrl)
}
})
......
......@@ -135,7 +135,14 @@
},
onReady() {
this.getAuth();
},
onShareAppMessage(res){
return {
// title: '微信步数',
path: 'pages/index/defalutScreen'
}
}
}
</script>
......
// 用户数据模块
import http from '@/shopro/request/index'
import api from "@/shopro/request/index";
import {
MALL_ID,
COMPANY_ID
} from "@/env";
const state = {
mallId:'119583623123146',
mallId:MALL_ID,
sessionkey: uni.getStorageSync("sessionkey") || "",
userInfo: {},
registerInfo: {//注册信息
companyId: '625', //开放式传
companyId: COMPANY_ID, //开放式传
mobile: '', //封闭式传
empcardno: '', //封闭式传
registerType: 'register' //注册时的类型为普通注册
......@@ -104,7 +109,7 @@ const actions = {
duration: 2000,
icon:'none'
});
resolve(res.code)
reject(res.code)
}
});
})
......
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