From 8c8d55a4d7d56519f4ac9e1652341de1f15ad6ae Mon Sep 17 00:00:00 2001 From: huyuanxiang <273637057@qq.com> Date: Mon, 19 Jun 2023 17:17:12 +0800 Subject: [PATCH] =?UTF-8?q?[fix]=E7=89=88=E6=9C=AC=E6=9B=B4=E6=96=B0?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .gitignore | 1 + api/index.js | 2 + config/index.js | 7 +- config/order.js | 24 ++- main.js | 6 +- package.json | 17 +- pages.json | 8 +- pages/commponent/user/my-order.vue | 14 +- pages/views/order/confirmOrder.vue | 48 +++-- pages/views/order/orderDetails.vue | 42 +++-- pages/views/order/orderList.vue | 270 +++++++++++++++++++---------- pages/views/poster/signature.vue | 62 +++++++ pages/views/tabBar/user.vue | 21 ++- pages/views/user/myaddress.vue | 40 +++-- utils/request.js | 26 ++- utils/util.js | 102 ++++++++++- 16 files changed, 500 insertions(+), 190 deletions(-) create mode 100644 pages/views/poster/signature.vue diff --git a/.gitignore b/.gitignore index 687b71f..4c6a69c 100644 --- a/.gitignore +++ b/.gitignore @@ -9,6 +9,7 @@ # Local History for Visual Studio Code .history/ unpackage/ +node_modules/ *.app .snapshots/* diff --git a/api/index.js b/api/index.js index 4ca0afd..9617f75 100644 --- a/api/index.js +++ b/api/index.js @@ -10,6 +10,8 @@ export const addOrder = (params) => request('/erp/order/add', params, 'post') export const editOrder = (params) => request('/erp/order/edit', params, 'post') export const getStatusList = (params) => request('/erp/order/queryState', params, 'get') +export const getStoreList = (params) => request('/erp/storeInfo/list', params, 'get') + export const getAddrList = (params) => request('/erp/addrManager/list', params, 'get') export const addAddr = (params) => request('/erp/addrManager/add', params, 'post') export const editAddr = (params) => request('/erp/addrManager/edit', params, 'post') diff --git a/config/index.js b/config/index.js index 9e3704f..38e2406 100644 --- a/config/index.js +++ b/config/index.js @@ -1,6 +1,9 @@ const isPro = true +const BASE_API_URL = isPro ? + 'http://store-admin.nhet.cloud:8080/jeecg-boot' : + 'http://47.100.35.222:8080/jeecg-boot'; export default { - imgUrl: 'http://store-admin.nhet.cloud:8080/jeecg-boot/sys/common/static/', - apiUrl: isPro ? 'http://store-admin.nhet.cloud:8080/jeecg-boot' : 'http://store-admin.nhet.cloud:8080/jeecg-boot', + imgUrl: BASE_API_URL + '/sys/common/static/', + apiUrl: BASE_API_URL, isPro } diff --git a/config/order.js b/config/order.js index aa11fca..97be5e0 100644 --- a/config/order.js +++ b/config/order.js @@ -3,30 +3,36 @@ export const ORDER_NAVS = [ name: '全部', icon: 'icon-daifukuan', url: '', - id: -1 + id: -2 }, + { + name: '待确认', + icon: 'icon-liebiao', + url: '', + id: 6 + }, { name: '待支付', icon: 'icon-daifukuan', url: '', id: 0 }, { - name: '待发货', + name: '待提货', icon: 'icon-daifahuo', url: '', id: 1 }, { - name: '待收货', + name: '已提货', icon: 'icon-daishouhuo1', url: '', id: 2 }, - { - name: '已收货', - icon: 'icon-daipingjia', - url: '', - id: 3 - }, + // { + // name: '已收货', + // icon: 'icon-daipingjia', + // url: '', + // id: 3 + // }, { name: '已取消', icon: 'icon-erji', diff --git a/main.js b/main.js index 8562496..39ea4e5 100644 --- a/main.js +++ b/main.js @@ -3,10 +3,10 @@ import App from './App'; import nodata from "./pages/commponent/public/nodata"; import request from 'utils/request.js' //引入异步请求函数 import {toast} from './utils/util' -// import './utils/noprint.js' -import json from './json' //测试用数据 - +import signature from '@jensonhui/signature-h5' +import '@jensonhui/signature-h5/lib/signatureH5.css'; +Vue.use(signature) Vue.prototype.request = request.request //挂载到全局 Vue.prototype.$toast = toast //挂载到全局 Vue.component("nodata", nodata); diff --git a/package.json b/package.json index e1c275f..dec05e8 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,19 @@ { "dependencies": { + "@jensonhui/signature-h5": "^1.0.5" }, - "devDependencies": { - } + "devDependencies": {}, + "name": "nherp-shop", + "description": "t", + "version": "1.0.0", + "main": "main.js", + "scripts": { + "test": "echo \"Error: no test specified\" && exit 1" + }, + "repository": { + "type": "git", + "url": "https://gitea.nhet.cloud/huyuanxiang/nherp-shop.git" + }, + "author": "", + "license": "ISC" } diff --git a/pages.json b/pages.json index d55dc1e..694c518 100644 --- a/pages.json +++ b/pages.json @@ -71,6 +71,12 @@ "navigationBarTitleText": "设置" } }, + { + "path": "pages/views/poster/signature", + "style": { + "navigationBarTitleText": "签名" + } + }, { "path": "pages/views/home/classList", "style": { @@ -147,7 +153,7 @@ { "path": "pages/views/user/myaddress", "style": { - "navigationBarTitleText": "收货地址", + "navigationBarTitleText": "提货地址", "navigationBarBackgroundColor": "#F8F8F8", "app-plus": { "bounce": "none" diff --git a/pages/commponent/user/my-order.vue b/pages/commponent/user/my-order.vue index 32ffba8..be0a4c9 100644 --- a/pages/commponent/user/my-order.vue +++ b/pages/commponent/user/my-order.vue @@ -1,6 +1,6 @@