From a0ed531272491f5b8c27c6f55048c00fd7ea4480 Mon Sep 17 00:00:00 2001
From: zmj <1493694146@qq.com>
Date: Sat, 18 May 2024 19:19:56 +0800
Subject: [PATCH] add
---
api/supplier.js | 21 +-
config/app.js | 10 +-
manifest.json | 4 +-
pages.json | 23 +-
pages/bindSupplier/index.vue | 289 ++++++-----------
pages/bindSupplier/record.vue | 228 ++++++++++++++
pages/index/index.vue | 12 +-
pages/quote/bindAccout.vue | 80 +----
pages/quote/index.vue | 486 +++--------------------------
pages/quote/list.vue | 39 ++-
pages/quote/supplierFinancialy.vue | 54 +---
pages/users/login/login_copy.vue | 73 ++++-
static/tabbar_icon/bjd.png | Bin 0 -> 1023 bytes
static/tabbar_icon/bjdact.png | Bin 0 -> 3778 bytes
utils/requestSupplier.js | 14 +-
utils/showTab.js | 3 +-
16 files changed, 535 insertions(+), 801 deletions(-)
create mode 100644 pages/bindSupplier/record.vue
create mode 100644 static/tabbar_icon/bjd.png
create mode 100644 static/tabbar_icon/bjdact.png
diff --git a/api/supplier.js b/api/supplier.js
index e835521..19f44ab 100644
--- a/api/supplier.js
+++ b/api/supplier.js
@@ -38,7 +38,9 @@ export const aboutUsApi = (data) => {
export const applysApi = (data) => {
- return request.post('shop/index/apply', data);
+ return request.post('shop/index/apply', data, {
+ tokenName: 1
+ });
}
export const merchatTypeApi = (data) => {
@@ -48,8 +50,23 @@ export const merchatTypeApi = (data) => {
}
export const getSTokenApi = (data) => {
- uni.setStorageSync('LOGIN_STATUS_STOKEN', 'asdfdsfsdfsdfds')
return request.get('shop/index/get_token', data, {
tokenName: 1
});
+}
+
+export const getapplyRecordApi = (data) => {
+ return request.get('shop/index/record', data, {
+ tokenName: 1
+ });
+}
+
+export const reSubmitApi = (data) => {
+ return request.get('shop/index/apply_detail', data, {
+ tokenName: 1
+ });
+}
+
+export const UserWithdrawListsdate_listsApi = (data) => {
+ return request.get('operation/OpurchaseGoodsOffer/date_lists', data);
}
\ No newline at end of file
diff --git a/config/app.js b/config/app.js
index 13ede59..6afed7c 100644
--- a/config/app.js
+++ b/config/app.js
@@ -15,9 +15,9 @@ let openPlantGrass = '-openPlantGrass-'
let httpSix, httpApi, httpTwo;
-// const env = 'dev'; // 开发
+const env = 'dev'; // 开发
// const env = 'prod'; // 生产
-const env = 'prew'; // 预上线
+// const env = 'prew'; // 预上线
switch (env) {
case 'prod':
@@ -29,15 +29,13 @@ switch (env) {
case 'prew':
httpApi = 'https://test.shop.lihaink.cn' //预发布环境
httpSix = 'https://ceshi-new-wokr.lihaink.cn'
- httpTwo = 'http://192.168.1.22:8546'
+ httpTwo = 'https://erp.lihaink.cn'
wsApi = 'wss://test.shop.lihaink.cn'
break;
default:
httpApi = "https://crmeb-test.shop.lihaink.cn" // 测试
httpSix = 'https://ceshi-new-wokr.lihaink.cn'
- // httpTwo = 'https://erp.lihaink.cn'
- httpTwo = 'http://192.168.1.22:8546'
- // wsApi = 'ws://192.168.1.22:8324'
+ httpTwo = 'https://erp.lihaink.cn'
wsApi = 'wss://crmeb-test.shop.lihaink.cn'
}
diff --git a/manifest.json b/manifest.json
index 7a44b01..3b415f3 100644
--- a/manifest.json
+++ b/manifest.json
@@ -2,8 +2,8 @@
"name": "惠农生活",
"appid": "__UNI__3A527D1",
"description": "",
- "versionName": "2.0.55",
- "versionCode": 2055,
+ "versionName": "2.0.56",
+ "versionCode": 2056,
"transformPx": false,
/* 5+App特有相关 */
"app-plus": {
diff --git a/pages.json b/pages.json
index d13df5d..017482a 100644
--- a/pages.json
+++ b/pages.json
@@ -61,8 +61,7 @@
"path": "pages/quote/list",
"style": {
"enablePullDownRefresh": false,
- "navigationBarTitleText": "报价",
- "navigationStyle": "custom"
+ "navigationBarTitleText": "报价"
}
},
{
@@ -96,10 +95,17 @@
{
"path": "pages/bindSupplier/index",
"style": {
- "enablePullDownRefresh": false,
+ "enablePullDownRefresh": true,
"navigationBarTitleText": "供应商入驻"
}
},
+ {
+ "path": "pages/bindSupplier/record",
+ "style": {
+ "enablePullDownRefresh": false,
+ "navigationBarTitleText": "申请记录"
+ }
+ },
{
"path": "pages/gather/gather",
"style": {
@@ -1657,13 +1663,6 @@
"selectedIconPath": "static/tabbar_icon/b-a.png",
"text": "批发"
},
-
- // {
- // "pagePath": "pages/plant_grass/index",
- // "iconPath": "static/tabbar_icon/b.png",
- // "selectedIconPath": "static/tabbar_icon/b-a.png",
- // "text": "逛逛"
- // },
{
"pagePath": "pages/gather/gather",
"iconPath": "static/tabbar_icon/c.png",
@@ -1678,8 +1677,8 @@
},
{
"pagePath": "pages/quote/list",
- "iconPath": "static/tabbar_icon/d.png",
- "selectedIconPath": "static/tabbar_icon/d-a.png",
+ "iconPath": "static/tabbar_icon/bjd.png",
+ "selectedIconPath": "static/tabbar_icon/bjdact.png",
"text": "报价"
},
diff --git a/pages/bindSupplier/index.vue b/pages/bindSupplier/index.vue
index 0d3cd8a..56a46b0 100644
--- a/pages/bindSupplier/index.vue
+++ b/pages/bindSupplier/index.vue
@@ -1,6 +1,6 @@
-
+
+
简单3步 商户入驻
@@ -81,10 +78,19 @@
商户位置
+
{{formData.storeAddress||'点击获取当前位置'}}
+
+
+
+
+ {{ formData.long?formData.long+','+formData.lat:'点击获取当前位置'}}
+
+
@@ -129,7 +135,9 @@
法人名称
+ v-model="formData.company_nickname">
+
+
@@ -152,31 +160,27 @@
店铺等待审核
- 店铺已提交入驻申请
+
- {{formData.mer_name}}
- 等待审核
- 审核通过
- 审核失败
+ {{successData.mer_name}}
+ 等待审核
+ 审核通过
+ 审核失败
- 提交时间:{{formData.create_time}}
+ 提交时间:{{successData.create_time}}
-
-
+
- 备注:{{formData.fail_msg}}
+ 备注:{{successData.mark}}
-
-
- 可以登录我们的工作台,把您的商品推向市场了
-
-
+
@@ -197,7 +201,6 @@
返回上一步
-
@@ -219,17 +222,11 @@
-
@@ -621,7 +523,6 @@
background-color: #fff;
padding: 40rpx;
box-sizing: border-box;
- font-family: PF;
padding-bottom: 200rpx;
.heder-tips {
diff --git a/pages/bindSupplier/record.vue b/pages/bindSupplier/record.vue
new file mode 100644
index 0000000..709b945
--- /dev/null
+++ b/pages/bindSupplier/record.vue
@@ -0,0 +1,228 @@
+
+
+
+
+
+
+
+
+ {{item.create_time}}
+
+
+
+
+ 待审核
+
+
+
+ 审核通过
+
+
+ 审核失败
+
+ 重新申请
+
+
+
+
+ {{item.mer_name}}
+
+
+ 可以登录我们的工作台,把您的商品推向市场了
+
+
+ 备注:{{item.fail_msg}}
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ 暂无申请记录,快去申请入驻吧!
+
+
+
+
+
+
+
+
\ No newline at end of file
diff --git a/pages/index/index.vue b/pages/index/index.vue
index c812a2c..249b776 100644
--- a/pages/index/index.vue
+++ b/pages/index/index.vue
@@ -629,8 +629,6 @@
this.activeRouter = '/' + curRoute
},
onLoad(options) {
-
-
let that = this
this._options = options;
this.diyId = options.diyId || 0;
@@ -650,10 +648,14 @@
},
onShow() {
- getSTokenApi().then(res => {
- if (res.token) {
- uni.setStorageSync('LOGIN_STATUS_STOKEN', 'asdfdsfsdfsdfds')
+ getSTokenApi({
+ jg_register_id: uni.getStorageSync('jg_id') || ''
+ }).then(res => {
+ if (res.data?.token) {
+ uni.setStorageSync('LOGIN_STATUS_STOKEN', (res.data?.token || ''))
}
+ }).catch(err => {
+ console.log("获取报错", err)
})
if (uni.getStorageSync('newStore')) this.openDiver();
let that = this;
diff --git a/pages/quote/bindAccout.vue b/pages/quote/bindAccout.vue
index 931f3c1..6840791 100644
--- a/pages/quote/bindAccout.vue
+++ b/pages/quote/bindAccout.vue
@@ -11,6 +11,7 @@
账户绑定
+ {{form}}
@@ -74,7 +75,9 @@
diff --git a/pages/quote/index.vue b/pages/quote/index.vue
index 9f91be8..d676dbe 100644
--- a/pages/quote/index.vue
+++ b/pages/quote/index.vue
@@ -1,5 +1,5 @@
-
+
@@ -32,7 +32,7 @@
{{item.goods.name}}
- 需求量: {{item.need_num}}{{item.unit_name}}
+ 需求量: {{item.need_num}}{{item.goods.unit_name}}
+
+
+
+
+
+
+
+
+
+
+
-
-
-
-
+
@@ -67,12 +75,10 @@