diff --git a/App.vue b/App.vue
index c068cd7..846382c 100644
--- a/App.vue
+++ b/App.vue
@@ -1,21 +1,14 @@
+
+
diff --git a/components/business-components/factoryItem.vue b/components/business-components/factoryItem.vue
new file mode 100644
index 0000000..3439409
--- /dev/null
+++ b/components/business-components/factoryItem.vue
@@ -0,0 +1,153 @@
+
+
+
+
+
+ {{ item.name }}
+
+ {{ item.score }}分
+
+
+
+
+ {{ item.address }}
+ {{ item.mileage === -1 ? '未知' : '距您' + item.mileage + 'km' }}
+
+
+
+ {{ tag.name }}
+
+
+
+
+
+
+
+
+
+
+
+
diff --git a/env/index.js b/env/index.js
index bcf6a22..a0bfcb1 100644
--- a/env/index.js
+++ b/env/index.js
@@ -1,8 +1,8 @@
/**
* @description 唯一环境变量
*/
-// const env = 'test'
+const env = 'test'
// const env = 'dev'
-const env = 'production'
+// const env = 'production'
export default env
diff --git a/pages.json b/pages.json
index 3d66110..ecbcc40 100644
--- a/pages.json
+++ b/pages.json
@@ -19,6 +19,14 @@
"navigationStyle": "custom"
}
},
+ {
+ "path": "pages/factory/index",
+ "style": {
+ "navigationBarTitleText": "工厂直印",
+ "enablePullDownRefresh": false,
+ "navigationStyle": "custom"
+ }
+ },
{
"path": "pages/device-operation/index",
"style": {
@@ -35,6 +43,14 @@
"navigationStyle": "custom"
}
},
+ {
+ "path": "pages/smart-order/index",
+ "style": {
+ "navigationBarTitleText": "智能下单",
+ "enablePullDownRefresh": false,
+ "navigationStyle": "custom"
+ }
+ },
{
"path": "pages/promotion/index",
"style": {
@@ -248,18 +264,18 @@
"borderStyle": "white",
"backgroundColor": "#f9f9f9",
"list": [
+ {
+ "pagePath": "pages/factory/index",
+ "iconPath": "static/imgs/tabbar/promotion-gray.png",
+ "selectedIconPath": "static/imgs/tabbar/promotion-blue.png",
+ "text": "工厂直印"
+ },
{
"pagePath": "pages/digital-workshops/index",
"iconPath": "static/imgs/tabbar/workshop-gray.png",
"selectedIconPath": "static/imgs/tabbar/workshop-blue.png",
"text": "数字车间"
},
- {
- "pagePath": "pages/promotion/index",
- "iconPath": "static/imgs/tabbar/promotion-gray.png",
- "selectedIconPath": "static/imgs/tabbar/promotion-blue.png",
- "text": "推广"
- },
{
"pagePath": "pages/mall/index",
"iconPath": "static/imgs/tabbar/mall-gray.png",
diff --git a/pages/digital-workshops/index.vue b/pages/digital-workshops/index.vue
index 4a1bd68..4bd370c 100644
--- a/pages/digital-workshops/index.vue
+++ b/pages/digital-workshops/index.vue
@@ -138,7 +138,7 @@ export default {
},
option: {
size: 10,
- auto: true,
+ auto: false,
emptyText: '暂无设备~',
background: '#F7F8FA',
fontSize: '40rpx'
diff --git a/pages/factory/index.vue b/pages/factory/index.vue
new file mode 100644
index 0000000..60a992c
--- /dev/null
+++ b/pages/factory/index.vue
@@ -0,0 +1,240 @@
+
+
+
+
+
+ 热门推荐
+
+
+
+ {{ simple.name }}
+
+
+
+
+ 工厂直印
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
diff --git a/pages/login/index.vue b/pages/login/index.vue
index fd5b57b..b315456 100644
--- a/pages/login/index.vue
+++ b/pages/login/index.vue
@@ -151,24 +151,13 @@ export default {
},
setAccountInfo(page = { url: 'digital-workshops', data: {}, isRedirect: true }) {
getBaseInfo({}, true).then((res) => {
- if (res) {
- // 绑定推送
- // #ifdef APP-PLUS
- let cid = plus.push.getClientInfo().clientid
- let platform = uni.getSystemInfoSync().platform
- pushCustomerBind(cid, platform)
- // #endif
- if (!res.enterpriseList || res.enterpriseList.length === 0) {
- go2('select-role')
- } else {
- // // 判断用户的角色
- let type = this.$store.state.companyInfo.enterpriseType
- if (type == enterpriseType.PERSONAL) {
- page.url = 'mall'
- }
- go2(page.url, page.data, page.isRedirect)
- }
- }
+ // 绑定推送useId标识
+ // #ifdef APP-PLUS
+ let cid = plus.push.getClientInfo().clientid
+ let platform = uni.getSystemInfoSync().platform
+ pushCustomerBind(cid, platform)
+ // #endif
+ go2(page.url, page.data, page.isRedirect)
})
}
},
diff --git a/pages/mine/index.vue b/pages/mine/index.vue
index fdba2d5..45f0f8d 100644
--- a/pages/mine/index.vue
+++ b/pages/mine/index.vue
@@ -32,7 +32,7 @@
-
+
@@ -262,7 +262,7 @@ export default {
})
this.hasLogin && getBaseInfo({}, true)
!this.hasLogin && (this.fsInfo.status = -1)
- this.hasLogin &&
+ this.hasCompany &&
getDeviceStatistics().then((res) => {
if (res) {
this.deviceInfo = res
diff --git a/pages/smart-order/index.vue b/pages/smart-order/index.vue
new file mode 100644
index 0000000..976636a
--- /dev/null
+++ b/pages/smart-order/index.vue
@@ -0,0 +1,190 @@
+
+
+
+
+
+ {{ info.name }}
+
+ {{ info.des }}
+
+
+
+ 尺寸(mm)
+
+ 厚度(mm)
+ 材质
+
+
+ 数量
+
+
+ {{ info.size }}
+ {{ info.thickness }}
+ {{ info.texture }}
+ {{ info.minimumOrderQuantity }}
+
+
+
+
+ 推荐工厂列表
+
+
+
+
+
+
+
+
+
+
+
diff --git a/static/imgs/factory/default-factory.png b/static/imgs/factory/default-factory.png
new file mode 100644
index 0000000..5d560ab
Binary files /dev/null and b/static/imgs/factory/default-factory.png differ
diff --git a/utils/hook.js b/utils/hook.js
index ee2c172..85eaa3a 100644
--- a/utils/hook.js
+++ b/utils/hook.js
@@ -2,7 +2,7 @@ import store from '@/store/index'
import { uploadUrl, XAPPID, enterpriseType } from '@/enums/index.js'
import { pushCustomerOff } from '@/apis/commonApi'
// 框架方法封装
-const tabList = ['digital-workshops', 'promotion', 'mall', 'mine']
+const tabList = ['digital-workshops', 'factory', 'mall', 'mine']
/**
* @param {string} 跳转的tabBar页面