diff --git a/apis/modules/client.js b/apis/modules/client.js
index 14567c9..b32cfbd 100644
--- a/apis/modules/client.js
+++ b/apis/modules/client.js
@@ -31,4 +31,8 @@ export const addCustomer = (data) => {
export const updateCustomer = (data) => {
return post('nakadai/nakadai/customer/updateCustomer', data)
+}
+
+export const getProductsSubscribedByCustomers = (data) => {
+ return get('nakadai/nakadai/customer/getProductsSubscribedByCustomers', data)
}
\ No newline at end of file
diff --git a/apis/modules/parner.js b/apis/modules/parner.js
new file mode 100644
index 0000000..16b5fd1
--- /dev/null
+++ b/apis/modules/parner.js
@@ -0,0 +1,6 @@
+import request from '@/apis/request.js'
+const { get, post } = request
+
+export const savePartnerAccount = (data) => {
+ return post('nakadai/partnerAccount/savePartnerAccount', data)
+}
\ No newline at end of file
diff --git a/apis/request.js b/apis/request.js
index ba05b81..25b4a1a 100644
--- a/apis/request.js
+++ b/apis/request.js
@@ -12,7 +12,7 @@ const request = options => {
})
}
const header = Object.assign({}, config.headers, {
- token: 'eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJzdWIiOiJ1c2VyIiwiaWF0IjoxNjUyMzIxMzkwLCJleHAiOjE2NTIzNjQ1OTAsImFjY291bnRJZCI6IjEifQ.TbdyqfODzJngOzLavF3Pb79eGzhuiCDeviRbj8ClU30'
+ token: 'eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJzdWIiOiJ1c2VyIiwiaWF0IjoxNjUzMDEyOTQ1LCJleHAiOjE2NTMwNTYxNDUsImFjY291bnRJZCI6IjEifQ.wlon-ETOzb3GvveRnetICH5Joa4u7XzaywGcDEbfqtU'
})
return new Promise((resolve, reject)=>{
uni.request({
diff --git a/config/request.js b/config/request.js
index 9c9819e..c3aa89f 100644
--- a/config/request.js
+++ b/config/request.js
@@ -5,7 +5,7 @@
*/
export default {
- baseURL: 'http://39.108.250.202:9000/',
+ baseURL: 'http://192.168.31.137:9000/',
headers: {
'Content-Type': 'application/json;charset=UTF-8'
},
diff --git a/pages.json b/pages.json
index 8528340..edecbef 100644
--- a/pages.json
+++ b/pages.json
@@ -1,5 +1,13 @@
{
"pages": [
+ {
+ "path" : "pages/invite/invite",
+ "style" :
+ {
+ "navigationBarTitleText": "加入团队",
+ "enablePullDownRefresh": false
+ }
+ },
{
"path" : "pages/clients/clients",
"style" :
@@ -32,14 +40,6 @@
"enablePullDownRefresh": false
}
},
- {
- "path" : "pages/invite/invite",
- "style" :
- {
- "navigationBarTitleText": "加入团队",
- "enablePullDownRefresh": false
- }
- },
{
"path" : "pages/addStaff/addStaff",
"style" :
@@ -122,7 +122,7 @@
"path" : "pages/ordered/ordered",
"style" :
{
- "navigationBarTitleText": "产品订阅",
+ "navigationBarTitleText": "已订阅产品",
"enablePullDownRefresh": false
}
diff --git a/pages/clientDetail/clientDetail.vue b/pages/clientDetail/clientDetail.vue
index c48037c..84f0175 100644
--- a/pages/clientDetail/clientDetail.vue
+++ b/pages/clientDetail/clientDetail.vue
@@ -62,7 +62,7 @@
编辑
-
+
已订阅产品
@@ -276,9 +276,10 @@
this.$util.to(path)
},
// 提交
- submit(ref) {
+ submit() {
const refs = this.$refs
const { form } = this
+ // 有大量数据的情况下,input输入用v-model会有bug,所以给每个input加ref来手动取值赋值
form.name = refs.nameInput.val
form.account = refs.accountInput.val
form.position = refs.positionInput.val
diff --git a/pages/invite/invite.vue b/pages/invite/invite.vue
index ffa2c37..cc09bcc 100644
--- a/pages/invite/invite.vue
+++ b/pages/invite/invite.vue
@@ -8,28 +8,29 @@
或然科技城市合伙人计划
加入并自动为你创建一个团队群组
-
+
-
+
-
+
{{ btnText }}
-
+