diff --git a/pages/pages_zhentou/form/form.vue b/pages/pages_zhentou/form/form.vue
index 2381388..7d17bef 100644
--- a/pages/pages_zhentou/form/form.vue
+++ b/pages/pages_zhentou/form/form.vue
@@ -159,6 +159,7 @@
export default {
data() {
return {
+ phoneNumber:'',
imgPrefix: getApp().globalData.imgPrefix,
isShowLink:false,
fontsize: 12,
@@ -279,38 +280,38 @@
// 枕头软硬度
posData: [{
text: '偏硬',
- value: '1'
+ value: 1
}, {
text: '适中',
- value: '2'
+ value: 2
}, {
text: '偏软',
- value: '3'
+ value: 3
}],
// 枕头材质
matData: [{
text: '羽丝绒枕',
- value: '1'
+ value: 1
},
{
text: '草本植物枕(荞麦、决明子等)',
- value: '2'
+ value: 2
},
{
text: '乳胶枕',
- value: '3'
+ value: 3
},
{
text: '慢回弹记忆枕',
- value: '4'
+ value: 4
},
{
text: '软管枕',
- value: '5'
+ value: 5
},
{
text: '其他',
- value: '6'
+ value: 6
},
],
cerData: [{
@@ -335,9 +336,8 @@
}
},
onShow(){
- console.log(getApp().globalData)
},
- onLoad() {
+ onLoad(options) {
// let srceenNunber=15; //因设计图是1920所有把设计图分为19.2份,所以html字体大小为100px
let that = this;
@@ -365,9 +365,65 @@
};
// console.log(this.a)
this.getData()
+ console.log(options)
+ if(options.phone){
+ this.phoneNumber = options.phone
+ this.getInfo()
+ }
},
methods: {
+ // 获取表单信息
+ getInfo(){
+ uni.request({
+ // this.phoneNumber
+ url:getApp().globalData.baseUrl + '/blade-desk/custom-made-info/get-newest?phone=13214521014' ,
+ method:'GET',
+ header:{
+ 'Blade-Auth': 'bearer ' + uni.getStorageSync('token')
+ },
+ success:(res) =>{
+ console.log(res)
+ if(res.data.code == 200){
+ this.valiFormData = {
+ username:res.data.data.username == '-1' ? '' : res.data.data.username,
+ ageRange:res.data.data.ageRange == '-1' ? '' : res.data.data.ageRange,
+ height:res.data.data.height == '-1' ? '' : res.data.data.height,
+ neckLength:res.data.data.neckLength == '-1' ? '' : res.data.data.neckLength,
+ neckShoulderWidth:res.data.data.neckShoulderWidth == '-1' ? '' : res.data.data.neckShoulderWidth,
+ pillowHardness:res.data.data.pillowHardness == '-1' ? '' : res.data.data.pillowHardness,
+ pillowMaterial:res.data.data.pillowMaterial == '-1' ? '' : res.data.data.pillowMaterial,
+ sleepingPosture:res.data.data.sleepingPosture == '-1' ? '' : res.data.data.sleepingPosture,
+ status:res.data.data.status == '-1' ? '' : res.data.data.status,
+ weight:res.data.data.weight == '-1' ? '' : res.data.data.weight,
+ address:res.data.data.detail == '-1' ? '' : res.data.data.detail,
+ sleepLength:res.data.data.sleepLength == '-1' ? '' : res.data.data.sleepLength,
+ cervicalVertebra:res.data.data.cervicalVertebra == '-1' ? '' : res.data.data.cervicalVertebra,
+ otherNeed:res.data.data.otherNeed == '-1' ? '' : res.data.data.otherNeed,
+ phone:res.data.data.phone == '-1' ? '' : res.data.data.phone
+ }
+ this.province = res.data.data.province == '-1' ? '' :res.data.data.province;
+ this.city = res.data.data.city == '-1' ? '' :res.data.data.city;
+ this.district = res.data.data.district == '-1' ? '' :res.data.data.district;
+ // this.getCurrentArea(this.province)
+ }
+ }
+ })
+ },
+ // getCurrentArea(value){
+ // this.allCityData.map((item,index) =>{
+ // if(item.province == value){
+ // this.multiIndex[0] = index
+ // item.citys.map((item1,index1) =>{
+ // this.locationArr[1].push(item.city);
+ // if(item1.city == this.city){
+
+ // }
+ // })
+
+ // }
+ // })
+ // },
toggle(type) {
this.$refs.popup.open(type)
},
diff --git a/pages/pages_zhentou/order/checkOrder.vue b/pages/pages_zhentou/order/checkOrder.vue
index 833435c..eb1867e 100644
--- a/pages/pages_zhentou/order/checkOrder.vue
+++ b/pages/pages_zhentou/order/checkOrder.vue
@@ -4,28 +4,28 @@
壹人壹枕 待付款 待发货 待收货 已完成 已取消 待付款 待发货 待收货 已完成 已取消 易旅家居壹人壹枕枕头科学化定制 {{orderData.goodsName}}
- 共1件
+ 共{{orderData.goodsNum}}件
¥699.0
+ style="font-size: 28rpx;color: #333;">{{orderData.goodsPrice}}
实付款 ¥699.0
订单信息
下单人: - yuky + {{orderData.buyerName}}
订单编号: - 230415-48478941514632 + {{orderData.orderNo}}
-+
支付时间: - 2023/8/21 15:33 + {{orderData.paymentTime}}
-+
收货时间: - 2023/8/21 15:33 + {{orderData.transactionTime}}
查看物流
-确认收货
-取消订单
-立即支付
-完善定制信息
-删除订单
-再次定制
+查看物流
+确认收货
+取消订单
+立即支付
+ +完善定制信息
+删除订单
+再次定制