From 03144765250729b64285b55684cf11c9eec9102b Mon Sep 17 00:00:00 2001
From: chenkun <3289431190@qq.com>
Date: Fri, 25 Oct 2024 23:46:41 +0800
Subject: [PATCH] .
---
api/api.js | 4 +-
components/base/tabbar.vue | 4 +-
components/user/productList.vue | 248 ++++++------
locale/en.json | 3 +-
locale/zh-Hans.json | 3 +-
pages.json | 6 +
pages/index/center2.vue | 1 -
pages/index/clearanceService.vue | 3 +-
pages/index/index.vue | 6 -
pages_order/auth/customsClearApply.vue | 388 +++++++++++++++++++
pages_order/auth/registerShop.vue | 48 ++-
pages_order/center/addressListManage.vue | 213 ++++++++++
pages_order/center/helpFeedback.vue | 24 +-
pages_order/center/systemSet.vue | 289 +++++++-------
pages_order/components/address/addressList.vue | 469 +++++++++++------------
pages_order/components/address/redactAddress.vue | 427 +++++++++++----------
pages_order/components/order/orderList.vue | 33 +-
pages_order/order/pendingOrder.vue | 6 +-
pages_order/static/order/3.svg | 1 +
pages_order/tradingPlatform/confirmOrder.vue | 10 +-
store/store.js | 2 +-
21 files changed, 1410 insertions(+), 778 deletions(-)
create mode 100644 pages_order/auth/customsClearApply.vue
create mode 100644 pages_order/center/addressListManage.vue
create mode 100644 pages_order/static/order/3.svg
diff --git a/api/api.js b/api/api.js
index bae2ad4..ef6e2a2 100644
--- a/api/api.js
+++ b/api/api.js
@@ -88,14 +88,14 @@ const config = {
url: '/product/noShow',
method: 'GET',
},
- // 产品报价分页列表
+ // 现货/期货列表
productList: {
url: '/product/productList',
method: 'GET',
},
// 交易平台挂单列表
productlist: {
- url: '/product/productList',
+ url: '/product/productlist',
method: 'GET',
},
// ========================用户地址===============================
diff --git a/components/base/tabbar.vue b/components/base/tabbar.vue
index aaee3d2..6a2ec48 100644
--- a/components/base/tabbar.vue
+++ b/components/base/tabbar.vue
@@ -6,8 +6,10 @@
:class="{item : true, active : select == index}"
v-for="(item, index) in list"
:key="index"
- v-if="!item.isNotShop || !userShop"
+
@click="toPath(item, index)">
+
+
-
-
-
-
- {{ $t('other.aluminumProducts') }}
-
-
- ¥{{ item.price }}
- {{ $t('components.unitPrice2') }}
-
-
-
-
-
-
-
-
-
-
- 最多批发*快速下单
-
-
-
-
- {{ $t('components.immediatePurchase') }}
-
-
-
-
+
+
+
+
+
+ {{ $t('other.aluminumProducts') }}
+
+
+ {{item.price}}
+ {{ $t('components.unitPrice2') }}
+
+
+ 最多批发*快速下单
+
+
+
+
+ {{ $t('components.immediatePurchase') }}
+
+
+
+
\ No newline at end of file
diff --git a/locale/en.json b/locale/en.json
index 7b62a6f..161fbf1 100644
--- a/locale/en.json
+++ b/locale/en.json
@@ -35,7 +35,8 @@
"languageSwitch": "Language Switch",
"clearCache": "Clear Cache",
"switchIdentity": "Switch Identity",
- "cancelOrder": "Cancel Order"
+ "cancelOrder": "Cancel Order",
+ "addressList": "Address list"
},
"components": {
"cancel": "Cancel",
diff --git a/locale/zh-Hans.json b/locale/zh-Hans.json
index 04f9b7a..1e8348b 100644
--- a/locale/zh-Hans.json
+++ b/locale/zh-Hans.json
@@ -37,7 +37,8 @@
"languageSwitch": "语言切换",
"clearCache": "清理缓存",
"switchIdentity": "切换身份",
- "cancelOrder": "取消订单"
+ "cancelOrder": "取消订单",
+ "addressList": "地址列表"
},
"components": {
"cancel": "取消",
diff --git a/pages.json b/pages.json
index 15246f5..84bf873 100644
--- a/pages.json
+++ b/pages.json
@@ -48,6 +48,9 @@
{
"path": "auth/registerShop"
},
+ {
+ "path": "auth/customsClearApply"
+ },
{
"path": "tradingPlatform/nowOrder"
},
@@ -78,6 +81,9 @@
{
"path": "mine/purse"
},
+ {
+ "path": "center/addressListManage"
+ },
{
"path": "mine/runningWater"
},
diff --git a/pages/index/center2.vue b/pages/index/center2.vue
index 6ac6dc1..e3e3a95 100644
--- a/pages/index/center2.vue
+++ b/pages/index/center2.vue
@@ -63,7 +63,6 @@ export default {
data() {
return {
supplierList: [
- // this.$t('pages.index.index.companyProfile')
{text: `${this.$t('pageTitle.myOrders')}`,englishText:'myOrders', value: ">", imgUrl: '/static/image/center/14.svg', toPathUrl: '/pages_order/order/pendingOrder'},
{text: `${this.$t('components.contactCustomerService')}`, englishText:'contactCustomerService',value: ">", imgUrl: '/static/image/center/13.svg'},
{text: `${this.$t('components.systemSettings')}`,englishText:'systemSettings', value: ">", imgUrl: '/static/image/center/12.svg', toPathUrl: '/pages_order/center/systemSet'},
diff --git a/pages/index/clearanceService.vue b/pages/index/clearanceService.vue
index 0b6e2ca..70dd8b9 100644
--- a/pages/index/clearanceService.vue
+++ b/pages/index/clearanceService.vue
@@ -40,8 +40,7 @@ export default {
methods: {
applyClearanceService(){
uni.navigateTo({
- // titleList: ['采购商注册', '供应商注册','国内清关申请'],
- url: `/pages_order/auth/registerShop?identity=2`
+ url: `/pages_order/auth/customsClearApply`
})
},
},
diff --git a/pages/index/index.vue b/pages/index/index.vue
index dc5c9af..2f088c6 100644
--- a/pages/index/index.vue
+++ b/pages/index/index.vue
@@ -4,12 +4,6 @@
-
-
-
-
-
-
diff --git a/pages_order/auth/customsClearApply.vue b/pages_order/auth/customsClearApply.vue
new file mode 100644
index 0000000..77588d7
--- /dev/null
+++ b/pages_order/auth/customsClearApply.vue
@@ -0,0 +1,388 @@
+
+
+
+
+
+
+
+
+
+
+ {{ $t('components.username') }}
+
+
+
+
+
+
+ {{ $t('components.password') }}
+
+
+
+
+
+
+ {{ $t('other.companyName') }}
+
+
+
+
+
+
+ {{ $t('other.taxCode') }}
+
+
+
+
+
+
+ {{ $t('other.companyAddress') }}
+
+
+
+
+
+
+ {{ $t('components.lxPhone') }}
+
+
+
+
+
+ {{ $t('other.companyAccount') }}
+
+
+
+
+
+ {{ $t('components.bankName') }}
+
+
+
+
+
+
+
+
+
+
+
+
+
+ {{ $t('components.businessLicense') }}
+
+
+ deleteImage(0, file)"
+ @afterRead="(file) => afterRead(0, file)"
+ :previewFullImage="true">
+
+
+
+
+
+
+
+ {{ $t('components.basicAccountInfo') }}
+
+
+ deleteImage(1, file)"
+ @afterRead="(file) => afterRead(1, file)"
+ :previewFullImage="true">
+
+
+
+
+
+
+ {{ $t('components.receivingBank') }}
+
+
+ deleteImage(2, file)"
+ @afterRead="(file) => afterRead(2, file)"
+ :previewFullImage="true">
+
+
+
+
+
+
+
+
+
+ {{ $t('components.submitReview') }}
+
+
+ {{ $t('components.contactUs') }}
+
+
+
+
+ {{ $t('components.registrationNotice') }}
+
+
+ {{ $t('other.frameworkContractPreview') }}
+
+
+
+
+
+
+
+
+
+
+
diff --git a/pages_order/auth/registerShop.vue b/pages_order/auth/registerShop.vue
index 11ddd1f..7004a5c 100644
--- a/pages_order/auth/registerShop.vue
+++ b/pages_order/auth/registerShop.vue
@@ -6,41 +6,46 @@
-
+
{{ $t('components.username')}}
-
+
+
{{ $t('components.password')}}
-
+
+
{{ $t('other.companyName')}}
-
+
+
{{ $t('other.taxCode')}}
-
+
+
{{ $t('other.companyAddress')}}
+
{{ $t('components.lxPhone')}}
-
+
@@ -154,18 +159,25 @@ export default {
return {
titleIndex: 0,
titleList: [
+ // 采购商注册 供应商注册 国内清关申请
this.$t('other.buyerRegistration'),
this.$t('other.supplierRegistration'),
this.$t('other.domesticCustomsClearanceApplication')
],
form: {
- userName: '',
- name: '',
- phone: '',
- currentRegion: '',
- address: '',
- latitude: '',
- longitude: '',
+ "address": "",
+ "bankAccount": "",
+ "bankInfo": "",
+ "bankNama": "",
+ "basicAccount": "",
+ "businessLicense": "",
+ "companyName": "",
+ "id": "",
+ "password": "",
+ "phone": "",
+ "role": 0,
+ "taxCode": "",
+ "userName": ""
},
yyzzfileList: [],
jbhxxfileList: [],
@@ -175,7 +187,15 @@ export default {
methods: {
// 申请审核
applyReview() {
-
+ this.$api('loginLogout', res => {
+ if (res.code == 200) {
+ uni.removeStorageSync('token')
+ this.$store.state.userInfo = {}
+ uni.redirectTo({
+ url: '/pages/index/index'
+ })
+ }
+ })
},
// 联系我们
contactUs() {
diff --git a/pages_order/center/addressListManage.vue b/pages_order/center/addressListManage.vue
new file mode 100644
index 0000000..45f276e
--- /dev/null
+++ b/pages_order/center/addressListManage.vue
@@ -0,0 +1,213 @@
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ 新增地址
+
+
+
+
+
+
+
+
\ No newline at end of file
diff --git a/pages_order/center/helpFeedback.vue b/pages_order/center/helpFeedback.vue
index 5a2a7ed..a14286b 100644
--- a/pages_order/center/helpFeedback.vue
+++ b/pages_order/center/helpFeedback.vue
@@ -1,7 +1,7 @@
-
+
@@ -36,7 +36,7 @@
{{ $t('components.contactName') }}
-
+
@@ -68,13 +68,31 @@ export default {
data() {
return {
fileList: [],
+ form: {
+ "content": "",
+ "proofImg": "",
+ "userName": "",
+ "userPhone": ""
+ }
}
},
methods: {
// 提交反馈
submitFeedback() {
-
+ this.form.proofImg = this.fileList.join(",")
+ this.$api('addSuggest', this.form, res => {
+ if (res.code === 200) {
+ uni.showToast({
+ title: '',
+ icon: 'success',
+ duration: 2000
+ })
+ setTimeout(() => {
+ uni.navigateBack(-1)
+ }, 1000)
+ }
+ })
},
deleteImage(e) {
diff --git a/pages_order/center/systemSet.vue b/pages_order/center/systemSet.vue
index 129df9b..eedfc90 100644
--- a/pages_order/center/systemSet.vue
+++ b/pages_order/center/systemSet.vue
@@ -1,167 +1,138 @@
-
-
-
-
-
-
- {{ item.title }}
-
-
-
-
-
-
- {{ item2.text }}
-
-
-
- {{ item.rightIcon }}
-
-
-
-
-
-
-
-
-
-
-
-
-
+
+
+
+
+
+
+ {{ item.title }}
+
+
+
+
+
+
+ {{ item2.text }}
+
+
+
+ {{ item.rightIcon }}
+
+
+
+
+
+
+
+
+
+
+
+
+
\ No newline at end of file
diff --git a/pages_order/components/address/addressList.vue b/pages_order/components/address/addressList.vue
index a296dad..f08d80c 100644
--- a/pages_order/components/address/addressList.vue
+++ b/pages_order/components/address/addressList.vue
@@ -1,245 +1,244 @@
-
-
-
-
-
-
-
-
-
-
-
- {{ item.name }}
- {{ item.phone }}
- 默认
-
-
-
- {{ item.address + " " + item.addressDetail }}
-
-
-
-
-
-
-
-
- 默认地址
-
-
-
-
-
- 编辑
-
-
-
-
- 删除
-
-
-
-
-
-
-
-
-
+
+
+
+
+
+
+
+
+
+
+
+ {{ item.name }}
+ {{ item.phone }}
+ 默认
+
+
+
+ {{ item.address + " " + item.addressDetail }}
+
+
+
+
+
+
+
+
+ 默认地址
+
+
+
+
+
+ 编辑
+
+
+
+
+ 删除
+
+
+
+
+
+
+
+
+
diff --git a/pages_order/components/address/redactAddress.vue b/pages_order/components/address/redactAddress.vue
index e11d971..f37113f 100644
--- a/pages_order/components/address/redactAddress.vue
+++ b/pages_order/components/address/redactAddress.vue
@@ -1,220 +1,223 @@
-
-
- {{title}}
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- 定位
-
-
-
-
-
-
-
-
-
-
- {{ addressDetail.id ? '修改地址' : '新增地址'}}
-
-
-
+
+
+ {{ title }}
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ 定位
+
+
+
+
+
+
+
+
+
+
+ {{ addressDetail.id ? '修改地址' : '新增地址' }}
+
+
+
\ No newline at end of file
diff --git a/pages_order/components/order/orderList.vue b/pages_order/components/order/orderList.vue
index 910e0aa..b85bd19 100644
--- a/pages_order/components/order/orderList.vue
+++ b/pages_order/components/order/orderList.vue
@@ -1,38 +1,41 @@
-
+
{{ $t('other.aluminumProducts') }}
- {{ $t('components.auditPassed') }}
+ {{ item.auditStatus_dictText }}
-
+
- {{ $t('components.customerName') }} :张三 18888888888
+ {{ $t('components.customerName') }} :{{ item.userName }} {{item.phone}}
- {{ $t('components.productSpe') }}:铝锭【Al>96%】
+ {{ $t('components.productSpe') }}:{{ item.userName }}
- {{ $t('other.pickupAddress') }}:北京市海淀区西二旗北路10号
+ {{ $t('other.pickupAddress') }}:{{ item.address }}
- {{ $t('other.aluminumProducts') }}:2021-08-01
+ {{ $t('other.pickupDate') }}:{{ item.createTime }}
-
+
+
+
+
@@ -50,7 +53,10 @@
export default {
name: "orderList",
props: {
- list: [],
+ orderList: {
+ type: Array,
+ default: false
+ },
showBackOrder: {
type: Boolean,
default: false
@@ -63,9 +69,12 @@ export default {
// 查看详情
lookDetail(item, index) {
- uni.navigateTo({
- url: `/pages_order/order/orderDetail2?id=1`
- })
+ // 交易平台的列表只用于展示,有撤单的说明是我的挂单,则可以查看详情
+ if (this.showBackOrder){
+ uni.navigateTo({
+ url: `/pages_order/order/orderDetail2?id`+item.id
+ })
+ }
},
// 撤单
diff --git a/pages_order/order/pendingOrder.vue b/pages_order/order/pendingOrder.vue
index ade9b50..3daaa4f 100644
--- a/pages_order/order/pendingOrder.vue
+++ b/pages_order/order/pendingOrder.vue
@@ -1,4 +1,5 @@
+
@@ -16,18 +17,19 @@
import orderList from "../components/order/orderList.vue";
import topbar from "@/components/base/topbar.vue";
import tabber from "@/components/base/tabbar.vue";
+import mixinsList from '@/mixins/list.js'
export default {
name: "pendingOrder",
components: {tabber, topbar, orderList},
+ mixins : [mixinsList],
data() {
return {
- list: [],
+ mixinsListApi : 'getMyProductlist',
}
},
methods: {
-
},
}
diff --git a/pages_order/static/order/3.svg b/pages_order/static/order/3.svg
new file mode 100644
index 0000000..03e7e16
--- /dev/null
+++ b/pages_order/static/order/3.svg
@@ -0,0 +1 @@
+
\ No newline at end of file
diff --git a/pages_order/tradingPlatform/confirmOrder.vue b/pages_order/tradingPlatform/confirmOrder.vue
index 4375890..4d0ef52 100644
--- a/pages_order/tradingPlatform/confirmOrder.vue
+++ b/pages_order/tradingPlatform/confirmOrder.vue
@@ -74,15 +74,19 @@ export default {
a: "",
b: "",
c: "",
-
},
-
}
},
methods: {
//确认下单
confirmOrder() {
-
+ this.$api('addProductOrder',this.form, res => {
+ if (res.code == 200) {
+ uni.redirectTo({
+ url: '/pages/index/clearanceService'
+ })
+ }
+ })
},
//取消订单
closeOrder() {
diff --git a/store/store.js b/store/store.js
index d0e74cc..ca0dbee 100644
--- a/store/store.js
+++ b/store/store.js
@@ -9,7 +9,7 @@ import api from '@/api/api.js'
const store = new Vuex.Store({
state: {
configList: [], //配置列表
- shop : true,
+ shop : false,
userInfo : {}, //用户信息
shopData : {},
buy : {},