|
@@ -136,12 +136,8 @@
|
|
|
this.userInfo = uni.getStorageSync("userInfo");
|
|
|
this.goodsInfo = uni.getStorageSync("goodsDetail");
|
|
|
this.jsMoney()
|
|
|
- //this.openGoodsDetailById()
|
|
|
- /* var a=[
|
|
|
- {name:1},{name:2}
|
|
|
- ]
|
|
|
- var b=a.map(i=>i.name);
|
|
|
- console.log(b) */
|
|
|
+
|
|
|
+
|
|
|
this.$http('openreservation/getInfo', {
|
|
|
lat: '',
|
|
|
lng: '',
|
|
@@ -149,18 +145,10 @@
|
|
|
this.mydata = res.data
|
|
|
this.customerName = this.mydata.customerInfo.customerName
|
|
|
this.mobilePhone = this.mydata.customerInfo.mobilePhone
|
|
|
- this.shopInfo = this.mydata.shopInfo
|
|
|
- this.shopID=this.shopInfo.id
|
|
|
- uni.setStorage({
|
|
|
- key: 'yyshopInfo',
|
|
|
- data:this.shopInfo,
|
|
|
- success: function () {
|
|
|
-
|
|
|
- }
|
|
|
- });
|
|
|
-
|
|
|
- console.log('默认服务门店-=',this.shopInfo)
|
|
|
- })
|
|
|
+
|
|
|
+ }),
|
|
|
+
|
|
|
+ this.getqueryShopList()
|
|
|
|
|
|
this.$http('openSheetMetalSprayPaint/queryPayType', {
|
|
|
|
|
@@ -190,6 +178,38 @@
|
|
|
console.log('服务门店选择过-=',this.shopInfo)
|
|
|
},
|
|
|
methods: {
|
|
|
+ getqueryShopList() {
|
|
|
+ uni.showLoading({
|
|
|
+ title: '加载中'
|
|
|
+ })
|
|
|
+ this.$http('openSheetMetalSprayPaint/queryBpshopList', {
|
|
|
+
|
|
|
+ }, 'GET').then(res => {
|
|
|
+ uni.hideLoading();
|
|
|
+ let list = res.data
|
|
|
+ //console.log('list+=', this.queryShopList);
|
|
|
+ list.forEach((item)=>{
|
|
|
+ if (item.thedefault=="true") {
|
|
|
+ this.shopInfo = item
|
|
|
+ this.shopInfo.id = this.shopInfo.shopId
|
|
|
+ this.shopID=this.shopInfo.id
|
|
|
+ uni.setStorage({
|
|
|
+ key: 'yyshopInfo',
|
|
|
+ data:this.shopInfo,
|
|
|
+ success: function () {
|
|
|
+
|
|
|
+ }
|
|
|
+ });
|
|
|
+
|
|
|
+ console.log('item-=',item)
|
|
|
+ }
|
|
|
+ })
|
|
|
+
|
|
|
+
|
|
|
+ })
|
|
|
+
|
|
|
+ console.log('默认服务门店-=',this.shopInfo)
|
|
|
+ },
|
|
|
changeTime(data){
|
|
|
console.log(data)
|
|
|
this.billDate=data
|
|
@@ -243,7 +263,12 @@
|
|
|
title: '提交成功',
|
|
|
icon: 'none',
|
|
|
duration: 2000
|
|
|
- });
|
|
|
+ });
|
|
|
+ if (this.orderData.sheetType==5){
|
|
|
+ uni.navigateTo({
|
|
|
+ url: "../user/myOrder/paintOrderDetail?id=" +that.orderData.id
|
|
|
+ })
|
|
|
+ }
|
|
|
}
|
|
|
|
|
|
} else {
|