diff --git a/src/pages/mine/index.vue b/src/pages/mine/index.vue index f46f616..6d8b3cd 100644 --- a/src/pages/mine/index.vue +++ b/src/pages/mine/index.vue @@ -149,8 +149,16 @@ onShow(async () => { const openCard = () => { // const url = 'https://mp.weixin.qq.com/bizmall/activatemembercard?action=preshow&&encrypt_card_id=LI%2FNyDp0x3z8XXorvvrHzSR4VUPa2vlioBg2xkDT3HqybiAFNsNgjH7pBpyKGrSA&outer_str=1702887425732870145&biz=MzU2MTg5MjgxMg%3D%3D#wechat_redirect'; - goPath(`/pages/common/webview/index?url=${decodeURIComponent(cardLink.value)}`); + goPath(`/pages/common/webview/index?url=${encodeURIComponent(cardLink.value)}`); // uni.navigateToMiniProgram({ appId: 'wxeb490c6f9b154ef9' }); + // uni.addCard({ + // cardList: [ + // { + // cardId: 'pzCtO1NU8FDcF3v09_Q76-7ZuN8I', + // cardExt: JSON.stringify({ 'code': '12345', openId: 'wxc480826360455685', 'timestamp': Date.now(), 'signature': '' }) + // } + // ] + // }); }; const gotoPath = (path: string) => { diff --git a/src/pages/mine/subs/contact/index.vue b/src/pages/mine/subs/contact/index.vue index 9b136b4..ba5e08a 100644 --- a/src/pages/mine/subs/contact/index.vue +++ b/src/pages/mine/subs/contact/index.vue @@ -2,12 +2,12 @@ 姓名 - {{companyInfo.master||companyInfo.companyName}} + {{ companyConfigInfo.contactname}} 手机号 - {{companyInfo.telphone}} + {{companyConfigInfo.contacttelephone}} @@ -17,10 +17,10 @@ import { useUserStore } from '@/store'; import { assetsUrl } from '@/utils/assets'; -const { companyInfo } = storeToRefs(useUserStore()); +const { companyConfigInfo } = storeToRefs(useUserStore()); const call = () => { uni.makePhoneCall({ - phoneNumber: companyInfo.value.telphone + phoneNumber: companyConfigInfo.value.contacttelephone }); }; diff --git a/src/store/modules/user/index.ts b/src/store/modules/user/index.ts index dea942e..b6e5058 100644 --- a/src/store/modules/user/index.ts +++ b/src/store/modules/user/index.ts @@ -18,7 +18,9 @@ const useUserStore = defineStore('user', { mallopen: 0, regqrcode: undefined, userbgcover: undefined, - groupqrcode: undefined + groupqrcode: undefined, + contactname: '', + contacttelephone: '' }, deliveryAddress: { addrid: '',