diff --git a/api/user.js b/api/user.js index a118a78..1fb1b88 100644 --- a/api/user.js +++ b/api/user.js @@ -687,4 +687,19 @@ export function hasServiceApi(id) { */ export function getBankInfo() { return request.get(`user/extract/history_bank`) -} \ No newline at end of file +} +// 客户管理 - 获取客户列表 +export function getCustomList(merId, data) { + return request.get("custom/list/"+merId, data); +} +// 客户管理 - 修改客户积分 +export function customIntegralChange(merId, data) { + return request.post("custom/integral_change/"+merId, data); +} + + + + + + + diff --git a/components/Authorize.vue b/components/Authorize.vue index 89b6288..6eb7381 100644 --- a/components/Authorize.vue +++ b/components/Authorize.vue @@ -185,6 +185,7 @@ }); }) .catch(res => { + console.log('Routine.getUserProfile catch',res); uni.hideLoading(); }); }, @@ -241,7 +242,8 @@ if (wx.getPrivacySetting) { wx.getPrivacySetting({ success: res => { - console.log(res.needAuthorization) + console.log("wx.getPrivacySetting success"); + console.log(res) if (res.needAuthorization) { // 需要弹出隐私协议 this.canGetPrivacySetting = true @@ -252,7 +254,9 @@ this.onAgree() } }, - fail: () => {}, + fail: (err) => { + console.log('wx.getPrivacySetting Fail',err); + }, complete: () => {} }) }else{ diff --git a/manifest.json b/manifest.json index a7747f3..8896ff5 100644 --- a/manifest.json +++ b/manifest.json @@ -1,6 +1,6 @@ { - "name" : "CRMEB", - "appid" : "__UNI__99FC347", + "name" : "万马奔腾", + "appid" : "__UNI__FADD765", "description" : "", "versionName" : "1.0.4", "versionCode" : 127, @@ -158,7 +158,7 @@ "quickapp" : {}, /* 小程序特有相关 */ "mp-weixin" : { - "appid" : "wx10df35b8f8f07887", + "appid" : "wx7aac64d4d4419260", "setting" : { "urlCheck" : false, "minified" : true, diff --git a/pages.json b/pages.json index b7b9b85..392fae5 100644 --- a/pages.json +++ b/pages.json @@ -677,15 +677,24 @@ "navigationBarTextStyle": "#FFFFFF" // #endif } - } + }, // #ifdef H5 - ,{ + { "path": "scan/index", "style": { "navigationBarTitleText": "手机扫码上传" } - } + }, // #endif + { + "path": "custom/index", + "style": { + "navigationBarTitleText": "客户管理" + } + } + + + ] }, { @@ -895,7 +904,7 @@ // "plugins": { // "live-player-plugin": { // "version": "1.3.2", -// "provider": "wx10df35b8f8f07887" +// "provider": "wx7aac64d4d4419260" // } // } }, diff --git a/pages/activity/liveBroadcast/index.vue b/pages/activity/liveBroadcast/index.vue index 211480e..e7500ca 100644 --- a/pages/activity/liveBroadcast/index.vue +++ b/pages/activity/liveBroadcast/index.vue @@ -3,7 +3,7 @@ - + diff --git a/pages/admin/business/index.vue b/pages/admin/business/index.vue index 0c15581..56f663f 100644 --- a/pages/admin/business/index.vue +++ b/pages/admin/business/index.vue @@ -72,7 +72,14 @@ icon: 'iconfont icon-shangjiaguanli' }); } - return list; + if(this.service.is_user){ + list.push({ + title: '用户管理', + url: '/pages/admin/custom/index?mer_id=' + merId, + icon: 'iconfont icon-kehu-xuanzhong' + }); + } + return list; } }, onLoad: function(options) { @@ -168,11 +175,12 @@ } .business-content { width: 100%; - padding: 0 18rpx; + padding: 0 calc((100% - (345rpx * 2)) / 3); margin-top: 151rpx; - display: flex; - justify-content: space-around; - flex-wrap: wrap; + display: inline-flex; + flex-wrap: wrap; + flex-direction: row; + justify-content: space-between; .listBox { width: 345rpx; height: 270rpx; diff --git a/pages/admin/custom/index.vue b/pages/admin/custom/index.vue new file mode 100644 index 0000000..88ed031 --- /dev/null +++ b/pages/admin/custom/index.vue @@ -0,0 +1,476 @@ + + + + + diff --git a/pages/index/component/liveBroadcast.vue b/pages/index/component/liveBroadcast.vue index 53bcb3a..aded8bf 100644 --- a/pages/index/component/liveBroadcast.vue +++ b/pages/index/component/liveBroadcast.vue @@ -14,7 +14,7 @@ - + - + 预告 @@ -98,7 +98,7 @@ - + 预告 @@ -195,7 +195,7 @@ res.data.list.forEach(val => { val.link = (val.live_status == 103 && val.replay_status) || val.live_status === 101 || val.live_status === 102 - ? 'plugin-private://wx10df35b8f8f07887/pages/live-player-plugin?room_id=' + val.room_id + ? 'plugin-private://wx7aac64d4d4419260/pages/live-player-plugin?room_id=' + val.room_id : ''; }); that.$set(that,'liveList',res.data.list) diff --git a/project.config.json b/project.config.json index 4a9a2b6..9a6f590 100644 --- a/project.config.json +++ b/project.config.json @@ -45,7 +45,7 @@ }, "compileType": "miniprogram", "libVersion": "2.14.3", - "appid": "wx10df35b8f8f07887", + "appid": "wx7aac64d4d4419260", "projectname": "crmeb_merchant_h5", "simulatorType": "wechat", "simulatorPluginLibVersion": {}, diff --git a/static/images/custom/creamer.png b/static/images/custom/creamer.png new file mode 100644 index 0000000..71ce6cf Binary files /dev/null and b/static/images/custom/creamer.png differ diff --git a/static/images/custom/custom_top_bg.jpg b/static/images/custom/custom_top_bg.jpg new file mode 100644 index 0000000..054a725 Binary files /dev/null and b/static/images/custom/custom_top_bg.jpg differ