This commit is contained in:
@@ -1,5 +1,5 @@
|
||||
export default definePageConfig({
|
||||
navigationBarTitleText: "首页",
|
||||
navigationBarTitleText: '首页',
|
||||
enableShareAppMessage: true,
|
||||
navigationStyle: "custom",
|
||||
navigationStyle: 'custom',
|
||||
});
|
||||
|
||||
@@ -41,7 +41,11 @@
|
||||
<view class="text">{{ item.name }}</view>
|
||||
</view>
|
||||
</view>
|
||||
<navigator class="ad" url="/pages/marketing/yq/index" open-type="navigate" hover-class="none">
|
||||
<navigator
|
||||
class="ad"
|
||||
url="/pages/marketing/yq/index"
|
||||
open-type="navigate"
|
||||
hover-class="none">
|
||||
</navigator>
|
||||
<MerList :get-user-location="getUserLocal" />
|
||||
</view>
|
||||
@@ -87,14 +91,13 @@ const clickSearch = () => {
|
||||
searchVal.value = '';
|
||||
};
|
||||
|
||||
Taro.useLoad(async () => {
|
||||
Taro.useLoad(() => {
|
||||
Taro.getPrivacySetting({
|
||||
success: res => {
|
||||
if (res.needAuthorization) {
|
||||
Taro.requirePrivacyAuthorize({
|
||||
success: res => {
|
||||
success: () => {
|
||||
console.log('用户同意授权');
|
||||
console.log(res);
|
||||
},
|
||||
fail: () => {
|
||||
console.log('用户拒绝授权');
|
||||
|
||||
Reference in New Issue
Block a user