549 Commits
cmx ... zhy

Author SHA1 Message Date
3840074b00 拼团列表加载更多 2020-11-25 09:00:41 +08:00
3a880711ad Merge pull request '秒杀查看更多' (#397) from zhy into master
Reviewed-on: http://git.luyuan.tk/luyuan/deming/pulls/397
2020-11-24 12:09:13 +08:00
5cd7597068 秒杀查看更多 2020-11-24 12:07:33 +08:00
qxf
e916119b2b Merge pull request 'qxf' (#396) from qxf into master
Reviewed-on: http://git.luyuan.tk/luyuan/deming/pulls/396
2020-11-20 15:56:24 +08:00
亓雪峰
1ce56510b1 Merge branch 'master' of https://git.luyuan.tk/luyuan/deming into qxf 2020-11-20 11:18:49 +08:00
d552a03ab4 Merge pull request '添加拒绝协议按钮' (#395) from zhy into master
Reviewed-on: http://git.luyuan.tk/luyuan/deming/pulls/395
2020-11-20 10:22:12 +08:00
9f6bcdfa94 添加拒绝协议按钮 2020-11-20 10:20:51 +08:00
亓雪峰
63353b6877 新增 设置页新增“用户协议与隐私政策”的选项卡 2020-11-19 18:09:17 +08:00
qxf
74f083d6c1 Merge pull request 'qxf' (#394) from qxf into master
Reviewed-on: http://git.luyuan.tk/luyuan/deming/pulls/394
2020-11-19 17:08:26 +08:00
亓雪峰
7977bd795c 优化 初次登录的“用户协议”改为“用户协议与隐私” 2020-11-19 17:05:45 +08:00
亓雪峰
e044812a7c 修复 添加iOS审核所需要的位置信息 2020-11-13 10:34:05 +08:00
亓雪峰
363349afe6 修复 添加iOS审核所需要的位置信息 2020-11-12 16:18:51 +08:00
亓雪峰
456edb252e 修复 登录时iOS平台暂时隐藏第三方登录,方便过审 2020-11-12 15:19:15 +08:00
亓雪峰
ecfc79fbf8 优化 图标路径 2020-11-12 15:11:00 +08:00
亓雪峰
fb297e8a8c 修复 nvue部分样式编译错误的问题 2020-11-11 12:00:07 +08:00
qxf
1a15f1e3e6 Merge pull request 'qxf 修复订单列表中退款状态显示错误的问题' (#393) from qxf into master
Reviewed-on: http://git.luyuan.tk/luyuan/deming/pulls/393
2020-10-19 11:49:52 +08:00
亓雪峰
497d49eceb fix 修复订单列表中退款状态显示错误的问题 2020-10-19 11:46:50 +08:00
亓雪峰
0886ec74ea Update chatservice.js 2020-10-14 23:22:26 +08:00
qxf
ebff801c7e Merge pull request 'Update manifest.json' (#392) from qxf into master
Reviewed-on: http://git.luyuan.tk/luyuan/deming/pulls/392
2020-10-14 11:00:47 +08:00
亓雪峰
215730f8d1 Update manifest.json 2020-10-14 10:47:00 +08:00
483dfba475 Merge pull request 'qxf 修改申请退款成功的提示框, 消息-关注达人改为展示用户昵称' (#391) from qxf into master
Reviewed-on: http://git.luyuan.tk/luyuan/deming/pulls/391
2020-10-14 10:45:39 +08:00
亓雪峰
f8f3cf08f2 修改申请退款成功的提示框 2020-10-13 14:30:01 +08:00
亓雪峰
55e0bc7cd9 消息-关注达人改为展示用户昵称
This reverts commit 7a2edcfd1c0fc7c546389a3e63dd0d7892e65e0a.
2020-10-13 14:29:20 +08:00
f87bd2cfba Merge pull request '更换' (#390) from xbx into master
Reviewed-on: http://git.luyuan.tk/luyuan/deming/pulls/390
2020-09-25 17:43:29 +08:00
9f5498ac7c 更换 2020-09-25 17:42:36 +08:00
gyh
d33bc8965a Merge pull request 'avater' (#389) from gyh into master
Reviewed-on: http://git.luyuan.tk/luyuan/deming/pulls/389
2020-09-23 09:56:49 +08:00
Gdpao
3115ac9447 avater 2020-09-23 09:55:30 +08:00
gyh
b914ba7c58 Merge pull request '更新 'pageE/mine/MineInfo.vue'' (#388) from gyh-patch-1 into master
Reviewed-on: http://git.luyuan.tk/luyuan/deming/pulls/388
2020-09-22 09:36:50 +08:00
gyh
990db30e77 更新 'pageE/mine/MineInfo.vue' 2020-09-22 09:36:39 +08:00
gyh
875aeeb63a Merge pull request 'gdpao' (#387) from gyh into master
Reviewed-on: http://git.luyuan.tk/luyuan/deming/pulls/387
2020-09-22 09:34:31 +08:00
Gdpao
7304d3edb6 gdpao 2020-09-22 09:32:56 +08:00
aebdb23b6d Merge pull request '商品分类' (#386) from zhy into master
Reviewed-on: http://git.luyuan.tk/luyuan/deming/pulls/386
2020-09-22 09:14:53 +08:00
c4c19871d8 商品分类 2020-09-22 09:13:54 +08:00
c85f1aeead 修改字体大小 2020-09-21 17:37:29 +08:00
977d38ce18 Merge pull request '增加订单平台已退款状态' (#385) from zhy into master
Reviewed-on: http://git.luyuan.tk/luyuan/deming/pulls/385
2020-09-21 17:03:28 +08:00
194710f97b 增加订单平台已退款状态 2020-09-21 16:58:25 +08:00
1c14a23d76 Merge pull request '增加订单平台已退款状态' (#384) from zhy into master
Reviewed-on: http://git.luyuan.tk/luyuan/deming/pulls/384
2020-09-21 16:43:31 +08:00
611066e778 增加订单平台已退款状态 2020-09-21 16:42:38 +08:00
bc1d0b8e4c Merge pull request '增加订单平台已退款状态' (#383) from zhy into master
Reviewed-on: http://git.luyuan.tk/luyuan/deming/pulls/383
2020-09-21 15:51:23 +08:00
31027d10e4 增加订单平台已退款状态 2020-09-21 15:50:26 +08:00
c606b9b3ce Merge pull request '修改字体大小' (#382) from xbx into master
Reviewed-on: http://git.luyuan.tk/luyuan/deming/pulls/382
2020-09-21 08:41:39 +08:00
gyh
bf765ba231 Merge pull request 'gdpao' (#381) from gyh into master
Reviewed-on: http://git.luyuan.tk/luyuan/deming/pulls/381
2020-09-19 20:02:01 +08:00
Gdpao
645b3f65c1 gdpao 2020-09-19 20:01:07 +08:00
ded4488f89 Merge pull request '实体店送洗可不传图片' (#380) from zhy into master
Reviewed-on: http://git.luyuan.tk/luyuan/deming/pulls/380
2020-09-19 16:44:04 +08:00
2b2667df2a 实体店送洗可不传图片 2020-09-19 16:43:01 +08:00
79f0040688 Merge pull request '图标' (#379) from xbx into master
Reviewed-on: http://git.luyuan.tk/luyuan/deming/pulls/379
2020-09-18 16:41:00 +08:00
00670f4501 图标 2020-09-18 16:40:21 +08:00
db20e52e48 Merge pull request '去掉首页下拉刷新' (#378) from zhy into master
Reviewed-on: http://git.luyuan.tk/luyuan/deming/pulls/378
2020-09-18 16:37:11 +08:00
d5cf7ae2fb 去掉首页下拉刷新 2020-09-18 16:36:35 +08:00
7644def64f Merge pull request '修改图标' (#377) from xbx into master
Reviewed-on: http://git.luyuan.tk/luyuan/deming/pulls/377
2020-09-18 10:16:19 +08:00
2add59f416 修改图标 2020-09-18 10:15:46 +08:00
689b6a03aa Merge pull request '修改了备注的高度' (#376) from xbx into master
Reviewed-on: http://git.luyuan.tk/luyuan/deming/pulls/376
2020-09-17 19:44:53 +08:00
2f8557eb42 修改了备注的高度 2020-09-17 19:42:34 +08:00
6364be1743 Merge pull request 'zhy' (#374) from zhy into master
Reviewed-on: http://git.luyuan.tk/luyuan/deming/pulls/374
2020-09-17 19:33:43 +08:00
c893ece3a4 退款 2020-09-17 19:33:04 +08:00
fa9817e7bb 退款 2020-09-17 18:48:02 +08:00
a60f61c300 Merge pull request '添加了请求接口' (#373) from xbx into master
Reviewed-on: http://git.luyuan.tk/luyuan/deming/pulls/373
2020-09-16 19:06:30 +08:00
6e40ae0daa 添加了请求接口 2020-09-16 18:35:21 +08:00
gyh
e96fcf28a9 Merge pull request 'gdpao' (#371) from gyh into master
Reviewed-on: http://git.luyuan.tk/luyuan/deming/pulls/371
2020-09-16 17:07:24 +08:00
Gdpao
8af938e0eb gdpao 2020-09-16 11:31:59 +08:00
gyh
d805b6f0bf Merge pull request 'gdpao' (#370) from gyh into master
Reviewed-on: http://git.luyuan.tk/luyuan/deming/pulls/370
2020-09-15 17:40:00 +08:00
Gdpao
10c9498985 gdpao 2020-09-15 16:44:03 +08:00
75dd6ca8d8 Merge pull request 'zhy' (#369) from zhy into master
Reviewed-on: http://git.luyuan.tk/luyuan/deming/pulls/369
2020-09-15 16:16:44 +08:00
06bc5651ae 达人申请添加身份证 2020-09-15 16:14:57 +08:00
28c324e449 达人申请添加身份证 2020-09-15 16:07:59 +08:00
8158a1e780 Merge pull request '达人申请添加身份证' (#368) from zhy into master
Reviewed-on: http://git.luyuan.tk/luyuan/deming/pulls/368
2020-09-15 15:41:38 +08:00
339f8e3346 达人申请添加身份证 2020-09-15 15:40:08 +08:00
1a9f06e722 Merge pull request '修改' (#367) from xbx into master
Reviewed-on: http://git.luyuan.tk/luyuan/deming/pulls/367
2020-09-11 20:16:16 +08:00
7a9c0eb53f 修改 2020-09-11 20:15:49 +08:00
gyh
dd15356717 Merge pull request 'gdpao' (#366) from gyh into master
Reviewed-on: http://git.luyuan.tk/luyuan/deming/pulls/366
2020-09-11 19:48:11 +08:00
Gdpao
414f50ce5d gdpao 2020-09-11 18:47:14 +08:00
d5ba314bf6 Merge pull request '修改了标题' (#365) from xbx into master
Reviewed-on: http://git.luyuan.tk/luyuan/deming/pulls/365
2020-09-11 17:59:32 +08:00
ad5ed4040c 修改了标题 2020-09-11 17:59:05 +08:00
f076c03c99 Merge pull request '添加了进入提醒' (#364) from xbx into master
Reviewed-on: http://git.luyuan.tk/luyuan/deming/pulls/364
2020-09-11 17:01:02 +08:00
d5f9055445 添加了进入提醒 2020-09-11 17:00:13 +08:00
ab4c80ae36 Merge pull request '修改美甲' (#363) from zhy into master
Reviewed-on: http://git.luyuan.tk/luyuan/deming/pulls/363
2020-09-11 14:46:32 +08:00
28832c38ae 修改美甲 2020-09-11 14:45:30 +08:00
b95f009ff3 Merge pull request '详情显示备注' (#362) from zhy into master
Reviewed-on: http://git.luyuan.tk/luyuan/deming/pulls/362
2020-09-11 11:41:25 +08:00
5616cd046f 详情显示备注 2020-09-11 11:40:53 +08:00
3fd6e953c6 Merge pull request '订单添加备注' (#361) from zhy into master
Reviewed-on: http://git.luyuan.tk/luyuan/deming/pulls/361
2020-09-11 11:26:14 +08:00
eedb40b9d0 订单添加备注 2020-09-11 11:24:05 +08:00
c162fc983f Merge pull request '修改成官方客服' (#360) from xbx into master
Reviewed-on: http://git.luyuan.tk/luyuan/deming/pulls/360
2020-09-11 09:12:10 +08:00
9efa4d198f 修改成官方客服 2020-09-11 09:08:35 +08:00
gyh
83afd6216e Merge pull request 'gdpao' (#359) from gyh into master
Reviewed-on: http://git.luyuan.tk/luyuan/deming/pulls/359
2020-09-10 16:13:21 +08:00
Gdpao
d7877a3e77 gdpao 2020-09-10 14:46:48 +08:00
b5e8936307 Merge pull request 'about page add phone number' (#358) from zhy into master
Reviewed-on: http://git.luyuan.tk/luyuan/deming/pulls/358
2020-09-10 10:39:15 +08:00
5b89988e4d about page add phone number 2020-09-10 10:38:33 +08:00
0e99c3f719 Merge pull request 'zhy' (#357) from zhy into master
Reviewed-on: http://git.luyuan.tk/luyuan/deming/pulls/357
2020-09-10 10:01:29 +08:00
51c6a3b820 送洗显示信息 2020-09-10 10:01:02 +08:00
d79e38e44c 送洗显示信息 2020-09-10 10:00:04 +08:00
a1eac2a1e8 Merge pull request 'zhy' (#356) from zhy into master
Reviewed-on: http://git.luyuan.tk/luyuan/deming/pulls/356
2020-09-10 09:21:47 +08:00
fe60d5a1cf view goods evaluation 2020-09-10 09:20:35 +08:00
8f010c634c view goods evaluation 2020-09-10 09:17:54 +08:00
b5985ce1a0 Merge pull request 'fixing bug' (#355) from zhy into master
Reviewed-on: http://git.luyuan.tk/luyuan/deming/pulls/355
2020-09-09 17:22:41 +08:00
a9477b9657 fixing bug 2020-09-09 17:21:33 +08:00
4674acac3c Merge pull request '退款样式' (#354) from zhy into master
Reviewed-on: http://git.luyuan.tk/luyuan/deming/pulls/354
2020-09-09 16:57:23 +08:00
45c087bf14 退款样式 2020-09-09 16:56:02 +08:00
7e50a6f56e Merge pull request 'zhy' (#353) from zhy into master
Reviewed-on: http://git.luyuan.tk/luyuan/deming/pulls/353
2020-09-09 09:36:34 +08:00
20e27317be fix bug 2020-09-09 09:34:08 +08:00
89ddba5321 fix bug 2020-09-09 09:33:08 +08:00
52caeef425 Merge pull request '刷新首页关注列表' (#352) from zhy into master
Reviewed-on: http://git.luyuan.tk/luyuan/deming/pulls/352
2020-09-08 08:57:22 +08:00
a14d662370 刷新首页关注列表 2020-09-08 08:55:09 +08:00
5bca242f28 Merge pull request '修复抖动' (#351) from xbx into master
Reviewed-on: http://git.luyuan.tk/luyuan/deming/pulls/351
2020-09-07 15:48:14 +08:00
dd5db56bf8 修复抖动 2020-09-07 15:47:46 +08:00
b482369760 Merge pull request '增加试穿规格' (#349) from zhy into master
Reviewed-on: http://git.luyuan.tk/luyuan/deming/pulls/349
2020-09-07 14:50:20 +08:00
dcea9608af 增加试穿规格 2020-09-07 14:47:54 +08:00
f65e2e9830 Merge pull request '修改配送方式' (#348) from zhy into master
Reviewed-on: http://git.luyuan.tk/luyuan/deming/pulls/348
2020-09-07 11:42:43 +08:00
2ad46ce2a1 修改配送方式 2020-09-07 11:32:52 +08:00
e0abb14315 Merge pull request '修改评论的图片显示' (#347) from zhy into master
Reviewed-on: http://git.luyuan.tk/luyuan/deming/pulls/347
2020-09-07 10:13:54 +08:00
57534ef7fc 修改评论的图片显示 2020-09-07 10:11:52 +08:00
gyh
50c88a9f60 Merge pull request 'gdpaoup' (#346) from gyh into master
Reviewed-on: http://git.luyuan.tk/luyuan/deming/pulls/346
2020-09-05 19:54:00 +08:00
80461f7345 Merge pull request '申请发票验证身份证号' (#345) from zhy into master
Reviewed-on: http://git.luyuan.tk/luyuan/deming/pulls/345
2020-09-05 17:36:26 +08:00
1a4f1f7edf 申请发票验证身份证号 2020-09-05 17:35:33 +08:00
ba3717cd73 Merge pull request '送洗切换申请表返回' (#344) from zhy into master
Reviewed-on: http://git.luyuan.tk/luyuan/deming/pulls/344
2020-09-05 17:17:25 +08:00
aecc65cbc6 送洗切换申请表返回 2020-09-05 17:16:12 +08:00
Gdpao
87f3517729 gdpaoup 2020-09-05 17:11:13 +08:00
ed3a83c00e Merge pull request '预览店铺执照' (#343) from zhy into master
Reviewed-on: http://git.luyuan.tk/luyuan/deming/pulls/343
2020-09-05 17:09:36 +08:00
63298679cf 预览店铺执照 2020-09-05 17:07:55 +08:00
gyh
273d984ea6 Merge pull request 'gdpao' (#342) from gyh into master
Reviewed-on: http://git.luyuan.tk/luyuan/deming/pulls/342
2020-09-05 16:35:07 +08:00
72bfc5fa18 Merge pull request '修复了订单重复' (#341) from xbx into master
Reviewed-on: http://git.luyuan.tk/luyuan/deming/pulls/341
2020-09-05 16:12:17 +08:00
13258b3b63 修复了订单重复 2020-09-05 16:11:53 +08:00
b8bcf50c8f Merge pull request '订单列表按钮顺序' (#340) from zhy into master
Reviewed-on: http://git.luyuan.tk/luyuan/deming/pulls/340
2020-09-05 15:51:51 +08:00
efb2988c8e 订单列表按钮顺序 2020-09-05 15:49:05 +08:00
gyh
f3c881cf76 Merge pull request 'gdpao' (#339) from gyh into master
Reviewed-on: http://git.luyuan.tk/luyuan/deming/pulls/339
2020-09-05 15:30:59 +08:00
5780efa878 Merge pull request 'xbx' (#338) from xbx into master
Reviewed-on: http://git.luyuan.tk/luyuan/deming/pulls/338
2020-09-05 15:29:08 +08:00
480de8da61 Merge pull request '修改返回店铺首页数据不出现的问题' (#337) from zhy into master
Reviewed-on: http://git.luyuan.tk/luyuan/deming/pulls/337
2020-09-05 15:19:39 +08:00
027b07baeb 修改返回店铺首页数据不出现的问题 2020-09-05 15:18:48 +08:00
6830d8cde7 Merge pull request '送洗评价图片预览' (#336) from zhy into master
Reviewed-on: http://git.luyuan.tk/luyuan/deming/pulls/336
2020-09-05 14:41:11 +08:00
e19ae7ed82 送洗评价图片预览 2020-09-05 14:40:15 +08:00
f190b82468 送洗评价图片预览 2020-09-05 14:38:18 +08:00
d4a1439bf9 Merge pull request 'fixing bug' (#335) from zhy into master
Reviewed-on: http://git.luyuan.tk/luyuan/deming/pulls/335
2020-09-05 14:28:11 +08:00
b653379d53 fixing bug 2020-09-05 14:26:17 +08:00
Gdpao
cf71c2ba66 gdpao 2020-09-05 12:32:58 +08:00
Gdpao
29ed3a3758 gdpao 2020-09-05 12:28:40 +08:00
a3adc35372 判读是不是空的 2020-09-05 12:10:59 +08:00
df1d1e78b4 临时解决 2020-09-05 12:07:47 +08:00
b38a2b8103 Merge pull request '手机号' (#334) from zhy into master
Reviewed-on: http://git.luyuan.tk/luyuan/deming/pulls/334
2020-09-05 10:55:50 +08:00
e1a74972f2 手机号 2020-09-05 10:54:53 +08:00
b875ddc434 Merge pull request '修改radio样式' (#333) from zhy into master
Reviewed-on: http://git.luyuan.tk/luyuan/deming/pulls/333
2020-09-05 09:37:28 +08:00
d0e58b876a 修改radio样式 2020-09-05 09:36:45 +08:00
e35f3bad71 Merge pull request '发票' (#332) from zhy into master
Reviewed-on: http://git.luyuan.tk/luyuan/deming/pulls/332
2020-09-04 17:35:05 +08:00
a81a21ac38 发票 2020-09-04 17:34:24 +08:00
23a75971f3 Merge pull request '发票' (#331) from zhy into master
Reviewed-on: http://git.luyuan.tk/luyuan/deming/pulls/331
2020-09-04 17:30:53 +08:00
83eb365628 发票 2020-09-04 17:29:45 +08:00
gyh
377f3b080a Merge pull request 'gdpao' (#330) from gyh into master
Reviewed-on: http://git.luyuan.tk/luyuan/deming/pulls/330
2020-09-04 08:44:19 +08:00
Gdpao
3d9069fa83 gdpao 2020-09-03 20:52:50 +08:00
ac1e99a54d Merge pull request '达人申请label宽度' (#329) from zhy into master
Reviewed-on: http://git.luyuan.tk/luyuan/deming/pulls/329
2020-09-03 14:34:49 +08:00
41a80b2680 达人申请label宽度 2020-09-03 14:33:56 +08:00
85fce676e5 Merge pull request '修复了返回播放' (#328) from xbx into master
Reviewed-on: http://git.luyuan.tk/luyuan/deming/pulls/328
2020-09-03 11:57:56 +08:00
e7a2a716b4 修复了返回播放 2020-09-03 11:57:40 +08:00
7e9791ef18 Merge pull request '修复了返回黑屏' (#327) from xbx into master
Reviewed-on: http://git.luyuan.tk/luyuan/deming/pulls/327
2020-09-03 11:45:02 +08:00
314508e652 修复了返回黑屏 2020-09-03 11:32:58 +08:00
1b387df66e Merge pull request '添加达人申请' (#326) from zhy into master
Reviewed-on: http://git.luyuan.tk/luyuan/deming/pulls/326
2020-09-03 11:14:03 +08:00
cfda1f7aae 添加达人申请 2020-09-03 11:12:58 +08:00
gyh
379100a097 Merge pull request 'gdpao' (#325) from gyh into master
Reviewed-on: http://git.luyuan.tk/luyuan/deming/pulls/325
2020-09-03 09:53:16 +08:00
Gdpao
adc18d80cf gdpao 2020-09-03 09:50:18 +08:00
2da546f193 Merge pull request '修改自提bug' (#324) from zhy into master
Reviewed-on: http://git.luyuan.tk/luyuan/deming/pulls/324
2020-09-02 15:33:40 +08:00
bc9290e13c 修改自提bug 2020-09-02 15:32:54 +08:00
c4f23cc5c4 Merge pull request 'zhy' (#323) from zhy into master
Reviewed-on: http://git.luyuan.tk/luyuan/deming/pulls/323
2020-09-02 08:59:57 +08:00
4911a0c948 调整会员服务样式 2020-09-02 08:55:56 +08:00
6302677c65 调整会员服务样式 2020-09-02 08:55:16 +08:00
gyh
8ec27b1598 Merge pull request 'gdpao' (#322) from gyh into master
Reviewed-on: http://git.luyuan.tk/luyuan/deming/pulls/322
2020-09-01 20:31:30 +08:00
Gdpao
2446f851c7 gdpao 2020-09-01 20:30:23 +08:00
4fa530d2d6 Merge pull request 'fixing bug' (#321) from zhy into master
Reviewed-on: http://git.luyuan.tk/luyuan/deming/pulls/321
2020-09-01 18:08:30 +08:00
0f55428656 fixing bug 2020-09-01 18:07:52 +08:00
db55c8d892 Merge pull request '消息物流添加联系骑手' (#320) from zhy into master
Reviewed-on: http://git.luyuan.tk/luyuan/deming/pulls/320
2020-09-01 17:43:18 +08:00
8259883119 消息物流添加联系骑手 2020-09-01 17:42:16 +08:00
20d20e12d1 Merge pull request '添加字体换行' (#319) from xbx into master
Reviewed-on: http://git.luyuan.tk/luyuan/deming/pulls/319
2020-09-01 17:33:31 +08:00
e54282b839 添加点击调用接口 2020-09-01 17:33:11 +08:00
69c56b4772 添加字体换行 2020-09-01 16:53:41 +08:00
edc1d0c160 Merge pull request 'xbx' (#318) from xbx into master
Reviewed-on: http://git.luyuan.tk/luyuan/deming/pulls/318
2020-09-01 16:08:20 +08:00
bc4d6bb117 Merge branch 'xbx' of http://git.luyuan.tk/luyuan/deming into xbx 2020-09-01 16:07:58 +08:00
5e140e4143 更改了提示 2020-09-01 16:07:56 +08:00
8ed1ae0020 Merge pull request '添加了提示' (#317) from xbx into master
Reviewed-on: http://git.luyuan.tk/luyuan/deming/pulls/317
2020-09-01 16:07:39 +08:00
db13a1882d Merge branch 'master' into xbx 2020-09-01 16:07:30 +08:00
f4ba8edec2 添加了提示 2020-09-01 15:55:32 +08:00
8f400e2524 Merge pull request '新增自提显示' (#316) from zhy into master
Reviewed-on: http://git.luyuan.tk/luyuan/deming/pulls/316
2020-09-01 15:02:18 +08:00
56cdbfbf5d 新增自提显示 2020-09-01 15:00:36 +08:00
e608eb2a89 Merge pull request '新增自提' (#315) from zhy into master
Reviewed-on: http://git.luyuan.tk/luyuan/deming/pulls/315
2020-09-01 10:47:34 +08:00
96e16c7af2 新增自提 2020-09-01 10:47:06 +08:00
038eb466a2 新增自提 2020-09-01 10:43:32 +08:00
89cf7b96db 新增自提 2020-09-01 10:39:59 +08:00
4ee4f43f05 Merge pull request '修改了字体和编剧' (#314) from xbx into master
Reviewed-on: http://git.luyuan.tk/luyuan/deming/pulls/314
2020-09-01 10:35:33 +08:00
ccca4992ab 修改了字体和编剧 2020-09-01 10:34:32 +08:00
gyh
704fb038df Merge pull request 'gdpao' (#313) from gyh into master
Reviewed-on: http://git.luyuan.tk/luyuan/deming/pulls/313
2020-09-01 08:40:15 +08:00
Gdpao
1fad28b7b0 gdpao 2020-09-01 08:39:08 +08:00
840ba58aa6 Merge pull request '调试完成' (#311) from xbx into master
Reviewed-on: http://git.luyuan.tk/luyuan/deming/pulls/311
2020-08-31 17:04:37 +08:00
6039328f54 添加了销量 2020-08-31 17:04:15 +08:00
gyh
0de127d351 Merge pull request 'gdpao' (#312) from gyh into master
Reviewed-on: http://git.luyuan.tk/luyuan/deming/pulls/312
2020-08-31 16:33:10 +08:00
Gdpao
b1b4298721 gdpao 2020-08-31 16:31:31 +08:00
e98ad66060 调试完成 2020-08-31 15:37:47 +08:00
gyh
2d8e738164 Merge pull request 'gyh' (#310) from gyh into master
Reviewed-on: http://git.luyuan.tk/luyuan/deming/pulls/310
2020-08-31 10:15:47 +08:00
Gdpao
ee3ba5b0dc gdpasomg 2020-08-31 09:10:40 +08:00
Gdpao
8937a31684 gdpao 2020-08-31 09:07:24 +08:00
993e1bc647 Merge pull request 'xbx' (#309) from xbx into master
Reviewed-on: http://git.luyuan.tk/luyuan/deming/pulls/309
2020-08-29 00:14:09 +08:00
97c9774cc4 添加了 分类的搜索 2020-08-28 23:11:12 +08:00
839b1728f0 商品不出现 2020-08-28 22:54:51 +08:00
0e21019107 Merge pull request 'xbx' (#307) from xbx into master
Reviewed-on: http://git.luyuan.tk/luyuan/deming/pulls/307
2020-08-27 14:04:08 +08:00
4dfacfb524 Merge pull request '第三方绑定' (#305) from zhy into master
Reviewed-on: http://git.luyuan.tk/luyuan/deming/pulls/305
2020-08-27 12:22:22 +08:00
d3154dc864 第三方绑定 2020-08-27 12:21:32 +08:00
8f02597787 Merge pull request '第三方绑定' (#304) from zhy into master
Reviewed-on: http://git.luyuan.tk/luyuan/deming/pulls/304
2020-08-27 12:18:02 +08:00
16115ba111 第三方绑定 2020-08-27 12:16:09 +08:00
36f0675689 1 2020-08-27 12:15:55 +08:00
18c99cd668 添加了消息铃声 2020-08-27 11:06:11 +08:00
5f233b8e06 Merge pull request '第三方绑定' (#303) from zhy into master
Reviewed-on: http://git.luyuan.tk/luyuan/deming/pulls/303
2020-08-27 09:37:18 +08:00
916b1e0cbd 第三方绑定 2020-08-27 09:36:12 +08:00
Gdpao
2e36f2a22f gdpao 2020-08-26 20:31:30 +08:00
af612ef89e Merge pull request '启动页按钮问题' (#302) from zhy into master
Reviewed-on: http://git.luyuan.tk/luyuan/deming/pulls/302
2020-08-25 14:39:37 +08:00
95c55de38b 启动页按钮问题 2020-08-25 14:39:11 +08:00
d06394f6ad Merge pull request 'xbx' (#300) from xbx into master
Reviewed-on: http://git.luyuan.tk/luyuan/deming/pulls/300
2020-08-25 14:38:13 +08:00
f4de9fe13b Merge branch 'master' of http://git.luyuan.tk/luyuan/deming into xbx 2020-08-25 14:37:35 +08:00
2512923891 Merge pull request '版本更新跳转' (#299) from zhy into master
Reviewed-on: http://git.luyuan.tk/luyuan/deming/pulls/299
2020-08-25 14:21:38 +08:00
4ab89711b2 版本更新跳转 2020-08-25 14:21:15 +08:00
gyh
4876ddb383 Merge pull request '1.0.1' (#298) from gyh into master
Reviewed-on: http://git.luyuan.tk/luyuan/deming/pulls/298
2020-08-25 13:04:20 +08:00
Gdpao
9b5fca48a2 1.0.1 2020-08-25 13:03:24 +08:00
81955085b5 Merge pull request '版本更新跳转' (#297) from zhy into master
Reviewed-on: http://git.luyuan.tk/luyuan/deming/pulls/297
2020-08-25 12:21:55 +08:00
ffa18c92d2 版本更新跳转 2020-08-25 12:21:26 +08:00
b63a84149e Merge pull request '版本更新跳转' (#296) from zhy into master
Reviewed-on: http://git.luyuan.tk/luyuan/deming/pulls/296
2020-08-25 12:07:07 +08:00
1aee3f3320 版本更新跳转 2020-08-25 12:06:37 +08:00
6d0c6a6b15 Merge pull request '完善' (#295) from xbx-new into master
Reviewed-on: http://git.luyuan.tk/luyuan/deming/pulls/295
2020-08-25 11:53:18 +08:00
d5e4d52dbe Merge branch 'master' of http://git.luyuan.tk/luyuan/deming into xbx-new 2020-08-25 11:53:03 +08:00
d5d9e98534 1 2020-08-25 11:52:46 +08:00
71a82a10b0 完善 2020-08-25 11:51:16 +08:00
e3e470ab88 Merge pull request 'fixing bug' (#294) from zhy into master
Reviewed-on: http://git.luyuan.tk/luyuan/deming/pulls/294
2020-08-25 11:51:13 +08:00
3d4ee2bd4c fixing bug 2020-08-25 11:50:45 +08:00
6af21ad216 Merge pull request '跳转应用商店' (#293) from zhy into master
Reviewed-on: http://git.luyuan.tk/luyuan/deming/pulls/293
2020-08-25 10:41:17 +08:00
9c026bf64d 跳转应用商店 2020-08-25 10:40:47 +08:00
4436bbd282 Merge pull request '版本更新' (#292) from zhy into master
Reviewed-on: http://git.luyuan.tk/luyuan/deming/pulls/292
2020-08-25 10:14:36 +08:00
27bdf1f2b0 版本更新 2020-08-25 10:13:49 +08:00
76d13c5a71 Merge pull request 'xbx-new' (#291) from xbx-new into master
Reviewed-on: http://git.luyuan.tk/luyuan/deming/pulls/291
2020-08-25 10:03:53 +08:00
6d4d2e5d8d 去除了视频 2020-08-25 10:01:39 +08:00
6a25fe34a7 去除视频 2020-08-24 17:01:34 +08:00
0d96af99e1 Merge pull request '视频播放' (#290) from xbx-new into master
Reviewed-on: http://git.luyuan.tk/luyuan/deming/pulls/290
2020-08-24 16:48:30 +08:00
5c47aa8e5c 视频播放 2020-08-24 16:40:38 +08:00
gyh
5ad768f842 Merge pull request 'gdpao' (#289) from gyh into master
Reviewed-on: http://git.luyuan.tk/luyuan/deming/pulls/289
2020-08-24 15:46:28 +08:00
Gdpao
e674a2c0df gdpao 2020-08-24 15:45:35 +08:00
5194e15ec8 Merge pull request '添加消息无数据提示' (#288) from zhy into master
Reviewed-on: http://git.luyuan.tk/luyuan/deming/pulls/288
2020-08-24 15:14:12 +08:00
0a5115b8f4 添加消息无数据提示 2020-08-24 15:13:38 +08:00
1d8cd6512f Merge pull request '优惠券增加新人优惠券' (#287) from zhy into master
Reviewed-on: http://git.luyuan.tk/luyuan/deming/pulls/287
2020-08-24 14:29:47 +08:00
6306573ee4 优惠券增加新人优惠券 2020-08-24 14:29:15 +08:00
3e87a5aaf5 Merge branch 'master' of http://git.luyuan.tk/luyuan/deming into xbx 2020-08-24 14:23:22 +08:00
21b9995c1c Merge pull request 'add video link' (#286) from zhy into master
Reviewed-on: http://git.luyuan.tk/luyuan/deming/pulls/286
2020-08-24 14:13:44 +08:00
065cea4e11 add video link 2020-08-24 14:13:12 +08:00
f86e9ae009 Merge pull request 'add goods details video' (#285) from zhy into master
Reviewed-on: http://git.luyuan.tk/luyuan/deming/pulls/285
2020-08-24 11:45:25 +08:00
dddbabd207 add goods details video 2020-08-24 11:44:58 +08:00
52e6489a2c 优惠券完成 2020-08-22 16:45:26 +08:00
92771d8174 图标 2020-08-22 09:46:30 +08:00
60a619fa7b fix 756 2020-08-22 09:00:00 +08:00
6f344dc550 Merge pull request '修复' (#284) from xbx into master
Reviewed-on: http://git.luyuan.tk/luyuan/deming/pulls/284
2020-08-21 18:05:07 +08:00
03c6779b96 修复 2020-08-21 18:04:11 +08:00
gyh
8518677f05 Merge pull request 'gdpao' (#282) from gyh into master
Reviewed-on: http://git.luyuan.tk/luyuan/deming/pulls/282
2020-08-21 16:05:52 +08:00
Gdpao
e0aafebcdc gdpao 2020-08-21 16:05:09 +08:00
e43003e0cd Merge pull request '消息物流跳转' (#281) from zhy into master
Reviewed-on: http://git.luyuan.tk/luyuan/deming/pulls/281
2020-08-21 14:49:08 +08:00
7f30cf8020 消息物流跳转 2020-08-21 14:48:19 +08:00
62d610b025 Merge pull request '商品规格样式' (#279) from zhy into master
Reviewed-on: http://git.luyuan.tk/luyuan/deming/pulls/279
2020-08-21 11:51:54 +08:00
5806077877 商品规格样式 2020-08-21 11:51:31 +08:00
50fb33d8e4 Merge pull request 'fixing bug' (#278) from zhy into master
Reviewed-on: http://git.luyuan.tk/luyuan/deming/pulls/278
2020-08-21 11:18:31 +08:00
164dff3db5 fixing bug 2020-08-21 11:18:01 +08:00
5b287c7049 Merge pull request '全部显示物流' (#277) from zhy into master
Reviewed-on: http://git.luyuan.tk/luyuan/deming/pulls/277
2020-08-21 10:19:17 +08:00
fc44bb5fd6 全部显示物流 2020-08-21 10:18:10 +08:00
ecea27ccff Merge pull request '调整订单数量位置' (#276) from zhy into master
Reviewed-on: http://git.luyuan.tk/luyuan/deming/pulls/276
2020-08-21 09:25:21 +08:00
3d2e0a9525 调整订单数量位置 2020-08-21 09:24:51 +08:00
gyh
4b0cbcf814 Merge pull request 'gdpao' (#275) from gyh into master
Reviewed-on: http://git.luyuan.tk/luyuan/deming/pulls/275
2020-08-21 09:15:47 +08:00
Gdpao
ecb5f19fc0 gdpao 2020-08-21 09:14:57 +08:00
f54b94f0c6 Merge pull request '去掉店铺关注背景色' (#274) from zhy into master
Reviewed-on: http://git.luyuan.tk/luyuan/deming/pulls/274
2020-08-20 17:59:02 +08:00
abda1f39f5 去掉店铺关注背景色 2020-08-20 17:58:34 +08:00
gyh
9e6c36b65a Merge pull request 'gdpaoup2' (#273) from gyh into master
Reviewed-on: http://git.luyuan.tk/luyuan/deming/pulls/273
2020-08-20 17:44:18 +08:00
Gdpao
71fb73b61a Merge branch 'master' of http://git.luyuan.tk/luyuan/deming into gyh 2020-08-20 17:42:46 +08:00
Gdpao
83b06e2ab5 gdpaoup2 2020-08-20 17:42:07 +08:00
b575501bb7 Merge pull request 'fixing bug' (#272) from zhy into master
Reviewed-on: http://git.luyuan.tk/luyuan/deming/pulls/272
2020-08-20 17:39:55 +08:00
d69486d1ab fixing bug 2020-08-20 17:39:30 +08:00
d3c68b8c93 Merge pull request '初始化运费' (#271) from zhy into master
Reviewed-on: http://git.luyuan.tk/luyuan/deming/pulls/271
2020-08-20 16:55:08 +08:00
40e4d10bd7 初始化运费 2020-08-20 16:54:39 +08:00
gyh
7790481afb Merge pull request 'gdpaoup1' (#270) from gyh into master
Reviewed-on: http://git.luyuan.tk/luyuan/deming/pulls/270
2020-08-20 16:23:32 +08:00
Gdpao
7c0720fab2 gdpaoup1 2020-08-20 16:22:34 +08:00
1f966b261e Merge pull request '消息物流跳转' (#269) from zhy into master
Reviewed-on: http://git.luyuan.tk/luyuan/deming/pulls/269
2020-08-20 16:20:38 +08:00
421112db2e 消息物流跳转 2020-08-20 16:18:52 +08:00
920976dedd Merge pull request '消息物流跳转' (#268) from zhy into master
Reviewed-on: http://git.luyuan.tk/luyuan/deming/pulls/268
2020-08-20 16:17:15 +08:00
91a655e224 消息物流跳转 2020-08-20 16:16:34 +08:00
gyh
4e3665acc7 Merge pull request 'gdppao' (#267) from gyh into master
Reviewed-on: http://git.luyuan.tk/luyuan/deming/pulls/267
2020-08-20 15:17:54 +08:00
Gdpao
1643bf51b2 gdppao 2020-08-20 15:16:29 +08:00
d234176f22 Merge pull request 'xbx' (#266) from xbx into master
Reviewed-on: http://git.luyuan.tk/luyuan/deming/pulls/266
2020-08-20 15:15:16 +08:00
b75e885e70 Merge branch 'master' of http://git.luyuan.tk/luyuan/deming into xbx 2020-08-20 14:55:54 +08:00
9eaf84d496 Merge pull request 'fixing bung' (#264) from zhy into master
Reviewed-on: http://git.luyuan.tk/luyuan/deming/pulls/264
2020-08-20 14:47:44 +08:00
dbbd64269f fixing bung 2020-08-20 14:46:57 +08:00
677890a06d 解决了关注刷新的问题 2020-08-20 14:32:01 +08:00
dd3d3c17c4 Merge pull request 'zmr' (#263) from zmr into master
Reviewed-on: http://git.luyuan.tk/luyuan/deming/pulls/263
2020-08-20 14:30:12 +08:00
zmr900709
78169d8cde 解决样式问题 2020-08-20 14:24:17 +08:00
zmr900709
7f0d1063f0 Merge branch 'master' of http://git.luyuan.tk/luyuan/deming into zmr 2020-08-20 14:23:32 +08:00
zmr900709
c81ee7e961 1 2020-08-20 14:23:21 +08:00
6864f22576 Merge pull request '首页拼团商品显示不全' (#262) from zhy into master
Reviewed-on: http://git.luyuan.tk/luyuan/deming/pulls/262
2020-08-20 12:05:44 +08:00
a91fa4708b 首页拼团商品显示不全 2020-08-20 12:05:15 +08:00
bfffb44fe2 Merge pull request 'zhy' (#261) from zhy into master
Reviewed-on: http://git.luyuan.tk/luyuan/deming/pulls/261
2020-08-20 11:43:19 +08:00
16c2c1fa71 使用优惠券价格 2020-08-20 11:42:52 +08:00
4c8e2ba4b6 使用优惠券价格 2020-08-20 11:41:58 +08:00
96d7ad439a Merge pull request '优惠券列表显示,使用优惠券价格计算' (#259) from zhy into master
Reviewed-on: http://git.luyuan.tk/luyuan/deming/pulls/259
2020-08-20 11:29:22 +08:00
390bda7c0e 优惠券列表显示,使用优惠券价格计算 2020-08-20 11:28:49 +08:00
0ae19c2ddf Merge pull request 'touxiang' (#258) from xbx into master
Reviewed-on: http://git.luyuan.tk/luyuan/deming/pulls/258
2020-08-20 11:27:56 +08:00
26cb84748a touxiang 2020-08-20 11:26:59 +08:00
c6cd88dc48 Merge pull request 'xbx' (#257) from xbx into master
Reviewed-on: http://git.luyuan.tk/luyuan/deming/pulls/257
2020-08-20 11:10:11 +08:00
a34880e6a6 Merge branch 'master' of http://git.luyuan.tk/luyuan/deming into xbx 2020-08-20 11:09:49 +08:00
3d840a0546 修复了交易物流 2020-08-20 10:54:09 +08:00
30539ddf64 Merge pull request '新人优惠券显示问题,使用优惠券价格问题' (#256) from zhy into master
Reviewed-on: http://git.luyuan.tk/luyuan/deming/pulls/256
2020-08-20 10:26:39 +08:00
51823edb12 新人优惠券显示问题,使用优惠券价格问题 2020-08-20 10:25:58 +08:00
e58f571de4 直播添加了下拉刷新 2020-08-20 10:16:40 +08:00
gyh
c4821f888f Merge pull request 'gdpao' (#255) from gyh into master
Reviewed-on: http://git.luyuan.tk/luyuan/deming/pulls/255
2020-08-19 19:25:14 +08:00
Gdpao
69760e6377 gdpao 2020-08-19 19:24:14 +08:00
080f0c6d86 Merge pull request 'zhy' (#254) from zhy into master
Reviewed-on: http://git.luyuan.tk/luyuan/deming/pulls/254
2020-08-19 18:04:59 +08:00
4e842b127c fixing bug coupon 2020-08-19 18:04:32 +08:00
627cfc4aa0 优惠券加分页 2020-08-19 17:55:58 +08:00
1e94eb864f Merge pull request '调整首页全部拼团样式' (#253) from zhy into master
Reviewed-on: http://git.luyuan.tk/luyuan/deming/pulls/253
2020-08-19 17:28:58 +08:00
64597b26fa 调整首页全部拼团样式 2020-08-19 17:27:49 +08:00
05b334fdcb Merge pull request '广告位跳转' (#252) from zhy into master
Reviewed-on: http://git.luyuan.tk/luyuan/deming/pulls/252
2020-08-19 16:59:46 +08:00
dc636e30b7 广告位跳转 2020-08-19 16:59:06 +08:00
f9950c4a14 Merge pull request '联系客服拨号,新人优惠券跳转' (#251) from zhy into master
Reviewed-on: http://git.luyuan.tk/luyuan/deming/pulls/251
2020-08-19 15:36:55 +08:00
5dff8c8d96 联系客服拨号,新人优惠券跳转 2020-08-19 15:36:25 +08:00
35da48a87b Merge pull request '调整个人中心首页,添加物流无信息提示' (#250) from zhy into master
Reviewed-on: http://git.luyuan.tk/luyuan/deming/pulls/250
2020-08-19 15:20:18 +08:00
5dd4023f97 调整个人中心首页,添加物流无信息提示 2020-08-19 15:19:25 +08:00
10957c96d6 Merge pull request 'zhy' (#249) from zhy into master
Reviewed-on: http://git.luyuan.tk/luyuan/deming/pulls/249
2020-08-19 11:22:45 +08:00
86d765d6ba order number 8.19 2020-08-19 11:21:31 +08:00
bea615253c Merge branch 'master' of http://git.luyuan.tk/luyuan/deming into zhy 2020-08-19 08:31:26 +08:00
gyh
48f50dbc89 Merge pull request 'gdpaomg' (#248) from gyh into master
Reviewed-on: http://git.luyuan.tk/luyuan/deming/pulls/248
2020-08-18 21:11:59 +08:00
Gdpao
891f1b4194 gdpaomg 2020-08-18 21:11:28 +08:00
fb16e774b8 Merge pull request 'zmr' (#247) from zmr into master
Reviewed-on: http://git.luyuan.tk/luyuan/deming/pulls/247
2020-08-18 21:10:19 +08:00
zmr900709
97c95c2024 Merge branch 'master' of http://git.luyuan.tk/luyuan/deming into zmr 2020-08-18 21:03:39 +08:00
zmr900709
9d8d54cf02 修改活动背景高度 2020-08-18 21:03:23 +08:00
417ec2106e Merge pull request 'fixing bug' (#246) from zhy into master
Reviewed-on: http://git.luyuan.tk/luyuan/deming/pulls/246
2020-08-18 18:06:29 +08:00
2b1b1f1395 Merge branch 'master' of http://git.luyuan.tk/luyuan/deming into zhy 2020-08-18 18:05:26 +08:00
18dd96dec7 fixing bug 2020-08-18 18:05:15 +08:00
gyh
6dd010fd42 Merge pull request 'gdpao;' (#245) from gyh into master
Reviewed-on: http://git.luyuan.tk/luyuan/deming/pulls/245
2020-08-18 17:44:37 +08:00
Gdpao
41cda556ce gdpao; 2020-08-18 17:43:58 +08:00
6b4bfee380 Merge pull request 'upgrade version 8.18' (#244) from zhy into master
Reviewed-on: http://git.luyuan.tk/luyuan/deming/pulls/244
2020-08-18 17:43:03 +08:00
cb0a6fafa3 upgrade version 8.18 2020-08-18 17:42:26 +08:00
fd1801de3d Merge pull request '背景颜色' (#243) from xbx into master
Reviewed-on: http://git.luyuan.tk/luyuan/deming/pulls/243
2020-08-18 17:06:19 +08:00
418068102c 背景颜色 2020-08-18 17:05:29 +08:00
72fa854e78 Merge pull request '...' (#242) from zhy into master
Reviewed-on: http://git.luyuan.tk/luyuan/deming/pulls/242
2020-08-18 15:51:35 +08:00
2a382aa0b4 ... 2020-08-18 15:51:04 +08:00
bb651df8a0 Merge pull request '替换域名' (#241) from xbx into master
Reviewed-on: http://git.luyuan.tk/luyuan/deming/pulls/241
2020-08-18 15:31:53 +08:00
9c388e898c 替换域名 2020-08-18 15:29:52 +08:00
473b96f552 Merge pull request 'fixing bug' (#240) from zhy into master
Reviewed-on: http://git.luyuan.tk/luyuan/deming/pulls/240
2020-08-18 15:28:51 +08:00
1a2c40955b fixing bug 2020-08-18 15:28:22 +08:00
5291d70c6c Merge pull request 'paixu' (#239) from xbx into master
Reviewed-on: http://git.luyuan.tk/luyuan/deming/pulls/239
2020-08-18 15:26:52 +08:00
f98cdd7937 paixu 2020-08-18 15:26:28 +08:00
gyh
60913ab612 Merge pull request 'gdpaoup' (#238) from gyh into master
Reviewed-on: http://git.luyuan.tk/luyuan/deming/pulls/238
2020-08-18 15:24:58 +08:00
Gdpao
ee04a8cb08 gdpaoup 2020-08-18 15:24:06 +08:00
711eeadc28 Merge pull request 'xbx' (#237) from xbx into master
Reviewed-on: http://git.luyuan.tk/luyuan/deming/pulls/237
2020-08-18 15:11:24 +08:00
8286dbfa58 替换url 2020-08-18 15:10:43 +08:00
cb95d1ead1 链接登录退出 2020-08-18 15:08:42 +08:00
f577de11f1 Merge pull request '写死首页拼团推荐的头像' (#236) from zhy into master
Reviewed-on: http://git.luyuan.tk/luyuan/deming/pulls/236
2020-08-18 12:12:29 +08:00
689aecc572 写死首页拼团推荐的头像 2020-08-18 12:12:01 +08:00
8ba87795b3 Merge pull request 'zmr' (#235) from zmr into master
Reviewed-on: http://git.luyuan.tk/luyuan/deming/pulls/235
2020-08-18 12:04:34 +08:00
zmr900709
e51675d2e7 修改活动样式 2020-08-18 12:02:30 +08:00
43e09e977d 修复 2020-08-18 11:40:53 +08:00
zmr900709
91927fdc57 Merge branch 'master' of http://git.luyuan.tk/luyuan/deming into zmr 2020-08-18 11:35:37 +08:00
zmr900709
8f83aeec8e 修改活动样式 2020-08-18 11:28:51 +08:00
d5202c02cc Merge pull request 'fixing bug' (#234) from zhy into master
Reviewed-on: http://git.luyuan.tk/luyuan/deming/pulls/234
2020-08-18 11:15:01 +08:00
631e8ae3e6 fixing bug 2020-08-18 11:14:29 +08:00
zmr900709
b2b740c207 修改活动列表页样式 2020-08-18 11:06:28 +08:00
gyh
7191b29b44 Merge pull request 'gdpao' (#233) from gyh into master
Reviewed-on: http://git.luyuan.tk/luyuan/deming/pulls/233
2020-08-18 11:03:41 +08:00
Gdpao
50c790c7fc gdpao 2020-08-18 11:02:41 +08:00
ec8831152e Merge pull request 'fixing bug' (#232) from zhy into master
Reviewed-on: http://git.luyuan.tk/luyuan/deming/pulls/232
2020-08-18 11:02:20 +08:00
6f5c2d1fc9 fixing bug 2020-08-18 11:01:48 +08:00
9f17c5478c 提交 2020-08-18 10:43:15 +08:00
41ea8122e6 Merge pull request '首页拼团推荐样式' (#231) from zhy into master
Reviewed-on: http://git.luyuan.tk/luyuan/deming/pulls/231
2020-08-18 10:39:03 +08:00
06ee3b9038 首页拼团推荐样式 2020-08-18 10:38:35 +08:00
5b763fdb82 Merge pull request '秒杀时间背景色' (#230) from zhy into master
Reviewed-on: http://git.luyuan.tk/luyuan/deming/pulls/230
2020-08-18 10:20:54 +08:00
31689af773 秒杀时间背景色 2020-08-18 10:20:30 +08:00
caaea4de62 Merge pull request 'store css 8.18' (#229) from zhy into master
Reviewed-on: http://git.luyuan.tk/luyuan/deming/pulls/229
2020-08-18 10:06:53 +08:00
cada935c17 store css 8.18 2020-08-18 10:06:20 +08:00
9e9a6dcc5b Merge pull request 'fixing bug 8.18' (#228) from zhy into master
Reviewed-on: http://git.luyuan.tk/luyuan/deming/pulls/228
2020-08-18 08:53:18 +08:00
a702558eac fixing bug 8.18 2020-08-18 08:52:47 +08:00
gyh
2a180ba05f Merge pull request 'gdpao2' (#227) from gyh into master
Reviewed-on: http://git.luyuan.tk/luyuan/deming/pulls/227
2020-08-17 20:32:50 +08:00
Gdpao
2a5e4b89b2 gdpao2 2020-08-17 20:32:11 +08:00
gyh
fd31d14881 Merge pull request 'gdpaon' (#226) from gyh into master
Reviewed-on: http://git.luyuan.tk/luyuan/deming/pulls/226
2020-08-17 19:34:48 +08:00
Gdpao
aae9f78a91 gdpaon 2020-08-17 19:33:55 +08:00
a39aa6e059 文字定位 2020-08-17 18:13:01 +08:00
3e6f7ebf1b Merge pull request 'xbx' (#225) from xbx into master
Reviewed-on: http://git.luyuan.tk/luyuan/deming/pulls/225
2020-08-17 18:09:43 +08:00
35838e3a9e 添加了划线价 2020-08-17 18:09:19 +08:00
d0d034cd7f 直播暂无消息 2020-08-17 17:49:18 +08:00
d8a92db5c2 直播关注 2020-08-17 17:30:51 +08:00
67a8316666 Merge pull request 'xbx' (#224) from xbx into master
Reviewed-on: http://git.luyuan.tk/luyuan/deming/pulls/224
2020-08-17 17:24:08 +08:00
51d8f6a762 推荐权益 2020-08-17 17:23:48 +08:00
gyh
f77b4ebc02 Merge pull request 'gdpao' (#223) from gyh into master
Reviewed-on: http://git.luyuan.tk/luyuan/deming/pulls/223
2020-08-17 16:58:52 +08:00
Gdpao
b1a705e0f8 gdpao 2020-08-17 16:57:23 +08:00
c14b4338e9 Merge pull request '修复 694' (#222) from xbx into master
Reviewed-on: http://git.luyuan.tk/luyuan/deming/pulls/222
2020-08-17 16:34:01 +08:00
ec3420a026 替换 2020-08-17 16:33:36 +08:00
aeb62f16ef 修复 694 2020-08-17 16:01:02 +08:00
b7c9ec2354 Merge pull request '修复 707' (#221) from xbx into master
Reviewed-on: http://git.luyuan.tk/luyuan/deming/pulls/221
2020-08-17 15:28:22 +08:00
9160a98de7 修复 707 2020-08-17 15:27:42 +08:00
a5962d96df Merge pull request '新增 701' (#220) from xbx into master
Reviewed-on: http://git.luyuan.tk/luyuan/deming/pulls/220
2020-08-17 15:15:17 +08:00
e7932d26ce 新增 701 2020-08-17 15:14:32 +08:00
8b98de3d8b Merge pull request 'fix 696' (#219) from xbx into master
Reviewed-on: http://git.luyuan.tk/luyuan/deming/pulls/219
2020-08-17 14:58:35 +08:00
c33ccebd25 fix 696 2020-08-17 14:57:58 +08:00
1af3d1a003 Merge pull request '退款' (#218) from xbx into master
Reviewed-on: http://git.luyuan.tk/luyuan/deming/pulls/218
2020-08-17 12:11:59 +08:00
fb297a74ce 退款 2020-08-17 12:11:38 +08:00
5a2fc6e94c Merge pull request '修复链接失败' (#217) from xbx into master
Reviewed-on: http://git.luyuan.tk/luyuan/deming/pulls/217
2020-08-17 09:46:01 +08:00
884bf6945f Merge branch 'master' of http://git.luyuan.tk/luyuan/deming into xbx 2020-08-17 09:45:42 +08:00
3be650b24e 修复链接失败 2020-08-17 09:44:47 +08:00
gyh
9029e3c8ba Merge pull request 'gdpaoup' (#216) from gyh into master
Reviewed-on: http://git.luyuan.tk/luyuan/deming/pulls/216
2020-08-15 19:14:58 +08:00
Gdpao
c2346375c8 gdpaoup 2020-08-15 19:14:12 +08:00
95c7f10f2d Merge pull request '店铺搜索' (#215) from xbx into master
Reviewed-on: http://git.luyuan.tk/luyuan/deming/pulls/215
2020-08-15 19:13:35 +08:00
c13d87a07f Merge pull request 'xbx' (#214) from xbx into master
Reviewed-on: http://git.luyuan.tk/luyuan/deming/pulls/214
2020-08-15 19:07:50 +08:00
33e8942180 店铺搜索 2020-08-15 19:04:18 +08:00
16da95c248 Merge pull request '达人列表 8.15' (#213) from zhy into master
Reviewed-on: http://git.luyuan.tk/luyuan/deming/pulls/213
2020-08-15 18:33:23 +08:00
97676d75fb 达人列表 8.15 2020-08-15 18:32:46 +08:00
94dc78555a 跳转直播 2020-08-15 18:03:52 +08:00
176501939d 修改状态 2020-08-15 17:59:56 +08:00
7b3ba99d2c Merge pull request 'delete chat 8.15' (#212) from zhy into master
Reviewed-on: http://git.luyuan.tk/luyuan/deming/pulls/212
2020-08-15 17:45:16 +08:00
e427748a79 delete chat 8.15 2020-08-15 17:44:49 +08:00
93000ac032 Merge pull request 'mine concerns 8.15' (#211) from zhy into master
Reviewed-on: http://git.luyuan.tk/luyuan/deming/pulls/211
2020-08-15 17:18:21 +08:00
b86b1c8245 mine concerns 8.15 2020-08-15 17:17:59 +08:00
df52535848 mine concerns 8.15 2020-08-15 17:16:11 +08:00
718e3ff45d Merge pull request 'xbx' (#210) from xbx into master
Reviewed-on: http://git.luyuan.tk/luyuan/deming/pulls/210
2020-08-15 15:48:11 +08:00
27470faee1 完成 2020-08-15 15:47:29 +08:00
05aa790d32 添加默认头像 2020-08-15 15:42:00 +08:00
686955424b Merge branch 'master' of http://git.luyuan.tk/luyuan/deming into xbx 2020-08-15 15:38:05 +08:00
6f0ed8e3f9 i年时 2020-08-15 15:37:16 +08:00
be2780fbc4 修复 2020-08-15 13:42:51 +08:00
7d13fc8e85 直播 2020-08-15 13:36:16 +08:00
7deb5d312b Merge pull request 'bug 8.14' (#209) from zhy into master
Reviewed-on: http://git.luyuan.tk/luyuan/deming/pulls/209
2020-08-14 21:38:48 +08:00
e784bbf596 bug 8.14 2020-08-14 21:38:23 +08:00
55742478b2 Merge pull request 'goods details store route 8.14' (#208) from zhy into master
Reviewed-on: http://git.luyuan.tk/luyuan/deming/pulls/208
2020-08-14 20:45:44 +08:00
d79b0c5da7 goods details store route 8.14 2020-08-14 20:45:11 +08:00
gyh
ba4d2dfa51 Merge pull request 'gdpao' (#207) from gyh into master
Reviewed-on: http://git.luyuan.tk/luyuan/deming/pulls/207
2020-08-14 20:41:44 +08:00
Gdpao
3da4dad3cb Merge branch 'master' of http://git.luyuan.tk/luyuan/deming into gyh 2020-08-14 20:41:16 +08:00
Gdpao
5c895d247f gdpao 2020-08-14 20:40:38 +08:00
2ddeb4bc61 Merge pull request 'mine css 8.14' (#206) from zhy into master
Reviewed-on: http://git.luyuan.tk/luyuan/deming/pulls/206
2020-08-14 20:19:29 +08:00
41d2258a5d mine css 8.14 2020-08-14 20:19:04 +08:00
gyh
da21482a81 Merge pull request 'gdpao_up' (#205) from gyh into master
Reviewed-on: http://git.luyuan.tk/luyuan/deming/pulls/205
2020-08-14 19:50:59 +08:00
Gdpao
9158f27afb gdpao_up 2020-08-14 19:49:57 +08:00
6313f642ea Merge pull request 'order details takeawayer 8.14' (#204) from zhy into master
Reviewed-on: http://git.luyuan.tk/luyuan/deming/pulls/204
2020-08-14 18:59:15 +08:00
f46cc4d645 order details takeawayer 8.14 2020-08-14 18:58:46 +08:00
7d8027678d Merge pull request 'update uview 8.14' (#203) from zhy into master
Reviewed-on: http://git.luyuan.tk/luyuan/deming/pulls/203
2020-08-14 17:57:44 +08:00
2aca3ae153 update uview 8.14 2020-08-14 17:57:13 +08:00
dc03b9f410 Merge pull request '关注' (#202) from xbx into master
Reviewed-on: http://git.luyuan.tk/luyuan/deming/pulls/202
2020-08-14 17:53:58 +08:00
d520fe8017 关注 2020-08-14 17:53:23 +08:00
1541851988 Merge pull request '取关' (#201) from xbx into master
Reviewed-on: http://git.luyuan.tk/luyuan/deming/pulls/201
2020-08-14 17:46:18 +08:00
ce1c1a4f16 取关 2020-08-14 17:45:52 +08:00
0c40a45155 Merge pull request 'update uview 8.14' (#200) from zhy into master
Reviewed-on: http://git.luyuan.tk/luyuan/deming/pulls/200
2020-08-14 17:17:46 +08:00
cb2e91f65a update uview 8.14 2020-08-14 17:17:16 +08:00
f06f211417 Merge pull request 'xbx' (#199) from xbx into master
Reviewed-on: http://git.luyuan.tk/luyuan/deming/pulls/199
2020-08-14 17:12:02 +08:00
c0c3f51695 关注列表 2020-08-14 16:51:55 +08:00
aa1d4631b2 Merge pull request 'goods default spec 8.14' (#198) from zhy into master
Reviewed-on: http://git.luyuan.tk/luyuan/deming/pulls/198
2020-08-14 15:47:09 +08:00
b266c9c775 goods default spec 8.14 2020-08-14 15:46:43 +08:00
899b93fc4f Merge pull request 'nickname 8.14' (#197) from zhy into master
Reviewed-on: http://git.luyuan.tk/luyuan/deming/pulls/197
2020-08-14 14:58:19 +08:00
1f4fac94ae nickname 8.14 2020-08-14 14:57:46 +08:00
12efa8d79c Merge branch 'master' of http://git.luyuan.tk/luyuan/deming into xbx 2020-08-14 14:50:57 +08:00
f6ffcdec64 直播人数 2020-08-14 14:40:01 +08:00
f0c2b00a02 Merge pull request 'goods details spec 8.14' (#196) from zhy into master
Reviewed-on: http://git.luyuan.tk/luyuan/deming/pulls/196
2020-08-14 14:04:41 +08:00
9f58e1c7a2 goods details spec 8.14 2020-08-14 14:04:16 +08:00
gyh
cd0e8bbf9e Merge pull request 'gdpaoup' (#195) from gyh into master
Reviewed-on: http://git.luyuan.tk/luyuan/deming/pulls/195
2020-08-14 11:35:04 +08:00
Gdpao
ce1a8d6256 gdpaoup 2020-08-14 11:33:57 +08:00
b8681f7c01 Merge pull request 'order spec 8.14' (#194) from zhy into master
Reviewed-on: http://git.luyuan.tk/luyuan/deming/pulls/194
2020-08-14 11:31:15 +08:00
505e3354a3 order spec 8.14 2020-08-14 11:30:49 +08:00
4d76db71fe Merge pull request 'order spec 8.14' (#193) from zhy into master
Reviewed-on: http://git.luyuan.tk/luyuan/deming/pulls/193
2020-08-14 11:25:26 +08:00
f9224f10cf order spec 8.14 2020-08-14 11:24:44 +08:00
a4a9843bdc Merge pull request '修正了人' (#192) from xbx into master
Reviewed-on: http://git.luyuan.tk/luyuan/deming/pulls/192
2020-08-14 11:07:52 +08:00
3713cab533 修正了人 2020-08-14 11:07:17 +08:00
f83fb04e1c Merge pull request 'delete mine history 8.14' (#191) from zhy into master
Reviewed-on: http://git.luyuan.tk/luyuan/deming/pulls/191
2020-08-14 10:58:40 +08:00
07ac250ddd delete mine history 8.14 2020-08-14 10:58:05 +08:00
b087d85337 Merge pull request '左滑跳过' (#190) from xbx into master
Reviewed-on: http://git.luyuan.tk/luyuan/deming/pulls/190
2020-08-14 10:56:29 +08:00
65c1e2fd63 左滑跳过 2020-08-14 10:55:56 +08:00
736ee9e555 Merge pull request '替换了名字' (#189) from xbx into master
Reviewed-on: http://git.luyuan.tk/luyuan/deming/pulls/189
2020-08-14 10:09:09 +08:00
1c3ed37983 替换了名字 2020-08-14 10:07:33 +08:00
0f03c543e1 Merge pull request '红点' (#188) from xbx into master
Reviewed-on: http://git.luyuan.tk/luyuan/deming/pulls/188
2020-08-14 10:00:57 +08:00
bc2731f1f9 红点 2020-08-14 10:00:27 +08:00
b3398be7e1 Merge pull request 'xbx' (#187) from xbx into master
Reviewed-on: http://git.luyuan.tk/luyuan/deming/pulls/187
2020-08-14 09:41:41 +08:00
90e9e06915 名字 2020-08-14 09:26:59 +08:00
2a58f2f63f 收起键盘 2020-08-14 09:19:11 +08:00
7393fefdf4 Merge pull request '修复' (#186) from xbx into master
Reviewed-on: http://git.luyuan.tk/luyuan/deming/pulls/186
2020-08-14 08:50:27 +08:00
gyh
f4ae3578a2 Merge pull request 'gdpao' (#185) from gyh into master
Reviewed-on: http://git.luyuan.tk/luyuan/deming/pulls/185
2020-08-13 19:42:28 +08:00
Gdpao
137279b774 gdpao 2020-08-13 19:41:46 +08:00
5a1a8f01c0 Merge pull request '秒杀时间样式 8.13' (#184) from zhy into master
Reviewed-on: http://git.luyuan.tk/luyuan/deming/pulls/184
2020-08-13 18:08:25 +08:00
ca5c1a37ba 秒杀时间样式 8.13 2020-08-13 18:07:55 +08:00
572271d807 修复 2020-08-13 17:28:08 +08:00
f746e39440 Merge pull request 'store route 8.13' (#183) from zhy into master
Reviewed-on: http://git.luyuan.tk/luyuan/deming/pulls/183
2020-08-13 17:26:50 +08:00
c4adcbc182 store route 8.13 2020-08-13 17:26:26 +08:00
5688828bad Merge pull request 'mine index css 8.13' (#182) from zhy into master
Reviewed-on: http://git.luyuan.tk/luyuan/deming/pulls/182
2020-08-13 17:19:08 +08:00
b9b32fb655 mine index css 8.13 2020-08-13 17:18:44 +08:00
3de426b55e Merge pull request 'coupon goods 8.13' (#181) from zhy into master
Reviewed-on: http://git.luyuan.tk/luyuan/deming/pulls/181
2020-08-13 17:05:33 +08:00
e224cffc1c coupon goods 8.13 2020-08-13 17:05:02 +08:00
281c12e502 Merge pull request '直播头像' (#180) from xbx into master
Reviewed-on: http://git.luyuan.tk/luyuan/deming/pulls/180
2020-08-13 16:36:54 +08:00
3d552b84c7 直播头像 2020-08-13 16:36:34 +08:00
e0216062f1 Merge pull request '直播分也' (#179) from xbx into master
Reviewed-on: http://git.luyuan.tk/luyuan/deming/pulls/179
2020-08-13 16:22:17 +08:00
ed6674f3ff 直播分也 2020-08-13 16:21:53 +08:00
gyh
459e7fad0f Merge pull request 'gdpao' (#178) from gyh into master
Reviewed-on: http://git.luyuan.tk/luyuan/deming/pulls/178
2020-08-13 16:20:00 +08:00
Gdpao
e8ae43c726 gdpao 2020-08-13 16:18:39 +08:00
f1fbeb65a1 Merge pull request 'store article 8.13' (#177) from zhy into master
Reviewed-on: http://git.luyuan.tk/luyuan/deming/pulls/177
2020-08-13 16:07:43 +08:00
a95336a5a6 store article 8.13 2020-08-13 16:07:19 +08:00
2a79e45d77 Merge pull request '直播聊天是状态' (#176) from xbx into master
Reviewed-on: http://git.luyuan.tk/luyuan/deming/pulls/176
2020-08-13 16:06:31 +08:00
5ae02daab8 Merge pull request '状态' (#175) from xbx into master
Reviewed-on: http://git.luyuan.tk/luyuan/deming/pulls/175
2020-08-13 16:06:06 +08:00
1b0528f7dc 直播聊天是状态 2020-08-13 16:05:43 +08:00
ca9b43a597 状态 2020-08-13 16:03:01 +08:00
e3c548c9b0 Merge pull request 'store article 8.13' (#174) from zhy into master
Reviewed-on: http://git.luyuan.tk/luyuan/deming/pulls/174
2020-08-13 15:41:34 +08:00
2811bf31cd store article 8.13 2020-08-13 15:41:03 +08:00
4413250c40 Merge pull request 'xbx' (#173) from xbx into master
Reviewed-on: http://git.luyuan.tk/luyuan/deming/pulls/173
2020-08-13 15:38:48 +08:00
d604351cf3 分也 2020-08-13 15:37:59 +08:00
1a3b39f31e 滑动到顶部 2020-08-13 15:06:49 +08:00
87e5515b98 高度修改 2020-08-13 15:02:00 +08:00
213a7fb9ff 搜索分也 2020-08-13 14:58:04 +08:00
0b3e2b3e1e Merge pull request '语音图标' (#172) from xbx into master
Reviewed-on: http://git.luyuan.tk/luyuan/deming/pulls/172
2020-08-13 12:19:34 +08:00
5801c2f91c 语音图标 2020-08-13 12:15:59 +08:00
8e94b1b5f1 Merge pull request 'order 8.13' (#171) from zhy into master
Reviewed-on: http://git.luyuan.tk/luyuan/deming/pulls/171
2020-08-13 12:13:42 +08:00
3b01c1acca order 8.13 2020-08-13 12:13:12 +08:00
1936105b1b Merge pull request 'store 8.13' (#170) from zhy into master
Reviewed-on: http://git.luyuan.tk/luyuan/deming/pulls/170
2020-08-13 11:55:13 +08:00
02639fc9e1 store 8.13 2020-08-13 11:54:44 +08:00
bb4f971af1 Merge pull request '添加了分也' (#169) from xbx into master
Reviewed-on: http://git.luyuan.tk/luyuan/deming/pulls/169
2020-08-13 11:52:40 +08:00
54dd8a6eb0 添加了分也 2020-08-13 11:52:05 +08:00
2f7651f217 Merge pull request '一部分完成' (#168) from xbx into master
Reviewed-on: http://git.luyuan.tk/luyuan/deming/pulls/168
2020-08-13 10:10:04 +08:00
eb886368e9 Merge branch 'master' of http://git.luyuan.tk/luyuan/deming into xbx 2020-08-13 10:09:49 +08:00
e55aa62bcc 一部分完成 2020-08-13 10:04:50 +08:00
gyh
f9a2ada1d3 Merge pull request 'gdpaoup' (#167) from gyh into master
Reviewed-on: http://git.luyuan.tk/luyuan/deming/pulls/167
2020-08-12 22:01:05 +08:00
Gdpao
6d4d8c5675 gdpaoup 2020-08-12 22:00:01 +08:00
a6bdc88c61 Merge pull request 'fixing bug 8.12' (#166) from zhy into master
Reviewed-on: http://git.luyuan.tk/luyuan/deming/pulls/166
2020-08-12 18:38:44 +08:00
c03fff99e0 fixing bug 8.12 2020-08-12 18:38:14 +08:00
eb1dce5d6b Merge pull request 'fixing bug add address 8.12' (#165) from zhy into master
Reviewed-on: http://git.luyuan.tk/luyuan/deming/pulls/165
2020-08-12 16:02:22 +08:00
3b5515d317 fixing bug add address 8.12 2020-08-12 16:01:43 +08:00
gyh
529325e203 Merge pull request 'GDPAO' (#164) from gyh into master
Reviewed-on: http://git.luyuan.tk/luyuan/deming/pulls/164
2020-08-12 15:36:55 +08:00
Gdpao
22812469a8 GDPAO 2020-08-12 15:35:47 +08:00
a6907f3f69 Merge pull request 'update goods price 8.12' (#163) from zhy into master
Reviewed-on: http://git.luyuan.tk/luyuan/deming/pulls/163
2020-08-12 15:24:54 +08:00
a871e050f6 update goods price 8.12 2020-08-12 15:24:13 +08:00
c39d6ba811 Merge pull request '修改了图片' (#162) from xbx into master
Reviewed-on: http://git.luyuan.tk/luyuan/deming/pulls/162
2020-08-12 15:02:18 +08:00
fb3713093f Merge branch 'master' into xbx 2020-08-12 15:02:12 +08:00
e8f46674c4 修改了图片 2020-08-12 15:01:11 +08:00
b85ab380ef Merge pull request 'mine history 8.12' (#161) from zhy into master
Reviewed-on: http://git.luyuan.tk/luyuan/deming/pulls/161
2020-08-12 11:45:38 +08:00
87185d7d0f mine history 8.12 2020-08-12 11:45:12 +08:00
22cdf3e415 Merge pull request 'xbx' (#160) from xbx into master
Reviewed-on: http://git.luyuan.tk/luyuan/deming/pulls/160
2020-08-12 11:33:44 +08:00
ab4e50a9ae Merge branch 'master' of http://git.luyuan.tk/luyuan/deming into xbx 2020-08-12 11:33:34 +08:00
d2c6bcb1bc 列表刷新 2020-08-12 10:43:47 +08:00
1d48546424 Merge pull request 'show price 8.12' (#159) from zhy into master
Reviewed-on: http://git.luyuan.tk/luyuan/deming/pulls/159
2020-08-12 10:16:51 +08:00
d8d3434988 show price 8.12 2020-08-12 10:16:14 +08:00
083153929b Merge pull request 'show price 8.12' (#158) from zhy into master
Reviewed-on: http://git.luyuan.tk/luyuan/deming/pulls/158
2020-08-12 10:13:21 +08:00
d19771b182 show price 8.12 2020-08-12 10:10:59 +08:00
a45db4afbf 赋值page1 2020-08-12 09:32:02 +08:00
gyh
1db45d40a7 Merge pull request 'gdpaoup' (#157) from gyh into master
Reviewed-on: http://git.luyuan.tk/luyuan/deming/pulls/157
2020-08-11 22:18:08 +08:00
Gdpao
ef79718190 gdpaoup 2020-08-11 22:15:58 +08:00
Niujiawei
23b2b11bc8 2020.08.10 2020-08-11 21:47:28 +08:00
Niujiawei
21d3201c4b 2020.08.10 2020-08-11 21:18:34 +08:00
91ca2fdd19 Merge pull request 'xbx' (#156) from xbx into master
Reviewed-on: http://git.luyuan.tk/luyuan/deming/pulls/156
2020-08-11 18:28:08 +08:00
0e7139bc16 红点 这找曾 2020-08-11 18:27:19 +08:00
3acaf94a37 Merge pull request 'fixing bug 8.11' (#155) from zhy into master
Reviewed-on: http://git.luyuan.tk/luyuan/deming/pulls/155
2020-08-11 18:25:29 +08:00
523dadd55d fixing bug 8.11 2020-08-11 18:24:56 +08:00
693048f1ab Merge branch 'master' of http://git.luyuan.tk/luyuan/deming into xbx 2020-08-11 16:03:48 +08:00
f9fa80665b 默认 2020-08-11 16:03:12 +08:00
cb178c1407 Merge pull request 'zhy' (#154) from zhy into master
Reviewed-on: http://git.luyuan.tk/luyuan/deming/pulls/154
2020-08-11 15:59:14 +08:00
9a0dc4c6d1 Merge branch 'master' of http://git.luyuan.tk/luyuan/deming into zhy 2020-08-11 15:40:53 +08:00
1ef4db7dc4 fixing bug 8.11 2020-08-11 15:39:56 +08:00
37d8ab7a2b fixing bug 8.11 2020-08-11 15:38:43 +08:00
Niujiawei
9a9276fc94 修改样式2020.08.06 2020-08-06 21:35:27 +08:00
172 changed files with 6869 additions and 3133 deletions

69
App.vue
View File

@@ -4,10 +4,16 @@
globalData: {
im: {}
},
computed: {
...mapState(["hasLogin"])
},
computed: {
...mapState(["hasLogin"])
},
onLaunch() {
// 禁止旋转
// #ifdef APP-PLUS
plus.screen.lockOrientation('portrait-primary');
// #endif
getApp().globalData.im = this.imService
// 缓存token
uni.getStorage({
@@ -16,23 +22,54 @@
this.loginIn(res.data);
}
})
// 刷新token
if (this.hasLogin) {
// 刷新token
if (this.hasLogin) {
this.refreshToken_function();
}
}
// #ifdef APP-PLUS
//app关闭默认的启动 方法关闭启动图。但是这个时间不能太晚6s 超时后依旧会主动关闭。
setTimeout(()=>{
plus.navigator.closeSplashscreen();
},3000)
// #endif
},
onShow(){
// this.getVersion();
// console.log(this.$u.os())
let device_type = this.$u.os()
console.log({appversion:this.$app_version,device_type})
this.$u.api.recordAppOpenTimes({appversion:this.$app_version,device_type}).then((res)=>{
console.log(JSON.stringify(res))
});
},
onLoad() {
},
onHide(){
},
methods: {
...mapMutations(['loginIn']),
// 刷新token
refreshToken_function(){
this.$u.api.refreshToken({}).then((res) => {
// console.log(res);
if (res.errCode == 0) {
let token = res.data.token;
uni.setStorageSync('token', token);//存储toke值
}
})
},
// 刷新token
refreshToken_function(){
this.$u.api.refreshToken({}).then((res) => {
// console.log(res);
if (res.errCode == 0) {
let token = res.data.token;
uni.setStorageSync('token', token);//存储toke值
}
})
},
getVersion() {
this.$u.post("Specialci/checkVersion",{ app_version: this.$app_version }).then(res => {
// console.log(res);
if(res.data.app_version != this.$app_version) {
this.$u.route('/pageE/setting/updateVersion', {
status: res.data.is_focus_upgrade
});
}
})
},
}
}
</script>

View File

@@ -49,4 +49,12 @@ unescapeHTML(temp){}
* @return { object } promise 对象 resolve 返回文件服务器地址 reject 返回错误信息
*/
uploadFile({ url, name, filePath }) {}
/**
* 广告位跳转
* @param { String } type 跳转类型 1 商品 2 店铺 3 领取优惠券
* @param { String | Number } id 跳转id 商品id/商家id...
* @return { undefined } undefined
*/
jumpPage({ type, id }) ()
```

View File

@@ -1,6 +1,6 @@
export default {
init(vm){
return {
return {
// 获取首页轮播
getIndexSwiper() {
return vm.$u.post('adv/indexadv');
@@ -54,6 +54,10 @@ export default {
getRecommendList(){
return vm.$u.post('MemberExpert/recommendList');
},
// 获取所有达人
getAllRecommendList({ page }) {
return vm.$u.post('MemberExpert/getRecommendList', { page });
},
// 达人(搜索)列表
getExpertList({ page, store_id, live_status, like_nickname }){
return vm.$u.post('MemberExpert/expertList', {
@@ -82,11 +86,12 @@ export default {
return vm.$u.post('Goods/getGoodsClassRecommend');
},
// goodsListByClassId
goodsListByClassId({ gc_id, page, order }) {
goodsListByClassId({ gc_id, page, order, keyword }) {
return vm.$u.post('goods/goodsListByClassId', {
gc_id: gc_id,
page: page,
order: order,
keyword:keyword
});
},
// 商品推荐
@@ -134,15 +139,9 @@ export default {
});
},
// 订单步骤2发起订单返回订单信息
sendOrder({ ifcart, cart_id, address_id, buy_city_id, pintuan_id, pintuangroup_id, voucher_id }) {
sendOrder({ ifcart, cart_id, address_id, buy_city_id, pintuan_id, pintuangroup_id, voucher_id, member_deliver_type, invoice_id, pay_message }) {
return vm.$u.post('buy/buy_step2', {
ifcart: ifcart,
cart_id: cart_id,
address_id: address_id,
buy_city_id: buy_city_id,
pintuan_id: pintuan_id,
pintuangroup_id: pintuangroup_id,
voucher_id: voucher_id, // 优惠券信息
ifcart, cart_id, address_id, buy_city_id, pintuan_id, pintuangroup_id, voucher_id, member_deliver_type, invoice_id, pay_message
});
},
// 订单步骤3发起支付第三方统一下单
@@ -192,9 +191,9 @@ export default {
});
},
// 商品搜索
ShopSearch({keyword,page = 1,order = 'goods_salenum'}){
ShopSearch({keyword, page = 1, order = 'goods_salenum',sid=''}){
return vm.$u.post('ShopSearch/search',{
keyword,page,order
keyword,page,order,store_id:sid
})
},
// 秒杀推荐
@@ -202,9 +201,10 @@ export default {
return vm.$u.post('Spike/recommendedSpike');
},
// 秒杀详情
getSpikeInfo({ groupbuy_id }) {
getSpikeInfo({ groupbuy_id, goods_id }) {
return vm.$u.post('Spike/spikeInfo', {
groupbuy_id: groupbuy_id
groupbuy_id: groupbuy_id,
goods_id: goods_id,
});
},
// 秒杀列表
@@ -221,13 +221,23 @@ export default {
});
},
// 拼团商品详情
getPinTuanDetails({ pintuan_id }) {
return vm.$u.post('Specialci/pintuanInfo', { pintuan_id: pintuan_id });
getPinTuanDetails({ pintuan_id, goods_id }) {
return vm.$u.post('Specialci/pintuanInfo', {
pintuan_id: pintuan_id,
goods_id: goods_id,
});
},
// 推荐拼团
getPinTuanPush() {
return vm.$u.post('Specialci/pintuanPush');
},
// 拼团验证
pintuanVerify({ pintuan_id, pintuangroup_headid }) {
return vm.$u.post('Specialci/pintuanVerify', {
pintuan_id: pintuan_id,
pintuangroup_headid: pintuangroup_headid,
});
},
// 开团/参团
withImmediate({ pintuan_id, pintuangroup_headid, pintuangroup_id}) {
return vm.$u.post('Specialci/withImmediate', {
@@ -256,17 +266,18 @@ export default {
});
},
// 我的优惠券(已有的)
getMemberCouponList({ store_id, gc_id, type, status }) {
getMemberCouponList({ store_id, gc_id, type, status, page }) {
return vm.$u.post('Coupon/getMemberCouponList', {
store_id: store_id,
gc_id: gc_id,
type: type,
status: status,
page: page,
});
},
// 获取直播列表
tabLiveList(){
return vm.$u.post('Specialci/tabLiveList')
tabLiveList({page}){
return vm.$u.post('Specialci/tabLiveList',{page})
},
// 商城-活动广告
getStoreActivity() {
@@ -344,7 +355,32 @@ export default {
isNewmembervoucher() {
return vm.$u.post('Coupon/isNewmembervoucher')
},
}
//待发货退款
addrefundall({order_id,reason_info}) {
return vm.$u.post('order/add_refund_all',{order_id,reason_info})
},
//提示文字
tips(){
return vm.$u.post('Shop/tips')
},
//内容
tipsinfo({document_code}){
return vm.$u.post('Shop/tipInfo',{document_code})
},
advClick({ adv_id }) {
return vm.$u.post('adv/advClick',{ adv_id })
},
//统计登录
recordAppOpenTimes({appversion,device_type}){
// appversion=1.0.0&device_type=android/ios
return vm.$u.post("Member/recordAppOpenTimes",{appversion,device_type})
},
//统计直播间浏览次数
// https://mall.dmygkeji.com/api/Live/countLiveBrowse?live_id=1
countLiveBrowse({live_id}){
return vm.$u.post("Live/countLiveBrowse",{live_id})
}
}
}
}

View File

@@ -154,10 +154,11 @@ export default {
});
},
// 美甲-提交订单
addManicure({ name, time }) {
addManicure({ name, phone, time }) {
return vm.$u.post('MemberManicure/addManicure', {
name: name,
time: time
phone: phone,
// time: time
});
},
// 会员服务-积分数
@@ -217,6 +218,12 @@ export default {
page: page,
});
},
// 删除浏览记录
delMemberBrowse({ goods_id }) {
return vm.$u.post('Member/delMemberBrowse', {
goods_id: goods_id,
});
},
// 意见反馈列表
getFeedbackList({ page }) {
return vm.$u.post('Member/feedbackList', {
@@ -236,13 +243,17 @@ export default {
if(type > 0) Object.assign(params, {type: type});
return vm.$u.post('Order/orderList', params);
},
// 各种订单数量
getOrderNumber() {
return vm.$u.post('order/orderNumber');
},
// 售后列表
// getAfterSaleList({ page }) {
// return vm.$u.post('order/afterSaleList', { page: page });
// },
// 试穿列表
goodsTryOrderList() {
return vm.$u.post('order/goodsTryOrderList');
goodsTryOrderList({ page }) {
return vm.$u.post('order/goodsTryOrderList', { page });
},
// 试穿订单确认完成
goodsTryConfirm({ id }) {
@@ -304,8 +315,8 @@ export default {
return vm.$u.post('Message/informationList', { });
},
// 关注列表
snsfriendList({ }) {
return vm.$u.post('message/snsfriendList', { });
snsfriendList({page}) {
return vm.$u.post('message/snsfriendList', {page});
},
// 关注达人
attentionMember({ member_id }) {
@@ -347,6 +358,12 @@ export default {
code: code,
});
},
// 获取可送洗商品
getSendOrderList({ page }) {
return vm.$u.post('member/getSendOrderList', {
page: page,
});
},
// 送洗列表-平台订单 实体店订单
sendLaundryOrderList({ type, page }) {
return vm.$u.post('member/sendLaundryOrderList', {
@@ -359,10 +376,9 @@ export default {
return vm.$u.post('member/getClothesTypeList');
},
// 送洗评价
sendOrderComment({ id, comment }) {
sendOrderComment({ id, comment, comment_img }) {
return vm.$u.post('member/sendOrderComment', {
id: id,
comment: comment,
id, comment, comment_img
});
},
// 送洗确认完成
@@ -408,9 +424,81 @@ export default {
return vm.$u.post('article/articleCollectList');
},
// 关注用户列表
attentionMemberList() {
return vm.$u.post('member/attentionMemberList');
attentionMemberList({ page = 1,role } = {}) {
return vm.$u.post('member/attentionMemberList', { page, role });
},
}
// 可用优惠券商品
couponGoodsList({ voucher_id, page, order }) {
return vm.$u.post('Coupon/couponGoodsList', {
page: page,
vouchertemplate_id: voucher_id,
order: order,
});
},
//取消红点
dynamicRead({id}) {
return vm.$u.post('message/dynamicRead', {
friend_tomid:id
});
},
//店铺取关
attentionMemberRemove({id}) {
return vm.$u.post('Member/attentionMemberRemove', {
friend_tomid:id
});
},
// 设置里的帮助
getSettingHelpList() {
return vm.$u.post('document/help');
},
//获取默认头像
getDefaultAvatar(){
return vm.$u.post("member/getDefaultAvatar")
},
// 第三方账号绑定【微信|QQ】
bindingThird({ openid, type }) {
return vm.$u.post("auth/memberBindThird", {
third_openid: openid,
third_type: type,
})
},
// 解绑
unbindingThird({ type }) {
return vm.$u.post("auth/memberUnbindThird", {
third_type: type,
})
},
getIndustryList() {
return vm.$u.post("Expertapply/industryList")
},
getHobbyList() {
return vm.$u.post("Expertapply/hobbyList")
},
// 达人申请
applyExpert({ name, mobile, idcard, address, industry, hobby }) {
return vm.$u.post("Expertapply/expertApply", {
name, mobile, idcard, address, industry, hobby
})
},
getInvoiceList() {
return vm.$u.post("Invoice/invoiceList")
},
getInvoiceInfo({ invoice_id }) {
return vm.$u.post("Invoice/invoiceInfo", { invoice_id })
},
invoiceAdd({ invoice_type, invoice_title, invoice_code, invoice_goto_addr, invoice_rec_mobphone, invoice_reg_bname, invoice_reg_baccount }) {
return vm.$u.post("Invoice/invoiceAdd", {
invoice_type, invoice_title, invoice_code, invoice_goto_addr, invoice_rec_mobphone, invoice_reg_bname, invoice_reg_baccount
})
},
invoiceEdit({ invoice_id, invoice_title, invoice_code, invoice_goto_addr, invoice_rec_mobphone, invoice_reg_bname, invoice_reg_baccount, invoice_type }) {
return vm.$u.post("Invoice/invoiceEdit", {
invoice_id, invoice_title, invoice_code, invoice_goto_addr, invoice_rec_mobphone, invoice_reg_bname, invoice_reg_baccount, invoice_type
})
},
invoiceDel({ invoice_id }) {
return vm.$u.post("Invoice/invoiceDel", { invoice_id })
},
}
}
}

View File

@@ -2,7 +2,7 @@ var md5 = require("../static/js/md5.min.js")
const install = (Vue, vm) => {
// 此为自定义配置参数,具体参数见上方说明
Vue.prototype.$u.http.setConfig({
baseUrl: 'https://dmmall.sdbairui.com/api',
baseUrl: 'https://mall.dmygkeji.com/api',
loadingText: '努力加载中~',
loadingTime: 800,
originalData: true
@@ -47,24 +47,34 @@ const install = (Vue, vm) => {
// 假设201为token失效这里跳转登录
// vm.$u.toast('您还没有登录哦,请先去登录!');
if (res.data.data.action != "memberinfo") {
uni.showModal({
title: "温馨提示",
content: "您还未登录,请立即登录",
cancelText: "以后再说",
confirmText: "立即登录",
confirmColor: "#FF780F",
success(res) {
// console.log(res);
if (res.confirm) {
setTimeout(() => {
// 此为uView的方法详见路由相关文档
vm.$u.route('/pageA/login/login')
}, 500)
}
if (res.cancel) {
}
}
uni.showToast({
title: "您还没有登录,请先去登录哦!",
icon: "none"
})
setTimeout(() => {
// 此为uView的方法详见路由相关文档
uni.navigateTo({
url: "/pageA/login/login",
})
}, 1000)
// uni.showModal({
// title: "温馨提示",
// content: "您还未登录,请立即登录",
// cancelText: "以后再说",
// confirmText: "立即登录",
// confirmColor: "#FF780F",
// success(res) {
// // console.log(res);
// if (res.confirm) {
// setTimeout(() => {
// // 此为uView的方法详见路由相关文档
// vm.$u.route('/pageA/login/login')
// }, 500)
// }
// if (res.cancel) {
// }
// }
// })
}
return false;
} else if (res.errCode == 1) {

View File

@@ -18,7 +18,13 @@ const store = new Vuex.Store({
loadmore: {}, // 下拉加载返回的数据
hasLogin: false, // 登录状态
token: "", // 储存token
showLoginModel: false, // 登录框
showLoginModel: false, // 登录框
question: {}, // 帮助与反馈
showCoupons: true, // 是否显示新人领取优惠券
invoiceInfo: { // 是否选择发票
invoice_type: '',
invoice_id: 0,
}
},
getters: {
getOrderAddress(state) {
@@ -29,8 +35,15 @@ const store = new Vuex.Store({
},
getGoodsInfo(state) {
return state.goodsDetails.goods;
},
hasInvoice(state) {
const type = state.invoiceInfo.invoice_type;
return type ? type : 0;
},
getInvoiceId(state) {
return state.invoiceInfo.invoice_id || 0;
}
},
},
mutations: {
// 登录
loginIn(state, token) {
@@ -75,6 +88,15 @@ const store = new Vuex.Store({
},
setLoadMore(state, info) {
state.loadmore = info;
},
setQuestion(state, question) {
state.question = question;
},
updateShowCoupons(state, status) {
state.showCoupons = status;
},
setInvoiceInfo(state, invoice = {}) {
state.invoiceInfo = invoice;
}
}
})

View File

@@ -2,14 +2,14 @@
<view class="comment-item">
<view class="user">
<u-avatar :src="content.member_avatar" class="avatar" size="60"></u-avatar>
<text class="name">{{ content.geval_frommembername }}</text>
<text class="name">{{ content.member_nickname }}</text>
<u-rate v-if="reply" :disabled='true' :count="count" v-model="rate" size="23" active-color="#FF780F" inactive-color="#F0EDF1" gutter="10"></u-rate>
</view>
<view class="content">
<view class="text">{{ content.geval_content }}</view>
</view>
<view class="image-container">
<image :src="src" v-for="(src, index) in content.geval_image" :key="index"></image>
<image :src="src" v-for="(src, index) in content.geval_image" :key="index" @click="previewImage(content.geval_image, index)" mode="aspectFit"></image>
</view>
<view class="reply" v-if="reply && content.geval_explain">
<view class="title">掌柜回复</view>
@@ -39,6 +39,15 @@ export default {
},
created() {
if(this.content.hasOwnProperty('scores_two')) this.rate = this.content.scores_two;
},
methods: {
previewImage(urls, index) {
// console.log(urls);
uni.previewImage({
urls: urls,
current: urls[index]
});
},
}
};
</script>

View File

@@ -1,9 +1,12 @@
<template>
<view class="video-item" v-if="item" @click="toDetailsPage(item.article_id,item.video_path)">
<image class="head" :src="item.article_pic" v-if="item.type == 1" ></image>
<view class="header_fist" v-else>
<view class="backes"></view>
<image class="head" :src="item.article_pic" ></image>
<image class="head" :src="item.article_pic" v-if="item.type == 1"></image>
<view class="header_fist" v-else>
<view class="backes">
<u-icon name="play-circle-fill" color="#ffffff" size="20"></u-icon>
<text>视频</text>
</view>
<image class="head" :src="item.article_pic" mode="aspectFill"></image>
</view>
<view class="title" v-if="">{{ item.article_title }}</view>
<view class="jianjie">{{ item.article_content }}</view>
@@ -12,7 +15,7 @@
<image :src="item.member_avatar"></image>
<text>{{ item.member_nickname }}</text>
</view>
<image src="/static/image/common/4.png" @click.stop="showAction"></image>
<image class="img-imp" src="/static/image/common/4.png" @click.stop="showAction"></image>
<view class="action" v-if="show == item.article_id">
<view class="bubble">
<view @click.stop="articleLike">
@@ -51,14 +54,14 @@
.title{
margin:0 auto;
margin-top: 4rpx;
font-size: 28rpx;
font-size: 23rpx;
color: #333;
font-weight: 500;
line-height: 40rpx;
line-height: 36rpx;
width: 300rpx;
overflow:hidden;
text-overflow:ellipsis;
display:-webkit-box;
display:-webkit-box;
-webkit-box-orient:vertical;
-webkit-line-clamp:2;
}
@@ -66,7 +69,7 @@
margin:0 auto;
margin-top: 10rpx;
font-size: 22rpx;
color: #666;
color: #656565;
line-height: 30rpx;
width: 300rpx;
margin-left: 18rpx;
@@ -100,8 +103,9 @@
}
}
>image{
width: 37rpx;
width: 35rpx;
height: 8rpx;
padding: 20rpx;
}
.action {
z-index: 19;
@@ -172,11 +176,22 @@
.header_fist{
position: relative;
.backes{
z-index: 99;
position: absolute;
top: 0;
width: 100%;
height: 100%;
color: #fff;
display: flex;
align-items: center;
justify-content: space-around;
top: 10rpx;
left: 10rpx;
width: 80rpx;
height: 30rpx;
padding: 0 10rpx;
border-radius: 30rpx;
background-color: rgba(0,0,0,0.5);
& > text {
color: #fff;
font-size: 18rpx;
}
}
}
@@ -242,7 +257,9 @@ export default {
if(res.errCode == 0) {
this.$u.toast(res.message);
this.$emit("updateList");
}
} else {
this.$u.toast(res.message);
}
})
},
toDetailsPage(id,type) {

View File

@@ -3,12 +3,12 @@
<image class="head" :src="image"></image>
<view class="user">
<view class="name">
<image></image>
<image :src="item.member_avatar"></image>
<text class="u-line-1" style="width:130rpx">{{name}}</text>
</view>
<view class="pingbi">
<image></image>
<text>1屏蔽用户</text>
<view class="pingbi" @click.stop="articleAddShield">
<image src="/static/image/common/7.png"></image>
<text>屏蔽用户</text>
</view>
</view>
</view>
@@ -73,6 +73,9 @@ export default {
},
methods:{
zhibo(){
this.$u.api.countLiveBrowse({live_id:this.zid}).then((res)=>{
console.log(JSON.stringify(res),77)
})
this.$u.route({
url:"/pages/zhibo/index",
params:{
@@ -81,8 +84,21 @@ export default {
rid:this.rid
}
})
}
},
articleAddShield() {
console.log(this.item)
this.$u.api.articleAddShield({
member_id: this.item.user_id,
}).then(res => {
// console.log(res)
if(res.errCode == 0) {
this.$u.toast(res.message);
this.$emit("updateList");
}
})
},
},
props:['name','image','url','zid','rid']
props:['name','image','url','zid','rid','item']
}
</script>

View File

@@ -1,10 +1,12 @@
<template>
<view class="notice">
<view class="notice" :style="{height : height + 'px'}">
<view v-for="(item,index) in notice" :key="index" @click="gotoInfo(index)">
<view class="time_notice">{{ item.addtime }}</view>
<view class="notice_view">
<image :src="item.picture" mode="aspectFill" ></image>
<view class="text_view u-line-2">{{ item.content }}</view>
<view class="text_view">
<view class="u-line-2">{{ item.content }}</view>
</view>
<view class="notice_list">
<text>查看详情</text>
<u-icon name="arrow-right" color="#666"></u-icon>
@@ -28,20 +30,17 @@
border-radius: 20rpx 20rpx 0px 0px;
}
.text_view{
font-size:26rpx;
font-weight:400;
color:rgba(51,51,51,1);
margin: 28rpx 0 30rpx 0;
width: 643rpx;
margin: 0 auto;
text-align: left;
line-height: 40rpx;
width: 690rpx;
height: 120rpx;
padding: 26rpx;
color: #333;
font-size: 26rpx;
line-height: 38rpx;
}
.notice_view > view:nth-child(3){
height: 84rpx;
line-height: 84rpx;
height: 80rpx;
line-height: 80rpx;
border-top: 1px #F5F5F5 solid;
margin-top: 30rpx;
}
}
.time_notice{
@@ -52,22 +51,11 @@
padding: 26rpx 0 39rpx 0;
}
.notice_list{
text-align: left;
display: inline-block;
display: flex;
align-items: center;
justify-content: space-between;
width: 100%;
position: relative;
padding: 0 25rpx;
margin: 0 auto;
display: block;
}
.notice_list > view{
text-align: right;
position: absolute;
right: 25rpx;
top: 0;
bottom: 0;
margin: auto;
}
</style>
@@ -77,7 +65,8 @@
props: ['list'],
data() {
return {
notice : []
notice : [],
height : ''
};
},
watch: {
@@ -86,6 +75,8 @@
this.notice = newVal;
}
},
onLoad() {
},
methods: {
gotoInfo(index) {
console.log(index);

View File

@@ -80,7 +80,6 @@ export default {
// 判断是不是编辑页面 调用接口
confirmBtn() {
if(!this.debounce) return;
this.debounce = false;
this.info ? this.editAddress() : this.addAddress();
},
// chooseArea() {
@@ -119,6 +118,7 @@ export default {
},
addAddress() {
if(!this.validateValue()) return false;
this.debounce = false;
this.$u.api.addressAdd({
area_id: this.area_id,
city_id: this.city_id,
@@ -144,6 +144,7 @@ export default {
},
editAddress() {
if(!this.validateValue()) return false;
this.debounce = false;
this.$u.api.addressEdit({
address_id: this.info.address_id,
area_id: this.area_id,

View File

@@ -46,6 +46,7 @@ export default {
},
methods: {
viewGoodsDetails(item) {
if(this.closeAction()) return false;
const list = this.list.filter(item => {
return item.show;
})
@@ -57,6 +58,17 @@ export default {
}
})
},
closeAction() {
let status = false;
this.list.map((val, idx) => {
if(val.show) {
status = true;
this.$set(this.list[idx], 'show', false);
};
})
this.$forceUpdate();
return status;
},
getGoodsFavoritesList() {
this.$u.api.getFavoritesList().then(res => {
if(res.errCode == 0) {

View File

@@ -6,8 +6,8 @@
</view>
<view class="user-comment">
<view class="text u-line-2">{{ info.comment }}</view>
<view class="image">
<image v-for="(src, index) in info.images" :key="index" :src="src" mode="aspectFit"></image>
<view class="image" v-if="info.comment_img">
<image :src="info.comment_img" mode="aspectFit" @click="previewImage(info.comment_img)"></image>
</view>
</view>
</view>
@@ -19,6 +19,14 @@ export default {
},
props: {
info: Object,
},
methods: {
previewImage(urls) {
const imagesUrl = [urls];
uni.previewImage({
urls: imagesUrl,
});
},
}
};
</script>
@@ -47,12 +55,12 @@ export default {
font-size: 26rpx;
color: rgba(51,51,51,1);
line-height: 40rpx;
margin-bottom: 19rpx;
}
.image {
display: flex;
flex-wrap: wrap;
> image {
margin-top: 20rpx;
width: 210rpx;
height: 210rpx;
border-radius: 10rpx;

View File

@@ -2,8 +2,8 @@
<view class="c-coupon">
<view class="coupon-usable">
<view class="info-type" :style="{ backgroundImage: 'url(' + '/static/image/mine/30.png' + ')', backgroundSize:'contain', backgroundRepeat: 'no-repeat' }">
<div class="wrap_left_top"></div>
{{ couponInfo.type == 2 ? '店铺优惠券' : '平台优惠券' }}
<div class="wrap_left_top" v-if="couponInfo.type == 1">{{ couponInfo.vouchertemplate_id == 1 ? '新人专享' : '平台优惠券' }}</div>
<div class="wrap_left_top" v-else-if="couponInfo.type == 2">店铺优惠券</div>
</view>
<view class="coupon-info">
<view class="info-usable">

View File

@@ -1,9 +1,9 @@
<template>
<view class="c-coupon" v-if="goodsClass.length">
<view :class="couponInfo.voucher_state != 1 ? 'coupon-unable' : 'coupon-usable'">
<view class="c-coupon" v-if="goodsClass.length" @click="use">
<view :class="couponInfo.voucher_state != 1 ? 'coupon-unable' : 'coupon-usable'" :style="{'width': type ? '650rpx' : '' }">
<view class="info-type" :style="{ backgroundImage: 'url(' + (couponInfo.voucher_state == 1 ? '/static/image/mine/30.png' : '/static/image/mine/31.png') + ')', backgroundSize:'contain', backgroundRepeat: 'no-repeat' }">
<div class="wrap_left_top"></div>
{{ couponInfo.type == 2 ? '店铺优惠券' : '平台优惠券' }}
<div class="wrap_left_top" v-if="couponInfo.type == 1">{{ couponInfo.vouchertemplate_id == 1 ? '新人专享' : '平台优惠券' }}</div>
<div class="wrap_left_top" v-else-if="couponInfo.type == 2">店铺优惠券</div>
</view>
<view class="coupon-info">
<view class="info-usable">
@@ -14,12 +14,13 @@
<view class="info-integral">兑换积分{{ couponInfo.voucher_points }}积分</view>
<view class="info-date">有效期{{ couponInfo.voucher_startdate }}-{{ couponInfo.voucher_enddate }}</view>
</view>
<view class="coupon-btn">
<text v-if="couponInfo.voucher_state == 1" @click="use">立即使用</text>
<view class="coupon-btn" :style="{'right': type ? '110rpx' : '' }">
<text v-if="couponInfo.voucher_state == 1">立即使用</text>
<image v-if="couponInfo.voucher_state == 2" src="/static/image/mine/28.png"></image>
<image v-if="couponInfo.voucher_state == 3" src="/static/image/mine/29.png"></image>
</view>
</view>
<image v-if="type" style="width:35rpx;height:35rpx;margin-left:14rpx;" :src="'/static/image/mine/' + (sel ? '41.png' : '42.png') "></image>
</view>
</template>
<script>
@@ -37,6 +38,8 @@ export default {
status: Number,
couponInfo: Object,
goodsClass: Array,
type:Boolean,
sel:Boolean
},
created() {
// console.log(this.goodsClass);
@@ -53,6 +56,7 @@ export default {
},
methods: {
use() {
if(this.couponInfo.voucher_state != 1) return;
this.$emit('use', this.couponInfo);
},
},
@@ -63,6 +67,8 @@ export default {
position: relative;
z-index: 9;
margin-bottom: 30rpx;
display: flex;
align-items: center;
@mixin coupon-image($url) {
width: 690rpx;
height: 194rpx;

View File

@@ -8,14 +8,12 @@
<view class="order-status">{{ state }}</view>
</view>
<view class="goods-info">
<view class="goods-item" @click="toOtherPage('Details')" v-for="goods in order.extend_order_goods" :key="goods.goods_id">
<view class="goods-item" @click="toOtherPage('Details')" v-for="(goods,index) in order.extend_order_goods" :key="index">
<image :src="goods.goods_image"></image>
<view class="goods-text">
<view class="goods-name u-line-2">{{ goods.goods_name }}</view>
<view class="goods-sku u-line-1" v-if="order.order_state !== 20 && order.order_state !== 40 && goods.goods_spec">
<text v-for="(spec, index) in goods.goods_spec" :key="index">{{ spec + ';' }}</text>
</view>
<view class="goods-time u-line-1" v-if="order.view_type == 1">结束时间{{ order.end_time | date('yyyy-mm-dd hh:MM') }}</view>
<view class="goods-sku u-line-1" v-if="order.order_state !== 20 && order.order_state !== 40 && goods.goods_spec">{{ goods.goods_spec | concatSpec }}</view>
<!-- <view class="goods-time u-line-1" v-if="order.view_type == 1">结束时间{{ order.end_time | date('yyyy-mm-dd hh:MM') }}</view> -->
<view class="goods-price u-line-1" v-if="order.order_state == 20 || order.order_state == 40">总价{{ goods.goods_price }}实付款{{ goods.goods_pay_price }}</view>
<view class="goods-date" v-if="order.order_state == 20 || order.order_state == 40">
<image src="@/pageE/static/mine/26.png"></image>
@@ -24,14 +22,20 @@
</view>
</view>
</view>
<view class="order-btn" v-if="[1, 2, 3, 4, 8, 9].indexOf(order.view_type) >= 0">
<view class="order-btn" v-if="[1, 2, 3, 4, 8, 11].indexOf(order.view_type) >= 0">
<!-- || order.view_type == 2 -->
<view class="cancel" v-if="(order.view_type == 3 || order.view_type == 2) && order.is_refund == 1" @click="toOtherPage('RefundOrder')">申请退款</view>
<view class="cancel" v-if="order.view_type == 3" @click="toOtherPage('Logistics')">查看物流</view>
<view class="cancel" v-if="order.view_type == 3 && order.shipping_code && (order.store_deliver_type ? order.store_deliver_type != 3 : order.member_deliver_type != 3)" @click="toOtherPage('Logistics')">查看物流</view>
<view class="logistics" v-if="order.view_type == 3" @click="confirmReceive">确认收货</view>
<view class="comment" v-if="order.view_type == 4" @click="toOtherPage('Comment')">立即评价</view>
<view class="cancel" v-if="order.view_type == 1" @click="cancelOrder">取消支付</view>
<view class="cancel" v-if="order.view_type == 9" @click="cancelOrder">取消订单</view>
<view class="payment" v-if="order.view_type == 1 || order.view_type == 9" @click="payNow(order.pay_sn, order.order_amount,order.order_id)">立即支付</view>
<!-- <view class="cancel" v-if="order.view_type == 9" @click="cancelOrder">取消订单</view> -->
<view class="phone" v-if="order.view_type == 3 && order.takeawayer_phone" @click="makePhone(order.takeawayer_phone)">
<u-icon name="phone-fill" color="#FF780F" size="28"></u-icon>
<text>联系骑手</text>
</view>
<!-- || order.view_type == 9 -->
<view class="payment" v-if="order.view_type == 1" @click="payNow(order.pay_sn, order.order_amount,order.order_id)">立即支付</view>
<view class="service" v-if="order.view_type == 8">联系官方客服</view>
<view class="submit" v-if="order.view_type == 8">提交官方审核</view>
</view>
@@ -42,49 +46,27 @@ import common from '@/static/js/common.js';
export default {
data() {
return {
state: '',
}
},
props: {
order: Object
},
mounted() {
this.viewState();
// this.viewState();
},
filters: {
concatSpec(value) {
let spec = '';
for (const key in value) {
if (value.hasOwnProperty(key)) {
const element = value[key];
spec = spec + element + ';'
}
}
return spec;
}
},
methods: {
viewState() {
let state;
switch (this.order.view_type) {
case 1:
state = '待支付';
break;
case 2:
state = '待发货';
break;
case 3:
state = '待收货';
break;
case 4:
state = '待评价';
break;
case 5:
state = '交易成功';
break;
case 6:
state = '待退款';
break;
case 7:
state = '已退款';
break;
case 9:
state = '拼团中';
break;
default:
break;
}
// console.log(state);
this.state = state;
},
cancelOrder() {
this.$u.api.cancelOrder({
order_id: this.order.order_id,
@@ -108,6 +90,7 @@ export default {
toOtherPage(url) {
this.$u.route('/pageE/order/' + url, {
oid: this.order.order_id,
type:this.order.view_type
});
},
payNow(pay_sn, order_amount, id) {
@@ -117,7 +100,57 @@ export default {
order_id: id
});
},
makePhone(phone) {
uni.makePhoneCall({
phoneNumber: phone
});
}
},
computed:{
state() {
let state;
// console.log(this.order.view_type);
switch (this.order.view_type) {
case 1:
state = '待支付';
break;
case 2:
state = '待发货';
break;
case 3:
state = '待收货';
break;
case 4:
state = '待评价';
break;
case 5:
state = '交易成功';
break;
case 6:
state = '待退款';
break;
case 7:
state = '商家已退款';
break;
case 9:
state = '拼团中';
break;
case 10:
state = '已取消';
break;
case 11:
state = '商家已拒绝';
break;
case 12:
state = '平台已退款';
break;
default:
break;
}
// console.log(state);
return state;
},
}
};
</script>
<style lang="scss" scoped>
@@ -172,7 +205,7 @@ export default {
line-height: 38rpx;
}
.goods-sku {
display: inline-block;
align-self: baseline;
max-width: 230rpx;
background: rgba(236,236,236,1);
border-radius: 6rpx;
@@ -206,7 +239,7 @@ export default {
display: flex;
justify-content: flex-end;
@mixin btn-class($width, $color) {
width: $width;
// width: $width;
height: 60rpx;
border: 2rpx solid $color;
color: $color;
@@ -229,6 +262,15 @@ export default {
.submit {
@include btn-class($width: 216rpx, $color: rgba(255,119,15,1));
}
.phone {
@include btn-class($width: 206rpx, $color: rgba(255,119,15,1));
display: flex;
align-items: center;
justify-content: center;
.u-icon {
margin-right: 10rpx;
}
}
}
}
</style>

View File

@@ -12,9 +12,7 @@
<image :src="order.goods_image"></image>
<view class="goods-text">
<view class="goods-name u-line-2">{{ order.goods_name }}</view>
<!-- <view class="goods-sku u-line-1" v-if="order.order_state !== 20 && order.order_state !== 40 && goods.goods_spec">
<text v-for="(spec, index) in goods.goods_spec" :key="index">{{ spec + ';' }}</text>
</view> -->
<view class="goods-sku u-line-1" v-if="order.goods_spec">{{ order.goods_spec | concatSpec }}</view>
<!-- <view class="goods-time u-line-1" v-if="order.order_state == 10 || order.order_state == 10">结束时间{{ order.add_time * 1000 | date('yyyy-mm-dd hh:MM') }}</view> -->
</view>
</view>
@@ -38,7 +36,18 @@ export default {
created() {
this.viewState();
},
filters: {},
filters: {
concatSpec(value) {
let spec = '';
for (const key in value) {
if (value.hasOwnProperty(key)) {
const element = value[key];
spec = spec + element + ';'
}
}
return spec;
}
},
methods: {
// "goods_try_order_status": 0, 试穿订单状态 0:待处理订单 20:同意 40:拒绝此订单 50:完成
viewState() {
@@ -131,6 +140,7 @@ export default {
line-height: 38rpx;
}
.goods-sku {
align-self: baseline;
max-width: 230rpx;
background: rgba(236,236,236,1);
border-radius: 6rpx;

View File

@@ -1,327 +1,382 @@
<template>
<view>
<!-- <image v-if="type" class="welcome_images" src="../../static/pageA/welcome_img.jpg" mode="aspectFill"></image> -->
<view v-if="type" id="video_mp4">
<view class="page-body">
<view class="page-section">
<video id="myVideo" enable-progress-gesture="false" :src=" 'https://' + vide0_url" autoplay controls="false" @error="videoErrorCallback" @timeupdate="timeupdate"
enable-danmu danmu-btn></video>
</view>
</view>
</view>
<view v-if="type" class="welcome_jumpes" @click="leap_over">跳过{{remaining}}</view>
<view v-if="banner" class="welcome_jumpes" @click="leap_overto">跳过</view>
<!-- 轮播图 -->
<view class="uni-padding-wrap" v-if="banner" >
<view>
<view class="uni-padding-wrap">
<view class="page-section swiper">
<view class="page-section-spacing">
<swiper class="swiper" :indicator-dots="true" :style="{height:heightOut+'px'}" :autoplay="false" :interval="3000" :duration="1000" @animationfinish="">
<swiper-item v-for="(item,index) in list" :key="index">
<view class="swiper-item uni-bg-red">
<image :src=" 'https://' + item.launch_path"></image>
</view>
<view class="btn-init" v-if="parseInt(index) == 2" @click="goNext">立即体验</view>
</swiper-item>
</swiper>
</view>
</view>
</view>
</view>
</view>
<!-- 用户协议弹窗 -->
<view class="welcome_backes" v-if="protocol">
<view class="content">
<view class="title">{{ agreement.document_title }}</view>
<!-- <text class="protocol_content"></text> -->
<scroll-view scroll-y class="scroll">
<rich-text class="protocol_content" :nodes="agreement.document_content"></rich-text>
</scroll-view>
<view class="to_agree" @click="to_agree">我同意</view>
</view>
</view>
</view>
</template>
<script>
import common from '@/static/js/common.js'
export default {
data() {
return {
remaining: 7,
type: true,
banner: false,
protocol: false,
heightOut: '',
imgurl: [],
vide0_url: '',
agreement: { // 用户协议内容
document_title: "",
document_content: ""
},
heightesStyle : {
height : ''
},
title: 'video',
src: '',
inputValue: '',
controls: false,
list: [],
background: ['color1', 'color2', 'color3'],
indicatorDots: true,
interval: 2000,
duration: 500,
swiper_index: "",
};
},
onReady: function(res) {
this.videoContext = uni.createVideoContext('myVideo');
},
methods: {
apiwelcome() {
this.$u.api.documentInfo({
document_code: 'agreement'
}).then((res) => {
if (res.errCode == 0) {
let agreement = res.data;
// console.log(agreement.document_content)
agreement.document_content = common.unescapeHTML(agreement.document_content);
// console.log(agreement);
this.agreement = agreement;
}
})
// 启动页
this.$u.api.pageList({}).then((res) => {
console.log('协议', res)
let data_image = res.data.welcome_page
let vide0_url = res.data.start_page[0].launch_path
this.list = data_image;
this.vide0_url = vide0_url;
})
},
// 3秒倒计时
remaining_time() {
this.timer = setInterval(() => {
this.remaining--;
if (this.remaining <= 0) {
clearInterval(this.timer);
console.log("完了")
this.type = !this.type;
this.banner = !this.banner;
}
}, 1000);
},
leap_over() {
this.type = !this.type
this.banner = !this.banner;
clearInterval(this.timer)
// 获取屏幕高度
this.getSystemInfo()
},
leap_overto() {
this.protocol = true;
this.banner = false;
},
getSystemInfo() {
let that = this;
// 获取屏幕高度
uni.getSystemInfo({
success: function(res) {
that.heightOut = res.windowHeight;
console.log(that.heightOut)
}
});
},
// 立即体验
goNext() {
this.protocol = true;
this.banner = false;
},
// 我同意
to_agree() {
uni.setStorage({
key: 'launchFlag',
data: true,
success: function() {
console.log('点击存储launchFlag');
}
});
uni.navigateTo({
url: '/pageA/login/login'
});
},
// 视频引入
bindInputBlur: function(e) {
this.inputValue = e.target.value;
console.log(e.target.value);
},
bindButtonTap: function() {
var that = this
uni.chooseVideo({
sourceType: ['album', 'camera'],
maxDuration: 60,
camera: ['front', 'back'],
success: function(res) {
this.src = res.tempFilePath
}
})
},
bindSendDanmu: function() {
this.videoContext.sendDanmu({
text: this.inputValue,
color: this.getRandomColor()
})
},
videoErrorCallback: function(e) {
console.log('视频错误信息:',e);
},
timeupdate(e) {
console.log(e);
},
getRandomColor: function() {
const rgb = []
for (let i = 0; i < 3; ++i) {
let color = Math.floor(Math.random() * 256).toString(16)
color = color.length == 1 ? '0' + color : color
rgb.push(color)
}
return '#' + rgb.join('')
}
},
mounted() {
// 3秒倒计时调用
this.remaining_time();
this.apiwelcome();
}
}
</script>
<style lang="scss" scoped>
.uni-padding-wrap{
// height: 400rpx;
}
.btn-init {
z-index: 1000;
position: absolute;
bottom: 100rpx;
right: 230rpx;
width: 300rpx;
height: 80rpx;
line-height: 80rpx;
text-align: center;
color: #fff;
border-radius: 40rpx;
background-color: #007AFF;
}
.welcome_jumpes {
z-index: 100;
position: absolute;
top: 80rpx;
right: 60rpx;
width: 100rpx;
height: 40rpx;
border-radius: 20rpx;
font-size: 22rpx;
text-align: center;
line-height: 40rpx;
color: #fff;
background-color: rgba(0,0,0,0.5);
}
#myVideo {
width: 100%;
}
uni-video {
width: 100%;
height: 100%;
}
.uni-video-container {
background-color: none !important;
}
.welcome_images {
width: 100%;
height: 100vh;
position: fixed;
}
uni-swiper,
uni-view,
uni-image {
width: 100%;
// position: fixed;
height: 100vh;
}
uni-image {
width: 100%;
}
// 轮播图分页器颜色
uni-swiper .uni-swiper-dot-active {
background-color: #fff !important;
}
.welcome_backes {
width: 100%;
position: fixed;
height: 100%;
background: #999999;
.content {
width: 558rpx;
height: 730rpx;
background: rgba(255, 255, 255, 1);
position: absolute;
left: 0;
right: 0;
bottom: 0;
top: 0;
margin: auto;
.title {
width: 558rpx;
text-align: center;
height: 29rpx;
font-size: 30rpx;
font-weight: bold;
color: rgba(51, 51, 51, 1);
line-height: 29rpx;
margin: 30rpx 0 24rpx 0;
}
.scroll {
height: 560rpx;
.protocol_content {
display: block;
width: 494rpx;
height: 528rpx;
margin: 10rpx auto 30rpx;
font-size: 24rpx;
font-weight: 400;
text-align: left;
line-height: 36rpx;
text-align: justify;
letter-spacing: 1rpx;
text-indent: 2rem;
color: rgba(51, 51, 51, 1);
}
}
.to_agree {
width: 558rpx;
font-size: 30rpx;
font-weight: bold;
color: rgba(255, 121, 16, 1);
text-align: center;
padding-top: 27rpx;
border-top: #D8D8D8 solid 1px;
}
}
}
</style>
<template>
<view>
<!-- <image v-if="type" class="welcome_images" src="../../static/pageA/welcome_img.jpg" mode="aspectFill"></image> -->
<view v-if="type" id="video_mp4">
<view class="page-body">
<view class="page-section">
<video id="myVideo" enable-progress-gesture="false" :src=" 'https://' + vide0_url" autoplay controls="false" @error="videoErrorCallback" @timeupdate="timeupdate"
enable-danmu danmu-btn></video>
</view>
</view>
</view>
<view v-if="type" class="welcome_jumpes" @click="leap_over">跳过{{remaining}}</view>
<view v-if="banner" class="welcome_jumpes" @click="leap_overto">跳过</view>
<!-- 轮播图 -->
<view class="uni-padding-wrap" v-if="banner" >
<view>
<view class="uni-padding-wrap">
<view class="page-section swiper">
<view class="page-section-spacing">
<swiper class="swiper" :indicator-dots="true" :style="{height:heightOut+'px'}" :autoplay="false" :interval="3000" :duration="300" @animationfinish="tiaoguos" @change="qiehuan">
<swiper-item v-for="(item,index) in list" :key="index">
<view class="swiper-item uni-bg-red">
<image :src=" 'https://' + item.launch_path"></image>
</view>
<view class="btn-init" v-if="parseInt(index) == list.length - 1" @click="goNext">立即体验</view>
</swiper-item>
</swiper>
</view>
</view>
</view>
</view>
</view>
<!-- 用户协议弹窗 -->
<view class="welcome_backes" v-if="protocol">
<view class="content">
<!-- <view class="title">{{ agreement.document_title }}</view> -->
<view class="title">用户协议与隐私</view>
<!-- <text class="protocol_content"></text> -->
<scroll-view scroll-y class="scroll">
<rich-text class="protocol_content" :nodes="agreement.document_content"></rich-text>
</scroll-view>
<view class="agree-btn">
<view class="refuse" @click="refuseAgreement">不同意并退出</view>
<view class="to_agree" @click="to_agree">同意</view>
</view>
</view>
</view>
</view>
</template>
<script>
import common from '@/static/js/common.js'
export default {
data() {
return {
remaining: 7,
type: false,
banner: true,
protocol: false,
heightOut: '',
imgurl: [],
vide0_url: '',
agreement: { // 用户协议内容
document_title: "",
document_content: ""
},
heightesStyle : {
height : ''
},
title: 'video',
src: '',
inputValue: '',
controls: false,
list: [],
background: ['color1', 'color2', 'color3'],
indicatorDots: true,
interval: 2000,
duration: 500,
swiper_index: "",
tiaoguo:false,
weizhi:0,
};
},
onReady: function(res) {
this.videoContext = uni.createVideoContext('myVideo');
},
methods: {
tiaoguos(a){
console.log(a.detail)
if(this.weizhi == a.detail.current && a.detail.current == this.list.length -1){
this.leap_overto()
}
this.weizhi = a.detail.current
},
qiehuan(a){
console.log(a)
this.tiaoguo = a.detail.current
},
apiwelcome() {
this.$u.api.documentInfo({
document_code: 'agreement'
}).then((res) => {
if (res.errCode == 0) {
let agreement = res.data;
// console.log(agreement.document_content)
agreement.document_content = common.unescapeHTML(agreement.document_content);
// console.log(agreement);
this.agreement = agreement;
}
})
// 启动页
this.$u.api.pageList({}).then((res) => {
console.log('协议', res)
let data_image = res.data.welcome_page
let vide0_url = res.data.start_page[0].launch_path
this.list = data_image;
this.vide0_url = vide0_url;
})
},
// 3秒倒计时
remaining_time() {
// this.timer = setInterval(() => {
// this.remaining--;
// if (this.remaining <= 0) {
// clearInterval(this.timer);
// console.log("完了")
// // this.type = !this.type;
// // this.banner = !this.banner;
// }
// }, 1000);
},
leap_over() {
// this.type = !this.type
this.banner = !this.banner;
clearInterval(this.timer)
// 获取屏幕高度
this.getSystemInfo()
},
leap_overto() {
this.protocol = true;
this.banner = false;
},
getSystemInfo() {
let that = this;
// 获取屏幕高度
uni.getSystemInfo({
success: function(res) {
that.heightOut = res.windowHeight;
console.log(that.heightOut)
}
});
},
// 立即体验
goNext() {
this.protocol = true;
this.banner = false;
},
// 我同意
to_agree() {
uni.setStorage({
key: 'launchFlag',
data: true,
success: function() {
console.log('点击存储launchFlag');
}
});
uni.navigateTo({
url: '/pageA/login/login'
});
},
// 拒绝协议
refuseAgreement() {
//退出app
// #ifdef APP-PLUS
if (plus.os.name.toLowerCase() === 'android') {
plus.runtime.quit();
} else{
const threadClass = plus.ios.importClass("NSThread");
const mainThread = plus.ios.invoke(threadClass, "mainThread");
plus.ios.invoke(mainThread, "exit");
// ios11
plus.ios.import("UIApplication").sharedApplication().performSelector("exit")
}
// #endif
},
// 视频引入
bindInputBlur: function(e) {
this.inputValue = e.target.value;
console.log(e.target.value);
},
bindButtonTap: function() {
var that = this
uni.chooseVideo({
sourceType: ['album', 'camera'],
maxDuration: 60,
camera: ['front', 'back'],
success: function(res) {
this.src = res.tempFilePath
}
})
},
bindSendDanmu: function() {
this.videoContext.sendDanmu({
text: this.inputValue,
color: this.getRandomColor()
})
},
videoErrorCallback: function(e) {
console.log('视频错误信息:',e);
},
timeupdate(e) {
console.log(e);
},
getRandomColor: function() {
const rgb = []
for (let i = 0; i < 3; ++i) {
let color = Math.floor(Math.random() * 256).toString(16)
color = color.length == 1 ? '0' + color : color
rgb.push(color)
}
return '#' + rgb.join('')
}
},
mounted() {
// 3秒倒计时调用
this.remaining_time();
this.apiwelcome();
}
}
</script>
<style lang="scss" scoped>
.uni-padding-wrap{
// height: 400rpx;
}
.btn-init {
z-index: 1000;
position: absolute;
bottom: 100rpx;
right: 230rpx;
width: 300rpx;
height: 80rpx;
line-height: 80rpx;
text-align: center;
color: #fff;
border-radius: 40rpx;
background-color: #007AFF;
}
.welcome_jumpes {
z-index: 100;
position: absolute;
top: 80rpx;
right: 60rpx;
width: 100rpx;
height: 40rpx;
border-radius: 20rpx;
font-size: 22rpx;
text-align: center;
line-height: 40rpx;
color: #fff;
background-color: rgba(0,0,0,0.5);
}
#myVideo {
width: 100%;
}
uni-video {
width: 100%;
height: 100%;
}
.uni-video-container {
background-color: none !important;
}
.welcome_images {
width: 100%;
height: 100vh;
position: fixed;
}
uni-swiper,
uni-view,
uni-image {
width: 100%;
// position: fixed;
height: 100vh;
}
uni-image {
width: 100%;
}
// 轮播图分页器颜色
uni-swiper .uni-swiper-dot-active {
background-color: #fff !important;
}
.welcome_backes {
width: 100%;
position: fixed;
height: 100%;
background: #999999;
.content {
width: 558rpx;
height: 730rpx;
background: rgba(255, 255, 255, 1);
position: absolute;
left: 0;
right: 0;
bottom: 0;
top: 0;
margin: auto;
.title {
width: 558rpx;
text-align: center;
height: 29rpx;
font-size: 30rpx;
font-weight: bold;
color: rgba(51, 51, 51, 1);
line-height: 29rpx;
margin: 30rpx 0 24rpx 0;
}
.scroll {
height: 560rpx;
.protocol_content {
display: block;
width: 494rpx;
height: 528rpx;
margin: 10rpx auto 30rpx;
font-size: 24rpx;
font-weight: 400;
text-align: left;
line-height: 36rpx;
text-align: justify;
letter-spacing: 1rpx;
text-indent: 2rem;
color: rgba(51, 51, 51, 1);
}
}
.agree-btn {
border-top: #D8D8D8 solid 1rpx;
// padding-top: 27rpx;
display: flex;
height: 80rpx;
> view {
height: inherit;
flex: 1;
font-size: 30rpx;
font-weight: bold;
text-align: center;
line-height: 80rpx;
}
.refuse {
color: #999;
position: relative;
&:after {
content: "";
height: 80rpx;
width: 1rpx;
background-color: #D8D8D8;
position: absolute;
right: 0;
top: 0;
}
}
.to_agree {
color: rgba(255, 121, 16, 1);
}
}
}
}
</style>

View File

@@ -8,13 +8,12 @@
</view>
</view>
<view class="label">
<!-- <u-tabs-swiper ref="group" :list="classifyList" name="gc_name" :is-scroll="true" active-color="#FF780F" :current="current" font-size="24" :show-bar="false" @change="tabsChange" height="60"></u-tabs-swiper> -->
<u-tabs :list="classifyList" name="gc_name" :is-scroll="true" :current="current" @change="tabsChange" active-color="#FF780F" :show-bar="false" height="60" font-size="24" inactive-color="#333333"></u-tabs>
</view>
<swiper :current="swiperCurrent" @animationfinish="animationfinish" style="height: 340rpx;">
<swiper-item class="swiper-item list" v-for="(_, i) in classifyList" :key="i">
<!-- 最多显示3个 -->
<view v-if="groupList[i]">
<view v-if="groupList[i]" class="group-container">
<sitem :info="info" v-for="(info, index) in groupList[i].slice(0, 3)" :key="index"></sitem>
</view>
<u-empty text="暂无拼团商品" mode="list" color="#000" v-if="!groupList[i] || !groupList[i].length" style="margin: 0 auto;"></u-empty>
@@ -62,7 +61,7 @@ export default {
gc_id: id,
}).then(res => {
this.groupList[this.current] = res.data;
// console.log(this.groupList);
console.log(this.groupList);
this.$forceUpdate();
})
},
@@ -106,10 +105,12 @@ export default {
.list {
box-sizing: border-box;
padding: 0 30rpx;
display: flex;
> view {
&:not(:nth-child(3n)) {
margin-right: 20rpx;
.group-container {
display: flex;
> view {
&:not(:nth-child(3n)) {
margin-right: 20rpx;
}
}
}
}

View File

@@ -3,8 +3,8 @@
<image class="head" :src="info.pintuan_image" mode="widthFix"></image>
<text class="title u-line-1">{{ info.pintuan_goods_name }}</text>
<view class="price">
<view>{{ info.pintuan_goods_price }}</view>
<view>立即拼团</view>
<view class="value">{{ info.pintuan_goods_price }}</view>
<view class="btn">立即拼团</view>
</view>
</view>
</template>
@@ -61,18 +61,22 @@ export default {
margin-top: 10rpx;
}
.price{
// display: flex;
// align-items: center;
// justify-content: space-between;
margin-top: 10rpx;
> view:first-child{
display: flex;
align-items: center;
// align-content: flex-end;
justify-content: space-between;
margin-top: 16rpx;
.value {
font-size: 26rpx;
color: #FF3131;
margin-bottom: 12rpx;
// margin-bottom: 12rpx;
}
> view:last-child{
.btn {
font-size: 22rpx;
height: 22rpx;
color: #FDD360;
text-align: end;
// margin-top:8rpx;
}
}
}

View File

@@ -2,7 +2,6 @@
<view class="list">
<view class="top">商品推荐</view>
<view>
<!-- <u-tabs-swiper ref="uTabs" :list="classifyList" name="gc_name" :is-scroll="true" active-color="#FF780F" :current="current" font-size="26" :show-bar="false" @change="tabsChange" height="60"></u-tabs-swiper> -->
<u-tabs :list="classifyList" name="gc_name" :is-scroll="true" :current="current" @change="tabsChange" active-color="#FF780F" :show-bar="false" height="60" font-size="24" inactive-color="#333333"></u-tabs>
</view>
<swiper class="swiper-box" :current="swiperCurrent" @animationfinish="animationfinish" :style="{height: swiperHeight}">
@@ -14,7 +13,7 @@
</swiper-item>
</swiper>
<!-- 加载更多 -->
<u-loadmore :status="loadStatus" bgColor="#FFF" margin-top="20" margin-bottom="20" @loadmore="loadMore"></u-loadmore>
<u-loadmore class="load-size" :status="loadStatus" bgColor="#FFF" margin-top="20" margin-bottom="20" @loadmore="loadMore"></u-loadmore>
</view>
</template>
<script>
@@ -49,7 +48,7 @@ export default {
this.getGoodsClassRecommend();
},
methods: {
loadMore(page) {
loadMore() {
if(!this.timer) return false;
this.loadStatus = "loading";
this.page++;
@@ -72,6 +71,7 @@ export default {
},
getGoodsClassRecommend() {
this.$u.api.getGoodsClassRecommend().then(res => {
console.log(res)
if (res.errCode == 0) {
// 初始化 current
this.current = 0;
@@ -97,7 +97,7 @@ export default {
},
setSwiperHeight() {
// height: 480rpx, margin-bottom: 26rpx
const height = Math.ceil(this.goodsList[this.current].length / 2) * (480 + 26);
const height = Math.ceil(this.goodsList[this.current].length / 2) * (450 + 26);
this.swiperHeight = height == 0 ? '230rpx' : height + 'rpx';
// console.log(this.swiperHeight);
},

View File

@@ -4,7 +4,7 @@
<view class="info">
<text class="title u-line-2">{{ info.goods_name }}</text>
<!-- <text class="jianjie u-line-1">{{ info.goods_advword }}</text> -->
<text class="price">{{ info.goods_price }}</text>
<text class="price">{{ info.goods_price }}<text style="font-size:22rpx;color:#999;text-decoration:line-through;display: inline-block;margin-left:20rpx"> {{info.goods_marketprice}}</text></text>
</view>
</view>
</template>
@@ -34,7 +34,7 @@ export default {
url: 'pageB/sdetails/index',
params: {
id: this.info.goods_id,
type: 1,
// type: 1,
}
})
}
@@ -44,14 +44,14 @@ export default {
<style lang="scss" scoped>
.item{
width: 330rpx;
height: 480rpx;
height: 450rpx;
margin-bottom: 26rpx;
background-color: #f8f8f8;
border-radius: 10rpx 10rpx 0rpx 0rpx;
.img{
width: 330rpx;
height: 300rpx;
background: rgba(245,245,245,1);
background: rgb(114, 110, 110);
border-radius: 10rpx 10rpx 0rpx 0rpx;
margin-bottom: 24rpx;
}

View File

@@ -10,8 +10,8 @@
<view class="connect">
<view class="user">
<view class="avatar">
<image :src="info.member_avatar[0]"></image>
<image :src="info.member_avatar[1]"></image>
<image src="/static/image/common/32.png"></image>
<image src="/static/image/common/31.png"></image>
</view>
<view class="num">{{ info.pintuan_limit_number }}人团</view>
</view>
@@ -91,7 +91,7 @@ export default {
}
}
.connect{
padding:10rpx 30rpx 30rpx;
padding:10rpx 0 30rpx;
display: flex;
align-items: center;
.user {
@@ -110,7 +110,6 @@ export default {
left: 0;
top: 0;
z-index: 8;
background-color: aqua;
}
&:last-child {
left: 32rpx;

View File

@@ -19,7 +19,7 @@
</view>
<view class="next" @click="viewMore">
<text>查看更多</text>
<u-icon name="arrow-right" color="#999" size="18"></u-icon>
<u-icon name="arrow-right" color="#999" size="22"></u-icon>
</view>
</view>
<view class="list">
@@ -82,7 +82,7 @@ export default {
background-color: #000;
}
.mah {
vertical-align: text-top;
color: #999999;
}
}
}

View File

@@ -33,7 +33,7 @@ export default {
border-radius: 50%;
}
>text{
width: 100rpx;
max-width: 100rpx;
margin-top: 14rpx;
font-size: 24rpx;
color: #333;

View File

@@ -1,26 +1,26 @@
<template>
<view class="special">
<view v-if="type == 'spike'">
<image :src="item.groupbuy_image1" @click="spikeGoods"></image>
<view v-if="type == 'spike'" @click="spikeGoods">
<image :src="item.groupbuy_image1" mode="aspectFill"></image>
<view class="right">
<view class="name u-line-1" @click="spikeGoods">{{ item.goods_name }}</view>
<view class="name u-line-1">{{ item.goods_name }}</view>
<view class="price">
<view class="groupbuy-price">{{ item.groupbuy_price }}</view>
<view class="goods-price">{{ item.goods_price }}</view>
<view class="groupbuy-price">{{ item.groupbuy_price }}</view>
<view class="goods-price">{{ item.goods_price }}</view>
</view>
<view class="buy">
<view class="num">剩余{{ item.inventory }}</view>
<view class="btn" @click="spikeGoods">立即购买</view>
<view class="btn">立即购买</view>
</view>
</view>
</view>
<view v-if="type == 'group'">
<image :src="item.pintuan_image" @click="toDetailsPage"></image>
<view class="right">
<view class="name u-line-1" @click="toDetailsPage">{{ item.pintuan_goods_name }}</view>
<view v-if="type == 'group'" @click="toDetailsPage">
<image :src="item.pintuan_image"></image>
<view class="right">
<view class="name u-line-1">{{ item.pintuan_goods_name }}</view>
<view class="price group">
<view class="groupbuy-price">{{ item.pintuan_goods_price }}</view>
<view class="btn" @click="toDetailsPage">立即拼团</view>
<view class="groupbuy-price">{{ item.pintuan_goods_price }}</view>
<view class="btn">立即拼团</view>
</view>
</view>
</view>

View File

@@ -2,11 +2,12 @@
<view class="coupon-swiper">
<view class="top">
<view class="title">全部优惠券</view>
<view class="view-more" @click="toCouponPage">查看更多></view>
<view class="view-more" @click="toCouponPage">
<text>查看更多</text>
<u-icon name="arrow-right" color="#999" size="22"></u-icon>
</view>
</view>
<!-- <u-tabs-swiper ref="coupon" :list="couponGroupList" name="gc_name" :is-scroll="true" active-color="#FF780F" :current="couponCurrent" font-size="24" :show-bar="false" @change="couponTabsChange" height="60" ></u-tabs-swiper> -->
<u-tabs :list="couponGroupList" name="gc_name" :is-scroll="true" :current="couponCurrent" @change="couponTabsChange" active-color="#FF780F" :show-bar="false" height="60" font-size="24" inactive-color="#333333"></u-tabs>
<!-- :style="{ height: swiperHeight }" -->
<swiper class="box" :current="swiperCouponCurrent" @animationfinish="couponAnimationFinish" :style="{height: swiperHeight}">
<swiper-item class="swiper-coupon-item" v-for="(_, i) in couponGroupList" :key="i">
<!-- 最多显示四个 -->
@@ -114,6 +115,8 @@ export default {
.view-more {
font-size: 20rpx;
color: rgba(153,153,153,1);
display: flex;
align-items: center;
}
}
.box {

View File

@@ -5,6 +5,10 @@ import uView from "uview-ui";
Vue.config.productionTip = false
Vue.use(uView);
App.mpType = 'app'
// 当前 app 版本号
Vue.prototype.$app_version = '1.0.0';
Vue.prototype.imService = new IMService();
Vue.prototype.a = 1;
import store from '@/common/store/index.js'

View File

@@ -2,8 +2,8 @@
"name" : "德铭阳光",
"appid" : "__UNI__EBFF00A",
"description" : "",
"versionName" : "1.0.0",
"versionCode" : "100",
"versionName" : "1.0.1",
"versionCode" : 103,
"transformPx" : false,
/* 5+App */
"app-plus" : {
@@ -11,11 +11,18 @@
"nvueCompiler" : "uni-app",
"compilerVersion" : 3,
"splashscreen" : {
"alwaysShowBeforeRender" : true,
"waiting" : true,
"alwaysShowBeforeRender" : false,
"waiting" : false,
"autoclose" : true,
"delay" : 0
},
"safearea" : {
//安全区域配置仅iOS平台生效
"bottom" : {
// 底部安全区域配置
"offset" : "none" // 底部安全区域偏移,"none"表示不空出安全区域,"auto"自动计算空出安全区域,默认值为"none"
}
},
/* */
"modules" : {
"OAuth" : {},
@@ -60,7 +67,13 @@
"abiFilters" : [ "armeabi-v7a", "x86" ]
},
/* ios */
"ios" : {},
"ios" : {
"privacyDescription" : {
"NSLocationAlwaysAndWhenInUseUsageDescription" : "德铭阳光将在推荐商品、收货地址等服务中使用您的位置信息。",
"NSLocationWhenInUseUsageDescription" : "德铭阳光将在推荐商品、收货地址等服务中使用您的位置信息。",
"NSLocationAlwaysUsageDescription" : "德铭阳光将在推荐商品、收货地址等服务中使用您的位置信息。"
}
},
/* SDK */
"sdkConfigs" : {
"ad" : {},
@@ -112,10 +125,10 @@
},
"icons" : {
"android" : {
"hdpi" : "static/app/icon/72x72.png",
"xhdpi" : "static/app/icon/96x96.png",
"xxhdpi" : "static/app/icon/144x144.png",
"xxxhdpi" : "static/app/icon/192x192.png"
"hdpi" : "unpackage/res/icons/72x72.png",
"xhdpi" : "unpackage/res/icons/96x96.png",
"xxhdpi" : "unpackage/res/icons/144x144.png",
"xxxhdpi" : "unpackage/res/icons/192x192.png"
},
"ios" : {
"appstore" : "unpackage/res/icons/1024x1024.png",

10
package-lock.json generated
View File

@@ -6,13 +6,13 @@
"dependencies": {
"blueimp-md5": {
"version": "2.17.0",
"resolved": "https://registry.npm.taobao.org/blueimp-md5/download/blueimp-md5-2.17.0.tgz?cache=0&sync_timestamp=1595922448921&other_urls=https%3A%2F%2Fregistry.npm.taobao.org%2Fblueimp-md5%2Fdownload%2Fblueimp-md5-2.17.0.tgz",
"integrity": "sha1-9PysCIsRX3tARfGfXaWenQGxu5Y="
"resolved": "https://registry.npmjs.org/blueimp-md5/-/blueimp-md5-2.17.0.tgz",
"integrity": "sha512-x5PKJHY5rHQYaADj6NwPUR2QRCUVSggPzrUKkeENpj871o9l9IefJbO2jkT5UvYykeOK9dx0VmkIo6dZ+vThYw=="
},
"uview-ui": {
"version": "1.5.0",
"resolved": "https://registry.npmjs.org/uview-ui/-/uview-ui-1.5.0.tgz",
"integrity": "sha512-1UdMUGJqWx60ALbXXXs3rQHKUNBARDIV5XHc06mKFxpccO/i0tzoSqS6RuPdmYwXU1q59wnIU+NLABvcU5u4vw=="
"version": "1.6.2",
"resolved": "https://registry.npmjs.org/uview-ui/-/uview-ui-1.6.2.tgz",
"integrity": "sha512-AvTXUk8A/AdJazxTziApw0NMv61jlE9cEO+Jxe84cTvcm2Ej7Ngf8zb3a6aSPVi6OVu81vTCC71R1wN7dZC3ig=="
},
"vuex": {
"version": "3.5.1",

View File

@@ -14,7 +14,7 @@
"license": "ISC",
"dependencies": {
"blueimp-md5": "^2.17.0",
"uview-ui": "^1.5.0",
"uview-ui": "^1.6.2",
"vuex": "^3.5.1"
}
}

View File

@@ -3,32 +3,28 @@
<view>
<view class="login">
<view class="content">
<view class="title">手机登录</view>
<view class="title">请绑定手机号</view>
<view class="labales">
<text>手机号</text>
<input type="tel" placeholder="" />
<input type="number" maxlength="11" v-model="phone" placeholder="手机号" />
</view>
<view class="labales">
<text>请输入验证码</text>
<input type="tel" placeholder="" />
<text class="identifying">获取验证码</text>
<view class="labales flex-inp">
<input type="number" maxlength="6" placeholder="请输入验证码" v-model="sms_code" />
<u-button id="btn" class="identifying" :hair-line="false" hover-class="none" :class="is_sendcode ? 'sended' : ''" @click="getCode" :disabled="is_sendcode">{{ is_sendcode ? time_count + "后可以重新发送" : "发送验证码" }}</u-button>
</view>
<!-- 服务协议 -->
<view class="pact">
<view></view>
<checkbox-group @change="change">
<checkbox class="check-tit" color="#1ADE00" :checked="checked" />
</checkbox-group>
<text>我已详细阅读并同意</text>
<text class="pact_text">用户协议</text>
<text class="pact_text">隐私协议</text>
<text class="pact_text">使用协议</text>
<u-checkbox-group @change="checkboxGroupChange" size="27">
<u-checkbox @change="checkboxChange" v-model="item.checked" v-for="(item, index) in list" :key="index" :name="item.name"
shape="circle" size="14" active-color="#19BE6B"></u-checkbox>
</u-checkbox-group>
<text class="pact_text" v-for="(item,index) in pactList" :key="index" @click="infoPact(index)">
{{ item }}
</text>
</view>
</view>
<!-- denglu QQ weixin -->
<u-button>{{login}}</u-button>
<view class="btn-login" @click="bindPhone">{{login}}</view>
<u-toast ref="uToast" />
</view>
</view>
</template>
@@ -36,81 +32,151 @@
export default {
data() {
return {
list: [{
checked: false,
disabled: false
}],
value: '',
login: '注册',
show: true
phone: "",
sms_code: "",
login: '绑定',
show: true,
checked: false,
// 时间
timer: null,
is_sendcode: false, // 60s
time_count: 60,
pactList: [ "《用户协议》", "《隐私协议》", "《使用协议》" ],
};
},
methods: {
// 选中某个复选框时由checkbox时触发
checkboxChange(e) {
//console.log(e);
},
// 选中任一checkbox时由checkbox-group触发
checkboxGroupChange(e) {
// console.log(e);
},
mask_u(){
this.show = !this.show
},
// 勾选协议
change(e) {
this.checked = !this.checked;
console.log(this.checked);
},
// 获取验证码
getCode() {
if (this.$u.test.isEmpty(this.phone)) {
this.$refs.uToast.show({
title: '手机号格式不能为空!',
type: 'error',
})
return;
}
if(!(/^1[3456789]\d{9}$/.test(this.phone))){
this.$refs.uToast.show({
title: '手机号格式不正确!',
type: 'warning',
})
return;
}
this.$u.api.sendSmsCode({
member_mobile: this.phone,
smslog_type: 4,
}).then(res => {
if (res.errCode == 0) {
console.log(res);
this.$refs.uToast.show({
title: res.message,
type: 'success',
})
// 发送验证码
this.getSendCode();
} else {
this.$refs.uToast.show({
title: res.message,
type: 'warning',
})
}
})
},
// 绑定手机号
bindPhone() {
if (this.$u.test.isEmpty(this.phone)) {
this.$refs.uToast.show({
title: '手机号不能为空!',
type: 'error',
})
return;
}
if(!(/^1[3456789]\d{9}$/.test(this.phone))){
this.$refs.uToast.show({
title: '手机号格式不正确!',
type: 'warning',
})
return;
}
if(this.$u.test.isEmpty(this.sms_code)){
this.$refs.uToast.show({
title: '验证码不能为空!',
type: 'warning',
})
return;
}
if(this.sms_code.length == 0){
this.$refs.uToast.show({
title: '验证码有误!',
type: 'warning',
})
return;
}
if(!this.checked){
this.$refs.uToast.show({
title: '请同意协议!',
type: 'warning',
})
return;
}
this.$u.api.mobileBind({
member_mobile: this.phone,
sms_code: this.sms_code,
}).then(res => {
console.log(res);
if (res.errCode == 0) {
this.$refs.uToast.show({
title: res.message,
type: 'success',
})
uni.navigateTo({
url: '/pageA/topick/topick'
});
} else {
this.$refs.uToast.show({
title: res.message,
type: 'warning',
})
}
})
},
// 协议详情
infoPact(index) {
// console.log(index);
uni.navigateTo({
url: '/pageA/pactList/pactList?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);
}
},
}
};
</script>
<style lang="scss" scoped>
.uni-page-wrapper{
background: #fff;
}
.login {
// background: url(../../static/pageA/loginbackground.png) no-repeat!important;
.images {
position: fixed;
width: 100%;
height: 100%;
top: 0;
left: 0;
z-index: -1;
}
.backes {
background: rgba(0, 0, 0, 0.4);
position: fixed;
width: 100%;
height: 100%;
z-index: -1;
}
text {
z-index: 9;
color: #fff;
}
.more_Login {
overflow: hidden;
zoom: 1;
width: 630rpx;
margin: 0 auto;
}
.more_Login text {
display: inline-block;
width: 50%;
float: left;
font-size: 30rpx;
color: rgba(255, 255, 255, 1);
line-height: 36px;
margin: 97rpx 0;
}
.more_Login .other {
text-align: right;
}
}
page {
background-color: #fff;
}
.title {
font-size: 36rpx;
@@ -124,163 +190,87 @@
z-index: 99999;
margin: 0 auto;
padding-top: 130rpx;
.labales {
position: relative;
display: flex;
align-items: center;
padding: 20rpx;
border-bottom: 1px #BFBFBF solid;
input {
width: 100%;
}
}
.flex-inp {
justify-content: space-between;
margin-top: 70rpx;
}
.labales text {
font-size: 30rpx;
color: #999;
}
.labales {
border-bottom: 1px #BFBFBF solid;
margin-bottom: 90rpx;
}
.labales {
position: relative;
}
.identifying {
position: absolute;
right: 0;
top: 0;
bottom: 0;
margin: auto;
font-size: 30rpx;
flex-shrink: 0;
font-size: 26rpx;
font-weight: 500;
color: #FF780F!important;
color: #FF780F !important;
border: none;
background-color: #fff;
}
}
.pact text {
font-size: 22rpx;
font-weight: 400;
color: #333;
line-height: 36px;
.sended {
color: #666 !important;
}
}
.pact {
display: flex;
align-items: center;
flex-wrap: wrap;
margin: 20rpx 0;
&>text {
font-size: 22rpx;
font-weight: 400;
color: #333;
}
}
.check-tit {
font-size: 20rpx;
}
::v-deep uni-checkbox .uni-checkbox-input {
width: 24rpx;
height: 24rpx;
border-color: #d1d1d1 !important;
border-radius: 50% !important;
}
::v-deep uni-checkbox .uni-checkbox-input-checked:before {
font-size: 28rpx;
}
.pact_text {
font-size: 22px;
font-weight: 400;
color: rgba(129, 188, 253, 1) !important;
line-height: 36px;
}
//单选框的样式
.pact {
position: relative;
padding-left: 38rpx;
}
.btn-login {
width: 650rpx;
height: 90rpx;
margin: 300rpx auto 0;
text-align: center;
line-height: 90rpx;
color: #fff;
font-size: 34rpx;
border-radius: 50rpx !important;
background-color: #FF780F;
}
.u-checkbox-group {
position: absolute;
left: 0;
top: 0;
bottom: 0;
margin: auto;
}
.u-checkbox__icon--square {
border-radius: 50rpx !important;
width: 22rpx;
height: 22rpx;
}
.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;
margin-top: 225rpx;
}
.warp {
display: flex;
align-items: center;
justify-content: center;
height: 100%;
}
.rect {
width: 558rpx;
height: 300rpx;
background-color: #fff;
border-radius: 20rpx;
overflow: hidden;
zoom: 1;
position: relative;
display: flex;
flex-wrap:wrap;
display: -webkit-flex; /* Safari */
.rect_view{
width: 100rpx;
height: 100rpx;
.image{
width: 45rpx;
height: 53rpx;
display: inline-block;
}
flex:1;
margin-top: 77rpx;
}
.rect_view:nth-child(2) image{
width: 57rpx;
height: 45rpx;
}
.rect_butoon{
width: 100%;
position: absolute;
bottom: 0;
height: 85rpx;
text-align: center;
line-height: 85rpx;
border-top: 1px #999999 solid;
}
view{
color: #666;
font-size:24rpx;
margin-top: 30rpx;
}
}
.rect_view:nth-child(1) image,.rect_view:nth-child(1) view{
float: right;
}
.rect_view:nth-child(1) image{
margin-right: 20rpx;
}
.rect_view:nth-child(1){
position: relative;
margin-right: 79rpx;
}
.rect_view:nth-child(1) view{
position: absolute;
bottom: 0;
right: 0;
}
.rect_view:nth-child(2) image,.rect_view:nth-child(2) view{
float: left;
}
.rect_view:nth-child(2) image{
margin-left: 20rpx;
}
.rect_view:nth-child(2){
position: relative;
}
.rect_view:nth-child(2) view{
position: absolute;
bottom: 0;
left: 0;
}
u-button{
margin-top: 225rpx;
}
button::after{ border: none; }
</style>

View File

@@ -34,7 +34,8 @@
<!-- 注册 -->
<view class="more_Login">
<text @click="registerUrl()">{{register}}</text>
<text class="other" @click="mask_u">其他方式登录</text>
<!-- TODO 苹果因审核原因暂时隐藏第三方登录 -->
<text v-if="platform != 'ios'" class="other" @click="mask_u">其他方式登录</text>
</view>
<!-- denglu QQ weixin -->
<view class="buttones">
@@ -61,6 +62,7 @@
</view>
</template>
<script>
import IMService from '@/static/imservice.js'
import identifying from '@/components/logininput/identifying'
import {
mapMutations
@@ -97,16 +99,26 @@
}, ],
temp_url: "", // 上个页面路径
pagesArr: ["pages/mine/index"], // 特殊路径
platform: '', // 手机平台
};
},
onLoad() {
// 数据的请求
// this.apiwelcome();
// 获取手机平台
uni.getSystemInfo({
success: (res) => {
console.log(res);
this.platform = res.platform
}
});
},
onShow() {
let pages = getCurrentPages();
let prePage = pages[pages.length - 2];
this.temp_url = prePage.route;
console.log(this.imService.lianjie)
this.imService.disconnect()
// console.log(this.temp_url);
},
// 切断正常返回
@@ -181,6 +193,7 @@
me.loginIn(res.data.token); //存储一个字符传值
// 缓存用户的信息
uni.setStorageSync('user_info',res.data);
this.imService.disconnect()
if (res.data.member.has_labels) {
uni.switchTab({
url: '/pages/index/index'
@@ -226,13 +239,20 @@
member_nickname: data.userInfo.nickName,
member_avatar: data.userInfo.avatarUrl,
}).then(res => {
console.log(res.errCode);
if (res.errCode == 0) {
this.loginIn(res.data.token);
uni.setStorageSync('user_info',res.data);
this.show = false;
uni.switchTab({
url: "../../pages/index/index"
})
console.log(res.data.member.member_mobilebind);
if(res.data.member.member_mobilebind) {
uni.switchTab({
url: "/pages/index/index"
});
} else {
uni.navigateTo({
url: '/pageA/bindinges/bindinges'
});
}
}
})
}
@@ -246,11 +266,11 @@
uni.login({
provider: 'weixin',
success: (wxres) => {
console.log(wxres);
// console.log(wxres);
uni.getUserInfo({
provider: 'weixin',
success: (data) => {
console.log(data);
// console.log(data);
this.$u.api.wechatLogin({
member_wxopenid: data.userInfo.openId,
member_nickname: data.userInfo.nickName,
@@ -259,10 +279,18 @@
console.log(res);
if (res.errCode == 0) {
this.loginIn(res.data.token);
uni.setStorageSync('user_info',res.data);
this.show = false;
uni.switchTab({
url: "../../pages/index/index"
})
console.log(res.data.member.member_mobilebind);
if(res.data.member.member_mobilebind) {
uni.switchTab({
url: "/pages/index/index"
});
} else {
uni.navigateTo({
url: '/pageA/bindinges/bindinges'
});
}
}
})
}
@@ -299,11 +327,11 @@
tochange() {
},
goIndex() {
uni.switchTab({
url: "/pages/index/index"
})
}
goIndex() {
uni.switchTab({
url: "/pages/index/index"
})
}
},
components: {
identifying

View File

@@ -29,9 +29,9 @@ export default {
document_code: 'agreement'
}).then((res)=>{
// console.log(res.data.document_title);
uni.setNavigationBarTitle({
title: res.data.document_title
})
uni.setNavigationBarTitle({
title: res.data.document_title
})
let data = common.unescapeHTML(res.data.document_content);
this.document_content = data;
})
@@ -41,9 +41,9 @@ export default {
document_code: 'privacy'
}).then((res)=>{
// console.log(res.data.document_title);
uni.setNavigationBarTitle({
title: res.data.document_title
})
uni.setNavigationBarTitle({
title: res.data.document_title
})
let data = common.unescapeHTML(res.data.document_content);
this.document_content = data
})
@@ -53,9 +53,9 @@ export default {
document_code: 'use'
}).then((res)=>{
// console.log(res.data.document_title);
uni.setNavigationBarTitle({
title: res.data.document_title
})
uni.setNavigationBarTitle({
title: res.data.document_title
})
let data = common.unescapeHTML(res.data.document_content);
this.document_content = data
})
@@ -69,16 +69,15 @@ export default {
</script>
<style lang="scss" scoped>
.packlist{}
.packlist > view{
width: 90%;
margin: 0 auto;
padding: 16upx 0;
font-size: 26upx;
font-size: 30upx;
color: #333;
}
.rict_type {
text-indent: 1rem;
line-height: 1.2;
line-height: 1.4;
}
</style>

View File

@@ -3,11 +3,11 @@
<view class="label-list">
<view v-for="(label, index) in evaluateSpec" :key="index" :class="{'active': current == index}" @click="current=index">{{ index + '(' + label + ')' }}</view>
</view>
<view class="comment-container">
<view class="comment-container" v-if="isShow">
<view v-for="(item, index) in evalueList" :key="index" class="itme">
<comment :reply="true" :content="item"></comment>
</view>
<u-empty text="暂无评" mode="list" v-if="!evalueList.length" margin-top="120" color="#333"></u-empty>
<u-empty text="暂无评" mode="list" v-if="!evalueList.length" margin-top="120" color="#333"></u-empty>
</view>
<!-- 加载更多 -->
<u-loadmore :status="loadStatus" bgColor="#EEEBEE" margin-top="20" margin-bottom="20" v-if="evalueList.length >= 12"></u-loadmore>
@@ -25,6 +25,7 @@ export default {
evaluateSpec: {},
loadStatus: 'loadmore',
timer: true,
isShow: false, // 是否显示组建
}
},
components: {
@@ -50,7 +51,7 @@ export default {
if(!this.timer) return false;
this.loadStatus = "loading";
this.page++;
this.getAllEvalue({ type: this.current, load: 'more' }).then(length => {
this.getAllEvalue({ type: this.current, load: 'loadmore' }).then(length => {
if(length == 0) {
this.page--;
this.loadStatus = 'nomore';
@@ -72,21 +73,23 @@ export default {
}
})
},
async getAllEvalue({ type, load } = {}) {
async getAllEvalue({ type, load = 'reload' } = {}) {
let params = {
goods_id: this.id,
page: this.page,
}
if(type) Object.assign(params, { type: type });
this.isShow = false;
const res = await this.$u.api.getAllEvalue(params);
this.isShow = true;
if (res.errCode == 0) {
if(load) this.evalueList.push(...res.data);
if(load == 'loadmore') this.evalueList.push(...res.data);
else this.evalueList = res.data;
} else {
this.evalueList = [];
}
return res.data.length;
}
},
}
};
</script>

View File

@@ -4,7 +4,7 @@
<view class="info">
<view class="avatar">
<image :src="item.member_avatar" mode="aspectFill"></image>
<view class="posi-type">
<view class="posi-type" v-if="item.live_status != 0" @click="tozhibo">
<view>
<u-icon name="play-right-fill" color="#fff" size="20rpx"></u-icon>
</view>
@@ -136,6 +136,16 @@ export default {
deep: true
},
methods: {
tozhibo(){
this.$u.route({
url:"/pages/zhibo/index",
params:{
url:item.url,
id:item.live_id,
rid:item.chatroom_id
}
})
},
// 打开个性
openPro() {
this.is_open = !this.is_open;

View File

@@ -31,12 +31,16 @@
height: 60rpx;
background-color: #ececec;
color: #999;
text-align: center;
line-height: 60rpx;
// text-align: center;
// line-height: 60rpx;
box-sizing: border-box;
border-radius: 6rpx;
margin-right: 26rpx;
margin-bottom: 20rpx;
border: #ececec 1rpx solid;
display: flex;
align-items: center;
justify-content: center;
}
.xuanzhong{
border: #ff780f 1rpx solid;
@@ -54,12 +58,30 @@ export default {
select: 0
}
},
props:['item','title'],
watch:{
props:['item','title', 'default'],
watch: {
select(){
console.log(this.select)
// console.log(this.select)
this.$emit("sel", this.select);
}
}
},
mounted() {
this.setDefaultValue();
},
methods: {
setDefaultValue() {
for (const ikey in this.item) {
if (this.item.hasOwnProperty(ikey)) {
const ielement = this.item[ikey];
for (const dkey in this.default) {
if (this.default.hasOwnProperty(dkey)) {
const delement = this.default[dkey];
if(ikey == dkey) this.select = ikey;
}
}
}
}
}
}
}
</script>

View File

@@ -1,8 +1,9 @@
<template>
<view class="userinfo">
<view class="userinfo" @click="stopClick()">
<view class="userhead">
<image class="avatar" :src="item.member_avatar"></image>
<text class="follow" @click="following(item.member_id)">{{ is_follow ? "" : "+" }}</text>
<image class="avatar" :src="item.member_avatar" @click="gotoInfo(item.role,item.member_id,item.store_id)"></image>
<!-- <text class="follow" @click="following(item.member_id)">{{ is_follow ? "" : "+" }}</text> -->
<image class="follow" :src=" !is_follow ? '../../static/image/userinfo/follow.png' : '../../static/image/userinfo/followed.png' " mode="" @click="following(item.member_id)"></image>
</view>
<!-- 点赞 -->
<view class="operat zan">
@@ -23,7 +24,7 @@
<text class="operat-span">{{ comment_num }}</text>
</view>
<!-- 购物车 -->
<view class="operat gouwu">
<view class="operat gouwu" v-if="cart_num">
<image class="operat-img" :src=" is_cart ? '../../static/image/userinfo/gouwuche1.png' : '../../static/image/userinfo/gouwuche.png' "
mode="" @click="carting()"></image>
</view>
@@ -62,16 +63,10 @@
.follow {
z-index: 100;
position: absolute;
top: 90rpx;
left: 40rpx;
width: 36rpx;
height: 36rpx;
text-align: center;
line-height: 36rpx;
font-size: 34rpx;
border-radius: 50%;
color: #fff;
background-color: #FF780F;
top: 80rpx;
left: 34rpx;
width: 50rpx;
height: 50rpx;
}
.operat {
@@ -80,6 +75,7 @@
/* #endif */
align-items: center;
flex-direction: column;
// padding: 0 30rpx;
}
.operat-span {
@@ -104,18 +100,20 @@
is_collect: this.list.is_collect || false,
is_content: false,
is_cart: false,
cart_num: 0,
comment_num: this.list.comment_num || 0,
item: this.list || {}
item: this.list || {},
}
},
watch: {
list(newValue, old) {
console.log(newValue);
// console.log(newValue.goods.length);
this.item = newValue || {};
this.is_follow = this.list.is_attention || false;
this.is_like = this.list.is_like || false;
this.is_collect = this.list.is_collect || false;
this.comment_num = this.list.comment_num || 0;
this.cart_num = newValue.goods.length;
},
cart(newValue, old) {
// console.log(newValue);
@@ -136,7 +134,7 @@
// 关注
following(id) {
uni.request({
url: "https://dmmall.sdbairui.com/api/member/attentionMember",
url: "https://mall.dmygkeji.com/api/member/attentionMember",
method: "POST",
data: {
member_id: id
@@ -152,6 +150,11 @@
title: res.data.message,
icon: "none"
})
} else if (res.data.errCode == 401) {
uni.showToast({
title: "您还没有登录,请先登录!",
icon: "none"
})
}
}
})
@@ -160,7 +163,7 @@
likeType(id) {
// console.log(id);
uni.request({
url: "https://dmmall.sdbairui.com/api/article/articleLike",
url: "https://mall.dmygkeji.com/api/article/articleLike",
method: "POST",
data: {
article_id: id
@@ -174,6 +177,11 @@
// console.log(res);
this.is_like = !this.is_like;
this.list.like_num = res.data.data.num;
} else if (res.data.errCode == 401) {
uni.showToast({
title: "您还没有登录,请先登录!",
icon: "none"
})
} else {
uni.showToast({
title: res.data.message,
@@ -186,7 +194,7 @@
// 收藏
collecting(id) {
uni.request({
url: "https://dmmall.sdbairui.com/api/article/articleCollect",
url: "https://mall.dmygkeji.com/api/article/articleCollect",
method: "POST",
data: {
article_id: id
@@ -200,6 +208,11 @@
console.log(res.data.num);
this.is_collect = !this.is_collect;
this.list.collect_num = res.data.data.num;
} else if (res.data.errCode == 401) {
uni.showToast({
title: "您还没有登录,请先登录!",
icon: "none"
})
} else {
uni.showToast({
title: res.data.message,
@@ -227,6 +240,20 @@
cart: this.is_cart
});
},
gotoInfo(type,id,s_id) {
if (type == 2) {
uni.navigateTo({
url: "/pageC/merchant/index?id=" + s_id
})
} else {
uni.navigateTo({
url: "/pageB/details/index?id=" + id
})
}
},
// 冒泡
stopClick() {
}
}
}
</script>

View File

@@ -45,6 +45,7 @@
<view>我们有万能穿搭公式</view>
</view>
</view>
<u-toast ref="uToast" />
</view>
</template>
<script>
@@ -56,21 +57,18 @@ export default {
},
onLoad(option) {
this.price = option.price;
// this.isNewmembervoucher();
},
methods: {
// 是否显示新人优惠券
isNewmembervoucher() {
this.$u.api.isNewmembervoucher().then(res => {
if(res.errCode == 0) {
this.price = res.data.price;
}
})
},
exchangeCoupon() {
this.$u.api.getCoupon({ id: 1 }).then(res => {
this.$u.toast(res.message);
if(res.errCode == 0) {}
if(res.errCode == 0) {
this.$refs.uToast.show({
title: res.message,
url: '/pageE/tool/MineCoupon'
})
} else {
this.$u.toast(res.message);
}
})
},
}

89
pageB/coupon/index.vue Normal file
View File

@@ -0,0 +1,89 @@
<template>
<u-popup v-model="showCoupon" mode="center" class="u-coupon-popup">
<view class="coupon">
<view class="price">{{ newMemberCoupon.price }}</view>
<image src="/static/image/common/30.png" class="coupon-image" @click="viewCoupon"></image>
<image src="/static/image/common/24.png" class="close-image" @click="showCoupon=false"></image>
</view>
</u-popup>
</template>
<script>
export default {
data() {
return {
showCoupon: true,
newMemberCoupon: {},
}
},
watch: {
showCoupon(value) {
if(!value) {
uni.navigateBack();
}
}
},
onShow() {
this.isNewmembervoucher();
},
methods: {
viewCoupon() {
this.$u.route('/pageB/coupon/details', {
price: this.newMemberCoupon.price
});
},
// 是否显示新人优惠券
isNewmembervoucher() {
this.$u.api.isNewmembervoucher().then(res => {
if(res.errCode == 0) {
this.newMemberCoupon = res.data;
} else {
this.showCoupon = false;
}
})
},
}
}
</script>
<style lang="scss">
page{
background-color: rgba(0,0,0,0);
}
.u-coupon-popup {
/deep/ .u-mode-center-box {
background-color: transparent;
}
.coupon {
width: 750rpx;
height: 583rpx;
position: relative;
.price {
z-index: 3;
color: #EBB36E;
position: absolute;
font-size: 92rpx;
font-weight: bold;
top: 200rpx;
left: 50%;
font-family: PingFang SC;
transform: translate(-68%, 0);
}
.coupon-image {
width: 568rpx;
height: 583rpx;
position: absolute;
top: 0;
left: 50%;
transform: translate(-60%, 0);
}
.close-image {
position: absolute;
top: 0;
right: 155rpx;
width: 60rpx;
height: 60rpx;
}
}
}
</style>

View File

@@ -19,7 +19,8 @@
<view class="box">
<videoItem v-for="item in listInfo" :key="item.article_id" :item="item"
@getArticlelist="getArticlelist"></videoItem>
<view class="no-data" v-show="!listInfo && !page">暂无数据</view>
<view class="no-data" v-if="!listInfo && page">暂无数据</view>
<u-loadmore v-else class="load-size" color="#999999" :status="status" icon-type="iconType" margin-top="50" margin-bottom="50" :load-text="loadText" />
</view>
</scroll-view>
</view>
@@ -74,7 +75,14 @@ export default {
userInfo: {}, // 用户信息
listInfo: [], // 列表详情
member_id: 0,
page: 0,
page: 1,
status: 'loadmore',
iconType: 'circle',
loadText: {
loadmore: '轻轻上拉',
loading: '努力加载中',
nomore: '实在没有了'
},
}
},
onLoad(option) {
@@ -82,14 +90,24 @@ export default {
this.member_id = option.id;
this.getUserInfo(option.id);
this.getArticlelist();
},
onReachBottom() {
// this.page++;
this.getArticlelist();
},
methods:{
// 获取信息
getUserInfo(id) {
this.$u.post("MemberExpert/expertInfo",{member_id: id}).then(res => {
// console.log(res);
console.log(res);
this.userInfo = res.data.info;
// console.log(this.userInfo);
console.log(this.userInfo.is_attention);
if(this.userInfo.is_attention == 1){
this.$u.api.dynamicRead({id}).then((res)=>{
console.log(res)
})
}
})
},
// 获取列表
@@ -101,13 +119,23 @@ export default {
}).then(res => {
if (res.errCode == 0) {
// console.log(res);
this.listInfo = res.data.list;
// this.listInfo = res.data.list;
// console.log(this.listInfo);
if (this.page == 1) {
this.listInfo = res.data.list;
this.status = "loadmore";
} else if (res.data.length == 0) {
this.status = "nomore";
} else {
this.listInfo = this.listInfo.concat(res.data.list);
}
this.page++;
} else {
console.log(res.message);
}
})
},
dianji(a){
console.log(a);
if(typeof a == "object"){
@@ -115,7 +143,13 @@ export default {
}else{
this.num = a
}
this.getArticlelist();
if (a == 0) {
this.page = 1;
this.getArticlelist();
} else if (a == 1) {
this.page = 1;
this.getArticlelist();
}
}
}
}

View File

@@ -1,43 +1,49 @@
<template>
<view class="follow">
<view class="sosuo" @click="searchValue">
<image src="/static/image/common/10.png"></image>
<text>输入达人名称</text>
</view>
<view class="list" style="margin-left:-20rpx">
<darenItem style="margin-top:20rpx;margin-left:20rpx;" v-for="item in recommendList" :key="item.id" :info="item" v-on:pChangeType="changeType"></darenItem>
</view>
<scroll-view scroll-y :style="{ height: viewHeight }" @scrolltolower="loadmore" class="container">
<view class="sosuo" @click="searchValue">
<image src="/static/image/common/10.png"></image>
<text>输入达人名称</text>
</view>
<view class="list" style="margin-left:-20rpx">
<darenItem style="margin-top:20rpx;margin-left:20rpx;" v-for="item in recommendList" :key="item.id" :info="item" v-on:pChangeType="changeType"></darenItem>
</view>
<u-loadmore :status="loadStatus" bgColor="#ECECEC" font-size="14" margin-top="40" margin-bottom="20" v-if="recommendList.length > pageSize" @loadmore="loadmore"></u-loadmore>
</scroll-view>
</view>
</template>
<style lang="scss" scoped>
.follow{
background-color: #ECECEC;
min-height: calc(100vh - var(--window-top));
padding: 20rpx 30rpx;
.sosuo{
width: 100%;
height: 60rpx;
border-radius: 30rpx;
background-color: #fff;
display: flex;
align-items: center;
justify-content: center;
>image{
width: 29rpx;
height: 29rpx;
}
>text{
font-size: 24rpx;
color: #999;
margin-left: 15rpx;
}
}
.list{
display: flex;
flex-wrap: wrap;
width: calc(100% + 23rpx);
margin-right: -23rpx;
}
.container {
box-sizing: border-box;
padding: 20rpx 30rpx;
.sosuo{
width: 100%;
height: 60rpx;
border-radius: 30rpx;
background-color: #fff;
display: flex;
align-items: center;
justify-content: center;
>image{
width: 29rpx;
height: 29rpx;
}
>text{
font-size: 24rpx;
color: #999;
margin-left: 15rpx;
}
}
.list{
display: flex;
flex-wrap: wrap;
width: calc(100% + 23rpx);
margin-right: -23rpx;
}
}
}
</style>
<script>
@@ -50,22 +56,45 @@ export default {
},
data(){
return{
pageSize: 2,
recommendList: [], // 推荐达人
page: 1,
loadStatus: 'loadmore',
timer: true,
viewHeight: '',
}
},
onLoad() {
this.setViewHeight();
},
onShow() {
this.getRecommendList();
},
methods: {
getRecommendList() {
this.$u.api.getRecommendList().then(res => {
if(res.errCode == 0) {
this.recommendList = res.data.list;
}
async getRecommendList({ load = 'reload' } = {}) {
const res = await this.$u.api.getAllRecommendList({ page: this.page });
this.timer = true;
if(res.errCode == 0) {
if(load == 'reload') this.recommendList = res.data.list;
if(load == 'loadmore') this.recommendList.push(...res.data.list);
}
return res.data.list.length;
},
loadmore() {
if(!this.timer) return false;
this.timer = false;
this.loadStatus = "loading";
this.page++;
this.getRecommendList({ load: "loadmore" }).then(length => {
this.loadStatus = "nomore";
if(length == 0) this.page--;
}).catch(() => {
this.loadStatus = "nomore";
this.page--;
})
},
changeType(member_id){
console.log(member_id);
// console.log(member_id);
this.$emit("pChangeType")
this.$u.api.attentionMember({
member_id: member_id
@@ -76,9 +105,13 @@ export default {
},
searchValue() {
uni.navigateTo({
url: '/pageB/search/index?type=2'
url: '/pageB/search/index?type=2&curent=1'
})
},
setViewHeight() {
const res = uni.getSystemInfoSync();
this.viewHeight = res.windowHeight + 'px';
}
},
}
</script>

View File

@@ -24,8 +24,8 @@
<!-- 用户操作 -->
<userinfo class="userinfo" :list="list" :cart="cart_type" :comment="is_comment" :num="comment_num" @openCart="openPopup"></userinfo>
<!-- 评论 -->
<u-popup v-model="is_comment" class="pl" mode="bottom" border-radius="10" height="700rpx">
<view class="top">
<u-popup v-model="is_comment" class="pl" mode="bottom" border-radius="10" @touchmove.stop.prevent="moveHandle">
<view class="comment-top">
<text>评论</text>
<u-icon name="close" color="#333" size="28" @click="is_comment=false"></u-icon>
</view>
@@ -47,12 +47,15 @@
<view class="info">
<image :src="child.member_avatar" mode=""></image>
<text>{{ child.member_nickname }}</text>
<u-icon v-if="!child.is_nickanme" class="icon" name="play-right-fill" color="#666" size="10rpx"></u-icon>
<text v-if="!child.is_nickanme">{{ child.reply_member_nickname }}</text>
<u-icon class="icon" name="play-right-fill" color="#666" size="10rpx" v-if="0"></u-icon>
<text v-if="0">{{ child.reply_member_nickname }}</text>
</view>
<view class="child_content">{{ child.content }}</view>
</view>
<view class="more-reply" v-if="item.reply_count" @click="getReplyList(item.id)">展开更多回复<u-icon name="arrow-down"></u-icon></view>
<view class="more-reply" v-if="item.reply_count" @click="getReplyList(item.id)">
{{ child_end[item.id] ? "暂无更多回复" : "展开更多回复" }}
<u-icon name="arrow-down" v-if="!child_end[item.id]"></u-icon>
</view>
</view>
</block>
<view class="no-data" v-if="!commentList.length">还没有评论快来评论吧</view>
@@ -66,7 +69,7 @@
<!-- 评论box -->
<u-popup v-model="is_edit" mode="bottom" border-radius="10" height="100rpx">
<view class="edit-box">
<input type="text" focus :placeholder="edit_text_other" @focus="focus" v-model="send_value">
<input type="text" :focus="is_focus" :placeholder="edit_text_other" @focus="focus" v-model="send_value">
<text @click="sendComment">发送</text>
</view>
</u-popup>
@@ -80,8 +83,8 @@
<view v-for="(item,index) in list.goods" :key="index" class="item" @click="gotoInfo(item.goods_id)">
<image :src="item.goods_image" mode="aspectFill"></image>
<view>
<text class="title">{{ item.goods_advword }}</text>
<text class="name">{{ item.goods_name }}</text>
<text class="cart-title u-line-1">{{ item.goods_advword }}</text>
<text class="cart-info u-line-2">{{ item.goods_name }}</text>
<text class="price">{{ item.goods_promotion_price }}</text>
</view>
</view>
@@ -159,27 +162,32 @@
display: flex;
flex-wrap: wrap;
.label {
padding: 6rpx 10rpx;
margin: 0 10rpx 10rpx 0;
font-size: 24rpx;
height: 40rpx;
padding: 4rpx 14rpx;
margin-right: 10rpx;
margin-bottom: 10rpx;
font-size: 26rpx;
text-align: center;
line-height: 38rpx;
color: #fff;
border-radius: 6rpx;
background-color: #000000;
opacity: 0.5;
border-radius: 10rpx;
background-color: rgba(0, 0, 0, .6);
}
}
}
.userinfo{
z-index: 9999;
position: absolute;
right: 30rpx;
top: 50%;
transform: translateY(-285rpx);
}
.pl {
.top {
.comment-top {
z-index: 1000;
position: fixed;
top: 0;
left: 0;
display: flex;
align-items: center;
justify-content: space-between;
@@ -197,7 +205,7 @@
.scroll-box {
z-index: 99;
margin: 88rpx 0 100rpx 0;
height: 100%;
height: 600rpx;
.box {
display: flex;
align-items: center;
@@ -217,6 +225,7 @@
height: 60rpx;
font-size: 26rpx;
color: #333;
pointer-events: none;
.time {
font-size: 22rpx;
color: #999;
@@ -229,10 +238,13 @@
}
.content {
padding: 0 20rpx 10rpx 90rpx;
pointer-events: none;
}
.child-content {
margin: 6rpx 90rpx 6rpx;
// pointer-events: none;
.child-box {
pointer-events: none;
.info {
display: flex;
align-items: center;
@@ -252,6 +264,7 @@
}
.child_content {
margin: 18rpx 0 18rpx 30rpx;
font-size: 26rpx;
}
}
.more-reply {
@@ -292,6 +305,7 @@
height: 90rpx;
& > input {
width: 80%;
font-size: 24rpx;
padding: 4rpx 20rpx;
border-radius: 20rpx;
}
@@ -330,11 +344,18 @@
& > view {
display: flex;
flex-direction: column;
justify-content: space-between;
color: #333;
justify-content: space-around;
width: 500rpx;
color: #343434;
font-size: 28rpx;
.title {
.cart-title {
line-height: 40rpx;
font-size: 29rpx;
}
.cart-info {
font-size: 24rpx;
line-height: 1.2;
}
.name {
width: 500rpx;
height: 80rpx;
@@ -344,6 +365,8 @@
display: -webkit-box;
-webkit-box-orient: vertical;
-webkit-line-clamp: 2;
margin:8rpx 0;
line-height:36rpx;
}
.price {
color: #FF3131;
@@ -407,7 +430,7 @@ export default {
list:{},
swiper_id: "",
page: 0, // 主评论
page_: [], // 子评论
page_: {}, // 子评论
cart_type: false, // 显示购物车
is_comment: false, // 显示评论
is_focus: false, // 聚焦
@@ -417,10 +440,12 @@ export default {
cart_len: 0,
photo_len: 0,
comment_num: 0,
is_more: true,
edit_text: "有爱评论,说点好听的 ~",
edit_text_other: "有爱评论,说点好听的 ~",
commentList: [], // 评论
allList: [], // 全部子评论
allList: {}, // 全部子评论
child_end: {},
status: 'loadmore',
iconType: 'circle',
loadText: {
@@ -434,6 +459,7 @@ export default {
onLoad(option){
this.article_id = option.id;
this.articleInfo(this.article_id);
this.allList = {};
},
// 监听返回按钮
onBackPress() {
@@ -492,18 +518,33 @@ export default {
this.commentList = this.commentList.concat(res.data);
}
this.page++;
let list = this.commentList;
list.forEach((item,index) => {
// console.log(item);
item.page = 0;
item.commentList = [];
this.page_[item.id] = 0;
this.child_end[item.id] = false;
})
this.commentList = list;
}
})
},
// 打开评论输入
openKeyInput(data,index) {
let me = this;
// console.log(data);
this.is_edit = true;
setTimeout(() => {
this.is_focus = true;
}, 200)
uni.onKeyboardHeightChange(function(res){
if (res.height == 0) {
me.is_focus = false;
}
})
this.comment_id = index;
if (data.id) {
if (data.content) {
this.edit_text_other = "回复@" + data.member_nickname;
this.pid = data.id;
this.reply_id = data.member_id;
@@ -526,15 +567,25 @@ export default {
pid: this.pid,
reply_id: this.reply_id,
}).then(res => {
// console.log(res.data.data);
// console.log(res.data);
this.send_value = "";
if (res.errCode == 0) {
this.send_value = "";
this.comment_num = res.data.num;
// console.log(this.comment_num);
this.is_edit = false;
// console.log(res.data.data.reply_id);
let p_id = res.data.data.pid;
// console.log(p_id);
if (res.data.data.pid) {
this.commentList[this.comment_id].reply_count = true;
this.allList[this.comment_id].unshift(res.data.data);
// console.log(this.allList[p_id]);
if (this.allList[p_id]) {
this.allList[p_id].push(res.data.data);
} else {
this.allList[p_id] = [];
this.allList[p_id].push(res.data.data);
}
// console.log(this.allList);
} else {
this.commentList.unshift(res.data.data);
}
@@ -545,15 +596,23 @@ export default {
},
// 发现回复列表
getReplyList(id) {
this.page_[id] = 0;
if (!this.page_[id] === 0) {
}
console.log(this.page_[id]);
uni.showLoading({
title: "loading..."
})
this.$u.post("article/articleReplyList", {id: id, page: this.page_[id]}).then(res => {
console.log(this.page_);
uni.hideLoading();
if (res.errCode == 0) {
if (this.page_[id] == 0) {
this.allList[id] = res.data;
} else {
this.allList[id] = this.allList[id].concat(res.data);
}
this.page_[id]++;
this.allList[id] = res.data;
this.$forceUpdate();
// console.log(this.allList);
} else if (res.errCode == 1) {
this.child_end[id] = true;
this.$forceUpdate();
}
})
},
@@ -570,6 +629,7 @@ export default {
},
// 评论滚动到底部
scrollBottom(e) {
console.log(1);
this.getComment();
},
// 跳转到商品
@@ -579,12 +639,17 @@ export default {
url: "/pageB/sdetails/index?id=" + id + "&type=" + 1,
})
},
// 禁止滚动
moveHandle(e) {
console.log(e);
return;
},
goBack() {
uni.navigateBack({
delta: 1
})
},
focus() {
focus(e) {
setTimeout(function(){
uni.showSoftKeybord;
}, 200)

View File

@@ -0,0 +1,44 @@
<template>
<view style="width:750rpx" :style="{'height':height}">
<image @click="calose()" style="width:30rpx;height:30rpx;position: fixed;top:80rpx;right:30rpx;" src="/static/image/clons.png"></image>
<video :src="url" class="video" :style="{'padding-top':top,'height': width}" :autoplay="true"></video>
</view>
</template>
<style>
.video{
width: 750rpx;
}
</style>
<script>
export default {
name:"video",
data(){
return {
url:"",
top:0,
height:0,
width:0
}
},
onLoad(a){
const res = uni.getSystemInfoSync();
let height = res.windowHeight
let width = res.windowWidth
this.width = width + ( (height - width) / 2) + 'px'
console.log(this.width)
this.top = (height - width) / 2+ 'px'
console.log(this.top)
this.height = height + 'px';
console.log(a)
this.url = a.url
},
methods:{
calose(){
uni.navigateBack({
delta: 1
});
}
}
}
</script>

View File

@@ -19,19 +19,27 @@
</view>
<view class="info">
<view class="title u-line-2">
<text class="store-name">{{ goodsInfo.store_name }}</text>
<text class="store-name" @click="toStorePage(goodsInfo.store_id)">{{ goodsInfo.store_name }}</text>
<text class="goods-name">{{ goodsInfo.goods_name }}</text>
</view>
<view class="price-collect">
<view class="pic" v-if="type != 3">
<view class="pic" v-if="type == 2">
<text>{{ goodsInfo.pintuan_price || '0.00' }}</text>
<s>{{ goodsInfo.goods_price || '0.00' }}</s>
</view>
<view class="collect" @click="switchCollect(goodsInfo.goods_collect)">
<u-icon name="star" color="#474747" size="28" v-if="!goodsInfo.goods_collect"></u-icon>
<u-icon name="star-fill" color="#FF7807" size="28" v-else></u-icon>
<text>{{ !goodsInfo.goods_collect ? '收藏' : '已收藏' }}</text>
<view class="pic" v-else-if="type == 1">
<text>{{ goodsInfo.goods_price || '0.00' }}</text>
<s>{{ goodsInfo.goods_marketprice || '0.00' }}</s>
</view>
<view class="collect" @click="switchCollect(goodsInfo.is_collect)">
<u-icon name="star-fill" color="#FF7807" size="28" v-if="goodsInfo.is_collect == 1"></u-icon>
<u-icon name="star" color="#474747" size="28" v-else></u-icon>
<text>{{ goodsInfo.is_collect == 1 ? '已收藏' : '收藏' }}</text>
</view>
</view>
<view class="shuliang">
<text>历史销售数量{{goodsInfo.goods_salenum}}</text>
<text>库存仅剩数量{{goodsInfo.goods_storage}}</text>
</view>
</view>
<view class="hr"></view>
@@ -41,7 +49,7 @@
<!-- <navs :value="'选择尺码'"></navs> -->
<view class="comment">
<view class="title">
<view class="left">商品评价{{ evaluate.evaluate_num }}</view>
<view class="left">商品评价{{ evaluate.evaluate_num || '0' }}</view>
<view class="right" @click="viewComment">
<text>查看全部</text>
<image src="/static/image/common/1.png"></image>
@@ -100,7 +108,7 @@
</u-popup>
<u-popup v-model="showInvolvementUser" mode="center" z-index="10078">
<view class="involvement-container" v-if="involvemenGroupInfo.length">
<view class="title u-line-1">参与{{ involvemenGroupInfo[0].member_nickname }}的拼团</view>
<view class="title">参与<text class="user-name u-line-1">{{ involvemenGroupInfo[0].member_nickname }}</text>的拼团</view>
<view class="involvement-view">
<view class="item" v-for="(user, i) in involvemenGroupInfo" :key="i">
<image class="avatar" :src="user.member_avatar"></image>
@@ -117,6 +125,11 @@
<view class="heng"></view>
</view>
<view class="rich">
<view class="goods-video" v-if="list.length && goodsInfo.video" @click="playVideo">
<image class="video-play" src="/static/videoPlay.png"></image>
<view class="blacks"></view>
<image class="video-img" :src="list[0].image" mode="aspectFill"></image>
</view>
<rich-text :nodes="goodsInfo.mobile_body"></rich-text>
</view>
<!-- 选择规格数量 -->
@@ -126,20 +139,19 @@
<view class="head">
<image class="image" :src="goodsInfo.goods_image"></image>
<view class="info">
<text class="u-line-2">{{goodsInfo.goods_name}}</text>
<view class="goods-name u-line-2">{{goodsInfo.goods_name}}</view>
<text v-if="type == 1">{{ goodsInfo.goods_price }}</text>
<text v-else-if="type == 2">{{ goodsInfo.pintuan_price }}</text>
<text v-else-if="type == 3">{{ groupbuyInfo.groupbuy_price }}</text>
</view>
</view>
<guige @sel="self" ref="guige" v-for="(item,index) in goodsInfo.spec_value" :key="index" :title="goodsInfo.spec_name[index]" :item="item"></guige>
<guige @sel="self" ref="guige" v-for="(item,index) in goodsInfo.spec_value" :key="index" :title="goodsInfo.spec_name[index]" :item="item" :default="goodsInfo.goods_spec"></guige>
<view class="num">
<text>购买数量</text>
<u-number-box v-model="goodsNumber" :min="1"></u-number-box>
</view>
<view style="height:100rpx"></view>
<!-- <view style="height:100rpx"></view> -->
</view>
<u-toast ref="uToast" />
</scroll-view>
</u-popup>
<!-- 普通商品 tool -->
@@ -180,7 +192,7 @@
<view class="btn" v-else @click="spikeGoods">立即秒杀</view>
</view>
<!-- <tloos @buy="buy" @xuanze="xuanze" :id="id" :info="goodsInfo" :type="type"></tloos> -->
<u-toast ref="uToast" />
<u-toast ref="uToast" :z-index='200000' />
</view>
</template>
<script>
@@ -196,7 +208,7 @@ export default {
goodsInfo: {}, // 商品信息
storeInfo: {}, // 店铺信息
glist: [], // 规格列表
id: 0, // 商品id/秒杀id/拼团 id
id: 0, // 商品id
type: '', // 商品类型 商品详情 1普通 2拼团 3秒杀 4优惠券
groupUser: [], // 拼团用户
user_suc: [], // 拼团成功用户
@@ -215,7 +227,9 @@ export default {
sel: "", // 拼接的规格
quanxuan: false, // 规格是否选择
debounce: true, // 防止多次提交订单
storeid:0 // 店铺id
storeid:0, // 店铺 id
pintuan_id: '', // 拼团 id
groupbuy_id: '', // 秒杀 id
}
},
components: {
@@ -241,7 +255,7 @@ export default {
// this.type = 1;
this.id = option.id;
// 先请求普通商品详情获取商品类型再渲染页面
this.ordinaryDetails(this.id);
this.ordinaryDetails();
},
onShow() {
this.debounce = true;
@@ -280,7 +294,7 @@ export default {
id:this.storeid
}).then((res)=>{
console.log(res)
let user = new Friend(res.data.member_id,res.data.member_nickname,res.data.member_avatar)
let user = new Friend(res.data.member_id,res.data.store_name,res.data.member_avatar)
this.$u.route({
url:"/pageD/privateChat/privateChat",
params:{
@@ -377,55 +391,58 @@ export default {
purchase() {
this.settlementOrder();
},
getGoodsDetails(id) {
getGoodsDetails() {
switch (this.type) {
case 1:
this.ordinaryDetails(id);
this.ordinaryDetails();
break;
case 2:
this.pinTuanDetails(id);
this.pinTuanDetails();
break;
case 3:
this.spikeGoodsDetails(id);
this.spikeGoodsDetails();
break;
default:
break;
}
},
// 普通商品详情
ordinaryDetails(id) {
this.$u.api.getGoodsDetails({ id: id }).then((res)=>{
// console.log(res)
ordinaryDetails() {
this.$u.api.getGoodsDetails({ id: this.id }).then(res => {
if (res.errCode == 0) {
this.evaluate = res.data.goods_evaluate_info;
this.goodsInfo = res.data.goods;
this.storeInfo = res.data.store;
this.setSwiperList(res.data.goods_image);
this.glist = res.data.spec_list;
this.storeid = res.data.store.store_id
// console.log(this.goodsInfo.mobile_body);
this.storeid = res.data.store.store_id;
this.type = res.data.view_type;
this.setTitle();
if(this.type == 1) {
this.id = res.data.goods.goods_id;
} else if(this.type == 2) {
this.id = res.data.goods.pintuan_id;
this.getGoodsDetails(this.id);
this.id = res.data.goods.goods_id;
this.pintuan_id = res.data.goods.pintuan_id;
this.getGoodsDetails();
} else if(this.type == 3) {
this.id = res.data.groupbuy_id;
this.getGoodsDetails(this.id);
this.id = res.data.goods.goods_id;
this.groupbuy_id = res.data.groupbuy_id;
this.getGoodsDetails();
}
}
})
},
// 拼团详情
pinTuanDetails(id) {
pinTuanDetails() {
// console.log(this.id);
this.$u.api.getPinTuanDetails({
pintuan_id: id
pintuan_id: this.pintuan_id,
goods_id: this.id,
}).then(res => {
if(res.errCode == 0) {
this.evaluate = res.data.data.goods_evaluate_info;
this.goodsInfo = res.data.data.goods;
this.pintuan_id = res.data.data.pintuan_id;
this.setSwiperList(res.data.data.goods_image);
this.glist = res.data.data.spec_list;
this.user_suc = res.data.data.user_suc;
@@ -435,13 +452,14 @@ export default {
})
},
// 秒杀详情
spikeGoodsDetails(id) {
spikeGoodsDetails() {
this.$u.api.getSpikeInfo({
groupbuy_id: id
groupbuy_id: this.groupbuy_id,
goods_id: this.id,
}).then(res => {
if(res.errCode == 0) {
// this.id = res.data.groupbuy_id;
this.groupbuyInfo = res.data.groupbuyInfo;
this.groupbuy_id = res.data.groupbuyInfo.groupbuy_id;
this.evaluate = res.data.goodsInfo.goods_evaluate_info;
this.goodsInfo = res.data.goodsInfo.goods;
this.setSwiperList(res.data.goodsInfo.goods_image);
@@ -462,13 +480,26 @@ export default {
}
})
},
// 验证能否拼团
async pintuanVerify({ pintuan_id, pintuangroup_headid }) {
const res = await this.$u.api.pintuanVerify({
pintuan_id: pintuan_id,
pintuangroup_headid: pintuangroup_headid,
})
if(res.errCode != 0) {
this.$refs.uToast.show({
title: res.message,
});
}
return res.errCode;
},
/*
* @description 下单 订单步骤1展示结算数据
* @params {Number} type involvement 拼团或者 默认开团
* @params {Number} num 数量
* @params {Number} ifcart 结算方式 1:购物车 0:直接结算(立即购买/拼团/秒杀)
**/
settlementOrder({type, num = this.goodsNumber, ifcart = 0} = {}) {
async settlementOrder({type, num = this.goodsNumber, ifcart = 0} = {}) {
if(type != 'involvement') {
if(!this.showSpec) {
this.showSpec = true;
@@ -490,26 +521,33 @@ export default {
}
}
if(!this.debounce) return;
this.debounce = false;
let params = {
ifcart: ifcart,
cart_id: [this.goodsInfo.goods_id + '|' + num],
}
if(this.type == 2) {
if(type == 'involvement') {
// const userId = uni.getStorageSync('user_info').member.member_id;
// 验证能否拼团
const whether = await this.pintuanVerify({
pintuan_id: this.pintuan_id,
pintuangroup_headid: this.involvemenGroupInfo[0].user_id
}).then(status => {
if(status != 0) return true;
else return false;
})
if(whether) return false;
this.$store.commit('setGroupHeadId', this.involvemenGroupInfo[0].user_id);
// console.log(this.$store.state.pintuangroup_headid);
Object.assign(params, {
pintuan_id: this.id,
pintuan_id: this.pintuan_id,
pintuangroup_id: this.involvemenGroupInfo[0].pintuangroup_id,
})
} else {
Object.assign(params, {
pintuan_id: this.id,
pintuan_id: this.pintuan_id,
})
}
}
this.debounce = false;
this.$u.api.settlementOrder(params).then(res => {
if(res.errCode == 0) {
// console.log('type' + this.type);
@@ -519,8 +557,10 @@ export default {
url: '/pageC/cart/ConfirmOrder'
})
} else {
this.$refs.uToast.show({
title: res.message,
});
this.debounce = true;
this.$u.toast(res.message);
}
})
},
@@ -543,7 +583,10 @@ export default {
if(sel != 0){
arr.push(sel)
}
}
}
// console.log(arr)
// 后台的 spec 是按升序排的
arr.sort((a, b) => a - b);
// console.log(arr)
if(arr.length == index){
this.sel = arr.join("|")
@@ -556,8 +599,11 @@ export default {
// console.log(id)
// 选择完规格后设商品type = 1
// this.type = 1;
this.getGoodsDetails(this.glist[id])
// 改变 goods_id
// console.log(this.glist);
this.id = this.glist[id];
// console.log(this.id);
this.getGoodsDetails();
},
// 设置页面标题
setTitle() {
@@ -602,14 +648,21 @@ export default {
current: arr[index]
})
},
switchCollect(status) {
if(status) {
switchCollect(status = 0) {
if(status == 1) {
this.removeFavorite();
} else {
this.addFavoriteGoods();
}
},
addFavoriteGoods() {
// // 尝试登录
// if (!this.$store.state.hasLogin) {
// uni.navigateTo({
// url: "pageA/login/login"
// })
// return false;
// }
this.$u.api.addFavoriteGoods({ fid: this.goodsInfo.goods_id }).then(res => {
if(res.errCode == 0) {
this.getGoodsDetails(this.id);
@@ -626,6 +679,17 @@ export default {
this.$u.toast(res.message);
}
})
},
toStorePage(id) {
this.$u.route('pageC/merchant/index', {
id: id
});
},
playVideo() {
console.log(this.goodsInfo.video);
this.$u.route('/pageB/playVideo/index', {
url: this.goodsInfo.video
});
}
},
}
@@ -716,7 +780,15 @@ export default {
.goods-name {
line-height: 1.5;
}
}
.shuliang{
padding-top: 33rpx;
font-size: 24rpx;
color:#656565;
display: flex;
justify-content: space-between;
}
.price-collect {
display: flex;
align-items: center;
@@ -959,6 +1031,13 @@ export default {
font-size: 32rpx;
color: rgba(51,51,51,1);
position: relative;
display: flex;
align-items: center;
justify-content: center;
.user-name {
display: inline-block;
max-width: 200rpx;
}
&::after {
content: '';
position: absolute;
@@ -1029,6 +1108,30 @@ export default {
}
.rich {
width: 100%;
.goods-video {
position: relative;
.video-img {
width: 100%;
}
.blacks {
width: 100%;
height: 100%;
position: absolute;
top: 0;
left: 0;
background-color: rgba(0, 0, 0, 0.35);
z-index: 8;
}
.video-play {
position: absolute;
top: 50%;
left: 50%;
transform: translate(-50%, -50%);
width: 100rpx;
height: 100rpx;
z-index: 9;
}
}
}
.group-tool {
position: fixed;
@@ -1099,10 +1202,11 @@ export default {
background-color: #fff;
display: flex;
position: fixed;
height: 98rpx;
width: 100%;
bottom:0;
border-top: 1rpx solid #ececec;
bottom: 0;
left: 0;
padding-bottom: env(safe-area-inset-bottom);
// border-top: 1rpx solid #ececec;
z-index: 10076;
.navs{
display: flex;
@@ -1132,9 +1236,11 @@ export default {
}
.spec-popup {
padding: 30rpx;
margin-bottom: 130rpx;
box-sizing: border-box;
max-height: 750rpx;
.head{
// height: 600rpx;
max-height: 60vh;
.head {
display: flex;
margin-bottom: 30rpx;
.image{
@@ -1149,24 +1255,26 @@ export default {
justify-content: space-between;
margin-left: 27rpx;
flex-direction: column;
>text:first-child{
.goods-name {
height: 76rpx;
line-height: 38rpx;
font-size: 28rpx;
color: #333;
}
>text:last-child{
> text:last-child {
font-size: 30rpx;
color: #ff3131;
}
}
}
.num{
.num {
height: 84rpx;
display: flex;
border-bottom: #ececec solid 2rpx;
justify-content: space-between;
align-items: center;
>text{
> text {
font-size: 26rpx;
color: #666;
}

View File

@@ -15,13 +15,21 @@ export default {
return{
type: '', // 1 商家达人社区 2 商品
keyword: "",
searchwordlist: [],
searchwordlist: [],
sid:0
}
},
// type: 2 商品 1: 其他
// type: 1 商品 2: 其他
onLoad(option) {
console.log(option.id)
if(option.id != undefined || option.id){
this.sid = option.id
}
this.type = option.type;
this.curent = option.curent || 0
this.getWordList();
if(option.type == 1) this.setNavSearchInput('搜索您需要的商品');
else if(option.type == 2) this.setNavSearchInput('请输入搜索内容');
},
// 点击搜索按钮
onNavigationBarButtonTap(e) {
@@ -36,6 +44,18 @@ export default {
this.search(this.keyword);
},
methods:{
setNavSearchInput(placeholder) {
// #ifdef APP-PLUS
// 修改 placeholder
webview.setStyle({
'titleNView': {
"searchInput": { //修改当前窗口search样式
"placeholder": placeholder,
}
}
})
// #endif
},
getWordList() {
this.$u.api.searchwordlist({type:this.type}).then(res => {
console.log(res)
@@ -51,7 +71,8 @@ export default {
}
let params = {
value: value,
type: this.type,
type: this.type,
curent:this.curent
}
if(this.type == 2) {
this.$u.route({
@@ -59,6 +80,10 @@ export default {
params: params,
})
}else{
if(this.sid !=0 ){
params.sid = this.sid
console.log(this.sid)
}
this.$u.route({
url: "/pageB/search/searchGoods",
params: params,

View File

@@ -7,7 +7,7 @@
</view>
<view class="evaluation" :class="{ 'current' : current == 2 }" @click="switchCurrent(2)">社区</view>
</view>
<scroll-view scroll-y class="goods-container" :style="{ height: scrollHeight }" @scrolltolower="loadMore" v-show="current == 0">
<scroll-view scroll-y class="goods-container" :style="{ height: scrollHeight }" @scrolltolower="loadMore" v-show="current == 0" :scroll-top="scrollTop" @scroll="scroll">
<view v-for="goods in goodsList" :key="goods.store_id" class="goods-item" @click="toDetailsPage(goods.store_id)">
<image :src="goods.store_avatar"></image>
<view class="right">
@@ -18,7 +18,7 @@
<u-loadmore :status="loadStatus" bgColor="#FFFFFF" margin-top="20" margin-bottom="20" v-if="goodsList.length >= pageSize"></u-loadmore>
<u-empty mode="list" v-if="!goodsList.length"></u-empty>
</scroll-view>
<scroll-view style="width:100%;" :style="{ height: scrollHeight }" scroll-y="true" @scrolltolower="loadMore" v-if=" current == 2 ">
<scroll-view style="width:100%;" :style="{ height: scrollHeight }" scroll-y="true" @scrolltolower="loadMore" v-if=" current == 2 " :scroll-top="scrollTop" @scroll="scroll">
<view class="box" style="padding: 0 30rpx;">
<view style="display:flex">
<view>
@@ -34,9 +34,9 @@
<u-loadmore :status="loadStatus" bgColor="#FFFFFF" margin-top="20" margin-bottom="20" v-if="goodsList.length >= pageSize"></u-loadmore>
<u-empty mode="list" v-if="!goodsList.length"></u-empty>
</scroll-view>
<scroll-view style="width:100%;padding: 20rpx 30rpx;margin-right:23rpx;" :style="{ height: scrollHeight }" scroll-y="true" @scrolltolower="loadMore" v-if=" current == 1 ">
<scroll-view style="width:100%;padding: 0rpx 30rpx;margin-right:23rpx;" :style="{ height: scrollHeight }" scroll-y="true" @scrolltolower="loadMore" v-if=" current == 1 " :scroll-top="scrollTop" @scroll="scroll">
<view class="list" >
<darenItem style="margin-top:20rpx;margin-right:23rpx;box-shadow:0px 3rpx 7rpx 0px rgba(153, 153, 153, 0.35);" v-for="item in goodsList" :key="item.id" :info="item" v-on:pChangeType="changeType"></darenItem>
<darenItem style="margin-top:20rpx;margin-right:23rpx;box-shadow:0px 3rpx 7rpx 0px rgba(153, 153, 153, 0.35);" v-for="item in goodsList" :key="item.member_id" :info="item" v-on:pChangeType="changeType"></darenItem>
</view>
<u-loadmore :status="loadStatus" bgColor="#FFFFFF" margin-top="20" margin-bottom="20" v-if="goodsList.length >= pageSize"></u-loadmore>
<u-empty mode="list" v-if="!goodsList.length"></u-empty>
@@ -59,7 +59,11 @@ export default {
scrollHeight: '',
loadStatus: 'loadmore',
timer: true, // 防止上拉加载短时间内多次调用,
value:""
value:"",
scrollTop: 0,
old: {
scrollTop: 0
}
}
},
components:{
@@ -78,16 +82,22 @@ export default {
},
onLoad(option) {
this.value = option.value;
this.current = option.curent
this.setViewHeight();
this.ShopSearch()
this.setNavSearchInput(this.value);
},
onNavigationBarSearchInputConfirmed(value) {
this.value = value.text
this.page = 1
// console.log(this.value)
this.ShopSearch()
},
methods: {
scroll: function(e) {
this.old.scrollTop = e.detail.scrollTop; // 必要
},
// 动态设置导航栏搜索框内容
setNavSearchInput(keyword) {
// #ifdef APP-PLUS
@@ -163,6 +173,7 @@ export default {
page: this.page
})
this.timer = true;
console.log(JSON.stringify(res))
if(res.errCode == 0) {
if(load == 'reload') this.goodsList = res.data.list;
else if(load == 'loadmore') this.goodsList.push(...res.data.list);
@@ -203,13 +214,14 @@ export default {
},
switchCurrent(current) {
// if(current == 1 && this.current == 1) this.priceOrderAsc = !this.priceOrderAsc;
this.page = 1;
this.current = current;
this.goodsList = []
this.ShopSearch()
},
setViewHeight() {
const res = uni.getSystemInfoSync();
this.scrollHeight = res.windowHeight - res.windowWidth / 750 * 90 + 'px';
this.scrollHeight = res.windowHeight - res.windowWidth / 750 * 92 + 'px';
},
toDetailsPage(id) {
this.$u.route('/pageC/merchant/index', {
@@ -231,10 +243,11 @@ export default {
box-sizing: border-box;
padding: 30rpx 40rpx;
display: flex;
margin-bottom: 30rpx;
// margin-bottom: 30rpx;
height: 92rpx;
> view {
height: 30rpx;
line-height: 30rpx;
line-height: 1;
flex: 1;
font-size: 32rpx;
color: rgba(51,51,51,1);

View File

@@ -11,12 +11,15 @@
</view>
<view class="evaluation" :class="{ 'current' : current == 2 }" @click="switchCurrent(2)">好评</view>
</view>
<scroll-view scroll-y class="goods-container" :style="{ height: scrollHeight }" @scrolltolower="loadMore">
<scroll-view scroll-y class="goods-container" :style="{ height: scrollHeight }" @scrolltolower="loadMore" :scroll-top="scrollTop" @scroll="scroll">
<view v-for="goods in goodsList" :key="goods.goods_id" class="goods-item" @click="toDetailsPage(goods.goods_id)">
<image :src="goods.goods_image"></image>
<view class="right">
<view class="name u-line-1">{{ goods.goods_name }}</view>
<view class="briefing u-line-2">{{ goods.goods_advword }}</view>
<view class="briefing u-line-1">{{ goods.goods_advword }}</view>
<view class="price">{{ goods.goods_price }}
<text style="font-size:22rpx;color:#999;text-decoration:line-through;display: inline-block;margin-left:20rpx"> {{goods.goods_marketprice}}</text>
</view>
</view>
</view>
<u-loadmore :status="loadStatus" bgColor="#FFFFFF" margin-top="20" margin-bottom="20" v-if="goodsList.length >= pageSize"></u-loadmore>
@@ -37,7 +40,12 @@ export default {
scrollHeight: '',
loadStatus: 'loadmore',
timer: true, // 防止上拉加载短时间内多次调用,
value:""
value:"",
scrollTop: 0,
old: {
scrollTop: 0
},
sid:''
}
},
watch: {
@@ -52,14 +60,21 @@ export default {
},
onLoad(option) {
this.value = option.value
this.sid = option.sid
this.setViewHeight();
this.ShopSearch()
this.setNavSearchInput(this.value);
},
onNavigationBarSearchInputConfirmed(value) {
this.value = value.text
this.page = 1
this.ShopSearch()
},
methods: {
scroll: function(e) {
this.old.scrollTop = e.detail.scrollTop; // 必要
},
setNavSearchInput(keyword) {
console.log(keyword);
// #ifdef APP-PLUS
@@ -95,18 +110,21 @@ export default {
// 排序方式 goods_salenum销量 evaluation_count评价 goods_price_asc价格从低到高 goods_price_desc价格从高到低
async ShopSearch({ load = 'reload' } = {}) {
console.log(this.value);
this.setNavSearchInput(this.value);
console.log(this.sid)
const sort = this.setOrderSort();
const res = await this.$u.api.ShopSearch({
keyword: this.value,
page: this.page,
order: sort,
sid:this.sid
})
this.timer = true;
if(res.errCode == 0) {
if(load == 'reload') this.goodsList = res.data.data;
else if(load == 'loadmore') this.goodsList.push(...res.data.data);
}
console.log(res)
return res.data.data.length;
},
loadMore() {
@@ -127,13 +145,18 @@ export default {
})
},
switchCurrent(current) {
this.ShopSearch()
this.page = 1
if(current == 1 && this.current == 1) this.priceOrderAsc = !this.priceOrderAsc;
this.scrollTop = this.old.scrollTop
this.$nextTick(function() {
this.scrollTop = 0
});
this.ShopSearch()
this.current = current;
},
setViewHeight() {
const res = uni.getSystemInfoSync();
this.scrollHeight = res.windowHeight - res.windowWidth / 750 * 90 + 'px';
this.scrollHeight = res.windowHeight - res.windowWidth / 750 * 92 + 'px';
},
toDetailsPage(id) {
this.$u.route('/pageB/sdetails/index', {
@@ -144,15 +167,17 @@ export default {
};
</script>
<style lang="scss" scoped>
.classify-goods {
.tab-container {
box-sizing: border-box;
padding: 30rpx 40rpx;
display: flex;
margin-bottom: 30rpx;
// margin-bottom: 30rpx;
height: 92rpx;
> view {
height: 30rpx;
line-height: 30rpx;
line-height: 1;
flex: 1;
font-size: 32rpx;
color: rgba(51,51,51,1);
@@ -197,15 +222,21 @@ export default {
}
.right {
width: 418rpx;
height: 200rpx;
display: flex;
flex-direction: column;
justify-content: space-around;
.name {
font-size: 30rpx;
color: rgba(51,51,51,1);
margin-bottom: 20rpx;
}
.briefing {
font-size: 28rpx;
color: rgba(102,102,102,1);
line-height: 42rpx;
}
.price {
font-size: 26rpx;
color: rgba(255,49,49,1);
}
}
}

33
pageB/tipsinfo/index.vue Normal file
View File

@@ -0,0 +1,33 @@
<template>
<view class="u-content">
<u-parse :html="info"></u-parse>
</view>
</template>
<style lang="scss" scoped>
.u-content{
line-height: 46rpx;
font-size: 30rpx;
color: #333;
padding: 30rpx;
}
</style>
<script>
export default {
data(){
return {
info:""
}
},
onLoad(o){
console.log(o.id)
this.$u.api.tipsinfo({document_code:o.id}).then((res)=>{
console.log(JSON.stringify(res))
uni.setNavigationBarTitle({
title: res.data.document_title
});
this.info = res.data.document_content
})
}
}
</script>

View File

@@ -139,7 +139,7 @@ export default {
goods_id: this.goodsInfo.goods_id,
num: this.number,
store_id: this.store.store_id,
appointment_time: new Date(this.time),
appointment_time: Math.floor(new Date(this.time).getTime() / 1000),
}).then(res => {
if (res.errCode == 0) {
this.$refs.uToast.show({

View File

@@ -1,74 +1,141 @@
<template>
<view>
<view class="container">
<video id="videoId" :style="videoSize" :src="src" autoplay="true" :show-fullscreen-btn="false" @play="playing"
@timeupdate="timeupdate" :show-play-btn="false" controls="false" @click="stoping" :enable-progress-gesture="false"></video>
<cover-image class="close" @click="goBack" src="../../static/close.png">
</cover-image>
<cover-image class="pause" @click="stoping" src="../../static/videoPlay.png" v-if="!is_play">
</cover-image>
@pause="pausing" @ended="videoEnd" @timeupdate="timeupdate" :show-play-btn="false" :controls="false" @click="stoping"
:enable-progress-gesture="false" :show-center-play-btn="false"></video>
<!-- 用户操作 -->
<userinfo class="user-info" :list="list" :cart="cart_type" :comment="is_comment" :num="comment_num" @openCart="openPopup"></userinfo>
<cover-view class="info-box" @click="stopClick">>
<view class="video-info-box">
<userinfo class="user-info" :style="{ top: fixTop }" :list="list" :cart="cart_type" :comment="is_comment" :num="comment_num"
@openCart="openPopup"></userinfo>
<!-- 视频信息 -->
<cover-view class="info-box">
<view class="video-info-box" :style="{ width: time_count > 99 ? '180rpx' : '160rpx' }">
<image class="image-play" src="../../static/videoIcon.png" mode=""></image>
<text class="video-slip">视频</text>
<text class="time">{{ time_count == 1 ? 0 : time_count }}s</text>
<text class="time">{{ time_count }}s</text>
</view>
<view>
<text class="name">@{{ list.member_nickname }}</text>
<text class="name" @click="gotoInfo(list)">@{{ list.member_nickname }}</text>
</view>
<view>
<view @click="stopClick">
<text class="title">{{ list.article_title }}</text>
</view>
<view>
<view @click="stopClick">
<text class="centent">{{ list.article_content }}</text>
</view>
<view class="label-box">
<view class="label-box" @click="stopClick">
<block v-for="(item,index) in list.label" :key="index">
<text class="label" :style="{ width: labelLen[index] * 40 + 'rpx' }">{{ item.name }}</text>
</block>
</view>
</cover-view>
<cover-view class="content-box" v-if="is_comment">
<view class="content-title">
<text class="tips">评论</text>
<text class="close-down" @click="closeComment">×</text>
<!-- 单个商品 -->
<cover-view class="good-one" :style="{ bottom: fixTop - 100 }" v-if="cart_len == 1 && cart_type">
<view class="one-list" v-for="(item,index) in list.goods" :key="index" @click="goGoodInfo(item.goods_id)">
<image class="one-image" :src="item.goods_image" mode=""></image>
<view class="one-box">
<text class="title-one">{{ item.goods_advword }}</text>
<text class="content-one">{{ item.goods_name }}</text>
<text class="good-price">¥{{ item.goods_promotion_price }}</text>
</view>
</view>
<scroller class="comment-list">
<view class="" v-for="(item,index) in commentList" :key="index">
<view class="comment-list-box">
<view class="comment-list-header">
<image class="avatar" :src="item.member_avatar" mode=""></image>
<view>
<text class="comment-title">{{ item.member_nickname }}</text>
<text class="comment-time">{{ item.create_time }}</text>
</cover-view>
<!-- 遮罩层 -->
<cover-view class="mask" @click.stop="stopClick" :style="videoSize" v-if="is_edit || is_comment || cart_type && cart_len >= 2">
<!-- 评论 -->
<cover-view class="content-box" v-if="is_comment" ref="contentBox">
<view class="content-title">
<text class="tips">评论</text>
<text class="close-down" @click="closeComment">×</text>
</view>
<scroller class="comment-list">
<view class="" v-for="(item,index) in commentList" :key="index">
<view class="comment-list-box">
<view class="comment-list-header">
<image class="avatar" :src="item.member_avatar" mode=""></image>
<view class="comment-title-info">
<text class="comment-title">{{ item.member_nickname }}</text>
<text class="comment-time">{{ item.create_time }}</text>
</view>
</view>
<text class="reply" @click="openKeyInput(item,index)">回复</text>
</view>
<view class="content-main">
<text class="content-style">{{ item.content }}</text>
</view>
<view class="more-content-box">
<view class="child-box" v-for="(child,cid) in allList[item.id]" :key="cid">
<view class="child-info">
<image class="child-avatar" :src="child.member_avatar" mode=""></image>
<text class="child-name">{{ child.member_nickname }}</text>
<text v-if="0">{{ child.reply_member_nickname }}</text>
</view>
<text class="child_content">{{ child.content }}</text>
</view>
<!-- <view> -->
<text class="more-comment" @click="getReplyList(item.id)" v-if="item.reply_count">
{{ child_end[item.id] ? "暂无更多回复" : "展开更多回复" }}
</text>
<!-- </view> -->
</view>
</view>
<view class="send-box" @click="openKeyInput">
<input class="send-val" type="text" :placeholder="edit_text" placeholder-class="placeholder-class"
disabled="true" @click="openKeyInput" />
<text class="btn-send">发送</text>
</view>
<loading class="loading" @loading="onloading" :display="loadinging ? 'show' : 'hide'">
<loading-indicator class="indicator"></loading-indicator>
<text class="indicator-text">努力加载中</text>
</loading>
</scroller>
</cover-view>
<!-- 评论框 -->
<cover-view class="edit-box" :style="videoSize" v-if="is_edit" @click="hideEdit">
<view class="input-main">
<input class="edit-input" type="text" :focus="is_focus" :placeholder=" edit_text_other ? edit_text_other : edit_text"
placeholder-class="placeholder-class" v-model="send_value" />
<text class="btn-send" @click="sendComment">发送</text>
</view>
<!-- <view class="key-height" :style="{ height: editTop }"></view> -->
</cover-view>
<!-- 购物车 -->
<cover-view class="cart-box" v-if="cart_type">
<view class="cart-title">
<text class="tips">全部商品</text>
<text class="close-down" @click="cart_type = false">×</text>
</view>
<scroller class="cart-list">
<view class="" v-for="(item,index) in list.goods" :key="index">
<view class="cart-list-header" @click="goGoodInfo(item.goods_id)">
<image class="goods-img" :src="item.goods_image" mode=""></image>
<view class="goods-info">
<text class="good-title">{{ item.goods_advword }}</text>
<text class="good-name">{{ item.goods_name }}</text>
<text class="good-price">{{ item.goods_promotion_price }}</text>
</view>
</view>
<text class="reply">回复</text>
</view>
<view class="content-main">
<text class="content-style">{{ item.content }}</text>
</view>
</view>
<view class="send-box">
<input class="send-val" type="text" value="" />
<text class="btn-send">发送</text>
</view>
<loading class="loading" @loading="onloading" :display="loadinging ? 'show' : 'hide'">
<loading-indicator class="indicator"></loading-indicator>
<text class="indicator-text">努力加载中</text>
</loading>
</scroller>
<loading v-if="0" class="loading" @loading="onloading" :display="loadinging ? 'show' : 'hide'">
<loading-indicator class="indicator"></loading-indicator>
<text class="indicator-text">努力加载中</text>
</loading>
</scroller>
</cover-view>
</cover-view>
<!-- 返回按钮 -->
<cover-image class="close" @click="goBack" src="../../static/close.png">
</cover-image>
<!-- 暂停按钮 -->
<cover-view class="pause" :style="{ top: fixTop + 100 }">
<cover-image class="pause-img" src="../../static/videoPlay.png" @click="stoping" v-if="!is_play">
</cover-image>
</cover-view>
<list class="cart-box">
<cell></cell>
</list>
</view>
</template>
<script>
import userinfo from "../components/userinfo/index" // 点赞组件
const temp_url = "https://dmmall.sdbairui.com/api/";
const temp_url = "https://mall.dmygkeji.com/api/";
export default {
components: {
userinfo
@@ -76,29 +143,66 @@
data() {
return {
videoSize: {},
fixTop: 0,
editTop: 0,
list: {},
labelLen: [],
cart_len: 0, // 购物车个数
cart_type: false, // 显示购物车
is_comment: false, // 显示评论
is_edit: false, // 显示输入
is_focus: false, //
comment_num: 0, // 评论数
edit_text: "有爱评论,说点好听的 ~",
edit_text_other: "有爱评论,说点好听的 ~",
pid: 0, // 主键
reply_id: 0, // 回复id
allList: {}, // 全部子评论
page_: {},
page: 0,
comment_id: 0,
send_value: "", // 评论
commentList: [], // 评论列表
src: "",
is_play: true,
time_count: 0,
linear: null,
loadinging: false,
child_end: {},
};
},
onLoad(option) {
this.article_id = option.id;
this.getVideoInfo(option.id);
this.getInfo();
this.allList = {};
},
onReady() {
this.videoBox = uni.createVideoContext("videoId", this);
},
onHide() {
if (uni.getSystemInfoSync().platform == "ios") {
console.log("ios");
} else if (uni.getSystemInfoSync().platform == "android") {
this.videoBox.pause();
}
},
onBackPress() {
if (this.cart_type) {
this.cart_type = !this.cart_type;
} else if (this.is_edit) {
this.is_edit = !this.is_edit;
} else if (this.is_comment) {
this.is_comment = !this.is_comment;
} else {
return false;
}
return true;
},
methods: {
moveHandle() {
return false;
},
// 获取信息
getVideoInfo(article_id) {
uni.request({
@@ -113,6 +217,8 @@
success: (res) => {
this.list = res.data.data.info;
this.src = res.data.data.info.video_path;
this.cart_len = res.data.data.info.goods.length;
console.log(this.cart_len);
let item = res.data.data.info.label;
let arr = [];
item.forEach(data => {
@@ -139,40 +245,118 @@
},
success: (res) => {
if (res.data.errCode == 0) {
console.log(res.data);
// console.log(res.data);
this.commentList = res.data.data;
}
let list = this.commentList;
list.forEach((item,index) => {
console.log(item);
item.page = 0;
item.commentList = [];
this.page_[item.id] = 0;
this.child_end[item.id] = false;
})
console.log(list);
this.commentList = list;
}
})
},
// 发布评论
sendComment() {
if (this.send_value.length == 0) {
this.$u.toast("内容不能为空!");
return;
}
uni.request({
url: temp_url + "article/articleAddComment",
method: "POST",
data: {
article_id: this.article_id,
content: this.send_value,
pid: this.pid,
reply_id: this.reply_id,
},
success: (res) => {
if (res.data.errCode == 0) {
this.send_value = "";
this.comment_num = res.data.num;
console.log(res.data);
} else {
uni.showToast({
title: res.data.message,
icon: "none"
})
}
}
})
sendComment() {
console.log(this.article_id, this.send_value, this.pid, this.reply_id);
if (this.send_value.length == 0) {
uni.showToast({
title: "输入内容不能为空!",
icon: "none"
})
return;
}
uni.request({
url: temp_url + "article/articleAddComment",
method: "POST",
data: {
article_id: this.article_id,
content: this.send_value,
pid: this.pid,
reply_id: this.reply_id,
},
header: {
Authorization: 'Bearer' + ' ' + uni.getStorageSync('token')
},
success: (res) => {
console.log(res);
this.is_edit = false;
this.send_value = "";
if (res.data.errCode == 0) {
this.comment_num = res.data.num;
let p_id = res.data.data.data.pid;
console.log(this.pid, this.reply_id, this.comment_id);
if (res.data.data.data.pid) {
this.commentList[this.comment_id].reply_count = true;
console.log(this.allList[p_id]);
if (this.allList[p_id]) {
this.allList[p_id].push(res.data.data.data);
} else {
this.allList[p_id] = [];
this.allList[p_id].push(res.data.data.data);
}
console.log(this.allList);
} else {
this.commentList.unshift(res.data.data.data);
}
// console.log(this.commentList);
} else if (res.data.errCode == 401) {
uni.showToast({
title: "您还没有登录,请先登录!",
icon: "none",
// success: () => {
// setTimeout(function() {
// this.$u.route("/pageA/login/login")
// }, 2000)
// }
})
} else {
uni.showToast({
title: res.data.message,
icon: "none"
})
}
}
})
},
// 发现回复列表
getReplyList(id) {
uni.showLoading({
title: "loading..."
})
uni.request({
url: temp_url + "article/articleReplyList",
method: "POST",
data: {
id: id,
page: this.page_[id],
},
header: {
Authorization: 'Bearer' + ' ' + uni.getStorageSync('token')
},
success: (res) => {
uni.hideLoading();
console.log(this.page_);
if (res.data.errCode == 0) {
if (this.page_[id] == 0) {
this.allList[id] = res.data.data;
} else {
this.allList[id] = this.allList[id].concat(res.data.data);
}
this.page_[id]++;
this.$forceUpdate();
} else if (res.data.errCode == 1) {
this.child_end[id] = true;
this.$forceUpdate();
}
console.log(this.allList);
}
})
},
// 获取手机信息
getInfo() {
@@ -180,8 +364,9 @@
success: (res) => {
this.videoSize = {
width: "750rpx",
height: res.screenHeight + "px"
height: res.screenHeight + "px",
}
this.fixTop = res.screenHeight / 3;
}
})
},
@@ -190,6 +375,19 @@
// console.log(e);
if (e.type == "play") {}
},
pausing(e) {
if (e.type == "pause") {
this.is_play = false;
}
},
// 结束
videoEnd(e) {
// console.log(e);
if (e.type == "ended") {
this.is_play = false;
this.time_count = 0;
}
},
// 暂停
stoping() {
this.is_play = !this.is_play;
@@ -202,8 +400,9 @@
// 监听视频
timeupdate(e) {
this.time_count = parseInt(e.detail.duration) - parseInt(e.detail.currentTime);
// console.log(e.detail.currentTime,e.detail.duration);
if (e.detail.duration == e.detail.currentTime) {
this.is_play = false;
// this.is_play = false;
}
// let num = parseInt((e.detail.currentTime/e.detail.duration)*100);
// this.linear = num + "%";
@@ -211,17 +410,59 @@
},
// 打开弹窗
openPopup(data) {
console.log(data);
// console.log(data);
if (this.cart_len >= 2) {
}
this.cart_type = data.cart;
this.is_comment = data.comment;
if (this.is_comment) {
this.page = 0;
this.getComment();
// this.is_play = true;
}
},
// 打开评论输入
openKeyInput(data, index) {
// console.log(data);
let me = this;
this.is_focus = true;
setTimeout(() => {
this.is_edit = true;
}, 500)
uni.onKeyboardHeightChange(function(res) {
console.log(res);
if (res.height == 0) {
me.is_focus = false;
me.is_edit = false;
} else {
me.editTop = res.height + "rpx";
}
})
this.comment_id = index;
if (data.id) {
this.edit_text_other = "回复@" + data.member_nickname;
this.pid = data.id;
this.reply_id = data.member_id;
} else {
this.edit_text_other = "有爱评论,说点好听的 ~";
this.pid = "";
this.reply_id = "";
}
// console.log(this.pid, this.edit_text_other);
},
blue() {
this.is_focus = false;
},
// 关闭评论
closeComment() {
this.is_comment = false;
this.is_edit = false;
// console.log(this.is_comment,this.is_play);
// if (!this.is_comment && this.is_play) {
// console.log(1);
// this.is_play = false;
// }
},
// 下拉加载
onloading(e) {
@@ -231,6 +472,17 @@
this.loadinging = false;
}, 2000)
},
// 跳转
goGoodInfo(id) {
uni.navigateTo({
url: "/pageB/sdetails/index?id=" + id + "&type=" + 1,
})
},
gotoInfo(id) {
console.log(id);
},
// 收起键盘
hideEdit() {},
// stop
stopClick(event) {
event.stopPropagation();
@@ -245,29 +497,45 @@
</script>
<style>
.container {
position: relative;
}
/* 关闭 */
.close {
z-index: 99;
position: fixed;
top: 80rpx;
right: 60rpx;
top: 100rpx;
right: 70rpx;
width: 30rpx;
height: 30rpx;
}
/* 暂停 */
.pause {
z-index: 99;
position: fixed;
top: 600rpx;
left: 330rpx;
width: 100rpx;
height: 100rpx;
/* #ifdef H5 */
top: 500rpx;
/* #endif */
}
.pause-img {
width: 100rpx;
height: 100rpx;
}
/* 用户操作 */
.user-info {
position: fixed;
top: 360rpx;
right: 30rpx;
right: 26rpx;
/* #ifdef H5 */
top: 400rpx;
/* #endif */
}
/* 底部信息 */
@@ -281,7 +549,6 @@
.video-info-box {
flex-direction: row;
align-items: center;
width: 160rpx;
height: 40rpx;
padding: 4rpx 10rpx;
margin-bottom: 20rpx;
@@ -290,13 +557,63 @@
background-color: rgba(255, 255, 255, .6);
}
.good-one {
position: fixed;
right: 160rpx;
width: 420rpx;
padding: 20rpx;
border-radius: 10rpx;
background-color: rgba(0, 0, 0, 0.6);
}
.one-list {
flex-direction: row;
}
.one-image {
width: 160rpx;
height: 160rpx;
margin-right: 20rpx;
border-radius: 4rpx;
}
.one-box {
justify-content: space-around;
color: #333;
}
.title-one {
width: 200rpx;
font-size: 28rpx;
color: #fff;
lines: 1;
text-overflow: ellipsis;
}
.content-one {
width: 200rpx;
font-size: 24rpx;
color: #fff;
lines: 2;
text-overflow: ellipsis;
}
.mask {
z-index: 10000;
position: fixed;
top: 0;
left: 0;
background-color: rgba(0, 0, 0, 0.5);
}
.content-box {
z-index: 99;
z-index: 999;
position: fixed;
bottom: 0;
left: 0;
width: 750rpx;
height: 700rpx;
padding-bottom: 50rpx;
margin-bottom: 88rpx;
background-color: #fff;
}
@@ -315,24 +632,64 @@
}
.comment-list-box {
padding: 30rpx;
padding: 20rpx 30rpx;
flex-direction: row;
align-items: center;
justify-content: space-between;
}
.content-main {
flex-direction: row;
padding-left: 100rpx;
}
.content-style {
width: 600rpx;
font-size: 26rpx;
font-size: 28rpx;
color: #333;
lines: 2;
}
.more-content-box {
margin-left: 100rpx;
}
.child-box {}
.child-info {
margin: 10rpx 0;
flex-direction: row;
align-items: center;
}
.child-avatar {
width: 30rpx;
height: 30rpx;
margin-right: 10rpx;
border-radius: 50%;
}
.child-name {
font-size: 22rpx;
color: #333;
}
.child_content {
width: 550rpx;
padding-top: 6rpx;
margin-left: 40rpx;
font-size: 26rpx;
}
.more-comment {
width: 150rpx;
height: 40rpx;
font-size: 22rpx;
line-height: 4;
color: #999;
}
.comment-list-header {
flex-direction: row;
}
@@ -343,6 +700,10 @@
margin-right: 20rpx;
border-radius: 50%;
}
.comment-title-info {
justify-content: space-between;
}
.comment-title {
font-size: 26rpx;
@@ -360,6 +721,7 @@
font-weight: 500;
color: #333;
}
.send-box {
z-index: 10000;
position: fixed;
@@ -375,24 +737,128 @@
border-color: #ececec;
background-color: #fff;
}
.send-val {
width: 600rpx;
height: 88rpx;
font-size: 36rpx;
}
.btn-send {
font-size: 30rpx;
color: #303133;
padding: 0 20rpx;
font-size: 28rpx;
color: #666;
}
.close-down {
padding: 10rpx;
font-size: 50rpx;
text-align: center;
color: #333;
}
.edit-box {
z-index: 1000;
position: fixed;
bottom: 0;
left: 0;
width: 750rpx;
background-color: rgba(0, 0, 0, 0.8);
}
.input-main {
position: fixed;
left: 0;
bottom: 0;
/* #ifdef H5 */
display: flex;
/* #endif */
flex-direction: row;
align-items: center;
justify-content: space-between;
width: 750rpx;
padding: 0 20rpx;
line-height: 80rpx;
background-color: #fff;
border-top-right-radius: 10rpx;
border-top-left-radius: 10rpx;
}
.key-height {
width: 750rpx;
background-color: #fff;
}
.edit-input {
width: 600rpx;
height: 80rpx;
padding: 0 10rpx;
font-size: 24rpx;
color: #333;
}
.cart-box {
z-index: 1000;
position: fixed;
bottom: 0;
left: 0;
width: 750rpx;
height: 700rpx;
background-color: #fff;
}
.cart-title {
flex-direction: row;
align-items: center;
justify-content: space-between;
height: 88rpx;
padding: 0 20rpx;
border-color: #f2f2f2;
border-bottom-width: 1rpx;
background-color: #fff;
}
.cart-list {}
.cart-list-header {
padding: 20rpx;
flex-direction: row;
border-bottom-width: 1rpx;
border-bottom-color: #ececec;
}
.goods-img {
width: 160rpx;
height: 160rpx;
border-radius: 10rpx;
margin-right: 20rpx;
}
.goods-info {
justify-content: space-around;
}
.good-title {
width: 500rpx;
color: #333;
font-size: 30rpx;
lines: 1;
text-overflow: ellipsis;
}
.good-name {
width: 500rpx;
font-size: 24rpx;
line-height: 30rpx;
lines: 2;
text-overflow: ellipsis;
}
.good-price {
font-size: 28rpx;
color: #FF3131;
}
.image-play {
width: 22rpx;
height: 20rpx;
@@ -417,13 +883,16 @@
}
.title {
width: 700rpx;
color: #fff;
font-size: 26rpx;
font-size: 30rpx;
margin-bottom: 20rpx;
lines: 1;
text-overflow: ellipsis;
}
.centent {
width: 500rpx;
width: 700rpx;
color: #fff;
font-size: 28rpx;
margin-bottom: 20rpx;
@@ -436,7 +905,6 @@
}
.label {
lines: 3;
width: 100rpx;
height: 40rpx;
padding: 4rpx 10rpx;
@@ -444,6 +912,7 @@
margin-bottom: 10rpx;
font-size: 26rpx;
text-align: center;
line-height: 38rpx;
color: #666666;
border-radius: 10rpx;
background-color: rgba(255, 255, 255, .6);
@@ -467,4 +936,9 @@
height: 30rpx;
color: #999;
}
.placeholder-class {
font-size: 13px;
color: #666;
}
</style>

View File

@@ -26,7 +26,7 @@
<view class="info">
<view class="name u-line-2">{{ goods.goods_name }}</view>
<view class="cart-info">
<view class="price">{{ goods.goods_total }}</view>
<view class="price">{{ goods.goods_price }}</view>
<view>×{{ goods.goods_num }}</view>
</view>
</view>
@@ -34,20 +34,29 @@
</view>
</view>
<view class="order-info">
<view @click="showCoupon({type: 2, store_id: item[0].store_id})" v-if="orderType == 1 || orderType == 5">
<view class="show-view" @click="showCoupon({type: 2, store_id: item[0].store_id})" v-if="orderType == 1 || orderType == 5">
<view class="title">优惠券折扣</view>
<view class="value">
<view>-{{ storeCoupon[item[0].store_id] ? storeCoupon[item[0].store_id].voucher_price.toFixed(2) : '0.00' }}</view>
<image src="../static/image/1.png"></image>
</view>
</view>
<view>
<view class="show-view">
<view class="title">运费</view>
<view class="value">
<view v-if="freight">{{ freight | setFreight(index) }}</view>
</view>
</view>
<view class="remark">
<view class="title">订单备注</view>
<u-input v-model="remark[index]" type="textarea" style="margin-top:-5rpx" :height="88" placeholder="选填" />
</view>
</view>
<view class="pick-up" v-if="delivery.type == 3">
<view class="title">自提地址</view>
<view class="content">{{ orderInfo.store_list[index].store_address }}</view>
</view>
<view class="store-total">{{ item | getTotalNum }} 小计<text>{{ orderInfo.store_goods_total[index] | getStorePrice(storeCoupon, index) }}</text></view>
</view>
</view>
<view class="common-active">
@@ -65,19 +74,27 @@
<image src="../static/image/1.png"></image>
</view>
</view>
<view>
<view class="title">开具发票</view>
<view class="value" @click="selectInvoice">
<view class="invoice" v-if="!hasInvoice">本次不开具发票</view>
<view class="invoice" v-else>{{ hasInvoice == 1 ? '个人或事业单位发票' : '企业发票' }}</view>
<image src="../static/image/1.png"></image>
</view>
</view>
</view>
<u-popup v-model="couponStatus" mode="bottom">
<scroll-view class="coupon-choose" scroll-y style="height: 800rpx;" v-if="this.couponType.type == 1">
<scroll-view class="coupon-choose" scroll-y style="height: 50vh;" v-if="this.couponType.type == 1">
<view class="title">优惠券详情</view>
<view class="text">平台优惠券</view>
<Coupon :couponInfo="coupon" @use="useCoupon($event)" :goodsClass="goodsClass" v-for="(coupon, index) in orderInfo.store_voucher_all_list" :key="index"></Coupon>
<u-empty text="无可用优惠券" mode="coupon" v-if="!orderInfo.store_voucher_all_list.length"></u-empty>
<Coupon :couponInfo="coupon" @use="useCoupon($event)" :goodsClass="goodsClass" v-for="(coupon, index) in orderInfo.store_voucher_all_list" :key="index" :type="true" :sel="coupon.sel"></Coupon>
<u-empty text="无可用优惠券" mode="coupon" v-if="!orderInfo.store_voucher_all_list.length" style="height: 200rpx"></u-empty>
</scroll-view>
<scroll-view class="coupon-choose" scroll-y style="height: 800rpx;" v-if="this.couponType.type == 2">
<scroll-view class="coupon-choose" scroll-y style="height: 50vh;" v-if="this.couponType.type == 2">
<view class="title">优惠券详情</view>
<view class="text">店铺优惠券</view>
<Coupon :couponInfo="coupon" @use="useCoupon($event)" :goodsClass="goodsClass" v-for="(coupon, index) in orderInfo.store_voucher_list[this.couponType.store_id]" :key="index"></Coupon>
<u-empty text="无可用优惠券" mode="coupon" v-if="!orderInfo.store_voucher_list[this.couponType.store_id].length"></u-empty>
<Coupon :couponInfo="coupon" @use="useCoupon($event)" :goodsClass="goodsClass" v-for="(coupon, index) in orderInfo.store_voucher_list[this.couponType.store_id]" :key="index" :type="true" :sel="coupon.sel"></Coupon>
<u-empty text="无可用优惠券" mode="coupon" v-if="!orderInfo.store_voucher_list[this.couponType.store_id].length" style="height: 200rpx"></u-empty>
</scroll-view>
</u-popup>
<view class="bottom">
@@ -107,13 +124,23 @@ export default {
deliveryList: [{
text: '快递',
value: 'express',
disabled: false,
type: 1,
}, {
text: '骑手',
value: 'takeawayer',
disabled: false,
type: 2,
}, {
text: '自提',
value: 'selfraising',
disabled: false,
type: 3,
}],
delivery: {
text: '快递',
value: 'express',
type: 1,
}, // 配送方式
couponList: [],
couponStatus: false,
@@ -123,12 +150,35 @@ export default {
goodsClass: [],
orderType: '', // 订单类型 1 普通订单 2 拼团订单 3 秒杀订单 4 优惠券 5 购物车订单
debounce: true,
hasInvoice: 0,
remark: {}
}
},
components: {
Coupon
},
filters: {
// 店铺总数量
getTotalNum(data, coupon) {
let num = 0;
data.forEach(item => {
num += item.goods_num;
})
return num;
},
// 店铺总金额
getStorePrice(price, coupon, index) {
for (const key in coupon) {
if (coupon.hasOwnProperty(key)) {
const element = coupon[key];
if(index == key) {
price -= Number(element.voucher_price);
}
}
}
return price;
},
// 订单总数量
setTotalNumber(data) {
let num = 0;
for (const key in data) {
@@ -142,14 +192,17 @@ export default {
return num;
},
setFreight(freight, index) {
return freight[index];
return freight[index] || '0.00';
}
},
onLoad(option) {
this.orderType = this.$store.state.orderType;
this.orderInfo = this.$store.state.orderInfo;
console.log('orderType' + this.orderType);
// 判断是否可选自提
if(!this.orderInfo.is_selfraising) this.deliveryList[2].disabled = true;
// console.log('orderType' + this.orderType);
// console.log(this.orderInfo);
this.initRemark();
this.getGoodsClass();
this.setTotalPrice();
},
@@ -163,9 +216,13 @@ export default {
} else {
if(this.$store.getters.getOrderAddress) this.addressInfo = this.$store.state.orderAddress;
}
// 是否开发票
this.hasInvoice = this.$store.getters.hasInvoice;
// console.log(this.hasInvoice);
},
beforeDestroy() {
this.$store.commit('updateAddress', {});
this.$store.commit('setInvoiceInfo', {});
},
watch: {
'$store.state.orderAddress'(value) {
@@ -174,6 +231,17 @@ export default {
},
},
methods: {
initRemark() {
// 初始化备注
const obj = this.orderInfo.store_cart_list;
for (const key in obj) {
if (obj.hasOwnProperty(key)) {
const element = obj[key];
this.remark[key] = '';
}
}
console.log(this.remark);
},
// 如果有pintuangroup_headid为参团不然为开团
async withImmediate(type) {
let params = {
@@ -182,8 +250,10 @@ export default {
// console.log(this.orderInfo);
// console.log(this.$store.state.pintuangroup_headid);
if(this.orderInfo.pintuangroup_id) {
Object.assign(params, { pintuangroup_headid: this.$store.state.pintuangroup_headid });
Object.assign(params, { pintuangroup_id: this.orderInfo.pintuangroup_id });
Object.assign(params, {
pintuangroup_headid: this.$store.state.pintuangroup_headid,
pintuangroup_id: this.orderInfo.pintuangroup_id
});
}
console.log(params);
this.$u.api.withImmediate(params).then(res => {
@@ -198,6 +268,7 @@ export default {
})
},
intermediate() {
console.log(this.remark);
if(!this.debounce) return;
this.debounce = false;
if(this.orderType == 2) {
@@ -249,6 +320,9 @@ export default {
cart_id: id,
address_id: this.addressInfo.address_id,
buy_city_id: this.addressInfo.city_id,
member_deliver_type: this.delivery.type,
invoice_id: this.$store.getters.getInvoiceId, // 发票抬头ID不开票传0
pay_message: this.remark,
}
if(coupon.length) Object.assign(params, { voucher_id: coupon });
if(this.orderType == 2) {
@@ -256,16 +330,17 @@ export default {
if(this.orderInfo.pintuangroup_id) Object.assign(params, { pintuangroup_id: this.orderInfo.pintuangroup_id });
}
// console.log(params);
// return;
this.$u.api.sendOrder(params).then(res => {
if(res.errCode == 0) {
this.$u.route({
type: 'redirect',
url: '/pageC/cart/cashier',
params: {
ifcart: params.ifcart,
ifcart: ifcart,
pay_sn: res.data.pay_sn,
price: res.data.order_total_amount,
order_id: res.data.order_list[0].order_id,
order_id: res.data.order_list[0].order_id,
}
})
} else {
@@ -282,15 +357,37 @@ export default {
this.couponStatus = true;
},
useCoupon(coupon) {
if(this.couponType.type == 1) this.choiceCoupon = coupon;
// console.log(coupon)
if(this.couponType.type == 1){
this.choiceCoupon = {}
for(let i in this.orderInfo.store_voucher_all_list){
if(this.orderInfo.store_voucher_all_list[i].voucher_id == coupon.voucher_id && !this.orderInfo.store_voucher_all_list[i].sel){
this.orderInfo.store_voucher_all_list[i].sel = true
this.choiceCoupon = coupon;
}else{
this.orderInfo.store_voucher_all_list[i].sel = false
}
}
this.$forceUpdate()
}
if(this.couponType.type == 2) {
Object.assign(this.storeCoupon, {
[this.couponType.store_id]: coupon
})
this.storeCoupon = {}
for(let i in this.orderInfo.store_voucher_list[this.couponType.store_id]){
console.log(this.orderInfo.store_voucher_list[this.couponType.store_id][i])
if(this.orderInfo.store_voucher_list[this.couponType.store_id][i].voucher_id == coupon.voucher_id && !this.orderInfo.store_voucher_list[this.couponType.store_id][i].sel){
this.orderInfo.store_voucher_list[this.couponType.store_id][i].sel = true
Object.assign(this.storeCoupon, {
[this.couponType.store_id]: coupon
})
}else{
this.orderInfo.store_voucher_list[this.couponType.store_id][i].sel = false
}
}
this.$forceUpdate()
}
// console.log(this.choiceCoupon);
// console.log(this.storeCoupon);
this.couponStatus = false;
// this.couponStatus = false;
this.setTotalPrice(); // 计算总价
},
getFreight() {
@@ -309,40 +406,71 @@ export default {
},
setTotalPrice() {
const goods = this.orderInfo.store_goods_total;
// console.log(this.freight);
const freight = this.freight;
let price = 0;
// 商品价格加上运费
[goods, freight].forEach(object => {
for (const key in object) {
if (object.hasOwnProperty(key)) {
const element = object[key];
price += Number(element);
}
let [freight, price, minPrice] = [0, 0, 0];
// 运费
for(const key in this.freight) {
if(this.freight.hasOwnProperty(key)) {
const element = this.freight[key];
freight += Number(element);
}
})
// 减去优惠券
}
// 商品价格减去优惠券
// 店铺
for(const gid in goods) {
if(goods.hasOwnProperty(gid)) {
// 计算最小价格
minPrice += 0.01;
// 每个店铺所有商品的价格
let sprice = Number(goods[gid]);
if(JSON.stringify(this.storeCoupon) != '{}') {
for(const cid in this.storeCoupon) {
if(this.storeCoupon.hasOwnProperty(cid)) {
const cprice = this.storeCoupon[cid];
// 商品减去优惠券价格
if(gid == cid) {
sprice -= cprice.voucher_price;
// 每个店铺最低付款 0.01
if(sprice <= 0) sprice = 0.01;
}
}
}
}
// 所有商品总价
price += sprice;
}
}
// 平台
if(JSON.stringify(this.choiceCoupon) != '{}') price -= Number(this.choiceCoupon.voucher_price);
// 店铺
if(JSON.stringify(this.storeCoupon) != '{}') {
for (const key in this.storeCoupon) {
if (this.storeCoupon.hasOwnProperty(key)) {
const element = this.storeCoupon[key];
price -= element.voucher_price;
// 每个店铺最低付款 0.01
if(price <= minPrice) price = minPrice;
// console.log("minPrice" + minPrice);
// console.log("freight:" + freight);
// console.log("price:" + price);
this.totalPrice = (price + freight).toFixed(2);
},
async setDelivery(index) {
// console.log(index);
if(index == 1) {
if(!this.isTakeawayer) {
this.$u.toast('此地区不支持骑手配送');
return false;
}
this.delivery = this.deliveryList[index];
this.getFreight();
}
if(index == 2) {
for (const key in this.freight) {
if (this.freight.hasOwnProperty(key)) {
this.freight[key] = '0.00';
}
}
this.setTotalPrice(); // 计算总价
this.delivery = this.deliveryList[index];
}
// console.log(price);
this.totalPrice = price.toFixed(2);
},
setDelivery(index) {
if(index == 1) {
if(!this.isTakeawayer) this.$u.toast('此地区不支持骑手配送');
return false;
if(index == 0) {
this.delivery = this.deliveryList[index];
this.getFreight();
}
this.delivery = this.deliveryList[index];
this.getFreight();
},
settlement() {
uni.navigateTo({
@@ -358,7 +486,10 @@ export default {
uni.navigateTo({
url: '/pageE/more/Address?type=choose'
});
}
},
selectInvoice() {
this.$u.route('/pageC/cart/selectInvoice');
},
},
};
</script>
@@ -367,6 +498,7 @@ export default {
min-height: calc(100vh - var(--window-top));
background-color: #ECECEC;
padding-top: 1rpx;
padding-bottom: 200rpx;
.info-address {
padding: 30rpx;
display: flex;
@@ -429,7 +561,7 @@ export default {
height: 60rpx;
border-radius: 50%;
margin-right: 15rpx;
background-color: aquamarine;
// background-color: aquamarine;
}
> view {
font-size: 28rpx;
@@ -437,6 +569,7 @@ export default {
margin-right: 15rpx;
}
.right {
margin-left: auto;
flex-shrink: 0;
width: 11rpx;
height: 22rpx;
@@ -454,7 +587,7 @@ export default {
width: 180rpx;
height: 160rpx;
border-radius: 10rpx;
background-color: aqua;
// background-color: aqua;
flex-shrink: 0;
}
.info {
@@ -497,7 +630,7 @@ export default {
}
}
.order-info {
> view {
.show-view {
height: 98rpx;
background: rgba(255,255,255,1);
padding: 35rpx 30rpx;
@@ -522,11 +655,53 @@ export default {
}
}
}
.remark {
background: rgba(255,255,255,1);
padding: 35rpx 30rpx;
display: flex;
justify-content: space-between;
margin-bottom: 2rpx;
.title {
font-size: 28rpx;
color: rgba(102,102,102,1);
margin-right: 20rpx;
}
/deep/ .u-input {
font-size: 28rpx;
.u-input__textarea {
padding: 0;
}
}
}
}
.pick-up {
padding: 30rpx;
background: rgba(255,255,255,1);
.title {
font-size: 28rpx;
color: #666666;
margin-bottom: 30rpx;
}
.content {
font-size: 30rpx;
color: #343434;
line-height: 40rpx;
}
}
.store-total {
text-align: right;
padding: 34rpx 30rpx;
background: rgba(255,255,255,1);
font-size: 28rpx;
color: #656565;
> text {
color: #FF770F;
}
}
}
}
.common-active {
padding-bottom: 200rpx;
padding-bottom: 30rpx;
> view {
height: 98rpx;
background: rgba(255,255,255,1);
@@ -544,6 +719,9 @@ export default {
align-items: center;
font-size: 30rpx;
color:rgba(51,51,51,1);
.invoice {
font-size: 26rpx;
}
> image {
width: 12rpx;
height: 22rpx;

View File

@@ -3,7 +3,7 @@
<u-checkbox-group class="cart-main" @change="storeChange">
<view v-for="(store, s_index) in list" :key="s_index" class="cart-item">
<view class="store">
<u-checkbox v-model="store.checked" shape="circle" active-color="#FF780F" icon-size="35" :name="s_index" @change="storeaAloneChange"></u-checkbox>
<u-checkbox v-model="store.checked" shape="circle" active-color="#FF780F" icon-size="26" :name="s_index" @change="storeaAloneChange"></u-checkbox>
<view class="name" @click="viewStoreDetails(store.store_id)">
<image :src="store.store_avatar"></image>
<view>{{ store.store_name }}</view>
@@ -12,7 +12,7 @@
<view class="goods">
<u-checkbox-group @change="goodsChange($event, s_index)">
<view v-for="(goods, g_index) in store.goods" :key="g_index" class="goods-item">
<u-checkbox v-model="goods.checked" shape="circle" active-color="#FF780F" icon-size="35" :name="g_index"></u-checkbox>
<u-checkbox v-model="goods.checked" shape="circle" active-color="#FF780F" icon-size="26" :name="g_index"></u-checkbox>
<image :src="goods.goods_image" @click="viewGoodsDetails(goods.goods_id)"></image>
<view class="info">
<view class="name u-line-2" @click="viewGoodsDetails(goods.goods_id)">{{ goods.goods_name }}</view>
@@ -31,7 +31,7 @@
</view>
<view class="balance">
<u-checkbox-group>
<u-checkbox v-model="checkedAll" shape="circle" active-color="#FF780F" icon-size="35" label-size="30" @change="totalChange">
<u-checkbox v-model="checkedAll" shape="circle" active-color="#FF780F" icon-size="26" label-size="30" @change="totalChange">
全选
</u-checkbox>
</u-checkbox-group>
@@ -326,10 +326,13 @@ export default {
font-weight: 500;
color: rgba(255,49,49,1);
}
.u-numberbox {
/deep/ .u-numberbox {
border: 1rpx solid rgba(217,215,215,1);
border-radius:4px;
/deep/ .u-number-input {
.u-icon-minus, .u-icon-plus {
width: 38rpx;
}
.u-number-input {
margin: 0;
color: #333 !important;
border: 1rpx #D9D7D7 solid {
@@ -338,31 +341,6 @@ export default {
}
}
}
// .num {
// display: flex;
// width: 118rpx;
// height: 39rpx;
// border: 1rpx solid rgba(217,215,215,1);
// border-radius:4px;
// .reduce, .increase {
// flex: 1;
// font-size: 11rpx;
// color: #FF780F;
// line-height: 39rpx;
// text-align: center;
// }
// .value {
// flex: 1;
// font-size: 22rpx;
// color:rgba(51,51,51,1);
// line-height: 39rpx;
// text-align: center;
// border: 1rpx #D9D7D7 solid {
// top: 0px;
// bottom: 0px;
// }
// }
// }
}
}
}

View File

@@ -0,0 +1,186 @@
<template>
<view class="select-invoice">
<view class="invoice-type">
<view class="title">发票类型</view>
<u-radio-group v-model="type" @change="radioGroupChange" icon-size="0" active-color="#FF780F" size="16">
<u-radio
v-for="(item, index) in list" :key="index"
:name="item.type"
>
{{item.name}}
</u-radio>
</u-radio-group>
</view>
<view class="invoice-list" v-if="currentList.length">
<u-radio-group v-model="invoice" @change="selectInvoice" active-color="#FF780F" icon-size="22" size="30" :wrap="true">
<u-radio
v-for="(item, index) in currentList" :key="index"
:name="item.invoice_id"
>
{{ item.invoice_title }}
</u-radio>
</u-radio-group>
</view>
<view class="invoice-none" v-if="!currentList.length">您当前还未添加抬头发票,<text @click="addInvoice">点击立即添加</text></view>
<view class="btn-group">
<view class="submit" @click="submit">提交申请</view>
<view class="cancel" @click="cancel">不开发票</view>
</view>
</view>
</template>
<script>
export default {
data() {
return {
type: 1,
list: [{
type: 1,
name: '个人或事业单位'
}, {
type: 2,
name: '企业'
}],
invoice: '',
invoiceList: [],
currentList: [],
}
},
onShow() {
this.type = 1;
this.getInvoiceList();
},
watch: {
type(value) {
let invoiceList = this.invoiceList.filter(item => item.invoice_type == value);
this.currentList = invoiceList;
}
},
methods: {
getInvoiceList() {
this.$u.api.getInvoiceList().then(res => {
this.invoiceList = res.data;
this.currentList = this.invoiceList.filter(item => item.invoice_type == this.type);
// console.log(this.invoiceList);
})
},
radioGroupChange(e) {
this.type = e;
},
selectInvoice(e) {
this.invoice = e;
},
submit() {
console.log(this.invoice);
if(!this.invoice) {
this.$u.toast('请选择发票');
return false;
}
this.$store.commit('setInvoiceInfo', {
invoice_type: this.type,
invoice_id: this.invoice
});
this.$u.route({ type: 'back' });
},
cancel() {
this.$store.commit('setInvoiceInfo', {
invoice_type: 0
});
this.$u.route({ type: 'back' });
},
addInvoice() {
this.$u.route('/pageE/more/EditInvoice', { action: 1 });
},
}
};
</script>
<style lang="scss" scoped>
.select-invoice {
min-height: calc(100vh - var(--window-top));
background: #ECECEC;
padding-top: 1rpx;
.invoice-type {
height: 98rpx;
background: #FFFFFF;
margin-bottom: 2rpx;
padding: 35rpx 30rpx;
display: flex;
align-items: center;
.title {
font-size: 30rpx;
color: #333333;
width: 120rpx;
margin-right: 50rpx;
}
.u-radio-group {
flex: 1;
/deep/ .u-radio {
.u-radio__icon-wrap {
margin: 0 20rpx;
position: relative;
background-color: #DBDBDB;
&::before {
content: '';
position: absolute;
width: 29rpx;
height: 29rpx;
top: 50%;
left: 50%;
transform: translate(-50%, -50%);
border: 1rpx solid #DBDBDB;
border-radius: 50%;
}
}
.u-radio__icon-wrap--checked {
background-color: #FF780F;
&::before {
border-color: #FF780F;
}
}
}
}
}
.invoice-list {
background-color: #FFFFFF;
/deep/ .u-radio-group {
.u-radio {
padding: 30rpx;
height: 80rpx;
line-height: 1 !important;
.u-radio__icon-wrap {
margin-right: 20rpx;
}
}
}
}
.invoice-none {
text-align: center;
margin-top: 70rpx;
font-size: 26rpx;
color: #333333;
> text {
color: #FF780F;
}
}
.btn-group {
margin-top: 250rpx;
> view {
width: 690rpx;
height: 98rpx;
border-radius: 49rpx;
font-size: 36rpx;
margin: 0 auto;
line-height: 98rpx;
text-align: center;
}
.submit {
background: #FF780F;
color: #FFFFFF;
margin-bottom: 20rpx;
}
.cancel {
background: #FFFFFF;
color: #FF780F;
}
}
}
</style>

View File

@@ -1,5 +1,6 @@
<template>
<view class="classify-goods">
<u-search style="padding: 0 30rpx" placeholder="请搜索商品" v-model="keyword" @search="select" @custom="select"></u-search>
<view class="tab-container">
<view class="salenum" :class="{ 'current' : current == 0 }" @click="switchCurrent(0)">销量</view>
<view class="price" :class="{ 'current' : current == 1 }" @click="switchCurrent(1)">
@@ -16,7 +17,13 @@
<image :src="goods.goods_image"></image>
<view class="right">
<view class="name u-line-1">{{ goods.goods_name }}</view>
<view class="briefing u-line-2">{{ goods.goods_advword }}</view>
<view class="briefing u-line-1">{{ goods.goods_advword }}</view>
<!-- <view class="price">{{ goods.goods_price }}</view> -->
<view class="price">
<view class="type-tag" v-show="goods.goods_type != 1">{{ goods.goods_type == 2 ? "秒杀" : "拼团" }}</view>
<view class="present">{{ goods.goods_price }}</view>
<view class="origin">{{ goods.goods_marketprice }}</view>
</view>
</view>
</view>
<u-loadmore :status="loadStatus" bgColor="#FFFFFF" margin-top="20" margin-bottom="20" v-if="goodsList.length >= pageSize"></u-loadmore>
@@ -37,6 +44,8 @@ export default {
scrollHeight: '',
loadStatus: 'loadmore',
timer: true, // 防止上拉加载短时间内多次调用
keyword:"",
sel:""
}
},
watch: {
@@ -75,6 +84,7 @@ export default {
gc_id: this.cid,
page: this.page,
order: sort,
keyword:this.sel
})
this.timer = true;
if(res.errCode == 0) {
@@ -118,6 +128,11 @@ export default {
id: id,
type: 1 // 商品详情 商品类型 1普通 2拼团 3秒杀 4优惠券
});
},
select(){
this.sel = this.keyword;
this.page = 1;
this.goodsListByClassId({ laod: 'reload' });
}
}
};
@@ -176,15 +191,42 @@ export default {
}
.right {
width: 418rpx;
height: 200rpx;
display: flex;
flex-direction: column;
justify-content: space-around;
.name {
font-size: 30rpx;
color: rgba(51,51,51,1);
margin-bottom: 20rpx;
}
.briefing {
font-size: 28rpx;
color: rgba(102,102,102,1);
line-height: 42rpx;
}
// .price {
// font-size: 26rpx;
// color: rgba(255,49,49,1);
// }
.price {
display: flex;
align-items: center;
.type-tag {
padding: 4rpx 10rpx;
color: #fff;
font-size: 22rpx;
border-radius: 10rpx;
background-color: #FF7810;
}
.present {
font-size: 26rpx;
color: rgba(255,49,49,1);
margin-right: 20rpx;
}
.origin {
text-decoration: line-through;
font-size: 24rpx;
color: #999;
}
}
}
}

View File

@@ -1,6 +1,10 @@
<template>
<view class="listItem">
<video v-if="type == '2'" :src="url" :show-fullscreen-btn="true"></video>
<view v-if="type == '2'" class="video-container">
<image :src="url" mode="aspectFill" class="video"></image>
<view class="backs"></view>
<image src="/static/videoPlay.png" mode="aspectFill" class="play-video"></image>
</view>
<image v-else :src="url" mode="aspectFill"></image>
</view>
</template>
@@ -9,11 +13,39 @@
width: 365rpx;
height: 500rpx;
overflow: hidden;
>image,video{
> image {
width: 100%;
height: 100%;
margin-bottom: 20rpx;
}
.video-container {
width: 100%;
height: 100%;
margin-bottom: 20rpx;
position: relative;
.video {
width: 100%;
height: 100%;
}
.backs {
width: 100%;
height: 100%;
position: absolute;
top: 0;
right: 0;
background-color: rgba($color: #000000, $alpha: 0.35);
z-index: 9;
}
.play-video {
position: absolute;
width: 100rpx;
height: 100rpx;
z-index: 19;
top: 50%;
left: 50%;
transform: translate(-50%, -50%);
}
}
}
</style>
<script>
@@ -24,6 +56,6 @@ export default {
}
},
props:['url','type']
props:['url','type'],
}
</script>

View File

@@ -1,6 +1,8 @@
<template>
<view class="videoTop">
<video :src="url" :show-fullscreen-btn="true"></video>
<image :src="url" mode="aspectFill" class="video"></image>
<view class="backs"></view>
<image src="/static/videoPlay.png" mode="aspectFill" class="play-video"></image>
</view>
</template>
<style lang="scss" scoped>
@@ -8,10 +10,31 @@
width: 100%;
height: 284rpx;
margin-bottom: 20rpx;
>video{
position: relative;
.video{
position: absolute;
width: 100%;
height: 100%;
z-index: 9;
}
.backs {
width: 100%;
height: 100%;
position: absolute;
top: 0;
right: 0;
background-color: rgba(0, 0, 0, 0.35);
z-index: 9;
}
.play-video {
position: absolute;
width: 100rpx;
height: 100rpx;
z-index: 19;
top: 50%;
left: 50%;
transform: translate(-50%, -50%);
}
}
</style>
<script>
@@ -21,6 +44,6 @@ export default {
return {
}
},
props:['url']
props:['url'],
}
</script>

View File

@@ -6,12 +6,12 @@
</view>
<swiper :current="swiperCurrent" @animationfinish="animationfinish" :style="{height: swiperHeight}">
<swiper-item class="swiper-item" v-for="(_, index) in tabList" :key="index">
<scroll-view scroll-y style="width: 100%;" @scrolltolower="onreachBottom">
<scroll-view scroll-y style="width: 100%;height: 100%;" @scrolltolower="onreachBottom">
<view v-if="pinTuanList[index]">
<SpecialGoods v-for="(item, index) in pinTuanList[index]" :key="index" :item="item" type='group'></SpecialGoods>
</view>
<u-loadmore :status="loadStatus" bgColor="#FFF" margin-top="20" margin-bottom="20" v-if="!pinTuanList[index] || pinTuanList[index].length>=pageSize" @loadmore="onreachBottom"></u-loadmore>
<u-empty text="暂无商品" mode="list" color="#000" v-if="!pinTuanList[index] || !pinTuanList[index].length"></u-empty>
<u-empty text="暂无商品" mode="list" color="#000" margin-top="120" v-if="!pinTuanList[index] || !pinTuanList[index].length"></u-empty>
<u-loadmore :status="loadStatus" bgColor="#FFF" margin-top="20" margin-bottom="20" v-if="pinTuanList[index]" @loadmore="onreachBottom"></u-loadmore>
</scroll-view>
</swiper-item>
</swiper>
@@ -22,7 +22,6 @@ import SpecialGoods from "../../components/shop/special-shop/index";
export default {
data() {
return {
pageSize: 12,
tabList: [],
current: -1,
swiperCurrent: 0,
@@ -42,6 +41,7 @@ export default {
},
watch: {
current(index) {
this.page = 0;
this.getPinTuanList({ id: this.tabList[index].gc_id, load: 'reload' });
}
},
@@ -56,7 +56,7 @@ export default {
})
},
// 拼团列表
async getPinTuanList({ id, page, load }) {
async getPinTuanList({ id, load }) {
const res = await this.$u.api.getPinTuanList({
page: this.page,
gc_id: id,

View File

@@ -14,7 +14,7 @@
</view>
<scroll-view scroll-y class="scroll-container" :style="{ height: scrollHeight }" @scrolltolower="loadMore">
<view class="goods-container">
<view v-for="goods in goodsList" :key="goods.goods_id" class="goods-view" @click="toDetailsPage(goods.goods_id)">
<view v-for="goods in goodsList" :key="goods.goods_id" class="goods-view">
<goodsItem :info="goods"></goodsItem>
</view>
</view>
@@ -128,12 +128,6 @@ export default {
this.scrollHeight = res.windowHeight - (res.windowWidth / 750) * 90 + 'px';
// console.log(this.scrollHeight);
},
toDetailsPage(id) {
this.$u.route('/pageB/sdetails/index', {
id: id,
type: 1 // 商品详情 商品类型 1普通 2拼团 3秒杀 4优惠券
});
},
setTitle(title){
uni.setNavigationBarTitle({
title: title

View File

@@ -25,7 +25,7 @@
<u-icon name="arrow-down" color="#999999" size="28"></u-icon>
</view>
<view class="image-list" v-if="info.business_licence_number_electronic">
<image :src="info.business_licence_number_electronic"></image>
<image :src="info.business_licence_number_electronic" @click="previewImage(info.business_licence_number_electronic)"></image>
</view>
</view>
</view>
@@ -42,6 +42,15 @@ export default {
// console.log(res)
this.info = res.data
})
},
methods: {
previewImage(urls) {
// console.log(urls);
const imageList = [urls];
uni.previewImage({
urls: imageList,
});
},
}
};
</script>
@@ -59,7 +68,6 @@ export default {
height: 140rpx;
border-radius: 70rpx;
margin-bottom: 29rpx;
background-color: aqua;
}
.name {
font-size: 28rpx;
@@ -124,7 +132,6 @@ export default {
width: 239rpx;
height: 170rpx;
flex-shrink: 0;
background-color: aqua;
}
}
}

View File

@@ -14,11 +14,11 @@
</view>
<scroll-view scroll-y class="scroll-container" :style="{ height: scrollHeight }" @scrolltolower="loadMore">
<view class="goods-container">
<view v-for="(goods, index) in goodsList" :key="index" class="goods-view" @click="toDetailsPage(goods.goods_id)">
<view v-for="(goods, index) in goodsList" :key="index" class="goods-view">
<goodsItem :info="goods"></goodsItem>
</view>
</view>
<u-loadmore :status="loadStatus" bgColor="#FFFFFF" margin-top="20" margin-bottom="20" v-if="goodsList.length >= pageSize"></u-loadmore>
<u-loadmore :status="loadStatus" bgColor="#FFFFFF" margin-bottom="120" v-if="goodsList.length >= pageSize"></u-loadmore>
<u-empty mode="list" v-if="!goodsList.length"></u-empty>
</scroll-view>
</view>
@@ -28,7 +28,7 @@ import goodsItem from "@/components/shop/list/item"
export default {
data() {
return {
pageSize: 15,
pageSize: 5,
cid: '',
page: 1,
current: 0,
@@ -83,7 +83,7 @@ export default {
page: this.page,
order: sort,
})
this.timer = true;
// this.timer = true;
if(res.errCode == 0) {
this.pageSize = res.data.per_page;
if(load == 'reload') this.goodsList = res.data.data;
@@ -92,8 +92,8 @@ export default {
return res.data.data.length;
},
loadMore() {
if(this.goodsList.length < this.pageSize) return false;
if(!this.timer) return false;
// if(this.goodsList.length < this.pageSize) return false;
// if(!this.timer) return false;
this.loadStatus = "loading";
this.page++;
this.getStoreGoodsList({ load: 'loadmore' }).then(length => {
@@ -118,12 +118,6 @@ export default {
this.scrollHeight = res.windowHeight - (res.windowWidth / 750) * otherHeight + 'px';
// console.log(this.scrollHeight);
},
toDetailsPage(id) {
this.$u.route('/pageB/sdetails/index', {
id: id,
type: 1 // 商品详情 商品类型 1普通 2拼团 3秒杀 4优惠券
});
}
}
};
</script>

View File

@@ -14,15 +14,18 @@
<view>我的</view>
</view>
</view> -->
<view class="top" :style="{'background-image':'url(' + info.store_banner + ')'}">
<image :src="info.store_avatar"></image>
<view class="info">
<view class="name u-line-1">{{info.store_name}}</view>
<view class="num">粉丝数{{info.store_collect}}</view>
</view>
<view class="btn" @click="attentionMember">
<image src="/static/image/shop/8.png"></image>
<view>{{ info.is_attention == 0 ? "关注" : "已关注" }}</view>
<view class="top" :style="{'background':'url(' + info.store_banner + ') 100% 100% no-repeat' }">
<view class="mantle"></view>
<view class="main-container" :style="{ 'padding-top': paddingTop }">
<image :src="info.store_avatar"></image>
<view class="info">
<view class="name u-line-1">{{info.store_name}}</view>
<view class="num">粉丝数{{info.store_collect}}</view>
</view>
<view class="btn" @click="attentionMember">
<image :src="info.is_attention == 0 ? '/static/image/shop/14.png' : '/static/image/shop/8.png'"></image>
<view>{{ info.is_attention == 0 ? "关注" : "已关注" }}</view>
</view>
</view>
</view>
<view class="follow" v-if="info.attention_member && info.attention_member.length">
@@ -39,18 +42,18 @@
<view class="main">
<scroll-view class="video-image" scroll-y v-if="cur==0 && indextop.length" :style="{ height: scrollHeiht }">
<view v-for="item in indextop" :key="item.id" class="container-top">
<videoTop :url="item.article_pic" v-if="item.type == 2" @click.native="toDetailsPage(item.article_id)"></videoTop>
<imageTop v-else :url="item.article_pic" @click.native="toDetailsPage(item.article_id)"></imageTop>
<videoTop :url="item.article_pic" v-if="item.type == 2" @click.native="toDetailsPage({ id: item.article_id, type: item.type })"></videoTop>
<imageTop v-else :url="item.article_pic" @click.native="toDetailsPage({ id: item.article_id, type: item.type })"></imageTop>
</view>
<view v-if="indexlist.length" class="container-bottom">
<listitem v-for="item in indexlist" :key="item.id" :type="item.type" :url="item.article_pic" class="bottom-item" @click.native="toDetailsPage(item.article_id)"></listitem>
<listitem v-for="item in indexlist" :key="item.article_id" :type="item.type" :url="item.article_pic" class="bottom-item" @click.native="toDetailsPage({ id: item.article_id, type: item.type })"></listitem>
</view>
</scroll-view>
<view class="item" v-if="cur==1">
<goods :sid="sid"></goods>
</view>
</view>
<view class="tabbar">
<view class="tabbar" :style="safeareaStyle">
<view @click="switchCurrent(0)">
<image src="/static/image/shop/9.png"></image>
<view>商品分类</view>
@@ -88,8 +91,10 @@ export default {
indexlist: [],
indextop: [],
info: {},
page: 0,
page: 1,
scrollHeiht: '',
paddingTop: 0,
safeareaStyle: "", // 苹果底部
}
},
components:{
@@ -104,10 +109,31 @@ export default {
// this.getStoreImgVideoList();
},
onNavigationBarButtonTap(e) {
// console.log(e.index);
if(e.index == 1) this.$u.route('/pageC/cart/index');
console.log(e.index);
if(e.index == 0) this.$u.route('/pageC/cart/index');
// if(e.index == 0) this.show = true;
},
onNavigationBarSearchInputClicked() {
this.$u.route('pageB/search/index', {
type: 1,
id:this.sid
});
},
onLoad(option){
this.sid = option.id;
// console.log(this.sid);
this.getStoreInfo();
this.getArticlelist();
this.setViewHeight();
// this.getStoreImgVideoList();
// #ifdef APP-PLUS
this.device = uni.getSystemInfoSync(); // 获取信息
console.log(this.device.safeArea);
// #endif
},
onShow() {
this.cur = 0;
},
methods: {
customers(){
console.log(this.$store.state.hasLogin)
@@ -127,12 +153,12 @@ export default {
this.time = time;
this.date = date
}
console.log(123)
// console.log(123)
this.$u.api.getAtwillUserInfo({
id:this.sid
}).then((res)=>{
console.log(res)
let user = new Friend(res.data.member_id,res.data.member_nickname,res.data.member_avatar)
let user = new Friend(res.data.member_id,res.data.store_name,res.data.member_avatar)
this.$u.route({
url:"/pageD/privateChat/privateChat",
params:{
@@ -146,11 +172,10 @@ export default {
}
},
toDetailsPage(id) {
toDetailsPage({ id, type }) {
// console.log(11);
this.$u.route('pageB/photo/index', {
id: id
});
let src = type == 1 ? 'pageB/photo/index' : 'pageB/video/video';
this.$u.route(src, { id: id });
},
switchCurrent(current) {
this.cur = current;
@@ -161,7 +186,9 @@ export default {
}
},
getStoreInfo() {
// console.log(this.sid )
this.$u.api.getStoreInfo({ id: this.sid }).then((res)=>{
// console.log(JSON.stringify(res))
this.info = res.data;
uni.stopPullDownRefresh();
})
@@ -191,15 +218,17 @@ export default {
}).then(res => {
uni.stopPullDownRefresh();
if (res.errCode == 0) {
// this.articleList = res.data.list;
let articleList = res.data.list;
// articleList.unshift({}, {}, {}, {});
// articleList.push({}, {});
if(JSON.stringify(res.data) != '[]') {
if(res.data.list.length > 0) {
this.indextop = [res.data.list[0]]
if(articleList.length > 0) {
this.indextop = [articleList[0]]
// this.indextop = [res.data.list[0], res.data.list[1]];
}
if(res.data.list.length > 1) {
this.indextop.push(res.data.list[1]);
this.indexlist.push(...res.data.list.slice(2,));
if(articleList.length > 1) {
this.indextop.push(articleList[1]);
this.indexlist.push(...articleList.slice(2,));
}
}
}
@@ -207,24 +236,26 @@ export default {
},
setViewHeight() {
const res = uni.getSystemInfoSync();
this.scrollHeiht = res.windowHeight - (73 + 20 + 170) + 'px';
this.scrollHeiht = res.windowHeight - res.windowWidth / 750 * (350 + 140 + 20) + 'px';
this.paddingTop = res.windowWidth / 750 * (90 + 50) + 'px';
// console.log(this.paddingTop);
}
},
onLoad(option){
this.sid = option.id;
// console.log(this.sid);
this.getStoreInfo();
this.getArticlelist();
this.setViewHeight();
// this.getStoreImgVideoList();
}
};
</script>
<style lang="scss" scoped>
/*坑解决iphoneX等大屏手机底部小黑条挡住tab的解决方法安全区域距离底部边界距离env() 跟 constant() 需要同时存在,而且顺序不能换。*/
/* #ifdef H5 */
body {
padding-bottom: constant(safe-area-inset-bottom);/* 兼容 iOS < 11.2 */
padding-bottom: env(safe-area-inset-bottom); /* 兼容 iOS >= 11.2 */
}
/* #endif */
.merchant {
// min-height: 100vh;
background-color: #ECECEC;
padding-top: calc(350rpx - var(--window-top));
overflow: hidden;
.top {
position: fixed;
top: 0;
@@ -232,52 +263,72 @@ export default {
z-index: 9;
width: 750rpx;
height: 350rpx;
background-color: #999999;
display: flex;
align-items: center;
padding: 168rpx 60rpx 0 30rpx;
> image {
margin-right: 40rpx;
width: 140rpx;
height: 140rpx;
border-radius: 50%;
background-color: aqua;
// background-color: #999999;
.mantle {
width: 750rpx;
height: 350rpx;
position: absolute;
top: 0;
left: 0;
z-index: 10;
background-color: #999999;
opacity: 0.7;
}
.info {
width: 220rpx;
color: rgba(255,255,255,1);
.name {
margin-bottom: 30rpx;
font-size: 28rpx;
font-weight: 500;
}
.num {
font-size: 24rpx;
}
}
.btn {
margin-left: auto;
width: 162rpx;
height: 60rpx;
border: 2rpx solid rgba(255,255,255,1);
border-radius: 30rpx;
.main-container {
display: flex;
align-items: center;
justify-content: center;
// padding-top: calc(var(--status-bar-height) + 54);
padding: 0 60rpx 0 30rpx;
position: absolute;
top: 0;
left: 0;
z-index: 19;
width: 750rpx;
height: 350rpx;
> image {
width: 28rpx;
height: 28rpx;
flex-shrink: 0;
margin-right: 14rpx;
margin-right: 40rpx;
width: 140rpx;
height: 140rpx;
border-radius: 50%;
// background-color: aqua;
}
> view {
white-space: nowrap;
font-size: 26rpx;
.info {
width: 220rpx;
color: rgba(255,255,255,1);
.name {
margin-bottom: 30rpx;
font-size: 28rpx;
font-weight: 500;
}
.num {
font-size: 24rpx;
}
}
.btn {
margin-left: auto;
width: 162rpx;
height: 60rpx;
border: 2rpx solid rgba(255,255,255,1);
border-radius: 30rpx;
display: flex;
align-items: center;
justify-content: center;
> image {
width: 28rpx;
height: 28rpx;
flex-shrink: 0;
margin-right: 14rpx;
}
> view {
white-space: nowrap;
font-size: 26rpx;
color: rgba(255,255,255,1);
}
}
}
}
.follow {
height: 140rpx;
background-color: #ffffff;
width: 100%;
margin-bottom: 20rpx;
@@ -312,14 +363,14 @@ export default {
margin-right: 35rpx;
}
text-align: center;
width: 90rpx;
width: 96rpx;
> image {
width: 60rpx;
height: 60rpx;
border-radius: 50%;
flex-shrink: 0;
margin-bottom: 20rpx;
background-color: aqua;
// background-color: aqua;
}
.nickname {
font-size: 22rpx;
@@ -331,7 +382,8 @@ export default {
}
.main{
.video-image {
padding-bottom: 98rpx;
box-sizing: border-box;
padding-bottom: 100rpx;
}
.container-top {
> view {
@@ -347,21 +399,18 @@ export default {
margin-bottom: 10rpx;
}
}
// > view {
// margin-top: 20rpx;
// }
}
.tabbar {
border-top: 1rpx #DBDADA solid;
width: 100%;
height: 98rpx;
background: rgba(251,251,251,1);
display: flex;
padding: 10rpx 55rpx;
position: fixed;
bottom: 0;
left: 0;
z-index: 9;
padding: 10rpx 55rpx;
padding-bottom: env(safe-area-inset-bottom);
> view {
flex: 1;
text-align: center;

View File

@@ -12,7 +12,7 @@
<view v-for="classifyA in classifyList" :key="classifyA.gc_parent_id" class="classify-view">
<view class="title">{{ classifyA.gc_parent_name }}</view>
<view class="classifyA-view">
<view v-for="classifyB in classifyA.gc_child" :key="classifyB.gc_id" class="classifyB-item u-line-1" @click="viewGoods({ type: classifyB.gc_parent_id, name: classifyB.gc_parent_name })">{{ classifyB.gc_parent_name }}</view>
<view v-for="classifyB in classifyA.gc_child" :key="classifyB.gc_id" class="classifyB-item u-line-1" @click="viewGoods({ type: classifyB.gc_id, name: classifyB.gc_name })">{{ classifyB.gc_name }}</view>
</view>
</view>
</view>

View File

@@ -1,7 +1,7 @@
<template>
<view class="spike">
<scroll-view class="spike" scroll-y @scrolltolower="onreachBottom">
<view class="title">
<view class="name">全部秒杀</view>
<view class="name">全部秒杀</view>
<view class="time">
<text class="num">{{ seckillTime.littleHour || '00' }}</text>
<text class="mah">:</text>
@@ -19,36 +19,61 @@
<view class="spike-list">
<SpecialGoods v-for="(item, index) in spikeList" :key="index" :item="item" type='spike'></SpecialGoods>
<u-empty mode="list" v-if="!spikeList.length" :margin-top="240"></u-empty>
<u-loadmore :status="loadStatus" bgColor="#FFF" margin-top="20" margin-bottom="20" @loadmore="onreachBottom"></u-loadmore>
</view>
</view>
</scroll-view>
</template>
<script>
import SpecialGoods from "../../components/shop/special-shop/index"
import SpecialGoods from "@/components/shop/special-shop/index"
export default {
data() {
return {
spikeList: [],
page: 0,
seckillTime: {}
seckillTime: {},
timer: true, // 限制下拉刷新
loadStatus: 'loadmore',
}
},
components: {
SpecialGoods
},
onShow() {
this.getSpikeList();
this.getSpikeList({ load: "reload" });
},
methods: {
// 全部秒杀
getSpikeList() {
this.$u.api.getSpikeList({ page: this.page }).then(res => {
if(res.errCode == 0) {
this.spikeList = res.data.list;
this.seckillTime = {
bigHour: res.data.bigHour,
littleHour: res.data.littleHour,
}
async getSpikeList({ load }) {
const res = await this.$u.api.getSpikeList({
page: this.page,
})
this.timer = true;
if (res.errCode == 0) {
this.seckillTime = {
bigHour: res.data.bigHour,
littleHour: res.data.littleHour,
}
if(load == 'reload') this.spikeList = res.data.list;
else if(load == 'loadmore') this.spikeList.push(...res.data.list);
}
this.$forceUpdate();
return res.data.list.length;
},
onreachBottom() {
if(!this.timer) return false;
this.loadStatus = "loading";
this.page++;
this.getSpikeList({ load: "loadmore" }).then(length => {
// console.log(length);
if(length == 0) {
this.page--;
this.loadStatus = 'nomore';
} else {
this.loadStatus = 'loadmore';
}
}).catch(() => {
this.loadStatus = "nomore";
this.page--;
})
},
}
@@ -56,9 +81,10 @@ export default {
</script>
<style lang="scss" scoped>
.spike{
min-height: calc(100vh - var(--window-top));
height: calc(100vh - var(--window-top));
padding: 30rpx;
border-top: 1rpx solid rgba(236,236,236,1);
box-sizing: border-box;
.title{
margin-bottom: 30rpx;
display: flex;
@@ -72,14 +98,22 @@ export default {
display: flex;
align-items: center;
font-size: 20rpx;
> text {
text-align: center;
line-height: 26rpx;
}
.num{
box-sizing: content-box;
width: 25rpx;
height: 25rpx;
background-color: #bfbfbf;
// box-sizing: content-box;
width: 26rpx;
// height: 25rpx;
background-color: #000;
color: #ffffff;
margin: 0 10rpx;
padding: 2rpx;
}
.mah {
color: #999999;
}
}
}
}

View File

@@ -1,5 +1,5 @@
<template>
<view id="actives">
<view id="actives" :style="{height : height + 'px'}">
<!-- 活动消息推送 -->
<block v-for="(item, index) in actives" :key="index">
<view class="time">{{ item.addtime }}</view>
@@ -7,7 +7,7 @@
<view class="content">
<view class="title">{{item.title}}</view>
<view class="images_about">
<image :src="item.goods_image" mode="aspectFill"></image>
<image :src="item.picture" mode="aspectFill"></image>
<view>
<text class="u-line-2">{{item.summary}}</text>
</view>
@@ -15,6 +15,7 @@
</view>
</view>
</block>
<u-loadmore :status="loadStatus" bg-color="#ECECEC" margin-top="20" v-if="loadStatus=='nomore'" />
</view>
</template>
@@ -22,13 +23,20 @@
export default {
data() {
return {
actives: [
]
height:'600',
actives: [],
loadStatus: 'loadmore'
};
},
onLoad(){
this.messageactivityList()
var _that = this
_that.messageactivityList();
uni.getSystemInfo({
success: function (res) {
console.log(res.windowHeight);
_that.height = res.windowHeight
}
});
},
methods: {
titletext(){
@@ -37,7 +45,9 @@
messageactivityList(){
this.$u.api.messageactivityList({}).then((res)=>{
if (res.errCode == 0) {
this.actives = res.data;
this.actives = res.data;
// 目前没有分页,只无数据提示用,他们建议这样做
if(!this.actives.length) this.loadStatus = 'nomore';
}
})
}
@@ -47,7 +57,7 @@
};
</script>
<style lang="scss" scoped>
<style lang="scss">
page {
background-color: #ECECEC;
}
@@ -55,7 +65,7 @@
height: 100%;
}
#actives{
height: 100%;
background: #ECECEC;
.time {
padding: 30rpx 0;
color: #666;
@@ -73,7 +83,7 @@
padding: 39rpx 0 30rpx;
}
.content{
width:630rpx;
width:94%;
padding: 30rpx;
background:rgba(255,255,255,1);
border-radius:20rpx;
@@ -97,6 +107,7 @@
justify-content: center;
width: 100%;
height: 140rpx;
line-height: 36rpx;
padding: 20rpx;
background: rgba(241,241,241,1);
& > text {

View File

@@ -1,15 +1,18 @@
<template>
<view class="attention">
<view class="attention_box" v-for="(item,index) in attention" :key="index" @click="navto(item.friend_tomid)">
<view>
<view style="position:relative">
<image :src="item.friend_tomavatar" mode="aspectFill"></image>
<view class="tishi" v-if="item.unread_message"></view>
</view>
<view>{{item.friend_tomname}}</view>
<view>{{item.friend_tomnickname}}</view>
<view>{{item.live_status ? '正在直播' : '未直播'}}</view>
<view class="cur_two" @click="tapClick(index)" v-if = "item.about == 1">已关注</view>
<view class="cur" @click="tapClick(index)" v-else = "item.about == 2">未关注</view>
<view class="cur_two" @click="tapClick(index)">已关注</view>
<!-- <view class="cur" @click="tapClick(index)" v-else = "item.about == 2">未关注</view> -->
</view>
<u-loadmore :status="status" icon-type="iconType"/>
</view>
</template>
<script>
@@ -19,12 +22,27 @@
return {
rSelect:[],
type : '未关注',
attention: []
attention: [],
page:1,
status:'loadmore'
};
},
onReachBottom(){
if(this.status == 'loading' || this.status == 'nomore'){
return ;
}else{
this.status = "loading"
this.page++
this.snsfriendList()
}
},
onLoad(){
this.snsfriendList()
},
onShow(){
this.page = 1;
this.snsfriendList();
},
methods: {
// 点击切换颜色
tapClick(index) {
@@ -37,8 +55,17 @@
}
},
snsfriendList(){
this.$u.api.snsfriendList({}).then((res)=>{
this.attention = res.data;
this.$u.api.snsfriendList({page:this.page}).then((res)=>{
console.log(res)
if(this.page > 1){
this.attention.push(...res.data.data)
}else{
this.attention = res.data.data;
}
this.status = "loadmore"
if(res.data.data.length < parseInt(res.data.per_page)){
this.status = "nomore"
}
})
},
navto(id){
@@ -58,6 +85,15 @@
</script>
<style lang="scss" scoped>
.tishi{
position: absolute;
top: 5rpx;
left: 80rpx;
background-color: #ff5d00;
width: 12rpx;
height: 12rpx;
border-radius: 50%;
}
.attention {
display: flex;
flex-wrap: wrap;

View File

@@ -1,544 +0,0 @@
<template>
<view class="content">
<view class="content-box" @touchstart="touchstart" id="content-box" :class="{'content-showfn':showFunBtn}">
<!-- 背景图- 定位方式 -->
<image class="content-box-bg" :src="_user_info.chatBgImg" :style="{ height: imgHeight }"></image>
<view class="content-box-loading" v-if="!loading"><u-loading mode="flower"></u-loading></view>
<view class="message" v-for="(item, index) in messageList" :key="index" :id="`msg-${item.hasBeenSentId}`">
<view class="message-item " :class="item.isItMe ? 'right' : 'left'">
<image class="img" :src="item.fromUserHeadImg" mode="" @tap="linkToBusinessCard(item.fromUserId)"></image>
<!-- contentType = 1 文本 -->
<view class="content" v-if="item.contentType == 1">{{ item.content }}</view>
<!-- contentType = 2 语音 -->
<view
class="content contentType2"
:class="[{ 'content-type-right': item.isItMe }]"
v-if="item.contentType == 2"
@tap="handleAudio(item)"
hover-class="contentType2-hover-class"
:style="{width:`${130+(item.contentDuration*2)}rpx`}"
>
<view
class="voice_icon"
:class="[
{ voice_icon_right: item.isItMe },
{ voice_icon_left: !item.isItMe },
{ voice_icon_right_an: item.anmitionPlay && item.isItMe },
{ voice_icon_left_an: item.anmitionPlay && !item.isItMe }
]"
></view>
<view class="">{{ item.contentDuration }}''</view>
</view>
<!-- contentType = 3 图片 -->
<view
class="content contentType3"
v-if="item.contentType == 3"
@tap="viewImg([item.content])"
>
<image :src="item.content" class="img" mode="widthFix"></image>
</view>
</view>
</view>
</view>
<!-- 底部聊天输入框 -->
<view class="input-box" :class="{ 'input-box-mpInputMargin': mpInputMargin }">
<view class="input-box-flex">
<!-- #ifndef H5 -->
<image v-if="chatType === 'voice'" class="icon_img" :src="require('@/static/pageD/voice.png')" @click="switchChatType('keyboard')"></image>
<image v-if="chatType === 'keyboard'" class="icon_img" :src="require('@/static/pageD/keyboard.png')" @click="switchChatType('voice')"></image>
<!-- #endif -->
<view class="input-box-flex-grow">
<input
v-if="chatType === 'voice'"
type="text"
class="content"
id="input"
v-model="formData.content"
:hold-keyboard="true"
:confirm-type="'send'"
:confirm-hold="true"
placeholder-style="color:#DDDDDD;"
:cursor-spacing="10"
@confirm="sendMsg(null)"
/>
<view
class="voice_title"
v-if="chatType === 'keyboard'"
:style="{ background: recording ? '#c7c6c6' : '#FFFFFF' }"
@touchstart.stop.prevent="startVoice"
@touchmove.stop.prevent="moveVoice"
@touchend.stop="endVoice"
@touchcancel.stop="cancelVoice"
>
{{ voiceTitle }}
</view>
</view>
<!-- 功能性按钮 -->
<image class=" icon_btn_add" :src="require('@/static/pageD/add.png')" @tap="switchFun"></image>
<!-- #ifdef H5 -->
<button class="btn" type="primary" size="mini" @touchend.prevent="sendMsg(null)">发送</button>
<!-- #endif -->
</view>
<view class="fun-box" :class="{'show-fun-box':showFunBtn}">
<u-grid :col="4" hover-class="contentType2-hover-class" :border="false" @click="clickGrid">
<u-grid-item v-for="(item, index) in funList" :index="index" :key="index" bg-color="#eaeaea">
<u-icon :name="item.icon" :size="52"></u-icon>
<view class="grid-text">{{ item.title }}</view>
</u-grid-item>
</u-grid>
</view>
</view>
<!-- //语音动画 -->
<view class="voice_an" v-if="recording">
<view class="voice_an_icon">
<view id="one" class="wave"></view>
<view id="two" class="wave"></view>
<view id="three" class="wave"></view>
<view id="four" class="wave"></view>
<view id="five" class="wave"></view>
<view id="six" class="wave"></view>
<view id="seven" class="wave"></view>
</view>
<view class="text">{{voiceIconText}}</view>
</view>
</view>
</template>
<script>
export default {
data() {
return {
fromUserInfo: {},
formData: {
content: '',
limit: 15,
index: 1
},
messageList: [],
loading: true, //标识是否正在获取数据
imgHeight: '1000px',
mpInputMargin: false, //适配微信小程序 底部输入框高度被顶起的问题
chatType:"voice", // 图标类型 'voice'语音 'keyboard'键盘
voiceTitle: '按住 说话',
Recorder: uni.getRecorderManager(),
Audio: uni.createInnerAudioContext(),
recording: false, //标识是否正在录音
isStopVoice: false, //加锁 防止点击过快引起的当录音正在准备(还没有开始录音)的时候,却调用了stop方法但并不能阻止录音的问题
voiceInterval:null,
voiceTime:0, //总共录音时长
canSend:true, //是否可以发送
PointY:0, //坐标位置
voiceIconText:"正在录音...",
showFunBtn:false, //是否展示功能型按钮
AudioExam:null, //正在播放音频的实例
funList: [
{ icon:"photo-fill",title:"照片",uploadType:["album"] },
{ icon:"camera-fill",title:"拍摄",uploadType:["camera"] },
],
};
},
methods: {
//拼接消息 处理滚动
async joinData() {
if (!this.loading) {
//如果没有获取数据 即loading为false时return 避免用户重复上拉触发加载
return;
}
this.loading = false;
const data = await this.getMessageData();
//获取节点信息
const { index } = this.formData;
const sel = `#msg-${index > 1 ? this.messageList[0].hasBeenSentId : data[data.length - 1].hasBeenSentId}`;
this.messageList = [...data, ...this.messageList];
//填充数据后视图会自动滚动到最上面一层然后瞬间再跳回bindScroll的指定位置 ---体验不是很好,后期优化
this.$nextTick(() => {
this.bindScroll(sel);
//如果还有数据
if (this.formData.limit >= data.length) {
this.formData.index++;
setTimeout(() => {
this.loading = true;
}, 200);
}
});
},
//处理滚动
bindScroll(sel, duration = 0) {
const query = uni.createSelectorQuery().in(this);
query
.select(sel)
.boundingClientRect(data => {
uni.pageScrollTo({
scrollTop: data && data.top - 40,
duration
});
})
.exec();
},
//获取消息
getMessageData() {
let getData = () => {
let arr = [];
let startIndex = (this.formData.index - 1) * this.formData.limit;
let endIndex = startIndex + this.formData.limit;
for (let i = startIndex; i < endIndex; i++) {
const isItMe = Math.random() > 0.5 ? true : false;
arr.unshift({
hasBeenSentId: i, //已发送过去消息的id
content: `很高兴认识你,这是第${i + 1}条消息。`,
fromUserHeadImg: isItMe ? this._user_info.headImg : this.fromUserInfo.fromUserHeadImg, //用户头像
fromUserId: isItMe ? this._user_info.id : this.fromUserInfo.fromUserId,
isItMe, //true此条信息是我发送的 false别人发送的
createTime: Date.now(),
contentType: 1, // 1文字文本 2语音
anmitionPlay: false //标识音频是否在播放
});
}
return arr;
};
return new Promise((resolve, reject) => {
const data = getData();
setTimeout(() => {
resolve(data);
}, 500);
});
},
//切换语音或者键盘方式
switchChatType(type) {
this.chatType = type;
this.showFunBtn =false;
},
//切换功能性按钮
switchFun(){
this.chatType = 'keyboard'
this.showFunBtn = !this.showFunBtn;
uni.hideKeyboard()
},
//发送消息
sendMsg(data) {
const params = {
hasBeenSentId: Date.now(), //已发送过去消息的id
content: this.formData.content,
fromUserHeadImg: this._user_info.headImg, //用户头像
fromUserId: this._user_info.id,
isItMe: true, //true此条信息是我发送的 false别人发送的
createTime: Date.now(),
contentType: 1
};
if (data) {
if(data.contentType == 2){
//说明是发送语音
params.content = data.content;
params.contentType = data.contentType;
params.contentDuration = data.contentDuration;
params.anmitionPlay = false;
}else if(data.contentType == 3){
//发送图片
params.content = data.content;
params.contentType = data.contentType;
}
} else if (!this.$u.trim(this.formData.content)) {
//验证输入框书否为空字符传
return;
}
this.messageList.push(params);
this.$nextTick(() => {
this.formData.content = '';
// #ifdef MP-WEIXIN
if(params.contentType == 1){
uni.pageScrollTo({
scrollTop: 99999,
duration: 0, //小程序如果有滚动效果 input的焦点也会随着页面滚动...
});
}else{
setTimeout(()=>{
uni.pageScrollTo({
scrollTop: 99999,
duration: 0, //小程序如果有滚动效果 input的焦点也会随着页面滚动...
});
},150)
}
// #endif
// #ifndef MP-WEIXIN
uni.pageScrollTo({
scrollTop: 99999,
duration: 100
});
// #endif
if(this.showFunBtn){
this.showFunBtn = false;
}
// #ifdef MP-WEIXIN
if (params.contentType == 1) {
this.mpInputMargin = true;
}
// #endif
//h5浏览器并没有很好的办法控制键盘一直处于唤起状态 而且会有样式性的问题
// #ifdef H5
uni.hideKeyboard();
// #endif
});
},
//用户触摸屏幕的时候隐藏键盘
touchstart() {
uni.hideKeyboard();
},
// userid 用户id
linkToBusinessCard(userId) {
this.$u.route({
url: 'pages/businessCard/businessCard',
params: {
userId
}
});
},
//准备开始录音
startVoice(e) {
if(!this.Audio.paused){
//如果音频正在播放 先暂停。
this.stopAudio(this.AudioExam)
}
this.recording = true;
this.isStopVoice = false;
this.canSend = true;
this.voiceIconText = "正在录音..."
this.PointY = e.touches[0].clientY;
this.Recorder.start({
format: 'mp3'
});
},
//录音已经开始
beginVoice(){
if (this.isStopVoice) {
this.Recorder.stop();
return;
}
this.voiceTitle = '松开 结束'
this.voiceInterval = setInterval(()=>{
this.voiceTime ++;
},1000)
},
//move 正在录音中
moveVoice(e){
const PointY = e.touches[0].clientY
const slideY = this.PointY - PointY;
if(slideY > uni.upx2px(120)){
this.canSend = false;
this.voiceIconText = '松开手指 取消发送 '
}else if(slideY > uni.upx2px(60)){
this.canSend = true;
this.voiceIconText = '手指上滑 取消发送 '
}else{
this.voiceIconText = '正在录音... '
}
},
//结束录音
endVoice() {
this.isStopVoice = true; //加锁 确保已经结束录音并不会录制
this.Recorder.stop();
this.voiceTitle = '按住 说话'
},
//录音被打断
cancelVoice(e){
this.voiceTime = 0;
this.voiceTitle = '按住 说话';
this.canSend = false;
this.Recorder.stop();
},
//处理录音文件
handleRecorder({ tempFilePath,duration }) {
let contentDuration;
// #ifdef MP-WEIXIN
this.voiceTime = 0;
if (duration < 600) {
this.voiceIconText="说话时间过短";
setTimeout(()=>{
this.recording = false;
},200)
return;
}
contentDuration = duration/1000;
// #endif
// #ifdef APP-PLUS
contentDuration = this.voiceTime +1;
this.voiceTime = 0;
if(contentDuration <= 0) {
this.voiceIconText="说话时间过短";
setTimeout(()=>{
this.recording = false;
},200)
return;
};
// #endif
this.recording = false;
const params = {
contentType: 2,
content: tempFilePath,
contentDuration: Math.ceil(contentDuration)
};
this.canSend && this.sendMsg(params);
},
//控制播放还是暂停音频文件
handleAudio(item) {
this.AudioExam = item;
this.Audio.paused ? this.playAudio(item) : this.stopAudio(item);
},
//播放音频
playAudio(item) {
this.Audio.src = item.content;
this.Audio.hasBeenSentId = item.hasBeenSentId;
this.Audio.play();
item.anmitionPlay = true;
},
//停止音频
stopAudio(item) {
item.anmitionPlay = false;
this.Audio.src = '';
this.Audio.stop();
},
//关闭动画
closeAnmition() {
const hasBeenSentId = this.Audio.hasBeenSentId;
const item = this.messageList.find(it => it.hasBeenSentId == hasBeenSentId);
item.anmitionPlay = false;
},
//点击宫格时触发
clickGrid(index){
if(index == 0){
this.chooseImage(['album'])
}else if(index == 1){
this.chooseImage(['camera'])
}
},
//发送图片
chooseImage(sourceType){
uni.chooseImage({
sourceType,
sizeType:['compressed'],
success:res=>{
this.showFunBtn = false;
for(let i = 0;i<res.tempFilePaths.length;i++){
const params = {
contentType: 3,
content: res.tempFilePaths[i],
};
this.sendMsg(params)
}
}
})
},
//查看大图
viewImg(imgList){
uni.previewImage({
urls: imgList,
// #ifndef MP-WEIXIN
indicator: 'number'
// #endif
});
},
},
onPageScroll(e) {
if (e.scrollTop < 50) {
this.joinData();
}
},
onNavigationBarButtonTap({ index }) {
if (index == 0) {
//用户详情 设置
} else if (index == 1) {
//返回按钮
this.$u.route({
type: 'switchTab',
url: 'pages/home/home'
});
}
},
//返回按钮事件
onBackPress(e) {
//以下内容对h5不生效
//--所以如果用浏览器自带的返回按钮进行返回的时候页面不会重定向 正在寻找合适的解决方案
this.$u.route({
type: 'switchTab',
url: 'pages/home/home'
});
return true;
},
onLoad(info) {
// { messageId,fromUserName,fromUserHeadImg } = info
const userInfo = this.firendList.filter(item => item.userId == info.fromUserId)[0];
console.log(userInfo)
this.fromUserInfo = {
fromUserName: userInfo.userName,
fromUserHeadImg: userInfo.headImg,
fromUserId: 4,
messageId: 2
};
//录音开始事件
this.Recorder.onStart(e => {
this.beginVoice();
});
//录音结束事件
this.Recorder.onStop(res => {
clearInterval(this.voiceInterval);
this.handleRecorder(res);
});
//音频停止事件
this.Audio.onStop(e => {
this.closeAnmition();
});
//音频播放结束事件
this.Audio.onEnded(e => {
this.closeAnmition();
});
},
onReady() {
//自定义返回按钮 因为原生的返回按钮不可阻止默认事件
// #ifdef H5
const icon = document.getElementsByClassName('uni-page-head-btn')[0];
icon.style.display = 'none';
// #endif
uni.setNavigationBarTitle({
title: this.fromUserInfo.fromUserName
});
this.joinData();
uni.getSystemInfo({
success: res => {
this.imgHeight = res.windowHeight + 'px';
}
});
uni.onKeyboardHeightChange(res => {
if (res.height == 0) {
// #ifdef MP-WEIXIN
this.mpInputMargin = false;
// #endif
}else{
this.showFunBtn = false;
}
});
}
};
</script>
<style lang="scss" scoped>
@import './index.scss'
</style>

View File

@@ -1,354 +0,0 @@
page {
background-color: #f3f3f3;
}
.content {
&-showfn{
padding-bottom: 0rpx;
padding-bottom: calc(420rpx + constant(safe-area-inset-bottom));
padding-bottom: calc(420rpx + env(safe-area-inset-bottom) );
/* #ifdef MP-WEIXIN */
/* #endif */
}
&-box {
width: 100%;
height: auto;
min-height: calc(100vh - env(safe-area-inset-top) - 200rpx);
box-sizing: content-box;
position: relative;
padding-bottom: 120rpx;
/* #ifdef APP-PLUS */
margin-bottom: 0rpx;
margin-bottom: constant(safe-area-inset-bottom);
margin-bottom: env(safe-area-inset-bottom);
/* #endif */
/* #ifdef MP-WEIXIN */
padding-bottom: 0rpx;
padding-bottom: calc(120rpx + constant(safe-area-inset-bottom));
padding-bottom: calc(120rpx + env(safe-area-inset-bottom) );
/* #endif */
&-bg {
width: 100%;
position: fixed;
/* #ifdef MP-WEIXIN */
bottom: 0;
bottom: constant(safe-area-inset-bottom);
bottom: env(safe-area-inset-bottom);
/* #endif */
/* #ifndef MP-WEIXIN */
top: 0;
left: 0;
/* #endif */
}
&-loading {
text-align: center;
padding: 20rpx 0;
}
.message {
padding: 13rpx 20rpx;
}
.message-item {
display: flex;
justify-content: flex-start;
align-items: flex-start;
align-content: flex-start;
flex-wrap: nowrap;
flex-direction: row;
.img {
width: 80rpx;
height: 80rpx;
border-radius: 5rpx;
}
.content {
padding: 20rpx;
max-width: 500rpx;
border-radius: 10rpx;
font-size: 28rpx;
}
// 语音
.contentType2 {
display: flex;
flex-direction: row;
align-items: center;
.voice_icon {
height: 34rpx;
width: 34rpx;
background-repeat: no-repeat;
background-size: 100%;
}
.voice_icon_right {
background-image: url(../../static/voice-left-3.png);
margin-left: 10rpx;
}
.voice_icon_left {
background-image: url(../../static/voice-right-3.png);
margin-right: 10rpx;
}
.voice_icon_right_an {
animation: voiceAn_right 1s linear alternate infinite;
}
.voice_icon_left_an {
animation: voiceAn_left 1s linear alternate infinite;
}
@keyframes voiceAn_right {
0% {
background-image: url(../../static/voice-left-1.png);
}
50% {
background-image: url(../../static/voice-left-2.png);
}
100% {
background-image: url(../../static/voice-left-3.png);
}
}
@keyframes voiceAn_left {
0% {
background-image: url(../../static/voice-right-1.png);
}
50% {
background-image: url(../../static/voice-right-2.png);
}
100% {
background-image: url(../../static/voice-right-3.png);
}
}
}
//图片
.contentType3{
padding: 0;
border-radius: 2rpx;
background-color: transparent !important;
.img{
width: 200rpx;
height: auto;
max-width: 300rpx;
max-height: 400rpx;
}
}
.contentType3::after{
border: none !important;
display: none !important;
}
.content-type-right {
flex-direction: row-reverse;
}
&.right {
flex-direction: row-reverse;
.content {
background-color: $uni-color-success;
margin-right: 28rpx;
word-break: break-all;
line-height: 36rpx;
position: relative;
&::after {
content: '';
display: block;
width: 0;
height: 0;
border-top: 10rpx solid transparent;
border-bottom: 10rpx solid transparent;
border-left: 16rpx solid $uni-color-success;
position: absolute;
right: -16rpx;
top: 30rpx;
}
}
}
&.left {
.content {
background-color: $uni-text-color-inverse;
margin-left: 28rpx;
word-break: break-all;
line-height: 36rpx;
position: relative;
&::after {
content: '';
display: block;
width: 0;
height: 0;
border-top: 10rpx solid transparent;
border-bottom: 10rpx solid transparent;
border-right: 16rpx solid $uni-text-color-inverse;
position: absolute;
left: -16rpx;
top: 30rpx;
}
}
}
}
}
.input-box {
position: fixed;
bottom: 0;
left: 0;
width: 100%;
box-sizing: content-box;
z-index: 999;
background-color: #eaeaea;
/* #ifdef APP-PLUS */
margin-bottom: 0rpx;
margin-bottom: constant(safe-area-inset-bottom);
margin-bottom: env(safe-area-inset-bottom);
/* #endif */
/* #ifdef MP-WEIXIN */
padding-bottom: 0rpx;
padding-bottom: constant(safe-area-inset-bottom);
padding-bottom: env(safe-area-inset-bottom);
/* #endif */
&-flex {
display: flex;
justify-content: flex-start;
align-items: center;
flex-wrap: nowrap;
flex-direction: row;
padding: 20rpx;
box-sizing: border-box;
image{
width: 56rpx;
height: 56rpx;
}
.icon_img {
margin-right: 20rpx;
}
.icon_btn_add{
margin-left: 20rpx;
}
&-grow {
flex-grow: 1;
.content {
box-sizing: border-box;
background-color: #fff;
height: 80rpx;
padding: 0 20rpx;
border-radius: 12rpx;
font-size: 28rpx;
caret-color: $uni-color-success;
}
.voice_title {
text-align: center;
background-color: #ffffff;
height: 80rpx;
line-height: 80rpx;
border-radius: 12rpx;
}
}
.btn {
margin-left: 20rpx;
background-color: $u-type-success;
border: none;
}
}
.fun-box{
opacity: 0;
transition: all 0.1s ease-in-out;
height: 0;
.grid-text{
padding-top: 10rpx;
color: $uni-text-color-grey;
}
}
.show-fun-box{
opacity: 1;
height: 300rpx;
}
}
.input-box-mpInputMargin {
/* #ifdef MP-WEIXIN */
padding-bottom: 0rpx;
/* #endif */
}
.voice_an{
width: 300rpx;
height: 300rpx;
position: fixed;
top: 50%;
left: 50%;
transform: translate(-50%,-55%);
background-color: rgba(41,41,41,0.7);
color: white;
display: flex;
flex-direction: column;
align-items: center;
text-align: center;
border-radius: 10rpx;
.text{
padding-top: 30rpx;
}
@keyframes runVoice{
0%{
height: 10%;
}
20%{
height: 50%;
}
50%{
height: 100%;
}
80%{
height: 50%;
}
100%{
height: 0%;
}
}
.wave{
width:6rpx;
height: 100%;
margin-left: 10rpx;
border-radius: 50rpx;
background-color: #999;
vertical-align: middle;
display: inline-block;
}
.voice_an_icon{
width: 200rpx;
height: 100rpx;
line-height: 50rpx;
margin: 50rpx 0;
}
.voice_an_icon #one{
animation:runVoice 0.6s infinite 0.1s;
}
.voice_an_icon #two{
animation:runVoice 0.6s infinite 0.3s;
}
.voice_an_icon #three{
animation:runVoice 0.6s infinite 0.6s;
}
.voice_an_icon #four{
animation:runVoice 0.6s infinite 0.1s;
}
.voice_an_icon #five{
animation:runVoice 0.6s infinite 0.3s;
}
.voice_an_icon #six{
animation:runVoice 0.6s infinite 0.6s;
}
.voice_an_icon #seven{
animation:runVoice 0.6s infinite 0.1s;
}
}
}

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.

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

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

@@ -2,22 +2,27 @@
<view id="actives">
<!-- 活动消息推送 -->
<view class="activity" v-for="(item, index) in actives" :key="index">
<view class="times">{{item.type}}</view>
<view class="times">{{item.kd_time}}</view>
<view class="content">
<view class="store_name">
<image src="../../pageE/static/mine/1.png"></image>
<view>小时代</view>
<view class="store-name">
<image :src="item.store_avatar"></image>
<view class="name">{{item.store_name}}</view>
<view class="takeawayer" v-if="item.takeawayer_phone" @click="makePhone(item.takeawayer_phone)">
<u-icon name="phone-fill" color="#FF780F" size="28"></u-icon>
<text>联系骑手</text>
</view>
</view>
<view class="xiantiao"></view>
<view class="title">{{item.name}}</view>
<view class="images_about">
<image :src="item.url"></image>
<view class="title">{{item.title}}</view>
<view class="images_about" @click="viewLogistics(item)">
<image :src="item.picture"></image>
<view>
<text>{{item.about}}</text>
<text>{{item.summary}}</text>
</view>
</view>
</view>
</view>
<u-loadmore :status="loadStatus" bg-color="#ECECEC" margin-top="20" @loadmore="loadmore" />
</view>
</template>
@@ -26,27 +31,70 @@
data() {
return {
actives: [],
page: 1
page: 1,
timer: true,
loadStatus: 'loadmore'
};
},
onLoad() {
this.getCartList();
},
methods: {
getCartList() {
this.$u.post("message/orderDeliveryList",{page: this.page}).then(res => {
if (res.errCode == 0) {
this.actives == res.data;
}
})
}
},
components:{
}
onReachBottom() {
this.loadmore();
},
methods: {
loadmore() {
if(!this.timer) return false;
this.loadStatus = "loading";
this.page++;
this.getCartList({ load: 'loadmore' }).then(length => {
if(length == 0) {
this.page--;
this.loadStatus = 'nomore';
} else {
this.loadStatus = 'loading';
}
}).catch(() => {
this.loadStatus = "nomore";
this.page--;
})
},
async getCartList({ load = 'reload' } = {}) {
const res = await this.$u.post("message/orderDeliveryList",{ page: this.page })
this.timer = true;
if (res.errCode == 0) {
if(load == 'reload') {
this.actives = res.data.data;
if(res.data.data.length < 12) this.loadStatus = "nomore";
}
else if(load == 'loadmore') this.actives.push(...res.data.data);
}
return res.data.data.length;
},
viewLogistics(item) {
let url;
if(item.takeawayer_phone) {
url = '/pageE/order/Details';
} else {
url = '/pageE/order/Logistics';
}
this.$u.route(url, {
oid: item.order_id,
});
},
makePhone(phone) {
uni.makePhoneCall({
phoneNumber: phone
});
}
},
};
</script>
<style lang="scss" scoped>
<style lang="scss" >
page{
background-color: #ECECEC;
}
#actives{
height: 100%;
}
@@ -106,25 +154,31 @@
margin-bottom: 20rpx;
}
// 店铺
.store_name{
.store-name{
overflow: hidden;
zoom: 1;
padding: 0rpx 0 20rpx 0;
display: flex;
align-items: center;
image{
width: 60rpx;
height: 60rpx;
border-radius: 50%;
float: left;
}
view{
.name {
font-size:26rpx;
color:rgba(51,51,51,1);
float: left;
display: table-cell;
line-height: 60rpx;
display: inline-block;
margin-left: 21rpx;
}
.takeawayer {
margin-left: auto;
> text {
margin-left: 10rpx;
}
}
}
}
}

View File

@@ -1,6 +1,6 @@
<template>
<view>
<image :src="list.picture" class="picture" mode=""></image>
<image :src="list.picture" class="picture" mode="aspectFit"></image>
<view class="box">
<view class="info">
<text class="title u-line-2">{{ list.title }}</text>

View File

@@ -1,42 +1,55 @@
<template>
<view>
<view id="viewes" :style="{height : height + 'px'}">
<!-- 公告咨询 -->
<notice :list="list"></notice>
<u-loadmore :status="loadStatus" bg-color="#ECECEC" margin-top="20" v-if="loadStatus=='nomore'" />
</view>
</template>
<script>
import notice from "@/components/informations/notice/notice"
import notice from "@/components/informations/notice/notice"
export default {
data() {
return {
list: [],
list: [],
loadStatus: 'loadmore'
};
},
onLoad(){
onLoad() {
this.informationList();
var _that = this
uni.getSystemInfo({
success: function (res) {
console.log(res.windowHeight);
_that.height = res.windowHeight
}
});
},
methods: {
titletext(){
},
informationList(){
this.$u.api.informationList({}).then((res)=>{
if (res.errCode == 0) {
this.list = res.data;
}
titletext() {},
informationList() {
this.$u.api.informationList({}).then((res) => {
if (res.errCode == 0) {
this.list = res.data;
// 目前没有分页,只无数据提示用
if(!this.list.length) this.loadStatus = 'nomore';
}
})
}
},
components:{
components: {
notice,
}
};
</script>
<style lang="scss" scoped>
page {
background-color: #ECECEC;
}
<style lang="scss">
page {
background-color: #ECECEC;
}
#viewes{
background: #ECECEC;
}
.sousuo {
height: 113rpx;
border: 1px #f00 solid;

View File

@@ -59,7 +59,7 @@
<div :class="[audio.visible ? 'record-icon record-open':'record-icon']" @click="switchAudioKeyboard"></div>
<div class="record-input" @longpress="onRecordStart" @touchend="onRecordEnd" v-if="audio.visible" >{{audio.recording ? '松开发送' : '按住录音'}}</div>
<div class="message-input" v-else>
<input type="text" placeholder="发送消息" v-model="content">
<input type="text" placeholder="发送消息" v-model="content" @click="bindtapInput">
</div>
<div class="file-icon img-video" @click="sendImage"></div>
<div class="file-icon" @click="sendVideo"></div>
@@ -68,6 +68,7 @@
</div>
<div class="record-loading" v-if="audio.recording"></div>
<video style="width:100%;height: 100%" :src="video.url" v-if="video.visible" id="videoPlayer" autoplay="true" @fullscreenchange="onVideoFullScreenChange" @play="onVideoPlayStart"></video>
<u-toast ref="uToast" />
</div>
</template>
@@ -83,6 +84,7 @@
return {
//聊天文本框
content: '',
bottom : '',
friend: null,
currentUser: null,
//已经接收到的消息
@@ -126,12 +128,12 @@
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;
uni.setNavigationBarTitle({
title : this.friend.name
});
console.log(this.friend.name)
this.setTitle(this.friend.name)
setTimeout(() => {
uni.setNavigationBarColor({
backgroundColor : '#FF780F',
@@ -151,8 +153,26 @@
this.imService.onPrivateHistoryLoad = (friendId, messages) =>{};
//将未读消息数清零
this.imService.resetFriendUnReadMessage(this.friend);
this.imService.uid = 0;
},
methods: {
setTitle(title){
let that = this
if(title == ""){
title = "这是空的"
}
uni.setNavigationBarTitle({
title : title,
fail(){
that.setTitle(title)
}
});
},
bindtapInput(){
console.log("222")
var _that = this;
_that.bottom = 14
},
initialListeners () {
//传入监听器,收到一条私聊消息总是滚到到页面底部
this.imService.onNewPrivateMessageReceive = (friendId, message)=> {
@@ -191,6 +211,13 @@
})
},
sendMessage() {//发送消息
if(!this.imService.status){
this.$refs.uToast.show({
title: '连接聊天中,请稍候',
type: 'warning'
})
return
}
if (this.content.trim() != '') {
this.imService.sendPrivateTextMessage(this.friend.uuid, this.content);
let that = this
@@ -209,6 +236,13 @@
this.imService.loadPrivateHistoryMessage(this.friend.uuid, lastMessageTimeStamp);
},
onRecordStart () {
if(!this.imService.status){
this.$refs.uToast.show({
title: '连接聊天中,请稍候',
type: 'warning'
})
return
}
try{
recorderManager.start();
}catch(e){
@@ -231,6 +265,13 @@
}
},
sendVideo () {//发送文件
if(!this.imService.status){
this.$refs.uToast.show({
title: '连接聊天中,请稍候',
type: 'warning'
})
return
}
uni.chooseVideo({
success : (res) => {
console.log(res)
@@ -239,6 +280,13 @@
})
},
sendImage() {
if(!this.imService.status){
this.$refs.uToast.show({
title: '连接聊天中,请稍候',
type: 'warning'
})
return
}
uni.chooseImage({
count :1,
success :(res) => {
@@ -248,6 +296,7 @@
})
},
showImageFullScreen (e) {
var imagesUrl = [e.currentTarget.dataset.url];
uni.previewImage({
urls: imagesUrl
@@ -312,7 +361,7 @@
box-sizing: border-box;
}
.chatInterface .top{
font-size: 24rpx;
font-size: 20rpx;
height: 90rpx;
display: flex;
flex-direction: column;
@@ -322,7 +371,7 @@
color: blue;
}
.chatInterface .top .description{
text-decoration: underline;
/* text-decoration: underline; */
}
.chatInterface .message-item{
@@ -400,7 +449,7 @@
}
.chatInterface .action-top .file-icon{
background: url("../images/vedio.png") no-repeat center;
background-size: 70%;
background-size: 50%;
color: #9D9D9D;
position: relative;
width:80rpx;
@@ -415,7 +464,7 @@
}
.chatInterface .action-top .img-video{
background: url("../images/file.png") no-repeat center;
background-size: 74%;
background-size: 50%;
}
.chatInterface .record-input{
width: 480rpx;
@@ -438,9 +487,10 @@
font-size: 28rpx;
}
.chatInterface .send-message-btn{
font-size: 32rpx;
font-size: 28rpx;
width: 80rpx;
line-height: 80rpx;
margin-right: 20rpx;
}
.record-loading{
position: absolute;

View File

@@ -8,7 +8,7 @@ import common from '@/static/js/common.js'
export default {
data() {
return {
nodes: '',
nodes: "",
}
},
onLoad(option) {
@@ -18,6 +18,9 @@ export default {
if(option.type == 1) this.certificateInfo();
if(option.type == 2) this.getAboutUsInfo();
},
onNavigationBarButtonTap(e) {
console.log(e);
},
methods: {
setTitle(title){
uni.setNavigationBarTitle({
@@ -54,10 +57,12 @@ export default {
}
</script>
<style lang="scss" scoped>
// page {
// background-color: #ECECEC;
// }
.article-details {
min-height: calc(100vh - var(--window-top));
background: #ECECEC;
padding: 20rpx 35rpx 0;
line-height: 45rpx;
}
</style>

101
pageE/mine/Contact.vue Normal file
View File

@@ -0,0 +1,101 @@
<template>
<view class="contact">
<view class="item-view" @click="makePhone">
<view class="title">联系电话</view>
<view class="content">{{ phoneNumber }}</view>
<u-icon name="arrow-right" color="#9A9A9A" size="24"></u-icon>
</view>
<view class="item-view" @click="customerService">
<view class="title">客服服务</view>
<u-icon name="arrow-right" color="#9A9A9A" size="24"></u-icon>
</view>
</view>
</template>
<script>
export default {
data() {
return {
phoneNumber: '',
}
},
created() {
this.getPhone();
},
methods: {
getPhone() {
this.$u.api.getConfigInfo({
code: 'site_tel400'
}).then(res => {
this.phoneNumber = res.data.config.value;
})
},
makePhone() {
uni.makePhoneCall({
phoneNumber: this.phoneNumber,
});
},
customerService(){
if(!this.$store.state.hasLogin){
this.$u.toast('请先登录');
} else {
function Friend(uuid, name, avatar,time = "", text = "",date = "") {
this.uuid = uuid;
this.name = name;
this.avatar = avatar;
this.online = false;
this.unReadMessage = 0;
this.text = text;
this.time = time;
this.date = date
}
const token = uni.getStorageSync('token');
let that = this
uni.request({
url:"https://mall.dmygkeji.com/api/Specialci/getAtwillUserInfo",
data:{
userId: 1
},
method:"POST",
header:{
"Authorization" : 'Bearer' + " " + token
},
success(res){
res = res.data;
let user = new Friend(res.data.member_id,"官方平台客服",res.data.member_avatar);
that.$u.route({
url:"/pageD/privateChat/privateChat",
params:{
id:JSON.stringify(user)
}
})
}
})
}
},
}
};
</script>
<style lang="scss" scoped>
.contact {
border-top: 1rpx solid #ECECEC;
.item-view {
display: flex;
align-items: center;
justify-content: space-between;
padding: 34rpx 30rpx;
border-bottom: 2rpx solid #ECECEC;
.title {
font-size: 30rpx;
color: #343434;
}
.content {
margin-left: auto;
font-size: 28rpx;
color: #666666;
}
.u-icon {
margin-left: 20rpx;
}
}
}
</style>

View File

@@ -117,7 +117,7 @@ export default {
id: 1 // 平台店铺 id
}).then((res)=>{
// console.log(res)
let user = new Friend(res.data.member_id,res.data.member_nickname,res.data.member_avatar)
let user = new Friend(res.data.member_id,res.data.store_name,res.data.member_avatar)
this.$u.route({
url:"/pageD/privateChat/privateChat",
params:{
@@ -136,7 +136,7 @@ export default {
sizeType: ['original', 'compressed'],
sourceType: ['album'],
success: (res) => {
this.avatar = res.tempFilePaths[0];
// this.avatar = res.tempFilePaths[0];
common.uploadFile({
url: url,
name: 'avatar',
@@ -144,7 +144,7 @@ export default {
}).then(result => {
// console.log(result);
// this.$set(this, 'avatar', result.file_path);
// this.avatar = result.file_path;
this.avatar = result.file_path + "?" + new Date().getTime();
this.uploadPath = result.file_name;
}, error => {
this.$u.toast(error);

View File

@@ -1,11 +1,13 @@
<template>
<view class="collection">
<view class="container">
<view class="item-box" v-for="(item, index) in articleList" :key="index" @click="toDetailsPage(item.article_id)">
<view class="item-box" v-for="(item, index) in articleList" :key="index" @click="toDetailsPage({ id: item.article_id, type: item.type })">
<view class="video-item" v-if="item">
<image class="head" :src="item.article_pic" mode="scaleToFill" v-if="item.type == 1"></image>
<image class="head" :src="item.article_pic" mode="aspectFill" v-if="item.type == 1"></image>
<view class="header_fist" v-else>
<view class="backes"></view>
<view class="backs">
<image class="play-icon" src="/static/videoPlay.png"></image>
</view>
<image class="head" :src="item.article_pic"></image>
</view>
<view class="title u-line-1">{{ item.article_title }}</view>
@@ -15,23 +17,14 @@
<image :src="item.member_avatar"></image>
<text>{{ item.member_nickname }}</text>
</view>
<view @click.stop="delArticle(item.article_id)">
<u-icon name="trash" color="#333" size="36"></u-icon>
<view @click.stop="viewAction(item.article_id)">
<u-icon name="more-dot-fill" color="#333" size="36"></u-icon>
</view>
<!-- <image src="/static/image/common/4.png" @click.stop="showAction(item)"></image> -->
<!-- <view class="action" v-if="show == item.article_id">
<view class="bubble">
<view @click.stop="delArticle(item.article_id)">
<image src="/static/image/common/8.png"></image>
<text>删除</text>
</view>
</view>
</view> -->
<view class="layer" v-if="show == item.article_id" @click.stop="show=-1"></view>
</view>
</view>
</view>
</view>
<u-action-sheet :list="actionList" v-model="showAction" :cancel-btn="true" @click="delArticle" border-radius="20"></u-action-sheet>
<u-empty mode="list" v-if="!articleList.length" color="#000" img-width="200" font-size="30" margin-top="120"></u-empty>
</view>
</template>
@@ -39,8 +32,17 @@
export default {
data() {
return {
tid: '',
show: -1,
articleList: [],
showAction: false,
actionList: [
{
text: '删除',
color: '#000000',
fontSize: 36
}
]
}
},
onShow() {
@@ -51,9 +53,6 @@ export default {
this.articleCollectList();
},
methods: {
showAction(item) {
this.show = this.show > 0 ? -1 : item.article_id;
},
articleCollectList() {
this.$u.api.articleCollectList().then(res => {
uni.stopPullDownRefresh();
@@ -64,8 +63,16 @@ export default {
}
})
},
delArticle(id) {
this.$u.api.articleCollect({ article_id: id }).then(res => {
viewAction(id) {
this.showAction = true;
this.tid = id;
},
toDetailsPage({ id, type }) {
let src = type == 1 ? 'pageB/photo/index' : 'pageB/video/video';
this.$u.route(src, { id: id });
},
delArticle() {
this.$u.api.articleCollect({ article_id: this.tid }).then(res => {
if(res.errCode == 0) {
this.articleCollectList();
} else {
@@ -73,11 +80,6 @@ export default {
}
})
},
toDetailsPage(id) {
uni.navigateTo({
url: '/pageB/photo/index?id=' + id
});
},
}
};
</script>
@@ -88,11 +90,9 @@ export default {
padding: 21rpx 30rpx 0;
display: flex;
flex-wrap: wrap;
justify-content: space-between;
.item-box {
&:not(:nth-child(2n)) {
margin-right: 20rpx;
}
.video-item{
.video-item {
width: 330rpx;
height: 510rpx;
margin-top: 20rpx;
@@ -104,30 +104,28 @@ export default {
height: 330rpx !important;
}
.title{
margin:0 auto;
margin-top: 20rpx;
margin: 20rpx auto 0;
font-size: 22rpx;
color: #333;
font-weight: 500;
height: 30rpx;
line-height: 30rpx;
width: 300rpx;
}
.jianjie{
// height: 60rpx;
margin:0 auto;
margin-top: 20rpx;
height: 30rpx;
margin: 20rpx auto 0;
font-size: 22rpx;
color: #666;
line-height: 30rpx;
width: 300rpx;
margin-left: 18rpx;
}
.user{
.user {
display: flex;
justify-content: space-between;
align-items: center;
margin:0 auto;
margin-top: 20rpx;
margin: 20rpx auto 0;
width: 300rpx;
position: relative;
.info {
@@ -149,82 +147,27 @@ export default {
width: 37rpx;
height: 8rpx;
}
.action {
z-index: 19;
position: absolute;
right: 0rpx;
bottom: 55rpx;
// width: 234rpx;
background: rgba(255,255,255,1);
box-shadow: 0rpx 0rpx 6rpx 0rpx rgba(35,24,21,0.12);
border-radius: 6rpx;
.bubble {
position: relative;
background-color: #fff;
&::after {
position: absolute;
right: 10rpx;
bottom: 0;
content: '';
width: 60rpx;
height: 40rpx;
background-color: inherit;
transform: rotate(45deg);
margin-top: -10rpx;
z-index: -1;
box-shadow: 0rpx 0rpx 6rpx 0rpx rgba(35,24,21,0.12);
}
> view {
padding: 9rpx 12rpx;
display: flex;
align-items: center;
&:not(:last-child) {
border-bottom: 2rpx #ECECEC solid;
}
@mixin image-class($width, $height, $right) {
width: $width;
height: $height;
margin-right: $right;
}
> image {
&:first-child {
@include image-class($width: 21rpx, $height: 22rpx, $right: 12rpx);
}
&:nth-child(2) {
@include image-class($width: 22rpx, $height: 22rpx, $right: 12rpx);
}
&:last-child {
@include image-class($width: 24rpx, $height: 20rpx, $right: 9rpx);
}
}
> text {
font-size: 20rpx;
color: rgba(51,51,51,1);
}
}
}
}
.layer {
position: fixed;
top: 0;
left: 0;
}
.header_fist {
width: 330rpx;
height: 330rpx;
position: relative;
.backs {
width: 100%;
height: 100%;
z-index: 9;
background-color: transparent;
}
}
.header_fist{
position: relative;
.backes{
position: absolute;
top: 0;
background: rgba(0,0,0,0.6);
width: 100%;
height: 100%;
color: #fff;
background-color: rgba(0, 0, 0, 0.35);
.play-icon {
z-index: 19;
position: absolute;
width: 100rpx;
height: 100rpx;
top: 50%;
left: 50%;
transform: translate(-50%, -50%);
}
}
}
}
}

View File

@@ -18,7 +18,23 @@
</view>
</view>
<scroll-view scroll-y class="integral-botom" :style="{ height: integralHeight }">
<rich-text :nodes="nodes"></rich-text>
<view class="medal-title">
<!-- <image src="../static/mine/29.png"></image> -->
<view>积分获取规则</view>
<!-- <image src="../static/mine/30.png"></image> -->
</view>
<view class="medal-content">
<rich-text :nodes="nodes"></rich-text>
</view>
<view class="medal-title">
<!-- <image src="../static/mine/29.png"></image> -->
<view>会员等级权益</view>
<!-- <image src="../static/mine/30.png"></image> -->
</view>
<view class="medal-content">
<rich-text :nodes="dengji"></rich-text>
</view>
</scroll-view>
</view>
</template>
@@ -30,6 +46,7 @@ export default {
memberInfo: {},
integralHeight: 0,
nodes: '',
dengji:""
}
},
onShow() {
@@ -47,6 +64,7 @@ export default {
if (res.errCode == 0) {
this.memberInfo = res.data;
this.nodes = common.unescapeHTML(this.memberInfo.points_rule.document_content);
this.dengji = common.unescapeHTML(res.data.grade_rule.document_content)
}
})
},
@@ -100,5 +118,25 @@ export default {
top: 251rpx;
z-index: 9;
}
.medal-title {
display: flex;
align-items: center;
justify-content: center;
margin-bottom: 52rpx;
// font-weight: bold;
> image {
width: 22rpx;
height: 22rpx;
}
> view {
font-size: 32rpx;
color: rgba(51,51,51,1);
margin: 0 30rpx;
}
}
.medal-content {
padding-bottom: 20rpx;
}
}
</style>

View File

@@ -27,9 +27,10 @@ export default {
methods: {
getMemberPointsStat() {
this.$u.api.getMemberPointsStat().then((res)=>{
console.log(res)
if (res.errCode == 0) {
this.title = res.data.grade_rule.document_title;
const nodes = res.data.grade_rule.document_content;
this.title = res.data.xunzhang_rule.document_title;
const nodes = res.data.xunzhang_rule.document_content;
this.nodes = common.unescapeHTML(nodes);
}
})

View File

@@ -9,11 +9,11 @@
<view class="integral-top">
<view>
<view class="title">总积分</view>
<view class="value">{{ memberInfo.member_points }}</view>
<view class="value">{{ memberInfo.member_points || 0 }}</view>
</view>
<view>
<view class="title">经验值</view>
<view class="value">{{ memberInfo.member_exppoints }}</view>
<view class="value">{{ memberInfo.member_exppoints || 0 }}</view>
</view>
<view @click="viewProgress">
<view class="title">预计进度</view>
@@ -24,7 +24,14 @@
</view>
</view>
<scroll-view scroll-y class="integral-botom" :style="{ height: richHeight }">
<rich-text :nodes="nodes"></rich-text>
<view class="rich-container">
<view class="title">{{ points_rule.document_title }}</view>
<rich-text :nodes="pointsNodes"></rich-text>
</view>
<view class="rich-container">
<view class="title" >{{ member_rule.document_title }}</view>
<rich-text :nodes="nodes"></rich-text>
</view>
</scroll-view>
</view>
</swiper-item>
@@ -69,7 +76,10 @@ export default {
swiperCurrent: 0,
pointslogList: [],
memberInfo: {},
pointsNodes: '',
nodes: '',
points_rule: {},
member_rule: {}
}
},
components: {
@@ -103,7 +113,10 @@ export default {
this.$u.api.getMemberPointsStat().then((res)=>{
if(res.errCode == 0) {
this.memberInfo = res.data;
this.nodes = common.unescapeHTML(this.memberInfo.points_rule.document_content);
this.nodes = common.unescapeHTML(this.memberInfo.grade_rule.document_content);
this.pointsNodes = common.unescapeHTML(this.memberInfo.points_rule.document_content);
this.points_rule = this.memberInfo.points_rule;
this.member_rule = this.memberInfo.grade_rule;
}
})
},
@@ -180,6 +193,18 @@ export default {
border-radius: 20rpx 20rpx 0rpx 0rpx;
top: 250rpx;
z-index: 9;
.rich-container {
&:not(:last-child) {
margin-bottom: 56rpx;
}
.title {
text-align: center;
font-size: 32rpx;
color: #333333;
margin-bottom: 26rpx;
// font-weight: bold;
}
}
}
}
.coupon {

View File

@@ -1,8 +1,5 @@
<template>
<view class="coupon-swiper">
<!-- <scroll-view scroll-x="true" class="classify-coupon">
<view v-for="(classify, index) in couponGroupList" :key="index" class="classify-item" :class="{ 'active': couponCurrent == index }" @click="couponTabsChange(index)">{{ classify.gc_name }}</view>
</scroll-view> -->
<u-tabs :list="couponGroupList" name="gc_name" :is-scroll="true" :current="couponCurrent" @change="couponTabsChange" active-color="#FF780F" :show-bar="false" height="88" font-size="24" inactive-color="#333333"></u-tabs>
<swiper :current="swiperCouponCurrent" @animationfinish="couponAnimationFinish" :style="{ height: swiperHeight }">
<swiper-item class="swiper-coupon-item" v-for="(_, i) in couponGroupList" :key="i">
@@ -11,17 +8,10 @@
<Coupon :couponInfo="coupon" :status='0' :type="0" @exchange="exchangeCoupon($event)"></Coupon>
</view>
<u-empty text="暂无优惠券" mode="coupon" color="#000" v-if="!couponList[i] || !couponList[i].length"></u-empty>
<u-loadmore :status="loadStatus" bgColor="#FFF" margin-bottom="60" v-if="!couponList[i] || couponList[i].length>=pageSize" @loadmore="onreachBottom"></u-loadmore>
<u-loadmore :status="loadStatus" bgColor="#FFF" margin-bottom="60" v-if="couponList[i] && couponList[i].length>=pageSize" @loadmore="onreachBottom"></u-loadmore>
</scroll-view>
</swiper-item>
</swiper>
<!-- <scroll-view scroll-y style="height: 100%;" @scrolltolower="onreachBottom" class="coupon-scroll" :style="{ height: swiperHeight }">
<view v-for="(coupon, index) in couponList" :key="index" class="coupon-item">
<Coupon :couponInfo="coupon" :status='0' :type="0" @exchange="exchangeCoupon($event)"></Coupon>
</view>
<u-loadmore :status="loadStatus" bgColor="#FFF" margin-top="20" margin-bottom="20" v-if="couponList.length>=pageSize" @loadmore="onreachBottom"></u-loadmore>
<u-empty text="暂无优惠券" mode="coupon" color="#000" v-if="!couponList.length"></u-empty>
</scroll-view> -->
</view>
</template>
<script>
@@ -49,7 +39,6 @@ export default {
},
watch: {
couponCurrent(index) {
// this.couponList = [];
const id = this.couponGroupList[index].gc_id;
this.getCouponList({ gc_id: id, load: 'reload' });
},

View File

@@ -1,77 +1,134 @@
<template>
<view class="concerns">
<view class="concerns-container">
<view v-for="(info, index) in list" :key="index">
<view class="daren-item">
<image class="head" :src="info.friend_tomavatar" @click="viewDetails(info.friend_tomid)"></image>
<text class="name" @click="viewDetails(info.friend_tomid)">{{ info.friend_tomname || '' }}</text>
<view class="guanzhu" @click="changeType(info.friend_tomid)" v-if="info.friend_followstate == 1">取消关注</view>
</view>
</view>
<view class="tabs-top u-border-bottom">
<u-tabs ref="uTabs" :show-bar="false" :list="list" font-size="32" :current="current" @change="tabsChange" :is-scroll="false"
swiperWidth="750" active-color="#FF780F"></u-tabs>
</view>
<u-empty mode="list" v-if="!list.length" color="#000" img-width="200" font-size="30" margin-top="120"></u-empty>
<scroll-view v-if="current==0" scroll-y style="height: 100%;width: 100%;" class="store" @scrolltolower="onreachBottom">
<storeViwe ref="store"></storeViwe>
</scroll-view>
<scroll-view v-else scroll-y style="height: 100%;width: 100%;" @scrolltolower="onreachBottom">
<view class="concerns-container">
<view v-for="(info, index) in daren" :key="index">
<view class="daren-item">
<image class="head" :src="info.friend_tomavatar" @click="toDetailsPage({ id: info.friend_tomid })"></image>
<text class="name" @click="toDetailsPage({ id: info.friend_tomid })">{{ info.friend_tomname || '' }}</text>
<view class="guanzhu" @click="changeType(info.friend_tomid)" v-if="info.friend_followstate == 1">取消关注</view>
</view>
</view>
<u-loadmore :status="loadStatus" bg-color="#FFFFFF" v-if="daren.length > 9" @loadmore="loadmore" />
</view>
<u-empty mode="list" v-if="!daren.length" color="#000" img-width="200" font-size="30" margin-top="200"></u-empty>
</scroll-view>
</view>
</template>
<script>
import storeViwe from './storeConcerns'
export default {
data() {
return {
list: []
list: [{ name: "店铺" }, { name: "达人" }],
daren: [],
shangjia:[],
height: 0,
show: false,
current: 0,
page: 1,
loadStatus: 'loadmore',
timer: true,
}
},
onShow() {
this.attentionMemberList();
components: {
storeViwe,
},
onShow() {
this.loadStatus = "loadmore"
this.page = 1
this.getPeopleList();
},
onLoad(){
this.setViewHeight();
},
// 下拉刷新
onPullDownRefresh() {
this.attentionMemberList();
},
methods: {
attentionMemberList() {
this.$u.api.attentionMemberList().then(res => {
uni.stopPullDownRefresh();
if(res.errCode == 0) {
this.list = res.data;
} else {
this.list = [];
}
setViewHeight() {
const res = uni.getSystemInfoSync();
this.height = res.windowHeight - (res.windowWidth / 750 * 80) + 'px';
},
// tabs通知swiper切换
tabsChange(index) {
this.current = index;
},
// scroll-view到底部加载更多
onreachBottom() {
if(this.current == 0) this.$refs.loadmore();
else if(this.current == 1) this.loadmore();
},
loadmore() {
if(!this.timer) return false;
this.timer = false;
this.loadStatus = "loading";
this.page++;
this.getPeopleList({ load: 'loadmore' }).then(length => {
this.loadStatus = "nomore";
if(length == 0) this.page--;
}).catch(() => {
this.loadStatus = "nomore";
this.page--;
})
},
viewDetails(id) {
async getPeopleList({ load = 'reload' } = {}) {
const res = await this.$u.api.attentionMemberList({
role: 3,
page: this.page
})
this.timer = true;
if(res.errCode == 0) {
if(load == 'reload') this.daren = res.data.data;
else if(load == 'loadmore') this.daren.push(...res.data.data);
}
return res.data.data.length;
},
// 取消关注
changeType(id) {
// console.log(id);
this.$u.api.attentionMember({
member_id: id
}).then(res => {
this.$u.toast(res.message);
this.getPeopleList();
})
},
toDetailsPage(id) {
this.$u.route('pageB/details/index', {
id: id
});
},
changeType(id) {
console.log(id);
this.$u.api.attentionMember({
member_id: id
}).then(res => {
this.$u.toast(res.message);
this.attentionMemberList();
})
},
},
};
</script>
<style lang="scss" scoped>
.concerns {
background-color: #FFFFFF;
.store {
background-color: #FFFFFF;
}
.concerns-container {
padding: 30rpx;
display: flex;
flex-wrap: wrap;
&:not(:nth-child(3n)) {
margin-right: 20rpx;
}
.daren-item{
margin-left: -20rpx;
.daren-item {
width: 215rpx;
height: 282rpx;
height: 270rpx;
display: flex;
flex-direction: column;
align-items: center;
background-color: #fff;
border-radius: 10rpx;
overflow: hidden;
margin-left: 20rpx;
margin-bottom: 20rpx;
box-shadow: 0rpx 0rpx 6rpx 0rpx rgba(35,24,21,0.12);
.head{
width: 80rpx;
height: 80rpx;

View File

@@ -1,7 +1,7 @@
<template>
<view class="information">
<view class="info-avatar">
<u-avatar :src="userInfo.member_avatar + '?' + new Date().getTime()" :size="120"></u-avatar>
<u-avatar :src="userInfo.member_avatar + '?' + (new Date().getTime())" :size="120"></u-avatar>
</view>
<view class="info-item">
<view class="title">昵称</view>
@@ -51,8 +51,8 @@ export default {
getUserInfo() {
this.$u.api.getMemberInfo().then(res => {
if (res.errCode == 0) {
// this.userInfo = res.data.MemberArray;
this.$set(this, 'userInfo', res.data.MemberArray);
this.userInfo = res.data.MemberArray;
// this.$set(this, 'userInfo', res.data.MemberArray);
}
})
},

View File

@@ -2,27 +2,21 @@
<view class="progress" v-if="memberInfo">
<view class="header">
<view class="line-progress">
<view class="rank-value">lv{{ memberInfo.member_level }}</view>
<view class="rank-value">lv{{ memberInfo.member_level || 0 }}</view>
<view class="line-box">
<u-line-progress :percent="percent" :show-percent="false" inactive-color="#FFFFFF" active-color="#F1A36B" height="30" :striped="true" :striped-active="true"></u-line-progress>
<text>{{ memberInfo.member_exppoints + '/' + memberInfo.next_member_level_exppoints }}</text>
<text>{{ (memberInfo.member_exppoints || 0) + '/' + (memberInfo.next_member_level_exppoints || 0) }}</text>
</view>
<view class="rank-value">lv{{ memberInfo.next_member_level }}</view>
<view class="rank-value">lv{{ memberInfo.next_member_level || 0 }}</view>
</view>
<view class="exp-value">经验值<span>{{ memberInfo.member_exppoints }}</span></view>
<view class="distance">距离下一级还需要 {{ memberInfo.next_member_level_exppoints_diff }} 经验值</view>
<view class="exp-value">经验值<span>{{ memberInfo.member_exppoints || 0 }}</span></view>
<view class="distance">距离下一级还需要 {{ memberInfo.next_member_level_exppoints_diff || '--' }} 经验值</view>
</view>
<view class="body">
<view class="title" v-if="memberInfo.level_rule">
<image src="/static/image/mine/34.png"></image>
<text>{{ memberInfo.level_rule.document_title }}</text>
<text>{{ memberInfo.level_rule.document_title || '' }}</text>
</view>
<!-- <view class="rank-list">
<view v-for="(rank, index) in rank" :key="index" class="list-item">
<view class="rank-value">lv{{ rank.level }}</view>
<view class="rank-interval"><span>经验值:</span>{{ rank.max == '--' ? rank.min + '及以上' : rank.min + '~' + rank.max }}</view>
</view>
</view> -->
<view class="rich">
<rich-text :nodes="nodes"></rich-text>
</view>
@@ -41,7 +35,6 @@ export default {
},
filters: {
percentExp(value, next) {
// console.log(rank);
let result = '0 / 0';
result = typeof(next) == 'Number'
? value + ' / ' + (value + next)

View File

@@ -16,7 +16,7 @@
<view class="item-name u-line-1">{{ item.store_name }}</view>
<view class="item-date">
<image src="@/pageE/static/mine/26.png"></image>
<view>{{ item.fav_time | date }}</view>
<view>{{ item.fav_time }}</view>
</view>
</view>
</view>

View File

@@ -0,0 +1,181 @@
<template>
<view class="collection-item">
<u-swipe-action
v-for="(item, index) in list" :key="index"
:index='index'
:show="item.show"
:options="options"
@click="removeFavorite"
@open="open"
>
<view class="item u-border-bottom" @click="viewStoreDetails(item)">
<image :src="item.friend_tomavatar"></image>
<!-- 此层wrap在此为必写的否则可能会出现标题定位错误 -->
<view class="title-wrap">
<view class="item-top u-line-1">{{ item.friend_tomname }}</view>
<view class="item-bottom">
<view class="item-date">
<image src="@/pageE/static/mine/26.png"></image>
<view>{{ item.friend_addtime }}</view>
</view>
</view>
</view>
</view>
</u-swipe-action>
<u-empty mode="list" v-if="!list.length" color="#000" img-width="200" font-size="30" margin-top="200"></u-empty>
<u-loadmore :status="loadStatus" bg-color="#FFFFFF" v-if="list.length > pageSize" @loadmore="loadmore" />
</view>
</template>
<script>
export default {
data() {
return {
pageSize: 12,
list: [],
options: [
{
text: '删除',
style: {
backgroundColor: '#FF3131'
}
}
],
page: 1,
timer: true,
loadStatus: 'loadmore',
}
},
mounted() {
this.getStoreList();
},
methods: {
viewStoreDetails(item) {
if(this.closeAction()) return false;
// console.log(this.list);
const list = this.list.filter(item => {
return item.show;
})
if(list.length) return false;
this.$u.route({
url: 'pageC/merchant/index',
params: {
id: item.friend_store_id,
}
})
},
async getStoreList({ load = 'reload' } = {}) {
const res = await this.$u.api.attentionMemberList({
role: 2,
page: this.page
})
this.timer = true;
if(res.errCode == 0) {
if(load == 'reload') this.list = res.data.data;
else if(load == 'loadmore') this.list.push(...res.data.data);
}
this.list.forEach(item => {
Object.assign(item, { show: false });
})
// console.log(this.list);
return res.data.data.length;
},
loadmore() {
if(!this.timer) return false;
this.timer = false;
this.loadStatus = "loading";
this.page++;
let promise;
promise = this.getStoreList({ load: 'loadmore' });
promise.then(length => {
this.loadStatus = "nomore";
if(length == 0) this.page--;
}).catch(() => {
this.loadStatus = "nomore";
this.page--;
})
},
removeFavorite(index) {
const id = this.list[index].friend_tomid;
this.$u.api.attentionMemberRemove({
id: id,
type: 'store'
}).then(res => {
if(res.errCode == 0) {
this.getStoreList();
} else {
this.$u.toast(res.message);
}
})
},
closeAction() {
let status = false;
this.list.map((val, idx) => {
if(val.show) {
status = true;
this.$set(this.list[idx], 'show', false);
};
})
this.$forceUpdate();
return status;
},
open(index) {
console.log(index);
// 先将正在被操作的swipeAction标记为打开状态否则由于props的特性限制
// 原本为'false',再次设置为'false'会无效
this.list[index].show = true;
this.list.map((val, idx) => {
if(index != idx) this.list[idx].show = false;
})
this.$forceUpdate();
}
},
};
</script>
<style lang="scss" scoped>
.collection-item {
width: 100%;
background-color: #ffffff;
.item {
width: 750rpx;
padding: 30rpx;
display: flex;
> image {
width: 180rpx;
height: 160rpx;
border-radius: 10rpx;
margin-right: 30rpx;
flex-shrink: 0;
}
.title-wrap {
overflow: hidden;
flex: 1;
.item-top {
width: 100%;
font-size: 30rpx;
color: rgba(51,51,51,1);
line-height: 44rpx;
margin-bottom: 54rpx;
}
.item-bottom {
width: 100%;
display: flex;
align-items: center;
justify-content: space-between;
.item-price {
font-size: 30rpx;
color: rgba(51,51,51,1);
}
.item-date {
display: flex;
align-items: center;
> image {
margin-right: 25rpx;
width: 24rpx;
height: 24rpx;
}
}
}
}
}
}
</style>

282
pageE/more/ApplyLive.vue Normal file
View File

@@ -0,0 +1,282 @@
<template>
<view class="apply-live">
<view class="basic-info">
<view>
<label for="name">姓名:</label>
<input type="text" id="name" @input="names" placeholder="请输入姓名" />
</view>
<view>
<label for="phone">手机号:</label>
<input type="number" id="phone" @input="phones" maxlength="11" placeholder="请输入手机号" />
</view>
<view>
<label for="idCard">身份证号:</label>
<input type="text" id="idCard" placeholder="请输入身份证号" @input="setIdCard" />
</view>
<view @click="show=true">
<label for="address">居住地址:</label>
<input type="text" id="address" v-model="address" disabled placeholder="请选择居住地址" />
<u-icon name="arrow-down" color="#343434" size="26" class="arrow-icon"></u-icon>
</view>
<view>
<label for="details">详细地址:</label>
<input type="text" id="details" @input="detailss" placeholder="请填写详细地址" />
</view>
</view>
<view class="other-info">
<view class="item-box specialty">
<view class="title">特长领域<text class="brief">(多选</text></view>
<view class="check-box-container">
<u-checkbox-group @change="specialtyGroupChange" active-color="#fff">
<u-checkbox
v-model="item.checked"
v-for="(item, index) in industryList" :key="index"
:name="item.name"
>{{item.name}}</u-checkbox>
</u-checkbox-group>
</view>
</view>
<view class="item-box hobby">
<view class="title">兴趣爱好<text class="brief">(多选</text></view>
<view class="check-box-container">
<u-checkbox-group @change="hobbyGroupChange" active-color="#fff">
<u-checkbox
v-model="item.checked"
v-for="(item, index) in hobbyList" :key="index"
:name="item.name"
>{{item.name}}</u-checkbox>
</u-checkbox-group>
</view>
</view>
</view>
<view class="submit-btn" @click="applyExpert">提交申请</view>
<u-select v-model="show"
mode="mutil-column-auto"
:list="areaList"
value-name="area_id"
label-name="area_name"
child-name="_child"
@confirm="setArea">
</u-select>
<u-toast ref="uToast" />
</view>
</template>
<script>
export default {
data() {
return {
show: false,
areaList: [],
name: '',
phone: '',
idCard: '',
address: '',
details: '',
industryList: [],
hobbyList: [],
checkedIndustryList: [],
checkedHobbyList: [],
isSubmit: true, // 防止多次提交
}
},
onLoad() {
this.getAreaData();
this.getIndustryList();
this.getHobbyList();
},
methods: {
names(a){
console.log(a.detail)
this.name = a.detail.value
},
phones(a){
this.phone = a.detail.value
},
setIdCard(v) {
this.idCard = v.detail.value;
},
detailss(a){
this.details = a.detail.value
},
getAreaData() {
this.$u.api.getArea().then((res)=>{
if (res.errCode == 0) {
this.areaList = res.data;
}
})
},
getIndustryList() {
this.$u.api.getIndustryList().then(res => {
res.data.forEach(element => {
this.industryList.push({
checked: false,
name: element,
});
});
})
},
getHobbyList() {
this.$u.api.getHobbyList().then(res => {
res.data.forEach(element => {
this.hobbyList.push({
checked: false,
name: element,
});
});
})
},
specialtyGroupChange(e) {
// console.log(e);
this.checkedIndustryList = e;
},
hobbyGroupChange(e) {
// console.log(e);
this.checkedHobbyList = e;
},
// 验证
validateData() {
if(this.$u.test.isEmpty(this.name)) {
this.$u.toast('姓名不能为空');
return false;
}
if(this.$u.test.isEmpty(this.phone)) {
this.$u.toast('手机号不能为空');
return false;
}
if(!this.$u.test.mobile(this.phone)) {
this.$u.toast('手机号错误');
return false;
}
if(this.$u.test.isEmpty(this.idCard)) {
this.$u.toast('身份证号不可为空');
return false;
}
// if(!this.$u.test.idCard(this.idCard)) {
// this.$u.toast('请正确填写身份证号');
// return false;
// }
// if(this.$u.test.isEmpty(this.address)) {
// this.$u.toast('地址不能为空');
// return false;
// }
// if(this.$u.test.isEmpty(this.details)) {
// this.$u.toast('详细地址不能为空');
// return false;
// }
if(!this.checkedIndustryList.length) {
this.$u.toast('行业领域不能为空');
return false;
}
if(!this.checkedHobbyList.length) {
this.$u.toast('兴趣爱好不能为空');
return false;
}
return true;
},
applyExpert() {
if(!this.isSubmit) return false;
if(!this.validateData()) return false;
this.isSubmit = false;
this.$u.api.applyExpert({
name: this.name,
mobile: this.phone,
idcard: this.idCard,
address: this.address + this.details,
industry: this.checkedIndustryList,
hobby: this.checkedHobbyList,
}).then(res => {
if(res.errCode == 0) {
this.$refs.uToast.show({
title: res.message,
back: true,
})
} else {
this.isSubmit = true;
this.$u.toast(res.message);
}
})
},
setArea(area) {
// console.log(area);
this.area_id = area[0].value;
this.city_id = area[1].value;
let temp = '';
area.forEach(e => {
temp += e.label;
});
this.address = temp;
},
}
};
</script>
<style lang="scss" scoped>
.apply-live {
min-height: calc(100vh - var(--window-top));
background-color: #ECECEC;
padding-bottom: 60rpx;
.basic-info {
> view {
background-color: #FFFFFF;
padding: 34rpx 30rpx;
display: flex;
align-items: center;
margin-bottom: 2rpx;
> label {
width: 150rpx;
margin-right: 40rpx;
font-size: 30rpx;
color: #343434;
}
> input {
flex: 1;
font-size: 28rpx;
}
.arrow-icon {
margin-left: 20rpx;
}
}
}
.other-info {
margin-bottom: 80rpx;
.item-box {
background-color: #FFFFFF;
padding: 35rpx 30rpx;
margin-bottom: 1rpx;
.title {
font-size: 30rpx;
color: #343434;
margin-bottom: 30rpx;
.brief {
color: #9A9A9A;
}
}
.check-box-container {
/deep/ .u-checkbox {
margin-bottom: 24rpx;
.u-checkbox__icon-wrap {
border-color: #C0C0C0 !important;
}
.u-checkbox__icon-wrap--checked {
.u-icon__icon {
color: #FF780F !important;
}
}
}
}
}
}
.submit-btn {
width: 690rpx;
height: 98rpx;
background: #FF7810;
border-radius: 49rpx;
font-size: 36rpx;
color: #FFFFFF;
margin: 0 auto;
display: flex;
align-items: center;
justify-content: center;
}
}
</style>

View File

@@ -5,7 +5,7 @@
<view class="suggestions">
<view class="text">{{ item.fb_content }}</view>
<view class="image">
<image v-for="(url, index) in item.fb_images" :key="index" :src="url"></image>
<image v-for="(url, index) in item.fb_images" :key="index" :src="url" mode="aspectFit" @click="previewImage(item.fb_images, index)"></image>
</view>
</view>
<view class="reply" v-if="item.is_reply">
@@ -13,7 +13,7 @@
<view class="reply-content u-line-4">{{ item.reply_content }}</view>
</view>
<view class="date">
<image src="../static/mine/26.png"></image>
<image src="../static/mine/26.png" mode="aspectFit"></image>
<view>{{ item.fb_time }}</view>
</view>
</view>
@@ -45,6 +45,13 @@ export default {
}
})
},
previewImage(urls, index) {
// console.log(urls);
uni.previewImage({
urls: urls,
current: urls[index]
});
},
},
}
</script>

315
pageE/more/EditInvoice.vue Normal file
View File

@@ -0,0 +1,315 @@
<template>
<view class="edit-invoice">
<view class="invoice-type">
<view class="title">发票类型</view>
<u-radio-group v-model="type" @change="radioGroupChange" icon-size="0" active-color="#FF780F" size="16">
<u-radio
v-for="(item, index) in list" :key="index"
:name="item.type"
:disabled="action==0"
>
{{item.name}}
</u-radio>
</u-radio-group>
</view>
<view class="info-item">
<view class="title">发票抬头</view>
<input type="text" placeholder="抬头名称或极速开票6位代码" v-model="title" />
</view>
<view class="personal" v-show="type==1">
<view class="info-item">
<view class="title">手机号</view>
<input type="text" placeholder="请输入您的手机号" maxlength="11" v-model="personalPhone" />
</view>
<view class="info-item">
<view class="title">身份证号</view>
<input type="text" placeholder="请输入您的身份证号" v-model="idCard" />
</view>
</view>
<view class="company" v-show="type==2">
<view class="info-item">
<view class="title">税号</view>
<input type="text" placeholder="纳税人识别号或社会统一征信代码" v-model="taxNumber" />
</view>
<view class="info-item">
<view class="title">单位地址</view>
<input type="text" placeholder="请输入公司地址" v-model="address" />
</view>
<view class="info-item">
<view class="title">电话号码</view>
<input type="text" placeholder="请输入公司电话" maxlength="11" v-model="companyPhone" />
</view>
<view class="info-item">
<view class="title">开户银行</view>
<input type="text" placeholder="请输入开户银行" v-model="bankDeposit" />
</view>
<view class="info-item">
<view class="title">银行账户</view>
<input type="text" placeholder="请输入银行账户" v-model="bankAccounts" />
</view>
</view>
<view class="save-btn" @click="submit">保存</view>
<u-toast ref="uToast" />
</view>
</template>
<script>
export default {
data() {
return {
invoice_id: '',
action: '', // 0 编辑 1 添加
type: '', // 发票类型
list: [{
type: 1,
name: '个人或事业单位'
}, {
type: 2,
name: '企业'
}],
title: '',
personalPhone: '',
idCard: '',
taxNumber: '',
address: '',
companyPhone: '',
bankDeposit: '',
bankAccounts: '',
}
},
onLoad(option) {
this.action = option.action;
if(option.invoice_id) {
this.type = 0;
this.invoice_id = option.invoice_id;
this.getInvoiceInfo();
} else {
this.type = 1;
}
},
methods: {
submit() {
this.action == 1 ? this.invoiceAdd() : this.invoiceEdit();
},
verificationParams() {
const phone = /^0\d{2,3}-?\d{7,8}$/;
if(this.type == 1) {
if(this.$u.test.isEmpty(this.title)) {
this.$u.toast('发票抬头不可为空');
return false;
}
if(this.$u.test.isEmpty(this.personalPhone)) {
this.$u.toast('手机号不可为空');
return false;
}
if(!this.$u.test.mobile(this.personalPhone) && !phone.test(this.personalPhone)) {
this.$u.toast('请正确填写手机号');
return false;
}
if(this.$u.test.isEmpty(this.idCard)) {
this.$u.toast('身份证号不可为空');
return false;
}
if(!this.$u.test.idCard(this.idCard)) {
this.$u.toast('请正确填写身份证号');
return false;
}
} else {
if(this.$u.test.isEmpty(this.title)) {
this.$u.toast('发票抬头不可为空');
return false;
}
if(this.$u.test.isEmpty(this.taxNumber)) {
this.$u.toast('税号不可为空');
return false;
}
if(this.$u.test.isEmpty(this.address)) {
this.$u.toast('单位地址不可为空');
return false;
}
if(this.$u.test.isEmpty(this.companyPhone)) {
this.$u.toast('电话号码不可为空');
return false;
}
if(!this.$u.test.mobile(this.companyPhone) && !phone.test(this.companyPhone)) {
this.$u.toast('请正确填写电话号码');
return false;
}
if(this.$u.test.isEmpty(this.bankDeposit)) {
this.$u.toast('开户银行不可为空');
return false;
}
if(this.$u.test.isEmpty(this.bankAccounts)) {
this.$u.toast('银行账户不可为空');
return false;
}
}
return true;
},
invoiceAdd() {
if(!this.verificationParams()) return false;
let params = {};
this.type == 1
? params = {
invoice_type: 1,
invoice_title: this.title,
invoice_code: this.idCard,
invoice_rec_mobphone: this.personalPhone,
}
: params = {
invoice_type: 2,
invoice_title: this.title,
invoice_code: this.taxNumber,
invoice_goto_addr: this.address,
invoice_rec_mobphone: this.companyPhone,
invoice_reg_bname: this.bankDeposit,
invoice_reg_baccount: this.bankAccounts,
}
this.$u.api.invoiceAdd(params).then(res => {
if(res.errCode == 0) {
this.$refs.uToast.show({
title: res.message,
back: true
})
} else {
this.$u.toast(res.message);
}
})
},
invoiceEdit() {
if(!this.verificationParams()) return false;
let params = {};
this.type == 1
? params = {
invoice_id: this.invoice_id,
invoice_type: 1,
invoice_title: this.title,
invoice_code: this.idCard,
invoice_rec_mobphone: this.personalPhone,
}
: params = {
invoice_id: this.invoice_id,
invoice_type: 2,
invoice_title: this.title,
invoice_code: this.taxNumber,
invoice_goto_addr: this.address,
invoice_rec_mobphone: this.companyPhone,
invoice_reg_bname: this.bankDeposit,
invoice_reg_baccount: this.bankAccounts,
}
this.$u.api.invoiceEdit(params).then(res => {
if(res.errCode == 0) {
this.$refs.uToast.show({
title: res.message,
back: true
})
} else {
this.$u.toast(res.message);
}
})
},
getInvoiceInfo() {
this.$u.api.getInvoiceInfo({ invoice_id: this.invoice_id }).then(res => {
if(res.errCode == 0) {
const invoice = res.data;
if(res.data.invoice_type == 1) {
this.title = invoice.invoice_title;
this.personalPhone = invoice.invoice_rec_mobphone;
this.idCard = invoice.invoice_code;
this.type = invoice.invoice_type;
} else if(res.data.invoice_type == 2) {
this.title = invoice.invoice_title;
this.taxNumber = invoice.invoice_code;
this.address = invoice.invoice_goto_addr;
this.companyPhone = invoice.invoice_rec_mobphone;
this.bankDeposit = invoice.invoice_reg_bname;
this.bankAccounts = invoice.invoice_reg_baccount;
this.type = invoice.invoice_type;
}
}
})
},
radioGroupChange(e) {
this.type = e;
}
}
};
</script>
<style lang="scss" scoped>
.edit-invoice {
min-height: calc(100vh - var(--window-top));
background: #ECECEC;
.invoice-type {
height: 98rpx;
background: #FFFFFF;
margin-bottom: 2rpx;
padding: 35rpx 30rpx;
display: flex;
align-items: center;
.title {
font-size: 30rpx;
color: #333333;
width: 120rpx;
margin-right: 50rpx;
}
.u-radio-group {
flex: 1;
/deep/ .u-radio {
.u-radio__icon-wrap {
margin: 0 20rpx;
position: relative;
background-color: #DBDBDB;
&::before {
content: '';
position: absolute;
width: 29rpx;
height: 29rpx;
top: 50%;
left: 50%;
transform: translate(-50%, -50%);
border: 1rpx solid #DBDBDB;
border-radius: 50%;
}
}
.u-radio__icon-wrap--checked {
background-color: #FF780F;
&::before {
border-color: #FF780F;
}
}
.u-radio__icon-wrap--disabled {
border: none;
}
}
}
}
.info-item {
height: 98rpx;
background: #FFFFFF;
display: flex;
align-items: center;
margin-bottom: 2rpx;
padding: 35rpx 30rpx;
.title {
font-size: 30rpx;
color: #333333;
width: 120rpx;
margin-right: 50rpx;
}
> input {
flex: 1;
font-size: 28rpx;
}
}
.save-btn {
width: 690rpx;
height: 98rpx;
background: #FF780F;
border-radius: 49rpx;
font-size: 36rpx;
color: #FFFFFF;
margin: 120rpx auto 0;
line-height: 98rpx;
text-align: center;
}
}
</style>

123
pageE/more/MineInvoice.vue Normal file
View File

@@ -0,0 +1,123 @@
<template>
<view class="invoice">
<view class="invoice-container">
<view class="invoice-item" v-for="(item, index) in invoiceList" :key="index">
<view class="title">{{ item.invoice_type == 1 ? '个人发票' : '企业发票' }}</view>
<view class="code">{{ item.invoice_title }}</view>
<view class="tool">
<view class="tool-item" @click="edit(0, item.invoice_id)">
<image src="../static/mine/24.png"></image>
<text>编辑</text>
</view>
<view class="tool-item" @click="delInvoice(item.invoice_id)">
<image src="../static/mine/25.png"></image>
<text>删除</text>
</view>
</view>
</view>
</view>
<view class="invoice-btn" @click="edit(1)">添加发票抬头</view>
</view>
</template>
<script>
export default {
data() {
return {
invoiceList: [],
}
},
onShow() {
this.getInvoiceList();
},
methods: {
getInvoiceList() {
this.$u.api.getInvoiceList().then(res => {
this.invoiceList = res.data;
})
},
delInvoice(id) {
this.$u.api.invoiceDel({ invoice_id: id }).then(res => {
if(res.errCode == 0) this.getInvoiceList();
else this.$u.toast(res.message);
})
},
edit(action, invoice_id) {
this.$u.route('/pageE/more/EditInvoice', {
action: action, // 0 编辑 1 添加
invoice_id: invoice_id,
});
}
}
};
</script>
<style lang="scss" scoped>
.invoice {
min-height: calc(100vh - var(--window-top));
background: #ECECEC;
padding-top: 20rpx;
.invoice-container {
width: 690rpx;
margin: 0 auto;
.invoice-item {
margin-bottom: 20rpx;
background-color: #ffffff;
padding: 16rpx 20rpx;
border-radius: 10rpx;
.title {
font-size: 26rpx;
color: #666666;
margin-bottom: 16rpx;
}
.code {
font-size: 28rpx;
color: #333333;
position: relative;
padding: 30rpx 0;
&::after {
position: absolute;
content: '';
width: 100%;
height: 2rpx;
background-color: #ECECEC;
bottom: 0;
left: 0;
}
}
.tool {
padding-top: 18rpx;
display: flex;
align-items: center;
justify-content: flex-end;
.tool-item {
&:not(:last-child) {
margin-right: 30rpx;
}
> image {
width: 23rpx;
height: 23rpx;
margin-right: 14rpx;
}
> text {
font-size: 24rpx;
color: #999999;
}
}
}
}
}
.invoice-btn {
width: 690rpx;
height: 98rpx;
background: #FF780F;
border-radius: 49rpx;
font-size: 36rpx;
color: #FFFFFF;
line-height: 98rpx;
text-align: center;
position: absolute;
bottom: 40rpx;
left: 50%;
transform: translate(-50%, 0);
}
}
</style>

View File

@@ -8,14 +8,15 @@
<view class="order-rate">
<view class="rate">
<view class="title">物流评分</view>
<u-rate :count="5" active-color="#FF780F" inactive-color="#CCCCCC" v-model="logistics" gutter="20" size="32"></u-rate>
<u-rate :count="5" min-count="1" active-color="#FF780F" inactive-color="#CCCCCC" v-model="logistics" gutter="20" size="32"></u-rate>
</view>
<view class="rate">
<view class="title">服务态度</view>
<u-rate :count="5" v-model="service" active-color="#FF780F" inactive-color="#CCCCCC" gutter="20" size="32"></u-rate>
<u-rate :count="5" min-count="1" v-model="service" active-color="#FF780F" inactive-color="#CCCCCC" gutter="20" size="32"></u-rate>
</view>
</view>
<view class="write-btn" @click="submitComment">发表意见</view>
<u-toast ref="uToast" />
</view>
</template>
<script>
@@ -26,13 +27,14 @@ export default {
return {
orderId: '',
count: 3, // 最大图片数量
logistics: 0, // 物流服务
service: 0, // 服务态度
logistics: 1, // 物流服务
service: 1, // 服务态度
describe: [],
content: [],
imageList: [], // 本地图片路径
goodsList: [],
uploadImageList: [], // 线上图片名字
debounce: true, // 防止多次提交
}
},
components: {
@@ -76,7 +78,7 @@ export default {
setModelKey(data) {
data.forEach(() => {
this.content.push('');
this.describe.push(0);
this.describe.push(1);
this.imageList.push([]);
})
},
@@ -123,28 +125,28 @@ export default {
})
},
verifyParams() {
let status = true;
this.goodsList.forEach((_, index) => {
if(this.$u.test.isEmpty(this.content[index])) {
this.$u.toast('内容不可为空');
return false;
status = false;
}
})
return true;
return status;
},
submitComment() {
// console.log(this.content);
// console.log(this.describe);
// console.log(this.imageList);
this.uploadImage();
// this.goodsList.forEach((_, index) => {
// })
},
addOrderEvaluate() {
if(!this.verifyParams()) return false;
if(!this.debounce) return false;
let files = [];
// console.log(this.uploadImageList);
this.uploadImageList.forEach((item, index) => {
// 赋默认值
files[index] = '';
// console.log(item);
item.forEach((img, idx) => {
@@ -161,11 +163,21 @@ export default {
scores_one: this.logistics,
scores_two: this.service,
scores_three: this.describe,
file: files,
};
console.log(params);
if(files.length) {
Object.assign(params, { file: files })
}
// console.log(params);
this.$u.api.updateOrderEvaluate(params).then(res => {
this.$u.toast(res.message);
if(res.errCode == 0) {
this.$refs.uToast.show({
title: res.message,
back: true,
})
} else {
this.$u.toast(res.message);
this.debounce = true;
}
})
},
},

View File

@@ -3,7 +3,7 @@
<view class="status" v-if="orderstate">
<view class="text">
<view class="status-text">{{ s_object[orderstate].text }}</view>
<view class="time" v-if="orderInfo.view_type == 1 || orderInfo.view_type == 9">距离结束{{ countdown }}</view>
<!-- <view class="time" v-if="orderInfo.view_type == 1 || orderInfo.view_type == 9">距离结束{{ countdown }}</view> -->
</view>
<image :src="s_object[orderstate].image"></image>
</view>
@@ -20,12 +20,12 @@
</view>
<view class="info-goods">
<view class="goods-store">
<view class="stoer-title">
<view class="stoer-title" @click="viewStoreDetails(orderInfo.extend_store.store_id)">
<image :src="orderInfo.extend_store.store_avatar" class="store-image"></image>
<view class="store-name">{{ orderInfo.extend_store.store_name }}</view>
<image src="../static/mine/21.png" class="right-icon"></image>
</view>
<view v-for="goods in orderInfo.extend_order_goods" :key="goods.goods_id">
<view v-for="goods in orderInfo.extend_order_goods" :key="goods.goods_id" @click="viewGoodsDetails(goods.goods_id)">
<view class="store-goods">
<image :src="goods.goods_image"></image>
<view class="goods-info">
@@ -59,22 +59,35 @@
<view class="title">支付方式</view>
<view class="price">{{ orderInfo.payment_name }}</view>
</view>
<view>
<view class="title">配送方式</view>
<view class="price">{{ orderInfo.member_deliver_type | getDeliverType(orderInfo.store_deliver_type) }}</view>
</view>
</view>
</view>
<view class="info-order">
<view v-if="orderInfo.extend_order_common.order_message">订单备注{{ orderInfo.extend_order_common.order_message }}</view>
<view>订单编号{{ orderInfo.order_sn }}</view>
<view>支付单号{{ orderInfo.pay_sn }}</view>
<view>创建时间{{ orderInfo.add_time | date}}</view>
<view v-if="orderInfo.member_deliver_type == 3" class="address">自提地址{{ orderInfo.extend_store.store_address }}</view>
</view>
</view>
<view class="btn" v-if="['1', '2', '4', '6', '8'].indexOf(orderstate) >= 0">
<view class="cancel" v-if="(orderstate == '4' || orderstate == '1') && orderInfo.is_refund == 1" @click="toOtherPage('RefundOrder')">申请退款</view>
<view class="cancel" v-if="orderstate == '1'" @click="toOtherPage('Logistics')">查看物流</view>
<!-- '4', '8' -->
<view class="btn" v-if="['1', '2', '4', '6'].indexOf(orderstate) >= 0">
<!-- orderstate == '4' || -->
<view class="cancel" v-if="(orderstate == '1' || orderstate == '4') && orderInfo.is_refund == 1" @click="toOtherPage('RefundOrder')">申请退款</view>
<!-- <view class="cancel" v-if="orderstate == '8'" @click="cancelOrder">取消订单</view> -->
<view class="cancel" v-if="orderstate == '1' && orderInfo.shipping_code && orderInfo.member_deliver_type != 3" @click="toOtherPage('Logistics')">查看物流</view>
<view class="logistics" v-if="orderstate == '1'" @click="confirmReceive">确认收货</view>
<view class="comment" v-if="orderstate == '2'" @click="toOtherPage('Comment')">立即评价</view>
<view class="cancel" v-if="orderstate == '6'" @click="cancelOrder">取消支付</view>
<view class="cancel" v-if="orderstate == '8'" @click="cancelOrder">取消订单</view>
<view class="payment" v-if="orderstate == '6' || orderstate == '8'" @click="payNow">立即支付</view>
<view class="phone" v-if="orderstate == '1' && orderInfo.takeawayer_mobile" @click="makePhone(orderInfo.takeawayer_mobile)">
<u-icon name="phone-fill" color="#FF780F" size="28"></u-icon>
<text>联系骑手</text>
</view>
<!-- || orderstate == '8' -->
<view class="payment" v-if="orderstate == '6'" @click="payNow">立即支付</view>
<view class="service" v-if="orderstate == '7'">联系官方客服</view>
<view class="submit" v-if="orderstate == '7'">提交官方审核</view>
</view>
@@ -84,7 +97,6 @@
export default {
data() {
return {
orderstate: '',
s_object: {
'1': {
text: '待收货',
@@ -103,7 +115,7 @@ export default {
image: '../static/mine/36.png',
},
'5': {
text: '已退款',
text: '商家已退款',
image: '../static/mine/34.png',
},
'6': {
@@ -118,11 +130,23 @@ export default {
text: '拼团中',
image: '../static/mine/37.png',
},
'9': {
text: '已取消',
image: '../static/mine/33.png',
},
'10': {
text: '商家已拒绝',
image: '../static/mine/34.png',
},
'11': {
text: '平台已退款',
image: '../static/mine/34.png',
},
},
orderInfo: {},
oid: '',
timer: '',
countdown: '', // 倒计时
countdown: '00:00:00', // 倒计时
isSpike: false, // 倒计时是否结束
}
},
@@ -138,38 +162,45 @@ export default {
beforeDestroy() {
clearInterval(this.timer);
},
methods: {
viewState(value) {
let state;
switch (value) {
case 1:
state = '6';
break;
case 2:
state = '4';
break;
case 3:
state = '1';
break;
case 4:
state = '2';
break;
case 5:
state = '3';
break;
case 6:
state = '7';
break;
case 7:
state = '5';
break;
case 9:
state = '8';
break;
default:
break;
filters: {
getDeliverType(user, store) {
let deliverType = '';
function setType(type) {
switch (type) {
case 1:
deliverType = '快递'
break;
case 2:
deliverType = '骑手'
break;
case 3:
deliverType = '自提'
break;
default:
deliverType = '-'
break;
}
}
this.orderstate = state;
setType(user);
if(store) {
setType(store);
}
return deliverType;
}
},
methods: {
viewStoreDetails(id) {
this.$u.route('pageC/merchant/index', {
id: id
});
},
viewGoodsDetails(id) {
this.$u.route({
url: 'pageB/sdetails/index',
params: {
id: id,
}
})
},
setSpikeTime(time) {
// console.log(time);
@@ -205,12 +236,12 @@ export default {
this.$u.api.getOrderInfo({
order_id: id,
}).then(res => {
console.log(res)
if(res.errCode == 0) {
this.orderInfo = res.data;
this.viewState(this.orderInfo.view_type);
this.setTitle(this.orderInfo.view_type);
if(res.data.view_type == 1) this.setSpikeTime(res.data.end_time);
else if(res.data.view_type == 9) this.setSpikeTime(res.data.pintuangroup_endtime);
// if(res.data.view_type == 1) this.setSpikeTime(res.data.end_time);
// else if(res.data.view_type == 9) this.setSpikeTime(res.data.pintuangroup_endtime);
}
uni.stopPullDownRefresh(); // 结束刷新
})
@@ -226,9 +257,10 @@ export default {
},
confirmReceive() {
this.$u.api.confirmReceive({
order_id: this.order.order_id,
order_id: this.orderInfo.order_id,
}).then(res => {
if(res.errCode == 0) {
console.log(res,"确认支付")
this.getOrderInfo(this.oid);
}
this.$u.toast(res.message);
@@ -258,9 +290,58 @@ export default {
toOtherPage(url) {
this.$u.route('/pageE/order/' + url, {
oid: this.orderInfo.order_id,
type:this.orderInfo.view_type
});
},
makePhone(phone) {
uni.makePhoneCall({
phoneNumber: phone
});
}
},
computed:{
orderstate() {
let state;
switch (this.orderInfo.view_type) {
case 1:
state = '6';
break;
case 2:
state = '4';
break;
case 3:
state = '1';
break;
case 4:
state = '2';
break;
case 5:
state = '3';
break;
case 6:
state = '7';
break;
case 7:
state = '5';
break;
case 9:
state = '8';
break;
case 10:
state = '9';
break;
case 11:
state = '10';
break;
case 12:
state = '11';
break;
default:
break;
}
return state;
},
}
};
</script>
<style lang="scss" scoped>
@@ -419,6 +500,9 @@ export default {
> view:not(:last-child) {
margin-bottom: 30rpx;
}
.address {
line-height: 40rpx;
}
}
}
.btn {
@@ -432,7 +516,7 @@ export default {
justify-content: flex-end;
padding: 19rpx 30rpx;
@mixin btn-class($width, $color) {
width: $width;
// width: $width;
height: 60rpx;
border: 2rpx solid $color;
color: $color;
@@ -455,6 +539,15 @@ export default {
.submit {
@include btn-class($width: 216rpx, $color: rgba(255,119,15,1));
}
.phone {
@include btn-class($width: 206rpx, $color: rgba(255,119,15,1));
display: flex;
align-items: center;
justify-content: center;
.u-icon {
margin-right: 10rpx;
}
}
}
}
</style>

View File

@@ -1,20 +1,19 @@
<template>
<view class="order">
<view>
<!-- <u-tabs-swiper ref="tabs" :list="list" active-color="#FF780F" :current="current" font-size="26" @change="tabsChange" height="88" :gutter="30"></u-tabs-swiper> -->
<u-tabs :list="list" name="gc_name" :is-scroll="true" :current="current" @change="tabsChange" active-color="#FF780F" :show-bar="false" height="88" font-size="26" :gutter="20" inactive-color="#333333"></u-tabs>
</view>
<swiper :current="swiperCurrent" @animationfinish="animationfinish" :style="{ height: swiperHeight }">
<swiper-item class="swiper-item" v-for="(item, index) in list" :key="index">
<scroll-view scroll-y style="height: 100%;" @scrolltolower="reachBottom" class="order-scroll">
<view v-if="orderList[index]">
<view class="item-container" v-for="order in orderList[index]" :key="order.order_id">
<view class="item-container" v-for="(order,index) in orderList[index]" :key="index">
<OrderItem :order="order" @refreshOrderList="refreshOrderList" v-if="current != 4"></OrderItem>
<TryOrderItem :order="order" @refreshOrderList="refreshOrderList" v-else></TryOrderItem>
</view>
</view>
<u-empty text="暂无订单" mode="order" color="#000000" v-if="!orderList[index] || !orderList[index].length"></u-empty>
<u-loadmore :status="loadStatus[index]" bgColor="#ECECEC" margin-bottom="20" v-if="current != 4 && (!orderList[index] || orderList[index].length>3)" class="order-loadmore"></u-loadmore>
<u-loadmore :status="loadStatus[index]" bgColor="#ECECEC" font-size="14" margin-bottom="20" v-if="current != 4 && (orderList[index] && orderList[index].length>3)" class="order-loadmore"></u-loadmore>
</scroll-view>
</swiper-item>
</swiper>
@@ -38,15 +37,15 @@ export default {
name: '试穿试送'
},{
name: '拼团中'
}, {
name: '售后'
}, {
name: '待评价'
}, {
name: '售后'
}],
orderList: [],
loadStatus: ['loadmore','loadmore','loadmore','loadmore','loadmore','loadmore','loadmore','loadmore'],
page: 0,
current: Number,
current: 0,
swiperCurrent: 0,
swiperHeight: '',
timer: true,
@@ -79,8 +78,8 @@ export default {
},
// 下拉刷新
onPullDownRefresh() {
this.refreshOrderList();
},
this.refreshOrderList();
},
methods: {
setOrderType() {
let type;
@@ -101,10 +100,10 @@ export default {
type = 9; // 拼团中
break;
case 6:
type = 8; // 售后
type = 4; // 待评价
break;
case 7:
type = 4; // 待评价
type = 8; // 售后
break;
default:
type = -1;
@@ -130,13 +129,29 @@ export default {
page: this.page,
type: type,
})
// res.data.forEach(element => {
// element.extend_order_goods.forEach(i=>{
// // console.log(i)
// })
// });
this.timer = true;
uni.stopPullDownRefresh(); // 结束刷新
if(res.errCode == 0) {
if(load == 'reload') this.orderList[this.current] = res.data;
else if(load == 'loadmore') this.orderList[this.current].push(...res.data);
if(load == 'reload'){
this.orderList[this.current] = []
this.orderList[this.current] = res.data;
}else if(load == 'loadmore'){
this.orderList[this.current].push(...res.data);
}
}
// this.orderList[this.current].forEach(element => {
// element.extend_order_goods.forEach(i=>{
// // console.log(i)
// })
// });
this.$forceUpdate();
// console.log(this.orderList);
return res.data.length;
},
@@ -157,11 +172,16 @@ export default {
const res = await this.$u.api.goodsTryOrderList({
page: this.page,
})
console.log(res)
uni.stopPullDownRefresh(); // 结束刷新
this.timer = true;
if(res.errCode == 0) {
if(load == 'reload') this.orderList[this.current] = res.data.list;
else if(load == 'loadmore') this.orderList[this.current].push(...res.data.list);
if(load == 'reload') {
this.orderList[this.current] = []
this.orderList[this.current] = res.data.list;
}else if(load == 'loadmore'){
this.orderList[this.current].push(...res.data.list);
}
}
this.$forceUpdate();
return res.data.list.length;
@@ -175,8 +195,8 @@ export default {
let promise;
// if(this.current == 6) promise = this.getAfterSaleList();
// else
// if(this.current == 4) promise = this.goodsTryOrderList();
promise = this.getOrderList();
if(this.current == 4) promise = this.goodsTryOrderList();
else promise = this.getOrderList();
promise.then(length => {
this.loadStatus.splice(this.current, 1, "nomore");
if(length == 0) this.page--;
@@ -195,8 +215,8 @@ export default {
this.current = current;
},
setViewHeight() {
const sys = uni.getSystemInfoSync();
this.swiperHeight = sys.windowHeight - 88 / 2 + 'px';
const res = uni.getSystemInfoSync();
this.swiperHeight = res.windowHeight - (88 * (res.windowWidth / 750)) + 'px';
},
}
};
@@ -207,6 +227,7 @@ export default {
background-color: #ECECEC;
display: flex;
flex-direction: column;
overflow: hidden;
.swiper-item {
.order-scroll {
.item-container {

View File

@@ -22,9 +22,10 @@
<view class="title">物流跟踪</view>
<view class="main">
<view v-for="(item, index) in list" :key="index" class="logistics-item">
<view class="info u-line-2">{{ item.content }}</view>
<view class="info">{{ item.content }}</view>
<view class="date">{{ item.kd_time }}</view>
</view>
<u-empty text="暂无物流信息" mode="data" icon-size="88" margin-top="60" v-if="!list.length"></u-empty>
</view>
</view>
</view>
@@ -43,12 +44,12 @@ export default {
methods: {
getOrderLogistics(id) {
this.$u.api.orderLogistics({ id: id }).then(res => {
this.$u.toast(res.message);
if(res.errCode == 0) {
this.expressInfo = res.data.express_info;
this.list = res.data.express_list;
} else {
this.list = [];
this.$u.toast(res.message);
}
})
}

View File

@@ -1,7 +1,26 @@
<template>
<view class="refund">
<view class="radios-container">
<u-radio-group v-model="value" @change="radioChange">
<view v-if="type == 2">
<label class="radio-view" v-for="(item, index) in goodsList" :key="index">
<view class="store_info">
<view class="info_img">
<image :src="item.goods_image" mode="">
</view>
<view class="info_txt">
<view class="content u-line-2">
{{ item.goods_name }}
</view>
<view class="much">
<text>{{ item.goods_price }}</text>
<text>x{{ item.goods_num }}</text>
</view>
</view>
</view>
</label>
</view>
<u-radio-group v-model="value" @change="radioChange" v-else>
<label class="radio-view" v-for="(item, index) in goodsList" :key="index">
<view class="radio">
<u-radio color="#F0AD4E" :name="item.goods_id" active-color="#FF780F" icon-size="24" shape="circle"></u-radio>
@@ -15,7 +34,7 @@
{{ item.goods_name }}
</view>
<view class="much">
<text>{{ item.goods_pay_price }}</text>
<text>{{ item.goods_price }}</text>
<text>x{{ item.goods_num }}</text>
</view>
</view>
@@ -24,9 +43,9 @@
</u-radio-group>
</view>
<view class="refund-details">
<view class="goods-number">
<view class="goods-number" v-if="type != 2">
<view>选择数量</view>
<u-number-box :input-width="40" :input-height="38" :size="22" bg-color="#FFFFFF" :disabled-input=true color="#FF780F" :max="goods.goods_num" v-model="num"></u-number-box>
<u-number-box :input-width="40" :input-height="38" :size="22" bg-color="#FFFFFF" :disabled-input=true color="#FF780F" :max="goods.goods_num" v-model="num" :disabled="type == 2"></u-number-box>
</view>
<view class="refund-price">
<view class="price">
@@ -57,14 +76,26 @@ export default {
value: '',
refundText: '',
num: 0,
type:0,
sel:true
}
},
computed: {
totalPrice() {
return (this.goods.goods_pay_price * this.num).toFixed(2);
if(this.type == 2){
let pac = 0;
for(let i in this.goodsList){
pac += parseFloat(this.goodsList[i].goods_pay_price) * 100 ;
}
return pac / 100;
}else{
return this.goods.goods_pay_price;
}
}
},
onLoad(option) {
this.type = 2; // 需求更改 所有订单只能全退,不可选择商品。
// this.type = option.type
this.oid = option.oid;
this.getOrderInfo(option.oid);
},
@@ -75,6 +106,7 @@ export default {
})
// console.log(goodsList);
this.goods = goodsList[0];
this.num = this.goods.goods_num;
console.log(this.goods);
},
getOrderInfo(id) {
@@ -105,27 +137,48 @@ export default {
return true;
},
applyRefund() {
if(!this.verifyParams()) return false;
if(this.type !=2 && !this.verifyParams()) return false;
// addrefundall 只需要订单id 和 说明
let params = {
order_id: this.oid,
goods_id: this.goods.goods_id,
refund_amount: Number(this.totalPrice),
// goods_id: this.goods.goods_id,
// refund_amount: Number(this.totalPrice),
reason_info: this.refundText,
goods_num: this.num,
// goods_num: this.num,
}
this.$u.api.refundOrder(params).then(res => {
if(res.errCode == 0) {
this.$refs.uToast.show({
title: res.message,
back: true,
})
} else {
this.$refs.uToast.show({
title: res.message,
type: 'error'
})
}
})
console.log(params)
if(this.type == 2){
this.$u.api.addrefundall(params).then(res => {
// console.log(JSON.stringify(res))
if(res.errCode == 0) {
this.$refs.uToast.show({
title: res.message,
type: 'success',
back: true,
})
} else {
this.$refs.uToast.show({
title: res.message,
type: 'error'
})
}
})
}else{
this.$u.api.refundOrder(params).then(res => {
if(res.errCode == 0) {
this.$refs.uToast.show({
title: res.message,
back: true,
})
} else {
this.$refs.uToast.show({
title: res.message,
type: 'error'
})
}
})
}
},
}
};
@@ -136,12 +189,17 @@ export default {
background-color: #EDEDED;
.radios-container {
margin-bottom: 20rpx;
.u-radio-group {
width: 100%;
}
.radio-view {
width: 100%;
background-color: #FFFFFF;
padding: 26rpx;
display: flex;
align-items: center;
margin-bottom: 1rpx;
box-sizing: border-box;
.radio {
margin-right: 20rpx;
}

Some files were not shown because too many files have changed in this diff Show More