功能完善
This commit is contained in:
@@ -95,6 +95,25 @@ const submenuList = [
|
||||
}
|
||||
];
|
||||
|
||||
onMounted(() => {
|
||||
wx.getPrivacySetting({
|
||||
success: res => {
|
||||
console.log(res); // 返回结果为: res = { needAuthorization: true/false, privacyContractName: '《xxx隐私保护指引》' }
|
||||
if(res.needAuthorization) {
|
||||
// 需要弹出隐私协议
|
||||
// agreementPopupRef.value.show();
|
||||
} else {
|
||||
// 用户已经同意过隐私协议,所以不需要再弹出隐私协议,也能调用隐私接口
|
||||
}
|
||||
},
|
||||
fail: (res) => {
|
||||
console.log('fail ', res);
|
||||
},
|
||||
complete: () => {
|
||||
}
|
||||
});
|
||||
});
|
||||
|
||||
onLoad((e) => {
|
||||
console.log('home load e ', e);
|
||||
});
|
||||
|
@@ -3,19 +3,23 @@
|
||||
<text class='title'>入群步骤</text>
|
||||
<view class='indicator' />
|
||||
<text class='step-title'>
|
||||
1.长按识别下方二维码,添加【xxxx】
|
||||
1.长按识别下方二维码,添加【店铺福利群】
|
||||
</text>
|
||||
<view class='divider' style='margin-top: 28rpx' />
|
||||
<image :src=' assetsUrl("test_qrcode.png")' show-menu-by-longpress />
|
||||
<image :src=' companyConfigInfo.regqrcode' show-menu-by-longpress />
|
||||
<text class='step-title'>
|
||||
2.识别【xxxx】发您的二维码,即可入群
|
||||
2.识别【店铺福利群】发您的二维码,即可入群
|
||||
</text>
|
||||
</view>
|
||||
</template>
|
||||
|
||||
<script lang='ts' setup>
|
||||
|
||||
import { assetsUrl } from '@/utils/assets';
|
||||
import { useUserStore } from '@/store';
|
||||
|
||||
const userStore = useUserStore();
|
||||
const { companyConfigInfo } = storeToRefs(userStore);
|
||||
|
||||
</script>
|
||||
|
||||
<style lang='scss' scoped>
|
||||
|
Reference in New Issue
Block a user