diff --git a/components/user/productList.vue b/components/user/productList.vue
index a93bf74..ef5cf13 100644
--- a/components/user/productList.vue
+++ b/components/user/productList.vue
@@ -1,147 +1,143 @@
-
-
-
-
-
- {{ $t('other.aluminumProducts') }}
-
-
- ¥58
- {{ $t('other.unitPrice2') }}
-
-
-
-
-
-
-
-
-
-
- 最多批发*快速下单
-
-
-
-
- {{ $t('other.immediatePurchase') }}
-
-
-
-
+
+
+
+
+
+ {{ $t('other.aluminumProducts') }}
+
+
+ ¥{{ item.price }}
+ {{ $t('components.unitPrice2') }}
+
+
+
+
+
+
+
+
+
+
+ 最多批发*快速下单
+
+
+
+
+ {{ $t('components.immediatePurchase') }}
+
+
+
+
\ No newline at end of file
diff --git a/pages.json b/pages.json
index 193d73f..15246f5 100644
--- a/pages.json
+++ b/pages.json
@@ -24,29 +24,11 @@
"navigationBarTitleText": ""
}
},
- {
- "path": "pages/index/category",
- "style": {
- "navigationBarTitleText": ""
- }
- },
- {
- "path": "pages/index/center",
- "style": {
- "navigationBarTitleText": ""
- }
- },
{
"path": "pages/index/center2",
"style": {
"navigationBarTitleText": ""
}
- },
- {
- "path": "pages/index/cart",
- "style": {
- "navigationBarTitleText": ""
- }
}
],
"preloadRule": {
diff --git a/pages/index/cart.vue b/pages/index/cart.vue
deleted file mode 100644
index 4c9a7c2..0000000
--- a/pages/index/cart.vue
+++ /dev/null
@@ -1,259 +0,0 @@
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- {{ item.title }}
-
-
-
-
-
-
- 规格:{{ item.unit }}
-
-
-
- ¥{{ item.price }}元
-
-
-
-
-
-
-
-
-
-
-
-
- {{ checkboxValue.length }}
-
-
-
-
- 合计
-
- ¥{{ totalPrice }}
-
-
-
- 共{{ checkboxValue.length }}件,已享受更低优惠
-
-
-
- 去结算
-
-
-
-
-
-
-
-
-
-
-
\ No newline at end of file
diff --git a/pages/index/category.vue b/pages/index/category.vue
deleted file mode 100644
index 17ab40d..0000000
--- a/pages/index/category.vue
+++ /dev/null
@@ -1,181 +0,0 @@
-
-
-
-
-
-
-
-
- 租赁
-
-
-
-
-
-
-
- {{item.unit}}
-
-
-
-
-
-
-
-
-
-
-
-
-
-
\ No newline at end of file
diff --git a/pages/index/center.vue b/pages/index/center.vue
deleted file mode 100644
index bb528c3..0000000
--- a/pages/index/center.vue
+++ /dev/null
@@ -1,420 +0,0 @@
-
-
-
-
-
-
-
-
-
-
-
- 倾心.
-
-
-
- 今天是您来的的第32天
-
-
-
- 角色切换
-
-
-
-
-
-
-
-
-
-
-
- 我的用户
-
-
-
-
- 客户:王生
-
-
- 剩余水洗布:198
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- 余额¥3000
-
-
-
-
-
-
-
- 押金¥30000
-
-
-
-
-
- 常用功能
-
-
-
-
-
- 地址管理
-
-
-
-
- 订单管理
-
-
-
-
- 换货
-
-
-
-
- 退货
-
-
-
-
-
-
-
-
- 联系客服
-
-
-
-
- 我的租赁
-
-
-
-
- 租赁车
-
-
-
-
- 申请成为水洗店
-
-
-
-
-
-
-
-
-
- 联系客服
- 确定拨打客服电话?
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
\ No newline at end of file
diff --git a/pages/index/index.vue b/pages/index/index.vue
index 065d88e..dc5c9af 100644
--- a/pages/index/index.vue
+++ b/pages/index/index.vue
@@ -145,6 +145,11 @@
},
onShow(){
this.getImagePhoneOther()
+ if(!this.$store.state.shop && !this.$store.state.buy){
+ uni.reLaunch({
+ url: '/pages_order/auth/selectionIdentity?back=no&'
+ })
+ }
},
computed: {
...mapGetters(['userShop']),
diff --git a/pages/index/tradingPlatform.vue b/pages/index/tradingPlatform.vue
index 6ca7fed..8d7ef1e 100644
--- a/pages/index/tradingPlatform.vue
+++ b/pages/index/tradingPlatform.vue
@@ -1,164 +1,182 @@
-
-
-
-
-
-
-
-
-
-
- 折线图
-
-
-
-
-
-
- {{ $t('other.orderList') }}
-
-
-
-
-
-
-
-
-
-
- {{ $t('other.spotTrading') }}
- {{ $t('other.futuresTrading') }}
-
-
-
-
-
-
-
-
-
+
+
+
+
+
+
+
+
+
+
+ 折线图
+
+
+
+
+
+
+ {{ $t('other.orderList') }}
+
+
+
+
+
+
+
+
+
+
+ {{ item.name }}
+
+
+
+
+
+
+
+
+
+
\ No newline at end of file
diff --git a/pages_order/auth/selectionIdentity.vue b/pages_order/auth/selectionIdentity.vue
index 9f170af..6898185 100644
--- a/pages_order/auth/selectionIdentity.vue
+++ b/pages_order/auth/selectionIdentity.vue
@@ -1,94 +1,93 @@
-
+
-
+
-
+
- {{ $t('components.selectIdentity') }}
-
-
-
- {{ $t('other.iAmBuyer') }}
-
-
-
-
-
-
- {{ $t('other.iAmSupplier') }}
-
-
-
-
-
-
-
+ {{ $t('components.selectIdentity') }}
+
+
+
+ {{ $t('other.iAmBuyer') }}
+
+
+
+
+
+
+ {{ $t('other.iAmSupplier') }}
+
+
+
+
+
+
+
+ .identity-icon {
+ width: 130rpx;
+ height: 130rpx;
+ }
+ }
+ }
+ }
+
\ No newline at end of file
diff --git a/pages_order/center/systemSet.vue b/pages_order/center/systemSet.vue
index c2cb7ce..129df9b 100644
--- a/pages_order/center/systemSet.vue
+++ b/pages_order/center/systemSet.vue
@@ -1,133 +1,167 @@
-
-
-
-
-
-
- {{ item.title }}
-
-
-
-
-
-
- {{ item2.text }}
-
-
-
- {{ item.rightIcon }}
-
-
-
-
-
-
-
-
-
-
-
-
-
+
+
+
+
+
+
+ {{ item.title }}
+
+
+
+
+
+
+ {{ item2.text }}
+
+
+
+ {{ item.rightIcon }}
+
+
+
+
+
+
+
+
+
+
+
+
+
\ No newline at end of file
diff --git a/pages_order/tradingPlatform/nowOrder.vue b/pages_order/tradingPlatform/nowOrder.vue
index 0642a66..32015f0 100644
--- a/pages_order/tradingPlatform/nowOrder.vue
+++ b/pages_order/tradingPlatform/nowOrder.vue
@@ -1,471 +1,478 @@
-
-
-
-
-
-
- {{ $t('other.aluminumProducts') }}
-
-
-
-
-
- {{ $t('components.productSpe') }}
-
- 铝制品(Al>96%)
-
-
-
-
-
-
-
- {{ $t('components.pickupLocation') }}
-
-
-
-
-
-
-
-
-
-
-
-
- {{ $t('components.detailedAddress') }}
-
-
-
-
-
-
-
- {{ $t('components.deliveryDate') }}
-
-
-
- {{ form.deliveryDate }}
-
-
-
- >
-
-
-
-
-
-
-
-
-
- {{ $t('other.tentativeQuantity') }}
-
-
-
-
-
-
-
- {{ $t('components.unitPrice') }}
-
-
-
-
-
-
-
- {{ $t('other.performanceDeposit') }}
-
-
-
-
-
-
- {{ $t('other.priceQuantityPercentage') }}
-
- ‘
-
-
-
- {{ $t('components.immediateOrder') }}
-
-
- {{ $t('components.contactUs') }}
-
- {{ $t('components.contactUsIfAnyProblems') }}
-
-
-
-
-
-
-
-
-
+
+
+
+
+
+
+ {{ $t('other.aluminumProducts') }}
+
+
+
+
+
+ {{ $t('components.productSpe') }}
+
+ 铝制品(Al>96%)
+
+
+
+
+
+
+
+ {{ $t('components.pickupLocation') }}
+
+
+ {{ fatherData.address }}
+
+
+
+
+
+
+ {{ $t('components.detailedAddress') }}
+
+
+
+
+
+
+
+ {{ $t('components.deliveryDate') }}
+
+
+
+ {{ form.deliveryDate }}
+
+
+
+ >
+
+
+
+
+
+
+
+
+
+ {{ $t('other.tentativeQuantity') }}
+
+
+
+
+
+
+
+ {{ $t('components.unitPrice') }}
+
+
+
+
+
+
+
+ {{ $t('other.performanceDeposit') }}
+
+
+
+
+
+
+ {{ $t('other.priceQuantityPercentage') }}
+
+ ‘
+
+
+
+ {{ $t('components.immediateOrder') }}
+
+
+ {{ $t('components.contactUs') }}
+
+ {{ $t('components.contactUsIfAnyProblems') }}
+
+
+
+
+
+
+
+
+
\ No newline at end of file
diff --git a/static/image/tabbar/组 46940_1.png b/static/image/tabbar/组 46940_1.png
deleted file mode 100644
index c9f5ab5..0000000
Binary files a/static/image/tabbar/组 46940_1.png and /dev/null differ
diff --git a/store/store.js b/store/store.js
index b1662fa..d0e74cc 100644
--- a/store/store.js
+++ b/store/store.js
@@ -11,6 +11,8 @@ const store = new Vuex.Store({
configList: [], //配置列表
shop : true,
userInfo : {}, //用户信息
+ shopData : {},
+ buy : {},
},
getters: {
// 角色 true 为供应商 false 为采购商
@@ -50,11 +52,19 @@ const store = new Vuex.Store({
}
state.userInfo = res.result.userInfo
+ state.buy = res.result.buy
+ state.shop = res.result.shop
uni.setStorageSync('token', res.result.token)
- uni.reLaunch({
- url: '/pages/index/index'
- })
+ if(!state.shop && !state.buy){
+ uni.reLaunch({
+ url: '/pages_order/auth/selectionIdentity?back=no&'
+ })
+ }else{
+ uni.reLaunch({
+ url: '/pages/index/index'
+ })
+ }
})
},
getUserInfo(state){
@@ -64,6 +74,21 @@ const store = new Vuex.Store({
}
})
},
+ logout(state){
+ uni.showModal({
+ title: '确认退出登录吗',
+ success(r) {
+ if(r.confirm){
+ state.userInfo = {}
+ state.role = false
+ uni.removeStorageSync('token')
+ uni.redirectTo({
+ url: '/pages/index/index'
+ })
+ }
+ }
+ })
+ },
},
actions: {},
})