联系商家字段调整

This commit is contained in:
Waiting 2024-05-10 21:33:10 +08:00
parent 74dba2ef29
commit 100744cfaf
3 changed files with 16 additions and 6 deletions

View File

@ -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) => {

View File

@ -2,12 +2,12 @@
<view class='card-view'>
<view class='c-flex-row'>
<text class='key'>姓名</text>
<text class='value'>{{companyInfo.master||companyInfo.companyName}}</text>
<text class='value'>{{ companyConfigInfo.contactname}}</text>
</view>
<view class='divider' />
<view class='c-flex-row'>
<text class='key'>手机号</text>
<text class='value'>{{companyInfo.telphone}}</text>
<text class='value'>{{companyConfigInfo.contacttelephone}}</text>
<image :src='assetsUrl("ic_contact_merchant.png")' @click.stop='call' />
</view>
</view>
@ -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
});
};
</script>

View File

@ -18,7 +18,9 @@ const useUserStore = defineStore('user', {
mallopen: 0,
regqrcode: undefined,
userbgcover: undefined,
groupqrcode: undefined
groupqrcode: undefined,
contactname: '',
contacttelephone: ''
},
deliveryAddress: {
addrid: '',