适配支付宝小程序

master
gongfuxiang 2025-10-28 15:56:34 +08:00
parent 2ea23fe662
commit e45f69c687
11 changed files with 22 additions and 41 deletions

View File

@ -3167,6 +3167,8 @@
if(client_value == 'alipay') {
//
var pages_always = [
'pages/plugins/shop/index/index',
'pages/plugins/shop/detail/detail',
'pages/plugins/realstore/detail/detail',
'pages/plugins/seckill/index/index',
'pages/plugins/points/index/index',

View File

@ -69,6 +69,7 @@
theme_view: app.globalData.get_theme_value_view(),
client_value: app.globalData.application_client_type(),
status_bar_height: 0,
is_show_back: true,
// #ifdef MP-WEIXIN || MP-BAIDU || MP-QQ || MP-KUAISHOU || MP-ALIPAY || H5 || APP
status_bar_height: parseInt(app.globalData.get_system_info('statusBarHeight', 0, true)),
// #endif
@ -94,7 +95,10 @@
methods: {
//
top_nav_left_back_event() {
app.globalData.page_back_prev_event();
var arr = ['alipay', 'baidu'];
if(arr.indexOf(this.client_value) == -1) {
app.globalData.page_back_prev_event();
}
},
},
};

View File

@ -1294,7 +1294,7 @@
"navigationStyle": "custom",
// #endif
// #ifdef MP-ALIPAY
"transparentTitle": "auto",
"transparentTitle": "always",
"titlePenetrate": "YES",
// #endif
"enablePullDownRefresh": true,
@ -1308,7 +1308,7 @@
"navigationStyle": "custom",
// #endif
// #ifdef MP-ALIPAY
"transparentTitle": "auto",
"transparentTitle": "always",
"titlePenetrate": "YES",
// #endif
"navigationBarTitleText": "",

View File

@ -289,14 +289,6 @@
<!-- 公共 -->
<component-common ref="common" :propIsGrayscale="plugins_mourning_data_is_app"></component-common>
</block>
<!-- <view class="margin-top-xxxxl padding-top-xxxxl padding-bottom-xxxxl tc">
<navigator data-value="/pages/plugins/live/push/push" @tap="url_event"></navigator>
<view class="margin-top-lg">
<navigator data-value="/pages/plugins/live/pull/pull" @tap="url_event"></navigator>
</view>
</view> -->
</view>
</template>
<script>

View File

@ -203,9 +203,6 @@
query: 'id=' + info.id,
},
});
//
uni.setNavigationBarTitle({ title: info.title || info.content });
}
} else {
this.setData({

View File

@ -211,9 +211,6 @@
img: info.share_images || info.cover,
},
});
//
uni.setNavigationBarTitle({ title: info.title });
}
} else {
this.setData({

View File

@ -3,7 +3,7 @@
<!-- 搜索 -->
<view class="flex-row jc-sb align-c padding-main bg-white oh bs-bb z-i search-content" :style="'padding-top:' + (status_bar_height > 0 ? status_bar_height + 5 : 0)+'px;'">
<view v-if="top_nav_left_back_status == 1" @tap="top_nav_left_back_event" class="dis-inline-block padding-right-sm">
<iconfont name="icon-arrow-left" size="40rpx" propClass="pr top-xs z-i"></iconfont>
<iconfont name="icon-arrow-left" size="40rpx" propClass="pr top-xs z-i" :color="(client_value == 'alipay' || client_value == 'baidu') ? 'transparent' : propColor"></iconfont>
</view>
<view class="flex-1 wh-auto">
<view class="search flex-row jc-sb align-c round border-color-main bg-white">
@ -182,6 +182,11 @@
var common_static_url = app.globalData.get_static_url('common');
export default {
props: {
//
propColor: {
type: String,
default: '',
},
propBase: {
type: [Object,String],
default: '',
@ -222,7 +227,7 @@
//
top_nav_left_back_status: app.globalData.data.is_shop_top_nav_back || 0,
// #ifdef MP-TOUTIAO
top_nav_left_back_status : 0,
top_nav_left_back_status: 0,
// #endif
//
status_bar_height: 0,
@ -247,6 +252,7 @@
//
init() {
var upd_data = {
client_value: app.globalData.application_client_type(),
is_shop_search_all_search_button: (this.propBase == null || parseInt(this.propBase.is_shop_search_all_search_button || 0) != 1) ? 0 : 1,
shop_navigation: this.propShopNavigation,
}
@ -381,7 +387,10 @@
//
top_nav_left_back_event() {
app.globalData.page_back_prev_event();
var arr = ['alipay', 'baidu'];
if(arr.indexOf(this.client_value) == -1) {
app.globalData.page_back_prev_event();
}
}
},
};
@ -422,7 +431,7 @@
left: auto;
top: 0;
width: 100%;
/* #ifdef MP-WEIXIN || MP-BAIDU || MP-QQ || MP-KUAISHOU */
/* #ifdef MP-WEIXIN || MP-BAIDU || MP-ALIPAY || MP-QQ || MP-KUAISHOU */
padding-right: 200rpx;
/* #endif */
}

View File

@ -125,11 +125,6 @@
img: this.data.logo
}
});
//
uni.setNavigationBarTitle({
title: this.data.name
});
}
} else {
this.setData({

View File

@ -244,10 +244,6 @@
img: this.shop.share_images || this.shop.logo,
},
});
//
uni.setNavigationBarTitle({
title: this.shop.name
});
}
} else {
this.setData({

View File

@ -147,11 +147,6 @@
},
});
//
uni.setNavigationBarTitle({
title: this.data.name,
});
//
this.set_navigation_bar_color();

View File

@ -184,12 +184,6 @@
path: '/pages/plugins/shop/index/index',
},
});
//
if ((this.data_base.application_name || null) != null) {
uni.setNavigationBarTitle({
title: this.data_base.application_name,
});
}
}
//
this.get_data_list(1);