Browse Source

对接登录

master
前端-胡立永 1 day ago
parent
commit
8169b80ea6
4 changed files with 131 additions and 87 deletions
  1. +9
    -1
      api/api.js
  2. +91
    -84
      pages/index/clearanceService.vue
  3. +28
    -0
      pages_order/auth/customsClearApply.vue
  4. +3
    -2
      pages_order/order/offerOrBillLading.vue

+ 9
- 1
api/api.js View File

@ -92,6 +92,13 @@ const config = {
limit : 1500, limit : 1500,
showLoading: true, showLoading: true,
}, },
// 清关申请
myCustoms: {
url: '/product/myCustoms',
method: 'POST',
limit : 1500,
showLoading: true,
},
// 产品报价 // 产品报价
addProduct: { addProduct: {
url: '/product/addProduct', url: '/product/addProduct',
@ -182,7 +189,7 @@ const config = {
url: '/index/alprice', url: '/index/alprice',
method: 'POST', method: 'POST',
}, },
// 我的头像昵称,平台客户电话等信息
// 获取个人信息
getUserInfo: { getUserInfo: {
url: '/index/index', url: '/index/index',
method: 'POST', method: 'POST',
@ -197,6 +204,7 @@ const config = {
myOrderlist: { myOrderlist: {
url: '/product/myOrderlist', url: '/product/myOrderlist',
method: 'GET', method: 'GET',
auth : true,
}, },
// 采购商根据订单id查询订单信息 // 采购商根据订单id查询订单信息
getMyOrderInfo: { getMyOrderInfo: {


+ 91
- 84
pages/index/clearanceService.vue View File

@ -1,101 +1,108 @@
<template> <template>
<view class="page">
<view class="frame">
<!--顶部导航栏-->
<topbar showRight="0"></topbar>
<view class="page">
<view class="frame">
<!--顶部导航栏-->
<topbar showRight="0"></topbar>
<!--内容区域-->
<view class="content">
<view class="bigImg">
<!--换成后端后删除对应的图片-->
<img :src="$store.state.pic" alt="" style="width: 100%;height: 100%;">
<!-- <img src="../../static/image/clearanceService.png" alt="" style="width: 100%;height: 100%;"> -->
</view>
<!--<view class="smallImg">-->
<!-- &lt;!&ndash;换成后端后删除对应的图片&ndash;&gt;-->
<!-- <img src="../../static/image/1.png" alt="" style="width: 100%;height: 100%;">-->
<!--</view>-->
<view class="ljsq">
<span @click="applyClearanceService" class="text">
{{ $t('components.applyNow') }}&nbsp;&nbsp;>>
</span>
</view>
</view>
</view>
<!--内容区域-->
<view class="content">
<view class="bigImg">
<!--换成后端后删除对应的图片-->
<img :src="$store.state.pic" alt="" style="width: 100%;height: 100%;">
<!-- <img src="../../static/image/clearanceService.png" alt="" style="width: 100%;height: 100%;"> -->
</view>
<!--<view class="smallImg">-->
<!-- &lt;!&ndash;换成后端后删除对应的图片&ndash;&gt;-->
<!-- <img src="../../static/image/1.png" alt="" style="width: 100%;height: 100%;">-->
<!--</view>-->
<view class="ljsq">
<span @click="applyClearanceService" class="text">
{{ $t('components.applyNow') }}&nbsp;&nbsp;>>
</span>
</view>
</view>
</view>
<!--底部导航栏-->
<tabber select="2"/>
</view>
<!--底部导航栏-->
<tabber select="2" />
</view>
</template> </template>
<script> <script>
import topbar from "@/components/base/topbar.vue";
import tabber from "@/components/base/tabbar.vue";
import topbar from "@/components/base/topbar.vue";
import tabber from "@/components/base/tabbar.vue";
export default {
name: "clearanceService",
components: {tabber, topbar},
data() {
return {}
},
methods: {
applyClearanceService(){
uni.navigateTo({
url: `/pages_order/auth/customsClearApply`
})
},
},
}
export default {
name: "clearanceService",
components: {
tabber,
topbar
},
data() {
return {}
},
methods: {
applyClearanceService() {
if (!uni.getStorageSync('token')) {
return this.$utils.toLogin()
}
uni.navigateTo({
url: `/pages_order/auth/customsClearApply`
})
},
},
}
</script> </script>
<style scoped lang="scss"> <style scoped lang="scss">
.page {
.frame {
.content {
height: calc(100vh - 120rpx - 120rpx);
background-color: #2d384c;
width: 100vw;
.page {
.frame {
.content {
height: calc(100vh - 120rpx - 120rpx);
background-color: #2d384c;
width: 100vw;
.bigImg {
display: flex;
justify-content: center;
align-items: center;
height: 90%;
padding: 20rpx;
}
.bigImg {
display: flex;
justify-content: center;
align-items: center;
height: 90%;
padding: 20rpx;
}
.smallImg {
position: absolute;
left: calc(50% - 80rpx);
bottom: 350rpx;
width: 160rpx;
height: 160rpx;
.smallImg {
position: absolute;
left: calc(50% - 80rpx);
bottom: 350rpx;
width: 160rpx;
height: 160rpx;
}
}
.ljsq{
display: flex;
align-items: center;
justify-content: center;
width: 300rpx;
height: 70rpx;
border-radius: 40rpx;
color: #FFF;
font-size: 28rpx;
margin: 20rpx 10rpx 0 0;
background: #FFF;
border-radius: 40rpx;
position: absolute;
left: calc(50% - 150rpx);
bottom: 550rpx;
.text{
color: #000;
font-size: 38rpx;
.ljsq {
display: flex;
align-items: center;
justify-content: center;
width: 300rpx;
height: 70rpx;
border-radius: 40rpx;
color: #FFF;
font-size: 28rpx;
margin: 20rpx 10rpx 0 0;
background: #FFF;
border-radius: 40rpx;
position: absolute;
left: calc(50% - 150rpx);
bottom: 550rpx;
}
}
}
}
}
.text {
color: #000;
font-size: 38rpx;
}
}
}
}
}
</style> </style>

+ 28
- 0
pages_order/auth/customsClearApply.vue View File

@ -175,7 +175,35 @@ export default {
skyhfileList: [], skyhfileList: [],
} }
}, },
onLoad() {
this.myCustoms()
},
methods: { methods: {
myCustoms(){
this.$api('myCustoms', res => {
if(res.code == 200 && res.result){
this.form = res.result
delete this.form.id
this.jbhxxfileList = this.form.basicAccount ? this.form.basicAccount.split(',').map(url => {
return {
url
}
}) : []
this.skyhfileList = this.form.bankInfo ? this.form.bankInfo.split(',').map(url => {
return {
url
}
}) : []
this.yyzzfileList = this.form.businessLicense ? this.form.businessLicense.split(',').map(url => {
return {
url
}
}) : []
}
})
},
// //
applyReview() { applyReview() {


+ 3
- 2
pages_order/order/offerOrBillLading.vue View File

@ -464,9 +464,10 @@
return return
} }
if(this.form.productType != 0 && !productType){
if(!this.productType[this.form.productType]){
uni.showToast({ uni.showToast({
title: '请选择商品类型'
title: '请选择商品类型',
icon: 'none'
}) })
return return
} }


Loading…
Cancel
Save