完成企业合作、工程安装、联保页面
This commit is contained in:
parent
42495977d6
commit
51ed3b1bd3
|
@ -41,40 +41,6 @@ export default {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
project: {
|
|
||||||
project: {
|
|
||||||
url: "/project/applyinfo",
|
|
||||||
},
|
|
||||||
projectList: {
|
|
||||||
url: "/project/alllist",
|
|
||||||
},
|
|
||||||
business: {
|
|
||||||
url: "/project/applyinfob",
|
|
||||||
},
|
|
||||||
businessList: {
|
|
||||||
url: "/project/alllistb",
|
|
||||||
},
|
|
||||||
afterMarket: {
|
|
||||||
url: "/project/applyguarantee"
|
|
||||||
},
|
|
||||||
afterMarketList: {
|
|
||||||
url: "/project/allguaranteelist"
|
|
||||||
},
|
|
||||||
distribution: {
|
|
||||||
config: {
|
|
||||||
url: "/index/getdistributionmoney"
|
|
||||||
},
|
|
||||||
carType: {
|
|
||||||
url: "/index/getallcar"
|
|
||||||
},
|
|
||||||
submit: {
|
|
||||||
url: "/project/distribution"
|
|
||||||
},
|
|
||||||
pay: {
|
|
||||||
url: "/wxpay/payorderd"
|
|
||||||
}
|
|
||||||
}
|
|
||||||
},
|
|
||||||
service: {
|
service: {
|
||||||
insurance: {
|
insurance: {
|
||||||
url: "/index/getyiwai",
|
url: "/index/getyiwai",
|
||||||
|
@ -94,6 +60,41 @@ export default {
|
||||||
goodsDetail: {
|
goodsDetail: {
|
||||||
url: "/index/goodsinfobyid",
|
url: "/index/goodsinfobyid",
|
||||||
showLoading: true,
|
showLoading: true,
|
||||||
|
},
|
||||||
|
project: {
|
||||||
|
url: "/project/applyinfo",
|
||||||
|
showLoading: true,
|
||||||
|
},
|
||||||
|
business: {
|
||||||
|
url: "/project/applyinfob",
|
||||||
|
showLoading: true,
|
||||||
|
},
|
||||||
|
afterMarket: {
|
||||||
|
url: "/project/applyguarantee",
|
||||||
|
showLoading: true,
|
||||||
|
},
|
||||||
|
distribution: {
|
||||||
|
config: {
|
||||||
|
url: "/index/getdistributionmoney"
|
||||||
|
},
|
||||||
|
carType: {
|
||||||
|
url: "/index/getallcar"
|
||||||
|
},
|
||||||
|
submit: {
|
||||||
|
url: "/project/distribution"
|
||||||
|
},
|
||||||
|
pay: {
|
||||||
|
url: "/wxpay/payorderd"
|
||||||
|
}
|
||||||
|
},
|
||||||
|
projectList: {
|
||||||
|
url: "/project/alllist",
|
||||||
|
},
|
||||||
|
businessList: {
|
||||||
|
url: "/project/alllistb",
|
||||||
|
},
|
||||||
|
afterMarketList: {
|
||||||
|
url: "/project/allguaranteelist"
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
order: {
|
order: {
|
||||||
|
|
|
@ -2,6 +2,9 @@ import Vue from "vue"
|
||||||
let prototype = Vue.prototype;
|
let prototype = Vue.prototype;
|
||||||
|
|
||||||
export default {
|
export default {
|
||||||
|
/**
|
||||||
|
* 保险价格
|
||||||
|
*/
|
||||||
getInsurancePrice() {
|
getInsurancePrice() {
|
||||||
return new Promise((resolve, reject) => {
|
return new Promise((resolve, reject) => {
|
||||||
prototype.$request({
|
prototype.$request({
|
||||||
|
@ -14,6 +17,9 @@ export default {
|
||||||
}).catch(e => { });
|
}).catch(e => { });
|
||||||
});
|
});
|
||||||
},
|
},
|
||||||
|
/**
|
||||||
|
* 服务详情
|
||||||
|
*/
|
||||||
getServiceDetail(id) {
|
getServiceDetail(id) {
|
||||||
return new Promise((resolve, reject) => {
|
return new Promise((resolve, reject) => {
|
||||||
prototype.$request({
|
prototype.$request({
|
||||||
|
@ -25,9 +31,56 @@ export default {
|
||||||
if (response.code == 1) {
|
if (response.code == 1) {
|
||||||
return resolve(response.data);
|
return resolve(response.data);
|
||||||
}
|
}
|
||||||
|
|
||||||
return reject(response.msg);
|
return reject(response.msg);
|
||||||
}).catch(e => { });
|
}).catch(e => { });
|
||||||
})
|
})
|
||||||
}
|
},
|
||||||
|
/**
|
||||||
|
* 工程提交
|
||||||
|
*/
|
||||||
|
projectApply(data) {
|
||||||
|
return new Promise((resolve, reject) => {
|
||||||
|
prototype.$request({
|
||||||
|
api: "service.project",
|
||||||
|
data: data
|
||||||
|
}).then(response => {
|
||||||
|
if (response.code == 1) {
|
||||||
|
return resolve(response.msg)
|
||||||
|
}
|
||||||
|
return reject(response.msg);
|
||||||
|
}).catch(e => { });
|
||||||
|
});
|
||||||
|
},
|
||||||
|
/**
|
||||||
|
* 企业提交
|
||||||
|
*/
|
||||||
|
businessApply(data) {
|
||||||
|
return new Promise((resolve, reject) => {
|
||||||
|
prototype.$request({
|
||||||
|
api: "service.business",
|
||||||
|
data: data
|
||||||
|
}).then(response => {
|
||||||
|
if (response.code == 1) {
|
||||||
|
return resolve(response.msg)
|
||||||
|
}
|
||||||
|
return reject(response.msg);
|
||||||
|
}).catch(e => { });
|
||||||
|
});
|
||||||
|
},
|
||||||
|
/**
|
||||||
|
* 联保提交
|
||||||
|
*/
|
||||||
|
afterMarketApply(data) {
|
||||||
|
return new Promise((resolve, reject) => {
|
||||||
|
prototype.$request({
|
||||||
|
api: "service.afterMarket",
|
||||||
|
data: data
|
||||||
|
}).then(response => {
|
||||||
|
if (response.code == 1) {
|
||||||
|
return resolve(response.msg)
|
||||||
|
}
|
||||||
|
return reject(response.msg);
|
||||||
|
}).catch(e => { });
|
||||||
|
});
|
||||||
|
},
|
||||||
}
|
}
|
||||||
|
|
|
@ -9,12 +9,7 @@
|
||||||
<text>品牌</text>
|
<text>品牌</text>
|
||||||
</view>
|
</view>
|
||||||
<view class="input-box">
|
<view class="input-box">
|
||||||
<input
|
<input class="input" v-model="brand" placeholder="请输入贵公司品牌" placeholder-class="placeholder-style-3" />
|
||||||
class="input"
|
|
||||||
v-model="brand"
|
|
||||||
placeholder="请输入贵公司品牌"
|
|
||||||
placeholder-class="placeholder-style-3"
|
|
||||||
/>
|
|
||||||
</view>
|
</view>
|
||||||
</view>
|
</view>
|
||||||
<view class="input-item">
|
<view class="input-item">
|
||||||
|
@ -66,7 +61,7 @@
|
||||||
</view>
|
</view>
|
||||||
</view>
|
</view>
|
||||||
<view class="common-save-form-btn">
|
<view class="common-save-form-btn">
|
||||||
<view class="btn" @click="save">保存</view>
|
<view class="btn" @click="submit">提交</view>
|
||||||
</view>
|
</view>
|
||||||
</app-layout>
|
</app-layout>
|
||||||
</template>
|
</template>
|
||||||
|
@ -94,8 +89,23 @@ export default {
|
||||||
onReachBottom() {},
|
onReachBottom() {},
|
||||||
onPullDownRefresh() {},
|
onPullDownRefresh() {},
|
||||||
methods: {
|
methods: {
|
||||||
save() {
|
submit() {
|
||||||
console.log("保存");
|
this.$models.service
|
||||||
|
.afterMarketApply({
|
||||||
|
brand: this.brand,
|
||||||
|
goods: this.projectType,
|
||||||
|
name: this.name,
|
||||||
|
mobile: this.mobile,
|
||||||
|
desc: this.content,
|
||||||
|
})
|
||||||
|
.then((msg) => {
|
||||||
|
this.$utils.toast(msg, { icon: "success" }).then(() => {
|
||||||
|
this.$utils.toPage("/pages/order/order", {}, "switch");
|
||||||
|
});
|
||||||
|
})
|
||||||
|
.catch((e) => {
|
||||||
|
this.$utils.toast(e);
|
||||||
|
});
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
};
|
};
|
||||||
|
|
|
@ -53,7 +53,7 @@
|
||||||
</view>
|
</view>
|
||||||
</view>
|
</view>
|
||||||
<view class="common-save-form-btn">
|
<view class="common-save-form-btn">
|
||||||
<view class="btn" @click="save">保存</view>
|
<view class="btn" @click="submit">提交</view>
|
||||||
</view>
|
</view>
|
||||||
</app-layout>
|
</app-layout>
|
||||||
</template>
|
</template>
|
||||||
|
@ -80,8 +80,22 @@ export default {
|
||||||
onReachBottom() {},
|
onReachBottom() {},
|
||||||
onPullDownRefresh() {},
|
onPullDownRefresh() {},
|
||||||
methods: {
|
methods: {
|
||||||
save() {
|
submit() {
|
||||||
console.log("保存");
|
this.$models.service
|
||||||
|
.businessApply({
|
||||||
|
brand: this.brand,
|
||||||
|
name: this.name,
|
||||||
|
mobile: this.mobile,
|
||||||
|
desc: this.content,
|
||||||
|
})
|
||||||
|
.then((msg) => {
|
||||||
|
this.$utils.toast(msg, { icon: "success" }).then(() => {
|
||||||
|
this.$utils.toPage("/pages/order/order", {}, "switch");
|
||||||
|
});
|
||||||
|
})
|
||||||
|
.catch((e) => {
|
||||||
|
this.$utils.toast(e);
|
||||||
|
});
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
};
|
};
|
||||||
|
|
|
@ -89,7 +89,7 @@
|
||||||
</view>
|
</view>
|
||||||
</view>
|
</view>
|
||||||
<view class="common-save-form-btn">
|
<view class="common-save-form-btn">
|
||||||
<view class="btn" @click="save">保存</view>
|
<view class="btn" @click="submit">提交</view>
|
||||||
</view>
|
</view>
|
||||||
</app-layout>
|
</app-layout>
|
||||||
</template>
|
</template>
|
||||||
|
@ -124,8 +124,25 @@ export default {
|
||||||
changeNumber(e) {
|
changeNumber(e) {
|
||||||
this.number = e.value;
|
this.number = e.value;
|
||||||
},
|
},
|
||||||
save() {
|
submit() {
|
||||||
console.log("保存");
|
this.$models.service
|
||||||
|
.projectApply({
|
||||||
|
types: this.projectType,
|
||||||
|
goods: this.productType,
|
||||||
|
name: this.name,
|
||||||
|
mobile: this.mobile,
|
||||||
|
count: this.number,
|
||||||
|
carry: this.needCarry,
|
||||||
|
desc: this.content,
|
||||||
|
})
|
||||||
|
.then((msg) => {
|
||||||
|
this.$utils.toast(msg, { icon: "success" }).then(() => {
|
||||||
|
this.$utils.toPage("/pages/order/order", {}, "switch");
|
||||||
|
});
|
||||||
|
})
|
||||||
|
.catch((e) => {
|
||||||
|
this.$utils.toast(e);
|
||||||
|
});
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
};
|
};
|
||||||
|
@ -165,4 +182,9 @@ export default {
|
||||||
.count-style {
|
.count-style {
|
||||||
justify-content: space-between;
|
justify-content: space-between;
|
||||||
}
|
}
|
||||||
|
.common-save-form-btn {
|
||||||
|
.btn {
|
||||||
|
background-color: #ff7551;
|
||||||
|
}
|
||||||
|
}
|
||||||
</style>
|
</style>
|
Loading…
Reference in New Issue