Compare commits

...

206 Commits
cmx ... master

Author SHA1 Message Date
qxf
3c154f1416 Merge pull request 'qxf' (#116) from qxf into master
Reviewed-on: http://git.luyuan.tk/luyuan/demingshangjia/pulls/116
2020-12-01 18:03:14 +08:00
亓雪峰
3325704faa Merge branch 'master' of https://git.luyuan.tk/luyuan/demingshangjia into qxf 2020-12-01 18:01:46 +08:00
亓雪峰
125c198f5d 优化 用户协议与隐私政策 2020-12-01 17:55:49 +08:00
亓雪峰
1e06c5067f 隐私政策修改 2020-11-30 14:43:34 +08:00
aad77ed2cb Merge pull request '用户协议,隐私政策分开显示' (#115) from zhy into master
Reviewed-on: http://git.luyuan.tk/luyuan/demingshangjia/pulls/115
2020-11-27 17:38:55 +08:00
365c797e28 用户协议,隐私政策分开显示 2020-11-27 17:38:15 +08:00
a50daa3326 Merge pull request '添加用户隐私协议' (#114) from zhy into master
Reviewed-on: http://git.luyuan.tk/luyuan/demingshangjia/pulls/114
2020-11-27 14:09:36 +08:00
d47a2b7740 添加用户隐私协议 2020-11-27 14:07:25 +08:00
qxf
e405a2bd2b Merge pull request 'qxf' (#113) from qxf into master
Reviewed-on: http://git.luyuan.tk/luyuan/demingshangjia/pulls/113
2020-11-27 11:41:50 +08:00
亓雪峰
42b5488a52 登录时检查网络 2020-11-27 11:40:33 +08:00
亓雪峰
99ab0696ba 登录时检查网络连接是否正常 2020-11-27 11:36:15 +08:00
亓雪峰
02d289b31d Update manifest.json 2020-11-27 11:27:43 +08:00
ab87f8822b Merge pull request '添加用户反馈模块' (#112) from zhy into master
Reviewed-on: http://git.luyuan.tk/luyuan/demingshangjia/pulls/112
2020-11-25 16:26:51 +08:00
6945c21f10 添加用户反馈模块 2020-11-25 16:25:32 +08:00
亓雪峰
1529dcb6e6 Update login.vue 2020-11-09 17:43:58 +08:00
亓雪峰
da02e25fd1 修复 网络不通的情况下登录卡死的问题 2020-11-09 17:34:14 +08:00
亓雪峰
005ae548a8 修复 编译nvue文件样式报错的问题 2020-11-09 09:48:34 +08:00
亓雪峰
c330638827 修复 腾讯云cos配置失效的问题 2020-11-09 09:47:18 +08:00
亓雪峰
812bb07e1e 修复更换头像刷新不及时的问题 2020-10-17 09:52:15 +08:00
亓雪峰
b139bf1224 仅主评论可回复 2020-10-15 22:53:10 +08:00
亓雪峰
5757c4bce3 使用达人账号登录改为展示达人名称 2020-10-15 22:52:53 +08:00
亓雪峰
8aab721c0e 修复骑手派送传参问题 2020-10-15 21:20:04 +08:00
亓雪峰
2d76a8ea63 Update chatservice.js 2020-10-14 23:22:46 +08:00
亓雪峰
dfd9fb1b67 Update manifest.json 2020-10-14 15:31:40 +08:00
ee6e4102b6 Merge pull request '更换' (#111) from xbx into master
Reviewed-on: http://git.luyuan.tk/luyuan/demingshangjia/pulls/111
2020-09-25 17:43:48 +08:00
9e8d4d4b58
更换 2020-09-25 17:41:56 +08:00
gyh
055cdb654a Merge pull request 'gdpao' (#110) from gyh into master
Reviewed-on: http://git.luyuan.tk/luyuan/demingshangjia/pulls/110
2020-09-21 15:04:44 +08:00
Gdpao
e2e5cf8b42 gdpao 2020-09-21 15:03:27 +08:00
gyh
2f1b89c6a6 Merge pull request 'gdpao' (#109) from gyh into master
Reviewed-on: http://git.luyuan.tk/luyuan/demingshangjia/pulls/109
2020-09-20 18:20:36 +08:00
Gdpao
841dc290b2 gdpao 2020-09-20 18:19:35 +08:00
gyh
0610a0b157 Merge pull request 'gdpao' (#108) from gyh into master
Reviewed-on: http://git.luyuan.tk/luyuan/demingshangjia/pulls/108
2020-09-19 20:04:32 +08:00
Gdpao
49fe886234 gdpao 2020-09-19 20:02:43 +08:00
0f26f6737b Merge pull request '更换图片' (#107) from xbx into master
Reviewed-on: http://git.luyuan.tk/luyuan/demingshangjia/pulls/107
2020-09-19 16:15:29 +08:00
fb5c8aa476
更换图片 2020-09-19 16:14:56 +08:00
gyh
a732778481 Merge pull request 'gdpao' (#106) from gyh into master
Reviewed-on: http://git.luyuan.tk/luyuan/demingshangjia/pulls/106
2020-09-18 14:23:48 +08:00
Gdpao
2d7922ff96 gdpao 2020-09-18 14:22:31 +08:00
5b3dbd1dc2 Merge pull request '更改了字体 修复了10秒消失' (#105) from xbx into master
Reviewed-on: http://git.luyuan.tk/luyuan/demingshangjia/pulls/105
2020-09-18 09:52:24 +08:00
880ce7487b
更改了字体 修复了10秒消失 2020-09-18 09:51:48 +08:00
a6a65153ea Merge pull request 'xbx' (#104) from xbx into master
Reviewed-on: http://git.luyuan.tk/luyuan/demingshangjia/pulls/104
2020-09-17 19:44:21 +08:00
c77a7a4d5b
删除了断流提示 2020-09-17 19:18:42 +08:00
32bcfb92e1
消除了退出之后的探矿 2020-09-17 19:11:27 +08:00
100d4d67b9
一分钟之后文字消失 2020-09-17 19:04:55 +08:00
a1d9339948 Merge pull request 'xbx' (#103) from xbx into master
Reviewed-on: http://git.luyuan.tk/luyuan/demingshangjia/pulls/103
2020-09-16 19:06:03 +08:00
a4fee4682f
删除了清楚定时器 2020-09-16 19:05:13 +08:00
f74c8a8776
十秒提交一次 2020-09-16 19:01:33 +08:00
gyh
2f62fde4f6 Merge pull request 'gdpas' (#102) from gyh into master
Reviewed-on: http://git.luyuan.tk/luyuan/demingshangjia/pulls/102
2020-09-16 17:08:29 +08:00
Gdpao
905ae3b9da gdpas 2020-09-16 11:33:14 +08:00
gyh
341d733a16 Merge pull request 'gdpao' (#101) from gyh into master
Reviewed-on: http://git.luyuan.tk/luyuan/demingshangjia/pulls/101
2020-09-15 17:41:25 +08:00
Gdpao
c02acd7259 gdpao 2020-09-15 16:46:40 +08:00
aa0d7a4a06 Merge pull request '修复了清楚图片' (#100) from xbx into master
Reviewed-on: http://git.luyuan.tk/luyuan/demingshangjia/pulls/100
2020-09-11 20:43:37 +08:00
45b6086398
修复了清楚图片 2020-09-11 20:43:21 +08:00
f81ce05547 Merge pull request 'xbx' (#99) from xbx into master
Reviewed-on: http://git.luyuan.tk/luyuan/demingshangjia/pulls/99
2020-09-11 20:23:56 +08:00
fb81800253
涉黄提示 2020-09-11 20:23:34 +08:00
1f6d2b4ab3
删除了派送方式 2020-09-11 20:03:26 +08:00
52277be0c9
Merge branch 'master' of http://git.luyuan.tk/luyuan/demingshangjia into xbx 2020-09-11 19:46:31 +08:00
391fda5abc
修改了选择 2020-09-11 19:46:19 +08:00
f770b05dcd Merge pull request '修改了热度 => 观看人数' (#98) from xbx into master
Reviewed-on: http://git.luyuan.tk/luyuan/demingshangjia/pulls/98
2020-09-11 16:46:32 +08:00
6d3d176cd8
修改了热度 => 观看人数 2020-09-11 16:43:54 +08:00
gyh
909082f7ca Merge pull request 'gdpao' (#97) from gyh into master
Reviewed-on: http://git.luyuan.tk/luyuan/demingshangjia/pulls/97
2020-09-11 15:37:57 +08:00
Gdpao
dadb891236 gdpao 2020-09-11 15:25:57 +08:00
42e3c7d6a7 Merge pull request 'xbx' (#96) from xbx into master
Reviewed-on: http://git.luyuan.tk/luyuan/demingshangjia/pulls/96
2020-09-10 17:21:57 +08:00
8434b1e611
不变型 2020-09-10 17:21:26 +08:00
a0ccf26c99
member_id 2020-09-10 17:13:40 +08:00
gyh
541d8f9f6e Merge pull request 'gdzb' (#95) from gyh into master
Reviewed-on: http://git.luyuan.tk/luyuan/demingshangjia/pulls/95
2020-09-10 16:14:22 +08:00
5f56b7a27c Merge pull request 'xbx' (#94) from xbx into master
Reviewed-on: http://git.luyuan.tk/luyuan/demingshangjia/pulls/94
2020-09-10 16:01:29 +08:00
0c41f85630
修复 2020-09-10 16:01:16 +08:00
0087c0c3cd
修复了层次 2020-09-10 15:58:54 +08:00
Gdpao
c270f238bd gdzb 2020-09-10 14:48:17 +08:00
5add00c60a Merge pull request 'xbx' (#93) from xbx into master
Reviewed-on: http://git.luyuan.tk/luyuan/demingshangjia/pulls/93
2020-09-10 11:38:51 +08:00
c236af5986
删除 2020-09-10 11:38:33 +08:00
d86dc49da2
修改了标题提示 2020-09-10 11:37:37 +08:00
4c8309ca66
Merge branch 'master' of http://git.luyuan.tk/luyuan/demingshangjia into xbx 2020-09-10 10:05:18 +08:00
e173f3c2a8
Merge branch 'xbx' of http://git.luyuan.tk/luyuan/demingshangjia into xbx 2020-09-10 10:05:14 +08:00
d0107c5729
临时修复了提示 2020-09-10 10:05:04 +08:00
gyh
1309fec9c3 Merge pull request 'gyh' (#92) from gyh into master
Reviewed-on: http://git.luyuan.tk/luyuan/demingshangjia/pulls/92
2020-09-10 09:58:33 +08:00
b2d7ae4ec5
临时修复了提示 2020-09-10 09:27:12 +08:00
Gdpao
75e02e0228 gdpao 2020-09-10 09:20:30 +08:00
Gdpao
3e8caffe19 gdpaoup 2020-09-07 17:10:24 +08:00
gyh
571489743a Merge pull request 'gdpao' (#91) from gyh into master
Reviewed-on: http://git.luyuan.tk/luyuan/demingshangjia/pulls/91
2020-09-07 16:22:45 +08:00
Gdpao
f7f3fee4ad gdpao 2020-09-07 16:22:11 +08:00
gyh
1f70d8dfcb Merge pull request 'gdpaoup' (#90) from gyh into master
Reviewed-on: http://git.luyuan.tk/luyuan/demingshangjia/pulls/90
2020-09-05 20:05:02 +08:00
Gdpao
8c89864beb gdpaoup 2020-09-05 17:22:53 +08:00
gyh
af908a3dda Merge pull request 'gdpao' (#89) from gyh into master
Reviewed-on: http://git.luyuan.tk/luyuan/demingshangjia/pulls/89
2020-09-05 15:32:35 +08:00
9ee97373bc Merge pull request 'xbx' (#88) from xbx into master
Reviewed-on: http://git.luyuan.tk/luyuan/demingshangjia/pulls/88
2020-09-05 15:28:45 +08:00
Gdpao
388daaa901 gdpao 2020-09-05 12:30:22 +08:00
0f85f77520
添加了一个输出 2020-09-05 12:18:05 +08:00
23916ea7fa
解决了划走之后的问题 2020-09-05 12:09:57 +08:00
gyh
539309b370 Merge pull request 'GDPAO' (#87) from gyh into master
Reviewed-on: http://git.luyuan.tk/luyuan/demingshangjia/pulls/87
2020-09-04 19:53:27 +08:00
Gdpao
0824d97080 GDPAO 2020-09-04 19:52:43 +08:00
b98baa39aa Merge pull request '文案' (#86) from xbx into master
Reviewed-on: http://git.luyuan.tk/luyuan/demingshangjia/pulls/86
2020-09-03 18:08:38 +08:00
0619bbd901
文案 2020-09-03 18:08:10 +08:00
60cb9294fc Merge pull request '添加了强制重新渲染' (#85) from xbx into master
Reviewed-on: http://git.luyuan.tk/luyuan/demingshangjia/pulls/85
2020-09-03 11:45:18 +08:00
cd89acf38c
添加了强制重新渲染 2020-09-03 11:44:16 +08:00
gyh
c4114bcfc5 Merge pull request 'gdpao' (#84) from gyh into master
Reviewed-on: http://git.luyuan.tk/luyuan/demingshangjia/pulls/84
2020-09-03 10:27:40 +08:00
Gdpao
f2e3427260 gdpao 2020-09-03 10:26:55 +08:00
gyh
dbf18d4091 Merge pull request 'gdpao' (#83) from gyh into master
Reviewed-on: http://git.luyuan.tk/luyuan/demingshangjia/pulls/83
2020-09-02 14:52:12 +08:00
Gdpao
7d066ca67d gdpao 2020-09-02 14:05:08 +08:00
gyh
22901579b9 Merge pull request 'gdpao' (#82) from gyh into master
Reviewed-on: http://git.luyuan.tk/luyuan/demingshangjia/pulls/82
2020-09-01 20:36:06 +08:00
Gdpao
3ecaac3190 gdpaomg 2020-09-01 20:35:48 +08:00
Gdpao
c5b3505dcd gdpao 2020-09-01 20:32:15 +08:00
b9eceb6ecf Merge pull request '添加了购买人数' (#81) from xbx into master
Reviewed-on: http://git.luyuan.tk/luyuan/demingshangjia/pulls/81
2020-09-01 17:33:52 +08:00
2bdd8e2b7f
添加了购买人数 2020-09-01 16:59:55 +08:00
5017534a24 Merge pull request '字体换行' (#80) from xbx into master
Reviewed-on: http://git.luyuan.tk/luyuan/demingshangjia/pulls/80
2020-09-01 16:55:45 +08:00
f9f6bba08b
字体换行 2020-09-01 16:53:49 +08:00
2f103eafbe Merge pull request '修改了大小写' (#79) from xbx into master
Reviewed-on: http://git.luyuan.tk/luyuan/demingshangjia/pulls/79
2020-09-01 16:15:23 +08:00
64824a8fb7
修改了大小写 2020-09-01 16:15:09 +08:00
721087e372 Merge pull request '添加活动消息' (#78) from xbx into master
Reviewed-on: http://git.luyuan.tk/luyuan/demingshangjia/pulls/78
2020-09-01 16:07:09 +08:00
164b7f8e4c
Merge branch 'master' of http://git.luyuan.tk/luyuan/demingshangjia into xbx 2020-09-01 16:06:27 +08:00
a80c2e53b8
添加活动消息 2020-09-01 16:05:34 +08:00
f7da2d452c Merge pull request '添加了直播' (#77) from xbx into master
Reviewed-on: http://git.luyuan.tk/luyuan/demingshangjia/pulls/77
2020-09-01 11:38:42 +08:00
e91b35d1e3
添加了直播 2020-09-01 11:38:18 +08:00
gyh
115400353f Merge pull request 'gdpao' (#76) from gyh into master
Reviewed-on: http://git.luyuan.tk/luyuan/demingshangjia/pulls/76
2020-09-01 09:19:14 +08:00
Gdpao
dd5a59cccb gdpao 2020-09-01 08:46:33 +08:00
c9b9dc1610 Merge pull request 'xbx' (#75) from xbx into master
Reviewed-on: http://git.luyuan.tk/luyuan/demingshangjia/pulls/75
2020-08-29 00:14:35 +08:00
a6328358e2
修复了登录跳转 2020-08-28 15:54:36 +08:00
7c839816d4
删除了平台达人的购物袋 2020-08-28 15:48:12 +08:00
13524dcefc
更换图标 2020-08-28 15:18:40 +08:00
784cd1ec89
添加了图标 2020-08-28 15:17:29 +08:00
aac975e921
消息完成 2020-08-28 15:04:32 +08:00
1305931e3b
通知和提示 2020-08-28 14:51:35 +08:00
gyh
0562cfd830 Merge pull request 'gdpao' (#74) from gyh into master
Reviewed-on: http://git.luyuan.tk/luyuan/demingshangjia/pulls/74
2020-08-28 14:18:37 +08:00
Gdpao
14b0d68ce4 gdpao 2020-08-28 14:17:51 +08:00
40e252c400
通知页面 2020-08-27 16:02:27 +08:00
5dd01ffa93 Merge pull request 'xbx' (#73) from xbx into master
Reviewed-on: http://git.luyuan.tk/luyuan/demingshangjia/pulls/73
2020-08-27 14:04:24 +08:00
gyh
06bbd3d600 Merge pull request 'gdpao' (#72) from gyh into master
Reviewed-on: http://git.luyuan.tk/luyuan/demingshangjia/pulls/72
2020-08-27 11:29:14 +08:00
Gdpao
3097bf8b91 gdpao 2020-08-27 11:28:17 +08:00
c5305c5a72
添加了铃声 2020-08-27 11:01:26 +08:00
4e02daa854
t添加了提示和直播 2020-08-27 09:52:43 +08:00
gyh
022192c9d6 Merge pull request 'gdpao' (#71) from gyh into master
Reviewed-on: http://git.luyuan.tk/luyuan/demingshangjia/pulls/71
2020-08-25 11:13:35 +08:00
Gdpao
94c22fdef1 gdpao 2020-08-25 11:12:33 +08:00
gyh
8ce148950a Merge pull request 'gdpao' (#70) from gyh into master
Reviewed-on: http://git.luyuan.tk/luyuan/demingshangjia/pulls/70
2020-08-24 15:49:30 +08:00
Gdpao
e58a1a6ef6 gdpao 2020-08-24 15:48:54 +08:00
6d4c9dc5a4 Merge pull request '添加了退出登录' (#69) from xbx into master
Reviewed-on: http://git.luyuan.tk/luyuan/demingshangjia/pulls/69
2020-08-22 16:59:04 +08:00
9361f5bffe
添加了退出登录 2020-08-22 16:58:18 +08:00
gyh
3fe8f15aad Merge pull request 'gdpao' (#68) from gyh into master
Reviewed-on: http://git.luyuan.tk/luyuan/demingshangjia/pulls/68
2020-08-20 15:34:59 +08:00
Gdpao
84c02f90f7 gdpao 2020-08-20 15:34:04 +08:00
93dfeaa36d Merge pull request '关闭按钮' (#67) from xbx into master
Reviewed-on: http://git.luyuan.tk/luyuan/demingshangjia/pulls/67
2020-08-20 11:07:11 +08:00
fc4c187702 Merge branch 'master' into xbx 2020-08-20 11:06:58 +08:00
84240fedb8
关闭按钮 2020-08-20 11:05:24 +08:00
gyh
4c3808d2ff Merge pull request 'gdpao' (#66) from gyh into master
Reviewed-on: http://git.luyuan.tk/luyuan/demingshangjia/pulls/66
2020-08-19 19:27:26 +08:00
Gdpao
32d23e4bb0 gdpao 2020-08-19 19:26:54 +08:00
gyh
380bd7dc9c Merge pull request 'gdpao' (#65) from gyh into master
Reviewed-on: http://git.luyuan.tk/luyuan/demingshangjia/pulls/65
2020-08-18 15:59:42 +08:00
Gdpao
b35222853d gdpao 2020-08-18 15:58:57 +08:00
e07c2288dc Merge pull request '修复了提交' (#64) from xbx into master
Reviewed-on: http://git.luyuan.tk/luyuan/demingshangjia/pulls/64
2020-08-18 15:56:34 +08:00
2f4e938a2b
修复了提交 2020-08-18 15:56:10 +08:00
baf39b01e2 Merge pull request '域名' (#63) from xbx into master
Reviewed-on: http://git.luyuan.tk/luyuan/demingshangjia/pulls/63
2020-08-18 15:31:33 +08:00
79990e56d2
域名 2020-08-18 15:31:03 +08:00
19187b67fc Merge pull request 'paixu' (#62) from xbx into master
Reviewed-on: http://git.luyuan.tk/luyuan/demingshangjia/pulls/62
2020-08-18 15:27:14 +08:00
5fd62e4010
paixu 2020-08-18 15:26:20 +08:00
22bc2a4b89 Merge pull request '替换域名' (#61) from xbx into master
Reviewed-on: http://git.luyuan.tk/luyuan/demingshangjia/pulls/61
2020-08-18 15:20:10 +08:00
7090635886
替换域名 2020-08-18 15:19:29 +08:00
87c321be99 Merge pull request '达人链接聊天室' (#60) from xbx into master
Reviewed-on: http://git.luyuan.tk/luyuan/demingshangjia/pulls/60
2020-08-17 08:59:20 +08:00
4f7fc23c23
达人链接聊天室 2020-08-17 08:57:44 +08:00
gyh
3641264d19 Merge pull request 'gyh' (#59) from gyh into master
Reviewed-on: http://git.luyuan.tk/luyuan/demingshangjia/pulls/59
2020-08-17 08:48:45 +08:00
Gdpao
cf7d689ce0 Merge branch 'master' of http://git.luyuan.tk/luyuan/demingshangjia into gyh 2020-08-15 19:11:56 +08:00
gyh
1cc6fc56d1 Merge pull request 'gdpao' (#58) from gyh into master
Reviewed-on: http://git.luyuan.tk/luyuan/demingshangjia/pulls/58
2020-08-15 19:11:25 +08:00
Gdpao
d1aaa525ed Merge branch 'master' of http://git.luyuan.tk/luyuan/demingshangjia into gyh 2020-08-15 19:09:29 +08:00
Gdpao
8ff58e1a31 gdpao 2020-08-15 19:09:02 +08:00
b1c7f612f1 Merge pull request '删除验证' (#57) from xbx into master
Reviewed-on: http://git.luyuan.tk/luyuan/demingshangjia/pulls/57
2020-08-15 19:08:05 +08:00
4bf837d53e
删除验证 2020-08-15 17:52:55 +08:00
5fc375e589 Merge pull request '添加空提示' (#56) from xbx into master
Reviewed-on: http://git.luyuan.tk/luyuan/demingshangjia/pulls/56
2020-08-15 16:06:47 +08:00
3d04824b83
添加空提示 2020-08-15 16:06:20 +08:00
960f0453ec Merge pull request 'xbx' (#55) from xbx into master
Reviewed-on: http://git.luyuan.tk/luyuan/demingshangjia/pulls/55
2020-08-15 15:58:53 +08:00
1cc3f289fe
添加了梦层 2020-08-15 15:58:26 +08:00
3884f93ad8
修复了商家名字 2020-08-15 13:33:58 +08:00
gyh
e759f15852 Merge pull request 'gdpaoup' (#54) from gyh into master
Reviewed-on: http://git.luyuan.tk/luyuan/demingshangjia/pulls/54
2020-08-14 20:50:35 +08:00
Gdpao
3e7165ef19 gdpao 2020-08-14 20:50:23 +08:00
Gdpao
2bf46d983a gdpaoup 2020-08-14 20:48:14 +08:00
fd78ec19db Merge pull request 'xbx' (#53) from xbx into master
Reviewed-on: http://git.luyuan.tk/luyuan/demingshangjia/pulls/53
2020-08-14 17:11:41 +08:00
f57ebac022
修复了不刷新 2020-08-14 17:11:17 +08:00
8276bf358f
信息 2020-08-14 17:09:31 +08:00
67edac985e
Merge branch 'master' of http://git.luyuan.tk/luyuan/demingshangjia into xbx 2020-08-14 14:51:16 +08:00
74b10f4620
直播人数 2020-08-14 14:38:43 +08:00
gyh
12d095dc05 Merge pull request 'gdpaoup' (#52) from gyh into master
Reviewed-on: http://git.luyuan.tk/luyuan/demingshangjia/pulls/52
2020-08-14 12:18:34 +08:00
Gdpao
c9c714d4e3 gdpaoup 2020-08-14 12:17:28 +08:00
17e336f0fc Merge pull request '修正了' (#51) from xbx into master
Reviewed-on: http://git.luyuan.tk/luyuan/demingshangjia/pulls/51
2020-08-14 11:08:04 +08:00
bfa4ed6edb
修正了 2020-08-14 11:07:09 +08:00
0e33599174 Merge pull request 'xbx' (#50) from xbx into master
Reviewed-on: http://git.luyuan.tk/luyuan/demingshangjia/pulls/50
2020-08-14 09:41:26 +08:00
7755f54f07
返回 2020-08-14 09:40:54 +08:00
0b5892cfbd
返回提示 2020-08-14 09:35:56 +08:00
ff4c3982ba Merge pull request '图片上传' (#49) from xbx into master
Reviewed-on: http://git.luyuan.tk/luyuan/demingshangjia/pulls/49
2020-08-14 08:49:15 +08:00
36080fd730
图片上传 2020-08-14 08:48:40 +08:00
gyh
81ec6586e3 Merge pull request 'gdpao' (#48) from gyh into master
Reviewed-on: http://git.luyuan.tk/luyuan/demingshangjia/pulls/48
2020-08-14 08:28:18 +08:00
Gdpao
150c3337e4 gdpao 2020-08-14 08:26:50 +08:00
fbdd3f20b4 Merge pull request '直播人数' (#47) from xbx into master
Reviewed-on: http://git.luyuan.tk/luyuan/demingshangjia/pulls/47
2020-08-13 16:25:21 +08:00
0b0ac462a7
直播人数 2020-08-13 16:24:55 +08:00
7c16e8c190 Merge pull request '透明图标' (#46) from xbx into master
Reviewed-on: http://git.luyuan.tk/luyuan/demingshangjia/pulls/46
2020-08-13 12:10:49 +08:00
1f54899b66
透明图标 2020-08-13 12:10:21 +08:00
7e37f71d56 Merge pull request 'xbx' (#45) from xbx into master
Reviewed-on: http://git.luyuan.tk/luyuan/demingshangjia/pulls/45
2020-08-13 12:01:13 +08:00
3c44ad2811
修改了语音的样式 2020-08-13 12:00:44 +08:00
186f1cdb27
语音样式 2020-08-13 11:58:06 +08:00
209cb7d9fb Merge pull request 'xbx' (#44) from xbx into master
Reviewed-on: http://git.luyuan.tk/luyuan/demingshangjia/pulls/44
2020-08-13 11:37:40 +08:00
e4f917a9cf
关闭直播页面 2020-08-13 11:36:47 +08:00
06092fb183
直播热度与按钮修改 2020-08-13 11:32:40 +08:00
cmx
252e4b7deb Merge pull request 'update adout upload adout tencentCOS' (#43) from cmx into master
Reviewed-on: http://git.luyuan.tk/luyuan/demingshangjia/pulls/43
2020-08-12 15:18:55 +08:00
5b2745051e Merge pull request '修改了图片' (#42) from xbx into master
Reviewed-on: http://git.luyuan.tk/luyuan/demingshangjia/pulls/42
2020-08-12 15:02:46 +08:00
f58cc207c4 Merge branch 'master' into xbx 2020-08-12 15:02:41 +08:00
192bd462d4
修改了图片 2020-08-12 15:01:25 +08:00
efde545104 Merge pull request '更换图片' (#41) from xbx into master
Reviewed-on: http://git.luyuan.tk/luyuan/demingshangjia/pulls/41
2020-08-12 11:34:02 +08:00
b1e5b24319
更换图片 2020-08-12 11:31:57 +08:00
cmx
2ea72995a9 Merge pull request 'fixed bug' (#40) from cmx into master
Reviewed-on: http://git.luyuan.tk/luyuan/demingshangjia/pulls/40
2020-08-11 20:39:12 +08:00
5500dc9f73 Merge pull request 'xbx' (#39) from xbx into master
Reviewed-on: http://git.luyuan.tk/luyuan/demingshangjia/pulls/39
2020-08-11 18:28:33 +08:00
d97b749a0a
文本 2020-08-11 18:27:31 +08:00
cf76518bc9
time 2020-08-11 14:31:45 +08:00
8d7e4b2ce4
消息 2020-08-11 11:25:44 +08:00
cmx
7bfce17816 Merge pull request 'fixed bug adout publish shop' (#38) from cmx into master
Reviewed-on: http://git.luyuan.tk/luyuan/demingshangjia/pulls/38
2020-08-11 09:41:52 +08:00
49 changed files with 2728 additions and 332 deletions

20
App.vue
View File

@ -4,14 +4,28 @@ export default {
im: {}
},
onLaunch: function() {
//
// #ifdef APP-PLUS
plus.screen.lockOrientation('portrait-primary');
// #endif
getApp().globalData.im = this.imService
console.log('App Launch');
// console.log('App Launch');
// token
uni.getStorage({
key: "token",
success: (res) => {
// uni.switchTab({
// url: "/pages/index/index"
// })
}
})
},
onShow: function() {
console.log('App Show');
// console.log('App Show');
},
onHide: function() {
console.log('App Hide');
// console.log('App Hide');
}
};
</script>

View File

@ -77,7 +77,6 @@ const install = (Vue, vm) => {
return vm.$u.post("/Takeawayer/tryOrderSnList")
},
// 投诉骑手
reportorder({order_id,takeawayer_id,order_list,content}){
return vm.$u.post("/takeawayer/complaintTakeawayer",{order_id,takeawayer_id,order_list,content})
},
@ -114,13 +113,17 @@ const install = (Vue, vm) => {
return vm.$u.post("/order/goodsTryOrderInfo",{goods_try_id})
},
// 绑定物流订单
bindpushid({order_id,shipping_code,shipping_express_id}){
return vm.$u.post("/order/send",{order_id,shipping_code,shipping_express_id})
bindpushid({store_deliver_type,order_id,shipping_code,shipping_express_id}){
return vm.$u.post("/order/send",{store_deliver_type,order_id,shipping_code,shipping_express_id})
},
// 绑定骑手
bindcarer({order_id,takeawayer_id}){
return vm.$u.post("/order/orderRider",{order_id,takeawayer_id})
bindcarer({store_deliver_type,order_id,takeawayer_id}){
return vm.$u.post("/order/send",{store_deliver_type,order_id,takeawayer_id})
},
// 自提
bindmention({store_deliver_type,shipping_express_id,deliver_explain,order_id,sendimg}) {
return vm.$u.post("/order/send",{store_deliver_type,shipping_express_id,deliver_explain,order_id,sendimg})
},
// 发货物流公司
pushcompany(){
return vm.$u.post("/order/getExpress")
@ -132,8 +135,34 @@ const install = (Vue, vm) => {
// 试穿
agreetest({goods_try_id,type,takeawayer_id}){
return vm.$u.post("/order/goodsTryAgree",{goods_try_id,type,takeawayer_id})
}
},
// 物流
getcarinfo({order_id}) {
return vm.$u.post("/Order/orderLogistics",{order_id})
},
messageList({page = 1}){
return vm.$u.post("/message/messageList",{page})
},
isread(){
return vm.$u.post("/message/isread")
},
messageInfo({id}){
return vm.$u.post("/message/messageInfo",{id})
},
// 达人验证码
getCode({member_mobile,smslog_type=2}) {
return vm.$u.post("/Sms/sendSmsCode",{member_mobile,smslog_type})
},
// 达人登录
starLogin({member_mobile,sms_code}) {
return vm.$u.post("/Login/platformExpertPhoneLogin",{member_mobile,sms_code})
},
//上传直播间人数
//https://mall.dmygkeji.com/storeapi/Streaming/changeLiveRealtimeNumber?live_id=1&realtime_number=10
changeLiveRealtimeNumber({id,number}){
return vm.$u.post("Streaming/changeLiveRealtimeNumber",{live_id:id,realtime_number:number})
}
}
// 将各个定义的接口名称统一放进对象挂载到vm.$u.api(因为vm就是this也即this.$u.api)下

View File

@ -1,7 +1,7 @@
const install = (Vue, vm) => {
// 此为自定义配置参数,具体参数见上方说明
Vue.prototype.$u.http.setConfig({
baseUrl: 'https://dmmall.sdbairui.com/storeapi',
baseUrl: 'https://mall.dmygkeji.com/storeapi',
loadingText: '努力加载中~',
loadingTime: 800,
originalData: true,

View File

@ -40,11 +40,12 @@
padding: 6rpx 10rpx;
height: 72rpx;
line-height: 72rpx;
background: #D02129;
background: #FF780F;
font-size: 24rpx;
border-radius: 14rpx;
color: #ffffff;
display: flex;
flex-direction: row-reverse;
}
.audio-facade-bg{
background: url("./images/voice.png") no-repeat center;

Binary file not shown.

Before

Width:  |  Height:  |  Size: 2.3 KiB

After

Width:  |  Height:  |  Size: 2.2 KiB

Binary file not shown.

View File

@ -1,6 +1,6 @@
<template>
<view class="content-item">
<view class="image">
<view class="image" @click="toDetailsPage">
<image class="cover" :src="info.article_pic" alt="没有图片"></image>
<image src="/static/image/user/5.png" class="play-icon" v-if="type==2"></image>
</view>

View File

@ -14,11 +14,13 @@
<view class="status" v-else-if="info.view_type==5">已退款订单</view>
<view class="status" v-else-if="info.view_type==6">商家同意</view>
<view class="status" v-else-if="info.view_type==7">商家拒绝</view>
<view class="status" v-else-if="info.view_type==10">待支付订单</view>
</view>
<view class="name u-line-1">{{info.extend_order_goods[0].goods_name}}</view>
<view class="info">
<view class="num">{{info.count_number}}件商品</view>
<view class="price">实付<span>{{info.order_amount}}</span></view>
<view class="price">{{ info.view_type==10 ? "待支付" : "实付" }}<span>{{info.order_amount}}</span></view>
<view class="time">{{ info.view_type==10 ? info.add_time.slice(5,16) : info.payment_time.slice(5,16) }}</view>
</view>
</view>
</view>
@ -48,14 +50,14 @@ export default {
height: 220rpx;
background: rgba(255,255,255,1);
border-radius: 10rpx;
padding: 30rpx;
padding: 20rpx 10rpx;
display: flex;
align-items: center;
> image {
width: 160rpx;
height: 160rpx;
flex-shrink: 0;
margin-right: 25rpx;
margin-right: 20rpx;
}
.goods {
display: flex;
@ -82,9 +84,10 @@ export default {
margin-bottom: 30rpx;
}
.info {
width: 100%;
width: 470rpx;
display: flex;
align-items: center;
justify-content: space-between;
font-size: 26rpx;
color: rgba(102,102,102,1);
.price {
@ -94,6 +97,9 @@ export default {
}
}
}
.time {
font-size: 20rpx;
}
}
}
</style>

View File

@ -16,6 +16,7 @@
<view class="info">
<view class="num">{{info.goods_try_num}}件商品</view>
<view class="price">实付<span>{{info.price}}</span></view>
<!-- <view class="time">{{ info.payment_time.slice(5,16) }}</view> -->
</view>
</view>
</view>
@ -33,6 +34,9 @@ export default {
toDetailsPage() {
let type =0
let info = this.info
if(info.is_delete == 1){
return ;
}
if(info.goods_try_order_status==0){
type=1
}else if(info.goods_try_order_status==20){

View File

@ -2,10 +2,16 @@
<view id="release">
<!-- 标签 -->
<view>
<view class="titles">标签</view>
<view class="titles flex-title">
<text>标签</text>
<text @click="editing">{{ is_edit ? "取消编辑" : "编辑" }}</text>
</view>
<view class="form-view" @click="show_add()">+ 新建标签</view>
<view class="form-view" :class=" {'cur': rSelect.indexOf(item.id)!=-1} " @tap="tapInfo(item.id)" v-for="(item,index) in fileListes"
:key="index">{{item.name}}</view>
:key="index">
{{item.name}}
<u-icon v-show="is_edit && item.user_id != 0" class="close" name="close" color="#666" size="18" @click="isTable(item.id,index)"></u-icon>
</view>
</view>
<!-- 添加标签的按钮 -->
<u-popup v-model="show" mode="center" border-radius="14" :closeable="true">
@ -35,7 +41,8 @@
action: 'http://www.example.com/upload',
fileList: [],
show: false,
rSelect: []
rSelect: [],
is_edit: false,
}
},
props:['fileListes'],
@ -44,6 +51,10 @@
console.log(this.show)
this.show = !this.show
},
//
editing() {
this.is_edit = !this.is_edit;
},
//
tapInfo(e) {
if (this.rSelect.indexOf(e) == -1) {
@ -54,6 +65,31 @@
}
this.$emit("qiehuan",this.rSelect)
},
//
isTable(id,index) {
uni.showModal({
title: "提示",
content: "是否删除此标签?",
success: (res) => {
console.log();
if (res.confirm) {
this.delTable(id,index);
}
}
})
},
delTable(id,index) {
let me = this;
this.$u.post("Streaming/deltLabel", {label_id: id}).then(res => {
if (res.errCode == 0) {
this.$refs.uToast.show({
title: res.message,
type: 'success'
});
this.fileListes.splice(index,1);
}
})
},
chuangjian(){
this.$u.api.createLivesp({spec_name:this.form.name}).then((res)=>{
if(res.errCode != 0){
@ -62,7 +98,8 @@
type: 'error'
})
}else{
this.show_add()
this.show_add();
this.fileListes.push(res.data);
this.$refs.uToast.show({
title: res.message,
type: 'success'
@ -81,6 +118,11 @@
width: 690rpx;
margin: 0 auto;
.flex-title {
display: flex;
justify-content: space-between;
}
.form-view {
background: rgba(255, 255, 255, 1);
border-radius: 6rpx;
@ -90,6 +132,10 @@
display: inline-block;
margin-bottom: 28rpx;
color: #333;
.close {
margin-left: 10rpx;
vertical-align: middle;
}
}
.titles {

View File

@ -2,8 +2,8 @@
"name" : "德铭阳光商家",
"appid" : "__UNI__EA895BE",
"description" : "",
"versionName" : "1.0.0",
"versionCode" : "100",
"versionName" : "1.0.1",
"versionCode" : 103,
"transformPx" : false,
/* 5+App */
"app-plus" : {
@ -16,6 +16,13 @@
"autoclose" : true,
"delay" : 0
},
"safearea" : {
//iOS
"bottom" : {
//
"offset" : "none" // "none""auto""none"
}
},
/* */
"modules" : {
"Push" : {},
@ -54,7 +61,13 @@
"abiFilters" : [ "armeabi-v7a", "x86" ]
},
/* ios */
"ios" : {},
"ios" : {
"privacyDescription" : {
"NSPhotoLibraryUsageDescription" : "应用将在您上传图文视频等服务中使用您的相册。",
"NSMicrophoneUsageDescription" : "应用将会在您开启直播时使用您的麦克风。",
"NSCameraUsageDescription" : "应用将会在您开启直播时使用您的摄像头。"
}
},
/* SDK */
"sdkConfigs" : {
"ad" : {},
@ -97,7 +110,13 @@
"splashscreen" : {
"iosStyle" : "storyboard",
"ios" : {
"storyboard" : "E:/Source-code/deming/static/CustomStoryboard.zip"
"storyboard" : "/Users/xf/workspace/wwwroot/deming-uniapp/static/CustomStoryboard.zip"
},
"androidStyle" : "default",
"android" : {
"hdpi" : "/Users/xf/workspace/wwwroot/deming-uniapp/static/app/start/480x762.png",
"xhdpi" : "/Users/xf/workspace/wwwroot/deming-uniapp/static/app/start/720x1242.png",
"xxhdpi" : "/Users/xf/workspace/wwwroot/deming-uniapp/static/app/start/1080x1882.png"
}
}
}

View File

@ -13,6 +13,30 @@
}
}
},
{
"path": "pages/login/agreements",
"style": {
"navigationBarTitleText": "用户协议",
"app-plus": {
"titleNView": {
"backgroundColor": "#FFFFFF",
"titleColor": "#333333"
}
}
}
},
{
"path": "pages/login/privacy_policy",
"style": {
"navigationBarTitleText": "隐私政策",
"app-plus": {
"titleNView": {
"backgroundColor": "#FFFFFF",
"titleColor": "#333333"
}
}
}
},
{
"path": "pages/release/tosign",
"style": {
@ -49,7 +73,7 @@
{
"path": "pages/index/index",
"style": {
"navigationBarTitleText": "德铭阳光在线",
"navigationBarTitleText": "德铭阳光商家",
"app-plus": {
"titleNView": {
"backgroundColor": "#FFFFFF",
@ -222,6 +246,18 @@
}
}
},
{
"path": "pages/user/feedback",
"style": {
"navigationBarTitleText": "用户反馈",
"app-plus": {
"titleNView": {
"backgroundColor": "#FFFFFF",
"titleColor": "#333333"
}
}
}
},
{
"path": "pages/user/complaintDetails",
"style": {
@ -256,8 +292,30 @@
"animationType": "slide-in-bottom"
}
}
},
{
"path": "pages/messages/list",
"style": {
"navigationBarTitleText": "活动列表",
"app-plus": {
}
}
},
{
"path": "pages/messages/info",
"style": {
"navigationBarTitleText": "活动详情",
"app-plus": {
}
}
}
],
,{
"path" : "pages/index/mention",
"style" : {
"navigationBarTitleText": "上传凭证"
}
}
],
"globalStyle": {
"navigationBarTextStyle": "black",
"navigationBarTitleText": "uni-app",
@ -291,6 +349,5 @@
"text": "我的",
"selectedColor": "#FBFBFB"
}]
}
}

View File

@ -16,19 +16,19 @@
</view>
</view>
<u-radio-group class="box" v-model="value" v-if="type>3">
<view class="goods-info" v-for="list in info.refund_list">
<image :src="list.goods_image"></image>
<view class="goods-info" v-for="list in info.goods_list">
<image :src="list.image_480_url"></image>
<view class="info-right">
<view class="name u-line-1">{{ list.goods_name }}</view>
<view class="info">
<view class="num">{{ list.goods_num }}件商品</view>
<view class="price">
实付
<span>{{ list.refund_amount }}</span>
{{ type == 10 ? "待支付" : "实付" }}
<span>{{ list.goods_pay_price }}</span>
</view>
</view>
</view>
<u-radio :name="list.refund_id" v-if="type==4" shape="circle" @change="radioGroupChange">
<!-- <u-radio :name="list.refund_id" v-if="type==4" shape="circle" @change="radioGroupChange"> -->
</u-radio >
</view>
</u-radio-group>
@ -43,12 +43,27 @@
</view>
<view>
<view class="title">手机号</view>
<view class="value">{{ info.extend_order_common.reciver_info.mob_phone }}</view>
<view class="value" @longtap="longtap(info.extend_order_common.reciver_info.mob_phone)">{{ info.extend_order_common.reciver_info.mob_phone }}</view>
</view>
<view>
<view class="title">收货地址</view>
<view class="value u-line-1">{{ info.extend_order_common.reciver_info.address }}</view>
<view class="value u-line-2" @longtap="longtap(info.extend_order_common.reciver_info.address)">{{ info.extend_order_common.reciver_info.address }}</view>
</view>
<view>
<view class="title">派送方式</view>
<view class="value u-line-1">{{ users_type == 0 ? "-" : users_type == 1 ? "快递" : users_type == 2 ? "骑手" : "自提" }}</view>
</view>
<view class="remark">
<view class="title">订单备注</view>
<view class="value" @longtap="longtap(info.extend_order_common.order_message)">{{ info.extend_order_common.order_message }}</view>
</view>
<view @click="showInvoice">
<view class="title">开具发票</view>
<view class="invoice">
<text>{{ is_invoice ? "是" : "否" }}</text>
<u-icon name="arrow-right" color="#999" size="20" style="margin-left: 10rpx;"></u-icon>
</view>
</view>
</view>
</view>
<!-- 待处理之后的 -->
@ -69,22 +84,57 @@
</view>
</view>
<!-- 待处理 -->
<view class="delivery" v-if="type == 1">
<view class="delivery" v-if="type == 1 && cur != -1">
<view class="title">派送方式</view>
<view class="methods">
<view :class="{ active: cur == 0 }" @click="pushstyleA">快递</view>
<view :class="{ active: cur == 1 }" @click="pushstyleB">骑手</view>
<view :style="{'color': this.cur == -1 ? '#333' : '' }" :class="{ active: cur == 0 }" @click="pushstyleA">快递</view>
<view :style="{'color': this.cur == -1 ? '#333' : '' }" :class="{ active: cur == 1 }" @click="pushstyleB">骑手</view>
<view :class="{ active: cur == 2 }" @click="pushstyleC">自提</view>
</view>
<view v-if="pushstyleBshow && (pushid || selctcar)" >
<view class="title">{{cur == 0 ? '快递单号':'骑手信息'}}</view>
<view class="value">{{ cur == 0 ? pushid ? companyidA.express_name + ": " + pushid : '' : selctcar ? selctcar.label : '' }}</view>
</view>
<view class="btn" @click="confirmpushstyle">确认</view>
</view>
<!-- 已发货 -->
<view class="pushtimeline" v-if="type == 2">
<view class="timelinetitle">物流信息</view>
<view class="timelineid">订单单号:&nbsp;&nbsp;&nbsp;{{ info.order_sn }}</view>
<view class="timelinebox" v-for="list in info.express_list">
<view class="timelinecontent">{{list.content}}</view>
<view class="timelinetime">{{list.kd_time}}</view>
</view>
<view v-if="ordered_type == 1">
<view class="timelinetitle">物流信息</view>
<view class="timelineid">订单单号:&nbsp;&nbsp;&nbsp;{{ info.order_sn }}</view>
<view class="timelinebox" v-for="(list,index) in info.express_list" :key="index">
<view class="timelinecontent">{{list.content}}</view>
<view class="timelinetime">{{list.kd_time}}</view>
</view>
</view>
<view v-else-if="ordered_type == 2">
<view class="timelinetitle">骑手信息</view>
<view class="refunds-user-two">
<view>
<image src="/static/image/home/2.png"></image>
<view>{{ takeawayer_info.takeawayer_name }}</view>
</view>
<view>
<image src="/static/image/home/3.png"></image>
<view>{{ takeawayer_info.takeawayer_mobile }}</view>
</view>
<view>
<image src="/static/image/home/4.png"></image>
<view class="address u-line-1">{{ takeawayer_info.company_name }}</view>
</view>
</view>
</view>
<view v-else style="padding-bottom: 20rpx;">
<view class="timelinetitle">自提信息</view>
<view>
<view class="ziti-title">凭证图片</view>
<image class="certificate-img" :src="mineBy_img" @tap="viewImage" mode="aspectFill"></image>
</view>
<view>
<view class="ziti-title">备注:</view>
<view class="u-line-5">{{ mineBy_text }}</view>
</view>
</view>
</view>
<!-- 已完成 -->
<!-- 退款处理 -->
@ -96,6 +146,38 @@
<view class="refund" v-if="type == 5 ">退款状态:同意退款请注意查收</view>
<view class="refund" v-if="type == 6 ">退款状态:商家同意退款等待后台处理</view>
<view class="refund" v-if="type == 7 ">退款状态:商家拒绝退款请等待客服联系</view>
<view class="pain-box" v-if="type == 10 ">
<view class="info-container">
<view>
<view class="title">姓名</view>
<view class="value">{{ info.extend_order_common.reciver_name }}</view>
<image src="/static/image/home/chat.png" @click="tochat(info.buyer_id)"></image>
</view>
<view>
<view class="title">手机号</view>
<view class="value" @longtap="longtap(info.extend_order_common.reciver_info.mob_phone)">{{ info.extend_order_common.reciver_info.mob_phone }}</view>
</view>
<view>
<view class="title">收货地址</view>
<view class="value u-line-2" @longtap="longtap(info.extend_order_common.reciver_info.address)">{{ info.extend_order_common.reciver_info.address }}</view>
</view>
<view>
<view class="title">派送方式</view>
<view class="value u-line-1">{{ users_type == 0 ? "-" : users_type == 1 ? "快递" : users_type == 2 ? "骑手" : "自提" }}</view>
</view>
<view class="remark">
<view class="title">订单备注</view>
<view class="value" @longtap="longtap(info.extend_order_common.order_message)">{{ info.extend_order_common.order_message }}</view>
</view>
<view @click="showInvoice">
<view class="title">开具发票</view>
<view class="invoice">
<text>{{ is_invoice ? "是" : "否" }}</text>
<u-icon name="arrow-right" color="#999" size="20" style="margin-left: 10rpx;"></u-icon>
</view>
</view>
</view>
</view>
<u-popup v-model="showDelivery" mode="center" border-radius="10" class="delivery-popup">
<view class="title">骑手信息</view>
<view class="input-info">
@ -118,10 +200,10 @@
title="请选择公司"
confirm-text="下一步"
></u-picker>
<u-popup v-model="showExpress" mode="center" border-radius="10" class="delivery-popup">
<u-popup v-model="showExpress" :mask-close-able="false" mode="center" border-radius="10" class="delivery-popup">
<view class="title">填写快递单号</view>
<view class="input-info"><input type="text" placeholder="请输入快递单号" v-model="pushid" /></view>
<view class="btn" @click="showExpress = false">确认</view>
<view class="input-info"><input type="text" style="color: #333; line-height: 1;" placeholder="请输入快递单号" v-model="pushid" /></view>
<view class="btn" @click="saveDelivery">确认</view>
</u-popup>
<u-popup v-model="showRefunds" mode="center" border-radius="10" class="refunds-popup">
<view v-if="cur == 1" class="popup-tips">
@ -139,6 +221,42 @@
<view class="determine" @click="confirm">确定</view>
</view>
</u-popup>
<u-popup class="invoice-box" v-model="show_invoice" :mask-close-able="false" mode="center" length="540rpx" border-radius="10">
<view class="title">
<text>发票信息</text>
<u-icon class="close" name="close" @click="show_invoice=false"></u-icon>
</view>
<view class="info">
<view>
<text>发票抬头</text>
<view class="u-line-2">{{ invoiceList.invoice_title }}</view>
</view>
<view v-if="invoice_type==2">
<text>税号</text>
<text>{{ invoiceList.invoice_code }}</text>
</view>
<view v-if="invoice_type==2">
<text>单位地址</text>
<view class="u-line-3">{{ invoiceList.invoice_goto_addr }}</view>
</view>
<view>
<text>电话号码</text>
<text>{{ invoiceList.invoice_rec_mobphone }}</text>
</view>
<view v-if="invoice_type==2">
<text>开户银行</text>
<view class="u-line-3">{{ invoiceList.invoice_reg_bname }}</view>
</view>
<view v-if="invoice_type==2">
<text>银行账户</text>
<text>{{ invoiceList.invoice_reg_baccount }}</text>
</view>
<view v-if="invoice_type==1">
<text>身份证号</text>
<text>{{ invoiceList.invoice_code }}</text>
</view>
</view>
</u-popup>
<u-toast ref="uToast" />
</view>
</template>
@ -147,7 +265,8 @@ export default {
data() {
return {
status: 1, //
cur: Number,
cur: null,
show_invoice: false, //
showDelivery: false, //
showExpress: false, //
showRefunds: false, // 退
@ -177,13 +296,23 @@ export default {
companyidA: null, //id
companyidB: null, //id
value:"",
refundid:null
refundid:null,
is_invoice: 0, //
invoice_type: null,
invoiceList: {}, //
users_type: "", // type
ordered_type: 0, //
takeawayer_info: {}, //
mineBy_img: "", //
mineBy_text: "", //
pushstyleBshow: false
};
},
onLoad(option) {
this.type = option.type;
console.log(this.type)
// console.log(this.type)
this.orderid = option.id;
this.resetinfo();
if (this.type == 1) {
//
@ -191,7 +320,7 @@ export default {
}
if (this.type == 2) {
//
this.getcarinfo();
// this.getcarinfo();
}
// 0: 1 2 3 4退/退 5退/退 6退/退
},
@ -212,7 +341,7 @@ export default {
const token = uni.getStorageSync('token');
let that = this
uni.request({
url:"https://dmmall.sdbairui.com/api/Specialci/getAtwillUserInfo",
url:"https://mall.dmygkeji.com/api/Specialci/getAtwillUserInfo",
data:{
userId: ID
},
@ -238,16 +367,41 @@ export default {
this.refundid = e
console.log(e);
},
pushstyle(index) {
// console.log(this.users_type);
if (this.users_type == 1 && index == 1) {
this.showcompany = true;
} else if (this.users_type == 2 && index == 2) {
this.show = true;
} else if (this.users_type == 3 && index == 3) {
this.cur = 2;
}
},
//
pushstyleA() {
console.log(this.cur)
if(this.cur != 0 && this.cur != -1){
return ;
}
this.cur = 0;
this.showcompany = true;
},
//
pushstyleB() {
if(this.cur != 1 && this.cur != -1){
return ;
}
this.cur = 1;
this.show = true;
},
//
pushstyleC() {
if(this.cur != 2 && this.cur != -1){
return ;
}
this.cur = 2;
this.pushstyleBshow = true
},
//
getcompanyinfo() {
let that = this;
@ -258,6 +412,26 @@ export default {
}
});
},
//
// getcarinfo() {
// this.$u.api.getcarinfo({
// order_id: this.orderid
// }).then(res => {
// console.log(res);
// })
// },
//
saveDelivery() {
if (!this.pushid) {
uni.showToast({
title: "请填写快递单号!",
icon: "none"
})
return
}
this.showExpress = false;
this.pushstyleBshow = true
},
// 退
cancel() {
this.showRefunds = false;
@ -266,12 +440,20 @@ export default {
//
confirm() {
this.showRefunds = false;
// if (!this.refundid) {
// this.$refs.uToast.show({
// title: "",
// type: "warning"
// });
// return;
// }
if (this.cur == 0) {
console.log(this.refundid);
// 退
this.$u.api.refund({
refund_id: this.refundid,
seller_state:2,
seller_message:""
seller_state: 3,
seller_message: ""
}).then(res => {
if (res.errCode != 0) {
this.$refs.uToast.show({
@ -283,18 +465,21 @@ export default {
title: res.message,
type: 'success'
});
let pages = getCurrentPages();
let prePage = pages[pages.length - 2];
console.log(prePage.$vm);
prePage.$vm.del_id = this.orderid;
uni.navigateBack({
delta: 1
});
console.log(res);
}
});
} else {
// 退
this.$u.api.refund({
refund_id: this.refundid,
seller_state:3,
seller_message:""
seller_state: 2,
seller_message: ""
}).then(res => {
if (res.errCode != 0) {
this.$refs.uToast.show({
@ -327,17 +512,33 @@ export default {
//
getselectcompany(e) {
let obj = this.companylist[e[0]];
this.companyidA = obj.express_id;
this.companyidA = obj;
this.showExpress = true;
},
//
confirmpushstyle() {
// console.log(this.cur);
if (this.cur < 0) {
this.$refs.uToast.show({
title: '请选择派送方式!',
type: 'warning ',
})
return;
}
if (this.cur == 0) {
console.log(this.pushid);
if (!this.companyidA) {
this.$refs.uToast.show({
title: '请选择派送方式!',
type: 'warning ',
})
return;
}
// console.log(this.pushid);
this.$u.api.bindpushid({
store_deliver_type: 1,
order_id: this.orderid,
shipping_code: this.pushid,
shipping_express_id: this.companyidA
shipping_express_id: this.companyidA.express_id
}).then(res => {
if (res.errCode != 0) {
this.$refs.uToast.show({
@ -354,8 +555,16 @@ export default {
});
}
});
} else {
} else if (this.cur == 1) {
if (!this.selctcar) {
this.$refs.uToast.show({
title: '请选择派送方式!',
type: 'warning ',
})
return;
}
this.$u.api.bindcarer({
store_deliver_type: 2,
order_id: this.orderid,
takeawayer_id: this.selctcar.takeawayer_id
}).then(res => {
@ -375,11 +584,22 @@ export default {
});
}
});
} else {
uni.navigateTo({
url: "mention?id=" + this.orderid
})
}
},
//
showInvoice() {
if (this.is_invoice) {
this.show_invoice = true;
}
},
//
getselect(e) {
this.selctcar = this.list[e[0].value];
this.pushstyleBshow = true
},
//
resetinfo() {
@ -394,6 +614,21 @@ export default {
});
} else {
this.info = res.data;
this.cur = res.data.member_deliver_type - 1;
this.users_type = res.data.member_deliver_type; //
this.invoiceList = res.data.extend_order_common.invoice_info;
this.is_invoice = this.invoiceList.invoice_id || false;
this.invoice_type = this.invoiceList.invoice_type;
this.ordered_type = res.data.store_deliver_type; //
// console.log(this.users_type,this.cur);
//
this.takeawayer_info = res.data.takeawayer || {}; //
//
this.mineBy_img = res.data.extend_order_common.sendimg; //
this.mineBy_text = res.data.extend_order_common.deliver_explain; //
// 退id
this.refundid = res.data.refund_list[0].refund_id;
// console.log(this.invoiceList,this.is_invoice,this.invoice_type);
}
});
this.$u.api.takeawayerlist({}).then(res => {
@ -412,7 +647,24 @@ export default {
this.list = arr;
}
});
}
},
//
viewImage() {
console.log(this.mineBy_img);
uni.previewImage({
urls: this.mineBy_img,
current: 1
})
},
//
longtap(text) {
console.log(text);
uni.setClipboardData({
data: text,
success: (res) => {
}
});
}
}
};
</script>
@ -499,6 +751,51 @@ export default {
}
}
}
.refunds-user-two {
padding: 25rpx 0;
background-color: #ffffff;
margin-bottom: 20rpx;
> view {
display: flex;
align-items: center;
justify-content: space-between;
margin-bottom: 30rpx;
@mixin image-class($width, $right) {
> image {
flex-shrink: 0;
width: $width;
height: 40rpx;
margin-right: $right;
}
}
&:first-child {
@include image-class($width: 40rpx, $right: 20rpx);
}
&:nth-child(2) {
margin-left: 4rpx;
@include image-class($width: 32rpx, $right: 24rpx);
}
&:last-child {
margin-left: 2rpx;
@include image-class($width: 36rpx, $right: 22rpx);
}
> view {
flex: 1;
font-size: 26rpx;
color: rgba(51, 51, 51, 1);
}
}
}
.ziti-title {
margin: 20rpx 0 10rpx;
font-size: 28rpx;
color: #333;
}
.certificate-img {
width: 320rpx;
height: 240rpx;
border-radius: 4rpx;
}
.user-info {
.info-title {
font-size: 30rpx;
@ -513,10 +810,16 @@ export default {
padding: 0 30rpx;
background-color: #ffffff;
margin-bottom: 20rpx;
.remark {
padding: 10rpx 0;
height: 100%;
min-height: 88rpx;
}
> view {
height: 88rpx;
display: flex;
align-items: center;
height: 88rpx;
padding: 10rpx 0;
color: rgba(51, 51, 51, 1);
&:not(:last-child) {
border-bottom: 2rpx solid #ececec;
@ -530,6 +833,11 @@ export default {
font-size: 26rpx;
flex: 1;
}
.invoice {
margin-left: auto;
font-size: 26rpx;
color: #333;
}
image{
width: 40rpx;
height: 40rpx;
@ -537,6 +845,46 @@ export default {
}
}
}
.pain-box {
.info-container {
padding: 0 30rpx;
margin-bottom: 20rpx;
background-color: #ffffff;
.remark {
padding: 10rpx 0;
height: 100%;
min-height: 88rpx;
}
> view {
display: flex;
align-items: center;
height: 88rpx;
padding: 10rpx 0;
color: rgba(51, 51, 51, 1);
&:not(:last-child) {
border-bottom: 2rpx solid #ececec;
}
.title {
width: 150rpx;
font-size: 30rpx;
margin-right: 10rpx;
}
.value {
font-size: 26rpx;
flex: 1;
}
.invoice {
margin-left: auto;
font-size: 26rpx;
color: #333;
}
image{
width: 40rpx;
height: 40rpx;
}
}
}
}
.delivery {
flex: 1;
background-color: #ffffff;
@ -551,10 +899,11 @@ export default {
.methods {
display: flex;
flex-wrap: wrap;
justify-content: space-around;
> view {
font-size: 30rpx;
color: rgba(0, 0, 51, 1);
width: 335rpx;
color: #999;
width: 30%;
height: 80rpx;
border: 1rpx solid rgba(236, 236, 236, 1);
background: rgba(236, 236, 236, 1);
@ -562,9 +911,6 @@ export default {
text-align: center;
line-height: 80rpx;
margin-bottom: 20rpx;
&:nth-child(2n-1) {
margin-right: 20rpx;
}
}
.active {
border: 1rpx solid #ff780f;
@ -574,11 +920,11 @@ export default {
}
.btn {
position: absolute;
bottom: 40rpx;
left: 50%;
transform: translate(-50%, 0);
width: 690rpx;
height: 98rpx;
margin: 40rpx 0;
background: rgba(255, 120, 15, 1);
border-radius: 49rpx;
font-size: 36rpx;
@ -600,6 +946,7 @@ export default {
color: rgba(51, 51, 51, 1);
}
.timelineid {
margin: 18rpx 0;
min-height: 40rpx;
font-size: 24rpx;
font-weight: 400;
@ -706,5 +1053,35 @@ export default {
}
}
}
.invoice-box {
.title {
display: flex;
align-items: center;
justify-content: flex-end;
padding: 20rpx 20rpx 0 20rpx;
text-align: center;
.close {
margin-left: 180rpx;
}
}
.info {
padding: 30rpx;
& > view {
display: flex;
margin: 10rpx 0;
& > text:first-child {
flex-shrink: 0;
width: 140rpx !important;
text-align: right;
}
& > text:last-child {
width: 320rpx !important;
overflow: hidden;
white-space: nowrap;
text-overflow: ellipsis;
}
}
}
}
}
</style>

View File

@ -4,17 +4,24 @@
<view class="tab-swiper">
<u-tabs :list="list" font-size="26" gutter="10" item-width="130" bar-width="120" active-color="#FF780F" :current="current" @change="tabsChange"></u-tabs>
</view>
<view class="order-list" v-if="current == 0">
<view v-for="(item, index) in allorder" :key="index"><OrderItem :info="item"></OrderItem></view>
<u-empty margin-top="20" v-if="!allorder.length" mode="order"></u-empty>
</view>
<view v-else-if="current == 1">
<view v-for="(item, index) in testlist" :key="index"><testList :info="item"></testList></view>
<u-empty margin-top="20" v-if="!testlist.length" mode="order"></u-empty>
</view>
<view v-else-if="current == 2">
<view v-for="(item, index) in worklist" :key="index"><OrderItem :info="item"></OrderItem></view>
<u-empty margin-top="20" v-if="!worklist.length" mode="order"></u-empty>
</view>
<view v-else-if="current == 3">
<view v-for="(item, index) in translist" :key="index"><OrderItem :info="item"></OrderItem></view>
<u-empty margin-top="20" v-if="!translist.length" mode="order"></u-empty>
</view>
<view v-else-if="current == 4">
<view class="complaint">
@ -41,12 +48,20 @@
<view v-for="(item, index) in finshlist" :key="index">
<OrderItem :info="item"></OrderItem>
</view>
<u-empty margin-top="20" v-if="!finshlist.length" mode="order"></u-empty>
</view>
<view v-else-if="current == 6">
<view v-for="(item, index) in badlist" :key="index">
<OrderItem :info="item"></OrderItem>
</view>
<u-empty margin-top="20" v-if="!badlist.length" mode="order"></u-empty>
</view>
<view v-else-if="current == 7">
<view v-for="(item, index) in paidList" :key="index">
<OrderItem :info="item"></OrderItem>
</view>
<u-empty margin-top="20" v-if="!paidList.length" mode="order"></u-empty>
</view>
<view class="release-btn" @click="publish">
<image src="../../static/image/index/publish.png"></image>
<view class="text">发布</view>
@ -115,7 +130,10 @@ export default {
},
{
name: '退货订单'
}
},
{
name: '待支付订单'
}
],
imageList: [],
showSelect: false,
@ -133,8 +151,10 @@ export default {
finshlist: [], //
badlist: [], //退
carlist: [], //
paidList: [], //
reportinfo: null, //
reportcontent: '' //
reportcontent: '', //
del_id: 0, // id
};
},
onLoad() {
@ -146,12 +166,13 @@ export default {
this.getallorder(0);
const user = uni.getStorageSync('userinfo');
console.log(user)
this.imService.login(user.userId,user.member_avatar,"")
this.imService.login(user.member_id,user.member_nickname,user.member_avatar)
this.imService.connectIM()
// 0: 1 2 3 4退/退 5退/退 6退/退
},
onShow() {
this.publishstate = false;
this.tabsChange(this.current);
},
onReachBottom() {
this.num++;
@ -167,6 +188,7 @@ export default {
this.badlist = [];
this.badlist = [];
this.testlist = [];
this.paidList = [];
},
// current
reset() {
@ -191,7 +213,10 @@ export default {
} else if (current == 6) {
// 退
this.getallorder(4);
}
} else if (current == 7) {
//
this.getallorder(10);
}
},
//
close() {
@ -283,7 +308,7 @@ export default {
getshiftlist() {
let that = this;
this.$u.api.getshiftlist({}).then(res => {
console.log(res);
// console.log(JSON.stringify(res));
if (res.errCode != 0) {
this.$refs.uToast.show({
title: res.message,
@ -321,24 +346,28 @@ export default {
this.badlist.push(arr[index]);
} else if (type == 5) {
this.badlist.push(arr[index]);
}
} else if (type == 10) {
this.paidList.push(arr[index]);
}
}
}
});
},
//
getswiper() {
this.imageList = [
{
image: '../../static/image/index/swiper.png'
},
{
image: '../../static/image/index/swiper.png'
},
{
image: '../../static/image/index/swiper.png'
}
];
this.$u.post("adv/indexAdv").then(res => {
let item = res.data;
let arr;
arr = item.map(data => {
console.log(data);
return {
image: data.adv_code,
adv_id: data.adv_id,
adv_link: data.adv_link,
}
})
this.imageList = arr;
})
},
//
publish() {
@ -530,7 +559,7 @@ export default {
.list {
display: flex;
align-items: center;
justify-content: space-between;
justify-content: space-around;
width: 100%;
> view {
display: flex;

147
pages/index/mention.vue Normal file
View File

@ -0,0 +1,147 @@
<template>
<view class="container">
<view class="upload">
<view class="title">
<text>上传凭证</text>
<text class="tips">仅可上传1张凭证</text>
</view>
<u-upload class="upload-box" :form-data="coverformdata" upload-text="" :action="action" :header="header" name="common" :max-count="1" @on-success="uploadSuc"></u-upload>
</view>
<view class="remarks">
<view>备注:</view>
<textarea class="textarea-box" v-model="textareaVal" placeholder="请输入内容..." placeholder-class="placeholder-style" />
</view>
<u-button class="btn-submit" @click="submitInfo">提交</u-button>
<u-toast ref="uToast" />
</view>
</template>
<script>
export default {
data() {
return {
header: {
Authorization: 'Bearer' + ' ' + uni.getStorageSync('token')
},
action: "https://mall.dmygkeji.com/api/Upload/uploadfile",
coverformdata: {
name: 'common'
},
img_url: "", //
textareaVal: "", //
};
},
onLoad(option) {
// console.log(option);
this.order_id = option.id;
},
methods: {
//
uploadSuc(e) {
if (e.errCode == 0) {
this.$refs.uToast.show({
title: e.message,
type: "success"
})
// console.log(e.data);
this.img_url = e.data.file_path;
} else {
this.$refs.uToast.show({
title: e.message,
})
}
},
//
submitInfo() {
if (!this.img_url) {
this.$refs.uToast.show({
title: "请上传凭证!",
type: "warning"
})
return;
}
if (!this.$u.trim(this.textareaVal)) {
this.$refs.uToast.show({
title: "请填写备注!",
type: "warning"
})
return;
}
//
this.$u.api.bindmention({
store_deliver_type: 3,
shipping_express_id: "e1000",
deliver_explain: this.textareaVal,
order_id: this.order_id,
sendimg: this.img_url,
}).then(res => {
console.log(res);
if (res.errCode == 0) {
this.$refs.uToast.show({
title: res.message,
type: "success",
isTab: "true",
url: "/pages/index/index"
})
} else {
this.$refs.uToast.show({
title: res.message,
type: "warning"
})
}
})
}
}
}
</script>
<style lang="scss">
.container {
padding: 30rpx;
}
::v-deep.uicon-plus {
font-size: 50rpx !important;
}
.upload {
.title {
display: flex;
align-items: center;
font-size: 30rpx;
font-weight: 400;
color: #333;
.tips {
font-size: 20rpx;
color: #999;
}
}
.upload-box {
margin: 20rpx 0;
}
}
.remarks {
.textarea-box {
width: calc(100% - 42rpx);
padding: 20rpx;
margin-top: 20rpx;
font-size: 28rpx;
color: #333;
border-radius: 10rpx;
border: 1px solid #BABABA;
}
.placeholder-style {
color: #999;
font-size: 26rpx;
}
}
.btn-submit {
width: 690rpx;
height: 98rpx !important;
margin-top: 70rpx;
font-size: 36rpx !important;
text-align: center;
line-height: 98rpx !important;
color: #fff !important;
border-radius: 50rpx;
background-color: #FF780F !important;
}
</style>

View File

@ -165,7 +165,7 @@ export default {
} else {
this.$u.api.agreetest({
goods_try_id: this.orderid,
type: 1,
type: 2,
takeawayer_id: this.selctcar.takeawayer_id
}).then(res => {
console.log(res);

506
pages/login/agreements.vue Normal file

File diff suppressed because one or more lines are too long

View File

@ -1,7 +1,7 @@
<template>
<!-- login页面 -->
<view>
<view class="login">
<view class="login" @touchmove.stop.prevent="moveHandle">
<!-- <image class="images" :src="url"></image> -->
<view class="backes"></view>
<view class="title_top">德铭阳光在线-商家端</view>
@ -11,30 +11,54 @@
商家登录
</view>
<view v-bind:class="[state==1 ? 'show' : '']" @click="changetab(1)">
达人登录
商家达人
</view>
<view v-bind:class="[state==2 ? 'show' : '']" @click="changetab(2)">
平台达人
</view>
</view>
<view class="" v-if="state==0">
<view class="labales">
<image src="../../static/image/login/login(3).png"></image>
<input v-model="zhanghao" type="text" placeholder="请输入账号" />
<input v-model="zhanghao" type="text" @blur="getBlurVal" placeholder="请输入账号" />
</view>
<view class="labales">
<image src="../../static/image/login/login(1).png"></image>
<input v-model="mima" type="password" placeholder="请输入密码" />
</view>
</view>
<view class="" v-else>
<view class="" v-else-if="state==1">
<view class="labales">
<image src="../../static/image/login/login(3).png"></image>
<input v-model="zhanghaoA" type="text" placeholder="请输入账号" />
<input v-model="zhanghaoA" type="text" @blur="getBlurVal1" placeholder="请输入账号" />
</view>
<view class="labales">
<image src="../../static/image/login/login(1).png"></image>
<input v-model="mimaA" type="password" placeholder="请输入密码" />
</view>
</view>
<view v-else>
<view class="labales">
<image src="../../static/image/login/login(3).png"></image>
<input v-model="phone" type="number" maxlength="11" placeholder="请输入手机号" />
</view>
<view class="labales">
<image src="../../static/image/login/safe.png"></image>
<input v-model="code" type="number" placeholder="请输入验证码" />
<u-button class="get-code" :class=" is_sendcode ? 'stopClick' : '' " :disabled="is_sendcode" @click="getCode">
{{ is_sendcode ? time_count + "后可以重新发送" : "发送验证码" }}
</u-button>
</view>
</view>
</view>
<!-- 服务协议 -->
<view class="pact">
<view class="pact-container">
<u-checkbox v-model="consentPact" shape="circle" size="30" label-size="26" icon-size="12" active-color="#ff780f">
<text>我已详细阅读并同意</text>
</u-checkbox>
<text class="pact-items" v-for="item in pactList" :key="item.id" @click="viewAgreement(item.id)"> {{ item.text }}</text>
</view>
</view>
<!-- denglu QQ weixin -->
<button @click="logins">{{ login }}</button>
@ -56,13 +80,25 @@ export default {
value: '',
login: '登录',
show: false,
zhanghao: 'seller',
mima: '123456',
zhanghaoA: '18953829598 ',
mimaA: '123456',
zhanghao: '',
mima: '',
zhanghaoA: '',
mimaA: '',
url: '',
phone: "",
code: "",
state:0,
clickstate:false
clickstate:false,
//
timer: null,
is_sendcode: false, // 60s
time_count: 60,
consentPact: true,
pactList: [{
"text": "《用户协议》"
},{
"text":"《隐私政策》"
}]
};
},
methods: {
@ -70,34 +106,73 @@ export default {
changetab(num){
this.state = num
},
// checkbox
checkboxChange(e) {
//console.log(e);
},
// checkboxcheckbox-group
checkboxGroupChange(e) {
// console.log(e);
},
mask_u() {
this.show = !this.show;
},
//
getCode() {
console.log('11');
this.loading();
if (!this.$u.test.mobile(this.phone)) {
this.$refs.uToast.show({
title: '手机号码有误!',
})
return;
}
this.$u.api.getCode({
member_mobile: this.phone,
}).then(res => {
console.log(res);
if (res.errCode == 0) {
this.$refs.uToast.show({
title: res.message,
type: 'success',
})
this.getSendCode();
} else {
this.$refs.uToast.show({
title: res.message,
type: "warning"
})
}
})
},
loading() {},
//
getBlurVal(e) {
// console.log(e.detail.value);
this.zhanghao = this.$u.trim(e.detail.value,"all");
},
getBlurVal1(e) {
this.zhanghaoA = this.$u.trim(e.detail.value,"all");
// console.log(this.$u.trim(this.zhanghaoA));
},
logins() {
//
uni.getNetworkType({
success: (res) => {
console.log(res.networkType);
if (res.networkType == 'none') {
this.$refs.uToast.show({
title: '网络似乎断开了,请检查网络后重试',
type: 'error'
});
}
},
});
//
if(!this.consentPact) return false;
//
if(this.clickstate==false){
this.clickstate=true
}else{
this.$refs.uToast.show({
title: "不能重复提交",
type: 'error'
});
return
}
// console.log(this.zhanghao);
// if(this.clickstate==false){
// this.clickstate=true
// }else{
// ,
// this.$refs.uToast.show({
// title: "",
// type: 'error'
// });
// return
// }
//
// uni.clearStorage();
// 10
@ -106,27 +181,58 @@ export default {
console.log(JSON.stringify(res))
if (res.errCode != 0) {
//
this.clickstate=false
// this.clickstate=false
this.$refs.uToast.show({
title: res.message,
type: 'error'
});
} else {
uni.setStorageSync('token', res.data.token);
uni.setStorageSync('userinfo', res.data);
uni.setStorageSync('rongyun', res.data.rongcloud_token);
this.$u.route({
url: '/pages/user/myinfo'
url: '/pages/user/myinfo',
type:"redirect"
});
}
});
}else{
}else if (this.state == 2) {
if (!this.$u.test.mobile(this.phone)) {
this.$refs.uToast.show({
title: '手机号码有误!',
})
return;
}
if (this.code.length < 4) {}
this.$u.api.starLogin({
member_mobile: this.phone,
sms_code: this.code,
}).then(res => {
if (res.errCode == 0) {
this.$refs.uToast.show({
title: res.message,
type: 'success',
})
uni.setStorageSync('token', res.data.token);
uni.setStorageSync('userinfo', res.data);
uni.setStorageSync('rongyun', res.data.rongcloud_token);
this.$u.route({
url: '/pages/user/myinfo',
type:"redirect"
});
} else {
this.$refs.uToast.show({
title: res.message,
type: "warning"
})
}
})
} else{
this.$u.api.shoplogin({ member_name: this.zhanghao, member_password: this.mima }).then(res => {
console.log(JSON.stringify(res))
if (res.errCode != 0) {
//
this.clickstate=false
// this.clickstate=false
this.$refs.uToast.show({
title: res.message,
type: 'error'
@ -135,25 +241,70 @@ export default {
uni.setStorageSync('token', res.data.token);
uni.setStorageSync('userinfo', res.data);
uni.setStorageSync('rongyun', res.data.rongcloud_token);
this.$u.route({
url: '/pages/index/index',
type: 'switchTab'
});
// this.$u.route({
// url: '/pages/index/index',
// type: 'switchTab'
// });
uni.switchTab({
url: '/pages/index/index',
})
}
});
}
},
// 60s
getSendCode() {
const TIME_COUNT = 60;
if (!this.timer) {
this.time_count = TIME_COUNT;
this.is_sendcode = true;
this.timer = setInterval(() => {
if (this.time_count > 0 && this.time_count <= TIME_COUNT) {
this.time_count--;
} else {
this.is_sendcode = false;
clearInterval(this.timer);
this.timer = null;
}
}, 1000);
}
},
moveHandle(){
return;
},
viewAgreement(index) {
console.log(index);
if (index == 0) {
this.$u.route({
url: '/pages/login/agreements',
params: {
title: "用户协议"
}
});
}
if (index == 1) {
this.$u.route({
url: '/pages/login/privacy_policy',
params: {
title: "隐私政策"
}
});
}
}
},
onLoad() {
let token = uni.getStorageSync('token');
let user = uni.getStorageSync('userinfo');
console.log( user.role == 2 ? '/pages/index/index' : '/pages/user/myinfo')
if (token != undefined && token) {
this.$u.route({
url: '/pages/index/index'
url: user.role == 2 ? '/pages/index/index' : '/pages/user/myinfo',
type: user.role == 2 ? 'tab' : 'to'
});
}
}
},
};
</script>
@ -168,6 +319,7 @@ export default {
top: 0;
left: 0;
z-index: -1;/*-1 可以当背景*/
transform: scale(1.1);
-webkit-filter: blur(3px);
filter: blur(3px);
}
@ -219,7 +371,7 @@ export default {
.title {
font-size: 36rpx;
font-weight: bold;
margin-bottom: 150rpx;
margin-bottom: 120rpx;
color: #fff;
display: flex;
justify-content: flex-start;
@ -245,26 +397,43 @@ export default {
font-size: 30rpx;
}
.get-code {
width: auto !important;
height: 60rpx !important;
padding: 0 30rpx !important;
font-size: 24rpx !important;
line-height: 60rpx !important;
color: #fff !important;
border: none !important;
border-radius: 10rpx !important;
&::after {
border: none !important;
}
}
.labales {
display: flex;
align-items: center;
height: 90rpx;
line-height: 90rpx;
border-bottom: 1px #fff solid;
margin-bottom: 180rpx;
height: 70rpx;
line-height: 70rpx;
position: relative;
&:first-child {
margin-bottom: 100rpx;
}
&:nth-child(2) {
margin-bottom: 80rpx;
}
input {
width: 80%;
margin-left: 60rpx;
margin-left: 30rpx;
color: #fff;
letter-spacing: 2rpx;
background-color: none;
}
}
.labales image {
position: absolute;
left: 0;
top: 0;
bottom: 0;
width: 39rpx;
flex-shrink: 0;
width: 38rpx;
height: 40rpx;
}
.labales:nth-child(3) {
@ -290,27 +459,27 @@ export default {
letter-spacing: 2rpx;
}
.pact text {
font-size: 22rpx;
font-weight: 400;
color: rgba(255, 255, 255, 1);
line-height: 36px;
}
.pact_text {
font-size: 22px;
font-weight: 400;
color: rgba(129, 188, 253, 1) !important;
line-height: 36px;
}
//
.pact {
position: relative;
padding-left: 40rpx;
width: 670rpx;
margin: 0 auto 40rpx;
font-size: 26rpx;
overflow: hidden; //
text-overflow: ellipsis; //
white-space: nowrap; //
.pact-container {
display: flex;
justify-content: flex-end;
align-items: center;
flex-wrap: wrap;
/deep/ .u-checkbox {
.u-checkbox__label {
margin-right: 0;
}
}
.pact-items {
color: rgba(255, 120, 15, 1);
}
}
}
.u-checkbox-group {

File diff suppressed because one or more lines are too long

70
pages/messages/info.vue Normal file
View File

@ -0,0 +1,70 @@
<template>
<view>
<image :src="list.picture" class="picture" mode="widthFix"></image>
<view class="box">
<view class="info">
<text class="title u-line-2">{{ list.title }}</text>
<u-divider class="time">{{ list.addtime }}</u-divider>
<!-- <text class="time"></text> -->
</view>
<view class="content">{{ list.summary }}</view>
</view>
</view>
</template>
<script>
export default {
data() {
return {
id: 0,
list: [],
};
},
onLoad(option) {
// console.log(option);
this.id = option.id;
//
this.informationList();
},
methods: {
informationList(){
console.log(this.id)
this.$u.api.messageInfo({id:this.id}).then((res)=>{
this.list = res.data
console.log(res);
})
}
}
}
</script>
<style lang="scss">
page {
}
.picture {
width: 750rpx;
}
.box {
width: 100%;
padding: 20rpx;
.info {
.title {
font-size: 38rpx;
color: rgba(0,0,0,.84);
line-height: 1.2;
}
.time {
padding: 40rpx 0;
}
}
.content {
padding: 0 6rpx;
font-size: 34rpx;
color: rgba(0,0,0,.6);
line-height: 1.4;
letter-spacing: 1rpx;
text-indent: 2rem;
}
}
</style>

92
pages/messages/list.vue Normal file
View File

@ -0,0 +1,92 @@
<template>
<view class="box">
<view class="item" v-for="(item,index) in list" :key="index" @click="navto(item.id)">
<view class="time">{{item.addtime}}</view>
<view class="info">
<image class="img" :src="item.picture"></image>
<view class="title u-line-2">{{item.title}}</view>
<view class="next">
<text>查看详情</text>
<image class="right" src="@/static/image/user/1.png"></image>
</view>
</view>
</view>
</view>
</template>
<style lang="scss" scoped>
.box{
min-height: 100vh;
background-color: #EAEAEA;
.item{
display: flex;
flex-direction: column;
align-items: center;
.time{
font-size: 28rpx;
color: #666;
padding: 30rpx 0;
}
.info{
width: 690rpx;
// height: 489rpx;
border-radius: 20rpx;
overflow: hidden;
background-color: #fff;
.img{
width: 100%;
height: 280rpx;
}
.title{
height: 80rpx;
margin: 30rpx 25rpx;
font-size: 26rpx;
line-height: 40rpx;
}
.next{
display: flex;
height: 84rpx;
align-items: center;
justify-content: space-between;
padding: 0 25rpx;
border-top: 1rpx solid #ebebeb;
>text{
font-size: 26rpx;
color:#666;
}
>image{
width: 9rpx;
height: 17rpx;
}
}
}
}
}
</style>
<script>
export default {
data(){
return {
list:[]
}
},
onLoad(){
this.$u.api.messageList({page:1}).then((res)=>{
console.log(res)
this.list = res.data
})
},
methods:{
navto(id){
console.log(id)
this.$u.route({
url:"/pages/messages/info",
params:{
id
}
})
}
}
}
</script>

View File

@ -7,7 +7,16 @@
</view>
</view> -->
<!-- 消息列表 -->
<u-empty text="并没有什么消息" mode="message" v-if="Object.keys(list).length == 0" style="margin: auto"></u-empty>
<view class="massage_list" @click="navto()">
<view class="images">
<image src="@/static/image/7.png" ></image>
</view>
<view class="names">活动消息</view>
<view class="content u-line-1">{{huodong.data.title}}</view>
<view class="times">{{huodong.data.addtime}}</view>
<view class="tishi" v-if="huodong.count != 0"></view>
</view>
<!-- <u-empty text="并没有什么消息" mode="message" v-if="Object.keys(list).length == 0" style="margin: auto"></u-empty> -->
<view class="massage_list" v-for="(item,index) in list" :key="index" @click="gochat(item)">
<view class="images">
<image :src="item.avatar" ></image>
@ -28,6 +37,11 @@
list: [
],
huodong:{
data:{
}
}
};
},
methods: {
@ -49,6 +63,12 @@
this.$forceUpdate();
},
navto(){
console.log(1212)
this.$u.route({
url:"/pages/messages/list"
})
}
},
onShow(){
// this.list = this.imService.friends;
@ -58,6 +78,10 @@
const res = uni.getSystemInfoSync();
this.swiperHeight = res.windowHeight;
this.list = this.imService.friends;
this.$u.api.isread().then((res)=>{
console.log(res)
this.huodong = res.data
})
}
};
</script>
@ -113,10 +137,7 @@
font-size: 26rpx;
color: #666666;
height: 30rpx;
height: 30rpx;
overflow:hidden; //
text-overflow:ellipsis; //
white-space:nowrap; //
line-height: 30rpx;
}
.times{
position: absolute;

View File

@ -126,6 +126,7 @@
this.friend = JSON.parse(options.id);
this.currentUser = this.imService.currentUser;
let privateMessages = this.imService.getPrivateMessages(this.friend.uuid);
this.imService.uid = this.friend.uuid;
this.messages = privateMessages.sentMessages;
this.pendingMessages = privateMessages.pendingMessages;
@ -151,6 +152,7 @@
this.imService.onPrivateHistoryLoad = (friendId, messages) =>{};
//
this.imService.resetFriendUnReadMessage(this.friend);
this.imService.uid = 0;
},
methods: {
initialListeners () {
@ -312,7 +314,7 @@
box-sizing: border-box;
}
.chatInterface .top{
font-size: 24rpx;
font-size: 20rpx;
height: 90rpx;
display: flex;
flex-direction: column;
@ -322,7 +324,7 @@
color: blue;
}
.chatInterface .top .description{
text-decoration: underline;
/* text-decoration: underline; */
}
.chatInterface .message-item{

View File

@ -3,7 +3,7 @@
<u-form :model="form" ref="uForm">
<u-form-item label="标题" label-position="right"><u-input v-model="form.name" placeholder="请输入标题" /></u-form-item>
<!-- form-data -->
<view class="titles">封面</view>
<view class="titles">封面<text>建议图片尺寸为334*334</text></view>
<u-upload
:form-data="coverformdata"
:max-count="1"
@ -16,7 +16,7 @@
:file-list="fileListA"
@on-success="uploadcover"
></u-upload>
<view class="titles">图片</view>
<view class="titles">图片<text>最多选择5张图片建议图片尺寸为750*700</text></view>
<u-upload
:form-data="imgformdata"
name="article_image"
@ -31,10 +31,14 @@
></u-upload>
<!-- 标签 -->
<view>
<view class="titles">标签</view>
<view class="titles flex-title">
<text>标签</text>
<text @click="editing">{{ is_edit ? "取消编辑" : "编辑" }}</text>
</view>
<view class="form-view active" @click="show_add()">+ 新建标签</view>
<view :class="['form-view', item.state == true ? 'active' : '']" v-for="(item, index) in fileListes" :key="index" @click="changeselect(index)">
{{ item.name }}
<u-icon v-show="is_edit && item.user_id != 0" class="close" name="close" color="#666" size="18" @click="isTable(item.id,index)"></u-icon>
</view>
</view>
<!-- 简介 -->
@ -68,7 +72,7 @@
<view class="u-button" @click="changes()">确定</view>
</u-popup>
<!-- 底部选择商品列表 -->
<view @click="show_two = true">
<view @click="show_two = true" v-if="userinfo.role != 4">
选择商品
<image class="images" src="../../static/image/tosign/bhottom.png"></image>
</view>
@ -80,13 +84,13 @@
</view>
</view>
<!-- 提交 -->
<u-button class="custom-style" shape="circle" size="default" @click="publish">发表</u-button>
<u-button :hair-line="false" class="custom-style" shape="circle" size="default" @click="publish">发表</u-button>
</u-form>
<!-- 添加标签的按钮 -->
<u-popup v-model="show" mode="center" border-radius="14">
<view class="text">创建属于你的标签吧</view>
<view class="u-inputes"><u-input v-model="tagcontent" /></view>
<u-button class="custom-style-button" shape="circle" size="default" @click="addLiveSpec">确定</u-button>
<u-button :hair-line="false" class="custom-style-button" shape="circle" size="default" @click="addLiveSpec">确定</u-button>
</u-popup>
<u-toast ref="uToast" />
</view>
@ -102,7 +106,7 @@ export default {
sex: ''
},
// 使
action: 'https://dmmall.sdbairui.com/storeapi/Upload/uploadFile',
action: 'https://mall.dmygkeji.com/storeapi/Upload/uploadFile',
coverformdata: {
name: 'article_cover'
},
@ -131,13 +135,20 @@ export default {
imgarr: [], //
cover: '', //
selectarr: [], //
tagcontent: ''
tagcontent: '',
is_edit: false, //
userinfo:{},
device: null, //
};
},
onLoad() {
//
// \
this.userinfo = uni.getStorageSync("userinfo")
this.tosign();
this.getLiveSpec();
this.device = uni.getSystemInfoSync(); //
},
methods: {
publish() {
@ -146,7 +157,7 @@ export default {
for (let index in arr) {
newarr.push(arr[index].file_id);
}
console.log(this.imgarrA);
console.log(this.imgarrA,newarr);
this.$u.api
.publishphoto({
article_title: this.form.name,
@ -233,6 +244,8 @@ export default {
} else {
this.tagcontent = '';
this.show = false;
res.data.state = false;
this.fileListes.push(res.data);
this.$refs.uToast.show({
title: res.message,
type: 'success'
@ -240,9 +253,45 @@ export default {
}
});
},
//
isTable(id,index) {
uni.showModal({
title: "提示",
content: "是否删除此标签?",
success: (res) => {
console.log();
if (res.confirm) {
this.delTable(id,index);
}
}
})
},
delTable(id,index) {
let me = this;
this.$u.post("Streaming/deltLabel", {label_id: id}).then(res => {
if (res.errCode == 0) {
this.$refs.uToast.show({
title: res.message,
type: 'success'
});
this.fileListes.splice(index,1);
}
})
},
//
uploadcover(data) {
console.log(data);
// console.log(data.data);
// #ifdef APP-PLUS
plus.io.getImageInfo({
src: data.data.file_path,
success: (res) => {
console.log(res);
},
fail: (err) => {
console.log(err);
}
})
// #endif
if (data.errCode != 0) {
this.$refs.uToast.show({
title: '上传失败',
@ -274,6 +323,10 @@ export default {
show_add() {
this.show = !this.show;
},
//
editing() {
this.is_edit = !this.is_edit;
},
// checkbox
checkboxChange(e) {
let that = this;
@ -338,19 +391,27 @@ export default {
#release {
width: 690rpx;
margin: 0 auto;
padding-bottom:20rpx;
.flex-title {
display: flex;
justify-content: space-between;
}
.form-view {
background: #cdc7c8;
border-radius: 6rpx;
margin-right: 20rpx;
font-size: 24rpx;
padding: 8rpx 20rpx;
display: inline-block;
padding: 8rpx 20rpx;
margin-right: 20rpx;
margin-bottom: 28rpx;
font-size: 24rpx;
color: #fff;
border-radius: 6rpx;
background-color: #cdc7c8;
.close {
margin-left: 10rpx;
vertical-align: middle;
}
}
.active {
background: #ff780f;
background-color: #ff780f;
}
.scroll {
width: 100%;
@ -361,6 +422,10 @@ export default {
font-weight: 400;
color: rgba(51, 51, 51, 1);
margin: 30rpx 0;
>text{
font-size: 20rpx;
color: #999;
}
}
textarea {
@ -460,6 +525,28 @@ export default {
color: #333;
}
}
.u-btn {
width: 628rpx;
height: 98rpx;
background: rgba(255, 120, 15, 1) !important;
border-radius: 49rpx;
margin: 0 auto;
font-size: 36rpx;
color: rgba(255, 255, 255, 1) !important;
line-height: 36px;
border: 1px #ff780f solid;
outline: none;
border-color: rgba(255, 120, 15, 1) !important;
}
.custom-style-button {
background: rgba(255, 120, 15, 1) !important;
color: #fff !important;
font-size: 28rpx;
width: 200rpx;
margin-bottom: 23rpx;
line-height: 60rpx;
height: 60rpx;
}
.titles_border,
.uni-textarea-compute {

View File

@ -1,7 +1,7 @@
<template>
<!-- tosign页面 -->
<view>
<view class="tosign" style="padding-bottom:180rpx">
<view class="tosign" style="">
<image class="images" src="../../static/image/login/login(2).png"></image>
<view class="backes"></view>
<!-- z自定义导航卡 -->
@ -13,14 +13,14 @@
<view id="content_tosign">
<u-form :model="form" ref="uForm">
<u-form-item label-position="right">
<u-input v-model="max" placeholder="优秀的标题可以卖的更好哦~" />
<u-input v-model="max" :placeholder="userinfo.role != 4 ? '优秀的标题可以卖的更好哦~' : '优秀的标题可以吸引更多人观看哦~'" />
</u-form-item>
<view class="values"><text>{{this.titleMaxLength - this.max.length}}</text>/20</view>
<u-form-item label-position="right">
<u-input v-model="form.text" placeholder="请填写直播简介" />
</u-form-item>
<view class="values"><text>{{20 - form.text.length}}</text>/20</view>
<u-form-item label-position="right" >
<u-form-item label-position="right" v-if="userinfo.role != 4">
<u-input :disabled="true" v-model="form.values" placeholder="我的售货袋" @click="navto('selectshop')"/>
<view class="rightes" @click="navto('selectshop')">售货袋</view>
</u-form-item>
@ -28,7 +28,7 @@
<!-- 标签的引入 -->
<tap_tosign :fileListes="fileListes" @chuangjian="chuangjian" @qiehuan="qiehuan"></tap_tosign>
<view class="titles">直播封面图</view>
<u-upload :form-data="{'name':'article_cover'}" action='https://dmmall.sdbairui.com/storeapi/Upload/uploadFile' name="article_cover" :header="{'Authorization' : 'Bearer' + ' ' + token}" :max-count="1" :show-progress="true" @on-change="tupian" @on-success="sccg" del-color="#ececec" upload-text="上传" del-bg-color="#fff" :before-upload="shangchuan"></u-upload>
<u-upload ref="upload" :form-data="{'name':'article_cover'}" action='https://mall.dmygkeji.com/storeapi/Upload/uploadFile' name="article_cover" :header="{'Authorization' : 'Bearer' + ' ' + token}" :max-count="1" :show-progress="true" @on-change="tupian" @on-success="sccg" del-color="#ececec" upload-text="上传" del-bg-color="#fff" :before-upload="shangchuan"></u-upload>
</view>
<view class="button-uview">
<u-button :hair-line="false" @click="kaibo">{{relerest}}</u-button>
@ -63,7 +63,8 @@
rSelect:[],
image:"",
token:"",
tiaozhuan:false
tiaozhuan:false,
userinfo:{}
};
},
methods: {
@ -75,7 +76,8 @@
},
shangchuan(){
uni.showLoading({
title: '上传中'
title: '上传中',
mask:true
});
},
tupian(){
@ -110,9 +112,19 @@
tupian(a){
// console.log(JSON.parse(a.data));
let info = JSON.parse(a.data);
console.log(info.data.file_path);
console.log(info);
// console.log(JSON.stringify(a.data))
this.image = info.data.file_path;
if(info.errCode == 1){
this.$refs.uToast.show({
title: info.message,
type: 'error'
});
this.$refs.upload.clear()
return ;
}
this.image = info.data.file_name;
},
navto(url){
this.$u.route({
@ -124,6 +136,7 @@
return ;
}
this.tiaozhuan = true
console.log(this.image)
this.$u.api.createChatRoom({
chat_name:this.max,
live_desc:this.form.text,
@ -131,7 +144,7 @@
goods_id:uni.getStorageSync("gouwudai"),
cover_img:this.image
}).then((res)=>{
console.log(res)
console.log(JSON.stringify(res))
if(res.errCode == 1){
this.$refs.uToast.show({
title: res.message,
@ -141,12 +154,14 @@
}
this.$u.route({
url:"/pages/release/zhibo",
type:"redirectTo",
params:{
url:res.data.url.replace("&","*"),
id:res.data.chat_id,
live_id: res.data.live_id
}
})
this.tiaozhuan = true
})
},
init(){
@ -173,6 +188,8 @@
//
this.token = uni.getStorageSync('token');
this.userinfo = uni.getStorageSync("userinfo")
console.log(this.userinfo)
var config = {
appkey: 'mgb7ka1',
debug:true
@ -508,11 +525,11 @@
}
.button-uview {
position: fixed;
bottom: 40rpx;
left: 0;
right: 0;
margin: auto;
z-index: 10;
// position: fixed;
// bottom: 40rpx;
// left: 0;
// right: 0;
margin: 20rpx auto;
// z-index: 10;
}
</style>

View File

@ -1,8 +1,8 @@
<template>
<view id="release">
<view id="release" >
<u-form :model="form" ref="uForm">
<u-form-item label="标题" label-position="right"><u-input v-model="form.name" placeholder="请输入标题" /></u-form-item>
<view class="titles">封面</view>
<view class="titles">封面<text>建议图片尺寸为334*334</text></view>
<u-upload
:form-data="coverformdata"
:max-count="1"
@ -15,25 +15,34 @@
:file-list="fileListA"
@on-success="uploadcover"
></u-upload>
<view class="titles">视频</view>
<view class="videobox" v-if="videostate == false" @click="uploadvideo">
<view class="titles">视频<text>建议视频时长在5分钟内视频大小不超过100M</text></view>
<view class="videobox video-flex" v-if="videostate == false" @click="uploadvideo">
<u-icon name="plus" class="u-add-btn" size="40"></u-icon>
<view class="videotext">选择视频</view>
</view>
<view class="videobox" v-else @click="uploadvideo"><video :src="videopath" controls></video></view>
<view class="videobox" v-else @click="uploadvideo">
<video v-if="!is_video" :src="videopath" controls></video>
<view v-else class="video-mode">
<image src="../../static/videoPlay.png" mode=""></image>
</view>
</view>
<!-- 标签 -->
<view>
<view class="titles">标签</view>
<view class="titles flex-title">
<text>标签</text>
<text @click="editing">{{ is_edit ? "取消编辑" : "编辑" }}</text>
</view>
<view class="form-view active" @click="show_add()">+ 新建标签</view>
<view :class="['form-view', item.state == true ? 'active' : '']" v-for="(item, index) in fileListes" :key="index" @click="changeselect(index)">
{{ item.name }}
<u-icon v-show="is_edit && item.user_id != 0" class="close" name="close" color="#666" size="18" @click="isTable(item.id,index)"></u-icon>
</view>
</view>
<!-- 简介 -->
<view class="titles">正文</view>
<view class="titles_border"><textarea placeholder="请输入内容..." v-model="form.intro"></textarea></view>
<view class="show_two">
<u-popup v-model="show_two" mode="bottom" :closeable="true">
<u-popup v-model="show_two" mode="bottom" @close="closeGood" :closeable="true">
<view class="title"><text>选择商品</text></view>
<!-- 商品列表 -->
<scroll-view :scroll-top="scrollTop" scroll-y="true" class="scroll">
@ -52,7 +61,7 @@
<view class="u-button" @click="changes()">确定</view>
</u-popup>
<!-- 底部选择商品列表 -->
<view @click="show_two = true">
<view @click="selectGoods" v-if="userinfo.role != 4">
选择商品
<image class="images" src="../../static/image/tosign/bhottom.png"></image>
</view>
@ -64,13 +73,13 @@
</view>
</view>
<!-- 提交 -->
<u-button class="custom-style" shape="circle" size="default" @click="publish">发表</u-button>
<u-button class="custom-style" shape="circle" size="default" :hair-line="false" @click="publish">发表</u-button>
</u-form>
<!-- 添加标签的按钮 -->
<u-popup v-model="show" mode="center" border-radius="14" :closeable="true">
<view class="text">创建属于你的标签吧</view>
<view class="u-inputes"><u-input v-model="tagcontent" /></view>
<u-button class="custom-style-button" shape="circle" size="default" @click="addLiveSpec">确定</u-button>
<u-button :hair-line="false" class="custom-style-button" shape="circle" size="default" @click="addLiveSpec">确定</u-button>
</u-popup>
<u-toast ref="uToast" />
</view>
@ -82,11 +91,18 @@ let COS = require('../../common/cos-wx-sdk-v5.js');
const upload_file_server = (_this, filepath) => {
//
let cosConfig = {
Bucket: 'dmmall-1300406074', //replace with yours
Bucket: 'dmmall-1302895943', //replace with yours
Region: 'ap-shanghai', //replace with yours
SecretId: 'AKIDjDPJhni9gTzEB9iGNWQ3PTVGjv74q7EL', //replace with yours
SecretKey: 'ye3SZOvAQO5X5LK3Vy933h6G86h4mqpG' //replace with yours
SecretId: 'AKID7z1lFeo0tV9YmmvZ52mrxlNmvqHTcuCF', //replace with yours
SecretKey: 'd3zTJ0RFwMYVE7jAMJzQ4UbS4YmmJiPq' //replace with yours
};
//
// let cosConfig = {
// Bucket: 'dmmall-1300406074', //replace with yours
// Region: 'ap-shanghai', //replace with yours
// SecretId: 'AKIDjDPJhni9gTzEB9iGNWQ3PTVGjv74q7EL', //replace with yours
// SecretKey: 'ye3SZOvAQO5X5LK3Vy933h6G86h4mqpG' //replace with yours
// };
//
let filePath = filepath;
//
@ -116,7 +132,7 @@ const upload_file_server = (_this, filepath) => {
console.log(err, data, 12345);
if (err == null) {
if (data.statusCode == 200) {
_this.videopath = 'https://dmmall-1300406074.cos.ap-shanghai.myqcloud.com/' + Key;
_this.videopath = 'https://dmmall-1302895943.cos.ap-shanghai.myqcloud.com/' + Key;
uni.hideLoading();
_this.videostate = true;
} else {
@ -137,6 +153,7 @@ const cImage = _this => {
count: 1,
sourceType: ['camera', 'album'],
success: function(res) {
// _this.is_video = true;
uni.showLoading({
title: '上传中'
});
@ -161,12 +178,13 @@ export default {
Authorization: 'Bearer' + ' ' + uni.getStorageSync('token')
},
// 使
action: 'https://dmmall.sdbairui.com/storeapi/Upload/uploadFile',
action: 'https://mall.dmygkeji.com/storeapi/Upload/uploadFile',
fileListA: [],
imgarrA: [],
videopath: '', //
fileListes: [],
show: false,
is_video: false,
show_two: false,
arres_list: [],
shoplist: [], //
@ -176,13 +194,29 @@ export default {
tagcontent: '', //
selectvideo: '', //
videostate: false, //
progress: 0
progress: 0,
is_edit: false, //
userinfo:{}
};
},
onLoad() {
this.userinfo = uni.getStorageSync("userinfo")
this.getLiveSpec();
this.resetgood();
},
watch: {
show() {
let me = this;
if (this.show) {
this.is_video = true;
} else {
setTimeout(function() {
me.is_video = false;
},600)
}
},
immediate: true
},
methods: {
//
resetgood() {
@ -211,15 +245,23 @@ export default {
label_arr: this.selectarr
}).then(res => {
if (res.errCode != 0) {
this.$refs.uToast.show({
title: res.message,
type: 'error'
});
// this.$refs.uToast.show({
// title: res.message,
// type: 'error'
// });
uni.showToast({
title: res.message,
icon: "none"
})
} else {
this.$refs.uToast.show({
title: res.message,
type: 'success'
});
// this.$refs.uToast.show({
// title: res.message,
// type: 'success'
// });
uni.showToast({
title: res.message,
icon: "none"
})
setTimeout(function() {
uni.navigateBack({
delta: 1
@ -252,23 +294,42 @@ export default {
this.selectarr.push(this.fileListes[num].id);
}
},
//
selectGoods() {
this.show_two = true;
this.is_video = true;
},
//
closeGood() {
this.is_video = false;
},
//
addLiveSpec() {
this.$u.api.createLivesp({
spec_name: this.tagcontent
}).then(res => {
if (res.errCode != 0) {
this.$refs.uToast.show({
title: res.message,
type: 'error'
});
// this.$refs.uToast.show({
// title: res.message,
// type: 'error',
// });
uni.showToast({
title: res.message,
icon: "none"
})
} else {
this.tagcontent = '';
this.show = false;
this.$refs.uToast.show({
title: res.message,
type: 'success'
});
res.data.state = false;
this.fileListes.push(res.data);
// this.$refs.uToast.show({
// title: res.message,
// type: 'success'
// });
uni.showToast({
title: res.message,
icon: "none"
})
}
});
},
@ -277,10 +338,14 @@ export default {
let that = this;
this.$u.api.getLiveSpec({}).then(res => {
if (res.errCode != 0) {
this.$refs.uToast.show({
title: res.message,
type: 'error'
});
// this.$refs.uToast.show({
// title: res.message,
// type: 'error'
// });
uni.showToast({
title: res.message,
icon: "none"
})
} else {
let arr = res.data;
for (let index in arr) {
@ -290,6 +355,34 @@ export default {
}
});
},
//
isTable(id,index) {
uni.showModal({
title: "提示",
content: "是否删除此标签?",
success: (res) => {
if (res.confirm) {
this.delTable(id,index);
}
}
})
},
delTable(id,index) {
let me = this;
this.$u.post("Streaming/deltLabel", {label_id: id}).then(res => {
if (res.errCode == 0) {
// this.$refs.uToast.show({
// title: res.message,
// type: 'success'
// });
uni.showToast({
title: res.message,
icon: "none"
})
this.fileListes.splice(index,1);
}
})
},
//
uploadcover(data) {
let obj = data.data;
@ -304,6 +397,10 @@ export default {
show_add() {
this.show = !this.show;
},
//
editing() {
this.is_edit = !this.is_edit;
},
//
changes() {
let that = this;
@ -351,6 +448,11 @@ export default {
#release {
width: 690rpx;
margin: 0 auto;
padding-bottom:20rpx;
.flex-title {
display: flex;
justify-content: space-between;
}
.titles_border,
.uni-textarea-compute {
border: 1px #bababa solid !important;
@ -485,6 +587,10 @@ export default {
display: inline-block;
margin-bottom: 28rpx;
color: #fff;
.close {
margin-left: 10rpx;
vertical-align: middle;
}
}
.active {
background: #ff780f;
@ -494,17 +600,38 @@ export default {
font-weight: 400;
color: rgba(51, 51, 51, 1);
margin: 30rpx 0;
>text{
font-size: 20rpx;
color: #999;
}
}
.video-flex {
flex-direction: column;
font-size: 28rpx;
color: #666;
}
.videobox {
width: 200rpx;
height: 200rpx;
display: flex;
flex-direction: column;
justify-content: center;
align-items: center;
background: #f4f5f6;
background-color: #f4f5f6;
margin-left: 10rpx;
border-radius: 10rpx;
.video-mode {
width: 200rpx;
height: 200rpx;
line-height: 280rpx;
text-align: center;
border-radius: 10rpx;
background-color: #000;
& > image {
width: 100rpx;
height: 100rpx;
}
}
}
.videotext {
margin-top: 10rpx;
@ -519,7 +646,20 @@ export default {
.custom-style {
background: rgba(255, 120, 15, 1) !important;
color: #fff !important;
// font-size: 36rpx;
}
.u-btn {
width: 628rpx;
height: 98rpx;
background: rgba(255, 120, 15, 1) !important;
border-radius: 49rpx;
margin: 0 auto;
font-size: 36rpx;
color: rgba(255, 255, 255, 1) !important;
line-height: 36px;
border: 1px #ff780f solid;
outline: none;
border-color: rgba(255, 120, 15, 1) !important;
}
.custom-style-button {
background: rgba(255, 120, 15, 1) !important;

View File

@ -10,7 +10,7 @@
<div class="head">
<div style="flex-direction: row;align-items:center">
<text class="title">全部商品</text>
<text class="num">2件</text>
<text class="num">{{list.length}}件</text>
</div>
<!-- <div class="add">
<text style="font-size:28rpx;color: #fff;text-align:center">添加/管理商品</text>
@ -35,21 +35,21 @@
</div>
</div>
<div class="user">
<div v-if="zhibo" class="user">
</div>
<div style="position: fixed;top: 60rpx;left: 30rpx;flex-direction: row;align-items:center">
<div v-if="zhibo" style="position: fixed;top: 60rpx;left: 30rpx;flex-direction: row;align-items:center">
<image class="userhead" :src="info.member_avatar"></image>
<div class="userinfo">
<text class="username">{{info.member_name}}</text>
<text class="username" style="font-size:20rpx">{{time}} | sadasdas</text>
<text class="username">{{info.member_nickname}}</text>
<text class="username" style="font-size:20rpx">{{time}} | {{room.onlineUsers.users.length - 1 < 0 ? 0 : room.onlineUsers.users.length - 1}}</text>
</div>
</div>
<image class="closeimg" src="../../static/image/close.png" @click="closes"></image>
<image class="menuimg" src="../../static/image/menu.png" @click="tool = true"></image>
<image class="shoptapimg" @click="xianshi" src="../../static/image/shop.png"></image>
<text style="font-size:26rpx;color:#fff;width:512rpx;position:fixed;left:30rpx;top:793rpx">德铭阳光在线绿色直播请遵循相关法律法规警察叔叔24小时巡查哦。为了保障直播系统稳定现将全局开放防主播沉迷功能。主播积累直播16小时将自动下播休息2小时后方可继续开播。请大家注意休息/避免空播
<image v-if="zhibo" class="closeimg" src="../../static/image/close.png" @click="closes"></image>
<image v-if="zhibo" class="menuimg" src="../../static/image/menu.png" @click="tool = true"></image>
<image v-if="zhibo && list.length != 0" class="shoptapimg" @click="xianshi" src="../../static/image/shop.png" ></image>
<text v-if="zhibo && fen" style="font-size:26rpx;color:#fff;width:512rpx;position:fixed;left:30rpx;top:793rpx;">本平台提倡绿色健康直播,严禁在平台内外出现诱导未成年人诈骗、赌博、低俗色情、吸烟酗酒等不当行为,若有违反,将向相关部门依法追究您的法律责任。如因此给平台造成损失,有权向您全额追偿
</text>
<div class="danmulist">
<div v-if="zhibo" class="danmulist">
<text class="danmuitem" v-for="(i,j) in danmulist" :key="j">{{i.senderNickname}}:{{i.content}}</text>
</div>
@ -59,12 +59,12 @@
<text class="menutitle">直播工具</text>
<view class="menutool">
<view class="menutoolitem" @click="switchCamera">
<image class="menutoolitemimg"></image>
<image src="../../static/images/fanzhuan.png" class="menutoolitemimg"></image>
<text class="menutoolitemtitle">翻转</text>
</view>
<picker @change="bindPickerChange" :value="meiyan" :range="[1,2,3,4,5,6,7,8,9]">
<view class="menutoolitem">
<image class="menutoolitemimg"></image>
<image src="../../static/images/meiyan.png" class="menutoolitemimg"></image>
<text class="menutoolitemtitle">美颜</text>
</view>
</picker>
@ -72,6 +72,31 @@
</view>
</view>
</div>
<div class="jieshu" v-if="!zhibo" :style="{'height':height + 'px'}">
<div class="jieshuback" :style="{'height':height + 'px'}" @click="closes1"></div>
<image class="closeimg" src="../../static/image/cloneb.png" @click="closes"></image>
<text class="jieshutitle">徳铭阳光在线</text>
<image class="jieshuheadimg" @click="closes1" :src="info.member_avatar"></image>
<text class="jieshuusername">{{info.member_nickname}}</text>
<div class="jieshubox">
<view class="jieshuboxitem">
<text style="color:#fff;font-size:30rpx">{{jieshu.newfans}}</text>
<text style="color:#fff;font-size:30rpx;margin-top:10rpx">新粉丝</text>
</view>
<view class="jieshuboxitem">
<text style="color:#fff;font-size:30rpx">{{jieshu.headcount}}</text>
<text style="color:#fff;font-size:30rpx;margin-top:10rpx">观看人数</text>
</view>
<view class="jieshuboxitem" v-if="list.length != 0">
<text style="color:#fff;font-size:30rpx">RMB {{jieshu.sales_amount}}</text>
<text style="color:#fff;font-size:30rpx;margin-top:10rpx">直播销量</text>
</view>
<view class="jieshuboxitem" v-if="list.length != 0">
<text style="color:#fff;font-size:30rpx">{{jieshu.buy_num}}</text>
<text style="color:#fff;font-size:30rpx;margin-top:10rpx">购买人数</text>
</view>
</div>
</div>
<!-- <button class="btn" @click="start">开始推流1</button>
<button class="btn" @click="pause">暂停推流</button>
<button class="btn" @click="resume">resume</button>
@ -84,6 +109,58 @@
</div>
</template>
<style lang="scss" scoped>
.jieshuboxitem{
width: 210rpx;
height: 120rpx;
align-items: center;
justify-content: center;
}
.jieshubox{
width: 438rpx;
height: 288rpx;
border-width: 1rpx;
border-color: #fff;
margin-top: 78rpx;
flex-direction: row;
flex-wrap: wrap;
}
.jieshuusername{
font-size: 30rpx;
margin-top: 31rpx;
color: #fff;
}
.jieshuheadimg{
width: 154rpx;
height: 154rpx;
border-radius: 77rpx;
}
.jieshutitle{
font-size: 30rpx;
color:#fff;
width: 350rpx;
position: absolute;
top: 70rpx;
left: 31rpx;
height: 31rpx;
}
.jieshuback{
background-color: #000;
opacity: 0.8;
position: absolute;
left: 0;
top: 0;
width: 750rpx;
}
.jieshu{
z-index: 9999;
position: fixed;
top: 0;
left: 0;
width: 750rpx;
align-items: center;
justify-content: center;
}
.shoptapimg{
width: 65rpx;
height: 65rpx;
@ -99,11 +176,13 @@
bottom: 24rpx;
}
.closeimg{
position: fixed;
position: absolute;
top: 70rpx;
right: 31rpx;
width: 31rpx;
height: 31rpx;
width: 51rpx;
height: 51rpx;
padding:10rpx;
z-index:99999;
}
.username{
font-size: 24rpx;
@ -155,7 +234,9 @@
border-bottom-width: 2rpx;
border-style: solid;
border-color: #ECECEC;
/* #ifndef APP-PLUS-NVUE */
display: flex;
/* #endif */
flex-direction: row;
align-items: center;
}
@ -190,7 +271,9 @@
border-bottom-width: 2rpx;
border-style: solid;
border-color: #ECECEC;
/* #ifndef APP-PLUS-NVUE */
display: flex;
/* #endif */
flex-direction: row;
align-items: center;
justify-content: space-between;
@ -262,11 +345,16 @@
position: fixed;
left: 30rpx;
bottom: 118rpx;
width: 690rpx;
}
.danmuitem{
font-size: 26rpx;
font-size: 30rpx;
color: #fff;
flex-direction: column-reverse;
/* #ifndef APP-PLUS-NVUE */
word-wrap:anywhere;
/* #endif */
font-weight: bold;
}
.livePusher{
width: 750rpx;
@ -290,18 +378,33 @@
time:'00:00:00',
room:{},
chatRoomService:{},
danmulist:[]
danmulist:[],
zhibo:true,
jieshu:{},
renshumax:0,
changeLiveRealtimeNumber:{},
fen:true
},
onLaunch: function() {
console.log('App Launch');
},
onShow: function() {
if(!this.zhibo){
return ;
}
this.stop()
this.startPreview()
this.start()
// var message = {
// senderNickname : this.room.currentUser.nickname ,
// type : 1,
// content : '重连'
// }
// this.chatRoomService.sendMessages(this.room.id, message);
},
onHide: function() {
console.log('App Hide');
this.chatRoomService.warrings = ()=>{};
},
//模拟onshow生命周期
created() {
@ -343,18 +446,28 @@
},500)
},
onBackPress(options) {
if (options.from === 'navigateBack' || !this.zhibo) {
return false;
}
this.closes();
return true;
},
onLoad(a){
console.log(getApp().globalData.im)
console.log(getApp().globalData.im)
uni.setKeepScreenOn({
keepScreenOn: true
});
this.url = a.url.replace("*","&")
let that = this
const token = uni.getStorageSync('token');
console.log('Bearer' + " " + token)
this.chatroom_id = a.id
this.live_id = a.live_id
uni.request({
url:"https://dmmall.sdbairui.com/storeapi/Streaming/liveStreamList",
url:"https://mall.dmygkeji.com/storeapi/Streaming/liveStreamList",
method:"POST",
header:{
'Authorization' : 'Bearer' + " " + token
@ -365,7 +478,7 @@
}
})
uni.request({
url:"https://dmmall.sdbairui.com/storeapi/member/memberInfo",
url:"https://mall.dmygkeji.com/storeapi/member/memberInfo",
method:"POST",
header:{
'Authorization' : 'Bearer' + " " + token
@ -391,8 +504,11 @@
//构造chatRoomService
that.chatRoomService.subscribeRoomMessage(room,currentUser)
that.chatRoomService.initialWhenNewMessage(that.whenNewMessage);
that.chatRoomService.warrings = that.jinggao
//获取当前聊天室数据
that.room = that.chatRoomService.room;
console.log(that.room)
that.chatRoomService.initialWhenOnlineUserChange(that.renqu)
}
})
let shi = 0;
@ -404,6 +520,9 @@
miao = parseInt(miao)
miao = miao + 1
// console.log(miao)
if(fen > 0){
that.fen = false;
}
if(miao == 60){
miao = 0;
fen +=1
@ -423,6 +542,24 @@
}
that.time = shi + ":" + fen + ":" + miao
}, 1000);
setInterval(()=>{
console.log("定时")
uni.request({
url:"https://mall.dmygkeji.com/storeapi/Streaming/changeLiveRealtimeNumber",
method:"POST",
header:{
'Authorization' : 'Bearer' + " " + token
},
data:{
live_id:that.live_id,
realtime_number: that.room.onlineUsers.users.length - 1 < 0 ? 0 : that.room.onlineUsers.users.length - 1
},
success(res){
console.log(JSON.stringify(res))
}
})
},
10 * 1000)
// var roomToken = JSON.parse(options.roomToken);
@ -474,6 +611,38 @@
},
methods: {
jinggao(text){
console.log(text)
if(text.message_type == 1){
uni.showModal({
title: '警告',
content: text.content,
showCancel:false,
success: function (res) {
}
});
}else if(text.message_type == 2){
uni.showModal({
title: '警告',
content: text.content,
showCancel:false,
success: function (res) {
uni.navigateBack({
delta: 1
});
}
});
this.stop()
}
},
renqu(res){
if(res.users.length > this.renqu){
this.renqu = res.users.length
}
this.$forceUpdate()
},
whenNewMessage (message) {//新消息监听
// if(message.type == this.room.MessageType.PROP){
// this.propAnimation(parseInt(message.content))
@ -495,7 +664,19 @@
duration: 2000
});
},
closes1() {
console.log(111);
},
closes(){
console.log(this.zhibo)
if(!this.zhibo){
uni.navigateBack({
delta:1
});
return ;
}
this.chatRoomService.warrings = ()=>{};
const token = uni.getStorageSync('token');
let that = this
console.log(that.url)
@ -505,7 +686,7 @@
success: function (res) {
if (res.confirm) {
uni.request({
url:"https://dmmall.sdbairui.com/storeapi/Streaming/destroyChatRoom",
url:"https://mall.dmygkeji.com/storeapi/Streaming/destroyChatRoom",
data:{
chatroom_id:that.chatroom_id,
live_id:that.live_id,
@ -517,9 +698,12 @@
},
success(res){
console.log(res)
uni.navigateBack({
delta: 1
});
that.stop()
that.jieshu = res.data.data
that.zhibo = false
// uni.navigateBack({
// delta: 1
// });
// that.list= res.data.data
}
})
@ -630,9 +814,10 @@
arr.push(this.list[i].goods_id)
}
}
console.log(arr.join(','))
let that = this
uni.request({
url:"https://dmmall.sdbairui.com/storeapi/Streaming/updateGoods",
url:"https://mall.dmygkeji.com/storeapi/Streaming/updateGoods",
method:"POST",
data:{
goods_id:arr.join(',')
@ -643,7 +828,7 @@
success(res){
console.log(res)
uni.request({
url:"https://dmmall.sdbairui.com//storeapi/Streaming/liveStreamList",
url:"https://mall.dmygkeji.com//storeapi/Streaming/liveStreamList",
method:"POST",
header:{
'Authorization' : 'Bearer' + " " + token

View File

@ -47,6 +47,7 @@ export default {
this.$u.api.reportdetail({
id: id
}).then(res => {
console.log(res)
if (res.errCode != 0) {
this.$refs.uToast.show({
title: res.message,

View File

@ -6,7 +6,7 @@
</view>
<view class="imgbox">
<view v-if="type==1">
<image :src="list" mode="" v-for="list in info.article_image"></image>
<image :src="list" mode="" @tap="viewImage" v-for="list in info.article_image"></image>
</view>
<view v-else>
<video :src="info.video_path" controls></video>
@ -36,7 +36,7 @@
<view class="name">{{item.member_nickname}}{{item.reply_member_nickname==null?"评论了文章":" 回复了 "+item.reply_member_nickname}}</view>
<view class="time">{{item.create_time}}</view>
</view>
<view class="btn" @click="showreply(item.id,item.member_id)">回复</view>
<view class="btn" @click="showreply(item.id,item.member_id)" v-if="item.pid==0">回复</view>
</view>
<view class="content u-line-1">{{item.content}}</view>
</view>
@ -134,7 +134,13 @@ export default {
this.info = res.data.article[0];
}
});
}
},
//
viewImage() {
uni.previewImage({
urls: this.info.article_image
})
}
}
};
</script>

117
pages/user/feedback.vue Normal file
View File

@ -0,0 +1,117 @@
<template>
<view class="write-complaints">
<view class="main-container">
<view class="text-box">
<u-input class="textarea" placeholder="发表您的意见吧,我们会做得更好。 (必填)" v-model="text" type="textarea" :clearable="false" :maxlength="200" />
<span class="text-length">{{ text.length }}/200</span>
</view>
<u-input class="phone" placeholder="请输入手机号方便联系 (非必填)" v-model="phone" type="number" />
</view>
<view class="write-btn" @click="submit">发表意见</view>
<u-toast ref="uToast" />
</view>
</template>
<script>
export default {
data() {
return {
phone: '',
text: '',
}
},
methods: {
submit() {
if(!this.verifyContent()) return false;
// console.log(this.phone);
// console.log(this.text);
this.$u.toast('提交成功');
this.phone = "";
this.text = "";
},
verifyContent() {
if(this.$u.test.isEmpty(this.text)) {
this.$u.toast('内容不可为空');
return false;
}
if(!this.$u.test.isEmpty(this.phone)) {
if(!this.$u.test.mobile(this.phone)) {
this.$u.toast('手机格式错误');
return false;
}
}
return true;
},
writeFeedback() {
if(!this.verifyContent()) return false;
this.$u.api.writeFeedback({
fb_content: this.text,
fb_images: this.imageList,
}).then(res => {
if(res.errCode == 0) {
this.$refs.uToast.show({
title: res.message,
duration: 2000,
callback:() => {
this.$u.route({
type: "navigateBack",
url: '/pageE/more/Complaints',
})
}
})
} else {
this.$u.toast(res.message);
}
})
},
},
}
</script>
<style lang="scss" scoped>
.write-complaints {
min-height: calc(100vh - var(--window-top));
background-color: #ECECEC;
.main-container {
background-color: #ffffff;
.text-box {
padding-bottom: 60rpx;
position: relative;
&::after {
content: "";
position: absolute;
bottom: 0;
left: 0;
height: 3rpx;
width: 750rpx;
background-color: #ECECEC;
}
.text-length {
height: 60rpx;
position: absolute;
right: 40rpx;
bottom: 0;
color: #999;
}
}
/deep/ .textarea {
padding: 0 30rpx !important;
width: 100% !important;
margin-bottom: 10rpx;
}
/deep/ .phone {
padding: 20rpx 30rpx !important;
}
}
.write-btn {
margin: 120rpx auto 0;
width: 690rpx;
height: 98rpx;
background: rgba(255,120,15,1);
border-radius: 46rpx;
font-size: 36rpx;
color: rgba(255,255,255,1);
text-align: center;
line-height: 98rpx;
}
}
</style>

View File

@ -6,7 +6,7 @@
<view class="name">
<text>{{info.member_nickname==null?"新用户":info.member_nickname}}</text>
<text>账号{{info.member_name}}</text>
<text>个性签名{{info.signature==""?"该用户很懒没有签名!":info.signature}}</text>
<text class="u-line-2">个性签名{{info.signature==""?"该用户很懒没有签名!":info.signature}}</text>
</view>
</view>
<image src="/static/image/user/1.png"></image>
@ -23,10 +23,29 @@
<text>骑手投诉</text>
<image src="/static/image/user/1.png"></image>
</view>
<view class="nav" @click="loginout()">
<view class="nav" @click="toOthersPage('feedback')">
<text>用户反馈</text>
<image src="/static/image/user/1.png"></image>
</view>
<view class="nav" @click="viewAgreement(0)">
<text>用户协议</text>
<image src="/static/image/user/1.png"></image>
</view>
<view class="nav" @click="viewAgreement(1)">
<text>隐私政策</text>
<image src="/static/image/user/1.png"></image>
</view>
<view class="nav" @click="clearCache">
<text>清除缓存</text>
<text>{{ fileSizeString }}</text>
</view>
<view class="nav" @click="isLoginOut = true">
<text>退出登录</text>
<image src="/static/image/user/1.png"></image>
</view>
<u-modal v-model="isLoginOut" show-confirm-button show-cancel-button :content="content" @confirm="loginOut"></u-modal>
<u-toast ref="uToast" />
</view>
</template>
@ -36,18 +55,75 @@ export default {
data() {
return {
info:{},
num:0
isLoginOut: false,
content: "是否退出登录?",
num:0,
fileSizeString: "", //
}
},
watch: {
isLoginOut() {
// console.log(this.isLoginOut);
// if (this.isLoginOut) {
// uni.hideTabBar();
// } else {
// setTimeout(function() {
// uni.showTabBar();
// },200)
// }
}
},
onLoad() {
this.getCache();
},
onShow() {
this.getmyinfo()
},
methods: {
//
getCache() {
let _this = this;
// #ifdef APP-PLUS
plus.cache.calculate(function(size) {
console.log(size);
let sizeCache = size;
if (sizeCache == 0) {
_this.fileSizeString = "0B";
} else if (sizeCache < 1024) {
_this.fileSizeString = sizeCache + "B";
} else if (sizeCache < 1048576) {
_this.fileSizeString = (sizeCache / 1024).toFixed(2) + "KB";
} else if (sizeCache < 1073741824) {
_this.fileSizeString = (sizeCache / 1048576).toFixed(2) + "MB";
} else {
_this.fileSizeString = (sizeCache / 1073741824).toFixed(2) + "GB";
}
});
// #endif
},
//
clearCache() {
// #ifdef APP-PLUS
uni.showModal({
title: "确定要清理缓存吗?",
cancelColor: "#999",
confirmColor: "#f00",
success: (res) => {
// console.log(res);
if (res.confirm) {
plus.cache.clear(function(e) {
console.log(e);
})
this.getCache();
}
}
})
// #endif
},
// 退
loginout(){
loginOut(){
uni.clearStorage();
this.imService.disconnect();
this.$refs.uToast.show({
title: "退出登陆成功!",
type: 'success'
@ -76,7 +152,26 @@ export default {
uni.navigateTo({
url: '/pages/user/' + url
});
}
},
viewAgreement(index) {
if (index == 0) {
this.$u.route({
url: '/pages/login/agreements',
params: {
title: "用户协议"
}
});
}
if (index == 1) {
this.$u.route({
url: '/pages/login/privacy_policy',
params: {
title: "隐私政策"
}
});
}
}
},
}
</script>
@ -97,6 +192,7 @@ export default {
align-items: center;
>image{
flex-shrink: 0;
width: 110rpx;
height: 110rpx;
border-radius: 50%;

View File

@ -5,14 +5,15 @@
<text>更换头像</text>
</view>
<view class="item">
<text class="title">用户名</text>
<text class="title" v-if="role == 2">店铺名称</text>
<text class="title" v-else>达人名称</text>
<input type="text" value="" v-model="info.member_nickname" placeholder="请输入用户名"/>
</view>
<view class="item">
<text class="title">个性签名</text>
<input type="text" value="" v-model="info.signature" placeholder="请输入个性签名"/>
</view>
<view class="password" @click="updatePwd">
<view class="password" @click="updatePwd" v-if="role != 4">
<text>修改密码</text>
<image src="/static/image/user/1.png"></image>
</view>
@ -27,12 +28,17 @@ export default {
fileurl: "",
filename:"",
info:{},
num:0
num:0,
role: 0,
};
},
onLoad() {
this.getmyinfo()
this.getmyinfo();
let userinfo = uni.getStorageSync("userinfo");
this.role = userinfo.role;
// console.log(this.role);
},
//
onNavigationBarButtonTap() {
let that = this;
let obj ={
@ -82,7 +88,13 @@ export default {
},
// ,
chooseImage(sourceType) {
let that = this
let that = this;
let photo_type = "";
if (this.role == 2) {
photo_type = "store_avatar"
} else {
photo_type = "avatar"
}
const token = uni.getStorageSync('token');
uni.chooseImage({
count: 1,
@ -91,22 +103,26 @@ export default {
console.log(JSON.stringify(res.tempFilePaths));
const tempFilePaths = res.tempFilePaths;
uni.uploadFile({
url: 'https://dmmall.sdbairui.com/storeapi/Upload/uploadFile',
url: 'https://mall.dmygkeji.com/storeapi/Upload/uploadFile',
filePath: tempFilePaths[0],
name: 'avatar',
name: photo_type,
formData:{
name:"avatar"
name: photo_type,
store_id: that.info.store_id
},
header:{
Authorization:'Bearer' + " " + token
},
success: uploadFileRes => {
let obj = JSON.parse(uploadFileRes.data)
that.fileurl = obj.data.file_path
that.fileurl = obj.data.file_path+'?'+new Date().getTime()
that.filename = obj.data.file_name
that.num++
console.log(that.fileurl,that.filename)
}
},
fail: (res) => {
console.log(res);
}
});
}
});

View File

@ -2,15 +2,19 @@
<view class="user">
<view class="head" @click="toOthersPage('info')">
<view class="info">
<image :src="info.member_avatar"></image>
<image :src="info.member_avatar + '?' + (new Date().getTime())"></image>
<view class="name">
<text>{{info.member_nickname==null?"新用户":info.member_nickname}}</text>
<text>账号{{info.member_name}}</text>
<text>个性签名{{info.signature==""?"该用户很懒没有签名!":info.signature}}</text>
<text class="u-line-2">个性签名{{info.signature==""?"该用户很懒没有签名!":info.signature}}</text>
</view>
</view>
<image src="/static/image/user/1.png"></image>
</view>
<view class="nav" @click="navtos()">
<text>活动消息</text>
<image src="/static/image/user/1.png"></image>
</view>
<view class="nav" @click="toOthersPage('fans')">
<text>我的粉丝</text>
<image src="/static/image/user/1.png"></image>
@ -19,6 +23,14 @@
<text>内容管理</text>
<image src="/static/image/user/1.png"></image>
</view>
<view class="nav" @click="clearCache">
<text>清除缓存</text>
<text>{{ fileSizeString }}</text>
</view>
<view class="nav" @click="is_loginout = true">
<text>退出登录</text>
<image src="/static/image/user/1.png"></image>
</view>
<view class="release-btn" @click="publish">
<image src="../../static/image/index/publish.png"></image>
<view class="text">发布</view>
@ -42,6 +54,7 @@
<image src="../../static/image/index/close.png" class="off" @click="close"></image>
</view>
</u-popup>
<u-modal v-model="is_loginout" show-confirm-button show-cancel-button :content="content" @confirm="loginOut"></u-modal>
<u-toast ref="uToast" />
</view>
</template>
@ -50,14 +63,81 @@ export default {
name:"user",
data() {
return {
publishstate:false,
publishstate: false,
is_loginout: false,
content: "是否退出登录?",
info:{},
fileSizeString: "", //
}
},
onLoad() {
onShow(){
this.getmyinfo()
},
onLoad() {
this.getCache();
const user = uni.getStorageSync('userinfo');
console.log(user)
this.imService.login(user.member_id,user.member_nickname,user.member_avatar)
this.imService.connectIM()
},
methods: {
//
getCache() {
let _this = this;
// #ifdef APP-PLUS
plus.cache.calculate(function(size) {
console.log(size);
let sizeCache = size;
if (sizeCache == 0) {
_this.fileSizeString = "0B";
} else if (sizeCache < 1024) {
_this.fileSizeString = sizeCache + "B";
} else if (sizeCache < 1048576) {
_this.fileSizeString = (sizeCache / 1024).toFixed(2) + "KB";
} else if (sizeCache < 1073741824) {
_this.fileSizeString = (sizeCache / 1048576).toFixed(2) + "MB";
} else {
_this.fileSizeString = (sizeCache / 1073741824).toFixed(2) + "GB";
}
});
// #endif
},
//
clearCache() {
// #ifdef APP-PLUS
uni.showModal({
title: "确定要清理缓存吗?",
cancelColor: "#999",
confirmColor: "#f00",
success: (res) => {
// console.log(res);
if (res.confirm) {
plus.cache.clear(function(e) {
console.log(e);
})
this.getCache();
}
}
})
// #endif
},
navtos(){
this.$u.route({
url:"/pages/messages/list"
})
},
// 退
loginOut(){
this.imService.disconnect()
uni.clearStorage();
this.$refs.uToast.show({
title: "退出登陆成功!",
type: 'success'
});
uni.reLaunch({
url:"../login/login"
})
},
//
getmyinfo(){
let that = this;
@ -89,33 +169,33 @@ export default {
},
//
navto(url) {
//
if(url=="release/tosign"){
this.$u.api.canlive({}).then(res => {
console.log(res);
if (res.errCode != 0) {
this.$refs.uToast.show({
title: res.message,
type: 'error'
});
} else {
if(res.data.live_stataes==0){
this.$u.route({
url: `/pages/${url}`
});
}else{
this.$refs.uToast.show({
title: "当前用户没有直播权限",
type: 'error'
});
}
}
});
}else{
// //
// if(url=="release/tosign"){
// this.$u.api.canlive({}).then(res => {
// console.log(JSON.stringify(res));
// if (res.errCode != 0) {
// this.$refs.uToast.show({
// title: res.message,
// type: 'error'
// });
// } else {
// if(res.data.live_stataes==0){
// this.$u.route({
// url: `/pages/${url}`
// });
// }else{
// this.$refs.uToast.show({
// title: "",
// type: 'error'
// });
// }
// }
// });
// }else{
this.$u.route({
url: `/pages/${url}`
});
}
// }
}
@ -198,10 +278,10 @@ export default {
align-items: center;
>image{
flex-shrink: 0;
width: 110rpx;
height: 110rpx;
border-radius: 50%;
background-color: #0f0;
}
.name{
font-size: 24rpx;

Binary file not shown.

Before

Width:  |  Height:  |  Size: 908 KiB

After

Width:  |  Height:  |  Size: 341 KiB

View File

@ -62,7 +62,7 @@ function ChatRoomService(room, user) {
//获取实例
ChatRoomService.prototype.connectGoEasyIM = function () {
this.im = GoEasyIM.getInstance({
appkey: 'BC-453aa755c4ea48148abefc55a86df283',
appkey: 'BC-d9b5e639006b4ee2a4bc9eddc4235a6a',
host: 'hangzhou.goeasy.io'
});

BIN
static/image/7.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 13 KiB

BIN
static/image/cloneb.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.2 KiB

BIN
static/image/login/safe.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 2.9 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 6.3 KiB

After

Width:  |  Height:  |  Size: 2.0 KiB

BIN
static/image/shopback.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 6.3 KiB

BIN
static/images/fanzhuan.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 15 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 463 B

After

Width:  |  Height:  |  Size: 6.6 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 932 B

After

Width:  |  Height:  |  Size: 3.1 KiB

BIN
static/images/meiyan.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 17 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 620 B

After

Width:  |  Height:  |  Size: 8.7 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 472 B

After

Width:  |  Height:  |  Size: 8.0 KiB

View File

@ -7,6 +7,7 @@
import GoEasyIM from './goeasy-im-1.0.9';
import restApi from './restapi';
import music from './music.mp3'
function Friend(uuid, name, avatar,time = "", text = "",date = "",unReadMessage = 0) {
this.uuid = uuid;
@ -35,7 +36,7 @@ function CurrentUser(uuid, name, avatar) {
function IMService() {
this.im = GoEasyIM.getInstance({
host:'hangzhou.goeasy.io',//qos=1
appkey:'BC-453aa755c4ea48148abefc55a86df283'
appkey:'BC-d9b5e639006b4ee2a4bc9eddc4235a6a'
});
//当前“我”
this.currentUser = null;
@ -50,7 +51,7 @@ function IMService() {
//群聊消息记录map格式每个群对应一个数组
this.groupMessages = {};
this.uid = 0;
/*
* 监听器们
*
@ -77,6 +78,10 @@ function IMService() {
this.whenOnlineUserChange = function () {
};
this.warrings = function() {
};
}
//登录
@ -105,7 +110,7 @@ IMService.prototype.initialContacts = function (friendList) {
const token = uni.getStorageSync('token');
console.log(token)
uni.request({
url:"https://dmmall.sdbairui.com/api/Specialci/getAtwillUserInfo",
url:"https://mall.dmygkeji.com/api/Specialci/getAtwillUserInfo",
data:{
userId:i[0]
},
@ -119,7 +124,7 @@ IMService.prototype.initialContacts = function (friendList) {
console.log(that.friends)
let sorts = function (friends){
let paixu = function (a,b){
if(a.date > b.date){
if(a.date > b.date && b.unReadMessage == 0){
return 0;
}else{
return 1;
@ -226,7 +231,6 @@ IMService.prototype.connectIM = function () {
this.subscribeFriendsPresence();
}).catch(error => {
console.log('连接失败,请确保网络正常appkey和host正确code:' + error.code + " content:" + error.content);
this.connectIM()
});
} catch (error) {
console.log(12323)
@ -259,6 +263,11 @@ IMService.prototype.initialIMListeners = function () {
//监听私聊消息
this.im.on(GoEasyIM.EVENT.PRIVATE_MESSAGE_RECEIVED, (message) => {
console.log(message)
if(message.senderId == 0){
console.log(message.payload.text)
this.warrings(JSON.parse(message.payload.text))
return;
}
//如果不是自己发的,朋友未读消息数 +1
if (message.senderId != this.currentUser.uuid) {
let friend = this.friends[message.senderId];
@ -266,7 +275,7 @@ IMService.prototype.initialIMListeners = function () {
// return ;
let sorts = function (friends){
let paixu = function (a,b){
if(a.date > b.date){
if(a.date > b.date && b.unReadMessage == 0){
return 0;
}else{
return 1;
@ -276,13 +285,21 @@ IMService.prototype.initialIMListeners = function () {
friends.sort(paixu)
}
if(message.senderId != this.uid){
const innerAudioContext = uni.createInnerAudioContext();
innerAudioContext.autoplay = true;
innerAudioContext.src = music;
innerAudioContext.onPlay(() => {
console.log('开始播放');
});
}
let that = this
if(!friend && friend == undefined){
const token = uni.getStorageSync('token');
console.log(token)
uni.request({
url:"https://dmmall.sdbairui.com/api/Specialci/getAtwillUserInfo",
url:"https://mall.dmygkeji.com/api/Specialci/getAtwillUserInfo",
data:{
userId:message.senderId
},
@ -299,7 +316,8 @@ IMService.prototype.initialIMListeners = function () {
friend.text = message.type != "text" ? "其他消息" : message.payload.text
let time = new Date(message.timestamp)
friend.date = message.timestamp
friend.time = time.getHours() + ":" + time.getMinutes() + ":" + time.getSeconds()
friend.time = (time.getHours() < 10 ? '0' + time.getHours() : time.getHours()) + ":" + (time.getMinutes() < 10 ? '0' + time.getMinutes() : time.getMinutes()) + ":" + (time.getSeconds() < 10 ? '0' + time.getSeconds() : time.getSeconds())
console.log(that.friends)
that.friendsarr = []
for(let i in that.friends){
@ -325,7 +343,8 @@ IMService.prototype.initialIMListeners = function () {
friend.text = message.type != "text" ? "其他消息" : message.payload.text
let time = new Date(message.timestamp)
friend.date = message.timestamp
friend.time = time.getHours() + ":" + time.getMinutes() + ":" + time.getSeconds()
friend.time = (time.getHours() < 10 ? '0' + time.getHours() : time.getHours()) + ":" + (time.getMinutes() < 10 ? '0' + time.getMinutes() : time.getMinutes()) + ":" + (time.getSeconds() < 10 ? '0' + time.getSeconds() : time.getSeconds())
console.log(this.friends)
that.friendsarr = []
for(let i in this.friends){
@ -392,7 +411,7 @@ IMService.prototype.sendMessagesSetStorage = function (friendId,message){
// return ;
let sorts = function (friends){
let paixu = function (a,b){
if(a.date > b.date){
if(a.date > b.date && b.unReadMessage == 0){
return 0;
}else{
return 1;
@ -408,7 +427,7 @@ IMService.prototype.sendMessagesSetStorage = function (friendId,message){
const token = uni.getStorageSync('token');
console.log(token)
uni.request({
url:"https://dmmall.sdbairui.com/api/Specialci/getAtwillUserInfo",
url:"https://mall.dmygkeji.com/api/Specialci/getAtwillUserInfo",
data:{
userId:friendId
},
@ -424,7 +443,8 @@ IMService.prototype.sendMessagesSetStorage = function (friendId,message){
friend.text = message
let time = new Date()
friend.date = time.getTime()
friend.time = time.getHours() + ":" + time.getMinutes() + ":" + time.getSeconds()
friend.time = (time.getHours() < 10 ? '0' + time.getHours() : time.getHours()) + ":" + (time.getMinutes() < 10 ? '0' + time.getMinutes() : time.getMinutes()) + ":" + (time.getSeconds() < 10 ? '0' + time.getSeconds() : time.getSeconds())
console.log(that.friends)
that.friendsarr = []
for(let i in that.friends){
@ -448,7 +468,8 @@ IMService.prototype.sendMessagesSetStorage = function (friendId,message){
friend.text = message
let time = new Date()
friend.date = time.getTime()
friend.time = time.getHours() + ":" + time.getMinutes() + ":" + time.getSeconds()
friend.time = (time.getHours() < 10 ? '0' + time.getHours() : time.getHours()) + ":" + (time.getMinutes() < 10 ? '0' + time.getMinutes() : time.getMinutes()) + ":" + (time.getSeconds() < 10 ? '0' + time.getSeconds() : time.getSeconds())
console.log(this.friends)
that.friendsarr = []
for(let i in this.friends){
@ -763,6 +784,10 @@ IMService.prototype.initialWhenOnlineUserChange = function (whenOnlineUserChange
IMService.prototype.listenerNewMessage = function () {
this.im.on(GoEasyIM.EVENT.GROUP_MESSAGE_RECEIVED, (message) => {
console.log(message)
if(message.senderId == 0){
return ;
}
var content = JSON.parse(message.payload.text);
this.addNewMessage(message);
this.whenNewMessage(content);

BIN
static/music.mp3 Normal file

Binary file not shown.

BIN
static/videoPlay.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 4.7 KiB