diff --git a/App.vue b/App.vue index d3c7b681..227b41c5 100644 --- a/App.vue +++ b/App.vue @@ -1148,7 +1148,13 @@ // 获取当前页面地址、不含?后面的参数 get_page_url(is_whole) { + // #ifdef MP || APP + var pages = getCurrentPages(); + var url = pages[pages.length-1].$page.fullPath; + // #endif + // #ifdef H5 var url = window.location.href; + // #endif if(is_whole == false) { var temp = url.split('?'); url = temp[0]; @@ -1222,7 +1228,10 @@ query: this.share_query_handle(data.query || ''), img: data.img || share_config.pic || this.get_config('config.home_site_logo_square') }; - result['url'] = this.get_page_url().split('#')[0] + '#' + ((result.path.substr(0 ,1) == '/') ? '' : '/') + result.path + result.query; + result['url'] = this.get_page_url(); + // #ifdef H5 + result['url'] = result.url.split('#')[0] + '#' + ((result.path.substr(0 ,1) == '/') ? '' : '/') + result.path + result.query; + // #endif return result; }, diff --git a/changelog.md b/changelog.md index 98c12213..27b46e2c 100644 --- a/changelog.md +++ b/changelog.md @@ -14,4 +14,16 @@ * 分销、会员等级增强版、钱包全面支持小程序 * 用户授权获取用户信息API * 可视化索引读取错误修复 -* 支持菜鸟物流查询 \ No newline at end of file +* 支持菜鸟物流查询 + + +## v2.2.3(xxx) +* 整体适配H5端 +* 订单、钱包、会员等级支付优化适配 +* 支持(账号、手机、邮箱)登录注册方式 +* 分享逻辑优化全局处理 +* 分销新增上级用户、阶梯返佣提示 +* 新增独立新增错误页面 +* 适配第三方登录插件 +* 支持线下支付自定义信息展示 +* 规格切换购买数量错误修复 \ No newline at end of file diff --git a/pages/common/open-setting-location/open-setting-location.vue b/pages/common/open-setting-location/open-setting-location.vue index 51bf1603..485a67df 100644 --- a/pages/common/open-setting-location/open-setting-location.vue +++ b/pages/common/open-setting-location/open-setting-location.vue @@ -37,7 +37,8 @@ }, methods: { // 获取权限 - init() { + init() { + // #ifdef MP var self = this; uni.getSetting({ success(res) { @@ -60,7 +61,11 @@ fail: res => { app.globalData.showToast("请先获取授权"); } - }); + }); + // #endif + // #ifdef H5 || APP + this.choose_location(); + // #endif }, // 位置服务回调方法 diff --git a/pages/plugins/distribution/extraction-apply/extraction-apply.vue b/pages/plugins/distribution/extraction-apply/extraction-apply.vue index ad4864ce..20753d4f 100644 --- a/pages/plugins/distribution/extraction-apply/extraction-apply.vue +++ b/pages/plugins/distribution/extraction-apply/extraction-apply.vue @@ -37,18 +37,18 @@ - {{province_list[province_value].name || default_province}} + {{((province_list[province_value] || null) == null) ? default_province : province_list[province_value]['name']}} - {{city_list[city_value].name || default_city}} + {{((city_list[city_value] || null) == null) ? default_city : city_list[city_value]['name']}} 请先选择省份 - {{county_list[county_value].name || default_county}} + {{((county_list[county_value] || null) == null) ? default_county : county_list[county_value]['name']}} 请先选择城市 @@ -89,7 +89,7 @@ params: null, data_list_loding_status: 1, data_list_loding_msg: '', - extraction_data: null, + extraction_data: {}, province_list: [], city_list: [], county_list: [], @@ -127,9 +127,9 @@ }, onShow() { - this.user_location_init(); - - // 显示分享菜单 + this.user_location_init(); + + // 显示分享菜单 app.globalData.show_share_menu(); }, @@ -172,7 +172,7 @@ var data = res.data.data; var extraction_data = data.extraction_data || null; self.setData({ - extraction_data: extraction_data || null, + extraction_data: extraction_data || {}, editor_path_type: data.editor_path_type || '' }); diff --git a/pages/user-address-save/user-address-save.vue b/pages/user-address-save/user-address-save.vue index 93515ea6..4ec5d04a 100644 --- a/pages/user-address-save/user-address-save.vue +++ b/pages/user-address-save/user-address-save.vue @@ -22,7 +22,7 @@ - {{((province_list[city_value] || null) == null) ? default_province : province_list[city_value]['name']}} + {{((province_list[province_value] || null) == null) ? default_province : province_list[province_value]['name']}} @@ -33,7 +33,7 @@ - {{((county_list[city_value] || null) == null) ? default_county : county_list[city_value]['name']}} + {{((county_list[county_value] || null) == null) ? default_county : county_list[county_value]['name']}} 请先选择城市