Commit 9baa17ed authored by Morson's avatar Morson
parents 7bf48276 ff6e3f4b
......@@ -17,6 +17,8 @@ npm run dev:mp-weixin // 运行dev环境
```
npm run build:mp-weixin // 运行生产环境
```
### 公共组件:
[图片上传参考](https://ext.dcloud.net.cn/plugin?id=822)
### Customize configuration
See [Configuration Reference](https://cli.vuejs.org/config/).
......@@ -7,14 +7,17 @@ import {
import {
settledApiFun
} from '@/common/api/settled.js';
import { learnApiFun } from "@/common/api/learn.js";
let apiFun = function(vm) {
let commonApi = commonApiFun(vm);
let settledApi = settledApiFun(vm)
let cloudApi = cloudRulesApiFun(vm)
let learnApi=learnApiFun(vm)
let apiUrl = {
...commonApi,
...settledApi,
...cloudApi
...cloudApi,
...learnApi
}
return apiUrl
}
......
const globalUrl = process.uniEnv || {}
const ucenterApiUrl = globalUrl.ucenterUrl.apiUrl
let learnApiFun = function(vm){
/* 查询用户基本信息 */
let getTrainingNoticeList = async (params = {}) => await vm.$u.get(ucenterApiUrl+'/v1/notice/list', params);
const learnApi = {
getTrainingNoticeList,
}
return learnApi
}
module.exports = {
learnApiFun
}
\ No newline at end of file
export default[
{
"name": "女装",
"foods": [
{
"name": "A字裙",
"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",
"cat": 10
},
{
"name": "半身裙",
"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/4.jpg",
"cat": 10
},
{
"name": "短裙",
"key": "短裙",
"icon": "https://cdn.uviewui.com/uview/common/classify/1/5.jpg",
"cat": 10
},
{
"name": "阔腿裤",
"key": "阔腿裤",
"icon": "https://cdn.uviewui.com/uview/common/classify/1/6.jpg",
"cat": 10
},
{
"name": "连衣裙",
"key": "连衣裙",
"icon": "https://cdn.uviewui.com/uview/common/classify/1/7.jpg",
"cat": 10
},
{
"name": "妈妈装",
"key": "妈妈装",
"icon": "https://cdn.uviewui.com/uview/common/classify/1/8.jpg",
"cat": 10
},
{
"name": "牛仔裤",
"key": "牛仔裤",
"icon": "https://cdn.uviewui.com/uview/common/classify/1/9.jpg",
"cat": 10
},
{
"name": "情侣装",
"key": "情侣装",
"icon": "https://cdn.uviewui.com/uview/common/classify/1/10.jpg",
"cat": 10
},
{
"name": "休闲裤",
"key": "休闲裤",
"icon": "https://cdn.uviewui.com/uview/common/classify/1/11.jpg",
"cat": 10
},
{
"name": "雪纺衫",
"key": "雪纺衫",
"icon": "https://cdn.uviewui.com/uview/common/classify/1/12.jpg",
"cat": 10
},
{
"name": "防晒衣",
"key": "防晒衣",
"icon": "https://cdn.uviewui.com/uview/common/classify/1/13.jpg",
"cat": 10
},
{
"name": "礼服/婚纱",
"key": "礼服婚纱",
"icon": "https://cdn.uviewui.com/uview/common/classify/1/14.jpg",
"cat": 10
}
]
},
{
"name": "美食",
"foods": [
{
"name": "火锅",
"key": "火锅",
"icon": "https://cdn.uviewui.com/uview/common/classify/2/1.jpg",
"cat": 6
},
{
"name": "糕点饼干",
"key": "糕点饼干",
"icon": "https://cdn.uviewui.com/uview/common/classify/2/2.jpg",
"cat": 6
},
{
"name": "坚果果干",
"key": "坚果果干",
"icon": "https://cdn.uviewui.com/uview/common/classify/2/3.jpg",
"cat": 6
},
{
"name": "酒类",
"key": "酒类",
"icon": "https://cdn.uviewui.com/uview/common/classify/2/4.jpg",
"cat": 6
},
{
"name": "辣条",
"key": "辣条",
"icon": "https://cdn.uviewui.com/uview/common/classify/2/5.jpg",
"cat": 6
},
{
"name": "大礼包",
"key": "大礼包",
"icon": "https://cdn.uviewui.com/uview/common/classify/2/6.jpg",
"cat": 6
},
{
"name": "精品茗茶",
"key": "茶",
"icon": "https://cdn.uviewui.com/uview/common/classify/2/7.jpg",
"cat": 6
},
{
"name": "休闲食品",
"key": "休闲食品",
"icon": "https://cdn.uviewui.com/uview/common/classify/2/8.jpg",
"cat": 6
},
{
"name": "糖果巧克力",
"key": "糖果巧克力",
"icon": "https://cdn.uviewui.com/uview/common/classify/2/9.jpg",
"cat": 6
},
{
"name": "方便速食",
"key": "方便速食",
"icon": "https://cdn.uviewui.com/uview/common/classify/2/10.jpg",
"cat": 6
},
{
"name": "营养代餐",
"key": "营养代餐",
"icon": "https://cdn.uviewui.com/uview/common/classify/2/11.jpg",
"cat": 6
},
{
"name": "粮油副食",
"key": "粮油",
"icon": "https://cdn.uviewui.com/uview/common/classify/2/12.jpg",
"cat": 6
},
{
"name": "生鲜水果",
"key": "水果",
"icon": "https://cdn.uviewui.com/uview/common/classify/2/13.jpg",
"cat": 6
},
{
"name": "饮品",
"key": "饮品",
"icon": "https://cdn.uviewui.com/uview/common/classify/2/14.jpg",
"cat": 6
}
]
},
{
"name": "美妆",
"foods": [
{
"name": "化妆刷",
"key": "化妆刷",
"icon": "https://cdn.uviewui.com/uview/common/classify/3/1.jpg",
"cat": 3
},
{
"name": "粉底",
"key": "粉底",
"icon": "https://cdn.uviewui.com/uview/common/classify/3/2.jpg",
"cat": 3
},
{
"name": "洗发护发",
"key": "洗发护发",
"icon": "https://cdn.uviewui.com/uview/common/classify/3/3.jpg",
"cat": 3
},
{
"name": "美容工具",
"key": "美容工具",
"icon": "https://cdn.uviewui.com/uview/common/classify/3/4.jpg",
"cat": 3
},
{
"name": "眼部护理",
"key": "眼部护理",
"icon": "https://cdn.uviewui.com/uview/common/classify/3/5.jpg",
"cat": 3
},
{
"name": "眉妆",
"key": "眉妆",
"icon": "https://cdn.uviewui.com/uview/common/classify/3/6.jpg",
"cat": 3
},
{
"name": "卸妆品",
"key": "卸妆品",
"icon": "https://cdn.uviewui.com/uview/common/classify/3/7.jpg",
"cat": 3
},
{
"name": "基础护肤",
"key": "基础护肤",
"icon": "https://cdn.uviewui.com/uview/common/classify/3/8.jpg",
"cat": 3
},
{
"name": "眼妆",
"key": "眼妆",
"icon": "https://cdn.uviewui.com/uview/common/classify/3/9.jpg",
"cat": 3
},
{
"name": "唇妆",
"key": "唇妆",
"icon": "https://cdn.uviewui.com/uview/common/classify/3/10.jpg",
"cat": 3
},
{
"name": "面膜",
"key": "面膜",
"icon": "https://cdn.uviewui.com/uview/common/classify/3/11.jpg",
"cat": 3
},
{
"name": "沐浴用品",
"key": "沐浴用品",
"icon": "https://cdn.uviewui.com/uview/common/classify/3/12.jpg",
"cat": 3
},
{
"name": "护肤套装",
"key": "护肤套装",
"icon": "https://cdn.uviewui.com/uview/common/classify/3/13.jpg",
"cat": 3
},
{
"name": "防晒品",
"key": "防晒品",
"icon": "https://cdn.uviewui.com/uview/common/classify/3/14.jpg",
"cat": 3
},
{
"name": "美甲",
"key": "美甲",
"icon": "https://cdn.uviewui.com/uview/common/classify/3/15.jpg",
"cat": 3
}
]
},
{
"name": "居家日用",
"foods": [
{
"name": "垃圾袋",
"key": "垃圾袋",
"icon": "https://cdn.uviewui.com/uview/common/classify/4/1.jpg",
"cat": 4
},
{
"name": "纸巾",
"key": "纸巾",
"icon": "https://cdn.uviewui.com/uview/common/classify/4/2.jpg",
"cat": 4
},
{
"name": "驱蚊用品",
"key": "驱蚊用品",
"icon": "https://cdn.uviewui.com/uview/common/classify/4/3.jpg",
"cat": 4
},
{
"name": "收纳神器",
"key": "收纳神器",
"icon": "https://cdn.uviewui.com/uview/common/classify/4/4.jpg",
"cat": 4
},
{
"name": "厨房用品",
"key": "厨房用品",
"icon": "https://cdn.uviewui.com/uview/common/classify/4/5.jpg",
"cat": 4
},
{
"name": "厨房烹饪",
"key": "烹饪",
"icon": "https://cdn.uviewui.com/uview/common/classify/4/6.jpg",
"cat": 4
},
{
"name": "衣物晾晒",
"key": "衣物晾晒",
"icon": "https://cdn.uviewui.com/uview/common/classify/4/7.jpg",
"cat": 4
},
{
"name": "衣物护理",
"key": "衣物护理",
"icon": "https://cdn.uviewui.com/uview/common/classify/4/8.jpg",
"cat": 4
},
{
"name": "宠物用品",
"key": "宠物用品",
"icon": "https://cdn.uviewui.com/uview/common/classify/4/9.jpg",
"cat": 4
},
{
"name": "医药保健",
"key": "医药",
"icon": "https://cdn.uviewui.com/uview/common/classify/4/10.jpg",
"cat": 4
},
{
"name": "日用百货",
"key": "百货",
"icon": "https://cdn.uviewui.com/uview/common/classify/4/11.jpg",
"cat": 4
},
{
"name": "清洁用品",
"key": "清洁",
"icon": "https://cdn.uviewui.com/uview/common/classify/4/12.jpg",
"cat": 4
},
{
"name": "绿植园艺",
"key": "绿植",
"icon": "https://cdn.uviewui.com/uview/common/classify/4/13.jpg",
"cat": 4
}
]
},
{
"name": "男装",
"foods": [
{
"name": "爸爸装",
"key": "爸爸装",
"icon": "https://cdn.uviewui.com/uview/common/classify/5/1.jpg",
"cat": 12
},
{
"name": "牛仔裤",
"key": "牛仔裤",
"icon": "https://cdn.uviewui.com/uview/common/classify/5/2.jpg",
"cat": 12
},
{
"name": "衬衫",
"key": "衬衫",
"icon": "https://cdn.uviewui.com/uview/common/classify/5/3.jpg",
"cat": 12
},
{
"name": "休闲裤",
"key": "休闲裤",
"icon": "https://cdn.uviewui.com/uview/common/classify/5/4.jpg",
"cat": 12
},
{
"name": "外套",
"key": "外套",
"icon": "https://cdn.uviewui.com/uview/common/classify/5/5.jpg",
"cat": 12
},
{
"name": "T恤",
"key": "T恤",
"icon": "https://cdn.uviewui.com/uview/common/classify/5/6.jpg",
"cat": 12
},
{
"name": "套装",
"key": "套装",
"icon": "https://cdn.uviewui.com/uview/common/classify/5/7.jpg",
"cat": 12
},
{
"name": "运动裤",
"key": "运动裤",
"icon": "https://cdn.uviewui.com/uview/common/classify/5/8.jpg",
"cat": 12
},
{
"name": "马甲/背心",
"key": "马甲背心",
"icon": "https://cdn.uviewui.com/uview/common/classify/5/9.jpg",
"cat": 12
},
{
"name": "POLO衫",
"key": "POLO衫",
"icon": "https://cdn.uviewui.com/uview/common/classify/5/10.jpg",
"cat": 12
},
{
"name": "商务装",
"key": "商务装",
"icon": "https://cdn.uviewui.com/uview/common/classify/5/11.jpg",
"cat": 12
}
]
},
{
"name": "鞋品",
"foods": [
{
"name": "单鞋",
"key": "单鞋",
"icon": "https://cdn.uviewui.com/uview/common/classify/6/1.jpg",
"cat": 5
},
{
"name": "皮鞋",
"key": "皮鞋",
"icon": "https://cdn.uviewui.com/uview/common/classify/6/2.jpg",
"cat": 5
},
{
"name": "帆布鞋",
"key": "帆布鞋",
"icon": "https://cdn.uviewui.com/uview/common/classify/6/3.jpg",
"cat": 5
},
{
"name": "北京老布鞋",
"key": "北京老布鞋",
"icon": "https://cdn.uviewui.com/uview/common/classify/6/4.jpg",
"cat": 5
},
{
"name": "运动鞋",
"key": "运动鞋",
"icon": "https://cdn.uviewui.com/uview/common/classify/6/5.jpg",
"cat": 5
},
{
"name": "拖鞋",
"key": "拖鞋",
"icon": "https://cdn.uviewui.com/uview/common/classify/6/6.jpg",
"cat": 5
},
{
"name": "凉鞋",
"key": "凉鞋",
"icon": "https://cdn.uviewui.com/uview/common/classify/6/7.jpg",
"cat": 5
},
{
"name": "休闲鞋",
"key": "休闲鞋",
"icon": "https://cdn.uviewui.com/uview/common/classify/6/8.jpg",
"cat": 5
},
{
"name": "高跟鞋",
"key": "高跟鞋",
"icon": "https://cdn.uviewui.com/uview/common/classify/6/9.jpg",
"cat": 5
},
{
"name": "老人鞋",
"key": "老人鞋",
"icon": "https://cdn.uviewui.com/uview/common/classify/6/10.jpg",
"cat": 5
},
{
"name": "懒人鞋",
"key": "懒人鞋",
"icon": "https://cdn.uviewui.com/uview/common/classify/6/11.jpg",
"cat": 5
}
]
},
{
"name": "数码家电",
"foods": [
{
"name": "数据线",
"key": "数据线",
"icon": "https://cdn.uviewui.com/uview/common/classify/7/1.jpg",
"cat": 8
},
{
"name": "耳机",
"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/3.jpg",
"cat": 8
},
{
"name": "电风扇",
"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/5.jpg",
"cat": 8
},
{
"name": "手机壳",
"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/7.jpg",
"cat": 8
},
{
"name": "小家电",
"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/9.jpg",
"cat": 8
},
{
"name": "电饭锅",
"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/11.jpg",
"cat": 8
},
{
"name": "剃须刀",
"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/13.jpg",
"cat": 8
},
{
"name": "手机配件",
"key": "手机配件",
"icon": "https://cdn.uviewui.com/uview/common/classify/7/14.jpg",
"cat": 8
}
]
},
{
"name": "母婴",
"foods": [
{
"name": "婴童服饰",
"key": "衣服",
"icon": "https://cdn.uviewui.com/uview/common/classify/8/1.jpg",
"cat": 2
},
{
"name": "玩具乐器",
"key": "玩具乐器",
"icon": "https://cdn.uviewui.com/uview/common/classify/8/2.jpg",
"cat": 2
},
{
"name": "尿不湿",
"key": "尿不湿",
"icon": "https://cdn.uviewui.com/uview/common/classify/8/3.jpg",
"cat": 2
},
{
"name": "安抚牙胶",
"key": "安抚牙胶",
"icon": "https://cdn.uviewui.com/uview/common/classify/8/4.jpg",
"cat": 2
},
{
"name": "奶瓶奶嘴",
"key": "奶瓶奶嘴",
"icon": "https://cdn.uviewui.com/uview/common/classify/8/5.jpg",
"cat": 2
},
{
"name": "孕妈用品",
"key": "孕妈用品",
"icon": "https://cdn.uviewui.com/uview/common/classify/8/6.jpg",
"cat": 2
},
{
"name": "宝宝用品",
"key": "宝宝用品",
"icon": "https://cdn.uviewui.com/uview/common/classify/8/7.jpg",
"cat": 2
},
{
"name": "婴童湿巾",
"key": "湿巾",
"icon": "https://cdn.uviewui.com/uview/common/classify/8/8.jpg",
"cat": 2
},
{
"name": "喂养洗护",
"key": "洗护",
"icon": "https://cdn.uviewui.com/uview/common/classify/8/9.jpg",
"cat": 2
},
{
"name": "婴童鞋靴",
"key": "童鞋",
"icon": "https://cdn.uviewui.com/uview/common/classify/8/10.jpg",
"cat": 2
},
{
"name": "口水巾",
"key": "口水巾",
"icon": "https://cdn.uviewui.com/uview/common/classify/8/11.jpg",
"cat": 2
},
{
"name": "营养辅食",
"key": "营养",
"icon": "https://cdn.uviewui.com/uview/common/classify/8/12.jpg",
"cat": 2
},
{
"name": "婴幼书籍",
"key": "书籍",
"icon": "https://cdn.uviewui.com/uview/common/classify/8/13.jpg",
"cat": 2
},
{
"name": "婴儿车",
"key": "婴儿车",
"icon": "https://cdn.uviewui.com/uview/common/classify/8/14.jpg",
"cat": 2
}
]
},
{
"name": "箱包",
"foods": [
{
"name": "单肩包",
"key": "单肩包",
"icon": "https://cdn.uviewui.com/uview/common/classify/9/1.jpg",
"cat": 0
},
{
"name": "斜挎包",
"key": "斜挎包",
"icon": "https://cdn.uviewui.com/uview/common/classify/9/2.jpg",
"cat": 0
},
{
"name": "女包",
"key": "女包",
"icon": "https://cdn.uviewui.com/uview/common/classify/9/3.jpg",
"cat": 0
},
{
"name": "男包",
"key": "男包",
"icon": "https://cdn.uviewui.com/uview/common/classify/9/4.jpg",
"cat": 0
},
{
"name": "双肩包",
"key": "双肩包",
"icon": "https://cdn.uviewui.com/uview/common/classify/9/5.jpg",
"cat": 0
},
{
"name": "小方包",
"key": "小方包",
"icon": "https://cdn.uviewui.com/uview/common/classify/9/6.jpg",
"cat": 0
},
{
"name": "钱包",
"key": "钱包",
"icon": "https://cdn.uviewui.com/uview/common/classify/9/7.jpg",
"cat": 0
},
{
"name": "旅行箱包",
"key": "旅行箱包",
"icon": "https://cdn.uviewui.com/uview/common/classify/9/8.jpg",
"cat": 0
},
{
"name": "零钱包",
"key": "零钱包",
"icon": "https://cdn.uviewui.com/uview/common/classify/9/9.jpg",
"cat": 0
},
{
"name": "手提包",
"key": "手提包",
"icon": "https://cdn.uviewui.com/uview/common/classify/9/10.jpg",
"cat": 0
},
{
"name": "胸包",
"key": "胸包",
"icon": "https://cdn.uviewui.com/uview/common/classify/9/11.jpg",
"cat": 0
}
]
},
{
"name": "内衣",
"foods": [
{
"name": "袜子",
"key": "袜子",
"icon": "https://cdn.uviewui.com/uview/common/classify/10/1.jpg",
"cat": 11
},
{
"name": "吊带背心",
"key": "吊带背心",
"icon": "https://cdn.uviewui.com/uview/common/classify/10/2.jpg",
"cat": 11
},
{
"name": "抹胸",
"key": "抹胸",
"icon": "https://cdn.uviewui.com/uview/common/classify/10/3.jpg",
"cat": 11
},
{
"name": "内裤",
"key": "内裤",
"icon": "https://cdn.uviewui.com/uview/common/classify/10/4.jpg",
"cat": 11
},
{
"name": "文胸",
"key": "文胸",
"icon": "https://cdn.uviewui.com/uview/common/classify/10/5.jpg",
"cat": 11
},
{
"name": "文胸套装",
"key": "文胸套装",
"icon": "https://cdn.uviewui.com/uview/common/classify/10/6.jpg",
"cat": 11
},
{
"name": "打底塑身",
"key": "打底塑身",
"icon": "https://cdn.uviewui.com/uview/common/classify/10/7.jpg",
"cat": 11
},
{
"name": "家居服",
"key": "家居服",
"icon": "https://cdn.uviewui.com/uview/common/classify/10/8.jpg",
"cat": 11
},
{
"name": "船袜",
"key": "船袜",
"icon": "https://cdn.uviewui.com/uview/common/classify/10/9.jpg",
"cat": 11
},
{
"name": "情侣睡衣",
"key": "情侣睡衣",
"icon": "https://cdn.uviewui.com/uview/common/classify/10/10.jpg",
"cat": 11
},
{
"name": "丝袜",
"key": "丝袜",
"icon": "https://cdn.uviewui.com/uview/common/classify/10/11.jpg",
"cat": 11
}
]
},
{
"name": "文娱车品",
"foods": [
{
"name": "车市车品",
"key": "车市车品",
"icon": "https://cdn.uviewui.com/uview/common/classify/11/1.jpg",
"cat": 7
},
{
"name": "办公文具",
"key": "办公文具",
"icon": "https://cdn.uviewui.com/uview/common/classify/11/2.jpg",
"cat": 7
},
{
"name": "考试必备",
"key": "考试必备",
"icon": "https://cdn.uviewui.com/uview/common/classify/11/3.jpg",
"cat": 7
},
{
"name": "笔记本",
"key": "笔记本",
"icon": "https://cdn.uviewui.com/uview/common/classify/11/4.jpg",
"cat": 7
},
{
"name": "艺术礼品",
"key": "礼品",
"icon": "https://cdn.uviewui.com/uview/common/classify/11/5.jpg",
"cat": 7
},
{
"name": "书写工具",
"key": "书写工具",
"icon": "https://cdn.uviewui.com/uview/common/classify/11/6.jpg",
"cat": 7
},
{
"name": "车载电器",
"key": "车载电器",
"icon": "https://cdn.uviewui.com/uview/common/classify/11/7.jpg",
"cat": 7
},
{
"name": "图书音像",
"key": "图书音像",
"icon": "https://cdn.uviewui.com/uview/common/classify/11/8.jpg",
"cat": 7
},
{
"name": "画具画材",
"key": "画具画材",
"icon": "https://cdn.uviewui.com/uview/common/classify/11/9.jpg",
"cat": 7
}
]
},
{
"name": "配饰",
"foods": [
{
"name": "太阳镜",
"key": "太阳镜",
"icon": "https://cdn.uviewui.com/uview/common/classify/12/1.jpg",
"cat": 0
},
{
"name": "皮带",
"key": "皮带",
"icon": "https://cdn.uviewui.com/uview/common/classify/12/2.jpg",
"cat": 0
},
{
"name": "棒球帽",
"key": "棒球帽",
"icon": "https://cdn.uviewui.com/uview/common/classify/12/3.jpg",
"cat": 0
},
{
"name": "手表",
"key": "手表",
"icon": "https://cdn.uviewui.com/uview/common/classify/12/4.jpg",
"cat": 0
},
{
"name": "发饰",
"key": "发饰",
"icon": "https://cdn.uviewui.com/uview/common/classify/12/5.jpg",
"cat": 0
},
{
"name": "项链",
"key": "项链",
"icon": "https://cdn.uviewui.com/uview/common/classify/12/6.jpg",
"cat": 0
},
{
"name": "手饰",
"key": "手饰",
"icon": "https://cdn.uviewui.com/uview/common/classify/12/7.jpg",
"cat": 0
},
{
"name": "耳环",
"key": "耳环",
"icon": "https://cdn.uviewui.com/uview/common/classify/12/8.jpg",
"cat": 0
},
{
"name": "帽子丝巾",
"key": "帽子丝巾",
"icon": "https://cdn.uviewui.com/uview/common/classify/12/9.jpg",
"cat": 0
},
{
"name": "眼镜墨镜",
"key": "眼镜墨镜",
"icon": "https://cdn.uviewui.com/uview/common/classify/12/10.jpg",
"cat": 0
},
{
"name": "发带发箍",
"key": "发带发箍",
"icon": "https://cdn.uviewui.com/uview/common/classify/12/11.jpg",
"cat": 0
}
]
},
{
"name": "家装家纺",
"foods": [
{
"name": "家居饰品",
"key": "家居饰品",
"icon": "https://cdn.uviewui.com/uview/common/classify/13/1.jpg",
"cat": 0
},
{
"name": "凉席",
"key": "凉席",
"icon": "https://cdn.uviewui.com/uview/common/classify/13/2.jpg",
"cat": 0
},
{
"name": "背枕靠枕",
"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/4.jpg",
"cat": 0
},
{
"name": "摆件",
"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/6.jpg",
"cat": 0
},
{
"name": "装饰品",
"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/8.jpg",
"cat": 0
},
{
"name": "家居家装",
"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/10.jpg",
"cat": 0
},
{
"name": "墙纸贴纸",
"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/12.jpg",
"cat": 0
}
]
},
{
"name": "户外运动",
"foods": [
{
"name": "游泳装备",
"key": "游泳",
"icon": "https://cdn.uviewui.com/uview/common/classify/14/1.jpg",
"cat": 0
},
{
"name": "泳镜",
"key": "泳镜",
"icon": "https://cdn.uviewui.com/uview/common/classify/14/2.jpg",
"cat": 0
},
{
"name": "户外装备",
"key": "户外",
"icon": "https://cdn.uviewui.com/uview/common/classify/14/3.jpg",
"cat": 0
},
{
"name": "健身服饰",
"key": "健身",
"icon": "https://cdn.uviewui.com/uview/common/classify/14/4.jpg",
"cat": 0
},
{
"name": "泳衣",
"key": "泳衣",
"icon": "https://cdn.uviewui.com/uview/common/classify/14/5.jpg",
"cat": 0
},
{
"name": "瑜伽垫",
"key": "瑜伽垫",
"icon": "https://cdn.uviewui.com/uview/common/classify/14/6.jpg",
"cat": 0
},
{
"name": "瑜伽用品",
"key": "瑜伽",
"icon": "https://cdn.uviewui.com/uview/common/classify/14/7.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>
<u-input v-model="item.fieldsValue" />
</view>
</template>
<script>
export default {
name: 'xhInput',
props: {
item: {
type: Object,
default () {
return null
}
},
},
data() {
return {
value: '',
type: 'text',
border: true,
}
}
}
</script>
<style>
</style>
<template>
<view>
<u-input v-model="item.fieldsValue" />
</view>
</template>
<script>
export default {
name: 'xhInput',
props: {
item: {
type: Object,
default () {
return [{}]
}
},
},
data() {
return {
value: '',
type: 'text',
border: true,
}
}
}
</script>
<style>
</style>
......@@ -4,11 +4,10 @@
back-icon-color="#ffffff" title-color="#ffffff"></u-navbar>
<image :src="url" style="width: 100%;" mode="widthFix"></image>
<view class="introduction">
<slot></slot>
<view class="settle-bottom">
<slot name="bottom"></slot>
</view>
<slot></slot>
</view>
<view class="settle-bottom">
<slot name="bottom"></slot>
</view>
</view>
</template>
......@@ -19,7 +18,7 @@
index: {
type: Number,
default: 1
}
}
},
data() {
return {}
......@@ -32,23 +31,20 @@
}
</script>
<style lang="scss" scoped>
.settle-view {
background-color: #F4F5F7;
}
<style lang="scss" scoped>
.introduction {
border-radius: 12rpx;
margin-left: 30rpx;
margin-right: 30rpx;
margin-top: -112rpx;
background-color: #F4F5F7;
overflow: auto;
height: calc(100vh - 368rpx);
}
.settle-bottom {
position: fixed;
width: calc(100vw - 60rpx);
bottom: 44rpx;
position: fixed;
top: 320rpx;
bottom: 0rpx;
left: 30rpx;
right: 30rpx;
}
.settle-bottom {
position: fixed;
bottom: 44rpx;
width: 100%;
}
</style>
......@@ -15,6 +15,12 @@
"navigationBarTitleText": "订单"
}
},
{
"path": "pages/order/complete",
"style": {
"navigationBarTitleText": "订单-完工配置"
}
},
{
"path": "pages/mine/index",
"style": {
......@@ -82,7 +88,8 @@
{
"path": "pages/settle/select",
"style": {
"navigationBarTitleText": "选择可服务的城市"
"navigationBarTitleText": "选择可服务的城市",
"navigationBarBackgroundColor": "#FFFFFF"
}
},
{
......@@ -100,7 +107,9 @@
{
"path": "pages/settle/prompt",
"style": {
"navigationBarTitleText": "入驻提示"
"navigationBarTitleText": "入驻提示",
"navigationStyle": "custom",
"disableScroll": true
}
},
{
......@@ -224,18 +233,8 @@
"query": "" //启动参数,在页面的onLoad函数里面得到
},
{
"name": "签约页面", //模式名称
"path": "pages/settle/sign-contract", //启动页面,必选
"query": "" //启动参数,在页面的onLoad函数里面得到
},
{
"name": "授权登录", //模式名称
"path": "pages/login/index", //启动页面,必选
"query": "" //启动参数,在页面的onLoad函数里面得到
},
{
"name": "在线考试", //模式名称
"path": "pages/learn/exam", //启动页面,必选
"name": "订单 - 完工配置", //模式名称
"path": "pages/order/complete", //启动页面,必选
"query": "" //启动参数,在页面的onLoad函数里面得到
}
]
......
<template>
<view class="content">
<scroll-view scroll-y style="height: 100%;width: 100%;" @scrolltolower="reachBottom" @scroll="handleScroll"
refresher-enabled :refresher-triggered="triggered" @refresherrefresh="onRefresh" scroll-anchoring
@refresherrestore="onRestore" @refresherpulling="triggered = true">
<u-swiper :height="250" :list="list" :indicator-pos="indicatorPos" :mode="mode" :interval="3000"
@click="clickSwiper">
</u-swiper>
<view>
<text class="title">最新消息</text>
<view v-for="(item, index) in messageList" :key="index">
<text class="title">{{ item.body }}</text>
</view>
<view class="order-view">
<!-- 订单推荐吸顶 -->
<u-sticky>
<view class="sticky">
<text>订单推荐</text>
</view>
</u-sticky>
<!-- 入驻成功之后显示推荐订单列表 -->
<view v-if="status == 7 && orderList.length > 0">
<view v-for="(item, index) in orderList" :key="index">
<OrderCell :orderData="item">
</OrderCell>
</view>
<u-loadmore :status="currentLoadStatus" bgColor="#f2f2f2"></u-loadmore>
</view>
<!-- 入驻成功之后无推荐订单 -->
<view v-else-if="status == 7 && orderList.length <= 0">
暂无订单
</view>
<!-- 入驻前-->
<view v-else>
<text class="title">当前订单{{ count }}笔\n入驻通过后,平台将向您推荐订单</text>
<u-button class="settle-button" type="primary" shape="circle" @click="immediatelyIn"
:custom-style="buttonStyle">
立即入驻
</u-button>
</view>
</view>
</view>
</scroll-view>
</view>
<view class="content">
<scroll-view
scroll-y
style="height: 100%; width: 100%"
@scrolltolower="reachBottom"
@scroll="handleScroll"
refresher-enabled
:refresher-triggered="triggered"
@refresherrefresh="onRefresh"
scroll-anchoring
@refresherrestore="onRestore"
@refresherpulling="triggered = true"
>
<u-swiper
:height="250"
:list="list"
:indicator-pos="indicatorPos"
:mode="mode"
:interval="3000"
@click="clickSwiper"
>
</u-swiper>
<view>
<text class="title">最新消息</text>
<view v-for="(item, index) in messageList" :key="index">
<text class="title">{{ item.body }}</text>
</view>
<view class="order-view">
<!-- 订单推荐吸顶 -->
<u-sticky>
<view class="sticky">
<text>订单推荐</text>
</view>
</u-sticky>
<!-- 入驻成功之后显示推荐订单列表 -->
<view v-if="status == 7 && orderList.length > 0">
<view v-for="(item, index) in orderList" :key="index">
<OrderCell :orderData="item"> </OrderCell>
</view>
<u-loadmore
:status="currentLoadStatus"
bgColor="#f2f2f2"
></u-loadmore>
</view>
<!-- 入驻成功之后无推荐订单 -->
<view v-else-if="status == 7 && orderList.length <= 0">
暂无订单
</view>
<!-- 入驻前-->
<view v-else-if="loaded">
<text class="title"
>当前订单{{ count }}笔\n入驻通过后,平台将向您推荐订单</text
>
<u-button
class="settle-button"
type="primary"
shape="circle"
@click="immediatelyIn"
:custom-style="buttonStyle"
>
立即入驻
</u-button>
</view>
</view>
</view>
</scroll-view>
</view>
</template>
<script>
import util from '@/utils/util.js';
import util from "@/utils/util.js";
const app = getApp();
import OrderCell from "@/components/order/index.vue";
const app = getApp();
import OrderCell from '@/components/order/index.vue'
export default {
components: {
OrderCell,
},
data() {
return {
status: 0, // 入驻状态:0=>'待提交',1=>'待审核',2=>'已通过',3=>'备选',4=>'已驳回',5=>'已签约',6=>'未支付保证金',7=>'已支付保证金',8=>'已通过考试',9=>'待提交'
triggered: false,
list: [
{
image: "https://cdn.uviewui.com/uview/swiper/1.jpg",
},
{
image: "https://cdn.uviewui.com/uview/swiper/2.jpg",
},
{
image: "https://cdn.uviewui.com/uview/swiper/3.jpg",
},
],
title: false,
mode: "round",
indicatorPos: "bottomCenter",
title: "Hello",
loaded: false,
count: 0, // 推荐订单数量
messageList: [
{
id: 1234,
type: "",
level: "",
title: "",
url: "",
body: "好消息",
},
{
id: 1234,
type: "",
level: "",
title: "",
url: "",
body: "好消息",
},
{
id: 1234,
type: "",
level: "",
title: "",
url: "",
body: "好消息",
},
],
loadStatus: ["more", "loading", "noMore"],
currentLoadStatus: "loading",
orderList: [{}, {}, {}, {}, {}, {}, {}, {}, {}, {}],
bottomLoading: false,
};
},
computed: {
buttonStyle() {
return {
width: "300rpx",
};
},
},
onLoad() {
this._freshing = false;
this.triggered = false;
},
onShow() {
// 每次进入页面都刷新入驻状态
if (app.globalData.token) {
// 获取是否显示入驻按钮
this.initSettleInfo();
}
},
methods: {
async initSettleInfo() {
if (this.status == 7) return;
const callBack = (vm, result) => {
// 后台自动判断入驻流程是否完成,前台通过status确定状态
if (result && result.record) {
vm.loaded = true;
vm.status = result.record.status;
// vm.status = 1
}
};
await app.getBaseInfo(this, callBack);
},
onRefresh() {
if (this._freshing) return;
this._freshing = true;
export default {
components: {
OrderCell
},
data() {
return {
status: 0, // 入驻状态:0=>'待提交',1=>'待审核',2=>'已通过',3=>'备选',4=>'已驳回',5=>'已签约',6=>'未支付保证金',7=>'已支付保证金',8=>'已通过考试',9=>'待提交'
triggered: false,
list: [{
image: 'https://cdn.uviewui.com/uview/swiper/1.jpg',
},
{
image: 'https://cdn.uviewui.com/uview/swiper/2.jpg',
},
{
image: 'https://cdn.uviewui.com/uview/swiper/3.jpg',
}
],
title: false,
mode: 'round',
indicatorPos: 'bottomCenter',
title: 'Hello',
count: 0, // 推荐订单数量
messageList: [{
id: 1234,
type: '',
level: '',
title: '',
url: '',
body: '好消息',
}, {
id: 1234,
type: '',
level: '',
title: '',
url: '',
body: '好消息',
}, {
id: 1234,
type: '',
level: '',
title: '',
url: '',
body: '好消息',
}],
loadStatus: ['more', 'loading', 'noMore'],
currentLoadStatus: 'loading',
orderList: [{}, {}, {}, {}, {}, {}, {}, {}, {}, {}],
bottomLoading: false
}
},
computed: {
buttonStyle() {
return {
'width': '300rpx',
}
}
},
onLoad() {
this._freshing = false;
this.triggered = false;
},
onShow() {
// 每次进入页面都刷新入驻状态
if (app.globalData.token) {
// 获取是否显示入驻按钮
this.initSettleInfo()
}
},
methods: {
async initSettleInfo() {
if (this.status == 7) return
const callBack = (vm, result) => {
// 后台自动判断入驻流程是否完成,前台通过status确定状态
if (result && result.record) {
// vm.status = result.record.status
vm.status = 0
}
}
await app.getBaseInfo(this, callBack)
},
onRefresh() {
if (this._freshing) return;
this._freshing = true;
// 获取入驻状态
this.initSettleInfo()
// 获取推荐订单及数量
// ....
setTimeout(() => {
// 数据加载完成更新入驻状态和推荐列表
this.triggered = false;
this._freshing = false;
}, 1000)
},
onRestore() {
this.triggered = 'restore';
},
reachBottom() {
console.log('-----bottom will-----')
if (this.bottomLoading || this.currentLoadStatus == this.loadStatus[2]) {
return
}
console.log('-----bottom did-----')
// 获取入驻状态
this.initSettleInfo();
// 获取推荐订单及数量
// ....
this.bottomLoading = true
setTimeout(() => {
// 数据加载完成更新入驻状态和推荐列表
this.triggered = false;
this._freshing = false;
}, 1000);
},
onRestore() {
this.triggered = "restore";
},
reachBottom() {
console.log("-----bottom will-----");
if (this.bottomLoading || this.currentLoadStatus == this.loadStatus[2]) {
return;
}
console.log("-----bottom did-----");
setTimeout(() => {
// 加载更多数据
// ...
this.orderList.push(...[{}, {}, {}, {}, {}, {}, {}, {}, {}, {}])
this.bottomLoading = true;
// 加载完成
this.currentLoadStatus = false/*是否还有*/ ? this.loadStatus[1] : this.loadStatus[2]
this.$nextTick(function() {
this.bottomLoading = false
})
}, 1000);
},
clickSwiper(index) {
setTimeout(() => {
// 加载更多数据
// ...
this.orderList.push(...[{}, {}, {}, {}, {}, {}, {}, {}, {}, {}]);
},
handleScroll() {
console.log('-----scroll-------')
},
immediatelyIn() {
if (util.getToken()) {
uni.navigateTo({
url: this.status > 0 ? '/pages/settle/prompt' : '/pages/settle/index'
})
} else {
uni.navigateTo({
url: 'pages/login/index'
});
}
}
}
}
// 加载完成
this.currentLoadStatus = false /*是否还有*/
? this.loadStatus[1]
: this.loadStatus[2];
this.$nextTick(function () {
this.bottomLoading = false;
});
}, 1000);
},
clickSwiper(index) {},
handleScroll() {
console.log("-----scroll-------");
},
immediatelyIn() {
if (util.getToken()) {
uni.navigateTo({
url: this.status > 0 ? "/pages/settle/prompt" : "/pages/settle/index",
});
} else {
uni.navigateTo({
url: "pages/login/index",
});
}
},
},
};
</script>
<style lang="scss" scoped>
.content {
height: 100vh;
}
.content {
height: 100vh;
}
.logo {
height: 200 rpx;
width: 100%;
margin: 0 rpx auto 50 rpx auto;
}
.logo {
height: 200 rpx;
width: 100%;
margin: 0 rpx auto 50 rpx auto;
}
.text-area {
display: flex;
justify-content: center;
}
.text-area {
display: flex;
justify-content: center;
}
.title {
font-size: 36 rpx;
color: #8f8f94;
}
.title {
font-size: 36 rpx;
color: #8f8f94;
}
.sticky {
height: 120 rpx;
background-color: #2979ff;
color: #fff;
padding: 24 rpx;
text-align: left;
}
.sticky {
height: 120 rpx;
background-color: #2979ff;
color: #fff;
padding: 24 rpx;
text-align: left;
}
.order-view {
text-align: center;
}
.order-view {
text-align: center;
}
</style>
<template>
<view class="content">
<view class="">
<text class="dx">多选</text><text class="num">第1题</text><text class="all">/共30题</text>
<view class="">
<view class="" style="padding-left: 94rpx;margin:36rpx 0">
<text class="dx">多选</text><text class="num">第1题</text><text class="all">/共30题</text>
</view>
<view class="" style="text-align: center;">
一下对压缩机故障描述有误的是?
</view>
<view class="">
<button>A</button>
<button>B</button>
<button>C</button>
<button>D</button>
<button>E</button>
<view class="" style="margin-top: 130rpx;">
<view class="list-box">
<view v-for="(item,index) in list" :key="index" @click="choice(index)" :class="[item.selected?'selde':'noselde']">
{{item.selected?item.title:item.title}}
</view>
</view>
</view>
<button class="btn">下一题</button>
</view>
......@@ -21,35 +23,135 @@
export default {
data() {
return {
}
list: [{
selected: false,
title: 'A'
},
{
selected: false,
title: 'B'
},
{
selected: false,
title: 'C'
},
{
selected: false,
title: 'D'
},
{
selected: false,
title: 'E'
}
],
selectId:[],
};
},
methods: {
abc() {
console.log("11111")
var arr = document.querySelector(".btm");
for (let i = 0; i < arr.length; i++) {
arr[i].onclick = function() {
console.log(this.value)
}
}
},
//选择按钮
choice(index) {
if (this.list[index].selected == true) {
this.list[index].selected = false;
//取消选中时删除数组中的值
for (var i = 0; i < this.selectId.length; i++) {
if (this.selectId[i] === this.list[index].title) {
this.selectId.splice(i, 1);
}
}
console.log("选中的值", this.selectId)
} else {
this.list[index].selected = true;
this.selectId.push(this.list[index].title)
console.log("选中的值", this.selectId)
}
}
},
mounted() {
console.log("111111")
}
}
</script>
<style>
.content{
<style lang="scss">
.content {
width: 600rpx;
height: 800rpx;
/* background: #8F8F94; */
margin: 0 auto ;
margin: 0 auto;
}
.dx{
.dx {
padding: 0rpx;
background: #2979FF;
color: #FFFFFF;
border-radius: 0px;
}
.num{
.num {
color: #2B85E4;
}
.all{
.all {
color: #8F8F94;
}
.btn{
margin-top:0rpx;
.btn {
margin-top: 98rpx;
width: 476rpx;
height: 60rpx;
line-height: 30px;
background: #007AFF;
color: #FFFFFF;
}
.btm {
width: 476rpx;
height: 60rpx;
line-height: 30px;
margin: 34rpx auto;
}
.list-box {
// display: flex;
// flex-wrap: wrap;
padding: 16upx;
border-radius: 10upx;
view {
width: 476rpx;
height: 60upx;
line-height: 60upx;
text-align: center;
margin: 26rpx auto 0;
}
}
/*已选择*/
.selde {
background: #007AFF;
color: #FFFFFF;
border-radius: 20upx;
font-size: 26rpx;
padding: 0 10upx;
}
/*未选择*/
.noselde {
background: #E4E7ED;
color: #959595;
border-radius: 20upx;
font-size: 20upx;
padding: 0 10upx;
}
</style>
......@@ -18,60 +18,54 @@
<view class="" style="font-size: 40rpx;font-weight: 1000;">
第一章 充电桩常见问题答疑
</view>
<view class="" >
<view class="" style="display: flex; margin: 20rpx 0;">
<view class="" style="width: 100rpx;height:38rpx;border: 1px solid #8F8F94;text-align: center;line-height: 38rpx;">
<view class="video" >
<view class="video_1" >
<view class="text" >
视频
</view>
<text style="margin-left: 44rpx;">1-1唯修汇公司简介</text>
<text class="text2">1-1唯修汇公司简介</text>
</view>
<view class="" style="display: flex;margin:20rpx 0;">
<view class="" style="width: 100rpx;height:38rpx;border:1px solid #8F8F94;text-align: center;line-height: 38rpx;" >
<view class="video_1" >
<view class="text">
视频
</view>
<text style="margin-left:44rpx;">1-2可接单评定标准</text>
<text class="text2">1-2可接单评定标准</text>
</view>
<view class="" style="display: flex;margin:20rpx 0;">
<view class="" style="width: 100rpx;height: 38rpx;border:1px solid #8F8F94;text-align: center;line-height: 38rpx;">
<view class="video_1" >
<view class="text">
视频
</view>
<text style="margin-left:44rpx;">1-3结算规则</text>
<text class="text2">1-3结算规则</text>
</view>
<view class="" style="display: flex;margin: 20rpx 0;">
<view class="" style="width: 100rpx;height: 38rpx;border:1px solid #8F8F94;text-align: center;line-height: 38rpx;">
<view class="video_1">
<view class="text">
视频
</view>
<text style="margin-left: 44rpx;">1-4充电桩安装开城计划</text>
<text class="text2">1-4充电桩安装开城计划</text>
</view>
<view class="" style="display: flex;margin: 20rpx 0;">
<view class="" style="width: 100rpx;height: 38rpx;border:1px solid #8F8F94;text-align: center;line-height: 38rpx;">
<view class="video_1">
<view class="text">
视频
</view>
<text style="margin-left: 44rpx;">1-5缴纳质保金和费用答疑</text>
<text class="text2">1-5缴纳质保金和费用答疑</text>
</view>
<view class="" style="display: flex;margin: 20rpx 0;">
<view class="" style="width: 100rpx;height: 38rpx;border: 1px solid #8F8F94;text-align: center;line-height: 38rpx;">
<view class="video_1" >
<view class="text" >
视频
</view>
<text style="margin-left:44rpx;">1-6安装材料品牌答疑1</text>
<text class="text2">1-6安装材料品牌答疑1</text>
</view>
<view class="" style="display: flex;margin: 20rpx 0;">
<view class="" style="width: 100rpx;height: 38rpx;border:1px solid #8F8F94;text-align: center;line-height: 38rpx;">
<view class="video_1" >
<view class="text">
视频
</view>
<text style="margin-left:44rpx;">1-7安装材料答疑2</text>
<text class="text2">1-7安装材料答疑2</text>
</view>
<view class="" style="display: flex;margin: 20rpx 0;">
<view class="" style="width: 100rpx;height: 38rpx;border:1px solid #8F8F94;text-align: center;">
<view class="video_1">
<view class="text">
视频
</view>
<text style="margin-left:44rpx;">1-8其他问题答疑</text>
</view>
<view class="" style="display: flex;margin: 20rpx 0;">
<view class="" style="width: 100rpx;height: 38rpx;border: 1px solid #8F8F94;text-align: center;">
</view>
<text class="text2">1-8其他问题答疑</text>
</view>
</view>
</view>
......@@ -92,7 +86,7 @@
}
</script>
<style>
<style lang="scss">
.title{
height: 164rpx;
font-size: 40rpx;
......@@ -107,4 +101,21 @@
width: 128rpx;
height: 128rpx;
}
.video_1{
display: flex;
margin: 20rpx 0;
.text{
width: 100rpx;
height: 38rpx;
border:1px solid #8F8F94;
text-align: center;
line-height: 38rpx;
margin-right: 82rpx;
}
.text2{
font-size: 33rpx;
color: #82848A;
}
}
</style>
<template>
<view class="study">
<view class="banner">
<u-swiper :list="list"></u-swiper>
<u-swiper :list="banner"></u-swiper>
</view>
<!-- <u-tabs :list="tabs" :is-scroll="false" :current="current" @change="change"></u-tabs> -->
<view>
......@@ -11,147 +11,29 @@
<swiper :current="swiperCurrent" @transition="transition" @animationfinish="animationfinish" >
<swiper-item class="swiper-item">
<scroll-view scroll-y style="height: 800rpx;width:100%;" @scrolltolower="onreachBottom">
<view class="standard">
<view class="standard" @click="goToPrint">
<text>充电桩交付规范</text>
<text>></text>
<text >></text>
</view>
</scroll-view>
</swiper-item>
<swiper-item class="swiper-item">
<scroll-view scroll-y style="height: 666rpx;width:100%;" @scrolltolower="onreachBottom">
<view class="notice" @click="bbb">
<scroll-view scroll-y style="height: 666rpx;width:100%;" @scrolltolower="onreachBottom" >
<view v-for="item in list" :key="item.id" class="notice" @click="bbb">
<view class="n-head">
《关于充电桩xxxx》
《{{item.title}}》
</view>
<view class="">
xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
{{item.body}}
</view>
</view>
<view class="notice" @click="bbb">
<view class="n-head">
《关于充电桩xxxx》
</view>
<view class="">
xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
</view>
</view>
<view class="notice" @click="bbb">
<view class="n-head">
《关于充电桩xxxx》
</view>
<view class="">
xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
</view>
</view>
<view class="notice" @click="bbb">
<view class="n-head">
《关于充电桩xxxx》
</view>
<view class="">
xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
</view>
</view>
<view class="notice" @click="bbb">
<view class="n-head">
《关于充电桩xxxx》
</view>
<view class="">
xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
</view>
</view>
<view class="notice" @click="bbb">
<view class="n-head">
《关于充电桩xxxx》
</view>
<view class="">
xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
</view>
</view>
<view class="notice" @click="bbb">
<view class="n-head">
《关于充电桩xxxx》
</view>
<view class="">
xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
</view>
</view>
<view class="notice" @click="bbb">
<view class="n-head">
《关于充电桩xxxx》
</view>
<view class="">
xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
</view>
</view><view class="notice" @click="bbb">
<view class="n-head">
《关于充电桩xxxx》
</view>
<view class="">
xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
</view>
</view>
<view class="notice" @click="bbb">
<view class="n-head">
《关于充电桩xxxx》
</view>
<view class="">
xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
</view>
<view v-shou="isLoadMore">
<u-loadmore :status="loadStatus" />
</view>
</scroll-view>
</swiper-item>
<swiper-item class="swiper-item">
<scroll-view scroll-y style="height:500rpx;width:100%;" @scrolltolower="onreachBottom">
<scroll-view scroll-y style="height:500rpx;width:100%;">
<view class="lean">
<view class="top">
<view class="currency-class">
......@@ -181,7 +63,7 @@
快速学习,使用APP接单、抢单
</view>
<view class="" style="display:flex;justify-content: space-between;">
<u-line-progress active-color="#2979ff" :percent="0" style="width:54%;"></u-line-progress>
<u-line-progress active-color="#2979ff" :percent="30" style="width:54%;"></u-line-progress>
<text>未观看</text>
</view>
</view>
......@@ -271,150 +153,220 @@
</swiper>
</view>
</view>
</template>
<script>
export default{
data() {
return {
list: [{
image: 'https://cdn.uviewui.com/uview/swiper/1.jpg',
title: '昨夜星辰昨夜风,画楼西畔桂堂东'
},
{
image: 'https://cdn.uviewui.com/uview/swiper/2.jpg',
title: '身无彩凤双飞翼,心有灵犀一点通'
},
{
image: 'https://cdn.uviewui.com/uview/swiper/3.jpg',
title: '谁念西风独自凉,萧萧黄叶闭疏窗,沉思往事立残阳'
}
],
tabs:[
{
name:'交付规范'
},{
name:'培训通知'
},{
name:'在线学习',
},{
name:'考核认证'
}
],
current:0,
swiperCurrent:0,
}
},
methods: {
//tabs通知swiper切换
tabsChange(index){
this.swiperCurrent = index;
},
//swiper-item左右移动,通知tabs的滑块跟随移动
transition(e){
let dx = e.detail.dx;
this.$refs.uTabs.setDx(dx);
},
animationfinish(e) {
let current = e.detail.current;
this.$refs.uTabs.setFinishCurrent(current);
this.swiperCurrent = current;
this.current = current;
},
aaa(){
wx.navigateTo({
url:'./assessment'
})
},
bbb(){
wx.navigateTo({
url:'./news-details'
})
},
//scroll-view到底部加载更多
onreachBottom() {
}
}
}
export default {
data() {
return {
banner: [
{
image: "https://cdn.uviewui.com/uview/swiper/1.jpg",
title: "昨夜星辰昨夜风,画楼西畔桂堂东",
},
{
image: "https://cdn.uviewui.com/uview/swiper/2.jpg",
title: "身无彩凤双飞翼,心有灵犀一点通",
},
{
image: "https://cdn.uviewui.com/uview/swiper/3.jpg",
title: "谁念西风独自凉,萧萧黄叶闭疏窗,沉思往事立残阳",
},
],
tabs: [
{
name: "交付规范",
},
{
name: "培训通知",
},
{
name: "在线学习",
},
{
name: "考核认证",
},
],
current: 0,
swiperCurrent: 0,
params: {
start: 0,
},
list: [],
loadStatus: "loading", //加载样式:loadMore-加载前样式,loading-加载加载中样式,nomore-没有数据样式
isLoadMore: false, //是否加载中
};
},
onLoad() {
this.getList();
},
methods: {
getList() {
this.$u.api
.getTrainingNoticeList(this.params)
.then((res) => {
if (res.code == 200) {
if (res.data) {
this.list = this.list.concat(res.data);
if (res.data.length < 5) {
//判断接口返回数据量小于请求数据量,则表示此为最后一页
this.isLoadMore = true;
this.loadStatus = "nomore";
} else {
this.isLoadMore = false;
}
} else {
this.isLoadMore = true;
this.loadStatus = "nomore";
}
} else {
//接口请求失败的处理
uni.showToast({ title: res.message, icon: "none" });
this.isLoadMore = false;
if (this.params.start > 0) {
this.page -= 5;
}
}
})
.catch((err) => {
uni.showToast({
title: err,
icon: "none",
});
this.isLoadMore = false;
if (this.params.start > 0) {
this.page -= 5;
}
});
},
//tabs通知swiper切换
tabsChange(index) {
this.swiperCurrent = index;
},
//swiper-item左右移动,通知tabs的滑块跟随移动
transition(e) {
let dx = e.detail.dx;
this.$refs.uTabs.setDx(dx);
},
animationfinish(e) {
let current = e.detail.current;
this.$refs.uTabs.setFinishCurrent(current);
this.swiperCurrent = current;
this.current = current;
},
//跳转到assessment页面
aaa() {
wx.navigateTo({
url: "./assessment",
});
},
//跳转到
bbb() {
wx.navigateTo({
url: "./news-details",
});
},
//scroll-view到底部加载更多
onreachBottom() {
console.log("上拉触底函数");
//上拉触底函数
if (!this.isLoadMore) {
this.isLoadMore = true;
this.params.start += 5;
if (this.loadStatus !== "nomore") {
this.getList();
}
}
},
//跳转到拍照小程序首页
goToPrint() {
console.log("111111");
uni.navigateToMiniProgram({
appId: "wxd1d6eede324b0465",
success(res) {
//打开成功
console.log("success", res);
},
fail(err) {
console.log("err", err);
},
});
},
},
};
</script>
<style>
.study{
background: #f9f9f9;
padding: 15rpx;
height: 100%;
}
.banner{
padding:2rpx;
}
//交付规范
.standard{
width: 656rpx;
display: flex;
justify-content: space-between;
border-bottom: 1rpx solid #82848A;
padding: 0 34rpx;
margin:72rpx auto;
}
//培训通知
.notice{
border: #808080 solid 2rpx;
width: 100%;
height: 400rpx;
margin-top: 36rpx;
}
.n-head{
text-align: center;
margin: 32rpx 0 ;
}
//在线学习
.currency-class{
width: 100%;
height: 455rpx;
background: #FFFFFF;
padding: 18rpx;
margin-bottom: 11px;
}
.class1{
display: flex;
justify-content: space-between;
padding-top: 22rpx;
margin-top: 28rpx;
border-top:1rpx solid #808080;
}
.img{
width: 200rpx;
height: 126rpx;
display: block;
margin-right: 0rpx;
}
.right{
width: 428rpx;
height: 147rpx;
}
.tab{
background: #fff;
height: 82rpx;
margin: 0 0;
}
.text{
margin: 0 40rpx;
line-height: 82rpx;
color: #667eb5;
}
.content{
margin: 5px 0;
height: 485rpx;
background: #fff;
}
swiper{
height:691rpx;
}
.study {
background: #f9f9f9;
padding: 15rpx;
height: 100%;
}
.banner {
padding: 2rpx;
}
//交付规范
.standard {
width: 656rpx;
display: flex;
justify-content: space-between;
border-bottom: 1rpx solid #82848a;
padding: 0 34rpx;
margin: 72rpx auto;
}
//培训通知
.notice {
border: #808080 solid 2rpx;
width: 100%;
height: 400rpx;
margin-top: 36rpx;
}
.n-head {
text-align: center;
margin: 32rpx 0;
}
//在线学习
.currency-class {
width: 100%;
height: 455rpx;
background: #ffffff;
padding: 18rpx;
margin-bottom: 11px;
}
.class1 {
display: flex;
justify-content: space-between;
padding-top: 22rpx;
margin-top: 28rpx;
border-top: 1rpx solid #808080;
}
.img {
width: 200rpx;
height: 126rpx;
display: block;
margin-right: 0rpx;
}
.right {
width: 428rpx;
height: 147rpx;
}
.tab {
background: #fff;
height: 82rpx;
margin: 0 0;
}
.text {
margin: 0 40rpx;
line-height: 82rpx;
color: #667eb5;
}
.content {
margin: 5px 0;
height: 485rpx;
background: #fff;
}
swiper {
height: 691rpx;
}
</style>
......@@ -4,21 +4,24 @@
考试结果
</view>
<view class="result">
考试不通过
未通过
</view>
<view class="details">
<view class="text1">
<text>合格条件:</text><text>答对20题</text>
<view class="">
<text class="first">合格条件:</text><text>答对20题</text>
</view>
<view class="text1">
<text>考试结果:</text><text>答对10题</text>
<view class="">
<text class="first">考试结果:</text><text>答对10题</text>
</view>
<view class="text1">
<text>考试用时:</text><text>16分29秒</text>
<view class="">
<text class="first">考试用时</text><text>16分29秒</text>
</view>
<view class="btn">
<button class="btn1">再答一次</button>
<button class="btn2">退出重考</button>
</view>
<button class="btn">再答一次</button>
<button class="btn2">退出重考</button>
</view>
</view>
</template>
......@@ -29,47 +32,57 @@
}
},
methods: {
methods:{
}
}
</script>
<style>
<style lang="scss">
.content{
width: 592rpx;
height: 800rpx;
/* background: #19BE6B; */
margin: 84rpx auto;
overflow: hidden;
width: 100%;
height: 950rpx;
background: #DCDFE6;
padding: 53rpx;
}
.title{
margin:7px 13px;
font-size: 30rpx;
}
.result{
color: red;
font-size: 56rpx;
font-size: 73rpx;
text-align: center;
margin: 52rpx 0;
margin: 46rpx 0;
}
.details{
height: 400rpx;
border-top: 1px dashed #808080;
}
.text1{
margin: 16rpx 24rpx;
border-top: 2rpx dashed #808080;
height: 600rpx;
padding-top: 94rpx;
view{
margin: 26rpx 0 0;
.first{
margin: 0 20rpx 0;
}
}
}
.btn{
width: 476rpx;
height: 80rpx;
background: #007AFF;
font-size: 32rpx;
margin:206rpx auto 38rpx ;
}
.btn2{
width: 476rpx;
height: 80rpx;
font-size: 30rpx;
margin: 0 auto ;
.btn1{
width: 477rpx;
height: 61rpx;
border-radius: 27rpx;
line-height: 61rpx;
font-size: 29rpx;
background: #007AFF;
color: #FFFFFF;
margin: 140rpx auto 34rpx;
}
.btn2{
width: 477rpx;
height: 61rpx;
border-radius: 27rpx;
line-height: 61rpx;
font-size: 29rpx;
}
}
</style>
</style>
\ No newline at end of file
<template>
<view class="u-wrap">
<view class="u-search-box">
<view class="u-search-inner">
<u-icon name="search" color="#909399" :size="28"></u-icon>
<text class="u-search-text">搜索</text>
</view>
</view>
<view class="u-menu-wrap">
<scroll-view scroll-y scroll-with-animation class="u-tab-view menu-scroll-view" :scroll-top="scrollTop"
:scroll-into-view="itemId">
<view v-for="(item,index) in tabbar" :key="index" class="u-tab-item" :class="[current == index ? 'u-tab-item-active' : '']"
@tap.stop="swichMenu(index)">
<text class="u-line-1">{{item.name}}</text>
</view>
</scroll-view>
<scroll-view :scroll-top="scrollRightTop" scroll-y scroll-with-animation class="right-box" @scroll="rightScroll">
<!-- <form-com :item="tabbar"></form-com> -->
<u-form :model="form" ref="uForm">
<template v-for="(groupItem,index) in tabbar">
<view class="class-item" :key="index">
<view class="title" >{{groupItem.name}}</view>
<view class="class-bd">
<u-form-item :label-width="0" :required="groupItem.required"
v-for="(item,itemIndex) in groupItem.foods" :key="itemIndex">
<!-- <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>
<!-- <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>
</view>
</view>
</template>
<script>
import classifyData from '@/common/classify.data.js';
// import allComponents from '@/components/createCom/index.js'
// import XhInput from '@/components/createCom/XhInput.vue'
// import formCom from './components/formCom.vue'
import XhInput from '@/components/createCom/XhInput.vue'
export default {
data() {
return {
scrollTop: 0, //tab标题的滚动条位置
oldScrollTop: 0,
current: 0, // 预设当前项的值
menuHeight: 0, // 左边菜单的高度
menuItemHeight: 0, // 左边菜单item的高度
itemId: '', // 栏目右边scroll-view用于滚动的id
tabbar: classifyData,
menuItemPos: [],
arr: [],
scrollRightTop: 0, // 右边栏目scroll-view的滚动条高度
timer: null, // 定时器
}
},
components: {
'xh-input': XhInput,
},
created(){
// console.log(allComponents,'allComponents')
},
onLoad() {
},
onReady() {
this.getMenuItemTop()
},
methods: {
// 点击左边的栏目切换
async swichMenu(index) {
if(this.arr.length == 0) {
await this.getMenuItemTop();
}
if (index == this.current) return;
this.scrollRightTop = this.oldScrollTop;
this.$nextTick(function(){
this.scrollRightTop = this.arr[index];
this.current = index;
this.leftMenuStatus(index);
})
},
// 获取一个目标元素的高度
getElRect(elClass, dataVal) {
new Promise((resolve, reject) => {
const query = uni.createSelectorQuery().in(this);
query.select('.' + elClass).fields({
size: true
}, res => {
// 如果节点尚未生成,res值为null,循环调用执行
if (!res) {
setTimeout(() => {
this.getElRect(elClass);
}, 10);
return;
}
this[dataVal] = res.height;
resolve();
}).exec();
})
},
// 观测元素相交状态
async observer() {
this.tabbar.map((val, index) => {
let observer = uni.createIntersectionObserver(this);
// 检测右边scroll-view的id为itemxx的元素与right-box的相交状态
// 如果跟.right-box底部相交,就动态设置左边栏目的活动状态
observer.relativeTo('.right-box', {
top: 0
}).observe('#item' + index, res => {
if (res.intersectionRatio > 0) {
let id = res.id.substring(4);
this.leftMenuStatus(id);
}
})
})
},
// 设置左边菜单的滚动状态
async leftMenuStatus(index) {
this.current = index;
// 如果为0,意味着尚未初始化
if (this.menuHeight == 0 || this.menuItemHeight == 0) {
await this.getElRect('menu-scroll-view', 'menuHeight');
await this.getElRect('u-tab-item', 'menuItemHeight');
}
// 将菜单活动item垂直居中
this.scrollTop = index * this.menuItemHeight + this.menuItemHeight / 2 - this.menuHeight / 2;
},
// 获取右边菜单每个item到顶部的距离
getMenuItemTop() {
new Promise(resolve => {
let selectorQuery = uni.createSelectorQuery();
selectorQuery.selectAll('.class-item').boundingClientRect((rects) => {
// 如果节点尚未生成,rects值为[](因为用selectAll,所以返回的是数组),循环调用执行
if(!rects.length) {
setTimeout(() => {
this.getMenuItemTop();
}, 10);
return ;
}
rects.forEach((rect) => {
// 这里减去rects[0].top,是因为第一项顶部可能不是贴到导航栏(比如有个搜索框的情况)
this.arr.push(rect.top - rects[0].top);
resolve();
})
}).exec()
})
},
// 右边菜单滚动
async rightScroll(e) {
this.oldScrollTop = e.detail.scrollTop;
if(this.arr.length == 0) {
await this.getMenuItemTop();
}
if(this.timer) return ;
if(!this.menuHeight) {
await this.getElRect('menu-scroll-view', 'menuHeight');
}
setTimeout(() => { // 节流
this.timer = null;
// scrollHeight为右边菜单垂直中点位置
let scrollHeight = e.detail.scrollTop + this.menuHeight / 2;
for (let i = 0; i < this.arr.length; i++) {
let height1 = this.arr[i];
let height2 = this.arr[i + 1];
// 如果不存在height2,意味着数据循环已经到了最后一个,设置左边菜单为最后一项即可
if (!height2 || scrollHeight >= height1 && scrollHeight < height2) {
this.leftMenuStatus(i);
return ;
}
}
}, 10)
}
}
}
</script>
<style lang="scss" scoped>
.u-wrap {
height: calc(100vh);
/* #ifdef H5 */
height: calc(100vh - var(--window-top));
/* #endif */
display: flex;
flex-direction: column;
}
.u-search-box {
padding: 18rpx 30rpx;
}
.u-menu-wrap {
flex: 1;
display: flex;
overflow: hidden;
}
.u-search-inner {
background-color: rgb(234, 234, 234);
border-radius: 100rpx;
display: flex;
align-items: center;
padding: 10rpx 16rpx;
}
.u-search-text {
font-size: 26rpx;
color: $u-tips-color;
margin-left: 10rpx;
}
.u-tab-view {
width: 200rpx;
height: 100%;
}
.u-tab-item {
height: 110rpx;
background: #f6f6f6;
box-sizing: border-box;
display: flex;
align-items: center;
justify-content: center;
font-size: 26rpx;
color: #444;
font-weight: 400;
line-height: 1;
}
.u-tab-item-active {
position: relative;
color: #000;
font-size: 30rpx;
font-weight: 600;
background: #fff;
}
.u-tab-item-active::before {
content: "";
position: absolute;
border-left: 4px solid $u-type-primary;
height: 32rpx;
left: 0;
top: 39rpx;
}
.u-tab-view {
height: 100%;
}
.right-box {
background-color: rgb(250, 250, 250);
}
.page-view {
padding: 16rpx;
}
.class-item {
margin-bottom: 30rpx;
background-color: #fff;
padding: 16rpx;
border-radius: 8rpx;
}
.class-item:last-child {
min-height: 100vh;
}
.item-title {
font-size: 26rpx;
color: $u-main-color;
font-weight: bold;
}
.item-menu-name {
font-weight: normal;
font-size: 24rpx;
color: $u-main-color;
}
.item-container {
display: flex;
flex-wrap: wrap;
}
.thumb-box {
width: 33.333333%;
display: flex;
align-items: center;
justify-content: center;
flex-direction: column;
margin-top: 20rpx;
}
.item-menu-image {
width: 120rpx;
height: 120rpx;
}
</style>
<!-- 实现动态组件的绑定 -->
<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>
<template>
<view class="content">
<Settle :index="2">
<view class="title">入驻基本信息</view>
<view class="base-list">
<!--view class="item item-input flex-yc">
<label class="label">姓名</label>
<span class="required">*</span>
<input placeholder="请输入您的姓名" v-model.trim="baseInfo.name" class="input flex1" />
</view-->
<!--view class="item item-input flex u-row-between">
<label class="label">电话</label>
<span class="required">*</span>
<input placeholder="请输入您的电话" v-model="baseInfo.mobile" class="input flex1" />
</view-->
<view class="item item-select u-row-between" @click="gopage('/pages/settle/select?selectType=area')">
<view class="label">接单城市:</view>
<p class="u-flex-1 u-text-right txt">{{ areaTxts.slice(0,2).join(',') || "" }}</p>
<u-icon name="arrow-right" color="#999" size="28"></u-icon>
</view>
<view class="tips">(必选项)选择你可以服务的城市,可选多个</view>
<view class="item item-select flex-yc" @click="gopage('/pages/settle/select?selectType=working_age')">
<view class="label">电工工龄(年):</view>
<p class="u-flex-1 u-text-right area" v-show="baseInfo.working_age !== ''">
{{ workingAgeTxt }}
</p>
<u-icon name="arrow-right" color="#999" size="28"></u-icon>
<!-- <i class="iconfont icon-xiangyou"></i> -->
</view>
<view class="tips">(必选项)选择你从事电工工作的工龄</view>
<!--view class="item item-input flex u-row-between">
<label class="label">详细地址:</label>
<u-icon name="map" color="#999" size="34"></u-icon>
</view-->
<!--view class="tips">{{baseInfo.address}}</view-->
<view class="itemView">
<view class="itemTitleView">
<text class="itemTitle">师傅数量</text>
<!--text class="itemRedStar">*</text-->
</view>
<input
class="itemInput"
@input="countInput"
v-model="name"
type="number"
value=""
placeholder="请输入师傅数量"
placeholder-style='color:#CCCCCC;font-size:32rpx;'/>
</view>
<view class="tips bottom_padding_80">(选填项)输入可投入交付服务的人员数量</view>
<view class="newAddressView">
<view class="newAddressTitleView" @click="locationClick()">
<view class="address">
<text class="itemTitle">详细地址</text>
<!--text class="itemRedStar">*</text-->
</view>
<view class="right-margin-40">
<u-icon name="map" color="#999" size="34"></u-icon>
<text class="blueColor">定位</text>
</view>
</view>
<view class="addressBackView">
<textarea
class="addressTextAreaView"
maxlength="100"
v-model="baseInfo.address"
auto-height="true"
value=""
placeholder="请输入详细服务地址"
placeholder-style='color:#CCCCCC;font-size:28rpx;'/>
</view>
<view class="tips">(必填项)填写可接收物料的地址</view>
</view>
</view>
<view class="seat"></view>
<view class="btn-wrap flex-xc">
<button class="btn-submit" :disabled="!submitStatus" @click="$u.debounce(submitBaseInfo, 500)">
<!--view class="">submitBaseInfo</view-->
<!--button class="btn-submit" :disabled="!submitStatus" @click="submitBaseInfo()"-->
确定
</button>
</view>
</Settle>
</view>
</template>
<script>
import Settle from '@/components/settle/index.vue'
let r = require("../../libs/bmap-wx.min.js");
let h = new r.BMapWX({
// ak: "rpVq5d3yxaRCoKzVwmFMo0o4iC524CAG",
ak: "lF1HoyXdiv4uZx6TrGQEZs48F5y8kEHI"
});
export default {
components: {
Settle
},
data() {
return {
baseInfo: {
name: "",
mobile: "",
service_area: [],
working_age: "",
worker_num:"",
address:''
},
saving: false,
areaTxts: [],
workingAgeTxt: '',
protocolContent: '',
address:'',
isPosting:false
}
},
onLoad(e) {
this.initLocation()
},
onShow() {
if (this.isPosting) {
this.isPosting = false
}
},
computed: {
submitStatus() {
const baseInfo = this.baseInfo
//baseInfo.name && baseInfo.mobile &&
const flag = baseInfo.service_area && baseInfo.working_age !== ''
return flag && !this.saving;
},
},
components: {
},
methods: {
initLocation(){
const self = this
uni.getLocation({
type: 'wgs84',
success: function (res) {
self.baiduLocation(res.longitude,res.latitude)
}
});
},
baiduLocation(long,lat) {
let a = this,
t = function() {
let t = {
success: function(res) {
let e = res.wxMarkerData[0];
let i = e.address;
a.baseInfo.address = i
// a.setData({
// addressValue: i
// }), o.globalData.addressValue = i, a.initWatermarkBoxHeightAndWidth();
},
fail: function(a) {
// n.error(a), console.log(a);
}
};
if (lat && long) {
let e = lat + "," + long
// let e = "113.88308" + ',' + "22.55329"
// let e = "22.55329" + ',' + "113.88308"
t.location = e;
}
h.regeocoding(t);
};
t()
},
//师傅数量
countInput(e){
this.baseInfo.worker_num = e.detail.value
},
//定位点击
locationClick:function(){
let that = this
uni.chooseLocation({
success: function (res) {
that.baseInfo.address = res.address + res.name
//that.address = res.address + res.name
},fail: function (res) {
uni.showToast({
title:'定位失败'
})
}
});
},
gopage(url) {
uni.navigateTo({
url,
});
},
initBaseInfo() {
Indicator.open();
let params = {
id: '',
}
const res = this.$u.api.getSettleBaseInfo(params)
uni.hideLoading()
if (res.status != 200) {
uni.showToast({
title: res.message,
icon: 'success'
});
return;
}
this.baseInfo = res.data
uni.showToast({
title: '入驻基本信息提交成功',
icon: 'success'
});
},
checkBaseInfo() {
const baseInfo = this.baseInfo;
let rulesObj = {
/*
name: function(value) {
if (!value) {
uni.showToast({
title: '请输入您的姓名',
icon: 'none'
});
return false;
}
},
mobile: function(value) {
const mobileReg = /^[1][3,4,5,7,8][0-9]{9}$/;
if (!value) {
uni.showToast({
title: '请输入您的电话',
icon: 'none'
});
return false;
return false;
} else if (!mobileReg.test(value)) {
uni.showToast({
title: '请输入正确的电话',
icon: 'none'
});
return false;
}
},
*/
service_area: function(value) {
if (!value || value.length==0) {
uni.showToast({
title: '请选择您的接单城市',
icon: 'none'
});
return false;
}
},
working_age: function(value) {
if (value === '') {
uni.showToast({
title: '请选择您的工龄',
icon: 'none'
});
return false;
}
},
//address
address: function(value) {
if (value === '') {
uni.showToast({
title: '请选择您的地址',
icon: 'none'
});
return false;
}
},
};
const flagArr = Object.keys(baseInfo).some((key) => {
// 返回验证失败的数组
let flag = true;
if (rulesObj.hasOwnProperty(key)) {
const func = rulesObj[key];
const value = baseInfo[key];
if (typeof func === "function") {
flag = func(value) === false ? false : true;
}
}
return !flag;
});
return !flagArr || flagArr.length < 1;
},
/*
shakeCLick: function() {
let timer = setTimeout(() => {
clearTimeout(timer)
this.submitBaseInfo()
}, 2000)
},
*/
async submitBaseInfo() {
// this.newSubmitBaseInfo()
// return
const baseInfo = this.baseInfo;
if (!this.checkBaseInfo()) {
return;
}
this.saving = true;
uni.showLoading({
title: '加载中'
});
const params = {
...baseInfo,
recommender:getApp().globalData.settleRecommend
}
console.log(params,'params')
params.service_area = baseInfo.service_area.join(',')
const res = await this.$u.api.submitSettleBaseInfo(params)
this.saving = false;
uni.hideLoading()
//this.isPosting = false
if (res.code != 200) {
uni.showToast({
title: res.message,
icon: 'none'
});
return;
}
uni.showToast({
title: '入驻基本信息提交成功',
icon: 'success'
});
let timer = setTimeout(() => {
clearTimeout(timer)
uni.navigateTo({
url:'/pages/settle/file',
"animationType": "fade-in",
"animationDuration": 300
})
}, 2000)
},
},
}
</script>
<style lang="scss">
.base-list {
.item {
display: flex;
margin-bottom: 58rpx;
padding: 28rpx 30rpx;
width: 100%;
height: 100rpx;
font-size: 32rpx;
background-color: #fff;
.label {
color: #333;
font-size: 32rpx;
}
.txt {
line-height: 44rpx;
color: #333;
font-size: 32rpx;
display: -webkit-box;
overflow: hidden;
text-overflow: ellipsis;
word-wrap: break-word;
white-space: normal !important;
-webkit-line-clamp: 2;
-webkit-box-orient: vertical;
}
.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;
}
}
.item-input {
overflow: hidden;
input {
text-align: right;
line-height: 44rpx;
width: 100%;
font-size: 30rpx;
color: #333;
font-weight: 400;
}
.input-readonly {
font-size: 30rpx;
color: #999;
font-weight: 400;
}
input::-webkit-input-placeholder {
font-size: 30rpx;
color: #999;
font-weight: 400;
}
input:-moz-placeholder {
font-size: 30rpx;
color: #999;
font-weight: 400;
}
input:-ms-input-placeholder {
font-size: 30rpx;
color: #999;
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 {
//position: fixed;
//left: 0;
//right: 0;
//bottom: 0;
padding: 30rpx 0;
background: #f3f3f3;
width: 100%;
.btn-submit {
width: 600rpx;
// left: 5%;
// bottom: px2rem(36);
height: 104rpx;
line-height: 104rpx;
border-radius: 52rpx;
background: #2272ff;
font-size: 32rpx;
color: #fff;
&[disabled] {
border: 2rpx solid #999;
background-color: #f3f3f3;
color: #999;
}
}
<template>
<view class="back_view">
<Settle :index="2">
<view class="base-list">
<view class="tip-text">
<image class="tip-image" mode="widthFix" src="../../static/settle/anquan@3x.png"></image>
<text>身份证照片、电工证照片、行驶证/驾驶证照片及车辆照片仅用于申请入驻。</text>
</view>
<view class="base-item">
<view class="item item-select" @click="gopage('/pages/settle/select?selectType=area')">
<view class="flex-center">
<image class="item-image" src="../../static/settle/mixing@3x.png"></image>
<text class="label">接单城市</text>
</view>
<p :class="['u-flex-1 u-text-right txt', {before: !cityText}]">{{ cityText ? '已选择' : '去选择' }}
</p>
<u-icon name="arrow-right" color="#2272FF" size="28"></u-icon>
</view>
<view class="tips">可以服务的城市,可选多个</view>
<view v-if="">
<view class="line-view-d"></view>
<view class="city-text">{{cityText}}</view>
</view>
</view>
<view class="base-item" style="height: 600rpx;">
<view class="item item-select" @click="gopage('/pages/settle/select?selectType=working_age')">
<view class="flex-center">
<image class="item-image" src="../../static/settle/mixing@3x.png"></image>
<text class="label">电工工龄(年)</text>
</view>
<p :class="['u-flex-1 u-text-right area', {before: !baseInfo.working_age}]">
{{ baseInfo.working_age ? workingAgeTxt : '去选择'}}
</p>
<u-icon name="arrow-right" color="#2272FF" size="28"></u-icon>
</view>
<view class="tips">从事电工工作的工龄</view>
<view class="line-view"></view>
<view class="item itemView">
<view>
<text class="itemTitle">师傅数量</text>
</view>
<input class="itemInput" @input="countInput" v-model="name" type="number" value=""
placeholder="请输入" placeholder-style='color:#2272FF;font-size:24rpx;' />
</view>
<view class="tips">可投入交付服务的人员数量</view>
<view class="line-view"></view>
<view>
<view class="item item-select" @click="locationClick()">
<view class="flex-center">
<image class="item-image" src="../../static/settle/mixing@3x.png"></image>
<text class="itemTitle">详细地址</text>
</view>
<view class="flex-center">
<image class="item-image" src="../../static/settle/dizhi@3x.png"></image>
<text class="right-label blueColor">自动定位</text>
</view>
</view>
<view class="address-view">
<textarea class="address-textarea" :cursor-spacing="40" maxlength="100"
placeholder-style="color:#999999" v-model="baseInfo.address"
placeholder="请填写可接收物料的详细地址" />
</view>
</view>
</view>
</view>
<view class="seat"></view>
<template v-slot:bottom>
<view class="btn-wrap flex-xc">
<button class="btn-submit" :disabled="!submitStatus" @click="$u.debounce(submitBaseInfo, 500)">
确定
</button>
</view>
</template>
</Settle>
</view>
</template>
<script>
import Settle from '@/components/settle/index.vue'
let r = require("../../libs/bmap-wx.min.js");
let h = new r.BMapWX({
// ak: "rpVq5d3yxaRCoKzVwmFMo0o4iC524CAG",
ak: "lF1HoyXdiv4uZx6TrGQEZs48F5y8kEHI"
});
export default {
components: {
Settle
},
data() {
return {
baseInfo: {
name: "",
mobile: "",
service_area: [],
working_age: "",
worker_num: "",
address: ''
},
saving: false,
areaTxts: [],
workingAgeTxt: '',
protocolContent: '',
address: '',
isPosting: false
}
},
onLoad(e) {
this.initLocation()
},
onShow() {
if (this.isPosting) {
this.isPosting = false
}
},
computed: {
submitStatus() {
const baseInfo = this.baseInfo
//baseInfo.name && baseInfo.mobile &&
const flag = baseInfo.service_area && baseInfo.working_age !== '' && baseInfo.address
return flag && !this.saving
},
cityText() {
return this.areaTxts.join('、')
}
},
components: {
},
methods: {
initLocation() {
const self = this
uni.getLocation({
type: 'wgs84',
success: function(res) {
self.baiduLocation(res.longitude, res.latitude)
}
});
},
baiduLocation(long, lat) {
let a = this,
t = function() {
let t = {
success: function(res) {
let e = res.wxMarkerData[0];
let i = e.address;
a.baseInfo.address = i
// a.setData({
// addressValue: i
// }), o.globalData.addressValue = i, a.initWatermarkBoxHeightAndWidth();
},
fail: function(a) {
// n.error(a), console.log(a);
}
};
if (lat && long) {
let e = lat + "," + long
// let e = "113.88308" + ',' + "22.55329"
// let e = "22.55329" + ',' + "113.88308"
t.location = e;
}
h.regeocoding(t);
};
t()
},
//师傅数量
countInput(e) {
this.baseInfo.worker_num = e.detail.value
},
//定位点击
locationClick: function() {
let that = this
uni.chooseLocation({
success: function(res) {
that.baseInfo.address = res.address + res.name
//that.address = res.address + res.name
},
fail: function(res) {
uni.showToast({
title: '定位失败'
})
}
});
},
gopage(url) {
uni.navigateTo({
url,
});
},
initBaseInfo() {
Indicator.open();
let params = {
id: '',
}
const res = this.$u.api.getSettleBaseInfo(params)
uni.hideLoading()
if (res.status != 200) {
uni.showToast({
title: res.message,
icon: 'success'
});
return;
}
this.baseInfo = res.data
uni.showToast({
title: '入驻基本信息提交成功',
icon: 'success'
});
},
checkBaseInfo() {
const baseInfo = this.baseInfo;
let rulesObj = {
/*
name: function(value) {
if (!value) {
uni.showToast({
title: '请输入您的姓名',
icon: 'none'
});
return false;
}
},
mobile: function(value) {
const mobileReg = /^[1][3,4,5,7,8][0-9]{9}$/;
if (!value) {
uni.showToast({
title: '请输入您的电话',
icon: 'none'
});
return false;
return false;
} else if (!mobileReg.test(value)) {
uni.showToast({
title: '请输入正确的电话',
icon: 'none'
});
return false;
}
},
*/
service_area: function(value) {
if (!value || value.length == 0) {
uni.showToast({
title: '请选择您的接单城市',
icon: 'none'
});
return false;
}
},
working_age: function(value) {
if (value === '') {
uni.showToast({
title: '请选择您的工龄',
icon: 'none'
});
return false;
}
},
//address
address: function(value) {
if (value === '') {
uni.showToast({
title: '请选择您的地址',
icon: 'none'
});
return false;
}
},
};
const flagArr = Object.keys(baseInfo).some((key) => {
// 返回验证失败的数组
let flag = true;
if (rulesObj.hasOwnProperty(key)) {
const func = rulesObj[key];
const value = baseInfo[key];
if (typeof func === "function") {
flag = func(value) === false ? false : true;
}
}
return !flag;
});
return !flagArr || flagArr.length < 1;
},
/*
shakeCLick: function() {
let timer = setTimeout(() => {
clearTimeout(timer)
this.submitBaseInfo()
}, 2000)
},
*/
async submitBaseInfo() {
// this.newSubmitBaseInfo()
// return
const baseInfo = this.baseInfo;
if (!this.checkBaseInfo()) {
return;
}
this.saving = true;
uni.showLoading({
title: '加载中'
});
const params = {
...baseInfo,
recommender: getApp().globalData.settleRecommend
}
console.log(params, 'params')
params.service_area = baseInfo.service_area.join(',')
const res = await this.$u.api.submitSettleBaseInfo(params)
this.saving = false;
uni.hideLoading()
//this.isPosting = false
if (res.code != 200) {
uni.showToast({
title: res.message,
icon: 'none'
});
return;
}
uni.showToast({
title: '入驻基本信息提交成功',
icon: 'success'
});
let timer = setTimeout(() => {
clearTimeout(timer)
uni.navigateTo({
url: '/pages/settle/file',
"animationType": "fade-in",
"animationDuration": 300
})
}, 2000)
},
},
}
</script>
<style lang="scss" scoped>
.back_view {
background-color: #F4F5F7;
position: absolute;
top: 0;
left: 0;
width: 100%;
height: 100%;
display: flex;
flex-direction: column;
}
.base-list {
.base-item {
background-color: #FFFFFF;
border-radius: 12rpx;
padding: 30rpx;
min-height: 160rpx;
margin-bottom: 20rpx;
}
.line-view {
background-color: #F4F5F7;
height: 2rpx;
width: 100%;
margin-bottom: 30rpx;
margin-top: 36rpx;
}
.line-view-d {
background-color: #F4F5F7;
height: 2rpx;
width: 100%;
margin-bottom: 20rpx;
margin-top: 20rpx;
}
.city-text {
font-size: 28rpx;
color: #333333;
}
.item {
margin-top: 6rpx;
display: flex;
width: 100%;
font-size: 32rpx;
background-color: #fff;
align-items: center;
.label {
color: #333;
font-size: 32rpx;
}
.txt {
line-height: 44rpx;
color: #999999;
font-size: 24rpx;
display: -webkit-box;
overflow: hidden;
text-overflow: ellipsis;
word-wrap: break-word;
white-space: normal !important;
-webkit-line-clamp: 2;
-webkit-box-orient: vertical;
&.before {
color: #2272FF;
}
}
.item-image {
width: 24rpx;
height: 24rpx;
margin-right: 10rpx;
}
.item-image {
width: 26rpx;
height: 30rpx;
margin-right: 6rpx;
}
.required {
margin: 0 6rpx;
color: red;
font-size: 32rpx;
}
.iconfont {
color: #999;
}
}
.tips {
margin-top: 10rpx;
font-size: 24rpx;
color: #666;
}
.flex-center {
display: flex;
align-items: center;
}
.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-select {
font-size: 30rpx;
color: #333;
font-weight: 500;
justify-content: space-between;
}
.flex1 {
flex: 1 !important;
&.txt {
white-space: nowrap;
max-width: 450rpx;
overflow: hidden;
text-overflow: ellipsis;
}
}
.item-input {
overflow: hidden;
input {
text-align: right;
line-height: 44rpx;
width: 100%;
font-size: 30rpx;
color: #333;
font-weight: 400;
}
.input-readonly {
font-size: 30rpx;
color: #999;
font-weight: 400;
}
input::-webkit-input-placeholder {
font-size: 30rpx;
color: #999;
font-weight: 400;
}
input:-moz-placeholder {
font-size: 30rpx;
color: #999;
font-weight: 400;
}
input:-ms-input-placeholder {
font-size: 30rpx;
color: #999;
font-weight: 400;
}
}
}
.right-label {
font-size: 24rpx;
color: #2272FF;
margin-left: 4rpx;
line-height: 22rpx;
.slected {
font-size: 28rpx;
color: #333333;
}
}
.title {
padding: 30rpx 0 40rpx;
text-align: center;
line-height: 50rpx;
font-size: 36rpx;
color: #333;
font-weight: bold;
}
.seat {
padding-bottom: 168rpx;
}
/*提交按钮*/
.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;
}
}
}
.itemView {
background-color: #FFFFFF;
display: flex;
flex-direction: row;
align-items: center;
justify-content: space-between;
width: 100%;
}
.itemTitle {
background-color: #FFFFFF;
font-size: 32rpx;
font-weight: bold;
color: #333333;
}
.itemInput {
background-color: #FFFFFF;
width: 65%;
text-align: right;
font-size: 28rpx;
color: #333333;
}
.newAddressView {
margin-top: 60rpx;
background-color: #FFFFFF;
width: 100%;
display: flex;
flex-direction: column;
padding-bottom: 30rpx;
}
.newAddressTitleView {
height: 64rpx;
display: flex;
flex-direction: row;
align-items: center;
justify-content: space-between;
}
.itemRedStar {
font-size: 32rpx;
color: #D02B2B;
}
.addressBackView {
background-color: #FFFFFF;
border: 2rpx solid #F3F3F3;
margin-top: 24prx;
}
.addressTextAreaView {
background-color: #FFFFFF;
width: 640rpx;
height: 112rpx;
margin-top: 24rpx;
margin-left: 24rpx;
font-size: 28rpx;
line-height: 40rpx;
padding-bottom: 20rpx;
}
.right-margin-40 {
margin-right: 40rpx;
}
.blueColor {
color: #007AFF;
}
.area {
max-width: 400rpx;
color: #333333;
font-size: 28rpx;
&.before {
color: #2272FF;
font-size: 24rpx;
}
}
.address-view {
border: 2rpx solid #ECECEC;
height: 112rpx;
margin-top: 30rpx;
padding: 16rpx 30rpx;
}
.address-textarea {
font-size: 26rpx;
}
.itemView {
.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;
flex-direction: row;
align-items: center;
justify-content: space-between;
width: 100%;
height: 104rpx;
}
.itemTitleView{
background-color: #FFFFFF;
width: 30%;
height: 102rpx;
display: flex;
flex-direction: row;
align-items: center;
}
.borderBottom{
border-bottom: 1rpx solid #CCCCCC;
}
.itemTitle {
background-color: #FFFFFF;
margin-left: 30rpx;
font-size: 32rpx;
font-weight: bold;
color: #333333;
}
.itemRedStar {
font-size: 32rpx;
color: #D02B2B;
align-items: flex-start;
}
.itemInput {
background-color: #FFFFFF;
margin-right: 30rpx;
height: 70rpx;
width: 70%;
text-align: right;
font-size: 32rpx;
}
.newAddressView{
margin-top: 60rpx;
background-color: #FFFFFF;
width: 100%;
display: flex;
flex-direction: column;
padding-bottom: 30rpx;
}
.newAddressTitleView{
height: 64rpx;
display: flex;
flex-direction: row;
align-items: center;
justify-content: space-between;
}
.itemTitle {
background-color: #FFFFFF;
margin-left: 30rpx;
font-size: 32rpx;
font-weight: bold;
color: #333333;
}
.itemRedStar {
font-size: 32rpx;
color: #D02B2B;
}
.addressBackView{
background-color: #FFFFFF;
width: 690rpx;
border: 2rpx solid #F3F3F3;
margin-left: 30rpx;
padding-bottom: 24prx;
}
.addressTextAreaView{
background-color: #FFFFFF;
width: 640rpx;
height: 40rpx;
margin-top: 24rpx;
margin-left: 24rpx;
font-size: 28rpx;
line-height: 40rpx;
padding-bottom: 20rpx;
}
.right-margin-40{
margin-right: 40rpx;
}
.blueColor{
color: #007AFF;
}
.area{
max-width: 400rpx;
}
/* .back_view{
background-color: #FFFFFF;
position: absolute;
top: 0;
left: 0;
width: 100%;
display: flex;
flex-direction: column;
}
*/
.tip-image {
width: 34rpx;
margin-right: 8rpx;
margin-top: 2rpx;
}
</style>
<template>
<view class="img-wrap rel">
<view class="upload-box">
<view class="img-item pic" v-for="(file,index) in imgList" >
<!-- <view class="tip-sucess u-flex u-row-center" v-if="file && (file.status == status.QUEUED || file.status == status.UPLOADING)">
<span>正在上传中...{{file.percent}}%</span>
</view> -->
<img :src="file.src" mode="aspectFill" @click="perviewImg(index)">
<view class="close" @click="removeImg(index)">
<u-icon name="close" color="#fff" size="20"></u-icon>
</view>
</view>
<view>
<view class="pic upload" @click="chooseImage">
<u-icon name="camera" color="#fff" size="100"></u-icon>
<span class="txt">点击拍摄</span>
</view>
</view>
</view>
</view>
</template>
<script>
import base from '@/components/upload/upload';
export default {
mixins:[base],
data() {
return {
initImgList:[],
currentIndex: 0,
uploadType: '',
pageTitle:''
}
},
computed: {
},
onLoad(option) {
this.initPage(option)
// this.initworkingAgeList();
// this.getareaList()
},
beforeDestroy(){
this.setPrevPageData()
},
methods: {
goBack(type) {
// if (type) {
// this.setPrevPageData()
// }
this.setPrevPageData()
uni.navigateBack({
delta: 2
});
},
initPage(option) {
const uploadType = option.uploadType
this.uploadType = uploadType
let pages = getCurrentPages()
if (pages.length < 2) {
return
}
let prevVue = pages[pages.length - 2].$vm
this.imgList = prevVue.imgObj[uploadType] || []
const formShowList = prevVue.formShowList
formShowList.map(item=>{
if(item.filedName===uploadType){
this.pageTitle = item.label || '图片上传'
}
})
if(this.uploadType!=='other_certificates'){
this.selectNum = 1
}
uni.setNavigationBarTitle({
title: this.pageTitle
});
},
setPrevPageData() {
let pages = getCurrentPages()
if (pages.length < 2) {
return
}
let selected = this.selected
let prevVue = pages[pages.length - 2].$vm
const uploadType = this.uploadType
prevVue.imgObj[uploadType] = this.imgList
},
initworkingAgeList() {
let list = [{
value: 0,
name: "1年内",
}, ];
for (let i = 1; i < 10; i++) {
const item = {
value: i,
name: i + "年",
};
list.push(item);
}
list.push({
value: 10,
name: "10年+",
});
this.workingAgeList = list;
},
getareaList(code, level, provinceIndex) {
provinceIndex = provinceIndex || 0
this.currentIndex = provinceIndex
let areaList = this.areaList
if (level) {
if (areaList[provinceIndex].children) {
return
}
}
uni.showLoading({
title: '加载中'
});
let params = {
type: '充电桩安装',
level: level || 0,
code: code
}
const res = this.$u.api.getSettleArea(params)
uni.hideLoading()
if (res.status != 200) {
return;
}
if (!level) {
this.areaList = res.data
const parmas = [res.data[0].id, 1]
this.getareaList(...parmas)
} else {
this.$set(areaList[provinceIndex], 'children', res.data)
}
},
selectAge(item) {
this.selected.working_age = item.value
this.selected.workingAgeTxt = item.name
},
selectArea(areaItem) {
const code = areaItem.id
const selected = this.selected
const idx = selected.areaIds.indexOf(code)
const currentProvince = this.areaList[this.currentIndex]
let txt = currentProvince.name + '-' + areaItem.name
if (idx >= 0) {
selected.areaTxts.splice(idx, 1)
selected.areaIds.splice(idx, 1)
} else {
selected.areaIds.push(code)
selected.areaTxts.push(txt)
}
this.selected = selected
},
},
}
</script>
<style lang="scss">
.upload-box {
padding: 30rpx 16rpx;
.pic {
position: relative;
display: block;
width: 720rpx;
height: 450rpx;
// overflow: hidden;
border-radius: 12rpx;
margin-bottom: 30rpx;
img {
width: 100%;
height: 100%;
}
}
.pic.upload {
display: flex;
justify-content: center;
align-items: center;
flex-direction: column;
img {
display: block;
width: 60rpx;
height: 52rpx;
}
.txt {
font-weight: bold;
margin-top: 18rpx;
font-size: 32rpx;
color: #fff;
&.iconfont {
font-size: 60rpx;
}
}
background-color: rgba(0, 0, 0, 0.3);
}
}
.close{
position: absolute;
width:50rpx;
height:50rpx;
right:0;
top:0;
text-align: center;
line-height:50rpx;
border-radius: 50%;
background: red;
color: #fff;
}
.tip-sucess {
position: absolute;
bottom: 0;
left: 0;
padding: 20rpx 0;
width: 100%;
z-index: 5;
background: rgba(0, 0, 0, .4);
border-radius: 0;
color: #fff;
font-size: 28rpx;
&.tip-fail i {
background: red;
}
i {
margin-right: 12rpx;
width: 50rpx;
height: 50rpx;
background: #7fbe4c;
border-radius: 50%;
text-align: center;
line-height: 50rpx;
font-size: 24rpx;
}
}
</style>
<template>
<view class="page-content">
<Settle :index="2">
<view class="title">入驻充电安装业务所需资料</view>
<view class="base-list">
<template v-for="(fileItem, index) in formShowList">
<view class="item item-select flex flex-yc" :key="index" @click="toUploadImg(fileItem, index)">
<view class="label txt">{{ fileItem.label }}</view>
<p class="flex1 u-text-right txt" v-show="fileInfo[fileItem.filedName] !== ''">
{{
imgObj[fileItem.filedName] && imgObj[fileItem.filedName].length + "张"
}}
</p>
<u-icon name="arrow-right" color="#999" size="28"></u-icon>
</view>
<view class="tips" :key="index + 't'">
{{ fileItem.tips }}
</view>
<view class="tips id-identity-box" :key="index + 'identity'" v-if="fileItem.filedName === 'id_card_front'">
<view class="txt">请核实识别结果</view>
<view class="txt">
身份证姓名:{{ fileInfo.id_card_name}}<span class="red" v-show="
!fileInfo.id_card_name &&
fileInfo.id_card_front
">识别失败,请重新上传</span>
</view>
<view class="txt">
身份证号码:{{ fileInfo.id_card_number
}}<span class="red" v-show="
!fileInfo.id_card_name &&
fileInfo.id_card_front
">识别失败,请重新上传</span>
</view>
</view>
</template>
</view>
<view class="seat"></view>
<view class="btn-wrap fixed flex flex-xc">
<button class="btn-submit" :disabled="!submitBtnStatus" @click="$u.debounce(submitFileInfo, 500)">
{{
!submitBtnStatus ? "完成必填项,可提交资料" : "提交"
}}
</button>
</view>
</Settle>
</view>
</template>
<script>
<template>
<view class="page-content">
<Settle :index="2">
<view class="tip-text">
<image class="tip-image" mode="widthFix" src="../../static/settle/anquan@3x.png"></image>
<text>身份证照片、电工证照片、行驶证/驾驶证照片及车辆照片仅用于申请入驻。</text>
</view>
<template v-slot:bottom>
<view class="btn-wrap flex-xc">
<button class="btn-submit" :disabled="!submitBtnStatus" @click="$u.debounce(submitFileInfo, 500)">
{{
!submitBtnStatus ? "完成必填项,可提交资料" : "提交"
}}
</button>
</view>
</template>
<view class="base-list">
<template v-for="(fileItem, index) in formShowList">
<view class="item item-select flex flex-yc" :key="index" @click="toUploadImg(fileItem, index)">
<view class="label txt">{{ fileItem.label }}</view>
<p class="flex1 u-text-right txt" v-show="fileInfo[fileItem.filedName] !== ''">
{{
imgObj[fileItem.filedName] && imgObj[fileItem.filedName].length + "张"
}}
</p>
<u-icon name="arrow-right" color="#999" size="28"></u-icon>
</view>
<view class="tips" :key="index + 't'">
{{ fileItem.tips }}
</view>
<view class="tips id-identity-box" :key="index + 'identity'"
v-if="fileItem.filedName === 'id_card_front'">
<view class="txt">请核实识别结果</view>
<view class="txt">
身份证姓名:{{ fileInfo.id_card_name}}<span class="red" v-show="
!fileInfo.id_card_name &&
fileInfo.id_card_front
">识别失败,请重新上传</span>
</view>
<view class="txt">
身份证号码:{{ fileInfo.id_card_number
}}<span class="red" v-show="
!fileInfo.id_card_name &&
fileInfo.id_card_front
">识别失败,请重新上传</span>
</view>
</view>
</template>
</view>
<!-- <view class="seat"></view>
<view class="btn-wrap fixed flex flex-xc">
<button class="btn-submit" :disabled="!submitBtnStatus" @click="$u.debounce(submitFileInfo, 500)">
{{
!submitBtnStatus ? "完成必填项,可提交资料" : "提交"
}}
</button>
</view> -->
</Settle>
</view>
</template>
<script>
import Settle from '@/components/settle/index.vue'
export default {
components: {
Settle
},
data() {
return {
fileInfo: {
id: "",
id_card_name: "",
id_card_number: "",
id_card_front: "",
id_card_back: "",
electrician_certificate: "",
vehicle_photos: "",
other_certificates: "",
id_card_back_check: false,
},
imgObj: {
id_card_front: [],
id_card_back: [],
electrician_certificate: [],
vehicle_photos: [],
other_certificates: []
},
formShowList: [{
filedName: "id_card_front",
required: true,
maxImgs: 1,
label: "身份证人像面",
tips: "(必选项)拍身份证人像面,证件需清晰可见",
imgs: [],
},
{
filedName: "id_card_back",
required: true,
label: "身份证国徽面",
maxImgs: 1,
tips: "(必选项)拍身份证国徽面,证件需清晰可见",
imgs: [],
},
{
filedName: "electrician_certificate",
label: "电工证照",
required: true,
maxImgs: 1,
tips: "(必选项)拍电工证照,证件需清晰可见",
imgs: [],
},
{
filedName: "vehicle_photos",
label: "车辆照",
maxImgs: 1,
tips: "(可选项)45度拍摄车辆照片,车牌清晰可见",
imgs: [],
},
{
filedName: "other_certificates",
label: "其他工作证件",
imgs: [],
maxImgs: 999,
tips: "(可选项)可拍多张",
},
],
submitSuccess: false,
saving: false,
}
},
onLoad(e) {},
updated() {
this.updateImgs()
},
watch: {
"fileInfo.id_card_front"() {
if (this.fileInfo.id_card_front) {
this.checkIdCard("front");
} else {
this.fileInfo.id_card_name = "";
this.fileInfo.id_card_number ="";
}
},
"fileInfo.id_card_back"() {
if (this.fileInfo.id_card_front) {
this.checkIdCard("back");
} else {
this.fileInfo.id_card_back_check = true;
}
},
},
computed: {
submitBtnStatus() {
// const baseInfo = this.baseInfo
const fileInfo = this.fileInfo
const flag = fileInfo.id_card_front && fileInfo.id_card_back && fileInfo.electrician_certificate
return flag && !this.saving;
},
},
components: {
},
methods: {
updateImgs(){
const uploadType = this.uploadType
const uploadImgs = this.imgObj[uploadType]
if(uploadImgs.length<1){
return
}
if(uploadType==='other_certificates'){
const otherImgs = this.imgObj['other_certificates']
let imgs = []
otherImgs.map(item=>{
const img = item.key || item.src || ''
imgs.push(img)
})
this.fileInfo[uploadType] =imgs.join(',')
return
}
this.fileInfo[uploadType] = uploadImgs[0].key || uploadImgs[0].src || ''
},
toUploadImg(item, index) {
this.uploadType = item.filedName
uni.navigateTo({
url: '/pages/settle/file-upload?uploadType=' + item.filedName
})
// this.fileUploadIndex = index;
},
gopage(url) {
uni.navigateTo({
url,
});
},
async checkIdCard(type) {
uni.showLoading({
title: '加载中'
})
let request = {
front: this.$u.api.checkSettleIDCardFront,
back: this.$u.api.checkSettleIDCardBack,
};
let url = {
front: this.fileInfo.id_card_front,
back: this.fileInfo.id_card_back,
};
const params = {
["id_card_" + type]: url[type],
id: this.fileInfo.id || 0,
}
const res = await request[type](params);
if (res.code !== 200) {
if (type === "front") {
this.fileInfo.id_card_name = "";
this.fileInfo.id_card_number = "";
} else {
this.fileInfo.id_card_back_check = false;
}
return
}
uni.hideLoading()
if (type === "front") {
this.fileInfo.id_card_name =
res.data.id_card_name || "";
this.fileInfo.id_card_number =
res.data.id_card_number || "";
} else {
this.fileInfo.id_card_back_check = true;
}
},
checkFileInfo() {
let formFlag = true;
const fileInfo = this.fileInfo;
let checkFunc = function(item) {
const value = fileInfo[item.filedName];
const tips = "请上传您的" + item.label;
if (!value) {
uni.showToast({
title: tips,
icon: 'none'
})
return false;
}
return true;
};
const flagArr = this.formShowList.some((item) => {
// 返回验证失败的数组
let flag = true;
if (item.required) {
flag = checkFunc(item);
}
return !flag;
});
formFlag = !flagArr || flagArr.length > 1;
if (formFlag) {
if (!fileInfo.id_card_name) {
uni.showToast({
title: '身份证识别不通过,请重新上传',
icon: 'none'
})
formFlag = false;
return formFlag;
}
if (!fileInfo.id_card_back_check) {
uni.showToast({
title: '身份证国徽面识别不通过,请重新上传',
icon: 'none'
})
formFlag = false;
}
}
return formFlag;
},
async submitFileInfo() {
if (!this.checkFileInfo()) {
return;
}
const fileInfo = this.fileInfo;
let submitInfoData = {
...fileInfo,
recommender:getApp().globalData.settleRecommend
}
uni.showLoading({
title: '加载中……'
})
const res = await this.$u.api.submitSettleFileInfo(submitInfoData)
uni.hideLoading()
if (res.code !== 200) {
uni.showToast({
title: res.message,
icon: 'none'
})
return
}
uni.showToast({
title: '资料提交成功',
})
let timer = setTimeout(() => {
clearTimeout(timer)
uni.navigateTo({
url: '/pages/settle/prompt'
})
}, 2000)
this.submitSuccess = true;
// this.$u.api.post("@u/v1/h5/settled/submit-info", submitInfoData)
// .then((res) => {
// uni.hideLoading()
// if (res.status != 200) {
// return;
// }
// if (res.data) {
// uni.showToast({
// title:'工作人员2个工作日内审核回复',
// icon:'none'
// })
// this.submitSuccess = true;
// }
// })
// .catch(() => {
// //Indicator.close();
// });
},
},
}
</script>
<style lang="scss">
.base-list {
.item {
display: flex;
margin-bottom: 58rpx;
padding: 28rpx 30rpx;
width: 100%;
height: 100rpx;
font-size: 32rpx;
background-color: #fff;
.label {
color: #333;
font-size: 32rpx;
}
.txt {
line-height: 44rpx;
color: #333;
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;
}
}
.item-input {
overflow: hidden;
input {
text-align: right;
line-height: 44rpx;
width: 100%;
font-size: 30rpx;
color: #333;
font-weight: 400;
}
.input-readonly {
font-size: 30rpx;
color: #999;
font-weight: 400;
}
input::-webkit-input-placeholder {
font-size: 30rpx;
color: #999;
font-weight: 400;
}
input:-moz-placeholder {
font-size: 30rpx;
color: #999;
font-weight: 400;
}
input:-ms-input-placeholder {
font-size: 30rpx;
color: #999;
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 {
position: fixed;
// margin: px2rem(36);
left: 0;
right: 0;
bottom: 0;
padding: 30rpx 0;
background: #f3f3f3;
.btn-submit {
width: 600rpx;
// left: 5%;
// bottom: px2rem(36);
height: 104rpx;
line-height: 104rpx;
border-radius: 52rpx;
overflow: hidden;
background: #2272ff;
font-size: 32rpx;
color: #fff;
&[disabled] {
border: 2rpx solid #999;
background-color: #f3f3f3;
color: #999;
}
}
}
/* .back_view{
background-color: #FFFFFF;
position: absolute;
top: 0;
left: 0;
width: 100%;
display: flex;
flex-direction: column;
}
*/
},
data() {
return {
fileInfo: {
id: "",
id_card_name: "",
id_card_number: "",
id_card_front: "",
id_card_back: "",
electrician_certificate: "",
vehicle_photos: "",
other_certificates: "",
id_card_back_check: false,
},
imgObj: {
id_card_front: [],
id_card_back: [],
electrician_certificate: [],
vehicle_photos: [],
other_certificates: []
},
formShowList: [{
filedName: "id_card_front",
required: true,
maxImgs: 1,
label: "身份证人像面",
tips: "(必选项)拍身份证人像面,证件需清晰可见",
imgs: [],
},
{
filedName: "id_card_back",
required: true,
label: "身份证国徽面",
maxImgs: 1,
tips: "(必选项)拍身份证国徽面,证件需清晰可见",
imgs: [],
},
{
filedName: "electrician_certificate",
label: "电工证照",
required: true,
maxImgs: 1,
tips: "(必选项)拍电工证照,证件需清晰可见",
imgs: [],
},
{
filedName: "vehicle_photos",
label: "车辆照",
maxImgs: 1,
tips: "(可选项)45度拍摄车辆照片,车牌清晰可见",
imgs: [],
},
{
filedName: "other_certificates",
label: "其他工作证件",
imgs: [],
maxImgs: 999,
tips: "(可选项)可拍多张",
},
],
submitSuccess: false,
saving: false,
}
},
onLoad(e) {},
updated() {
this.updateImgs()
},
watch: {
"fileInfo.id_card_front"() {
if (this.fileInfo.id_card_front) {
this.checkIdCard("front");
} else {
this.fileInfo.id_card_name = "";
this.fileInfo.id_card_number = "";
}
},
"fileInfo.id_card_back"() {
if (this.fileInfo.id_card_front) {
this.checkIdCard("back");
} else {
this.fileInfo.id_card_back_check = true;
}
},
},
computed: {
submitBtnStatus() {
// const baseInfo = this.baseInfo
const fileInfo = this.fileInfo
const flag = fileInfo.id_card_front && fileInfo.id_card_back && fileInfo.electrician_certificate
return flag && !this.saving;
},
},
components: {
},
methods: {
updateImgs() {
const uploadType = this.uploadType
const uploadImgs = this.imgObj[uploadType]
if (uploadImgs.length < 1) {
return
}
if (uploadType === 'other_certificates') {
const otherImgs = this.imgObj['other_certificates']
let imgs = []
otherImgs.map(item => {
const img = item.key || item.src || ''
imgs.push(img)
})
this.fileInfo[uploadType] = imgs.join(',')
return
}
this.fileInfo[uploadType] = uploadImgs[0].key || uploadImgs[0].src || ''
},
toUploadImg(item, index) {
this.uploadType = item.filedName
uni.navigateTo({
url: '/pages/settle/file-upload?uploadType=' + item.filedName
})
// this.fileUploadIndex = index;
},
gopage(url) {
uni.navigateTo({
url,
});
},
async checkIdCard(type) {
uni.showLoading({
title: '加载中'
})
let request = {
front: this.$u.api.checkSettleIDCardFront,
back: this.$u.api.checkSettleIDCardBack,
};
let url = {
front: this.fileInfo.id_card_front,
back: this.fileInfo.id_card_back,
};
const params = {
["id_card_" + type]: url[type],
id: this.fileInfo.id || 0,
}
const res = await request[type](params);
if (res.code !== 200) {
if (type === "front") {
this.fileInfo.id_card_name = "";
this.fileInfo.id_card_number = "";
} else {
this.fileInfo.id_card_back_check = false;
}
return
}
uni.hideLoading()
if (type === "front") {
this.fileInfo.id_card_name =
res.data.id_card_name || "";
this.fileInfo.id_card_number =
res.data.id_card_number || "";
} else {
this.fileInfo.id_card_back_check = true;
}
},
checkFileInfo() {
let formFlag = true;
const fileInfo = this.fileInfo;
let checkFunc = function(item) {
const value = fileInfo[item.filedName];
const tips = "请上传您的" + item.label;
if (!value) {
uni.showToast({
title: tips,
icon: 'none'
})
return false;
}
return true;
};
const flagArr = this.formShowList.some((item) => {
// 返回验证失败的数组
let flag = true;
if (item.required) {
flag = checkFunc(item);
}
return !flag;
});
formFlag = !flagArr || flagArr.length > 1;
if (formFlag) {
if (!fileInfo.id_card_name) {
uni.showToast({
title: '身份证识别不通过,请重新上传',
icon: 'none'
})
formFlag = false;
return formFlag;
}
if (!fileInfo.id_card_back_check) {
uni.showToast({
title: '身份证国徽面识别不通过,请重新上传',
icon: 'none'
})
formFlag = false;
}
}
return formFlag;
},
async submitFileInfo() {
if (!this.checkFileInfo()) {
return;
}
const fileInfo = this.fileInfo;
let submitInfoData = {
...fileInfo,
recommender: getApp().globalData.settleRecommend
}
uni.showLoading({
title: '加载中……'
})
const res = await this.$u.api.submitSettleFileInfo(submitInfoData)
uni.hideLoading()
if (res.code !== 200) {
uni.showToast({
title: res.message,
icon: 'none'
})
return
}
uni.showToast({
title: '资料提交成功',
})
let timer = setTimeout(() => {
clearTimeout(timer)
uni.navigateTo({
url: '/pages/settle/prompt'
})
}, 2000)
this.submitSuccess = true;
// this.$u.api.post("@u/v1/h5/settled/submit-info", submitInfoData)
// .then((res) => {
// uni.hideLoading()
// if (res.status != 200) {
// return;
// }
// if (res.data) {
// uni.showToast({
// title:'工作人员2个工作日内审核回复',
// icon:'none'
// })
// this.submitSuccess = true;
// }
// })
// .catch(() => {
// //Indicator.close();
// });
},
},
}
</script>
<style lang="scss" scoped>
.page-content {
background-color: #F4F5F7;
position: absolute;
top: 0;
left: 0;
width: 100%;
height: 100%;
display: flex;
flex-direction: column;
}
.base-list {
.item {
display: flex;
margin-bottom: 58rpx;
padding: 28rpx 30rpx;
width: 100%;
height: 100rpx;
font-size: 32rpx;
background-color: #fff;
.label {
color: #333;
font-size: 32rpx;
}
.txt {
line-height: 44rpx;
color: #333;
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;
}
}
.item-input {
overflow: hidden;
input {
text-align: right;
line-height: 44rpx;
width: 100%;
font-size: 30rpx;
color: #333;
font-weight: 400;
}
.input-readonly {
font-size: 30rpx;
color: #999;
font-weight: 400;
}
input::-webkit-input-placeholder {
font-size: 30rpx;
color: #999;
font-weight: 400;
}
input:-moz-placeholder {
font-size: 30rpx;
color: #999;
font-weight: 400;
}
input:-ms-input-placeholder {
font-size: 30rpx;
color: #999;
font-weight: 400;
}
}
}
.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;
}
.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;
}
}
}
/* .back_view{
background-color: #FFFFFF;
position: absolute;
top: 0;
left: 0;
width: 100%;
display: flex;
flex-direction: column;
}
*/
</style>
......@@ -2,60 +2,65 @@
<view class="back_view">
<Settle :index="1">
<view class="content-view">
<view class="item">
<view class="item-label">
<text>招募要求</text>
<view style="padding: 30rpx;">
<view class="item">
<view class="item-label">
<text>招募要求</text>
</view>
<view class="item-content">
<text>
1.必须具备相关的从业证书——电工证;
2.有汽车:皮卡、小面包、小轿车等;
3.需具备一定的作业工具:如液压压线钳、冲击钻、电锤、登高安全带、电锤、绝缘电阻仪(摇表)、交流充电模拟器等;
4.有充电桩安装经验优先;
</text>
</view>
</view>
<view class="item-content">
<text>
1.必须具备相关的从业证书——电工证;
2.有汽车:皮卡、小面包、小轿车等;
3.需具备一定的作业工具:如液压压线钳、冲击钻、电锤、登高安全带、电锤、绝缘电阻仪(摇表)、交流充电模拟器等;
4.有充电桩安装经验优先;
</text>
<view class="line-view"></view>
<view class="item">
<view class="item-label">
<text>结算价格</text>
</view>
<view class="item-content">
<text>
1.不同车企品牌结算价格不一,675元-1890元不等;
2.结算价格为包工包料价,安装材料根据车企品牌规格自行采购(电缆、空开、漏保);
3.结算账期:周结50%,剩余50%次月20号结算;
</text>
</view>
</view>
</view>
<view class="item">
<view class="item-label">
<text>结算价格</text>
<view class="line-view"></view>
<view class="item">
<view class="item-label">
<text>入驻资料</text>
</view>
<view class="item-content">
<text>
1.身份证正反面照片
2.高/低压电工证正反面照片
3.车辆照片
</text>
</view>
</view>
<view class="item-content">
<text>
1.不同车企品牌结算价格不一,675元-1890元不等;
2.结算价格为包工包料价,安装材料根据车企品牌规格自行采购(电缆、空开、漏保);
3.结算账期:周结50%,剩余50%次月20号结算;
</text>
<view class="line-view"></view>
<view class="item">
<view class="item-label">
<text>注意事项:</text>
</view>
<view class="item-content">
<text>
1.身份证,银行卡,签约人共有同一人,否则无法入驻。
2.充电桩材料按要求自行准备。
</text>
</view>
</view>
</view>
<view class="item">
<view class="item-label">
<text>入驻资料</text>
</view>
<view class="item-content">
<text>
1.身份证正反面照片
2.高/低压电工证正反面照片
3.车辆照片
</text>
</view>
</view>
<view class="item">
<view class="item-label">
<text>注意事项:</text>
</view>
<view class="item-content">
<text>
1.身份证,银行卡,签约人共有同一人,否则无法入驻。
2.充电桩材料按要求自行准备。
</text>
</view>
</view>
</view>
<template v-slot:bottom>
<button :class="['bottom_btn', {'active': isStop}]" @click="$u.debounce(applyClick, 500)">
<text class="bottom_title" v-if="!isStop">浏览 {{count}} 秒后可申请入驻</text>
<text class="bottom_title" v-if="isStop">申请入驻</text>
</button>
</view>
<template v-slot:bottom>
<button :class="['bottom_btn', {'active': isStop}]" @click="$u.debounce(applyClick, 500)">
<text class="bottom_title" v-if="!isStop">浏览 {{count}} 秒后可申请入驻</text>
<text class="bottom_title" v-if="isStop">申请入驻</text>
</button>
</template>
</Settle>
</view>
......@@ -179,33 +184,43 @@
<style lang="scss" scoped>
.back_view {
background-color: #F4F5F7;
background-color: #F4F5F7;
position: absolute;
top: 0;
left: 0;
width: 100%;
width: 100%;
height: 100%;
display: flex;
flex-direction: column;
}
.content-view {
background-color: #FFFFFF;
margin-bottom: 188rpx;
border-radius: 12rpx;
}
.line-view {
background-color: #F4F5F7;
height: 2rpx;
width: 100%;
margin-bottom: 30rpx;
margin-top: 30rpx;
}
.item-label {
color: #333333;
font-weight: bold;
font-size: 32rpx;
padding-top: 36rpx;
margin-left: 30rpx;
margin-top: 8rpx;
}
.item-content {
color: #333333;
font-size: 26rpx;
margin-top: 30rpx;
margin-left: 30rpx;
line-height: 50rpx;
margin-top: 30rpx;
}
.bottom_btn {
......@@ -218,10 +233,12 @@
align-items: center;
justify-content: center;
background-color: #D1D4D4;
&.active {
background-color: #2272FF;
}
.bottom_title {
color: #fff;
}
......
<template>
<view class="container u-row-between" v-if="info">
<view class="u-flex u-row-center">
<image class="icon" src="@/static/settle/icon-prompt.png"></image>
</view>
<view class="txt-box">
<text :class="['title',index ? 'active' : '']" v-for="(txt,index) in info.txtArr">{{txt}}</text>
</view>
<view class="tips-box" v-if="info.tipsArr">
<text :class="['tips',info.tipsArr.length>1 && index===0 ? 'red' : '']" v-for="(txt,index) in info.tipsArr">{{txt}}</text>
</view>
<button class="btn-submit" @click="$u.debounce(goPage, 500)">{{info.btnTxt}}</button>
</view>
</template>
<script>
export default {
data() {
return {
settledInfo:null,
promptList:[{
status:1,
statusName:'待审核',
txtArr:['已提交,等待审核','正在审核中'],
btnTxt:'去接单广场逛逛',
url:'/pages/take/index'
},{
status:2,
statusName:'已通过',
txtArr:['恭喜,审核通过','“充电桩安装入驻审核”'],
btnTxt:'去考试',
url:'/pages/exam/start'
},{
status:3,
statusName:'备选',
txtArr:['您已成为',"“充电桩安装备选服务商”"],
tipsArr:['后续如有业务,请留意通知!'],
btnTxt:'去接单广场逛逛',
url:'/pages/take/index'
},{
status:4,
statusName:'已驳回',
txtArr:['您的入驻资料已被驳回!','可重新提交资料!'],
tipsArr:['原因:','图片不够清楚'],
btnTxt:'重新提交',
url:'/pages/settle/file'
},{
status:8,
statusName:'step4',
txtArr:['您已通过','“充电桩安装入驻考试”'],
tipsArr:['可以正式签约了'],
btnTxt:'去签约',
url:'/pages/settle/sign-contract'
},{
status:[5,6],
statusName:'未支付保证金',
txtArr:['您已成为',"充电桩安装的签约服务商"],
tipsArr:['请缴纳1000元质保金'],
btnTxt:'去缴纳保证金',
url:'/pages/settle/pay-ensure'
},{
status:7,
statusName:'已支付保证金',
txtArr:['您已成为',"充电桩安装的正式服务商"],
btnTxt:'去接单广场逛逛',
url:'/pages/take/index'
}],
// 入驻状态:0=>'待提交',1=>'待审核',2=>'已通过',3=>'备选',4=>'已驳回',5=>'已签约',6=>'未支付保证金',7=>'已支付保证金',8=>'已通过考试',9=>'待提交'
status:'',
info:null,
}
},
onLoad(e) {
// if(!this.settledInfo){
// this.getBaseInfo()
// }
},
onShow(){
if(!this.settledInfo){
this.getBaseInfo()
}
},
computed: {
},
components: {
},
methods: {
async getBaseInfo(){
const app = getApp()
const callBack = (vm,result)=>{
vm.settledInfo = result
vm.status = result.record.status
}
let settledInfo = await app.getBaseInfo(this,callBack)
this.settledInfo = settledInfo
this.status = settledInfo.record.status
uni.hideLoading()
this.initInfo(settledInfo.record)
},
initInfo(record){
if(!record){
this.info = this.promptList[0]
return
}
const status = record.status
// const status = 7
const infoArr = this.promptList.filter(item=>{
const itemStatus = item.status
// console.log(itemStatus,'itemStatus')
let idx = -2
if(Array.isArray(itemStatus)){
idx = itemStatus.indexOf(status)
}
return itemStatus===status || idx>=0
})
const info = infoArr.length>0 && infoArr[0]
if(!info){
this.info = this.promptList[0]
return
}
if(status===6){
info.tipsArr[0] = '请缴纳'+ this.settledInfo.record.deposit +'元质保金'
}else if(status===4){
info.tipsArr[1] = this.settledInfo.record.reason || ''
}
this.info = info
},
goPage() {
const url = this.info.url
uni.navigateTo({
url,
});
},
},
}
</script>
<style lang="scss">
.container{
display: flex;
width:750rpx;
// height:500rpx;
display: flex;
<template>
<view class="container u-row-between" v-if="info">
<Settle :index="2">
<view class="content-view">
<view class="u-flex u-row-center">
<image :class="['icon', {active: status != 1}]"
:src="status == 1 ? require('@/static/settle/chenggong@3x.png') : require('@/static/settle/icon-prompt@3x.png')">
</image>
</view>
<view class="txt-box">
<text :class="['title',index ? 'active' : '']" v-for="(txt,index) in info.txtArr">{{txt}}</text>
</view>
<view class="tips-box" v-if="info.tipsArr">
<text :class="['tips',info.tipsArr.length>1 && index===0 ? 'red' : '']"
v-for="(txt,index) in info.tipsArr">{{txt}}</text>
</view>
</view>
<template v-slot:bottom>
<button class="btn-submit" @click="$u.debounce(goPage, 500)">{{info.btnTxt}}</button>
</template>
</Settle>
</view>
</template>
<script>
import Settle from '@/components/settle/index.vue'
export default {
components: {
Settle
},
data() {
return {
settledInfo: null,
promptList: [{
status: 1,
statusName: '待审核',
txtArr: ['已提交,等待审核', '正在审核中'],
btnTxt: '去接单广场逛逛',
url: '/pages/take/index'
}, {
status: 2,
statusName: '已通过',
txtArr: ['恭喜,审核通过', '“充电桩安装入驻审核”'],
btnTxt: '去考试',
url: '/pages/exam/start'
}, {
status: 3,
statusName: '备选',
txtArr: ['您已成为', "“充电桩安装备选服务商”"],
tipsArr: ['后续如有业务,请留意通知!'],
btnTxt: '去接单广场逛逛',
url: '/pages/take/index'
}, {
status: 4,
statusName: '已驳回',
txtArr: ['您的入驻资料已被驳回!', '可重新提交资料!'],
tipsArr: ['原因:', '图片不够清楚'],
btnTxt: '重新提交',
url: '/pages/settle/file'
}, {
status: 8,
statusName: 'step4',
txtArr: ['您已通过', '“充电桩安装入驻考试”'],
tipsArr: ['可以正式签约了'],
btnTxt: '去签约',
url: '/pages/settle/sign-contract'
}, {
status: [5, 6],
statusName: '未支付保证金',
txtArr: ['您已成为', "充电桩安装的签约服务商"],
tipsArr: ['请缴纳1000元质保金'],
btnTxt: '去缴纳保证金',
url: '/pages/settle/pay-ensure'
}, {
status: 7,
statusName: '已支付保证金',
txtArr: ['您已成为', "充电桩安装的正式服务商"],
btnTxt: '去接单广场逛逛',
url: '/pages/take/index'
}],
// 入驻状态:0=>'待提交',1=>'待审核',2=>'已通过',3=>'备选',4=>'已驳回',5=>'已签约',6=>'未支付保证金',7=>'已支付保证金',8=>'已通过考试',9=>'待提交'
status: '',
info: null,
}
},
computed: {
imageUrl() {
return this.status == 1 ? require('@/static/settle/chenggong@3x.png') : require(
'@/static/settle/icon-prompt@3x.png')
}
},
onLoad(e) {
// if(!this.settledInfo){
// this.getBaseInfo()
// }
},
onShow() {
if (!this.settledInfo) {
this.getBaseInfo()
}
},
computed: {},
components: {
},
methods: {
async getBaseInfo() {
const app = getApp()
const callBack = (vm, result) => {
vm.settledInfo = result
vm.status = result.record.status
}
let settledInfo = await app.getBaseInfo(this, callBack)
this.settledInfo = settledInfo
this.status = settledInfo.record.status
uni.hideLoading()
this.initInfo(settledInfo.record)
},
initInfo(record) {
if (!record) {
this.info = this.promptList[0]
return
}
const status = record.status
// const status = 7
const infoArr = this.promptList.filter(item => {
const itemStatus = item.status
// console.log(itemStatus,'itemStatus')
let idx = -2
if (Array.isArray(itemStatus)) {
idx = itemStatus.indexOf(status)
}
return itemStatus === status || idx >= 0
})
const info = infoArr.length > 0 && infoArr[0]
if (!info) {
this.info = this.promptList[0]
return
}
if (status === 6) {
info.tipsArr[0] = '请缴纳' + this.settledInfo.record.deposit + '元质保金'
} else if (status === 4) {
info.tipsArr[1] = this.settledInfo.record.reason || ''
}
this.info = info
},
goPage() {
const url = this.info.url
uni.navigateTo({
url,
});
},
},
}
</script>
<style lang="scss" scoped>
.container {
display: flex;
width: 750rpx;
// height:500rpx;
display: flex;
flex-direction: column;
.icon{
margin-top:180rpx;
width:316rpx;
height:312rpx
}
.txt-box{
margin-top:112rpx;
}
.title{
display: block;
font-weight: bold;
margin-top: 20rpx;
// padding: 0 30rpx;
text-align: center;
font-weight: bold;
line-height: 66rpx;
font-size: 48rpx;
color: #333;
&.active{
color:#2272FF
}
}
.tips-box{
margin-top:32rpx;
text-align: center;
}
.tips{
text-align: center;
line-height: 44rpx;
font-size: 32rpx;
color: #666;
&.red{
color:red;
}
}
.btn-submit {
margin-top:112rpx;
width: 600rpx;
height: 104rpx;
line-height: 104rpx;
border-radius: 52rpx;
background: #2272ff;
font-size: 32rpx;
color: #fff;
&:disabled {
border: 2rpx solid #999;
background-color: #f3f3f3;
color: #999;
}
}
}
background-color: #F4F5F7;
height: 100%;
position: absolute;
.icon {
margin-top: 68rpx;
width: 334rpx;
height: 320rpx;
&.active {
width: 224rpx;
height: 224rpx;
}
}
.content-view {
background-color: #FFFFFF;
margin-bottom: 188rpx;
border-radius: 12rpx;
padding: 30rpx;
}
.txt-box {
padding-bottom: 50rpx;
}
.title {
display: block;
font-weight: bold;
// padding: 0 30rpx;
text-align: center;
font-weight: bold;
font-size: 44rpx;
color: #2272FF;
&.active {
color: #666666;
font-size: 24rpx;
font-weight: 300rpx;
margin-top: 26rpx;
}
}
.tips-box {
margin-top: 32rpx;
text-align: center;
}
.tips {
text-align: center;
line-height: 44rpx;
font-size: 32rpx;
color: #666;
&.red {
color: red;
}
}
.btn-submit {
margin-top: 112rpx;
width: 600rpx;
height: 104rpx;
line-height: 104rpx;
border-radius: 52rpx;
background: #2272ff;
font-size: 32rpx;
color: #fff;
&:disabled {
border: 2rpx solid #999;
background-color: #f3f3f3;
color: #999;
}
}
}
</style>
......@@ -2,7 +2,7 @@
<view class="content">
<view class="area-nav flex" v-if="selectType == 'area'">
<view class="nav-left">
<view :class="['nav-item',{'active':currentProvinceIndex===index}]" v-for="(areaItem, index) in areaList" :key="index"
<view :class="['nav-item',{'active':currentIndex===index}]" v-for="(areaItem, index) in areaList" :key="index"
@click="getareaList(areaItem.id,1,index)">
{{ areaItem.name }}
</view>
......@@ -28,7 +28,7 @@
<!-- <i class="iconfont icon-tijiao"></i> -->
</view>
</view>
<view class="btn-wrap fixed flex flex-xc">
<view class="btn-wrap fixed flex flex-xc" v-if="selectType == 'area'">
<button class="btn-submit" @click="goBack('confirm')">
确定
</button>
......@@ -202,13 +202,13 @@
areaIds: prevVue.baseInfo.service_area,
areaTxts: prevVue.areaTxts
}
title = '选择可服务的城市'
title = '接单城市'
} else if (selectType === 'working_age') {
this.selected = {
working_age: prevVue.baseInfo.working_age,
workingAgeTxt: prevVue.workingAgeTxt
}
title = '选择工作工龄'
title = '电工工龄'
}
uni.setNavigationBarTitle({
title
......@@ -385,6 +385,7 @@
selectAge(item) {
this.selected.working_age = item.value
this.selected.workingAgeTxt = item.name
this.goBack('confirm')
},
selectAllarea(idx){
const allChildren = this.areaList[this.currentIndex]
......@@ -409,7 +410,10 @@
}
</script>
<style lang="scss">
<style lang="scss" scoped>
.content {
background-color: #F3F3F3;
}
.nav-item,
.age-item {
position: relative;
......@@ -474,9 +478,9 @@
.age-box {
padding-top: 40rpx;
height: calc(100vh - 180rpx);
// height: calc(100vh - 180rpx);
overflow: auto;
margin-bottom: 44rpx;
.age-item {
position: relative;
}
......
src/static/settle/bachground1@3x.png

72.7 KB | W: | H:

src/static/settle/bachground1@3x.png

73.5 KB | W: | H:

src/static/settle/bachground1@3x.png
src/static/settle/bachground1@3x.png
src/static/settle/bachground1@3x.png
src/static/settle/bachground1@3x.png
  • 2-up
  • Swipe
  • Onion skin
src/static/settle/bachground2@3x.png

85.3 KB | W: | H:

src/static/settle/bachground2@3x.png

117 KB | W: | H:

src/static/settle/bachground2@3x.png
src/static/settle/bachground2@3x.png
src/static/settle/bachground2@3x.png
src/static/settle/bachground2@3x.png
  • 2-up
  • Swipe
  • Onion skin
src/static/settle/bachground3@3x.png

68.8 KB | W: | H:

src/static/settle/bachground3@3x.png

93.1 KB | W: | H:

src/static/settle/bachground3@3x.png
src/static/settle/bachground3@3x.png
src/static/settle/bachground3@3x.png
src/static/settle/bachground3@3x.png
  • 2-up
  • Swipe
  • Onion skin
src/static/settle/bachground4@3x.png

77.3 KB | W: | H:

src/static/settle/bachground4@3x.png

106 KB | W: | H:

src/static/settle/bachground4@3x.png
src/static/settle/bachground4@3x.png
src/static/settle/bachground4@3x.png
src/static/settle/bachground4@3x.png
  • 2-up
  • Swipe
  • Onion skin
src/static/settle/bachground5@3x.png

75.8 KB | W: | H:

src/static/settle/bachground5@3x.png

105 KB | W: | H:

src/static/settle/bachground5@3x.png
src/static/settle/bachground5@3x.png
src/static/settle/bachground5@3x.png
src/static/settle/bachground5@3x.png
  • 2-up
  • Swipe
  • Onion skin
......@@ -17,8 +17,8 @@ module.exports = {
name: name,
resolve: {
alias: {
"@src": resolve("src"),
"@i": resolve("src/api"),
"@": resolve("src"),
"@api": resolve("src/api"),
"@c": resolve("src/components"),
"@a": resolve("src/assets"),
"@s": resolve("src/styles"),
......
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