diff --git a/application/service/ConfigService.php b/application/service/ConfigService.php
index 01cfa5a9807f98fd51748d81ac32db568a98de0c..db3c6e680c8753dcaaf373a71a19088881250610 100755
--- a/application/service/ConfigService.php
+++ b/application/service/ConfigService.php
@@ -316,8 +316,8 @@ class ConfigService
$map = \base\GeoTransUtil::BdToGcj($v['lng'], $v['lat']);
if(isset($map['lng']) && isset($map['lat']))
{
- $v['lng_gcj'] = $map['lng'];
- $v['lat_gcj'] = $map['lat'];
+ $v['lng'] = $map['lng'];
+ $v['lat'] = $map['lat'];
}
}
}
diff --git a/application/service/OrderService.php b/application/service/OrderService.php
index 42e9b37d03f6fa074282e90cf636787566adce60..a9b5cfd5d78dd6fcf18b1e58e2e4cb4696bf0051 100755
--- a/application/service/OrderService.php
+++ b/application/service/OrderService.php
@@ -892,8 +892,8 @@ class OrderService
$map = \base\GeoTransUtil::BdToGcj($data['lng'], $data['lat']);
if(isset($map['lng']) && isset($map['lat']))
{
- $data['lng_gcj'] = $map['lng'];
- $data['lat_gcj'] = $map['lat'];
+ $data['lng'] = $map['lng'];
+ $data['lat'] = $map['lat'];
}
}
}
diff --git a/public/appmini/old/alipay/pages/extraction-address/extraction-address.js b/public/appmini/old/alipay/pages/extraction-address/extraction-address.js
index cdb4b134507af1b41924b1d78d813db8a845a5fd..9e7a8f9ce10c67ce91dbecde4234e38647a59391 100644
--- a/public/appmini/old/alipay/pages/extraction-address/extraction-address.js
+++ b/public/appmini/old/alipay/pages/extraction-address/extraction-address.js
@@ -107,8 +107,8 @@ Page({
return false;
}
- var lng = parseFloat(ads.lng_gcj || 0);
- var lat = parseFloat(ads.lat_gcj || 0);
+ var lng = parseFloat(ads.lng || 0);
+ var lat = parseFloat(ads.lat || 0);
if (lng <= 0 || lat <= 0) {
app.showToast("坐标有误");
return false;
diff --git a/public/appmini/old/alipay/pages/user-order-detail/user-order-detail.acss b/public/appmini/old/alipay/pages/user-order-detail/user-order-detail.acss
index 176f325a21fef7958b0d9e649770a89c6a574a19..20af770b33ca89b62942a7aec1dc18032c3ae018 100644
--- a/public/appmini/old/alipay/pages/user-order-detail/user-order-detail.acss
+++ b/public/appmini/old/alipay/pages/user-order-detail/user-order-detail.acss
@@ -26,6 +26,13 @@
height: 85rpx;
line-height: 85rpx;
}
+.address-alias {
+ border: 1px solid #d2364c;
+ color: #d2364c;
+ padding: 2rpx 10rpx;
+ border-radius: 6rpx;
+ margin-right: 10rpx;
+}
/*
* 商品信息
diff --git a/public/appmini/old/alipay/pages/user-order-detail/user-order-detail.axml b/public/appmini/old/alipay/pages/user-order-detail/user-order-detail.axml
index 5c53b002d6dd6685bfef6f3aefa222f21dbcb70b..d9d9c5270eaa96ec8ef5ef6c8f2f760c4510de09 100644
--- a/public/appmini/old/alipay/pages/user-order-detail/user-order-detail.axml
+++ b/public/appmini/old/alipay/pages/user-order-detail/user-order-detail.axml
@@ -2,6 +2,7 @@
+ {{detail.address_data.alias}}
{{detail.address_data.name}}
{{detail.address_data.tel}}
@@ -9,7 +10,7 @@
{{detail.address_data.province_name}}{{detail.address_data.city_name}}{{detail.address_data.county_name}}{{detail.address_data.address}}
- 查看位置
+ 查看位置
@@ -46,7 +47,7 @@
-
+
diff --git a/public/appmini/old/alipay/pages/user-order-detail/user-order-detail.js b/public/appmini/old/alipay/pages/user-order-detail/user-order-detail.js
index 2adfa54dfb64be7a7d5139c7d05cdb5412eacd65..41720dc8dbe0f6ce99846bed99753fedf2e32abc 100644
--- a/public/appmini/old/alipay/pages/user-order-detail/user-order-detail.js
+++ b/public/appmini/old/alipay/pages/user-order-detail/user-order-detail.js
@@ -140,8 +140,8 @@ Page({
}
var ads = this.data.detail.address_data;
- var lng = parseFloat(ads.lng_gcj || 0);
- var lat = parseFloat(ads.lat_gcj || 0);
+ var lng = parseFloat(ads.lng || 0);
+ var lat = parseFloat(ads.lat || 0);
if (lng <= 0 || lat <= 0) {
app.showToast("坐标有误");
return false;
diff --git a/public/appmini/old/baidu/app.js b/public/appmini/old/baidu/app.js
index 882cb74fde825c95a69dbf59bc37d417edae481c..18906b6d4fdfdc097f13306874c6efd8369ed6c5 100755
--- a/public/appmini/old/baidu/app.js
+++ b/public/appmini/old/baidu/app.js
@@ -62,7 +62,7 @@ App({
// 请求地址
request_url: "{{request_url}}",
- // request_url: 'http://tp5-dev.com/',
+ request_url: 'http://tp5-dev.com/',
// request_url: 'https://test.shopxo.net/',
// 基础信息
diff --git a/public/appmini/old/baidu/app.json b/public/appmini/old/baidu/app.json
index 5caf4d933017de0ff1f6c55c6cab57b281246768..27be7a63bb428d4c7704547f010bf410f6a59673 100755
--- a/public/appmini/old/baidu/app.json
+++ b/public/appmini/old/baidu/app.json
@@ -27,7 +27,8 @@
"pages/user-orderaftersale/user-orderaftersale",
"pages/user-orderaftersale-detail/user-orderaftersale-detail",
"pages/coupon/coupon",
- "pages/user-coupon/user-coupon"
+ "pages/user-coupon/user-coupon",
+ "pages/extraction-address/extraction-address"
],
"window": {
"navigationBarTitleText": "{{application_title}}",
diff --git a/public/appmini/old/baidu/pages/buy/buy.css b/public/appmini/old/baidu/pages/buy/buy.css
index 5610fdb6759722f55fd22c8c0ed41ecaeccf8412..c3283e906982f64dcc48368ef7ffabdfd2dd08b2 100755
--- a/public/appmini/old/baidu/pages/buy/buy.css
+++ b/public/appmini/old/baidu/pages/buy/buy.css
@@ -12,7 +12,7 @@
padding: 10rpx 35rpx 10rpx 10rpx;
}
.address-detail .icon {
- width: 35rpx;
+ width: 30rpx;
height: 35rpx !important;
}
.address-detail .text {
@@ -30,6 +30,13 @@
height: 85rpx;
line-height: 85rpx;
}
+.address-alias {
+ border: 1px solid #d2364c;
+ color: #d2364c;
+ padding: 2rpx 10rpx;
+ border-radius: 6rpx;
+ margin-right: 10rpx;
+}
/**
* 商品
@@ -130,9 +137,8 @@
.content-textarea-view textarea {
height: 180rpx;
}
-.content-textarea-view textarea,
.content-textarea-view view {
- padding: 10rpx;
+ padding: 12rpx;
}
/**
diff --git a/public/appmini/old/baidu/pages/buy/buy.js b/public/appmini/old/baidu/pages/buy/buy.js
index a111b397e20a4391029fd0fe3b238cc1cb4aac68..c2ee221c420d73a666814373ff31c75600a58eef 100755
--- a/public/appmini/old/baidu/pages/buy/buy.js
+++ b/public/appmini/old/baidu/pages/buy/buy.js
@@ -8,31 +8,25 @@ Page({
payment_list: [],
goods_list: [],
address: null,
- address_id: 0,
+ address_id: null,
total_price: 0,
user_note_value: '',
is_first: 1,
extension_data: [],
payment_id: 0,
common_order_is_booking: 0,
+ common_site_type: 0,
+ extraction_address: [],
// 优惠劵
plugins_coupon_data: null,
plugins_use_coupon_id: 0,
plugins_choice_coupon_value: '选择优惠劵',
- popup_plugins_coupon_status: false,
+ popup_plugins_coupon_status: false
},
onLoad(params) {
- if ((params.data || null) == null || app.get_length(JSON.parse(params.data)) == 0) {
- swan.alert({
- title: '温馨提示',
- content: '订单信息有误',
- buttonText: '确认',
- success: () => {
- swan.navigateBack();
- }
- });
- } else {
+ //params['data'] = '{"buy_type":"goods","goods_id":"1","stock":"1","spec":"[]"}';
+ if ((params.data || null) != null && app.get_length(JSON.parse(params.data)) > 0) {
this.setData({ params: JSON.parse(params.data) });
// 删除地址缓存
@@ -41,25 +35,29 @@ Page({
},
onShow() {
- swan.setNavigationBarTitle({ title: app.data.common_pages_title.buy });
this.init();
this.setData({ is_first: 0 });
},
// 获取数据列表
init() {
+ // 订单参数信息是否正确
+ if (this.data.params == null) {
+ this.setData({
+ data_list_loding_status: 2,
+ data_list_loding_msg: '订单信息有误'
+ });
+ swan.stopPullDownRefresh();
+ return false;
+ }
+
// 本地缓存地址
if (this.data.is_first == 0) {
var cache_address = swan.getStorageSync(app.data.cache_buy_user_address_select_key);
if ((cache_address || null) != null) {
this.setData({
address: cache_address,
- address_id: cache_address.id
- });
- } else {
- this.setData({
- address: null,
- address_id: 0
+ address_id: cache_address.id || null
});
}
}
@@ -93,35 +91,30 @@ Page({
extension_data: data.extension_data || [],
data_list_loding_status: 3,
common_order_is_booking: data.common_order_is_booking || 0,
- plugins_coupon_data: data.plugins_coupon_data || null,
+ common_site_type: data.common_site_type || 0,
+ extraction_address: data.base.extraction_address || [],
+ plugins_coupon_data: data.plugins_coupon_data || null
});
// 优惠劵选择处理
- if ((data.plugins_coupon_data || null) != null)
- {
- if ((data.plugins_coupon_data.coupon_choice || null) != null)
- {
+ if ((data.plugins_coupon_data || null) != null) {
+ if ((data.plugins_coupon_data.coupon_choice || null) != null) {
this.setData({ plugins_choice_coupon_value: data.plugins_coupon_data.coupon_choice.coupon.desc });
} else {
- var coupon_count = ((data.plugins_coupon_data.coupon_list || null) != null) ? data.plugins_coupon_data.coupon_list.length : 0;
- this.setData({ plugins_choice_coupon_value: (coupon_count > 0) ? '可选优惠劵' + coupon_count + '张' : '暂无可用优惠劵' });
+ var coupon_count = (data.plugins_coupon_data.coupon_list || null) != null ? data.plugins_coupon_data.coupon_list.length : 0;
+ this.setData({ plugins_choice_coupon_value: coupon_count > 0 ? '可选优惠劵' + coupon_count + '张' : '暂无可用优惠劵' });
}
}
// 地址
- if (this.data.address == null || this.data.address_id == 0) {
- if ((data.base.address || null) != null) {
- this.setData({
- address: data.base.address,
- address_id: data.base.address.id
- });
-
- swan.setStorage({
- key: app.data.cache_buy_user_address_select_key,
- data: data.base.address
- });
- }
- }
+ this.setData({
+ address: data.base.address || null,
+ address_id: (data.base.address || null) != null && (data.base.address.id || null) != null ? data.base.address.id : null
+ });
+ swan.setStorage({
+ key: app.data.cache_buy_user_address_select_key,
+ data: data.base.address || null
+ });
// 支付方式
this.payment_list_data(data.payment_list);
@@ -131,7 +124,9 @@ Page({
data_list_loding_status: 2,
data_list_loding_msg: res.data.msg
});
- app.showToast(res.data.msg);
+ if (app.is_login_check(res.data)) {
+ app.showToast(res.data.msg);
+ }
}
},
fail: () => {
@@ -167,7 +162,10 @@ Page({
data['coupon_id'] = this.data.plugins_use_coupon_id;
// 数据验证
- var validation = [{ fields: 'address_id', msg: '请选择地址' }];
+ var validation = [];
+ if (this.data.common_site_type == 0 || this.data.common_site_type == 2) {
+ validation.push({ fields: 'address_id', msg: '请选择地址', is_can_zero: 1 });
+ }
if (this.data.common_order_is_booking != 1) {
validation.push({ fields: 'payment_id', msg: '请选择支付方式' });
}
@@ -229,7 +227,7 @@ Page({
// 优惠劵弹层开启
plugins_coupon_open_event(e) {
- this.setData({ popup_plugins_coupon_status: true});
+ this.setData({ popup_plugins_coupon_status: true });
},
// 优惠劵弹层关闭
@@ -243,7 +241,7 @@ Page({
var value = e.currentTarget.dataset.value;
this.setData({
plugins_use_coupon_id: value,
- popup_plugins_coupon_status: false,
+ popup_plugins_coupon_status: false
});
this.init();
},
@@ -252,9 +250,24 @@ Page({
plugins_coupon_not_use_event(e) {
this.setData({
plugins_use_coupon_id: 0,
- popup_plugins_coupon_status: false,
+ popup_plugins_coupon_status: false
});
this.init();
},
+ // 地址选择事件
+ address_event(e) {
+ if (this.data.common_site_type == 0) {
+ swan.navigateTo({
+ url: '/pages/user-address/user-address?is_back=1'
+ });
+ } else if (this.data.common_site_type == 2) {
+ swan.navigateTo({
+ url: '/pages/extraction-address/extraction-address?is_back=1'
+ });
+ } else {
+ app.showToast('当前模式不允许使用地址');
+ }
+ }
+
});
\ No newline at end of file
diff --git a/public/appmini/old/baidu/pages/buy/buy.swan b/public/appmini/old/baidu/pages/buy/buy.swan
index 6bd6b59a3b5ce520f17042eb710ed8ce6e2d8e13..de0d7bdeba65c5df1be466c946735e9aaee4ae1c 100755
--- a/public/appmini/old/baidu/pages/buy/buy.swan
+++ b/public/appmini/old/baidu/pages/buy/buy.swan
@@ -1,125 +1,132 @@
-
-
-
-
-
-
- {{address.name}}
- {{address.tel}}
+
+
+
+
+
+
+
+
+
+
+
+ {{address.alias}}
+ {{address.name}}
+ {{address.tel}}
+
+
+
+ {{address.province_name}}{{address.city_name}}{{address.county_name}}{{address.address}}
+
-
-
- {{address.province_name}}{{address.city_name}}{{address.county_name}}{{address.address}}
+
+ 请选择地址
-
- 请选择地址
-
-
-
-
+
+
-
-
-
-
-
- {{item.title}}
-
- {{spec.type}}:{{spec.value}}
-
-
-
-
- ¥{{item.price}}
-
- ¥{{item.original_price}}
-
- x{{item.stock}}
-
+
+
+
+
+
+ {{item.title}}
+
+ {{spec.type}}:{{spec.value}}
+
+
+
+
+ ¥{{item.price}}
+
+ ¥{{item.original_price}}
+
+ x{{item.stock}}
+
+
-
-
-
-
- {{user_note_value || '留言'}}
-
-
-
-
- 优惠劵
- {{plugins_choice_coupon_value}}
-
+
+
+
+ {{user_note_value || '留言'}}
+
-
-
-
- {{item.name}}
-
- {{item.tips}}
-
+
+
+ 优惠劵
+ {{plugins_choice_coupon_value}}
-
-
-
-
-
-
- {{item.name}}
+
+
+
+ {{item.name}}
+
+ {{item.tips}}
+
-
-
-
-
- 合计:
- ¥{{total_price}}
+
+
+
+
+
+ {{item.name}}
+
+
-
-
+
+
+
+
+ 合计:
+ ¥{{total_price}}
+
+
+
+
-
-
-
-
-
+
+
+
+
-
-
-
\ No newline at end of file
+
+
\ No newline at end of file
diff --git a/public/appmini/old/baidu/pages/extraction-address/extraction-address.css b/public/appmini/old/baidu/pages/extraction-address/extraction-address.css
new file mode 100644
index 0000000000000000000000000000000000000000..1bad1b348f223a2a5eadd13cbc64078619019a3c
--- /dev/null
+++ b/public/appmini/old/baidu/pages/extraction-address/extraction-address.css
@@ -0,0 +1,24 @@
+.item {
+ padding: 10rpx 10rpx 0 10rpx;
+}
+.base, .address, .operation {
+ padding: 20rpx 0;
+}
+.address .item-icon {
+ width: 30rpx;
+ height: 35rpx !important;
+}
+.address-alias {
+ border: 1px solid #d2364c;
+ color: #d2364c;
+ padding: 2rpx 10rpx;
+ border-radius: 6rpx;
+ margin-right: 10rpx;
+}
+.address .text {
+ line-height: 44rpx;
+ width: calc(100% - 40rpx);
+}
+.operation .map-submit {
+ margin-left: 20rpx;
+}
\ No newline at end of file
diff --git a/public/appmini/old/baidu/pages/extraction-address/extraction-address.js b/public/appmini/old/baidu/pages/extraction-address/extraction-address.js
new file mode 100644
index 0000000000000000000000000000000000000000..0ac553eb65d3fc302f3d9f4947c5a660a76a7ee9
--- /dev/null
+++ b/public/appmini/old/baidu/pages/extraction-address/extraction-address.js
@@ -0,0 +1,138 @@
+const app = getApp();
+Page({
+ data: {
+ data_list_loding_status: 1,
+ data_bottom_line_status: false,
+ data_list: [],
+ params: null,
+ is_default: 0
+ },
+
+ onLoad(params) {
+ this.setData({ params: params });
+ },
+
+ onShow() {
+ swan.setNavigationBarTitle({ title: app.data.common_pages_title.extraction_address });
+ this.init();
+ },
+
+ // 初始化
+ init() {
+ var user = app.get_user_cache_info(this, "init");
+ // 用户未绑定用户则转到登录页面
+ if (app.user_is_need_login(user)) {
+ swan.redirectTo({
+ url: "/pages/login/login?event_callback=init"
+ });
+ return false;
+ } else {
+ // 获取数据
+ this.get_data_list();
+ }
+ },
+
+ // 获取数据列表
+ get_data_list() {
+ // 加载loding
+ swan.showLoading({ title: "加载中..." });
+ this.setData({
+ data_list_loding_status: 1
+ });
+
+ // 获取数据
+ swan.request({
+ url: app.get_request_url("extraction", "useraddress"),
+ method: "POST",
+ data: {},
+ dataType: "json",
+ success: res => {
+ swan.hideLoading();
+ swan.stopPullDownRefresh();
+ if (res.data.code == 0) {
+ if (res.data.data.length > 0) {
+ // 获取当前默认地址
+ var is_default = 0;
+ for (var i in res.data.data) {
+ if (res.data.data[i]['is_default'] == 1) {
+ is_default = res.data.data[i]['id'];
+ }
+ }
+
+ // 设置数据
+ this.setData({
+ data_list: res.data.data,
+ is_default: is_default,
+ data_list_loding_status: 3,
+ data_bottom_line_status: true
+ });
+ } else {
+ this.setData({
+ data_list_loding_status: 0
+ });
+ }
+ } else {
+ this.setData({
+ data_list_loding_status: 0
+ });
+ if (app.is_login_check(res.data)) {
+ app.showToast(res.data.msg);
+ }
+ }
+ },
+ fail: () => {
+ swan.hideLoading();
+ swan.stopPullDownRefresh();
+
+ this.setData({
+ data_list_loding_status: 2
+ });
+ app.showToast("服务器请求出错");
+ }
+ });
+ },
+
+ // 下拉刷新
+ onPullDownRefresh() {
+ this.get_data_list();
+ },
+
+ // 地图查看
+ address_map_event(e) {
+ var index = e.currentTarget.dataset.index || 0;
+ var ads = this.data.data_list[index] || null;
+ if (ads == null) {
+ app.showToast("地址有误");
+ return false;
+ }
+
+ var lng = parseFloat(ads.lng || 0);
+ var lat = parseFloat(ads.lat || 0);
+ if (lng <= 0 || lat <= 0) {
+ app.showToast("坐标有误");
+ return false;
+ }
+
+ swan.openLocation({
+ latitude: lat,
+ longitude: lng,
+ scale: 18,
+ name: ads.alias || '',
+ address: (ads.province_name || '') + (ads.city_name || '') + (ads.county_name || '') + (ads.address || '')
+ });
+ },
+
+ // 地址内容事件
+ address_conent_event(e) {
+ var index = e.currentTarget.dataset.index || 0;
+ var is_back = this.data.params.is_back || 0;
+ if (is_back == 1) {
+ swan.setStorage({
+ key: app.data.cache_buy_user_address_select_key,
+ data: this.data.data_list[index]
+ });
+ swan.navigateBack();
+ }
+ }
+
+});
\ No newline at end of file
diff --git a/public/appmini/old/baidu/pages/extraction-address/extraction-address.json b/public/appmini/old/baidu/pages/extraction-address/extraction-address.json
new file mode 100644
index 0000000000000000000000000000000000000000..331ad4f3d98660918818a7657404ac8cb0a6f312
--- /dev/null
+++ b/public/appmini/old/baidu/pages/extraction-address/extraction-address.json
@@ -0,0 +1,3 @@
+{
+ "enablePullDownRefresh": true
+}
\ No newline at end of file
diff --git a/public/appmini/old/baidu/pages/extraction-address/extraction-address.swan b/public/appmini/old/baidu/pages/extraction-address/extraction-address.swan
new file mode 100644
index 0000000000000000000000000000000000000000..bd915fa1b1509efc7b9b845f1bceb876b628d26d
--- /dev/null
+++ b/public/appmini/old/baidu/pages/extraction-address/extraction-address.swan
@@ -0,0 +1,28 @@
+
+
+
+
+
+ {{item.alias}}
+ {{item.name}}
+ {{item.tel}}
+
+
+
+ {{item.province_name}}{{item.city_name}}{{item.county_name}}{{item.address}}
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
\ No newline at end of file
diff --git a/public/appmini/old/baidu/pages/user-address/user-address.css b/public/appmini/old/baidu/pages/user-address/user-address.css
index 52ef9c6445a4e4f8ea9363efc3c223dfcd60d602..38c61d6be1ed15a769932ef58aefa07e30cfdced 100755
--- a/public/appmini/old/baidu/pages/user-address/user-address.css
+++ b/public/appmini/old/baidu/pages/user-address/user-address.css
@@ -5,9 +5,16 @@
padding: 20rpx 0;
}
.address .item-icon {
- width: 35rpx;
+ width: 30rpx;
height: 35rpx !important;
}
+.address-alias {
+ border: 1px solid #d2364c;
+ color: #d2364c;
+ padding: 2rpx 10rpx;
+ border-radius: 6rpx;
+ margin-right: 10rpx;
+}
.address .text {
line-height: 44rpx;
width: calc(100% - 40rpx);
@@ -24,9 +31,6 @@
.operation .delete-submit {
margin-left: 20rpx;
}
-.submit-bottom {
- border-radius: 0 !important;
-}
.page {
padding-bottom: 85rpx;
}
\ No newline at end of file
diff --git a/public/appmini/old/baidu/pages/user-address/user-address.swan b/public/appmini/old/baidu/pages/user-address/user-address.swan
index 79aff22d734058f0c2a5605dbc76e8b0f41402cf..2395dd8959c405d2ee384e4db0f4241c4d2787f8 100755
--- a/public/appmini/old/baidu/pages/user-address/user-address.swan
+++ b/public/appmini/old/baidu/pages/user-address/user-address.swan
@@ -3,6 +3,7 @@
+ {{item.alias}}
{{item.name}}
{{item.tel}}
diff --git a/public/appmini/old/baidu/pages/user-order-detail/user-order-detail.css b/public/appmini/old/baidu/pages/user-order-detail/user-order-detail.css
index a847a2bbe98cadb2e20ab2541f977d7862e26281..a3e7c087bb4d8d465ab896f91e06ad1e0ca1b715 100755
--- a/public/appmini/old/baidu/pages/user-order-detail/user-order-detail.css
+++ b/public/appmini/old/baidu/pages/user-order-detail/user-order-detail.css
@@ -1,3 +1,6 @@
+/*
+ * 地址信息
+ */
.address {
padding: 10rpx;
}
@@ -23,13 +26,23 @@
height: 85rpx;
line-height: 85rpx;
}
+.address-alias {
+ border: 1px solid #d2364c;
+ color: #d2364c;
+ padding: 2rpx 10rpx;
+ border-radius: 6rpx;
+ margin-right: 10rpx;
+}
+/*
+ * 商品信息
+ */
.goods-base {
min-height: 160rpx;
margin-left: 180rpx;
}
-.goods .goods-item:not(:last-child) {
- border-bottom: 1px dashed #efefef;
+.goods .goods-item:last-child {
+ border-bottom: 0;
}
.goods-item {
padding: 20rpx 10rpx;
@@ -50,26 +63,36 @@
right: 0;
bottom: 0;
}
+.order-describe {
+ padding: 20rpx 10rpx;
+}
/*
- * 基础信息
+ * 面板信息
*/
-.detail-list {
- padding: 0 10rpx;
-}
-.detail-list .item {
+.panel-item .panel-title {
+ background: #fff;
+ font-weight: bold;
+ padding: 15rpx;
+ border-bottom: 2px solid #eee;
+ font-size: 34rpx;
+}
+.panel-item .panel-content .item {
padding: 20rpx 0;
}
-.detail-list .item .title {
+.panel-item .panel-content .item:last-child {
+ border: 0;
+}
+.panel-item .panel-content .item .title {
width: 25%;
padding-left: 20rpx;
}
-.detail-list .item .content {
+.panel-item .panel-content .item .content {
width: calc(75% - 50rpx);
padding-left: 20rpx;
min-height: 46rpx;
}
-.detail-list .item view {
+.panel-item .panel-content .item view {
line-height: 46rpx;
}
@@ -84,4 +107,59 @@
}
.extension-list .item .content {
padding-left: 20rpx;
+}
+
+/*
+ * 虚拟销售信息
+ */
+.site-fictitious .panel-content {
+ padding: 0 20rpx;
+}
+.site-fictitious .panel-content .tips-value {
+ color: #f37b1d;
+ background-color: #fff2e9;
+ border-color: #ffebdb;
+ padding: 10rpx;
+ margin-top: 20rpx;
+}
+.site-fictitious .panel-content .left-image {
+ width: 80rpx;
+ height: 80rpx;
+}
+.site-fictitious .panel-content .right-value,
+.site-fictitious .panel-content .right-value .rich-text-value {
+ width: calc(100% - 100rpx);
+}
+.site-fictitious .panel-content .item {
+ position: relative;
+}
+.site-fictitious .panel-content .right-value .rich-text-value {
+ position: absolute;
+ top: 0;
+ right: 0;
+}
+
+/*
+ * 自提信息
+ */
+.site-extraction .panel-content {
+ padding: 20rpx;
+}
+.site-extraction .panel-content .code {
+ background: #5eb95e;
+ color: #fff;
+}
+.site-extraction .panel-content .code,
+.address-map-submit {
+ padding: 1rpx 16rpx;
+ border-radius: 6rpx;
+}
+.site-extraction .panel-content .qrcode {
+ margin-top: 15rpx;
+ width: 300rpx;
+ height: 300rpx;
+}
+.address-map-submit {
+ margin-left: 20rpx;
+ background: #f5f5f5;
}
\ No newline at end of file
diff --git a/public/appmini/old/baidu/pages/user-order-detail/user-order-detail.js b/public/appmini/old/baidu/pages/user-order-detail/user-order-detail.js
index 756ae8f372a2f46c685826c644e8dcb682643178..399f7a550cf6bd763880b54e3158111aa4930672 100755
--- a/public/appmini/old/baidu/pages/user-order-detail/user-order-detail.js
+++ b/public/appmini/old/baidu/pages/user-order-detail/user-order-detail.js
@@ -9,6 +9,7 @@ Page({
detail: null,
detail_list: [],
extension_data: [],
+ site_fictitious: null,
},
onLoad(params) {
@@ -40,29 +41,31 @@ Page({
if (res.data.code == 0) {
var data = res.data.data;
self.setData({
- detail: data,
+ detail: data.data,
detail_list:[
- {name: "订单号", value: data.order_no || ''},
- {name: "状态", value: data.status_name || ''},
- {name: "支付状态", value: data.pay_status_name || ''},
- {name: "单价", value: data.price || ''},
- {name: "总价", value: data.total_price || ''},
- {name: "优惠金额", value: data.preferential_price || ''},
- {name: "增加金额", value: data.increase_price || '' },
- {name: "支付金额", value: data.pay_price || ''},
- {name: "支付方式", value: data.payment_name || ''},
- {name: "快递公司", value: data.express_name || ''},
- {name: "快递单号", value: data.express_number || ''},
- {name: "用户留言", value: data.user_note || ''},
- {name: "创建时间", value: data.add_time || ''},
- {name: "确认时间", value: data.confirm_time || ''},
- {name: "支付时间", value: data.pay_time || ''},
- {name: "发货时间", value: data.delivery_time || ''},
- {name: "收货时间", value: data.collect_time || ''},
- {name: "取消时间", value: data.close_time || ''},
- {name: "关闭时间", value: data.close_time || ''},
+ {name: "订单号", value: data.data.order_no || ''},
+ {name: "订单模式", value: data.data.order_model_name || ''},
+ {name: "状态", value: data.data.status_name || ''},
+ {name: "支付状态", value: data.data.pay_status_name || ''},
+ {name: "单价", value: data.data.price || ''},
+ {name: "总价", value: data.data.total_price || ''},
+ {name: "优惠金额", value: data.data.preferential_price || ''},
+ {name: "增加金额", value: data.data.increase_price || '' },
+ {name: "支付金额", value: data.data.pay_price || ''},
+ {name: "支付方式", value: data.data.payment_name || ''},
+ {name: "快递公司", value: data.data.express_name || ''},
+ {name: "快递单号", value: data.data.express_number || ''},
+ {name: "用户留言", value: data.data.user_note || ''},
+ {name: "创建时间", value: data.data.add_time || ''},
+ {name: "确认时间", value: data.data.confirm_time || ''},
+ {name: "支付时间", value: data.data.pay_time || ''},
+ {name: "发货时间", value: data.data.delivery_time || ''},
+ {name: "收货时间", value: data.data.collect_time || ''},
+ {name: "取消时间", value: data.data.close_time || ''},
+ {name: "关闭时间", value: data.data.close_time || ''},
],
- extension_data: data.extension_data || [],
+ extension_data: data.data.extension_data || [],
+ site_fictitious: data.site_fictitious || null,
data_list_loding_status: 3,
data_bottom_line_status: true,
data_list_loding_msg: ''
@@ -73,7 +76,9 @@ Page({
data_bottom_line_status: false,
data_list_loding_msg: res.data.msg
});
- app.showToast(res.data.msg);
+ if (app.is_login_check(res.data)) {
+ app.showToast(res.data.msg);
+ }
}
},
fail: () => {
@@ -90,6 +95,30 @@ Page({
});
},
+ // 地图查看
+ address_map_event(e) {
+ if ((this.data.detail.address_data || null) == null) {
+ app.showToast("地址有误");
+ return false;
+ }
+
+ var ads = this.data.detail.address_data;
+ var lng = parseFloat(ads.lng || 0);
+ var lat = parseFloat(ads.lat || 0);
+ if (lng <= 0 || lat <= 0) {
+ app.showToast("坐标有误");
+ return false;
+ }
+
+ swan.openLocation({
+ latitude: lat,
+ longitude: lng,
+ scale: 18,
+ name: ads.alias || '',
+ address: (ads.province_name || '') + (ads.city_name || '') + (ads.county_name || '') + (ads.address || '')
+ });
+ },
+
// 下拉刷新
onPullDownRefresh() {
this.init();
diff --git a/public/appmini/old/baidu/pages/user-order-detail/user-order-detail.swan b/public/appmini/old/baidu/pages/user-order-detail/user-order-detail.swan
index 9334f429b65d60ddc8466c91f2bd2f538a86cba0..3c382e90269a01183b15c892cdad51d7722d1492 100755
--- a/public/appmini/old/baidu/pages/user-order-detail/user-order-detail.swan
+++ b/public/appmini/old/baidu/pages/user-order-detail/user-order-detail.swan
@@ -1,23 +1,29 @@
-
+
+
- {{detail.receive_name}}
- {{detail.receive_tel}}
+ {{detail.address_data.alias}}
+ {{detail.address_data.name}}
+ {{detail.address_data.tel}}
- {{detail.receive_province_name}}{{detail.receive_city_name}}{{detail.receive_county_name}}{{detail.receive_address}}
+
+ {{detail.address_data.province_name}}{{detail.address_data.city_name}}{{detail.address_data.county_name}}{{detail.address_data.address}}
+ 查看位置
+
+
-
+
{{item.title}}
-
+
{{spec.type}}:{{spec.value}}
@@ -29,22 +35,60 @@
+ {{detail.describe}}
+
+
+
+
+ {{site_fictitious.title || '密钥信息'}}
+
+
+
+
+
+
+
+
+
+
+ 未配置数据
+
+
+
+
+
+
+
-
-
- {{item.name}}
- {{item.value}}
+
+ 基础数据
+
+
+ {{item.name}}
+ {{item.value}}
+
-
-
+
+ 扩展数据
+
+
{{item.name}}
{{item.tips}}
+
diff --git a/public/appmini/old/baidu/pages/user-order/user-order.css b/public/appmini/old/baidu/pages/user-order/user-order.css
index b88114d6260e8d2fe0d33666874954c5e9d8f61c..4ec5272035432bcf2bce5333cece93a477154e7b 100755
--- a/public/appmini/old/baidu/pages/user-order/user-order.css
+++ b/public/appmini/old/baidu/pages/user-order/user-order.css
@@ -24,8 +24,8 @@
.goods-title {
line-height: 36rpx;
}
-.list-item .goods-item:not(:last-child) {
- border-bottom: 1px dashed #efefef;
+.list-item .goods-item:last-child {
+ border-bottom: 0;
}
.goods-item {
padding: 20rpx 10rpx;
diff --git a/public/appmini/old/baidu/pages/user-order/user-order.swan b/public/appmini/old/baidu/pages/user-order/user-order.swan
index 5359c8c136c359146752abf008ffc2c2daa36397..241c4c6521e0a9a52ccbb298495937fe09e9ce1d 100755
--- a/public/appmini/old/baidu/pages/user-order/user-order.swan
+++ b/public/appmini/old/baidu/pages/user-order/user-order.swan
@@ -14,7 +14,7 @@
{{item.add_time}}
{{item.status_name}}
-
+
@@ -34,10 +34,10 @@
{{item.describe}}
-
+
-
+
@@ -55,7 +55,7 @@
-
+
diff --git a/public/appmini/old/weixin/pages/extraction-address/extraction-address.js b/public/appmini/old/weixin/pages/extraction-address/extraction-address.js
index e66c073d2d8ac10fbac6bda450568f63f1dce90a..fcee24d3d29f6ff735f010236f15dc26ec4efbfe 100644
--- a/public/appmini/old/weixin/pages/extraction-address/extraction-address.js
+++ b/public/appmini/old/weixin/pages/extraction-address/extraction-address.js
@@ -107,8 +107,8 @@ Page({
return false;
}
- var lng = parseFloat(ads.lng_gcj || 0);
- var lat = parseFloat(ads.lat_gcj || 0);
+ var lng = parseFloat(ads.lng || 0);
+ var lat = parseFloat(ads.lat || 0);
if (lng <= 0 || lat <= 0) {
app.showToast("坐标有误");
return false;
diff --git a/public/appmini/old/weixin/pages/user-order-detail/user-order-detail.js b/public/appmini/old/weixin/pages/user-order-detail/user-order-detail.js
index f1bc2873a06a457bdf7555f18230e02c96424609..d02891945a1a3cbc6c52fd0d12f3530958a19e94 100755
--- a/public/appmini/old/weixin/pages/user-order-detail/user-order-detail.js
+++ b/public/appmini/old/weixin/pages/user-order-detail/user-order-detail.js
@@ -105,8 +105,8 @@ Page({
}
var ads = this.data.detail.address_data;
- var lng = parseFloat(ads.lng_gcj || 0);
- var lat = parseFloat(ads.lat_gcj || 0);
+ var lng = parseFloat(ads.lng || 0);
+ var lat = parseFloat(ads.lat || 0);
if (lng <= 0 || lat <= 0) {
app.showToast("坐标有误");
return false;
diff --git a/public/appmini/old/weixin/pages/user-order-detail/user-order-detail.wxml b/public/appmini/old/weixin/pages/user-order-detail/user-order-detail.wxml
index e4f9d9e2d8b0a145310797cfb1b344abb8858bf8..bbb378d25748074e4503b809789387ecbb05e595 100755
--- a/public/appmini/old/weixin/pages/user-order-detail/user-order-detail.wxml
+++ b/public/appmini/old/weixin/pages/user-order-detail/user-order-detail.wxml
@@ -2,6 +2,7 @@
+ {{detail.address_data.alias}}
{{detail.address_data.name}}
{{detail.address_data.tel}}
@@ -9,7 +10,7 @@
{{detail.address_data.province_name}}{{detail.address_data.city_name}}{{detail.address_data.county_name}}{{detail.address_data.address}}
- 查看位置
+ 查看位置
diff --git a/public/appmini/old/weixin/pages/user-order-detail/user-order-detail.wxss b/public/appmini/old/weixin/pages/user-order-detail/user-order-detail.wxss
index a6560e6775b418df2a30f915060203e491afece0..362beadfb131a2bace04f44fe1669b4085c368bc 100755
--- a/public/appmini/old/weixin/pages/user-order-detail/user-order-detail.wxss
+++ b/public/appmini/old/weixin/pages/user-order-detail/user-order-detail.wxss
@@ -26,6 +26,13 @@
height: 85rpx;
line-height: 85rpx;
}
+.address-alias {
+ border: 1px solid #d2364c;
+ color: #d2364c;
+ padding: 2rpx 10rpx;
+ border-radius: 6rpx;
+ margin-right: 10rpx;
+}
/*
* 商品信息