Commit 0757ec43 authored by geruidan's avatar geruidan

修改load

parent f3fd7c86
......@@ -10,9 +10,8 @@ export const IMG_URL = 'http://file.shopro.top' //全局网络图片地址变量
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}
export const MALL_ID ="159339311100563";
export const COMPANY_ID ="00000730";
export const APP_ID = "wxa8257c2ee2213e3e"; //小程序APPID
export const MALL_ID ="179480211100680";
export const COMPANY_ID ="00000775";
export const APP_ID = "wxebbbc2cc63e9d74e"; //小程序APPID
export const APP_KEY = "a20511dcfd6b07114afacbb482b2e7e0"; //勿改
\ No newline at end of file
......@@ -54,9 +54,9 @@
"quickapp" : {},
/* 小程序特有相关 */
"mp-weixin" : {
"appid" : "wxa8257c2ee2213e3e",
"appid" : "wxebbbc2cc63e9d74e",
"setting" : {
"urlCheck" : false,
"urlCheck" : true,
"minified" : true,
"es6" : true,
"postcss" : false
......
......@@ -3,14 +3,13 @@
<view class="load">
<u-loading-page loading-color="#61b077" color="#61b077" :loading="loading"></u-loading-page>
</view>
<view class="screen-container" v-show="!loading">
<view class="screen-container" >
<!-- 康喜日鲜 -->
<image class="bg" :src="defalutBg" mode="scaleToFill" />
<!-- 康喜生鲜 -->
<!-- <image class="bg" src="https://img.zhonghuihaotai.com/file_20230711101151AaeuQ.png" mode="scaleToFill" /> -->
<!-- :disabled="loading" -->
<button @click="enter" :disabled="butDis" class="btn">
{{butTips}}
<button @click="enter" :disabled="loading" class="btn">
{{loading?'请稍等...':'马上进入'}}
</button>
</view>
<sh-privacy></sh-privacy>
......
......@@ -27,23 +27,37 @@ const mutations = {
getPrivacySetting(
state
) {
wx.getPrivacySetting({
success(res) {
console.log('是否需要授权:', res.needAuthorization, '隐私协议的名称为:', res.privacyContractName);
if (res.needAuthorization) {
state.showPrivacy = true
} else {
state.showPrivacy = false
console.log(wx.getPrivacySetting)
if(wx.getPrivacySetting){
wx.getPrivacySetting({
success(res) {
console.log('是否需要授权:', res.needAuthorization, '隐私协议的名称为:', res.privacyContractName);
if (res.needAuthorization) {
state.showPrivacy = true
} else {
state.showPrivacy = false
}
}
}
})
})
}else{
uni.showToast({
title: "当前微信版本过低,无法使用该功能,请升级到最新微信版本后重试。",
duration: 2000,
icon:'none'
});
}
},
// 打开协议文章
openPrivacyContract() {
wx.openPrivacyContract({
success: () => {}, // 打开成功
fail: () => {
this.$u.toast("遇到错误");
uni.showToast({
title: "遇到错误",
duration: 2000,
icon:'none'
});
}
})
},
......
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