|
@@ -2,7 +2,6 @@
|
|
|
<view class="save-order-box iPhone-bottom flex-common-css box-border-box">
|
|
<view class="save-order-box iPhone-bottom flex-common-css box-border-box">
|
|
|
<view class="bg-box"></view>
|
|
<view class="bg-box"></view>
|
|
|
<Nav title='提交订单' bgckgroundBox='transparent'></Nav>
|
|
<Nav title='提交订单' bgckgroundBox='transparent'></Nav>
|
|
|
-
|
|
|
|
|
<view class="scroll-view-css box-border-box p-24">
|
|
<view class="scroll-view-css box-border-box p-24">
|
|
|
<view class="box-card box-border-box mb-20 bgc-f">
|
|
<view class="box-card box-border-box mb-20 bgc-f">
|
|
|
<view class="box-input align-items-center box-border-box p-b-20 mb-20">
|
|
<view class="box-input align-items-center box-border-box p-b-20 mb-20">
|
|
@@ -12,7 +11,6 @@
|
|
|
<view class="box-input align-items-center box-border-box p-b-20 mb-20">
|
|
<view class="box-input align-items-center box-border-box p-b-20 mb-20">
|
|
|
<view class="fs-28 fw-600 w158">手机号</view>
|
|
<view class="fs-28 fw-600 w158">手机号</view>
|
|
|
<input v-model="fromData.phone" type="number" placeholder="请输入手机号">
|
|
<input v-model="fromData.phone" type="number" placeholder="请输入手机号">
|
|
|
-
|
|
|
|
|
</view>
|
|
</view>
|
|
|
<view class="box-input align-items-center box-border-box p-b-20 mb-20">
|
|
<view class="box-input align-items-center box-border-box p-b-20 mb-20">
|
|
|
<view class="fs-28 fw-600 w158">验证码</view>
|
|
<view class="fs-28 fw-600 w158">验证码</view>
|
|
@@ -24,7 +22,6 @@
|
|
|
<input v-model="fromData.address" type="text" placeholder="请输入联系地址(选填)">
|
|
<input v-model="fromData.address" type="text" placeholder="请输入联系地址(选填)">
|
|
|
</view>
|
|
</view>
|
|
|
</view>
|
|
</view>
|
|
|
-
|
|
|
|
|
<view class="box-card box-border-box mb-20 bgc-f">
|
|
<view class="box-card box-border-box mb-20 bgc-f">
|
|
|
<view class="box-top box-border-box flex-justify-space">
|
|
<view class="box-top box-border-box flex-justify-space">
|
|
|
<view class="box-left display-flex">
|
|
<view class="box-left display-flex">
|
|
@@ -45,12 +42,10 @@
|
|
|
<span class="fs-44 fc-0 fw-b">{{goodsData.deposit||'0'}}</span>
|
|
<span class="fs-44 fc-0 fw-b">{{goodsData.deposit||'0'}}</span>
|
|
|
</view>
|
|
</view>
|
|
|
</view>
|
|
</view>
|
|
|
-
|
|
|
|
|
<view class="box-card box-border-box mb-20 bgc-f flex-justify-space">
|
|
<view class="box-card box-border-box mb-20 bgc-f flex-justify-space">
|
|
|
<view class="fs-28 fw-600 w158">备注</view>
|
|
<view class="fs-28 fw-600 w158">备注</view>
|
|
|
<input v-model="fromData.note" class="text-align-right" type="text" placeholder="请填写你的备注">
|
|
<input v-model="fromData.note" class="text-align-right" type="text" placeholder="请填写你的备注">
|
|
|
</view>
|
|
</view>
|
|
|
-
|
|
|
|
|
<view class="box-card box-border-box mb-20 bgc-f flex-justify-space">
|
|
<view class="box-card box-border-box mb-20 bgc-f flex-justify-space">
|
|
|
<view class="fs-28 fw-600 w158">支付方式</view>
|
|
<view class="fs-28 fw-600 w158">支付方式</view>
|
|
|
<view class="wx-box display-flex">
|
|
<view class="wx-box display-flex">
|
|
@@ -59,7 +54,6 @@
|
|
|
</view>
|
|
</view>
|
|
|
</view>
|
|
</view>
|
|
|
</view>
|
|
</view>
|
|
|
-
|
|
|
|
|
<view class="bottom-box box-border-box p-24">
|
|
<view class="bottom-box box-border-box p-24">
|
|
|
<view class="flex-justify-space">
|
|
<view class="flex-justify-space">
|
|
|
<view class="align-items-flex-end box-1">
|
|
<view class="align-items-flex-end box-1">
|
|
@@ -78,7 +72,8 @@
|
|
|
} from '@/api/common.js';
|
|
} from '@/api/common.js';
|
|
|
import {
|
|
import {
|
|
|
groupPay,
|
|
groupPay,
|
|
|
- groupCreate
|
|
|
|
|
|
|
+ groupCreate,
|
|
|
|
|
+ groupOrderFoster
|
|
|
} from '@/api/groupOrder.js';
|
|
} from '@/api/groupOrder.js';
|
|
|
import tools from "@/service/tools";
|
|
import tools from "@/service/tools";
|
|
|
|
|
|
|
@@ -87,7 +82,6 @@
|
|
|
return {
|
|
return {
|
|
|
isCode: false,
|
|
isCode: false,
|
|
|
codeText: '获取验证码',
|
|
codeText: '获取验证码',
|
|
|
-
|
|
|
|
|
fromData: {
|
|
fromData: {
|
|
|
name: '',
|
|
name: '',
|
|
|
id: '',
|
|
id: '',
|
|
@@ -107,15 +101,26 @@
|
|
|
let obj = JSON.parse(decodeURIComponent(e.goodsData));
|
|
let obj = JSON.parse(decodeURIComponent(e.goodsData));
|
|
|
this.goodsData = obj;
|
|
this.goodsData = obj;
|
|
|
this.fromData.id = obj.id;
|
|
this.fromData.id = obj.id;
|
|
|
- console.log(this.goodsData, '*********');
|
|
|
|
|
}
|
|
}
|
|
|
},
|
|
},
|
|
|
|
|
+ mounted() {
|
|
|
|
|
+ this.getfromData()
|
|
|
|
|
+ },
|
|
|
methods: {
|
|
methods: {
|
|
|
|
|
+ getfromData() {
|
|
|
|
|
+ groupOrderFoster().then((res) => {
|
|
|
|
|
+ if (res.code == 1) {
|
|
|
|
|
+ console.log(res);
|
|
|
|
|
+ this.fromData.address = res.data.address
|
|
|
|
|
+ this.fromData.name = res.data.name
|
|
|
|
|
+ this.fromData.phone = res.data.phone
|
|
|
|
|
+ }
|
|
|
|
|
+ })
|
|
|
|
|
+ },
|
|
|
getCode() {
|
|
getCode() {
|
|
|
if (!this.fromData.phone) {
|
|
if (!this.fromData.phone) {
|
|
|
return tools.error('请输入手机号')
|
|
return tools.error('请输入手机号')
|
|
|
}
|
|
}
|
|
|
-
|
|
|
|
|
if (this.isCode) {
|
|
if (this.isCode) {
|
|
|
return
|
|
return
|
|
|
}
|
|
}
|
|
@@ -168,7 +173,7 @@
|
|
|
uni.switchTab({
|
|
uni.switchTab({
|
|
|
url: "/pages/order/index"
|
|
url: "/pages/order/index"
|
|
|
})
|
|
})
|
|
|
- }, 1000)
|
|
|
|
|
|
|
+ }, 1000)
|
|
|
},
|
|
},
|
|
|
fail: (err) => {
|
|
fail: (err) => {
|
|
|
this.isAJAX = false;
|
|
this.isAJAX = false;
|