Commit 8e34738c authored by Morson's avatar Morson

Merge branch 'master' of https://git.banshouhui.com/lijundan/self-support

# Conflicts:
#	src/pages/settle/file.vue
parents 4d14079a d405e12d
export default[ export default [{
{ "groupName": "女装",
"name": "女装", "item": [{
"foods": [ "required": true,
{ "fieldsTitle": "A字裙",
"name": "A字裙", "fieldsName": "name",
"key": "A字裙", "fieldsType": "input",
"icon": "https://cdn.uviewui.com/uview/common/classify/1/1.jpg", "fieldsValue": "",
"cat": 10 "key": "A字裙",
}, "icon": "https://cdn.uviewui.com/uview/common/classify/1/1.jpg",
{ "cat": 10
"name": "T恤", },
"key": "T恤", {
"icon": "https://cdn.uviewui.com/uview/common/classify/1/2.jpg", "fieldsTitle": "单选",
"cat": 10 "fieldsName": "radio",
}, "fieldsType": "radio",
{ "settings": ['车主电', '物业电', '国电'],
"name": "半身裙", "key": "T恤",
"key": "半身裙", "icon": "https://cdn.uviewui.com/uview/common/classify/1/2.jpg",
"icon": "https://cdn.uviewui.com/uview/common/classify/1/3.jpg", "cat": 10
"cat": 10 },
}, {
{ "fieldsTitle": "多选",
"name": "衬衫", "fieldsName": "checkbox",
"key": "衬衫", "fieldsType": "checkbox",
"icon": "https://cdn.uviewui.com/uview/common/classify/1/4.jpg", "settings": ['车主电', '物业电', '国电'],
"cat": 10 "key": "半身裙",
}, "icon": "https://cdn.uviewui.com/uview/common/classify/1/3.jpg",
{ "cat": 10
"name": "短裙", },
"key": "短裙", {
"icon": "https://cdn.uviewui.com/uview/common/classify/1/5.jpg", "fieldsTitle": "选择框",
"cat": 10 "fieldsName": "select",
}, "fieldsType": "select",
{ "settings": ['车主电', '物业电', '国电'],
"name": "阔腿裤", "key": "衬衫",
"key": "阔腿裤", "icon": "https://cdn.uviewui.com/uview/common/classify/1/4.jpg",
"icon": "https://cdn.uviewui.com/uview/common/classify/1/6.jpg", "cat": 10
"cat": 10 },
}, {
{ "fieldsTitle": "文件选择",
"name": "连衣裙", "fieldsName": "file",
"key": "连衣裙", "fieldsType": "file",
"icon": "https://cdn.uviewui.com/uview/common/classify/1/7.jpg", "key": "短裙",
"cat": 10 "icon": "https://cdn.uviewui.com/uview/common/classify/1/5.jpg",
}, "cat": 10
{ },
"name": "妈妈装", {
"key": "妈妈装", "fieldsTitle": "阔腿裤",
"icon": "https://cdn.uviewui.com/uview/common/classify/1/8.jpg", "key": "阔腿裤",
"cat": 10 "icon": "https://cdn.uviewui.com/uview/common/classify/1/6.jpg",
}, "cat": 10
{ },
"name": "牛仔裤", {
"key": "牛仔裤", "fieldsTitle": "连衣裙",
"icon": "https://cdn.uviewui.com/uview/common/classify/1/9.jpg", "key": "连衣裙",
"cat": 10 "icon": "https://cdn.uviewui.com/uview/common/classify/1/7.jpg",
}, "cat": 10
{ },
"name": "情侣装", {
"key": "情侣装", "fieldsTitle": "妈妈装",
"icon": "https://cdn.uviewui.com/uview/common/classify/1/10.jpg", "key": "妈妈装",
"cat": 10 "icon": "https://cdn.uviewui.com/uview/common/classify/1/8.jpg",
}, "cat": 10
{ },
"name": "休闲裤", {
"key": "休闲裤", "fieldsTitle": "牛仔裤",
"icon": "https://cdn.uviewui.com/uview/common/classify/1/11.jpg", "key": "牛仔裤",
"cat": 10 "icon": "https://cdn.uviewui.com/uview/common/classify/1/9.jpg",
}, "cat": 10
{ },
"name": "雪纺衫", {
"key": "雪纺衫", "fieldsTitle": "情侣装",
"icon": "https://cdn.uviewui.com/uview/common/classify/1/12.jpg", "key": "情侣装",
"cat": 10 "icon": "https://cdn.uviewui.com/uview/common/classify/1/10.jpg",
}, "cat": 10
{ },
"name": "防晒衣", {
"key": "防晒衣", "fieldsTitle": "休闲裤",
"icon": "https://cdn.uviewui.com/uview/common/classify/1/13.jpg", "key": "休闲裤",
"cat": 10 "icon": "https://cdn.uviewui.com/uview/common/classify/1/11.jpg",
}, "cat": 10
{ },
"name": "礼服/婚纱", {
"key": "礼服婚纱", "fieldsTitle": "雪纺衫",
"icon": "https://cdn.uviewui.com/uview/common/classify/1/14.jpg", "key": "雪纺衫",
"cat": 10 "icon": "https://cdn.uviewui.com/uview/common/classify/1/12.jpg",
} "cat": 10
] },
}, {
{ "fieldsTitle": "防晒衣",
"name": "美食", "key": "防晒衣",
"foods": [ "icon": "https://cdn.uviewui.com/uview/common/classify/1/13.jpg",
{ "cat": 10
"name": "火锅", },
"key": "火锅", {
"icon": "https://cdn.uviewui.com/uview/common/classify/2/1.jpg", "fieldsTitle": "礼服/婚纱",
"cat": 6 "key": "礼服婚纱",
}, "icon": "https://cdn.uviewui.com/uview/common/classify/1/14.jpg",
{ "cat": 10
"name": "糕点饼干", }
"key": "糕点饼干", ]
"icon": "https://cdn.uviewui.com/uview/common/classify/2/2.jpg", },
"cat": 6 {
}, "groupName": "美食",
{ "item": [{
"name": "坚果果干", "fieldsTitle": "火锅",
"key": "坚果果干", "key": "火锅",
"icon": "https://cdn.uviewui.com/uview/common/classify/2/3.jpg", "icon": "https://cdn.uviewui.com/uview/common/classify/2/1.jpg",
"cat": 6 "cat": 6
}, },
{ {
"name": "酒类", "fieldsTitle": "糕点饼干",
"key": "酒类", "key": "糕点饼干",
"icon": "https://cdn.uviewui.com/uview/common/classify/2/4.jpg", "icon": "https://cdn.uviewui.com/uview/common/classify/2/2.jpg",
"cat": 6 "cat": 6
}, },
{ {
"name": "辣条", "fieldsTitle": "坚果果干",
"key": "辣条", "key": "坚果果干",
"icon": "https://cdn.uviewui.com/uview/common/classify/2/5.jpg", "icon": "https://cdn.uviewui.com/uview/common/classify/2/3.jpg",
"cat": 6 "cat": 6
}, },
{ {
"name": "大礼包", "fieldsTitle": "酒类",
"key": "大礼包", "key": "酒类",
"icon": "https://cdn.uviewui.com/uview/common/classify/2/6.jpg", "icon": "https://cdn.uviewui.com/uview/common/classify/2/4.jpg",
"cat": 6 "cat": 6
}, },
{ {
"name": "精品茗茶", "fieldsTitle": "辣条",
"key": "茶", "key": "辣条",
"icon": "https://cdn.uviewui.com/uview/common/classify/2/7.jpg", "icon": "https://cdn.uviewui.com/uview/common/classify/2/5.jpg",
"cat": 6 "cat": 6
}, },
{ {
"name": "休闲食品", "fieldsTitle": "大礼包",
"key": "休闲食品", "key": "大礼包",
"icon": "https://cdn.uviewui.com/uview/common/classify/2/8.jpg", "icon": "https://cdn.uviewui.com/uview/common/classify/2/6.jpg",
"cat": 6 "cat": 6
}, },
{ {
"name": "糖果巧克力", "fieldsTitle": "精品茗茶",
"key": "糖果巧克力", "key": "茶",
"icon": "https://cdn.uviewui.com/uview/common/classify/2/9.jpg", "icon": "https://cdn.uviewui.com/uview/common/classify/2/7.jpg",
"cat": 6 "cat": 6
}, },
{ {
"name": "方便速食", "fieldsTitle": "休闲食品",
"key": "方便速食", "key": "休闲食品",
"icon": "https://cdn.uviewui.com/uview/common/classify/2/10.jpg", "icon": "https://cdn.uviewui.com/uview/common/classify/2/8.jpg",
"cat": 6 "cat": 6
}, },
{ {
"name": "营养代餐", "fieldsTitle": "糖果巧克力",
"key": "营养代餐", "key": "糖果巧克力",
"icon": "https://cdn.uviewui.com/uview/common/classify/2/11.jpg", "icon": "https://cdn.uviewui.com/uview/common/classify/2/9.jpg",
"cat": 6 "cat": 6
}, },
{ {
"name": "粮油副食", "fieldsTitle": "方便速食",
"key": "粮油", "key": "方便速食",
"icon": "https://cdn.uviewui.com/uview/common/classify/2/12.jpg", "icon": "https://cdn.uviewui.com/uview/common/classify/2/10.jpg",
"cat": 6 "cat": 6
}, },
{ {
"name": "生鲜水果", "fieldsTitle": "营养代餐",
"key": "水果", "key": "营养代餐",
"icon": "https://cdn.uviewui.com/uview/common/classify/2/13.jpg", "icon": "https://cdn.uviewui.com/uview/common/classify/2/11.jpg",
"cat": 6 "cat": 6
}, },
{ {
"name": "饮品", "fieldsTitle": "粮油副食",
"key": "饮品", "key": "粮油",
"icon": "https://cdn.uviewui.com/uview/common/classify/2/14.jpg", "icon": "https://cdn.uviewui.com/uview/common/classify/2/12.jpg",
"cat": 6 "cat": 6
} },
] {
}, "fieldsTitle": "生鲜水果",
{ "key": "水果",
"name": "美妆", "icon": "https://cdn.uviewui.com/uview/common/classify/2/13.jpg",
"foods": [ "cat": 6
{ },
"name": "化妆刷", {
"key": "化妆刷", "fieldsTitle": "饮品",
"icon": "https://cdn.uviewui.com/uview/common/classify/3/1.jpg", "key": "饮品",
"cat": 3 "icon": "https://cdn.uviewui.com/uview/common/classify/2/14.jpg",
}, "cat": 6
{ }
"name": "粉底", ]
"key": "粉底", },
"icon": "https://cdn.uviewui.com/uview/common/classify/3/2.jpg", {
"cat": 3 "groupName": "美妆",
}, "item": [{
{ "fieldsTitle": "化妆刷",
"name": "洗发护发", "key": "化妆刷",
"key": "洗发护发", "icon": "https://cdn.uviewui.com/uview/common/classify/3/1.jpg",
"icon": "https://cdn.uviewui.com/uview/common/classify/3/3.jpg", "cat": 3
"cat": 3 },
}, {
{ "fieldsTitle": "粉底",
"name": "美容工具", "key": "粉底",
"key": "美容工具", "icon": "https://cdn.uviewui.com/uview/common/classify/3/2.jpg",
"icon": "https://cdn.uviewui.com/uview/common/classify/3/4.jpg", "cat": 3
"cat": 3 },
}, {
{ "fieldsTitle": "洗发护发",
"name": "眼部护理", "key": "洗发护发",
"key": "眼部护理", "icon": "https://cdn.uviewui.com/uview/common/classify/3/3.jpg",
"icon": "https://cdn.uviewui.com/uview/common/classify/3/5.jpg", "cat": 3
"cat": 3 },
}, {
{ "fieldsTitle": "美容工具",
"name": "眉妆", "key": "美容工具",
"key": "眉妆", "icon": "https://cdn.uviewui.com/uview/common/classify/3/4.jpg",
"icon": "https://cdn.uviewui.com/uview/common/classify/3/6.jpg", "cat": 3
"cat": 3 },
}, {
{ "fieldsTitle": "眼部护理",
"name": "卸妆品", "key": "眼部护理",
"key": "卸妆品", "icon": "https://cdn.uviewui.com/uview/common/classify/3/5.jpg",
"icon": "https://cdn.uviewui.com/uview/common/classify/3/7.jpg", "cat": 3
"cat": 3 },
}, {
{ "fieldsTitle": "眉妆",
"name": "基础护肤", "key": "眉妆",
"key": "基础护肤", "icon": "https://cdn.uviewui.com/uview/common/classify/3/6.jpg",
"icon": "https://cdn.uviewui.com/uview/common/classify/3/8.jpg", "cat": 3
"cat": 3 },
}, {
{ "fieldsTitle": "卸妆品",
"name": "眼妆", "key": "卸妆品",
"key": "眼妆", "icon": "https://cdn.uviewui.com/uview/common/classify/3/7.jpg",
"icon": "https://cdn.uviewui.com/uview/common/classify/3/9.jpg", "cat": 3
"cat": 3 },
}, {
{ "fieldsTitle": "基础护肤",
"name": "唇妆", "key": "基础护肤",
"key": "唇妆", "icon": "https://cdn.uviewui.com/uview/common/classify/3/8.jpg",
"icon": "https://cdn.uviewui.com/uview/common/classify/3/10.jpg", "cat": 3
"cat": 3 },
}, {
{ "fieldsTitle": "眼妆",
"name": "面膜", "key": "眼妆",
"key": "面膜", "icon": "https://cdn.uviewui.com/uview/common/classify/3/9.jpg",
"icon": "https://cdn.uviewui.com/uview/common/classify/3/11.jpg", "cat": 3
"cat": 3 },
}, {
{ "fieldsTitle": "唇妆",
"name": "沐浴用品", "key": "唇妆",
"key": "沐浴用品", "icon": "https://cdn.uviewui.com/uview/common/classify/3/10.jpg",
"icon": "https://cdn.uviewui.com/uview/common/classify/3/12.jpg", "cat": 3
"cat": 3 },
}, {
{ "fieldsTitle": "面膜",
"name": "护肤套装", "key": "面膜",
"key": "护肤套装", "icon": "https://cdn.uviewui.com/uview/common/classify/3/11.jpg",
"icon": "https://cdn.uviewui.com/uview/common/classify/3/13.jpg", "cat": 3
"cat": 3 },
}, {
{ "fieldsTitle": "沐浴用品",
"name": "防晒品", "key": "沐浴用品",
"key": "防晒品", "icon": "https://cdn.uviewui.com/uview/common/classify/3/12.jpg",
"icon": "https://cdn.uviewui.com/uview/common/classify/3/14.jpg", "cat": 3
"cat": 3 },
}, {
{ "fieldsTitle": "护肤套装",
"name": "美甲", "key": "护肤套装",
"key": "美甲", "icon": "https://cdn.uviewui.com/uview/common/classify/3/13.jpg",
"icon": "https://cdn.uviewui.com/uview/common/classify/3/15.jpg", "cat": 3
"cat": 3 },
} {
"fieldsTitle": "防晒品",
"key": "防晒品",
"icon": "https://cdn.uviewui.com/uview/common/classify/3/14.jpg",
"cat": 3
},
{
"fieldsTitle": "美甲",
"key": "美甲",
"icon": "https://cdn.uviewui.com/uview/common/classify/3/15.jpg",
"cat": 3
}
] ]
}, },
{ {
"name": "居家日用", "groupName": "居家日用",
"foods": [ "item": [{
{ "fieldsTitle": "垃圾袋",
"name": "垃圾袋", "key": "垃圾袋",
"key": "垃圾袋", "icon": "https://cdn.uviewui.com/uview/common/classify/4/1.jpg",
"icon": "https://cdn.uviewui.com/uview/common/classify/4/1.jpg", "cat": 4
"cat": 4 },
}, {
{ "fieldsTitle": "纸巾",
"name": "纸巾", "key": "纸巾",
"key": "纸巾", "icon": "https://cdn.uviewui.com/uview/common/classify/4/2.jpg",
"icon": "https://cdn.uviewui.com/uview/common/classify/4/2.jpg", "cat": 4
"cat": 4 },
}, {
{ "fieldsTitle": "驱蚊用品",
"name": "驱蚊用品", "key": "驱蚊用品",
"key": "驱蚊用品", "icon": "https://cdn.uviewui.com/uview/common/classify/4/3.jpg",
"icon": "https://cdn.uviewui.com/uview/common/classify/4/3.jpg", "cat": 4
"cat": 4 },
}, {
{ "fieldsTitle": "收纳神器",
"name": "收纳神器", "key": "收纳神器",
"key": "收纳神器", "icon": "https://cdn.uviewui.com/uview/common/classify/4/4.jpg",
"icon": "https://cdn.uviewui.com/uview/common/classify/4/4.jpg", "cat": 4
"cat": 4 },
}, {
{ "fieldsTitle": "厨房用品",
"name": "厨房用品", "key": "厨房用品",
"key": "厨房用品", "icon": "https://cdn.uviewui.com/uview/common/classify/4/5.jpg",
"icon": "https://cdn.uviewui.com/uview/common/classify/4/5.jpg", "cat": 4
"cat": 4 },
}, {
{ "fieldsTitle": "厨房烹饪",
"name": "厨房烹饪", "key": "烹饪",
"key": "烹饪", "icon": "https://cdn.uviewui.com/uview/common/classify/4/6.jpg",
"icon": "https://cdn.uviewui.com/uview/common/classify/4/6.jpg", "cat": 4
"cat": 4 },
}, {
{ "fieldsTitle": "衣物晾晒",
"name": "衣物晾晒", "key": "衣物晾晒",
"key": "衣物晾晒", "icon": "https://cdn.uviewui.com/uview/common/classify/4/7.jpg",
"icon": "https://cdn.uviewui.com/uview/common/classify/4/7.jpg", "cat": 4
"cat": 4 },
}, {
{ "fieldsTitle": "衣物护理",
"name": "衣物护理", "key": "衣物护理",
"key": "衣物护理", "icon": "https://cdn.uviewui.com/uview/common/classify/4/8.jpg",
"icon": "https://cdn.uviewui.com/uview/common/classify/4/8.jpg", "cat": 4
"cat": 4 },
}, {
{ "fieldsTitle": "宠物用品",
"name": "宠物用品", "key": "宠物用品",
"key": "宠物用品", "icon": "https://cdn.uviewui.com/uview/common/classify/4/9.jpg",
"icon": "https://cdn.uviewui.com/uview/common/classify/4/9.jpg", "cat": 4
"cat": 4 },
}, {
{ "fieldsTitle": "医药保健",
"name": "医药保健", "key": "医药",
"key": "医药", "icon": "https://cdn.uviewui.com/uview/common/classify/4/10.jpg",
"icon": "https://cdn.uviewui.com/uview/common/classify/4/10.jpg", "cat": 4
"cat": 4 },
}, {
{ "fieldsTitle": "日用百货",
"name": "日用百货", "key": "百货",
"key": "百货", "icon": "https://cdn.uviewui.com/uview/common/classify/4/11.jpg",
"icon": "https://cdn.uviewui.com/uview/common/classify/4/11.jpg", "cat": 4
"cat": 4 },
}, {
{ "fieldsTitle": "清洁用品",
"name": "清洁用品", "key": "清洁",
"key": "清洁", "icon": "https://cdn.uviewui.com/uview/common/classify/4/12.jpg",
"icon": "https://cdn.uviewui.com/uview/common/classify/4/12.jpg", "cat": 4
"cat": 4 },
}, {
{ "fieldsTitle": "绿植园艺",
"name": "绿植园艺", "key": "绿植",
"key": "绿植", "icon": "https://cdn.uviewui.com/uview/common/classify/4/13.jpg",
"icon": "https://cdn.uviewui.com/uview/common/classify/4/13.jpg", "cat": 4
"cat": 4 }
} ]
] },
}, {
{ "groupName": "男装",
"name": "男装", "item": [{
"foods": [ "fieldsTitle": "爸爸装",
{ "key": "爸爸装",
"name": "爸爸装", "icon": "https://cdn.uviewui.com/uview/common/classify/5/1.jpg",
"key": "爸爸装", "cat": 12
"icon": "https://cdn.uviewui.com/uview/common/classify/5/1.jpg", },
"cat": 12 {
}, "fieldsTitle": "牛仔裤",
{ "key": "牛仔裤",
"name": "牛仔裤", "icon": "https://cdn.uviewui.com/uview/common/classify/5/2.jpg",
"key": "牛仔裤", "cat": 12
"icon": "https://cdn.uviewui.com/uview/common/classify/5/2.jpg", },
"cat": 12 {
}, "fieldsTitle": "衬衫",
{ "key": "衬衫",
"name": "衬衫", "icon": "https://cdn.uviewui.com/uview/common/classify/5/3.jpg",
"key": "衬衫", "cat": 12
"icon": "https://cdn.uviewui.com/uview/common/classify/5/3.jpg", },
"cat": 12 {
}, "fieldsTitle": "休闲裤",
{ "key": "休闲裤",
"name": "休闲裤", "icon": "https://cdn.uviewui.com/uview/common/classify/5/4.jpg",
"key": "休闲裤", "cat": 12
"icon": "https://cdn.uviewui.com/uview/common/classify/5/4.jpg", },
"cat": 12 {
}, "fieldsTitle": "外套",
{ "key": "外套",
"name": "外套", "icon": "https://cdn.uviewui.com/uview/common/classify/5/5.jpg",
"key": "外套", "cat": 12
"icon": "https://cdn.uviewui.com/uview/common/classify/5/5.jpg", },
"cat": 12 {
}, "fieldsTitle": "T恤",
{ "key": "T恤",
"name": "T恤", "icon": "https://cdn.uviewui.com/uview/common/classify/5/6.jpg",
"key": "T恤", "cat": 12
"icon": "https://cdn.uviewui.com/uview/common/classify/5/6.jpg", },
"cat": 12 {
}, "fieldsTitle": "套装",
{ "key": "套装",
"name": "套装", "icon": "https://cdn.uviewui.com/uview/common/classify/5/7.jpg",
"key": "套装", "cat": 12
"icon": "https://cdn.uviewui.com/uview/common/classify/5/7.jpg", },
"cat": 12 {
}, "fieldsTitle": "运动裤",
{ "key": "运动裤",
"name": "运动裤", "icon": "https://cdn.uviewui.com/uview/common/classify/5/8.jpg",
"key": "运动裤", "cat": 12
"icon": "https://cdn.uviewui.com/uview/common/classify/5/8.jpg", },
"cat": 12 {
}, "fieldsTitle": "马甲/背心",
{ "key": "马甲背心",
"name": "马甲/背心", "icon": "https://cdn.uviewui.com/uview/common/classify/5/9.jpg",
"key": "马甲背心", "cat": 12
"icon": "https://cdn.uviewui.com/uview/common/classify/5/9.jpg", },
"cat": 12 {
}, "fieldsTitle": "POLO衫",
{ "key": "POLO衫",
"name": "POLO衫", "icon": "https://cdn.uviewui.com/uview/common/classify/5/10.jpg",
"key": "POLO衫", "cat": 12
"icon": "https://cdn.uviewui.com/uview/common/classify/5/10.jpg", },
"cat": 12 {
}, "fieldsTitle": "商务装",
{ "key": "商务装",
"name": "商务装", "icon": "https://cdn.uviewui.com/uview/common/classify/5/11.jpg",
"key": "商务装", "cat": 12
"icon": "https://cdn.uviewui.com/uview/common/classify/5/11.jpg", }
"cat": 12 ]
} },
] {
}, "groupName": "鞋品",
{ "item": [{
"name": "鞋品", "fieldsTitle": "单鞋",
"foods": [ "key": "单鞋",
{ "icon": "https://cdn.uviewui.com/uview/common/classify/6/1.jpg",
"name": "单鞋", "cat": 5
"key": "单鞋", },
"icon": "https://cdn.uviewui.com/uview/common/classify/6/1.jpg", {
"cat": 5 "fieldsTitle": "皮鞋",
}, "key": "皮鞋",
{ "icon": "https://cdn.uviewui.com/uview/common/classify/6/2.jpg",
"name": "皮鞋", "cat": 5
"key": "皮鞋", },
"icon": "https://cdn.uviewui.com/uview/common/classify/6/2.jpg", {
"cat": 5 "fieldsTitle": "帆布鞋",
}, "key": "帆布鞋",
{ "icon": "https://cdn.uviewui.com/uview/common/classify/6/3.jpg",
"name": "帆布鞋", "cat": 5
"key": "帆布鞋", },
"icon": "https://cdn.uviewui.com/uview/common/classify/6/3.jpg", {
"cat": 5 "fieldsTitle": "北京老布鞋",
}, "key": "北京老布鞋",
{ "icon": "https://cdn.uviewui.com/uview/common/classify/6/4.jpg",
"name": "北京老布鞋", "cat": 5
"key": "北京老布鞋", },
"icon": "https://cdn.uviewui.com/uview/common/classify/6/4.jpg", {
"cat": 5 "fieldsTitle": "运动鞋",
}, "key": "运动鞋",
{ "icon": "https://cdn.uviewui.com/uview/common/classify/6/5.jpg",
"name": "运动鞋", "cat": 5
"key": "运动鞋", },
"icon": "https://cdn.uviewui.com/uview/common/classify/6/5.jpg", {
"cat": 5 "fieldsTitle": "拖鞋",
}, "key": "拖鞋",
{ "icon": "https://cdn.uviewui.com/uview/common/classify/6/6.jpg",
"name": "拖鞋", "cat": 5
"key": "拖鞋", },
"icon": "https://cdn.uviewui.com/uview/common/classify/6/6.jpg", {
"cat": 5 "fieldsTitle": "凉鞋",
}, "key": "凉鞋",
{ "icon": "https://cdn.uviewui.com/uview/common/classify/6/7.jpg",
"name": "凉鞋", "cat": 5
"key": "凉鞋", },
"icon": "https://cdn.uviewui.com/uview/common/classify/6/7.jpg", {
"cat": 5 "fieldsTitle": "休闲鞋",
}, "key": "休闲鞋",
{ "icon": "https://cdn.uviewui.com/uview/common/classify/6/8.jpg",
"name": "休闲鞋", "cat": 5
"key": "休闲鞋", },
"icon": "https://cdn.uviewui.com/uview/common/classify/6/8.jpg", {
"cat": 5 "fieldsTitle": "高跟鞋",
}, "key": "高跟鞋",
{ "icon": "https://cdn.uviewui.com/uview/common/classify/6/9.jpg",
"name": "高跟鞋", "cat": 5
"key": "高跟鞋", },
"icon": "https://cdn.uviewui.com/uview/common/classify/6/9.jpg", {
"cat": 5 "fieldsTitle": "老人鞋",
}, "key": "老人鞋",
{ "icon": "https://cdn.uviewui.com/uview/common/classify/6/10.jpg",
"name": "老人鞋", "cat": 5
"key": "老人鞋", },
"icon": "https://cdn.uviewui.com/uview/common/classify/6/10.jpg", {
"cat": 5 "fieldsTitle": "懒人鞋",
}, "key": "懒人鞋",
{ "icon": "https://cdn.uviewui.com/uview/common/classify/6/11.jpg",
"name": "懒人鞋", "cat": 5
"key": "懒人鞋", }
"icon": "https://cdn.uviewui.com/uview/common/classify/6/11.jpg", ]
"cat": 5 },
} {
] "groupName": "数码家电",
}, "item": [{
{ "fieldsTitle": "数据线",
"name": "数码家电", "key": "数据线",
"foods": [ "icon": "https://cdn.uviewui.com/uview/common/classify/7/1.jpg",
{ "cat": 8
"name": "数据线", },
"key": "数据线", {
"icon": "https://cdn.uviewui.com/uview/common/classify/7/1.jpg", "fieldsTitle": "耳机",
"cat": 8 "key": "耳机",
}, "icon": "https://cdn.uviewui.com/uview/common/classify/7/2.jpg",
{ "cat": 8
"name": "耳机", },
"key": "耳机", {
"icon": "https://cdn.uviewui.com/uview/common/classify/7/2.jpg", "fieldsTitle": "生活家电",
"cat": 8 "key": "家电",
}, "icon": "https://cdn.uviewui.com/uview/common/classify/7/3.jpg",
{ "cat": 8
"name": "生活家电", },
"key": "家电", {
"icon": "https://cdn.uviewui.com/uview/common/classify/7/3.jpg", "fieldsTitle": "电风扇",
"cat": 8 "key": "电风扇",
}, "icon": "https://cdn.uviewui.com/uview/common/classify/7/4.jpg",
{ "cat": 8
"name": "电风扇", },
"key": "电风扇", {
"icon": "https://cdn.uviewui.com/uview/common/classify/7/4.jpg", "fieldsTitle": "电吹风",
"cat": 8 "key": "电吹风",
}, "icon": "https://cdn.uviewui.com/uview/common/classify/7/5.jpg",
{ "cat": 8
"name": "电吹风", },
"key": "电吹风", {
"icon": "https://cdn.uviewui.com/uview/common/classify/7/5.jpg", "fieldsTitle": "手机壳",
"cat": 8 "key": "手机壳",
}, "icon": "https://cdn.uviewui.com/uview/common/classify/7/6.jpg",
{ "cat": 8
"name": "手机壳", },
"key": "手机壳", {
"icon": "https://cdn.uviewui.com/uview/common/classify/7/6.jpg", "fieldsTitle": "榨汁机",
"cat": 8 "key": "榨汁机",
}, "icon": "https://cdn.uviewui.com/uview/common/classify/7/7.jpg",
{ "cat": 8
"name": "榨汁机", },
"key": "榨汁机", {
"icon": "https://cdn.uviewui.com/uview/common/classify/7/7.jpg", "fieldsTitle": "小家电",
"cat": 8 "key": "小家电",
}, "icon": "https://cdn.uviewui.com/uview/common/classify/7/8.jpg",
{ "cat": 8
"name": "小家电", },
"key": "小家电", {
"icon": "https://cdn.uviewui.com/uview/common/classify/7/8.jpg", "fieldsTitle": "数码电子",
"cat": 8 "key": "数码",
}, "icon": "https://cdn.uviewui.com/uview/common/classify/7/9.jpg",
{ "cat": 8
"name": "数码电子", },
"key": "数码", {
"icon": "https://cdn.uviewui.com/uview/common/classify/7/9.jpg", "fieldsTitle": "电饭锅",
"cat": 8 "key": "电饭锅",
}, "icon": "https://cdn.uviewui.com/uview/common/classify/7/10.jpg",
{ "cat": 8
"name": "电饭锅", },
"key": "电饭锅", {
"icon": "https://cdn.uviewui.com/uview/common/classify/7/10.jpg", "fieldsTitle": "手机支架",
"cat": 8 "key": "手机支架",
}, "icon": "https://cdn.uviewui.com/uview/common/classify/7/11.jpg",
{ "cat": 8
"name": "手机支架", },
"key": "手机支架", {
"icon": "https://cdn.uviewui.com/uview/common/classify/7/11.jpg", "fieldsTitle": "剃须刀",
"cat": 8 "key": "剃须刀",
}, "icon": "https://cdn.uviewui.com/uview/common/classify/7/12.jpg",
{ "cat": 8
"name": "剃须刀", },
"key": "剃须刀", {
"icon": "https://cdn.uviewui.com/uview/common/classify/7/12.jpg", "fieldsTitle": "充电宝",
"cat": 8 "key": "充电宝",
}, "icon": "https://cdn.uviewui.com/uview/common/classify/7/13.jpg",
{ "cat": 8
"name": "充电宝", },
"key": "充电宝", {
"icon": "https://cdn.uviewui.com/uview/common/classify/7/13.jpg", "fieldsTitle": "手机配件",
"cat": 8 "key": "手机配件",
}, "icon": "https://cdn.uviewui.com/uview/common/classify/7/14.jpg",
{ "cat": 8
"name": "手机配件", }
"key": "手机配件", ]
"icon": "https://cdn.uviewui.com/uview/common/classify/7/14.jpg", },
"cat": 8 {
} "groupName": "母婴",
] "item": [{
}, "fieldsTitle": "婴童服饰",
{ "key": "衣服",
"name": "母婴", "icon": "https://cdn.uviewui.com/uview/common/classify/8/1.jpg",
"foods": [ "cat": 2
{ },
"name": "婴童服饰", {
"key": "衣服", "fieldsTitle": "玩具乐器",
"icon": "https://cdn.uviewui.com/uview/common/classify/8/1.jpg", "key": "玩具乐器",
"cat": 2 "icon": "https://cdn.uviewui.com/uview/common/classify/8/2.jpg",
}, "cat": 2
{ },
"name": "玩具乐器", {
"key": "玩具乐器", "fieldsTitle": "尿不湿",
"icon": "https://cdn.uviewui.com/uview/common/classify/8/2.jpg", "key": "尿不湿",
"cat": 2 "icon": "https://cdn.uviewui.com/uview/common/classify/8/3.jpg",
}, "cat": 2
{ },
"name": "尿不湿", {
"key": "尿不湿", "fieldsTitle": "安抚牙胶",
"icon": "https://cdn.uviewui.com/uview/common/classify/8/3.jpg", "key": "安抚牙胶",
"cat": 2 "icon": "https://cdn.uviewui.com/uview/common/classify/8/4.jpg",
}, "cat": 2
{ },
"name": "安抚牙胶", {
"key": "安抚牙胶", "fieldsTitle": "奶瓶奶嘴",
"icon": "https://cdn.uviewui.com/uview/common/classify/8/4.jpg", "key": "奶瓶奶嘴",
"cat": 2 "icon": "https://cdn.uviewui.com/uview/common/classify/8/5.jpg",
}, "cat": 2
{ },
"name": "奶瓶奶嘴", {
"key": "奶瓶奶嘴", "fieldsTitle": "孕妈用品",
"icon": "https://cdn.uviewui.com/uview/common/classify/8/5.jpg", "key": "孕妈用品",
"cat": 2 "icon": "https://cdn.uviewui.com/uview/common/classify/8/6.jpg",
}, "cat": 2
{ },
"name": "孕妈用品", {
"key": "孕妈用品", "fieldsTitle": "宝宝用品",
"icon": "https://cdn.uviewui.com/uview/common/classify/8/6.jpg", "key": "宝宝用品",
"cat": 2 "icon": "https://cdn.uviewui.com/uview/common/classify/8/7.jpg",
}, "cat": 2
{ },
"name": "宝宝用品", {
"key": "宝宝用品", "fieldsTitle": "婴童湿巾",
"icon": "https://cdn.uviewui.com/uview/common/classify/8/7.jpg", "key": "湿巾",
"cat": 2 "icon": "https://cdn.uviewui.com/uview/common/classify/8/8.jpg",
}, "cat": 2
{ },
"name": "婴童湿巾", {
"key": "湿巾", "fieldsTitle": "喂养洗护",
"icon": "https://cdn.uviewui.com/uview/common/classify/8/8.jpg", "key": "洗护",
"cat": 2 "icon": "https://cdn.uviewui.com/uview/common/classify/8/9.jpg",
}, "cat": 2
{ },
"name": "喂养洗护", {
"key": "洗护", "fieldsTitle": "婴童鞋靴",
"icon": "https://cdn.uviewui.com/uview/common/classify/8/9.jpg", "key": "童鞋",
"cat": 2 "icon": "https://cdn.uviewui.com/uview/common/classify/8/10.jpg",
}, "cat": 2
{ },
"name": "婴童鞋靴", {
"key": "童鞋", "fieldsTitle": "口水巾",
"icon": "https://cdn.uviewui.com/uview/common/classify/8/10.jpg", "key": "口水巾",
"cat": 2 "icon": "https://cdn.uviewui.com/uview/common/classify/8/11.jpg",
}, "cat": 2
{ },
"name": "口水巾", {
"key": "口水巾", "fieldsTitle": "营养辅食",
"icon": "https://cdn.uviewui.com/uview/common/classify/8/11.jpg", "key": "营养",
"cat": 2 "icon": "https://cdn.uviewui.com/uview/common/classify/8/12.jpg",
}, "cat": 2
{ },
"name": "营养辅食", {
"key": "营养", "fieldsTitle": "婴幼书籍",
"icon": "https://cdn.uviewui.com/uview/common/classify/8/12.jpg", "key": "书籍",
"cat": 2 "icon": "https://cdn.uviewui.com/uview/common/classify/8/13.jpg",
}, "cat": 2
{ },
"name": "婴幼书籍", {
"key": "书籍", "fieldsTitle": "婴儿车",
"icon": "https://cdn.uviewui.com/uview/common/classify/8/13.jpg", "key": "婴儿车",
"cat": 2 "icon": "https://cdn.uviewui.com/uview/common/classify/8/14.jpg",
}, "cat": 2
{ }
"name": "婴儿车", ]
"key": "婴儿车", },
"icon": "https://cdn.uviewui.com/uview/common/classify/8/14.jpg", {
"cat": 2 "groupName": "箱包",
} "item": [{
] "fieldsTitle": "单肩包",
}, "key": "单肩包",
{ "icon": "https://cdn.uviewui.com/uview/common/classify/9/1.jpg",
"name": "箱包", "cat": 0
"foods": [ },
{ {
"name": "单肩包", "fieldsTitle": "斜挎包",
"key": "单肩包", "key": "斜挎包",
"icon": "https://cdn.uviewui.com/uview/common/classify/9/1.jpg", "icon": "https://cdn.uviewui.com/uview/common/classify/9/2.jpg",
"cat": 0 "cat": 0
}, },
{ {
"name": "斜挎包", "fieldsTitle": "女包",
"key": "斜挎包", "key": "女包",
"icon": "https://cdn.uviewui.com/uview/common/classify/9/2.jpg", "icon": "https://cdn.uviewui.com/uview/common/classify/9/3.jpg",
"cat": 0 "cat": 0
}, },
{ {
"name": "女包", "fieldsTitle": "男包",
"key": "女包", "key": "男包",
"icon": "https://cdn.uviewui.com/uview/common/classify/9/3.jpg", "icon": "https://cdn.uviewui.com/uview/common/classify/9/4.jpg",
"cat": 0 "cat": 0
}, },
{ {
"name": "男包", "fieldsTitle": "双肩包",
"key": "男包", "key": "双肩包",
"icon": "https://cdn.uviewui.com/uview/common/classify/9/4.jpg", "icon": "https://cdn.uviewui.com/uview/common/classify/9/5.jpg",
"cat": 0 "cat": 0
}, },
{ {
"name": "双肩包", "fieldsTitle": "小方包",
"key": "双肩包", "key": "小方包",
"icon": "https://cdn.uviewui.com/uview/common/classify/9/5.jpg", "icon": "https://cdn.uviewui.com/uview/common/classify/9/6.jpg",
"cat": 0 "cat": 0
}, },
{ {
"name": "小方包", "fieldsTitle": "钱包",
"key": "小方包", "key": "钱包",
"icon": "https://cdn.uviewui.com/uview/common/classify/9/6.jpg", "icon": "https://cdn.uviewui.com/uview/common/classify/9/7.jpg",
"cat": 0 "cat": 0
}, },
{ {
"name": "钱包", "fieldsTitle": "旅行箱包",
"key": "钱包", "key": "旅行箱包",
"icon": "https://cdn.uviewui.com/uview/common/classify/9/7.jpg", "icon": "https://cdn.uviewui.com/uview/common/classify/9/8.jpg",
"cat": 0 "cat": 0
}, },
{ {
"name": "旅行箱包", "fieldsTitle": "零钱包",
"key": "旅行箱包", "key": "零钱包",
"icon": "https://cdn.uviewui.com/uview/common/classify/9/8.jpg", "icon": "https://cdn.uviewui.com/uview/common/classify/9/9.jpg",
"cat": 0 "cat": 0
}, },
{ {
"name": "零钱包", "fieldsTitle": "手提包",
"key": "零钱包", "key": "手提包",
"icon": "https://cdn.uviewui.com/uview/common/classify/9/9.jpg", "icon": "https://cdn.uviewui.com/uview/common/classify/9/10.jpg",
"cat": 0 "cat": 0
}, },
{ {
"name": "手提包", "fieldsTitle": "胸包",
"key": "手提包", "key": "胸包",
"icon": "https://cdn.uviewui.com/uview/common/classify/9/10.jpg", "icon": "https://cdn.uviewui.com/uview/common/classify/9/11.jpg",
"cat": 0 "cat": 0
}, }
{ ]
"name": "胸包", },
"key": "胸包", {
"icon": "https://cdn.uviewui.com/uview/common/classify/9/11.jpg", "groupName": "内衣",
"cat": 0 "item": [{
} "fieldsTitle": "袜子",
] "key": "袜子",
}, "icon": "https://cdn.uviewui.com/uview/common/classify/10/1.jpg",
{ "cat": 11
"name": "内衣", },
"foods": [ {
{ "fieldsTitle": "吊带背心",
"name": "袜子", "key": "吊带背心",
"key": "袜子", "icon": "https://cdn.uviewui.com/uview/common/classify/10/2.jpg",
"icon": "https://cdn.uviewui.com/uview/common/classify/10/1.jpg", "cat": 11
"cat": 11 },
}, {
{ "fieldsTitle": "抹胸",
"name": "吊带背心", "key": "抹胸",
"key": "吊带背心", "icon": "https://cdn.uviewui.com/uview/common/classify/10/3.jpg",
"icon": "https://cdn.uviewui.com/uview/common/classify/10/2.jpg", "cat": 11
"cat": 11 },
}, {
{ "fieldsTitle": "内裤",
"name": "抹胸", "key": "内裤",
"key": "抹胸", "icon": "https://cdn.uviewui.com/uview/common/classify/10/4.jpg",
"icon": "https://cdn.uviewui.com/uview/common/classify/10/3.jpg", "cat": 11
"cat": 11 },
}, {
{ "fieldsTitle": "文胸",
"name": "内裤", "key": "文胸",
"key": "内裤", "icon": "https://cdn.uviewui.com/uview/common/classify/10/5.jpg",
"icon": "https://cdn.uviewui.com/uview/common/classify/10/4.jpg", "cat": 11
"cat": 11 },
}, {
{ "fieldsTitle": "文胸套装",
"name": "文胸", "key": "文胸套装",
"key": "文胸", "icon": "https://cdn.uviewui.com/uview/common/classify/10/6.jpg",
"icon": "https://cdn.uviewui.com/uview/common/classify/10/5.jpg", "cat": 11
"cat": 11 },
}, {
{ "fieldsTitle": "打底塑身",
"name": "文胸套装", "key": "打底塑身",
"key": "文胸套装", "icon": "https://cdn.uviewui.com/uview/common/classify/10/7.jpg",
"icon": "https://cdn.uviewui.com/uview/common/classify/10/6.jpg", "cat": 11
"cat": 11 },
}, {
{ "fieldsTitle": "家居服",
"name": "打底塑身", "key": "家居服",
"key": "打底塑身", "icon": "https://cdn.uviewui.com/uview/common/classify/10/8.jpg",
"icon": "https://cdn.uviewui.com/uview/common/classify/10/7.jpg", "cat": 11
"cat": 11 },
}, {
{ "fieldsTitle": "船袜",
"name": "家居服", "key": "船袜",
"key": "家居服", "icon": "https://cdn.uviewui.com/uview/common/classify/10/9.jpg",
"icon": "https://cdn.uviewui.com/uview/common/classify/10/8.jpg", "cat": 11
"cat": 11 },
}, {
{ "fieldsTitle": "情侣睡衣",
"name": "船袜", "key": "情侣睡衣",
"key": "船袜", "icon": "https://cdn.uviewui.com/uview/common/classify/10/10.jpg",
"icon": "https://cdn.uviewui.com/uview/common/classify/10/9.jpg", "cat": 11
"cat": 11 },
}, {
{ "fieldsTitle": "丝袜",
"name": "情侣睡衣", "key": "丝袜",
"key": "情侣睡衣", "icon": "https://cdn.uviewui.com/uview/common/classify/10/11.jpg",
"icon": "https://cdn.uviewui.com/uview/common/classify/10/10.jpg", "cat": 11
"cat": 11 }
}, ]
{ },
"name": "丝袜", {
"key": "丝袜", "groupName": "文娱车品",
"icon": "https://cdn.uviewui.com/uview/common/classify/10/11.jpg", "item": [{
"cat": 11 "fieldsTitle": "车市车品",
} "key": "车市车品",
] "icon": "https://cdn.uviewui.com/uview/common/classify/11/1.jpg",
}, "cat": 7
{ },
"name": "文娱车品", {
"foods": [ "fieldsTitle": "办公文具",
{ "key": "办公文具",
"name": "车市车品", "icon": "https://cdn.uviewui.com/uview/common/classify/11/2.jpg",
"key": "车市车品", "cat": 7
"icon": "https://cdn.uviewui.com/uview/common/classify/11/1.jpg", },
"cat": 7 {
}, "fieldsTitle": "考试必备",
{ "key": "考试必备",
"name": "办公文具", "icon": "https://cdn.uviewui.com/uview/common/classify/11/3.jpg",
"key": "办公文具", "cat": 7
"icon": "https://cdn.uviewui.com/uview/common/classify/11/2.jpg", },
"cat": 7 {
}, "fieldsTitle": "笔记本",
{ "key": "笔记本",
"name": "考试必备", "icon": "https://cdn.uviewui.com/uview/common/classify/11/4.jpg",
"key": "考试必备", "cat": 7
"icon": "https://cdn.uviewui.com/uview/common/classify/11/3.jpg", },
"cat": 7 {
}, "fieldsTitle": "艺术礼品",
{ "key": "礼品",
"name": "笔记本", "icon": "https://cdn.uviewui.com/uview/common/classify/11/5.jpg",
"key": "笔记本", "cat": 7
"icon": "https://cdn.uviewui.com/uview/common/classify/11/4.jpg", },
"cat": 7 {
}, "fieldsTitle": "书写工具",
{ "key": "书写工具",
"name": "艺术礼品", "icon": "https://cdn.uviewui.com/uview/common/classify/11/6.jpg",
"key": "礼品", "cat": 7
"icon": "https://cdn.uviewui.com/uview/common/classify/11/5.jpg", },
"cat": 7 {
}, "fieldsTitle": "车载电器",
{ "key": "车载电器",
"name": "书写工具", "icon": "https://cdn.uviewui.com/uview/common/classify/11/7.jpg",
"key": "书写工具", "cat": 7
"icon": "https://cdn.uviewui.com/uview/common/classify/11/6.jpg", },
"cat": 7 {
}, "fieldsTitle": "图书音像",
{ "key": "图书音像",
"name": "车载电器", "icon": "https://cdn.uviewui.com/uview/common/classify/11/8.jpg",
"key": "车载电器", "cat": 7
"icon": "https://cdn.uviewui.com/uview/common/classify/11/7.jpg", },
"cat": 7 {
}, "fieldsTitle": "画具画材",
{ "key": "画具画材",
"name": "图书音像", "icon": "https://cdn.uviewui.com/uview/common/classify/11/9.jpg",
"key": "图书音像", "cat": 7
"icon": "https://cdn.uviewui.com/uview/common/classify/11/8.jpg", }
"cat": 7 ]
}, },
{ {
"name": "画具画材", "groupName": "配饰",
"key": "画具画材", "item": [{
"icon": "https://cdn.uviewui.com/uview/common/classify/11/9.jpg", "fieldsTitle": "太阳镜",
"cat": 7 "key": "太阳镜",
} "icon": "https://cdn.uviewui.com/uview/common/classify/12/1.jpg",
] "cat": 0
}, },
{ {
"name": "配饰", "fieldsTitle": "皮带",
"foods": [ "key": "皮带",
{ "icon": "https://cdn.uviewui.com/uview/common/classify/12/2.jpg",
"name": "太阳镜", "cat": 0
"key": "太阳镜", },
"icon": "https://cdn.uviewui.com/uview/common/classify/12/1.jpg", {
"cat": 0 "fieldsTitle": "棒球帽",
}, "key": "棒球帽",
{ "icon": "https://cdn.uviewui.com/uview/common/classify/12/3.jpg",
"name": "皮带", "cat": 0
"key": "皮带", },
"icon": "https://cdn.uviewui.com/uview/common/classify/12/2.jpg", {
"cat": 0 "fieldsTitle": "手表",
}, "key": "手表",
{ "icon": "https://cdn.uviewui.com/uview/common/classify/12/4.jpg",
"name": "棒球帽", "cat": 0
"key": "棒球帽", },
"icon": "https://cdn.uviewui.com/uview/common/classify/12/3.jpg", {
"cat": 0 "fieldsTitle": "发饰",
}, "key": "发饰",
{ "icon": "https://cdn.uviewui.com/uview/common/classify/12/5.jpg",
"name": "手表", "cat": 0
"key": "手表", },
"icon": "https://cdn.uviewui.com/uview/common/classify/12/4.jpg", {
"cat": 0 "fieldsTitle": "项链",
}, "key": "项链",
{ "icon": "https://cdn.uviewui.com/uview/common/classify/12/6.jpg",
"name": "发饰", "cat": 0
"key": "发饰", },
"icon": "https://cdn.uviewui.com/uview/common/classify/12/5.jpg", {
"cat": 0 "fieldsTitle": "手饰",
}, "key": "手饰",
{ "icon": "https://cdn.uviewui.com/uview/common/classify/12/7.jpg",
"name": "项链", "cat": 0
"key": "项链", },
"icon": "https://cdn.uviewui.com/uview/common/classify/12/6.jpg", {
"cat": 0 "fieldsTitle": "耳环",
}, "key": "耳环",
{ "icon": "https://cdn.uviewui.com/uview/common/classify/12/8.jpg",
"name": "手饰", "cat": 0
"key": "手饰", },
"icon": "https://cdn.uviewui.com/uview/common/classify/12/7.jpg", {
"cat": 0 "fieldsTitle": "帽子丝巾",
}, "key": "帽子丝巾",
{ "icon": "https://cdn.uviewui.com/uview/common/classify/12/9.jpg",
"name": "耳环", "cat": 0
"key": "耳环", },
"icon": "https://cdn.uviewui.com/uview/common/classify/12/8.jpg", {
"cat": 0 "fieldsTitle": "眼镜墨镜",
}, "key": "眼镜墨镜",
{ "icon": "https://cdn.uviewui.com/uview/common/classify/12/10.jpg",
"name": "帽子丝巾", "cat": 0
"key": "帽子丝巾", },
"icon": "https://cdn.uviewui.com/uview/common/classify/12/9.jpg", {
"cat": 0 "fieldsTitle": "发带发箍",
}, "key": "发带发箍",
{ "icon": "https://cdn.uviewui.com/uview/common/classify/12/11.jpg",
"name": "眼镜墨镜", "cat": 0
"key": "眼镜墨镜", }
"icon": "https://cdn.uviewui.com/uview/common/classify/12/10.jpg", ]
"cat": 0 },
}, {
{ "groupName": "家装家纺",
"name": "发带发箍", "item": [{
"key": "发带发箍", "fieldsTitle": "家居饰品",
"icon": "https://cdn.uviewui.com/uview/common/classify/12/11.jpg", "key": "家居饰品",
"cat": 0 "icon": "https://cdn.uviewui.com/uview/common/classify/13/1.jpg",
} "cat": 0
] },
}, {
{ "fieldsTitle": "凉席",
"name": "家装家纺", "key": "凉席",
"foods": [ "icon": "https://cdn.uviewui.com/uview/common/classify/13/2.jpg",
{ "cat": 0
"name": "家居饰品", },
"key": "家居饰品", {
"icon": "https://cdn.uviewui.com/uview/common/classify/13/1.jpg", "fieldsTitle": "背枕靠枕",
"cat": 0 "key": "靠枕",
}, "icon": "https://cdn.uviewui.com/uview/common/classify/13/3.jpg",
{ "cat": 0
"name": "凉席", },
"key": "凉席", {
"icon": "https://cdn.uviewui.com/uview/common/classify/13/2.jpg", "fieldsTitle": "床上用品",
"cat": 0 "key": "床上用品",
}, "icon": "https://cdn.uviewui.com/uview/common/classify/13/4.jpg",
{ "cat": 0
"name": "背枕靠枕", },
"key": "靠枕", {
"icon": "https://cdn.uviewui.com/uview/common/classify/13/3.jpg", "fieldsTitle": "摆件",
"cat": 0 "key": "摆件",
}, "icon": "https://cdn.uviewui.com/uview/common/classify/13/5.jpg",
{ "cat": 0
"name": "床上用品", },
"key": "床上用品", {
"icon": "https://cdn.uviewui.com/uview/common/classify/13/4.jpg", "fieldsTitle": "四件套",
"cat": 0 "key": "四件套",
}, "icon": "https://cdn.uviewui.com/uview/common/classify/13/6.jpg",
{ "cat": 0
"name": "摆件", },
"key": "摆件", {
"icon": "https://cdn.uviewui.com/uview/common/classify/13/5.jpg", "fieldsTitle": "装饰品",
"cat": 0 "key": "装饰品",
}, "icon": "https://cdn.uviewui.com/uview/common/classify/13/7.jpg",
{ "cat": 0
"name": "四件套", },
"key": "四件套", {
"icon": "https://cdn.uviewui.com/uview/common/classify/13/6.jpg", "fieldsTitle": "卫浴用品",
"cat": 0 "key": "卫浴",
}, "icon": "https://cdn.uviewui.com/uview/common/classify/13/8.jpg",
{ "cat": 0
"name": "装饰品", },
"key": "装饰品", {
"icon": "https://cdn.uviewui.com/uview/common/classify/13/7.jpg", "fieldsTitle": "家居家装",
"cat": 0 "key": "家具",
}, "icon": "https://cdn.uviewui.com/uview/common/classify/13/9.jpg",
{ "cat": 0
"name": "卫浴用品", },
"key": "卫浴", {
"icon": "https://cdn.uviewui.com/uview/common/classify/13/8.jpg", "fieldsTitle": "蚊帐",
"cat": 0 "key": "蚊帐",
}, "icon": "https://cdn.uviewui.com/uview/common/classify/13/10.jpg",
{ "cat": 0
"name": "家居家装", },
"key": "家具", {
"icon": "https://cdn.uviewui.com/uview/common/classify/13/9.jpg", "fieldsTitle": "墙纸贴纸",
"cat": 0 "key": "墙纸",
}, "icon": "https://cdn.uviewui.com/uview/common/classify/13/11.jpg",
{ "cat": 0
"name": "蚊帐", },
"key": "蚊帐", {
"icon": "https://cdn.uviewui.com/uview/common/classify/13/10.jpg", "fieldsTitle": "空调被",
"cat": 0 "key": "空调被",
}, "icon": "https://cdn.uviewui.com/uview/common/classify/13/12.jpg",
{ "cat": 0
"name": "墙纸贴纸", }
"key": "墙纸", ]
"icon": "https://cdn.uviewui.com/uview/common/classify/13/11.jpg", },
"cat": 0 {
}, "groupName": "户外运动",
{ "item": [{
"name": "空调被", "fieldsTitle": "游泳装备",
"key": "空调被", "key": "游泳",
"icon": "https://cdn.uviewui.com/uview/common/classify/13/12.jpg", "icon": "https://cdn.uviewui.com/uview/common/classify/14/1.jpg",
"cat": 0 "cat": 0
} },
] {
}, "fieldsTitle": "泳镜",
{ "key": "泳镜",
"name": "户外运动", "icon": "https://cdn.uviewui.com/uview/common/classify/14/2.jpg",
"foods": [ "cat": 0
{ },
"name": "游泳装备", {
"key": "游泳", "fieldsTitle": "户外装备",
"icon": "https://cdn.uviewui.com/uview/common/classify/14/1.jpg", "key": "户外",
"cat": 0 "icon": "https://cdn.uviewui.com/uview/common/classify/14/3.jpg",
}, "cat": 0
{ },
"name": "泳镜", {
"key": "泳镜", "fieldsTitle": "健身服饰",
"icon": "https://cdn.uviewui.com/uview/common/classify/14/2.jpg", "key": "健身",
"cat": 0 "icon": "https://cdn.uviewui.com/uview/common/classify/14/4.jpg",
}, "cat": 0
{ },
"name": "户外装备", {
"key": "户外", "fieldsTitle": "泳衣",
"icon": "https://cdn.uviewui.com/uview/common/classify/14/3.jpg", "key": "泳衣",
"cat": 0 "icon": "https://cdn.uviewui.com/uview/common/classify/14/5.jpg",
}, "cat": 0
{ },
"name": "健身服饰", {
"key": "健身", "fieldsTitle": "瑜伽垫",
"icon": "https://cdn.uviewui.com/uview/common/classify/14/4.jpg", "key": "瑜伽垫",
"cat": 0 "icon": "https://cdn.uviewui.com/uview/common/classify/14/6.jpg",
}, "cat": 0
{ },
"name": "泳衣", {
"key": "泳衣", "fieldsTitle": "瑜伽用品",
"icon": "https://cdn.uviewui.com/uview/common/classify/14/5.jpg", "key": "瑜伽",
"cat": 0 "icon": "https://cdn.uviewui.com/uview/common/classify/14/7.jpg",
}, "cat": 0
{ },
"name": "瑜伽垫", {
"key": "瑜伽垫", "fieldsTitle": "健身装备",
"icon": "https://cdn.uviewui.com/uview/common/classify/14/6.jpg", "key": "健身",
"cat": 0 "icon": "https://cdn.uviewui.com/uview/common/classify/14/8.jpg",
}, "cat": 0
{ },
"name": "瑜伽用品", {
"key": "瑜伽", "fieldsTitle": "球迷用品",
"icon": "https://cdn.uviewui.com/uview/common/classify/14/7.jpg", "key": "球迷",
"cat": 0 "icon": "https://cdn.uviewui.com/uview/common/classify/14/9.jpg",
}, "cat": 0
{ }
"name": "健身装备", ]
"key": "健身", }
"icon": "https://cdn.uviewui.com/uview/common/classify/14/8.jpg", ]
"cat": 0
},
{
"name": "球迷用品",
"key": "球迷",
"icon": "https://cdn.uviewui.com/uview/common/classify/14/9.jpg",
"cat": 0
}
]
}
]
\ No newline at end of file
<template>
<view class="list">
<view v-for="(item,index) in settings" :key="index"
:class="{'txt':true,'active':checkStatus(item)}" @click="setValue(item)">{{item}}
</view>
</view>
</template>
<script>
import objMixin from './objMixin'
export default {
name: 'XhRadio',
components: {},
mixins: [objMixin],
props: {},
filters:{},
data() {
return {}
},
computed: {
settings() {
return this.item.settings || []
}
},
watch: {},
mounted() {},
methods: {
checkStatus(item){
if(!item){
return false
}
const dataValue = this.dataValue
let flag = Array.isArray(dataValue) && dataValue.indexOf(item)>-1
console.log(flag,'flag')
return flag
},
setValue(txt) {
const dataValue = this.dataValue || []
let idx = dataValue.indexOf(txt)
if (idx > -1) {
dataValue.splice(idx,1)
} else {
dataValue.push(txt)
}
this.dataValue = dataValue
this.valueChange(this.dataValue)
}
}
}
</script>
<style lang="scss" scoped>
.list {
display: flex;
.txt {
color: #666;
padding: 10rpx;
&.active {
background-color: red;
color: #fff;
}
}
}
</style>
<template>
<view class="file-box">
<view class="u-flex" @click="selectUpload">
<view class="txt u-flex-1">{{item.fieldsTitle}}</view>
<u-icon name="arrow-right" color="#666" size="28"></u-icon>
</view>
<view class="pics u-flex u-flex-wrap">
<u-image class="pic" v-for="item in 6" width="170rpx" height="170" src="'https://cdn.uviewui.com/uview/example/fade.jpg"></u-image>
</view>
<u-popup v-model="maskShow" mode="center" width="500">
<view class="upload-box u-p-30">
<view class="title">请选择图片</view>
<view class="u-flex u-row-between">
<view class="upload-item u-text-center" @click="uploadFile('photo')">
<u-image class="pic" width="170rpx" height="170" src="'https://cdn.uviewui.com/uview/example/fade.jpg"></u-image>
相册
</view>
<view class="upload-item u-text-center" @click="uploadFile">
<u-image class="pic" width="170rpx" height="170" src="'https://cdn.uviewui.com/uview/example/fade.jpg"></u-image>
拍摄
</view>
</view>
</view>
</u-popup>
</view>
</template>
<script>
import objMixin from './objMixin'
import baseFile from '@/components/upload/index';
export default {
name: 'XhFiles',
components: {},
mixins: [objMixin,baseFile],
props: {},
filters:{},
data() {
return {
maskShow:false
}
},
computed: {
settings() {
return this.item.settings || []
}
},
watch: {},
mounted() {},
methods: {
selectUpload(){
// 弹窗展示
this.maskShow = true
},
chooseImage(){
},
uploadFile(type){
if(type&&type==='photo'){
// 直接打开相册
this.chooseImage()
return
}
// 使用拍照工具拍摄
},
checkStatus(item){
if(!item){
return false
}
const dataValue = this.dataValue
let flag = Array.isArray(dataValue) && dataValue.indexOf(item)>-1
console.log(flag,'flag')
return flag
},
setValue(txt) {
const dataValue = this.dataValue || []
let idx = dataValue.indexOf(txt)
if (idx > -1) {
dataValue.splice(idx,1)
} else {
dataValue.push(txt)
}
this.dataValue = dataValue
this.valueChange(this.dataValue)
}
}
}
</script>
<style lang="scss" scoped>
.pic{
margin-right: 15rpx;
margin-bottom: 15rpx;
&:nth-child(3n){
margin-right: 0;
}
}
// .list {
// display: flex;
// .txt {
// color: #666;
// padding: 10rpx;
// &.active {
// background-color: red;
// color: #fff;
// }
// }
// }
</style>
<template> <template>
<view> <view>
<u-input v-model="item.fieldsValue" /> <u-input v-model="dataValue" @input="valueChange" :type="type" />
</view> </view>
</template> </template>
<script> <script>
import stringMixin from './stringMixin'
export default { export default {
name: 'xhInput', name: 'XhInput', // 新建 input
props: { components: {},
item: { mixins: [stringMixin],
type: Object, props: {},
default () {
return null
}
},
},
data() { data() {
return { return {}
value: '', },
type: 'text', computed: {
border: true, type() {
if (this.item && this.item.fieldsType == 'password') {
return this.item.fieldsType
} else {
return 'text'
}
} }
} },
watch: {},
mounted() {},
methods: {}
} }
</script> </script>
......
<template>
<view class="list">
<view v-for="(item,index) in settings" :key="index" :class="{'txt':true,'active':item===dataValue}"
@click="setValue(item)">{{item}}</view>
</view>
</template>
<script>
import stringMixin from './stringMixin'
export default {
name: 'XhRadio',
components: {},
mixins: [stringMixin],
props: {},
data() {
return {}
},
computed: {
settings(){
return this.item.settings || []
}
},
watch: {},
mounted() {},
methods: {
setValue(txt){
this.dataValue = txt
this.valueChange(txt)
}
}
}
</script>
<style lang="scss" scoped>
.list{
display: flex;
.txt{
color:#666;
padding:10rpx;
&.active{
background-color: red;
color:#fff;
}
}
}
</style>
<template> <template>
<view> <view>
<u-input v-model="item.fieldsValue" /> <u-input v-model="dataValue" readOnly @click="show=true" type="select" />
<u-action-sheet :list="settings" v-model="show" @click="actionSheetCallback"></u-action-sheet>
</view> </view>
</template> </template>
<script> <script>
import stringMixin from './stringMixin'
export default { export default {
name: 'xhInput', name: 'XhSelect',
props: { components: {},
item: { mixins: [stringMixin],
type: Object, props: {},
default () { data() {
return [{}] return {
show: false
}
},
computed: {
type() {
if (this.item && this.item.fieldsType == 'password') {
return this.item.fieldsType
} else {
return 'text'
} }
}, },
settings() {
let result = []
let settings = this.item.settings || []
result = settings.map(item => {
return {
text: item
}
})
return result
}
}, },
data() { watch: {},
return { mounted() {},
value: '', methods: {
type: 'text', actionSheetCallback(index) {
border: true, let txt = this.settings[index].text;
this.dataValue = txt
this.valueChange(txt)
} }
} }
} }
......
/** 自定义组件 共同逻辑 */
export default {
data() {
return {
dataValue:null
}
},
watch: {
value: function(val) {
this.dataValue = val
}
},
props: {
value: {
type: Object,
default: () => {
return null
}
},
/** 索引值 用于更新数据 */
itemIndex: Number,
groupIndex: Number,
/** 包含数据源 */
item: Object,
disabled: {
type: Boolean,
default: false
}
},
mounted() {
/** 如果有值以传入值为主 如果无值 已默认值为主 */
this.dataValue = this.value
},
methods: {
// 输入的值
valueChange(val) {
const data = {
groupIndex: this.groupIndex, // 左侧菜单下标
itemIndex: this.itemIndex, //右侧某一项下标
value: val
}
this.$emit('value-change', data)
}
}
}
/** 自定义组件 共同逻辑 */
export default {
data() {
return {
dataValue: ''
}
},
watch: {
value: function(val) {
this.dataValue = val
}
},
props: {
value: {
type: [String, Number],
default: ''
},
/** 索引值 用于更新数据 */
itemIndex:Number,
groupIndex:Number,
/** 包含数据源 */
item: Object,
disabled: {
type: Boolean,
default: false
}
},
mounted() {
/** 如果有值以传入值为主 如果无值 已默认值为主 */
this.dataValue = this.value
},
methods: {
// 输入的值
valueChange(val) {
const data = {
groupIndex: this.groupIndex,// 左侧菜单下标
itemIndex:this.itemIndex,//右侧某一项下标
value: val
}
this.$emit('value-change', data)
}
}
}
<template>
<view class="content-view">
<view class="content-list" v-for="(item, index) in info" :key="index">
<view class="content-title">{{item.title}}</view>
<view class="content-item" v-for="(i, key) in item.content" :key="key">{{i}}</view>
</view>
</view>
</template>
<script>
export default {
data() {
return {}
},
computed: {
info() {
return [{
title: '一、入驻条件',
content: [
'1.年龄在18-60周岁之间;',
'2.初中及以上学历;',
'3.能熟练使用智能手机;',
'4.与人交流时态度良好,沟通顺畅;'
]
}, {
title: '二、注意事项',
content: [
'1.平台会对每笔订单收取一定比例的服务费抽成;',
'2.若审核通过,平台工作人员将会电话联系您,并邀约参加师傅培训会,请您耐心等待;',
'3.开关插座、线路维修、空开漏保等品类的师傅需持有电工证;',
'4.家电清洗品类的师傅需持有专业高温清洗设备,并在每一笔清洗订单中上传设备照片(单独水枪类清洗设备不符合规定);',
'5.请如实填写自己擅长品类,如有核实师傅申请的维修品类和开通账号的维修品类不一致,将不给予接单资格;'
]
}]
}
}
}
</script>
<style lang="scss" scoped>
.content-view {
padding: 16rpx 30rpx 30rpx 30rpx;
background-color: #F4F5F7;
height: 360rpx;
overflow: scroll;
.content-list {
.content-title {
font-size: 28rpx;
color: #333333;
margin-top: 14rpx;
}
.content-item {
font-size: 24rpx;
color: #666666;
padding-top: 14rpx;
}
}
}
</style>
...@@ -25,7 +25,7 @@ ...@@ -25,7 +25,7 @@
}, },
computed: { computed: {
url() { url() {
return '../../static/settle/bachground' + this.index + '@3x.png' return '../../static/settle/top' + this.index + '@3x.png'
} }
} }
} }
......
<template>
<view class="content-view">
<view class="headimage-view">
<image class="headimage-view-image" src="../../static/settle/kefu@3x.png"></image>
<text class="name-text">朱曼婷</text>
</view>
<view class="content-info">
<view>
<view class="content-info-title">深圳唯修汇科技有限公司</view>
<view class="content-info-tip">长按二维码添加官方客服微信及时了解审核进度</view>
</view>
<view class="QRcode-view">
<image class="content-info-QRcode" src="../../static/settle/erweima@3x.png"></image>
</view>
</view>
</view>
</template>
<script>
export default {
props: {
},
data() {
return {}
}
}
</script>
<style lang="scss" scoped>
.content-view {
background-color: #FFFFFF;
width: 440rpx;
display: flex;
align-items: center;
justify-content: center;
flex-direction: column;
.headimage-view {
position: relative;
.headimage-view-image {
width: 440rpx;
height: 400rpx;
}
.name-text {
position: absolute;
bottom: 20rpx;
left: 20rpx;
color: #FFFFFF;
font-size: 28rpx;
}
}
.content-info {
display: flex;
justify-content: space-between;
align-items: center;
width: 100%;
padding: 0rpx 12rpx 20rpx 12rpx;
.content-info-title {
font-size: 24rpx;
color: #333333;
margin-bottom: 10rpx;
}
.content-info-tip {
font-size: 20rpx;
color: #666666;
}
.QRcode-view {
margin-left: 30rpx;
}
.content-info-QRcode {
padding-top: 12rpx;
width: 104rpx;
height: 104rpx;
}
}
}
</style>
...@@ -101,7 +101,9 @@ ...@@ -101,7 +101,9 @@
{ {
"path": "pages/settle/pay-ensure", "path": "pages/settle/pay-ensure",
"style": { "style": {
"navigationBarTitleText": "缴纳设备押金" "navigationBarTitleText": "缴纳设备押金",
"navigationStyle": "custom",
"disableScroll": true
} }
}, },
{ {
...@@ -121,7 +123,9 @@ ...@@ -121,7 +123,9 @@
{ {
"path": "pages/settle/sign-contract", "path": "pages/settle/sign-contract",
"style": { "style": {
"navigationBarTitleText": "签约页面" "navigationBarTitleText": "签约页面",
"navigationStyle": "custom", // 隐藏系统导航栏
"disableScroll": true
} }
}, },
{ {
...@@ -217,6 +221,16 @@ ...@@ -217,6 +221,16 @@
"path": "pages/settle/base", //启动页面,必选 "path": "pages/settle/base", //启动页面,必选
"query": "" //启动参数,在页面的onLoad函数里面得到 "query": "" //启动参数,在页面的onLoad函数里面得到
}, },
{
"name": "在线考试", //模式名称
"path": "pages/learn/exam", //启动页面,必选
"query": "" //启动参数,在页面的onLoad函数里面得到
},
{
"name": "在线考试-old", //模式名称
"path": "pages/exam/start", //启动页面,必选
"query": "" //启动参数,在页面的onLoad函数里面得到
},
{ {
"name": "入驻提示", //模式名称 "name": "入驻提示", //模式名称
"path": "pages/settle/prompt", //启动页面,必选 "path": "pages/settle/prompt", //启动页面,必选
...@@ -227,6 +241,16 @@ ...@@ -227,6 +241,16 @@
"path": "pages/settle/file", //启动页面,必选 "path": "pages/settle/file", //启动页面,必选
"query": "" //启动参数,在页面的onLoad函数里面得到 "query": "" //启动参数,在页面的onLoad函数里面得到
}, },
{
"name": "缴纳保证金", //模式名称
"path": "pages/settle/pay-ensure", //启动页面,必选
"query": "" //启动参数,在页面的onLoad函数里面得到
},
{
"name": "签约页面", //模式名称
"path": "pages/settle/sign-contract", //启动页面,必选
"query": "" //启动参数,在页面的onLoad函数里面得到
},
{ {
"name": "缴纳保证金", //模式名称 "name": "缴纳保证金", //模式名称
"path": "pages/settle/pay-ensure", //启动页面,必选 "path": "pages/settle/pay-ensure", //启动页面,必选
......
<template> <template>
<view class="backView"> <view class="backView">
<process :process="2" :type="0" title="业务流程"></process>
<template v-if="isStart==false"> <template v-if="isStart==false">
<view class="noticeView"> <view class="noticeView">
<text class="noticeText">规则:系统随机出现20道考试题目,每道题5分,每题答题时间100秒,在规定时间内答对题目的记分。 <text class="noticeText">规则:系统随机出现20道考试题目,每道题5分,每题答题时间100秒,在规定时间内答对题目的记分。
...@@ -151,7 +150,7 @@ ...@@ -151,7 +150,7 @@
} }
if (res.data.code == 401 || res.data.code == 403) { if (res.data.code == 401 || res.data.code == 403) {
uni.navigateTo({ uni.navigateTo({
url: '/pages/login/index' url: '/pages/login/wxlogin'
}) })
return return
} }
...@@ -220,7 +219,7 @@ ...@@ -220,7 +219,7 @@
if (res.statusCode == 401) { if (res.statusCode == 401) {
uni.navigateTo({ uni.navigateTo({
url: '/pages/login/index' url: '/pages/login/wxlogin'
}) })
return return
} }
...@@ -289,7 +288,7 @@ ...@@ -289,7 +288,7 @@
uni.hideLoading() uni.hideLoading()
if (res.statusCode == 401) { if (res.statusCode == 401) {
uni.navigateTo({ uni.navigateTo({
url: '/pages/login/index' url: '/pages/login/wxlogin'
}) })
return return
} }
...@@ -452,7 +451,7 @@ ...@@ -452,7 +451,7 @@
if (res.statusCode == 401) { if (res.statusCode == 401) {
uni.navigateTo({ uni.navigateTo({
url: '/pages/login/index' url: '/pages/login/wxlogin'
}) })
return return
} }
......
...@@ -156,7 +156,7 @@ export default { ...@@ -156,7 +156,7 @@ export default {
// 后台自动判断入驻流程是否完成,前台通过status确定状态 // 后台自动判断入驻流程是否完成,前台通过status确定状态
if (result && result.record) { if (result && result.record) {
vm.loaded = true; vm.loaded = true;
vm.status = result.record.status; vm.status = Number(result.record.status);
// vm.status = 1 // vm.status = 1
} }
}; };
......
<template> <template>
<view> <view class="learn-vedio">
<view class="uni-padding-wrap uni-common-mt"> <view class="uni-padding-wrap uni-common-mt">
<view><video object-fit="cover" class="course-video" id="courseVideo" :src="courseSrc" @error="videoErrorCallback" controls></video></view> <view><video object-fit="cover" class="course-video" id="courseVideo" :src="courseSrc"
<uni-group> @error="videoErrorCallback" controls></video></view>
<view class="course-title">{{ courseTitle }}</view> <view class="title-content">
<view class="course-desc">{{ courseDesc }}</view> <view class="item-content">
</uni-group> <view class="item-st">
</view> <text class="item-st-text">{{courseTitle.split(' ') ? courseTitle.split(' ')[0] : ''}}</text>
</view> </view>
</template> <view class="item-title">{{courseTitle.split(' ') ? courseTitle.split(' ')[1] : ''}}</view>
</view>
<script> <view>接单操作须知有助你快速了解充电桩安装业务,提高接单效率,请认真查看及学习。</view>
let app = getApp(); </view>
export default { <view class="learn-view">
data() { <view class="learn-view-title">内容大纲</view>
return { <view class="learn-list" v-for="(item, key) in courseOutline" :key="key">
courseId: '', <view class="learn-list-item">{{item}}</view>
courseStatus: 0, <view class="line-view"></view>
courseSrc: '', </view>
courseTitle: '', </view>
courseDesc: '', </view>
}; </view>
}, </template>
onLoad(e) {
if (e) { <script>
if(e.courseId) { let app = getApp();
this.courseId = e.courseId; export default {
} data() {
if(e.id) { return {
this.courseId = e.courseId; courseId: '',
this.courseSrc = app.globalData.service_standard[e.id].url; courseStatus: 0,
this.courseTitle = app.globalData.service_standard[e.id].title; courseSrc: '',
this.courseDesc = app.globalData.service_standard[e.id].desc; courseTitle: '',
this.changeCourseStatus(); courseDesc: '',
} courseOutline: ['1 aaa', '2 bbb'] // 视频大纲
};
if(e.status) { },
this.courseStatus = e.status; onLoad(e) {
} if (e) {
} if (e.courseId) {
}, this.courseId = e.courseId;
onReady: function(res) { }
// #ifndef MP-ALIPAY if (e.id) {
this.videoContext = uni.createVideoContext('courseVideo'); this.courseId = e.courseId;
// #endif this.courseSrc = app.globalData.service_standard[e.id].url;
}, this.courseTitle = app.globalData.service_standard[e.id].title;
methods: { this.courseDesc = app.globalData.service_standard[e.id].desc;
videoErrorCallback: function(e) { this.changeCourseStatus();
uni.showModal({ }
content: e.target.errMsg,
showCancel: false if (e.status) {
}); this.courseStatus = e.status;
}, }
getRandomColor: function() { }
const rgb = []; },
for (let i = 0; i < 3; ++i) { onReady: function(res) {
let color = Math.floor(Math.random() * 256).toString(16); // #ifndef MP-ALIPAY
color = color.length == 1 ? '0' + color : color; this.videoContext = uni.createVideoContext('courseVideo');
rgb.push(color); // #endif
} },
return '#' + rgb.join(''); methods: {
}, videoErrorCallback: function(e) {
changeCourseStatus() { uni.showModal({
let that = this content: e.target.errMsg,
if(that.courseId) { showCancel: false
that.$u.api.saveCourseRate({courseId: that.courseId}).then(res => { });
debugger },
if(res.code == 200) { getRandomColor: function() {
// uni.navigateBack({delta: 1}) const rgb = [];
uni.navigateTo({ for (let i = 0; i < 3; ++i) {
url: "/pages/learn/exam" let color = Math.floor(Math.random() * 256).toString(16);
}) color = color.length == 1 ? '0' + color : color;
} else { rgb.push(color);
uni.showToast({ }
icon: "none", return '#' + rgb.join('');
title: "更新课程状态失败" },
}) changeCourseStatus() {
} let that = this
}).catch(e=> { if (that.courseId) {
that.$u.api.saveCourseRate({
}) courseId: that.courseId
} else { }).then(res => {
uni.showToast({ if (res.code == 200) {
title: "课程ID为空,请重新选择课程" // uni.navigateBack({delta: 1})
}) uni.navigateTo({
} url: "/pages/learn/exam"
}, })
} } else {
}; uni.showToast({
</script> icon: "none",
title: "更新课程状态失败"
<style lang="scss"> })
.course-video { }
width: 750rpx; }).catch(e => {
}
.course-title { })
font-size: 36rpx; } else {
font-weight: 700; uni.showToast({
padding: 80rpx 60rpx 40rpx 60rpx; title: "课程ID为空,请重新选择课程"
} })
.course-desc { }
margin-left: 60rpx; },
} }
};
</script>
<style lang="scss" scoped>
.learn-vedio {
background-color: #F4F5F7;
position: absolute;
top: 0;
left: 0;
width: 100%;
height: 100%;
display: flex;
flex-direction: column;
}
.course-video {
width: 100%;
}
.course-title {
font-size: 36rpx;
font-weight: 700;
padding: 80rpx 60rpx 40rpx 60rpx;
}
.course-desc {
margin-left: 60rpx;
}
.title-content {
padding: 40rpx 30rpx;
margin-bottom: 20rpx;
background-color: #FFFFFF;
color: #999999;
font-size: 24rpx;
.item-content {
display: flex;
}
.item-st {
width: 80rpx;
height: 36rpx;
background-image: linear-gradient(to right, #FF930D, #FFC174);
font-size: 16rpx;
border-radius: 6rpx 36rpx 36rpx 6rpx;
padding-top: 8rpx;
padding-right: 2rpx;
text-align: center;
margin-right: 20rpx;
.item-st-text {
color: #FFFFFF;
}
}
.item-title {
color: #333333;
font-size: 28rpx;
}
}
.item-content {
display: flex;
padding-bottom: 30rpx;
}
.item-st {
width: 80rpx;
height: 36rpx;
background-image: linear-gradient(to right, #FF930D, #FFC174);
font-size: 16rpx;
border-radius: 6rpx 36rpx 36rpx 6rpx;
padding-top: 8rpx;
padding-right: 2rpx;
text-align: center;
margin-right: 20rpx;
}
.item-title {
color: #333333;
font-size: 28rpx;
}
.learn-view {
background-color: #FFFFFF;
border-radius: 12rpx;
padding: 38rpx 30rpx 30rpx 30rpx;
margin-bottom: 20rpx;
font-size: 32rpx;
color: #333333;
.learn-view-title {
font-size: 32rpx;
font-weight: bold;
margin-bottom: 10rpx;
}
.learn-list {
.learn-list-item {
font: 24rpx;
margin-top: 30rpx;
margin-bottom: 30rpx;
}
.line-view {
background-color: #F4F5F7;
height: 2rpx;
width: 100%;
}
}
}
</style> </style>
<template> <template>
<view class="exam-wrap"> <view class="exam-wrap">
<Settle :index="3"> <Settle :index="3">
<view class="exam-tips"><u-alert-tips :show-icon="true" class="exam-tips" type="warning" :title="tipsTitle" :description="tipsDescription"></u-alert-tips></view> <view class="tip-text">
<view class="exam-course"> <image class="tip-image" mode="widthFix" src="../../static/settle/tips1@3x.png"></image>
<u-card margin="20rpx 0rpx 30rpx 0rpx" :border="false" :border-radius="cardRadius"> <text>接单教程可让您快速了解如何使用小程序,建议先查看并学习教程。</text>
<view class="exam-head" slot="head">师傅接单教程</view> </view>
<view class="exam-body" slot="body"> <view class="learn-view">
<u-cell-group :border="false"> <view class="learn-view-title">接单操作须知</view>
<u-cell-item <view class="learn-list" v-for="(item, key) in tutorials" :key="key">
v-for="(item, key) in tutorials" <view class="learn-list-item">
:key="key" <view class="item-content">
icon="play-circle" <view class="item-st"><text
:border-bottom="false" class="item-st-text">{{item.title.split(' ') ? item.title.split(' ')[0] : ''}}</text>
:title="item.title" </view>
:value="item.value" <view class="item-title">{{item.title.split(' ') ? item.title.split(' ')[1] : ''}}</view>
:value-style="item.courseActive" </view>
@click="viewCourse(item)" <u-button v-if="item.status" type="default" hover-class="none" shape="circle"
></u-cell-item> :custom-style="learnedStyle" @click="viewCourse(item)">已学习</u-button>
</u-cell-group> <u-button v-else type="'primary" plain="true" hover-class="none" shape="circle"
</view> :custom-style="learnStyle" @click="viewCourse(item)">去学习</u-button>
</u-card> </view>
</view> <view class="line-view"></view>
<view class="exam-course"> </view>
<u-card margin="0rpx" :border="false" :border-radius="cardRadius"> </view>
<view class="exam-head" slot="head">师傅接单考试</view> <view class="tip-bottom">
<uni-group slot="body"> <view class="learn-view-title">接单操作考试</view>
<view>总共20题,每题5分,答题时间不超过40分钟</view> <view class="tip-bottom-t">系统随机出20道选择题,每题5分,及格为70分,分数不及格将影响接单。考题来自接单操作须知,请务必认真查看及学习,以便快速通过考试。</view>
<view>请认真对待,预祝顺利通过考试!</view> <view class="tip-bottom-h">希望您认真对待,祝您能顺利通过考试!</view>
</uni-group> </view>
</u-card>
</view> <!-- <view class="exam-tips">
<view class="content-gap"></view> <u-alert-tips :show-icon="true" class="exam-tips" type="warning" :title="tipsTitle"
</Settle> :description="tipsDescription"></u-alert-tips>
<view class="bottom-fix-btn"> </view>
<view class="btn-block"><u-button type="primary" shape="circle">去考试</u-button></view> <view class="exam-course">
</view> <u-card margin="20rpx 0rpx 30rpx 0rpx" :border="false" :border-radius="cardRadius">
</view> <view class="exam-head" slot="head">师傅接单教程</view>
</template> <view class="exam-body" slot="body">
<u-cell-group :border="false">
<script> <u-cell-item v-for="(item, key) in tutorials" :key="key" icon="play-circle"
import Settle from '@/components/settle/index.vue'; :border-bottom="false" :title="item.title" :value="item.value"
let app = getApp() :value-style="item.courseActive" @click="viewCourse(item)"></u-cell-item>
export default { </u-cell-group>
components: { </view>
Settle </u-card>
}, </view>
data() { <view class="exam-course">
return { <u-card margin="0rpx" :border="false" :border-radius="cardRadius">
cardRadius: 12, <view class="exam-head" slot="head">师傅接单考试</view>
tipsTitle: '提示:', <uni-group slot="body">
// 简单使用固定培训视频 <view>总共20题,每题5分,答题时间不超过40分钟</view>
tutorials: [ <view>请认真对待,预祝顺利通过考试!</view>
{ id: 'Course1', courseId: 1, title: '', value: '已查看', courseActive: {}, status: 1, url: ''}, </uni-group>
{ id: 'Course2', courseId: 2, title: '', value: '未查看', courseActive: {}, status: 0, url: ''}, </u-card>
{ id: 'Course3', courseId: 3, title: '', value: '未查看', courseActive: {}, status: 0, url: ''} </view>
], <view class="content-gap"></view> -->
tipsDescription: '接单考核可让您快速了解如何使用小程序,建议先查看学习教程' <template v-slot:bottom>
}; <view class="btn-wrap">
}, <u-button type="primary" :custom-style="buttonStyle" shape="circle" @click="handleClick">去考试</u-button>
computed: { </view>
</template>
},
onLoad() { </Settle>
this.tutorials.map((item, key) => { </view>
item['url'] = app.globalData.service_standard[item.id].url </template>
item['title'] = app.globalData.service_standard[item.id].title
item['value'] = item['status'] ? '已查看' : '未查看'; <script>
item['courseActive'] = item['status'] ? {"color": "#2979ff"} : {"color": "#ff0000"} import Settle from '@/components/settle/index.vue';
}) let app = getApp()
this.loadLearnData(); export default {
}, components: {
methods: { Settle
loadLearnData() { },
let that = this; data() {
that.$u.api return {
.listOrderingTutorials() cardRadius: 12,
.then(res => { tipsTitle: '提示:',
const results = res.data; // 简单使用固定培训视频
if (res.status == 200 && results && results.length > 0) { tutorials: [{
that.tutorials.forEach((data, i) => { id: 'Course1',
if (results.hasOwnProperty(data.id)) { courseId: 1,
data.status = results[data.id]; title: '',
data.value = data.status ? '已查看' : '未查看'; value: '已学习',
data.courseActive = data.status ? {"color": "#2979ff"} : {"color": "red"} courseActive: {},
that.tutorials[i] = data; status: 1,
} url: ''
}); },
} {
id: 'Course2',
courseId: 2,
title: '',
value: '去学习',
courseActive: {},
status: 0,
url: ''
},
{
id: 'Course3',
courseId: 3,
title: '',
value: '去学习',
courseActive: {},
status: 0,
url: ''
}
],
tipsDescription: '接单考核可让您快速了解如何使用小程序,建议先查看学习教程'
};
},
computed: {
learnStyle() {
return {
'color': '#2272FF',
'width': '120rpx',
'height': '48rpx',
'background-color': '#FFFFFF',
'font-size': '24rpx'
}
},
learnedStyle() {
return {
'color': '#999999',
'width': '120rpx',
'height': '48rpx',
'background-color': '#FFFFFF',
'font-size': '24rpx'
}
},
buttonStyle() {
return {
'color': '#FFFFFF',
'width': '500rpx',
'height': '112rpx',
'background-color': '#2272FF',
'font-size': '32rpx',
'font-weight': 'bold'
}
}
},
onLoad() {
this.tutorials.map((item, key) => {
item['url'] = app.globalData.service_standard[item.id].url
item['title'] = app.globalData.service_standard[item.id].title
item['value'] = item['status'] ? '已学习' : '去学习'
item['courseActive'] = item['status'] ? this.learnStyle : this.learnedStyle
})
this.loadLearnData();
},
methods: {
loadLearnData() {
let that = this;
that.$u.api
.listOrderingTutorials()
.then(res => {
const results = res.data;
if (res.status == 200 && results && results.length > 0) {
that.tutorials.forEach((data, i) => {
if (results.hasOwnProperty(data.id)) {
data.status = results[data.id];
data.value = data.status ? '已学习' : '去学习';
data.courseActive = data.status ? {
"color": "#2979ff"
} : {
"color": "red"
}
that.tutorials[i] = data;
}
});
}
})
.catch(e => {
debugger;
console.log(e, 'loadLearnData');
});
},
handleClick() {
uni.navigateTo({
url: '/pages/exam/index'
}) })
.catch(e => { },
debugger; viewCourse(e) {
console.log(e, 'loadLearnData'); let that = this;
}); let params = `id=${e.id}&courseId=${e.courseId}&status=${e.status}`
}, uni.navigateTo({
viewCourse(e) { url: `/pages/learn/course-detail?${params}`
let that = this; })
let params = `id=${e.id}&courseId=${e.courseId}&status=${e.status}` },
uni.navigateTo({ }
url: `/pages/learn/course-detail?${params}` };
}) </script>
},
<style lang="scss" scoped>
.exam-tips .u-alert-tips {
border-radius: 12rpx !important;
border: none !important;
.u-alert-title {
font-size: 28rpx !important;
font-weight: bold;
}
}
.exam-wrap {
background-color: #F4F5F7;
position: absolute;
top: 0;
left: 0;
width: 100%;
height: 100%;
display: flex;
flex-direction: column;
}
.exam-head {
font-size: 36rpx;
font-weight: bold;
}
.content-gap {
height: 1rpx;
margin-bottom: 200rpx;
}
.tip-text {
background-color: #FFFFFF;
border-radius: 12rpx;
padding: 38rpx 30rpx 30rpx 30rpx;
height: 140rpx;
margin-bottom: 20rpx;
font-size: 24rpx;
color: #000000;
display: flex;
align-items: flex-start;
}
.tip-image {
width: 28rpx;
margin-right: 10rpx;
margin-top: 2rpx;
}
.learn-view-title {
font-size: 32rpx;
color: #333333;
font-weight: bold;
} }
}; .tip-bottom {
</script> background-color: #FFFFFF;
border-radius: 12rpx;
<style lang="scss"> padding: 38rpx 30rpx 30rpx 30rpx;
.exam-tips .u-alert-tips { margin-bottom: 20rpx;
border-radius: 12rpx !important; font-size: 28rpx;
border: none !important; color: #333333;
margin-bottom: 188rpx;
.u-alert-title { .tip-bottom-h {
font-size: 28rpx !important; font-size: 24rpx;
font-weight: bold; color: #999999;
} }
} .tip-bottom-t {
.exam-wrap { margin-top: 30rpx;
background: #f4f5f7; margin-bottom: 20rpx;
} }
}
.exam-head {
font-size: 36rpx; .learn-view {
font-weight: bold; background-color: #FFFFFF;
} border-radius: 12rpx;
padding: 38rpx 30rpx 30rpx 30rpx;
.content-gap { margin-bottom: 20rpx;
height: 1rpx; font-size: 32rpx;
margin-bottom: 200rpx; color: #333333;
}
.learn-list {
.learn-list-item {
display: flex;
justify-content: space-between;
margin-top: 30rpx;
margin-bottom: 30rpx;
.item-content {
display: flex;
}
.item-st {
width: 80rpx;
height: 36rpx;
background-image: linear-gradient(to right, #FF930D, #FFC174);
font-size: 16rpx;
border-radius: 6rpx 36rpx 36rpx 6rpx;
padding-top: 8rpx;
padding-right: 2rpx;
text-align: center;
margin-right: 20rpx;
.item-st-text {
color: #FFFFFF;
}
}
.item-title {
color: #333333;
font-size: 28rpx;
}
}
.line-view {
background-color: #F4F5F7;
height: 2rpx;
width: 100%;
}
}
}
</style> </style>
...@@ -103,7 +103,6 @@ export default { ...@@ -103,7 +103,6 @@ export default {
signupLogin(e) { signupLogin(e) {
var that = this var that = this
debugger
console.log(e.detail.errMsg) console.log(e.detail.errMsg)
console.log(e.detail.iv) console.log(e.detail.iv)
console.log(e.detail.encryptedData) console.log(e.detail.encryptedData)
......
...@@ -9,53 +9,60 @@ ...@@ -9,53 +9,60 @@
<view class="u-menu-wrap"> <view class="u-menu-wrap">
<scroll-view scroll-y scroll-with-animation class="u-tab-view menu-scroll-view" :scroll-top="scrollTop" <scroll-view scroll-y scroll-with-animation class="u-tab-view menu-scroll-view" :scroll-top="scrollTop"
:scroll-into-view="itemId"> :scroll-into-view="itemId">
<view v-for="(item,index) in tabbar" :key="index" class="u-tab-item" <view v-for="(item,index) in groupList" :key="index" class="u-tab-item"
:class="[current == index ? 'u-tab-item-active' : '']" @tap.stop="swichMenu(index)"> :class="[current == index ? 'u-tab-item-active' : '']" @tap.stop="swichMenu(index)">
<text class="u-line-1">{{item.name}}</text> <text class="u-line-1">{{item.groupName}}</text>
</view> </view>
</scroll-view> </scroll-view>
<scroll-view :scroll-top="scrollRightTop" scroll-y scroll-with-animation class="right-box" <scroll-view :scroll-top="scrollRightTop" scroll-y scroll-with-animation class="right-box"
@scroll="rightScroll"> @scroll="rightScroll">
<!-- <form-com :item="tabbar"></form-com> -->
<u-form :model="form" ref="uForm"> <u-form :model="form" ref="uForm">
<template v-for="(groupItem,index) in tabbar"> <template v-for="(groupItem,groupIndex) in groupList">
<view class="class-item" :key="index"> <view class="class-item" :key="groupIndex">
<view class="title">{{groupItem.name}}</view> <view class="title">{{groupItem.groupName}}</view>
<view class="class-bd"> <view class="class-bd">
<u-form-item :label-width="0" :required="groupItem.required" <u-form-item v-for="(item,itemIndex) in groupItem.item" :key="itemIndex"
v-for="(item,itemIndex) in groupItem.foods" :key="itemIndex"> :prop="item.fieldsName">
<!-- <view :key="index"> --> <view class="label" @click="nextStep(item)">
<view>{{item.name}}</view> <text class="required" v-if="item.required">*</text>
<xh-input></xh-input> {{item.fieldsTitle}}
<!-- <xh-input :item="item" v-if="item.fieldsType==='input'"></xh-input> --> </view>
<!-- </view> --> <template v-if="item.fieldsType">
<xh-input v-if="item.fieldsType==='input'" :groupIndex="groupIndex"
:itemIndex="itemIndex" :item="item" @value-change="fieldValueChange">
</xh-input>
<xh-radio v-if="item.fieldsType==='radio'" :groupIndex="groupIndex"
:itemIndex="itemIndex" :item="item" @value-change="fieldValueChange">
</xh-radio>
<xh-checkbox v-if="item.fieldsType==='checkbox'" :groupIndex="groupIndex"
:itemIndex="itemIndex" :item="item" @value-change="fieldValueChange">
</xh-checkbox>
<xh-select v-if="item.fieldsType==='select'" :groupIndex="groupIndex"
:itemIndex="itemIndex" :item="item" @value-change="fieldValueChange">
</xh-select>
<xh-files v-if="item.fieldsType==='file'" :groupIndex="groupIndex"
:itemIndex="itemIndex" :item="item" @value-change="fieldValueChange">
</xh-files>
</template>
</u-form-item> </u-form-item>
</view> </view>
</view> </view>
</template> </template>
</u-form> </u-form>
<!-- <xh-input></xh-input> -->
<!-- <view class="page-view">
<view class="class-item" :id="'item' + index" v-for="(item , index) in tabbar" :key="index">
<view class="item-title">
<text>{{item.name}}</text>
</view>
<view class="item-container">
<view class="thumb-box" v-for="(item1, index1) in item.foods" :key="index1">
<image class="item-menu-image" :src="item1.icon" mode=""></image>
<view class="item-menu-name">{{item1.name}}</view>
</view>
</view>
</view>
</view> -->
</scroll-view> </scroll-view>
</view> </view>
<view @click="nextStep">下一步</view>
</view> </view>
</template> </template>
<script> <script>
import classifyData from '@/common/classify.data.js'; import classifyData from '@/common/classify.data.js';
// import formCom from './components/formCom.vue'
import XhInput from '@/components/createCom/XhInput.vue' import XhInput from '@/components/createCom/XhInput.vue'
import XhRadio from '@/components/createCom/XhRadio.vue'
import XhCheckbox from '@/components/createCom/XhCheckbox.vue'
import XhSelect from '@/components/createCom/XhSelect.vue'
import XhFiles from '@/components/createCom/XhFiles.vue'
// import XhRadio from '@/components/createCom/XhRadio.vue'
export default { export default {
data() { data() {
return { return {
...@@ -65,16 +72,50 @@ ...@@ -65,16 +72,50 @@
menuHeight: 0, // 左边菜单的高度 menuHeight: 0, // 左边菜单的高度
menuItemHeight: 0, // 左边菜单item的高度 menuItemHeight: 0, // 左边菜单item的高度
itemId: '', // 栏目右边scroll-view用于滚动的id itemId: '', // 栏目右边scroll-view用于滚动的id
tabbar: classifyData, groupList: classifyData, // 基本信息、安装 、勘察(其中一项表单数据)
menuItemPos: [], menuItemPos: [],
arr: [], arr: [],
scrollRightTop: 0, // 右边栏目scroll-view的滚动条高度 scrollRightTop: 0, // 右边栏目scroll-view的滚动条高度
timer: null, // 定时器 timer: null, // 定时器
form: { // 一维表单
name: 'name',
radio: ''
},
rules: {
name: [{
required: true,
min: 10,
message: '姓名不能为空',
// 可以单个或者同时写两个触发验证方式
trigger: ['change', 'blur'],
}],
mobile: [{
required: true,
min: 10,
message: '姓名不能为空',
// 可以单个或者同时写两个触发验证方式
trigger: ['change', 'blur'],
}, {
// 自定义验证函数,见上说明
validator: (rule, value, callback) => {
// 上面有说,返回true表示校验通过,返回false表示不通过
// this.$u.test.mobile()就是返回true或者false的
return this.$u.test.mobile(value);
},
message: '手机号码不正确',
// 触发器可以同时用blur和change
trigger: ['change', 'blur'],
}]
}
} }
}, },
components: { components: {
'xh-input': XhInput, XhInput,
XhRadio,
XhCheckbox,
XhSelect,
XhFiles
// formCom
}, },
created() { created() {
// console.log(allComponents,'allComponents') // console.log(allComponents,'allComponents')
...@@ -83,9 +124,33 @@ ...@@ -83,9 +124,33 @@
}, },
onReady() { onReady() {
this.$refs.uForm.setRules(this.rules);
// 导航栏滚动切换
this.getMenuItemTop() this.getMenuItemTop()
}, },
updated() {
console.log(this.form.name, 'form.name')
},
methods: { methods: {
// 字段的值更新
fieldValueChange(data) {
// data.groupIndex data.itemIndex值下标 data.value //值
console.log(data, 'data')
const groupItem = this.groupList[data.groupIndex]
let innerItem
if (groupItem.item) {
innerItem = groupItem.item[data.itemIndex]
}
console.log(innerItem, 'innerItem')
this.form[innerItem.fieldsName] = data.value
console.log(this.form, 'this.form')
},
nextStep(item) {
// 下一步
console.log(item, 'item')
},
// ------------------------- 以下方法为展示滚动切换 -------------------------
// 点击左边的栏目切换 // 点击左边的栏目切换
async swichMenu(index) { async swichMenu(index) {
if (this.arr.length == 0) { if (this.arr.length == 0) {
...@@ -196,6 +261,35 @@ ...@@ -196,6 +261,35 @@
</script> </script>
<style lang="scss" scoped> <style lang="scss" scoped>
// ---------------------------- 表单样式begin ----------------------------
/deep/ .u-form-item {
.u-form-item__message {
padding-left: 0 !important;
}
.u-form-item--left__content--required {
vertical-align: top;
}
}
.class-item {
.label {
color: #333;
font-size: 28rpx;
line-height: 40rpx;
}
.required {
padding-right: 10rpx;
font-size: 28rpx;
line-height: 40rpx;
color: #fa3534;
}
}
// ---------------------------- 表单样式end ----------------------------
.u-wrap { .u-wrap {
height: calc(100vh); height: calc(100vh);
/* #ifdef H5 */ /* #ifdef H5 */
......
<!-- 实现动态组件的绑定 -->
<template>
<view class="group-list">
书籍及
<u-form :model="form" ref="uForm">
<template v-for="(groupItem,index) in group">
<view class="group-item">
<view class="group-title" :key="index">{{groupItem.name}}</view>
<view class="group-items" :key="index">
<u-form-item :label-width="0" :required="item.required"
v-for="(item,itemIndex) in groupItem.foods" :key="index">
<!-- <view :key="index"> -->
<view>{{item.name}}</view>
<xh-input></xh-input>
<!-- <xh-input :item="item" v-if="item.fieldsType==='input'"></xh-input> -->
<!-- </view> -->
</u-form-item>
</view>
</view>
</template>
</u-form>
</view>
</template>
<script>
// import {
// // XhInput,
// // XhSelect,
// // XhMultipleSelect,
// // XhFiles,
// // XhSwitch,
// // XhTextarea,
// // XhServiceMore,
// // XhDate
// } from '@/components/createCom/index.js'
import XhInput from '@/components/createCom/XhInput.vue'
export default {
components: {
'xh-input': XhInput,
},
props: {
item: {
type: Array,
default () {
return []
}
},
},
watch:{
"item":function(newVal){
this.group = newVal
console.log(this.group,'this.group')
}
},
data() {
return {
list: [{
fieldsId: '产品规格',
fieldsType: 'input',
fieldsName: '产品规格',
fieldsValue: '',
required: true,
fields_options: [{
key: '',
label: ''
}]
},],
// 完工信息的不同项
group: [{
groupName: '接入点信息',
item: [{
fieldsId: '基础信息',
fieldsType: 'input',
fieldsName: '产品规格',
fieldsValue: '',
required: true,
fields_options: [{
key: '',
label: ''
}]
},]
}],
configList: [{
panelName: '',
panelType: '',
group: [{
groupName: '接入点信息',
item: [{
fieldsId: '基础信息',
fieldsType: 'input',
fieldsName: '',
fieldsValue: '',
required: true,
fields_options: [{
key: '',
label: ''
}]
}]
}]
}],
form: {
name: '',
intro: '',
sex: ''
},
checkboxList: [{
name: '苹果',
checked: false,
disabled: false
},
{
name: '雪梨',
checked: false,
disabled: false
},
{
name: '柠檬',
checked: false,
disabled: false
}
],
radioList: [{
name: '鲜甜',
disabled: false
},
{
name: '麻辣',
disabled: false
}
],
radio: '',
switchVal: false
}
},
created() {
this.group = this.item
console.log(this.group,'this.group')
console.log(XhInput, 'XhInput')
}
}
</script>
<style lang="scss" scoped>
.group-list{
.group-item{
}
}
</style>
...@@ -17,7 +17,7 @@ ...@@ -17,7 +17,7 @@
<u-icon name="arrow-right" color="#2272FF" size="28"></u-icon> <u-icon name="arrow-right" color="#2272FF" size="28"></u-icon>
</view> </view>
<view class="tips">可以服务的城市,可选多个</view> <view class="tips">可以服务的城市,可选多个</view>
<view v-if=""> <view v-if="cityText">
<view class="line-view-d"></view> <view class="line-view-d"></view>
<view class="city-text">{{cityText}}</view> <view class="city-text">{{cityText}}</view>
</view> </view>
......
...@@ -457,264 +457,265 @@ export default { ...@@ -457,264 +457,265 @@ export default {
} }
</script> </script>
<style lang="scss" scoped> <style lang="scss" scoped>
.page-content { .page-content {
background-color: #f4f5f7; background-color: #F4F5F7;
position: absolute; position: absolute;
top: 0; top: 0;
left: 0; left: 0;
width: 100%; width: 100%;
height: 100%; height: 100%;
display: flex; display: flex;
flex-direction: column; flex-direction: column;
} }
.base-list { .base-list {
.item { .item {
display: flex; display: flex;
margin-bottom: 58rpx; margin-bottom: 58rpx;
padding: 28rpx 30rpx; padding: 28rpx 30rpx;
width: 100%; width: 100%;
height: 100rpx; height: 100rpx;
font-size: 32rpx; font-size: 32rpx;
background-color: #fff; background-color: #fff;
.label { .label {
color: #333; color: #333;
font-size: 32rpx; font-size: 32rpx;
} }
.txt { .txt {
line-height: 44rpx; line-height: 44rpx;
color: #333; color: #333;
font-size: 32rpx; font-size: 32rpx;
} }
.required { .required {
margin: 0 6rpx; margin: 0 6rpx;
color: red; color: red;
font-size: 32rpx; font-size: 32rpx;
} }
.iconfont { .iconfont {
color: #999; color: #999;
} }
} }
.tips { .tips {
margin-top: 20rpx; margin-top: 20rpx;
padding: 0 30rpx; padding: 0 30rpx;
line-height: 40rpx; line-height: 40rpx;
font-size: 28rpx; font-size: 28rpx;
color: #666; color: #666;
& + .id-identity-box { &+.id-identity-box {
margin-top: -38rpx; margin-top: -38rpx;
margin-bottom: 40rpx; margin-bottom: 40rpx;
} }
} }
.id-identity-box { .id-identity-box {
.txt { .txt {
padding-top: 8rpx; padding-top: 8rpx;
line-height: 40rpx; line-height: 40rpx;
font-size: 28rpx; font-size: 28rpx;
color: #666; color: #666;
&:first-child { &:first-child {
margin-top: -58rpx; margin-top: -58rpx;
padding-top: 12rpx; padding-top: 12rpx;
} }
.red { .red {
color: red; color: red;
} }
} }
// &.tips{ // &.tips{
// margin-bottom:0!important; // margin-bottom:0!important;
// } // }
}
}
.item + .tips {
margin-top: -38rpx; .item+.tips {
margin-bottom: 58rpx; margin-top: -38rpx;
} margin-bottom: 58rpx;
}
/*选择内容*/
.item-select { /*选择内容*/
font-size: 30rpx; .item-select {
color: #333; font-size: 30rpx;
font-weight: 500; color: #333;
justify-content: space-between; font-weight: 500;
border-bottom: 1rpx solid #f5f5f5; justify-content: space-between;
} border-bottom: 1rpx solid #f5f5f5;
}
.flex1 {
flex: 1 !important; .flex1 {
flex: 1 !important;
&.txt {
white-space: nowrap; &.txt {
// max-width: 450rpx; white-space: nowrap;
overflow: hidden; // max-width: 450rpx;
text-overflow: ellipsis; overflow: hidden;
} text-overflow: ellipsis;
} }
}
.item-input {
overflow: hidden; .item-input {
overflow: hidden;
input {
text-align: right; input {
line-height: 44rpx; text-align: right;
width: 100%; line-height: 44rpx;
font-size: 30rpx; width: 100%;
color: #333; font-size: 30rpx;
font-weight: 400; color: #333;
} font-weight: 400;
}
.input-readonly {
font-size: 30rpx; .input-readonly {
color: #999; font-size: 30rpx;
font-weight: 400; color: #999;
} font-weight: 400;
}
input::-webkit-input-placeholder {
font-size: 30rpx; input::-webkit-input-placeholder {
color: #999; font-size: 30rpx;
font-weight: 400; color: #999;
} font-weight: 400;
}
input:-moz-placeholder {
font-size: 30rpx; input:-moz-placeholder {
color: #999; font-size: 30rpx;
font-weight: 400; color: #999;
} font-weight: 400;
}
input:-ms-input-placeholder {
font-size: 30rpx; input:-ms-input-placeholder {
color: #999; font-size: 30rpx;
font-weight: 400; color: #999;
} font-weight: 400;
} }
} }
}
.tip-text {
background-color: #ffffff; .tip-text {
border-radius: 12rpx; background-color: #FFFFFF;
padding: 38rpx 30rpx 30rpx 30rpx; border-radius: 12rpx;
height: 140rpx; padding: 38rpx 30rpx 30rpx 30rpx;
margin-bottom: 20rpx; height: 140rpx;
font-size: 24rpx; margin-bottom: 20rpx;
color: #000000; font-size: 24rpx;
display: flex; color: #000000;
align-items: flex-start; display: flex;
} align-items: flex-start;
}
.tip-image {
width: 34rpx; .tip-image {
margin-right: 8rpx; width: 34rpx;
margin-top: 2rpx; margin-right: 8rpx;
} margin-top: 2rpx;
}
.bottom-tip-view {
color: #999999; .bottom-tip-view {
font-size: 20rpx; color: #999999;
display: flex; font-size: 20rpx;
align-items: flex-start; display: flex;
margin-top: 30rpx; align-items: flex-start;
} margin-top: 30rpx;
}
.bottom-tip-image {
width: 24rpx; .bottom-tip-image {
height: 24rpx; width: 24rpx;
margin-right: 8rpx; height: 24rpx;
margin-top: 4rpx; margin-right: 8rpx;
} margin-top: 4rpx;
}
.seat {
padding-bottom: 144rpx; .seat {
} padding-bottom: 144rpx;
}
/*提交按钮*/
.btn-wrap { /*提交按钮*/
width: 100%; .btn-wrap {
width: 100%;
.btn-submit {
width: 600rpx; .btn-submit {
height: 104rpx; width: 600rpx;
line-height: 104rpx; height: 104rpx;
border-radius: 52rpx; line-height: 104rpx;
background: #2272ff; border-radius: 52rpx;
font-size: 32rpx; background: #2272FF;
color: #fff; font-size: 32rpx;
color: #fff;
&[disabled] {
background-color: #d1d4d4; &[disabled] {
color: #ffffff; background-color: #D1D4D4;
} color: #FFFFFF;
} }
} }
.card-info-view { }
margin-top: 30rpx; .card-info-view {
.card-list-view { margin-top: 30rpx;
.card-list-item { .card-list-view {
display: flex; .card-list-item {
justify-content: space-between; display: flex;
font-size: 28rpx; justify-content: space-between;
margin-top: 20rpx; font-size: 28rpx;
margin-bottom: 20rpx; margin-top: 20rpx;
color: #333333; margin-bottom: 20rpx;
.card-item-text { color: #333333;
color: #666666; .card-item-text {
width: 60%; color: #666666;
} width: 60%;
} }
.line-view { }
background-color: #f4f5f7; .line-view {
height: 2rpx; background-color: #F4F5F7;
width: 100%; height: 2rpx;
} width: 100%;
.card-item-error { }
color: red; .card-item-error{
font-size: 20rpx; color: red;
} font-size: 20rpx;
} }
} }
}
.info-view {
margin-bottom: 188rpx; .info-view {
margin-bottom: 188rpx;
.title-view {
background-color: #ffffff; .title-view {
border-radius: 12rpx; background-color: #FFFFFF;
padding: 38rpx 30rpx 30rpx 30rpx; border-radius: 12rpx;
margin-bottom: 20rpx; padding: 38rpx 30rpx 30rpx 30rpx;
font-size: 32rpx; margin-bottom: 20rpx;
color: #333333; font-size: 32rpx;
color: #333333;
.title-image {
width: 24rpx; .title-image {
height: 24rpx; width: 24rpx;
margin-right: 10rpx; height: 24rpx;
} margin-right: 10rpx;
} }
}
.info-tip-text {
font-size: 24rpx; .info-tip-text {
color: #666666; font-size: 24rpx;
margin-top: 10rpx; color: #666666;
} margin-top: 10rpx;
}
.image-view {
margin-top: 30rpx; .image-view {
display: flex; margin-top: 30rpx;
justify-content: space-between; display: flex;
justify-content: space-between;
.info-image {
width: 300rpx; .info-image {
height: 226rpx; width: 300rpx;
} height: 226rpx;
} }
} }
}
</style> </style>
...@@ -166,8 +166,8 @@ ...@@ -166,8 +166,8 @@
this.jumpJudge() this.jumpJudge()
}, },
jumpJudge() { jumpJudge() {
if (this.status > 0) { if (Number(this.status) > 0) {
uni.navigateTo({ uni.navigateTo({
url: '/pages/settle/prompt' url: '/pages/settle/prompt'
}) })
......
<template> <template>
<view class="content"> <view class="content">
<view class="base-list"> <Settle :index="5">
<view class="title">充电桩安装需缴纳设备押金</view> <view class="base-list">
<view class="price"><text>¥</text>{{settledInfo.record.deposit}}</view> <view class="title">充电桩安装需缴纳设备押金</view>
<view class="list"> <view class="price"><text>¥ </text>{{settledInfo.record.deposit}}</view>
<view class="item u-flex u-row-between"> <view class="list">
<view class="txt">您已缴纳金额</view> <view class="item u-flex u-row-between">
<view class="txt">¥ 0.00</view> <view class="txt">您已缴纳金额</view>
</view> <view class="txt-value">¥ 0.00</view>
<view class="item u-flex u-row-between"> </view>
<view class="txt">待缴纳金额</view> <view class="line-view"></view>
<view class="txt">¥ {{settledInfo.record.deposit}}</view> <view class="item u-flex u-row-between">
</view> <view class="txt">待缴纳金额</view>
</view> <view class="txt-value">¥ {{settledInfo.record.deposit}}</view>
<!-- <view class="tips">你已缴纳金额:1000.00元</view> </view>
<view class="tips">充电桩安装需缴纳保证金:1000元待缴金额:1000元</view> --> </view>
</view> <!-- <view class="tips">你已缴纳金额:1000.00元</view>
<view class="seat"></view> <view class="tips">充电桩安装需缴纳保证金:1000元待缴金额:1000元</view> -->
<view class="btn-wrap flex-xc"> </view>
<button class="btn-submit" :disabled="saving" @click="paySubmit">
{{saving ? '支付中……' : '微信支付'}} <template v-slot:bottom>
</button> <view class="btn-wrap flex-xc">
</view> <button class="btn-submit" :disabled="saving" @click="paySubmit">
</view> <image class="button-image" mode="widthFix" src="../../static/settle/weixin@3x.png"></image>
</template> <text>{{saving ? '支付中……' : '微信支付'}}</text>
</button>
<script> </view>
import pingpp from '@/include/libs/pingpp.js' </template>
const globalUrl = process.uniEnv || {} </Settle>
import util from '@/utils/util.js' </view>
export default { </template>
data() {
return { <script>
saving: false, import Settle from '@/components/settle/index.vue'
paySuccess:false, import pingpp from '@/include/libs/pingpp.js'
payResult:{ const globalUrl = process.uniEnv || {}
oid:'' import util from '@/utils/util.js'
}, export default {
isRefresh:false, components: {
settledInfo:null, Settle
} },
}, data() {
onLoad(e) { return {
saving: false,
}, paySuccess: false,
onShow(){ payResult: {
if(!this.settledInfo){ oid: ''
this.getBaseInfo() },
} isRefresh: false,
}, settledInfo: {
computed: {}, record: {
watch:{ deposit: ''
isRefresh(val){ }
this.getBaseInfo() },
} }
}, },
components: { onLoad(e) {
}, },
methods: { onShow() {
successCallback(){ if (!this.settledInfo.record.deposit) {
uni.navigateTo({ this.getBaseInfo()
url:'/pages/settle/prompt' }
}) },
}, computed: {},
async getBaseInfo(){ watch: {
const app = getApp() isRefresh(val) {
const callBack = (vm,result)=>{ this.getBaseInfo()
vm.settledInfo = result }
} },
let settledInfo = app.globalData.settledInfo components: {
if(settledInfo){
callBack(this,settledInfo) },
return methods: {
} successCallback() {
await app.getBaseInfo(this,callBack) uni.navigateTo({
url: '/pages/settle/prompt'
}, })
async pending(){ },
// const timer = setTimeout(async ()=>{ async getBaseInfo() {
// clearTimeout(timer) const app = getApp()
const params = { const callBack = (vm, result) => {
...this.payResult vm.settledInfo = result
} }
const res = await this.$u.api.getSettleDepositResult(params); let settledInfo = app.globalData.settledInfo
if(res.status!==true){ if (settledInfo) {
this.saving = false callBack(this, settledInfo)
return return
} }
uni.showToast({ await app.getBaseInfo(this, callBack)
title:'支付成功',
}) },
let timer = setTimeout(()=>{ async pending() {
clearTimeout(timer) // const timer = setTimeout(async ()=>{
this.successCallback() // clearTimeout(timer)
},3000) const params = {
}, ...this.payResult
getCode: async function() { }
let that = this const res = await this.$u.api.getSettleDepositResult(params);
uni.showLoading({ if (res.status !== true) {
title: '加载中', this.saving = false
}) return
return new Promise((resolve, reject) => { }
uni.login({ uni.showToast({
// #ifdef MP-ALIPAY title: '支付成功',
scopes: 'auth_user', })
// #endif let timer = setTimeout(() => {
success: function(res) { clearTimeout(timer)
if (res.code) { this.successCallback()
resolve(res.code) }, 3000)
//resolve(res.code); },
} else { getCode: async function() {
reject('未取得code'); let that = this
} uni.showLoading({
}, title: '加载中',
fail: function(res) { })
reject('用户授权失败wx.login'); return new Promise((resolve, reject) => {
}, uni.login({
complete() { // #ifdef MP-ALIPAY
uni.hideLoading() scopes: 'auth_user',
} // #endif
}); success: function(res) {
}); if (res.code) {
}, resolve(res.code)
async paySubmit() { //resolve(res.code);
const self = this } else {
this.saving = true reject('未取得code');
uni.showLoading({ }
title:'支付中……' },
}) fail: function(res) {
// 提交支付订单 reject('用户授权失败wx.login');
const code = await this.getCode() },
const params = { complete() {
oid: this.settledInfo.record.id, uni.hideLoading()
type: 'wx_lite', }
openid:util.getOpenid(), });
code:code });
// appid:'wxd1d6eede324b0465' },
} async paySubmit() {
const response = await this.$u.api.paySettleDeposit(params) const self = this
if (response.status!==true) { this.saving = true
uni.showToast({ uni.showLoading({
title: response.message, title: '支付中……'
icon:'none' })
}) // 提交支付订单
return const code = await this.getCode()
} const params = {
let timer = setTimeout(res=>{ oid: this.settledInfo.record.id,
clearTimeout(timer) type: 'wx_lite',
uni.showModal({ openid: util.getOpenid(),
title: '提示', code: code
content: '支付结果', // appid:'wxd1d6eede324b0465'
confirmText:'成功', }
cancelText:'失败', const response = await this.$u.api.paySettleDeposit(params)
success: function (res) { if (response.status !== true) {
if (res.confirm) { uni.showToast({
// console.log(res.confirm,'res.confirm') title: response.message,
self.pending() icon: 'none'
} else if (res.cancel) { })
self.saving = false return
console.log('用户点击取消'); }
} let timer = setTimeout(res => {
} clearTimeout(timer)
}); uni.showModal({
},1000) title: '提示',
content: '支付结果',
const { confirmText: '成功',
charge, cancelText: '失败',
oid success: function(res) {
} = response.data; if (res.confirm) {
this.payResult.oid = oid // console.log(res.confirm,'res.confirm')
//Web 与微信内支付 self.pending()
pingpp.createPayment(charge, (result, err) => { } else if (res.cancel) {
if (result == "success") { self.saving = false
// 只有微信公众账号 (wx_pub)、微信小程序 (wx_lite)、QQ 公众号 (qpay_pub)、支付宝口碑 (alipay_qr) console.log('用户点击取消');
// 支付成功的结果会在这里返回,其他的支付结果都会跳转到 extra 中对应的 URL。 }
uni.showToast({ }
title: '支付成功', });
icon:'none' }, 1000)
})
} else if (result == "fail") { const {
// charge 不正确或者微信公众账号/QQ 公众号/支付宝口碑支付失败时会在此处返回 charge,
// console.log(err.msg) oid
} else if (result == "cancel") { } = response.data;
// 微信公众账号、QQ 公众号、支付宝口碑支付取消支付 this.payResult.oid = oid
uni.showToast({ //Web 与微信内支付
title: '您已经取消了支付', pingpp.createPayment(charge, (result, err) => {
icon:'none' if (result == "success") {
}) // 只有微信公众账号 (wx_pub)、微信小程序 (wx_lite)、QQ 公众号 (qpay_pub)、支付宝口碑 (alipay_qr)
} // 支付成功的结果会在这里返回,其他的支付结果都会跳转到 extra 中对应的 URL。
}); uni.showToast({
}, title: '支付成功',
}, icon: 'none'
} })
</script> } else if (result == "fail") {
// charge 不正确或者微信公众账号/QQ 公众号/支付宝口碑支付失败时会在此处返回
<style lang="scss"> // console.log(err.msg)
.base-list { } else if (result == "cancel") {
text-align: center; // 微信公众账号、QQ 公众号、支付宝口碑支付取消支付
.txt{ uni.showToast({
title: '您已经取消了支付',
line-height: 50rpx; icon: 'none'
font-size:36rpx; })
color: #333; }
} });
.title{ },
margin-top:120rpx; },
font-weight: bold; }
line-height: 50rpx; </script>
font-size:36rpx;
color: #333; <style lang="scss" scoped>
} .content {
.price{ background-color: #F4F5F7;
margin-top:120rpx; position: absolute;
font-weight: bold; top: 0;
line-height: 90rpx; left: 0;
font-size:64rpx; width: 100%;
color: #333; height: 100%;
text{ display: flex;
font-size:32rpx; flex-direction: column;
} }
}
.list{ .base-list {
margin-top:200rpx; background-color: #FFFFFF;
padding:0 50rpx; border-radius: 12rpx;
.item{ padding: 30rpx;
padding:28rpx 0; min-height: 160rpx;
border-bottom: 1rpx solid #FDFDFD; margin-bottom: 188rpx;
} text-align: center;
.txt{
line-height: 44rpx; .txt {
font-size:32rpx;
color: #333; line-height: 50rpx;
} font-size: 36rpx;
} color: #333;
.tips { }
margin-top: 20rpx;
padding: 0 30rpx; .title {
line-height: 40rpx; margin-top: 80rpx;
font-size: 28rpx; font-weight: bold;
color: #666; line-height: 50rpx;
} font-size: 40rpx;
} color: #333;
}
.seat {
padding-bottom: 144rpx; .price {
} margin-top: 100rpx;
font-weight: bold;
/*提交按钮*/ line-height: 90rpx;
.btn-wrap { font-size: 64rpx;
position: fixed; color: #2272FF;
// margin: px2rem(36);
left: 0; text {
right: 0; font-size: 32rpx;
bottom: 0; }
padding: 30rpx 0; }
background: #f3f3f3;
.list {
.btn-submit { margin-top: 200rpx;
width: 600rpx; padding: 0 50rpx;
border-radius: 52rpx;
// left: 5%; .line-view {
// bottom: px2rem(36); background-color: #F4F5F7;
height: 104rpx; height: 2rpx;
line-height: 104rpx; width: 100%;
background: #2272ff; }
font-size: 32rpx;
.item {
padding: 28rpx 0;
}
.txt {
line-height: 44rpx;
font-size: 28rpx;
color: #666666;
}
.txt-value {
line-height: 44rpx;
font-size: 28rpx;
color: #333;
}
}
.tips {
margin-top: 20rpx;
padding: 0 30rpx;
line-height: 40rpx;
font-size: 28rpx;
color: #666;
}
}
.seat {
padding-bottom: 144rpx;
}
/*提交按钮*/
.btn-wrap {
width: 100%;
.button-image {
width: 38rpx;
padding-right: 20rpx;
}
.btn-submit {
width: 600rpx;
height: 104rpx;
line-height: 104rpx;
border-radius: 52rpx;
background: #2272FF;
font-size: 32rpx;
color: #fff; color: #fff;
display: flex;
&:disabled { align-items: center;
border: 2rpx solid #999; justify-content: center;
background-color: #f3f3f3;
color: #999; &[disabled] {
} background-color: #D1D4D4;
} color: #FFFFFF;
} }
}
}
</style> </style>
<template> <template>
<view class="container u-row-between" v-if="info"> <view class="container u-row-between" v-if="info">
<Settle :index="2"> <Settle :index="pageIndex">
<view class="content-view"> <view class="content-view">
<view class="u-flex u-row-center"> <view class="u-flex u-row-center">
<image :class="['icon', {active: status != 1}]" <image :class="['icon', {active: status != 1}]"
...@@ -8,12 +8,16 @@ ...@@ -8,12 +8,16 @@
</image> </image>
</view> </view>
<view class="txt-box"> <view class="txt-box">
<text :class="['title',index ? 'active' : '']" v-for="(txt,index) in info.txtArr">{{txt}}</text> <text :class="['title', {failed: status == 4} ,index ? 'active' : '']" v-for="(txt,index) in info.txtArr">{{txt}}</text>
</view> </view>
<view class="tips-box" v-if="info.tipsArr"> <view class="tips-box" v-if="info.tipsArr">
<text :class="['tips',info.tipsArr.length>1 && index===0 ? 'red' : '']" <text :class="['tips',info.tipsArr.length>1 && index===0 ? 'red' : '']"
v-for="(txt,index) in info.tipsArr">{{txt}}</text> v-for="(txt,index) in info.tipsArr">{{txt}}</text>
</view> </view>
<view class="services-view">
<Services/>
</view>
</view> </view>
<template v-slot:bottom> <template v-slot:bottom>
<button class="btn-submit" @click="$u.debounce(goPage, 500)">{{info.btnTxt}}</button> <button class="btn-submit" @click="$u.debounce(goPage, 500)">{{info.btnTxt}}</button>
...@@ -24,34 +28,37 @@ ...@@ -24,34 +28,37 @@
<script> <script>
import Settle from '@/components/settle/index.vue' import Settle from '@/components/settle/index.vue'
import Services from '@/components/settle/services.vue'
export default { export default {
components: { components: {
Settle Settle,
Services
}, },
data() { data() {
return { return {
pageIndex: 2,
settledInfo: null, settledInfo: null,
promptList: [{ promptList: [{
status: 1, status: 1,
statusName: '待审核', statusName: '待审核',
txtArr: ['已提交,等待审核', '正在审核中'], txtArr: ['已提交,等待审核', '正在审核中'],
btnTxt: '去接单广场逛逛', btnTxt: '去首页',
url: '/pages/take/index' url: '/pages/index/index'
}, { }, {
status: 2, status: 2,
statusName: '已通过', statusName: '已通过',
txtArr: ['恭喜,审核通过', '“充电桩安装入驻审核”'], txtArr: ['恭喜,审核通过', '“充电桩安装入驻审核”'],
btnTxt: '去考试', btnTxt: '去考试',
url: '/pages/exam/start' url: '/pages/learn/exam'
}, { }, {
status: 3, status: 3,
statusName: '备选', statusName: '备选',
txtArr: ['您已成为', "“充电桩安装备选服务商”"], txtArr: ['您已成为', "“充电桩安装备选服务商”"],
tipsArr: ['后续如有业务,请留意通知!'], tipsArr: ['后续如有业务,请留意通知!'],
btnTxt: '去接单广场逛逛', btnTxt: '去首页',
url: '/pages/take/index' url: '/pages/index/index'
}, { }, {
status: 4, status: 4,
statusName: '已驳回', statusName: '已驳回',
...@@ -77,8 +84,8 @@ ...@@ -77,8 +84,8 @@
status: 7, status: 7,
statusName: '已支付保证金', statusName: '已支付保证金',
txtArr: ['您已成为', "充电桩安装的正式服务商"], txtArr: ['您已成为', "充电桩安装的正式服务商"],
btnTxt: '去接单广场逛逛', btnTxt: '去首页',
url: '/pages/take/index' url: '/pages/index/index'
}], }],
// 入驻状态:0=>'待提交',1=>'待审核',2=>'已通过',3=>'备选',4=>'已驳回',5=>'已签约',6=>'未支付保证金',7=>'已支付保证金',8=>'已通过考试',9=>'待提交' // 入驻状态:0=>'待提交',1=>'待审核',2=>'已通过',3=>'备选',4=>'已驳回',5=>'已签约',6=>'未支付保证金',7=>'已支付保证金',8=>'已通过考试',9=>'待提交'
status: '', status: '',
...@@ -92,10 +99,16 @@ ...@@ -92,10 +99,16 @@
'@/static/settle/icon-prompt@3x.png') '@/static/settle/icon-prompt@3x.png')
} }
}, },
onLoad(e) { onLoad(e) {
if (e) {
if (e.pageIndex) {
this.pageIndex = e.pageIndex;
}
}
// if(!this.settledInfo){ // if(!this.settledInfo){
// this.getBaseInfo() // this.getBaseInfo()
// } // }
}, },
onShow() { onShow() {
if (!this.settledInfo) { if (!this.settledInfo) {
...@@ -113,9 +126,9 @@ ...@@ -113,9 +126,9 @@
vm.settledInfo = result vm.settledInfo = result
vm.status = result.record.status vm.status = result.record.status
} }
let settledInfo = await app.getBaseInfo(this, callBack) let settledInfo = await app.getBaseInfo(this, callBack)
this.settledInfo = settledInfo this.settledInfo = settledInfo
this.status = settledInfo.record.status this.status = settledInfo.record.status
uni.hideLoading() uni.hideLoading()
this.initInfo(settledInfo.record) this.initInfo(settledInfo.record)
}, },
...@@ -148,10 +161,17 @@ ...@@ -148,10 +161,17 @@
this.info = info this.info = info
}, },
goPage() { goPage() {
const url = this.info.url const url = this.info.url
uni.navigateTo({ if (this.status == 1 || this.status == 3 || this.status == 3) {
url, uni.reLaunch({
}); url,
});
} else {
uni.navigateTo({
url,
});
}
}, },
}, },
} }
...@@ -187,7 +207,7 @@ ...@@ -187,7 +207,7 @@
} }
.txt-box { .txt-box {
padding-bottom: 50rpx;
} }
.title { .title {
...@@ -198,29 +218,25 @@ ...@@ -198,29 +218,25 @@
font-weight: bold; font-weight: bold;
font-size: 44rpx; font-size: 44rpx;
color: #2272FF; color: #2272FF;
&.failed {
color: #FA5A49;
}
&.active { &.active {
color: #666666; color: #666666;
font-size: 24rpx; font-size: 24rpx;
font-weight: 300rpx; font-weight: 400;
margin-top: 26rpx; margin-top: 20rpx;
} }
} }
.tips-box { .tips-box {
margin-top: 32rpx; // margin-top: 32rpx;
text-align: center; text-align: center;
} }
.tips { .tips {
text-align: center; color: #666666;
line-height: 44rpx; font-size: 24rpx;
font-size: 32rpx;
color: #666;
&.red {
color: red;
}
} }
.btn-submit { .btn-submit {
...@@ -238,6 +254,11 @@ ...@@ -238,6 +254,11 @@
background-color: #f3f3f3; background-color: #f3f3f3;
color: #999; color: #999;
} }
}
.services-view {
display: flex;
justify-content: center;
padding-top: 50rpx;
} }
} }
</style> </style>
<template> <template>
<view class="content"> <view class="page-content">
<process :process="3" :type="0" title="业务流程"></process> <Settle :index="4">
<view class="content-txt"> <view class="tip-text">
<image class="tip-image" mode="widthFix" src="../../static/settle/tips3@3x.png"></image>
<view class="title">入驻协议内容</view> <text>身份证信息、银行卡相关信息、签约人信息须为同一人,否则无法入驻。</text>
<view class="txt"> </view>
</br>
师傅入驻须知 <view class="base-list">
</br> <view class="agreement-view">
一、入驻流程 <Agreement />
提交资料 → 审核通过 → 签署协议 → 开始接单
</br>
</br>
二、入驻条件
</br>
1.年龄在18-60周岁之间;
</br>
2.初中及以上学历;
</br>
3.能熟练使用智能手机;
</br>
4.与人交流时态度良好,沟通顺畅;
</br>
</br>
三、注意事项
</br>
1.若审核通过,平台工作人员将会电话联系您,并邀约参加师傅培训会,请您耐心等待;
</br>
2.开关插座、线路维修、空开漏保等品类的师傅需持有电工证;
</br>
3.家电清洗品类的师傅需持有专业高温清洗设备,并在每一笔清洗订单中上传设备照片(单独水枪类清洗设备不符合规定)。
</br>
4.请如实填写自己擅长品类,如有核实师傅申请的维修品类和开通账号的维修品类不一致,将不给予接单资格
</br>
</view>
</view>
<view class="base-list">
<view class="item item-input flex-yc">
<label class="label">签约人</label>
<view class="input flex1 u-text-right">{{baseInfo.name}}</view>
</view>
<view class="item item-select u-row-between">
<view class="label">结算方式:</view>
<u-radio-group v-model="baseInfo.pay_type" ref="radioGroup" @change="radioGroupChange">
<u-radio
ref="radio"
v-for="(item, index) in radioList" :key="index"
:name="item.value"
>
{{item.name}}
</u-radio>
</u-radio-group>
</view>
<template v-if="baseInfo.pay_type==='bankcard'">
<view class="item item-input flex u-row-between">
<label class="label">银行名称</label>
<input placeholder="请输入银行名称" maxlength="100" v-model="baseInfo.bank_name" class="input flex1" />
</view> </view>
<view class="item item-input flex u-row-between"> <view class="info-view">
<label class="label">银行卡号</label> <view class="item item-input flex-yc">
<input placeholder="请输入银行卡号" maxlength="30" v-model="baseInfo.bank_no" type="number" class="input flex1" /> <label class="label">签约人</label>
<view class="input flex1 u-text-right">{{baseInfo.name}}</view>
</view> </view>
<view class="item item-input flex u-row-between"> <view class="line-view"></view>
<label class="label">支行名称</label> <view class="item u-row-between">
<input placeholder="请输入支行名称" maxlength="100" v-model="baseInfo.bank_site" class="input flex1" /> <view class="label">结算方式:</view>
<u-radio-group class="radio-class" v-model="baseInfo.pay_type" ref="radioGroup" @change="radioGroupChange">
<u-radio ref="radio" v-for="(item, index) in radioList" :key="index" :name="item.value" label-size="28">
{{item.name}}
</u-radio>
</u-radio-group>
</view> </view>
</template> <view class="line-view"></view>
<template v-else> <template v-if="baseInfo.pay_type==='bankcard'">
<!-- <view class="item item-input flex u-row-between"> <view class="item item-input flex u-row-between">
<label class="label">姓名</label> <label class="label">银行名称</label>
<input placeholder="请输入账户名称" maxlength="30" v-model="baseInfo.bank_name" class="input flex1" /> <input placeholder="请输入银行名称" :placeholder-style="placeholderStyle" maxlength="100" v-model="baseInfo.bank_name" class="input flex1" />
</view> --> </view>
<view class="item item-input flex u-row-between"> <view class="line-view"></view>
<label class="label">支付宝账号</label> <view class="item item-input flex u-row-between">
<input placeholder="请输入支付宝账号" maxlength="100" v-model="baseInfo.bank_no" class="input flex1" /> <label class="label">银行卡号</label>
<input placeholder="请输入银行卡号" :placeholder-style="placeholderStyle" maxlength="30" v-model="baseInfo.bank_no" type="number"
class="input flex1" />
</view>
<view class="line-view"></view>
<view class="item item-input flex u-row-between">
<label class="label">支行名称</label>
<input placeholder="请输入支行名称" :placeholder-style="placeholderStyle" maxlength="100" v-model="baseInfo.bank_site" class="input flex1" />
</view>
</template>
<template v-else>
<!-- <view class="item item-input flex u-row-between">
<label class="label">姓名</label>
<input placeholder="请输入账户名称" maxlength="30" v-model="baseInfo.bank_name" class="input flex1" />
</view> -->
<view class="item item-input flex u-row-between">
<label class="label">支付宝账号</label>
<input placeholder="请输入支付宝账号" maxlength="100" v-model="baseInfo.bank_no" class="input flex1" />
</view>
</template>
</view>
</view>
<template v-slot:bottom>
<view class="btn-wrap flex-xc">
<button class="btn-submit" :disabled="!submitStatus" @click="$u.debounce(submitBaseInfo, 500)">
我已阅读协议,点击签约{{count ? '('+count+')' : ''}}
</button>
</view> </view>
</template> </template>
</view> </Settle>
<view class="seat"></view> </view>
<view class="btn-wrap flex-xc"> </template>
<button class="btn-submit" :disabled="!submitStatus" @click="$u.debounce(submitBaseInfo, 500)">
我已阅读协议,点击签约{{count ? '('+count+')' : ''}} <script>
</button> import Settle from '@/components/settle/index.vue'
</view> import Agreement from '@/components/settle/agreement.vue'
</view>
</template> const globalUrl = process.uniEnv || {}
const ucenterApiurl = globalUrl.ucenterUrl.apiUrl
<script> const app = getApp()
const globalUrl = process.uniEnv || {} export default {
const ucenterApiurl = globalUrl.ucenterUrl.apiUrl components: {
const app = getApp() Settle,
export default { Agreement,
data() { },
return { data() {
token:app.globalData.token, return {
baseInfo: { token: app.globalData.token,
name: "郭小清", baseInfo: {
id_card_no: "43072219800123456", name: "郭小清",
id: "", id_card_no: "43072219800123456",
bank_no: '',// 银行卡号 id: "",
bank_site:'', // 开户行 bank_no: '', // 银行卡号
bank_name:'', // 银行名称 bank_site: '', // 开户行
pay_type:'bankcard' // 结算方式:bankcard银行卡,alipay支付宝 bank_name: '', // 银行名称
}, pay_type: 'bankcard' // 结算方式:bankcard银行卡,alipay支付宝
radioList:[{ },
name:'银行卡', radioList: [{
value:'bankcard' name: '银行卡',
},{ value: 'bankcard'
name:'支付宝', }, {
value:'alipay' name: '支付宝',
}], value: 'alipay'
settledInfo:{}, }],
saving: false, settledInfo: {},
isStop:false, saving: false,
count:9, isStop: false,
} count: 9,
}, }
onLoad(e) { },
}, onLoad(e) {},
onShow(){ onShow() {
const refs = this.$refs const refs = this.$refs
this.$nextTick(()=>{ this.$nextTick(() => {
if(refs['radio'] && refs['radio'].length>0){ if (refs['radio'] && refs['radio'].length > 0) {
refs['radio'][0].setRadioCheckedStatus() refs['radio'][0].setRadioCheckedStatus()
} }
}) })
this.startCounting() this.startCounting()
this.getBaseInfo() this.getBaseInfo()
// const url = 'https://m.test.ibanshou.cn/activity/settled_2021/mini' // const url = 'https://m.test.ibanshou.cn/activity/settled_2021/mini'
// uni.navigateTo({ // uni.navigateTo({
// url:'/pages/settle/web?url='+url // url:'/pages/settle/web?url='+url
// }) // })
// https://m.test.ibanshou.cn/activity/settled_2021/mini // https://m.test.ibanshou.cn/activity/settled_2021/mini
}, },
computed: { computed: {
submitStatus() { submitStatus() {
const baseInfo = this.baseInfo const baseInfo = this.baseInfo
let flag = baseInfo.pay_type && baseInfo.bank_no let flag = baseInfo.pay_type && baseInfo.bank_no
if(baseInfo.pay_type==='bankcard'){ if (baseInfo.pay_type === 'bankcard') {
flag = flag && baseInfo.bank_site && baseInfo.bank_name flag = flag && baseInfo.bank_site && baseInfo.bank_name
} }
return flag && !this.saving && this.isStop; return flag && !this.saving && this.isStop;
}, },
}, placeholderStyle() {
components: { return 'color:#999999;font-size:28rpx'
}
}, },
watch:{ components: {
isRefresh(val){
if(val){ },
this.initPage() watch: {
} isRefresh(val) {
} if (val) {
}, this.initPage()
methods: { }
startCounting : function () { }
if(this.isStop){ },
return methods: {
} startCounting: function() {
if (this.isStop) {
this.count = this.count - 1 return
}
if(this.count > 0){
setTimeout(this.startCounting, 1000); this.count = this.count - 1
}else{
if (this.count > 0) {
this.isStop = true setTimeout(this.startCounting, 1000);
} else {
}
this.isStop = true
},
refreshPage(){ }
this.getBaseInfo()
}, },
checkBaseInfo() { refreshPage() {
const baseInfo = this.baseInfo; this.getBaseInfo()
let rulesObj = { },
pay_type: function(value) { checkBaseInfo() {
if (!value) { const baseInfo = this.baseInfo;
uni.showToast({ let rulesObj = {
title: '请选择支付方式', pay_type: function(value) {
icon: 'none' if (!value) {
}); uni.showToast({
return false; title: '请选择支付方式',
} icon: 'none'
}, });
mobile: function(value) { return false;
const mobileReg = /^[1][3,4,5,7,8][0-9]{9}$/; }
if (!value) { },
uni.showToast({ mobile: function(value) {
title: '请输入您的电话', const mobileReg = /^[1][3,4,5,7,8][0-9]{9}$/;
icon: 'none' if (!value) {
}); uni.showToast({
return false; title: '请输入您的电话',
return false; icon: 'none'
} else if (!mobileReg.test(value)) { });
uni.showToast({ return false;
title: '请输入正确的电话', return false;
icon: 'none' } else if (!mobileReg.test(value)) {
}); uni.showToast({
return false; title: '请输入正确的电话',
} icon: 'none'
}, });
bank_site: function(value) { return false;
if (!value && baseInfo.pay_type==='bankcard') { }
uni.showToast({ },
title: '请输入支行名称', bank_site: function(value) {
icon: 'none' if (!value && baseInfo.pay_type === 'bankcard') {
}); uni.showToast({
return false; title: '请输入支行名称',
} icon: 'none'
}, });
bank_no: function(value) { return false;
const pay_type = baseInfo.pay_type }
const txt = pay_type==='bankcard' ? '银行卡号' : '支付宝账户' },
const bandReg = /^([1-9]{1})(\d{15}|\d{16}|\d{18})$/ bank_no: function(value) {
if (!value) { const pay_type = baseInfo.pay_type
uni.showToast({ const txt = pay_type === 'bankcard' ? '银行卡号' : '支付宝账户'
title: '请输入' + txt, const bandReg = /^([1-9]{1})(\d{15}|\d{16}|\d{18})$/
icon: 'none' if (!value) {
}); uni.showToast({
return false; title: '请输入' + txt,
}else if (!bandReg.test(value) && pay_type==='bankcard') { icon: 'none'
uni.showToast({ });
title: '请输入正确的银行卡号', return false;
icon: 'none' } else if (!bandReg.test(value) && pay_type === 'bankcard') {
}); uni.showToast({
return false; title: '请输入正确的银行卡号',
} icon: 'none'
}, });
bank_name: function(value) { return false;
const txt = baseInfo.pay_type==='bankcard' ? '银行' : '支付宝账户' }
if (!value && baseInfo.pay_type==='bankcard') { },
uni.showToast({ bank_name: function(value) {
title: '请输入'+txt+'名称', const txt = baseInfo.pay_type === 'bankcard' ? '银行' : '支付宝账户'
icon: 'none' if (!value && baseInfo.pay_type === 'bankcard') {
}); uni.showToast({
return false; title: '请输入' + txt + '名称',
} icon: 'none'
}, });
}; return false;
const flagArr = Object.keys(baseInfo).some((key) => { }
// 返回验证失败的数组 },
let flag = true; };
if (rulesObj.hasOwnProperty(key)) { const flagArr = Object.keys(baseInfo).some((key) => {
const func = rulesObj[key]; // 返回验证失败的数组
const value = baseInfo[key]; let flag = true;
if (typeof func === "function") { if (rulesObj.hasOwnProperty(key)) {
flag = func(value) === false ? false : true; const func = rulesObj[key];
} const value = baseInfo[key];
} if (typeof func === "function") {
return !flag; flag = func(value) === false ? false : true;
}); }
return !flagArr || flagArr.length < 1; }
}, return !flag;
// async checkBank(){ });
// const baseInfo = this.baseInfo; return !flagArr || flagArr.length < 1;
// const type = this.baseInfo.pay_type },
// const request = { // async checkBank(){
// bankcard:this.$u.api.checkSettleBank, // const baseInfo = this.baseInfo;
// alipay:this.$u.api.checkSettleAlipay // const type = this.baseInfo.pay_type
// } // const request = {
// bankcard:this.$u.api.checkSettleBank,
// const params = { // alipay:this.$u.api.checkSettleAlipay
// name:baseInfo.bank_name, // }
// }
// if(type==='bankcard'){ // const params = {
// params['cardNumber'] = baseInfo.bank_no // name:baseInfo.bank_name,
// }else if(type==='alipay'){ // }
// params['account'] = baseInfo.bank_no // if(type==='bankcard'){
// } // params['cardNumber'] = baseInfo.bank_no
// const res = await request[type](params) // }else if(type==='alipay'){
// if(res.code!==200){ // params['account'] = baseInfo.bank_no
// return // }
// } // const res = await request[type](params)
// return true // if(res.code!==200){
// }, // return
radioGroupChange(val){ // }
this.baseInfo.bank_name = '' // return true
this.baseInfo.bank_no = '' // },
this.baseInfo.bank_site = '' radioGroupChange(val) {
}, this.baseInfo.bank_name = ''
async getBaseInfo(){ this.baseInfo.bank_no = ''
const app = getApp() this.baseInfo.bank_site = ''
const callBack = (vm,result)=>{ },
vm.settledInfo = result async getBaseInfo() {
const record = result.record const app = getApp()
vm.baseInfo.name = record.id_card_name const callBack = (vm, result) => {
vm.baseInfo.id = record.id vm.settledInfo = result
} const record = result.record
let settledInfo = app.globalData.settledInfo vm.baseInfo.name = record.id_card_name
if(settledInfo){ vm.baseInfo.id = record.id
callBack(this,settledInfo) }
return let settledInfo = app.globalData.settledInfo
} if (settledInfo) {
await app.getBaseInfo(this,callBack) callBack(this, settledInfo)
}, return
async submitInfo(){ }
// checkSettleSignInfo await app.getBaseInfo(this, callBack)
const baseInfo = this.baseInfo; },
const params = { async submitInfo() {
...baseInfo, // checkSettleSignInfo
} const baseInfo = this.baseInfo;
if(params.pay_type==='alipay'){ const params = {
params.bank_site = '支付宝' ...baseInfo,
} }
const res = await this.$u.api.checkSettleSignInfo(params) if (params.pay_type === 'alipay') {
console.log(res,'res') params.bank_site = '支付宝'
if (res.code != 200) { }
uni.showToast({ const res = await this.$u.api.checkSettleSignInfo(params)
title: res.message, console.log(res, 'res')
icon: 'none' if (res.code != 200) {
}); uni.showToast({
return false; title: res.message,
} icon: 'none'
return true });
}, return false;
async jumpSign(){ }
// 跳转签约 return true
const baseInfo = this.baseInfo; },
const params = { async jumpSign() {
...baseInfo, // 跳转签约
} const baseInfo = this.baseInfo;
const res = this.$u.api.checkSettleSignInfo(params) const params = {
if (res.status != 200) { ...baseInfo,
uni.showToast({ }
title: res.message, const res = this.$u.api.checkSettleSignInfo(params)
icon: 'none' if (res.status != 200) {
}); uni.showToast({
return; title: res.message,
} icon: 'none'
return true });
}, return;
async submitBaseInfo() { }
const baseInfo = this.baseInfo; return true
if (!this.checkBaseInfo()) { },
return; async submitBaseInfo() {
} const baseInfo = this.baseInfo;
this.saving = true; if (!this.checkBaseInfo()) {
uni.showLoading({ return;
title: '加载中' }
}); this.saving = true;
const result = await this.submitInfo() uni.showLoading({
if(!result){ title: '加载中'
this.saving = false; });
return const result = await this.submitInfo()
} if (!result) {
this.goSign() this.saving = false;
// const requestArr = ['submitBaseInfo','jumpSign'] return
// for(let i=0;i<requestArr.length;i++){ }
// const result = await this[requestArr[i]]() this.goSign()
// console.log(result,'result') // const requestArr = ['submitBaseInfo','jumpSign']
// if(!result){ // for(let i=0;i<requestArr.length;i++){
// break; // const result = await this[requestArr[i]]()
// } // console.log(result,'result')
// } // if(!result){
uni.hideLoading() // break;
uni.showToast({ // }
title: '入驻基本信息提交成功', // }
icon: 'success' uni.hideLoading()
}); uni.showToast({
// let timer = setTimeout(() => { title: '入驻基本信息提交成功',
// clearTimeout(timer) icon: 'success'
// uni.navigateTo({ });
// url:'/pages/settle/file' // let timer = setTimeout(() => {
// }) // clearTimeout(timer)
// }, 2000) // uni.navigateTo({
}, // url:'/pages/settle/file'
async goSign(){ // })
const token = app.globalData.token; // }, 2000)
const settledInfo = this.settledInfo },
const baseInfo = this.baseInfo async goSign() {
const params = { const token = app.globalData.token;
namePsn:settledInfo.record.id_card_name, const settledInfo = this.settledInfo
idNumberPsn:settledInfo.record.id_card_number, const baseInfo = this.baseInfo
province:settledInfo.provinceList.join(','), const params = {
city:settledInfo.cityList.join(','), namePsn: settledInfo.record.id_card_name,
cardName:baseInfo.bank_name, idNumberPsn: settledInfo.record.id_card_number,
cardCode:baseInfo.bank_no, province: settledInfo.provinceList.join(','),
pay_type:baseInfo.pay_type city: settledInfo.cityList.join(','),
} cardName: baseInfo.bank_name,
const res = await this.$u.post(globalUrl.systemUrl.apiUrl + '/wxh-worker-rest/rest/third/'+token+'/wuKong/sign',params,{'content-type': 'application/x-www-form-urlencoded'}) cardCode: baseInfo.bank_no,
this.saving = false; pay_type: baseInfo.pay_type
if(res.code!==200){ }
uni.showToast({ const res = await this.$u.post(globalUrl.systemUrl.apiUrl + '/wxh-worker-rest/rest/third/' + token +
title:'跳转签约失败', '/wuKong/sign', params, {
icon:'none' 'content-type': 'application/x-www-form-urlencoded'
}) })
return this.saving = false;
} if (res.code !== 200) {
uni.showToast({
const url = res.data title: '跳转签约失败',
icon: 'none'
getApp().globalData.signUrl = url })
return
uni.navigateTo({ }
// url:'/pages/settle/web?url='+url
url:'/pages/settle/web' const url = res.data
})
} getApp().globalData.signUrl = url
},
} uni.navigateTo({
</script> // url:'/pages/settle/web?url='+url
url: '/pages/settle/web'
<style lang="scss"> })
.content{ }
width:100%; },
height:100vh; }
display: flex; </script>
flex-direction: column;
background-color: #F3F3F3; <style lang="scss" scoped>
} .page-content {
.content-txt{ background-color: #F4F5F7;
overflow: auto; position: absolute;
flex:1; top: 0;
.title{ left: 0;
padding:30rpx 30rpx 0; width: 100%;
line-height: 40rpx; height: 100%;
text-align: center; display: flex;
font-weight: bold; flex-direction: column;
color: #333; }
font-size: 36rpx;
} .content-txt {
.txt{ overflow: auto;
padding:20rpx 30rpx; flex: 1;
line-height: 40rpx;
color: #333; .title {
font-size: 28rpx; padding: 30rpx 30rpx 0;
} line-height: 40rpx;
} text-align: center;
.base-list { font-weight: bold;
// height:524rpx; color: #333;
height:550rpx; font-size: 36rpx;
/deep/ .u-radio__label{ }
line-height: 40rpx;
} .txt {
.item { padding: 20rpx 30rpx;
display: flex; line-height: 40rpx;
padding: 28rpx 30rpx; color: #333;
width: 100%; font-size: 28rpx;
font-size: 32rpx; }
color:#333; }
border-bottom: 2rpx solid #FDFDFD;
background-color: #fff; .base-list {
.label { // height:524rpx;
line-height: 40rpx; background-color: #FFFFFF;
color: #333; border-radius: 12rpx;
font-size: 32rpx; padding: 30rpx 30rpx 0rpx 30rpx;
} margin-bottom: 20rpx;
margin-bottom: 188rpx;
.txt {
line-height: 40rpx; /deep/ .u-radio__label {
color: #333; line-height: 40rpx;
font-size: 32rpx;
}
.required {
margin: 0 6rpx;
color: red;
font-size: 32rpx;
}
.iconfont {
color: #999;
}
}
.tips {
margin-top: 20rpx;
padding: 0 30rpx;
line-height: 40rpx;
font-size: 28rpx;
color: #666;
&+.id-identity-box {
margin-top: -38rpx;
margin-bottom: 40rpx;
}
}
.id-identity-box {
.txt {
padding-top: 8rpx;
line-height: 40rpx;
font-size: 28rpx;
color: #666;
&:first-child {
margin-top: -58rpx;
padding-top: 12rpx;
}
.red {
color: red;
}
}
// &.tips{
// margin-bottom:0!important;
// }
}
.item+.tips {
margin-top: -38rpx;
margin-bottom: 58rpx;
}
/*选择内容*/
.item-select {
font-size: 30rpx;
color: #333;
font-weight: 500;
justify-content: space-between;
border-bottom: 1rpx solid #f5f5f5;
}
.flex1 {
flex: 1 !important;
&.txt {
white-space: nowrap;
max-width: 450rpx;
overflow: hidden;
text-overflow: ellipsis;
}
} }
.info-view {
.item-input { margin-top: 10rpx;
overflow: hidden; }
.line-view {
input { background-color: #F4F5F7;
text-align: right; height: 2rpx;
line-height: 44rpx;
width: 100%; width: 100%;
font-size: 30rpx; }
color: #333; .item {
font-weight: 400; display: flex;
} padding: 28rpx 30rpx;
width: 100%;
.input-readonly { font-size: 32rpx;
font-size: 30rpx; color: #333;
color: #999; border-bottom: 2rpx solid #FDFDFD;
font-weight: 400; background-color: #fff;
}
.label {
input::-webkit-input-placeholder { line-height: 40rpx;
font-size: 30rpx; color: #666666;
color: #999; font-size: 28rpx;
font-weight: 400; }
}
.txt {
input:-moz-placeholder { line-height: 40rpx;
font-size: 30rpx; color: #333333;
color: #999; font-size: 28rpx;
font-weight: 400; }
}
.required {
input:-ms-input-placeholder { margin: 0 6rpx;
font-size: 30rpx; color: red;
color: #999; font-size: 32rpx;
font-weight: 400; }
}
} .iconfont {
} color: #999;
}
.title { }
padding: 30rpx 0 40rpx;
text-align: center; .tips {
line-height: 50rpx; margin-top: 20rpx;
font-size: 36rpx; padding: 0 30rpx;
color: #333; line-height: 40rpx;
font-weight: bold; font-size: 28rpx;
} color: #666;
.seat { &+.id-identity-box {
padding-bottom: 144rpx; margin-top: -38rpx;
} margin-bottom: 40rpx;
}
/*提交按钮*/ }
.btn-wrap {
position: fixed; .id-identity-box {
// margin: px2rem(36); .txt {
left: 0; padding-top: 8rpx;
right: 0; line-height: 40rpx;
bottom: 0; font-size: 28rpx;
padding: 30rpx 0; color: #666;
background: #fff;
&:first-child {
.btn-submit { margin-top: -58rpx;
width: 600rpx; padding-top: 12rpx;
// left: 5%; }
// bottom: px2rem(36);
height: 104rpx; .red {
line-height: 104rpx; color: red;
border-radius: 52rpx; }
background: #2272FF; }
font-size: 32rpx;
color: #fff; // &.tips{
// margin-bottom:0!important;
&[disabled] { // }
border: 2rpx solid #999;
background-color: #f3f3f3; }
color: #999;
} .item+.tips {
} margin-top: -38rpx;
} margin-bottom: 58rpx;
}
/* .back_view{
background-color: #FFFFFF; .flex1 {
position: absolute; flex: 1 !important;
top: 0;
left: 0; &.txt {
width: 100%; white-space: nowrap;
display: flex; max-width: 450rpx;
flex-direction: column; overflow: hidden;
text-overflow: ellipsis;
}
}
.item-input {
overflow: hidden;
font-size: 28rpx;
input {
text-align: right;
line-height: 44rpx;
width: 100%;
font-size: 28rpx;
color: #333;
font-weight: 400;
}
}
}
.title {
padding: 30rpx 0 40rpx;
text-align: center;
line-height: 50rpx;
font-size: 36rpx;
color: #333;
font-weight: bold;
}
.seat {
padding-bottom: 144rpx;
}
/*提交按钮*/
.btn-wrap {
width: 100%;
.btn-submit {
width: 600rpx;
height: 104rpx;
line-height: 104rpx;
border-radius: 52rpx;
background: #2272FF;
font-size: 32rpx;
color: #fff;
&[disabled] {
background-color: #D1D4D4;
color: #FFFFFF;
}
}
}
.tip-text {
background-color: #FFFFFF;
border-radius: 12rpx;
padding: 38rpx 30rpx 30rpx 30rpx;
height: 140rpx;
margin-bottom: 20rpx;
font-size: 24rpx;
color: #000000;
display: flex;
align-items: flex-start;
}
.tip-image {
width: 34rpx;
margin-right: 8rpx;
margin-top: 2rpx;
} }
*/ .radio-class {
margin-right: -20rpx;
}
</style> </style>
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment