├── README.md ├── app.js ├── app.json ├── app.wxss ├── commonjs ├── hello.js └── majordata.js ├── components ├── bad │ ├── bad.js │ ├── bad.json │ ├── bad.wxml │ └── bad.wxss ├── biji │ ├── biji.js │ ├── biji.json │ ├── biji.wxml │ └── biji.wxss ├── dialog │ ├── dialog.js │ ├── dialog.json │ ├── dialog.wxml │ └── dialog.wxss ├── good │ ├── good.js │ ├── good.json │ ├── good.wxml │ └── good.wxss ├── jiaqun │ ├── jiaqun.js │ ├── jiaqun.json │ ├── jiaqun.wxml │ └── jiaqun.wxss ├── regular │ ├── regular.js │ ├── regular.json │ ├── regular.wxml │ └── regular.wxss └── wxpop │ ├── wxpop.js │ ├── wxpop.json │ ├── wxpop.wxml │ └── wxpop.wxss ├── images ├── arrowright.png ├── curcity.png ├── newimage │ ├── Loading4.gif │ ├── bad.png │ ├── bg_quan.png │ ├── boy.png │ ├── clock_tb.png │ ├── close.png │ ├── erweima.jpg │ ├── girl.png │ ├── good.png │ ├── gpkt.png │ ├── ic_medal_btn.png │ ├── jiantou.png │ ├── king.png │ ├── lanpangzi0.png │ ├── lanpangzi1.png │ ├── lanpangzi2.png │ ├── lanpangzi3.png │ ├── left_jt.png │ ├── liujiang.png │ ├── logoactivity.png │ ├── lpz.png │ ├── lxqq.png │ ├── mnks.png │ ├── mrjs.png │ ├── mrjs │ │ ├── join_state_join.png │ │ ├── join_state_no.png │ │ └── join_state_over.png │ ├── phone.png │ ├── point.png │ ├── shuxian.png │ ├── tb_bom_jt.png │ ├── tb_btl.png │ ├── tb_btl_open.png │ ├── tb_clock.png │ ├── tb_close.png │ ├── tb_collect.png │ ├── tb_edit.png │ ├── tb_editl.png │ ├── tb_editl2.png │ ├── tb_erji.png │ ├── tb_finish.png │ ├── tb_finishl.png │ ├── tb_hand.png │ ├── tb_hand1.png │ ├── tb_hot.png │ ├── tb_note.png │ ├── tb_right_jt.png │ ├── tb_tiku.png │ ├── tb_vip.png │ ├── tb_wrong.png │ ├── tb_wx.png │ ├── tb_xtk.png │ ├── tb_zhibo.png │ ├── text_tb.png │ ├── top_adv.jpg │ ├── tu_kecheng.jpg │ ├── tub1.png │ ├── tub2.png │ └── tub3.png ├── tabbar │ ├── beiti.png │ ├── beiti2.png │ ├── datika.png │ ├── datika2.png │ ├── shoucang.png │ ├── shoucang2.png │ ├── star.png │ ├── star2.png │ ├── star3.png │ ├── tb_jiaojuan.png │ ├── tb_jiaojuan_ok.png │ ├── youjiantou.png │ ├── youjiantou2.png │ ├── zuojiantou.png │ ├── zuojiantou2.png │ ├── 工具-交卷.png │ ├── 工具-交卷2.png │ ├── 工具-查看错题.png │ ├── 工具-查看错题2.png │ ├── 我的.png │ ├── 我的2.png │ ├── 直播.png │ ├── 直播2.png │ ├── 背景蓝色.png │ ├── 视频.png │ ├── 视频2.png │ ├── 题库.png │ └── 题库2.png └── update.png ├── img ├── ad01.jpg ├── ad02.jpg ├── ad03.jpg ├── ad04.jpg ├── background-down.png ├── background-up.png ├── book.jpg ├── collect.png ├── collect2.png ├── edit.png ├── edit2.png ├── exam.png ├── exam2.png ├── faceToFace.png ├── factToFace_full.png ├── home.png ├── home2.png ├── jiant_xia.png ├── jiantou.png ├── kc.jpg ├── location.png ├── logo.png ├── mapTP.png ├── record.png ├── record2.png ├── tb1.png ├── tb2.png ├── tb3.png ├── tb4.png ├── tb5.png ├── tb6.png ├── tb7.png ├── tb8.png ├── tb_before.png ├── tb_before_no.png ├── tb_collect.png ├── tb_daan.png ├── tb_datika.png ├── tb_datika_ok.png ├── tb_jiaojuan.png ├── tb_jiaojuan_ok.png ├── tb_next.png ├── tb_next_no.png ├── touxiang.png ├── wode.png └── wode2.png ├── iviewapp ├── action-sheet │ ├── index.js │ ├── index.json │ ├── index.wxml │ └── index.wxss ├── alert │ ├── index.js │ ├── index.json │ ├── index.wxml │ └── index.wxss ├── avatar │ ├── index.js │ ├── index.json │ ├── index.wxml │ └── index.wxss ├── badge │ ├── index.js │ ├── index.json │ ├── index.wxml │ └── index.wxss ├── base │ └── index.js ├── button │ ├── index.js │ ├── index.json │ ├── index.wxml │ └── index.wxss ├── card │ ├── index.js │ ├── index.json │ ├── index.wxml │ └── index.wxss ├── cell-group │ ├── index.js │ ├── index.json │ └── index.wxml ├── cell │ ├── index.js │ ├── index.json │ ├── index.wxml │ └── index.wxss ├── checkbox-group │ ├── index.js │ ├── index.json │ ├── index.wxml │ └── index.wxss ├── checkbox │ ├── index.js │ ├── index.json │ ├── index.wxml │ └── index.wxss ├── col │ ├── index.js │ ├── index.json │ ├── index.wxml │ └── index.wxss ├── drawer │ ├── index.js │ ├── index.json │ ├── index.wxml │ └── index.wxss ├── grid-icon │ ├── index.js │ ├── index.json │ ├── index.wxml │ └── index.wxss ├── grid-item │ ├── index.js │ ├── index.json │ ├── index.wxml │ └── index.wxss ├── grid-label │ ├── index.js │ ├── index.json │ ├── index.wxml │ └── index.wxss ├── grid │ ├── index.js │ ├── index.json │ ├── index.wxml │ └── index.wxss ├── icon │ ├── index.js │ ├── index.json │ ├── index.wxml │ └── index.wxss ├── input-number │ ├── index.js │ ├── index.json │ ├── index.wxml │ └── index.wxss ├── input │ ├── index.js │ ├── index.json │ ├── index.wxml │ └── index.wxss ├── message │ ├── index.js │ ├── index.json │ ├── index.wxml │ └── index.wxss ├── modal │ ├── index.js │ ├── index.json │ ├── index.wxml │ └── index.wxss ├── notice-bar │ ├── index.js │ ├── index.json │ ├── index.wxml │ └── index.wxss ├── page │ ├── index.js │ ├── index.json │ ├── index.wxml │ └── index.wxss ├── panel │ ├── index.js │ ├── index.json │ ├── index.wxml │ └── index.wxss ├── progress │ ├── index.js │ ├── index.json │ ├── index.wxml │ └── index.wxss ├── radio-group │ ├── index.js │ ├── index.json │ ├── index.wxml │ └── index.wxss ├── radio │ ├── index.js │ ├── index.json │ ├── index.wxml │ └── index.wxss ├── rate │ ├── index.js │ ├── index.json │ ├── index.wxml │ └── index.wxss ├── row │ ├── index.js │ ├── index.json │ ├── index.wxml │ └── index.wxss ├── slide │ ├── index.js │ ├── index.json │ ├── index.wxml │ └── index.wxss ├── spin │ ├── index.js │ ├── index.json │ ├── index.wxml │ └── index.wxss ├── step │ ├── index.js │ ├── index.json │ ├── index.wxml │ └── index.wxss ├── steps │ ├── index.js │ ├── index.json │ ├── index.wxml │ └── index.wxss ├── switch │ ├── index.js │ ├── index.json │ ├── index.wxml │ └── index.wxss ├── tab-bar-item │ ├── index.js │ ├── index.json │ ├── index.wxml │ └── index.wxss ├── tab-bar │ ├── index.js │ ├── index.json │ ├── index.wxml │ └── index.wxss ├── tab │ ├── index.js │ ├── index.json │ ├── index.wxml │ └── index.wxss ├── tabs │ ├── index.js │ ├── index.json │ ├── index.wxml │ └── index.wxss ├── tag │ ├── index.js │ ├── index.json │ ├── index.wxml │ └── index.wxss └── toast │ ├── index.js │ ├── index.json │ ├── index.wxml │ └── index.wxss ├── libs └── bmap.js ├── pages ├── login │ ├── login-major │ │ ├── login-major.js │ │ ├── login-major.json │ │ ├── login-major.wxml │ │ └── login-major.wxss │ ├── login-tel │ │ ├── login-tel.js │ │ ├── login-tel.json │ │ ├── login-tel.wxml │ │ └── login-tel.wxss │ ├── login-yzm │ │ ├── login-yzm.js │ │ ├── login-yzm.json │ │ ├── login-yzm.wxml │ │ └── login-yzm.wxss │ ├── login.js │ ├── login.json │ ├── login.wxml │ └── login.wxss ├── sabout │ ├── sabout.js │ ├── sabout.json │ ├── sabout.wxml │ ├── sabout.wxss │ └── shoucang │ │ ├── shoucang.js │ │ ├── shoucang.json │ │ ├── shoucang.wxml │ │ └── shoucang.wxss ├── saddteacher │ ├── saddteacher.js │ ├── saddteacher.json │ ├── saddteacher.wxml │ └── saddteacher.wxss ├── stiku │ ├── comments │ │ ├── comments.js │ │ ├── comments.json │ │ ├── comments.wxml │ │ └── comments.wxss │ ├── exercise │ │ ├── exercise.js │ │ ├── exercise.json │ │ ├── exercise.wxml │ │ └── exercise.wxss │ ├── mrjs │ │ ├── mrjs.js │ │ ├── mrjs.json │ │ ├── mrjs.wxml │ │ └── mrjs.wxss │ ├── mrylquestions │ │ ├── mrylquestions.js │ │ ├── mrylquestions.json │ │ ├── mrylquestions.wxml │ │ └── mrylquestions.wxss │ ├── stiku.js │ ├── stiku.json │ ├── stiku.wxml │ ├── stiku.wxss │ └── zjlx │ │ ├── zjlx.js │ │ ├── zjlx.json │ │ ├── zjlx.wxml │ │ └── zjlx.wxss ├── svideo │ ├── svideo.js │ ├── svideo.json │ ├── svideo.wxml │ └── svideo.wxss ├── szhibo │ ├── szhibo.js │ ├── szhibo.json │ ├── szhibo.wxml │ ├── szhibo.wxss │ └── zhiboke │ │ ├── zhiboke.js │ │ ├── zhiboke.json │ │ ├── zhiboke.wxml │ │ └── zhiboke.wxss ├── test │ ├── sontest1 │ │ ├── sontest1.js │ │ ├── sontest1.json │ │ ├── sontest1.wxml │ │ └── sontest1.wxss │ ├── sontest2 │ │ ├── sontest2.js │ │ ├── sontest2.json │ │ ├── sontest2.wxml │ │ └── sontest2.wxss │ ├── test.js │ ├── test.json │ ├── test.wxml │ └── test.wxss ├── test2 │ ├── test2.js │ ├── test2.json │ ├── test2.wxml │ └── test2.wxss └── test3 │ ├── test3.js │ ├── test3.json │ ├── test3.wxml │ └── test3.wxss ├── project.config.json ├── sitemap.json ├── template ├── answer-template │ ├── answer-template.wxml │ └── answer-template.wxss ├── datika-template │ ├── datika-template.wxml │ ├── datika-template.wxss │ └── datika-template2.wxml ├── examlist-template │ ├── examlist-template.wxml │ └── examlist-template.wxss ├── gather-item-template │ ├── gather-item-template.wxml │ └── gather-item-template.wxss ├── gather-item-template1 │ ├── gather-item-template.wxml │ └── gather-item-template.wxss ├── listbutton-template │ ├── listbutton-template.wxml │ └── listbutton-template.wxss ├── question-template │ ├── question-template.wxml │ └── question-template.wxss └── type-template │ ├── type-template.wxml │ └── type-template.wxss └── utils ├── addmul.wxs ├── requestUtil.js └── util.js /README.md: -------------------------------------------------------------------------------- 1 | # 微信小程序-星恒题库 2 | 3 | ### 概述 4 | 5 | > 这是一个借鉴星题库app的小程序。 6 | 7 | ### 功能 8 | 9 | * 章节练习 10 | * 每日竞赛 11 | * 收藏,错题,笔记 12 | 13 | 14 | ![xinghengedu](http://www.xinghengedu.com/r/cms/www/progressive/index/img/logo.png) -------------------------------------------------------------------------------- /app.json: -------------------------------------------------------------------------------- 1 | { 2 | "pages": [ 3 | "pages/login/login-tel/login-tel", 4 | "pages/login/login-yzm/login-yzm", 5 | "pages/login/login-major/login-major", 6 | "pages/stiku/stiku", 7 | "pages/svideo/svideo", 8 | "pages/szhibo/szhibo", 9 | "pages/szhibo/zhiboke/zhiboke", 10 | "pages/sabout/sabout", 11 | "pages/test/test", 12 | "pages/stiku/zjlx/zjlx", 13 | "pages/login/login", 14 | "pages/test2/test2", 15 | "pages/test3/test3", 16 | "pages/stiku/exercise/exercise", 17 | "pages/stiku/comments/comments", 18 | "pages/saddteacher/saddteacher", 19 | "pages/test/sontest1/sontest1", 20 | "pages/test/sontest2/sontest2", 21 | "pages/stiku/mrjs/mrjs", 22 | "pages/stiku/mrylquestions/mrylquestions", 23 | "pages/sabout/shoucang/shoucang" 24 | ], 25 | "window": { 26 | "navigationBarBackgroundColor": "#0b97f9", 27 | "navigationBarTitleText": "home", 28 | "navigationBarTextStyle": "white", 29 | "backgroundColor": "#666", 30 | "backgroundTextStyle": "light", 31 | "enablePullDownRefresh": true 32 | }, 33 | "tabBar": { 34 | "color": "#666", 35 | "selectedColor": "#56abe4", 36 | "backgroundColor": "#ddd", 37 | "borderStyle": "black", 38 | "list": [ 39 | { 40 | "pagePath": "pages/stiku/stiku", 41 | "iconPath": "images/tabbar/题库.png", 42 | "selectedIconPath": "images/tabbar/题库2.png", 43 | "text": "题库" 44 | }, 45 | { 46 | "pagePath": "pages/sabout/sabout", 47 | "iconPath": "images/tabbar/我的.png", 48 | "selectedIconPath": "images/tabbar/我的2.png", 49 | "text": "我的" 50 | } 51 | ], 52 | "position": "bottom" 53 | }, 54 | "sitemapLocation": "sitemap.json" 55 | } -------------------------------------------------------------------------------- /app.wxss: -------------------------------------------------------------------------------- 1 | /**app.wxss**/ 2 | .container{display:flex;flex-direction: column;align-items:center;} 3 | view{box-sizing:border-box;} 4 | text{font-family:"Microsoft Yahei";color:#333;} 5 | image{width:100%;height:100%;} 6 | -------------------------------------------------------------------------------- /commonjs/majordata.js: -------------------------------------------------------------------------------- 1 | var list = { 2 | "List": [ 3 | { 4 | 'A': [ 5 | { name: '医师系列' }, 6 | { 'desc': '临床执业医师', 'value': 'ZHIYEYISHI' }, 7 | { 'desc': '临床助理医师', 'value': 'ZHULIYISHI' }, 8 | { 'desc': '中医执业医师', 'value': 'ZHONGYIZHIYE' }, 9 | { 'desc': '中医助理医师', 'value': 'ZHONGYIZHULI' }, 10 | { 'desc': '中西医执业医师', 'value': 'ZHONGXIYIZHIYE' }, 11 | { 'desc': '中西医助理医师', 'value': 'ZHONGXIYIZHULI' }, 12 | { 'desc': '口腔执业医师', 'value': 'KOUQIANGZHIYE' }, 13 | { 'desc': '口腔助理医师', 'value': 'KOUQIANGZHULI' }, 14 | { 'desc': '乡村全科助理', 'value': 'XIANGCUNQUANKEYISHI' }, 15 | { 'desc': '中医师承确有专长', 'value': 'SCZHONGYIZHULI' } 16 | ], 17 | 'B': [ 18 | { name: '药师系列' }, 19 | { 'desc': '执业西药师', 'value': 'XIYAO' }, 20 | { 'desc': '执业中药师', 'value': 'ZHONGYAOSHI' } 21 | ], 22 | 'C': [ 23 | { name: '护理系列' }, 24 | { 'desc': '护士', 'value': 'HUSHILOW' }, 25 | { 'desc': '初级护师', 'value': 'HUSHIHIGH' } 26 | ], 27 | 'D': [ 28 | { name: '会计系列' }, 29 | { 'desc': '会计从业', 'value': 'KUAIJICONGYE' }, 30 | { 'desc': '中级会计', 'value': 'ZJKUAIJI' } 31 | ] 32 | } 33 | ] 34 | } 35 | module.exports = list; -------------------------------------------------------------------------------- /components/bad/bad.js: -------------------------------------------------------------------------------- 1 | Component({ 2 | /* 组件的属性列表 */ 3 | properties: { 4 | 5 | }, 6 | 7 | /* 组件的初始数据 */ 8 | data: { 9 | status: true 10 | }, 11 | /* 组件的方法列表 */ 12 | methods: { 13 | onClose: function () { 14 | if (this.data.status == true) { 15 | this.setData({ 16 | status: false 17 | }) 18 | } else { 19 | this.setData({ 20 | status: true 21 | }) 22 | } 23 | } 24 | } 25 | }) 26 | -------------------------------------------------------------------------------- /components/bad/bad.json: -------------------------------------------------------------------------------- 1 | { 2 | "component": true, 3 | "usingComponents": {} 4 | } -------------------------------------------------------------------------------- /components/bad/bad.wxml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 56 7 | 8 | 答对120题 9 | 10 | 正确率75% 11 | 12 | 耗时 00:50 13 | 14 | 15 | 16 | 炫耀一下 17 | 查看错题 18 | 19 | 20 | 重新闯关 21 | 下一章节 22 | 23 | 24 | 25 | -------------------------------------------------------------------------------- /components/bad/bad.wxss: -------------------------------------------------------------------------------- 1 | .pop{width:100%;height:100%;background-color:#000;opacity:.6;position:fixed;left:0;top:0;} 2 | .wxpop{position:absolute;width:690rpx;left:30rpx;top:20%;padding:0 30rpx;} 3 | .pop_t{background-color:#b5b5b5;border-radius:20rpx 20rpx 0 0;padding-top:20rpx;} 4 | .good{display:flex;flex-direction: column;align-items: center;} 5 | .good image{width:341rpx;height:66rpx;} 6 | .sum{display: flex;align-items: baseline;justify-content: center;font-size:32rpx;color:#fff;} 7 | .sum text{font-size:130rpx;color:#fff;} 8 | .count{display:flex;flex-direction: row;align-items: center;justify-content: space-around;font-size:26rpx;color:#fff;padding:20rpx;} 9 | .count image{width:4rpx;height:26rpx;display:block;opacity:.2;} 10 | .pop_c{background-color:#fff;display:flex;flex-direction: row;align-items: center;justify-content: space-around;padding:40rpx 20rpx;} 11 | .pop_c .xuanyao text{display:block;width:240rpx;height:78rpx;line-height:78rpx;text-align:center;border-radius:200rpx;background-color:#99c733;color:#fff;font-size:28rpx;} 12 | .pop_c .chacuo text{display:block;width:240rpx;height:78rpx;line-height:78rpx;text-align:center;border-radius:200rpx;border:1px solid #99c733;color:#99c733;font-size:28rpx;} 13 | .pop_b{background-color:#f4f4f4;border-radius:0 0 20rpx 20rpx;display:flex;align-items: center;justify-content: space-between;font-size:26rpx;color:#297be8;padding:20rpx;} 14 | .close{text-align:center;margin-top:20rpx;} 15 | .close image{width:80rpx;height:80rpx;} 16 | .show{display:block;} 17 | .hide{display:none;} -------------------------------------------------------------------------------- /components/biji/biji.json: -------------------------------------------------------------------------------- 1 | { 2 | "component": true, 3 | "usingComponents": {} 4 | } -------------------------------------------------------------------------------- /components/biji/biji.wxml: -------------------------------------------------------------------------------- 1 | 2 | 笔记: 3 | 编辑> 4 | 5 | {{noteText}} 6 | -------------------------------------------------------------------------------- /components/biji/biji.wxss: -------------------------------------------------------------------------------- 1 | .bijichy{display: flex;justify-content:space-between} 2 | 3 | .wx-mask{ 4 | position: fixed; 5 | z-index: 1000; 6 | top: 0; 7 | right: 0; 8 | left: 0; 9 | bottom: 0; 10 | background: rgba(0, 0, 0, 0.3); 11 | } 12 | .wx-dialog{ 13 | position: fixed; 14 | z-index: 5000; 15 | width: 80%; 16 | max-width: 600rpx; 17 | top: 50%; 18 | left: 50%; 19 | -webkit-transform: translate(-50%, -50%); 20 | transform: translate(-50%, -50%); 21 | background-color: #FFFFFF; 22 | text-align: center; 23 | border-radius: 3px; 24 | overflow: hidden; 25 | } 26 | .wx-dialog-title{ 27 | font-size: 18px; 28 | padding: 15px 15px 5px; 29 | } 30 | .wx-dialog-content{ 31 | padding: 15px 15px 5px; 32 | min-height: 40px; 33 | font-size: 16px; 34 | line-height: 1.3; 35 | word-wrap: break-word; 36 | word-break: break-all; 37 | color: #999999; 38 | } 39 | .wx-dialog-footer{ 40 | display: flex; 41 | align-items: center; 42 | position: relative; 43 | line-height: 45px; 44 | font-size: 17px; 45 | } 46 | .wx-dialog-footer::before{ 47 | content: ''; 48 | position: absolute; 49 | left: 0; 50 | top: 0; 51 | right: 0; 52 | height: 1px; 53 | border-top: 1px solid #D5D5D6; 54 | color: #D5D5D6; 55 | -webkit-transform-origin: 0 0; 56 | transform-origin: 0 0; 57 | -webkit-transform: scaleY(0.5); 58 | transform: scaleY(0.5); 59 | } 60 | .wx-dialog-btn{ 61 | display: block; 62 | -webkit-flex: 1; 63 | flex: 1; 64 | -webkit-tap-highlight-color: rgba(0, 0, 0, 0); 65 | position: relative; 66 | } 67 | .wx-dialog-footer .wx-dialog-btn:nth-of-type(1){ 68 | color: #353535; 69 | } 70 | .wx-dialog-footer .wx-dialog-btn:nth-of-type(2){ 71 | color: #353535; 72 | } 73 | .wx-dialog-footer .wx-dialog-btn:nth-of-type(2):after{ 74 | content: " "; 75 | position: absolute; 76 | left: 0; 77 | top: 0; 78 | width: 1px; 79 | bottom: 0; 80 | border-left: 1px solid #D5D5D6; 81 | color: #D5D5D6; 82 | -webkit-transform-origin: 0 0; 83 | transform-origin: 0 0; 84 | -webkit-transform: scaleX(0.5); 85 | transform: scaleX(0.5); 86 | } -------------------------------------------------------------------------------- /components/dialog/dialog.js: -------------------------------------------------------------------------------- 1 | // components/dialog.js 2 | Component({ 3 | options: { 4 | multipleSlots: true // 在组件定义时的选项中启用多slot支持 5 | }, 6 | /** 7 | * 组件的属性列表 8 | */ 9 | properties: { 10 | // 弹窗标题 11 | title: { // 属性名 12 | type: String, // 类型(必填),目前接受的类型包括:String, Number, Boolean, Object, Array, null(表示任意类型) 13 | value: '标题' // 属性初始值(可选),如果未指定则会根据类型选择一个 14 | }, 15 | // 弹窗内容 16 | content: { 17 | type: String, 18 | value: '弹窗内容' 19 | }, 20 | // 弹窗取消按钮文字 21 | delText: { 22 | type: String, 23 | value: '删除' 24 | }, 25 | // 弹窗取消按钮文字 26 | cancelText: { 27 | type: String, 28 | value: '取消' 29 | }, 30 | // 弹窗确认按钮文字 31 | confirmText: { 32 | type: String, 33 | value: '确定' 34 | } 35 | }, 36 | 37 | /** 38 | * 组件内私有数据 39 | */ 40 | data: { 41 | // 弹窗显示控制 42 | isShow: false, 43 | nodeText:null 44 | }, 45 | 46 | /** 47 | * 组件的公有方法列表 48 | */ 49 | methods: { 50 | 51 | /* 52 | * 公有方法 53 | */ 54 | 55 | //隐藏弹框 56 | hideDialog() { 57 | this.setData({ 58 | isShow: !this.data.isShow 59 | }) 60 | }, 61 | //展示弹框 62 | showDialog() { 63 | this.setData({ 64 | isShow: !this.data.isShow 65 | }) 66 | }, 67 | 68 | nodeText(e){ 69 | this.setData({ 70 | nodeText : e.detail.value 71 | }) 72 | }, 73 | /* 74 | * 内部私有方法建议以下划线开头 75 | * triggerEvent 用于触发事件 76 | */ 77 | _delEvent() { 78 | //触发取消回调 79 | this.triggerEvent("delEvent") 80 | }, 81 | _cancelEvent() { 82 | //触发取消回调 83 | this.triggerEvent("cancelEvent") 84 | }, 85 | _confirmEvent() { 86 | 87 | //触发成功回调 88 | this.triggerEvent("confirmEvent", { 'aaa':this.data.nodeText, 'bbb':'BBB'}); 89 | } 90 | } 91 | }) -------------------------------------------------------------------------------- /components/dialog/dialog.json: -------------------------------------------------------------------------------- 1 | { 2 | "component": true, 3 | "usingComponents": {} 4 | } -------------------------------------------------------------------------------- /components/dialog/dialog.wxml: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /components/dialog/dialog.wxss: -------------------------------------------------------------------------------- 1 | .wx-mask{ 2 | position: fixed; 3 | z-index: 1000; 4 | top: 0; 5 | right: 0; 6 | left: 0; 7 | bottom: 0; 8 | background: rgba(0, 0, 0, 0.3); 9 | } 10 | .wx-dialog{ 11 | position: fixed; 12 | z-index: 5000; 13 | width: 80%; 14 | max-width: 600rpx; 15 | top: 50%; 16 | left: 50%; 17 | -webkit-transform: translate(-50%, -50%); 18 | transform: translate(-50%, -50%); 19 | background-color: #FFFFFF; 20 | text-align: center; 21 | border-radius: 3px; 22 | overflow: hidden; 23 | } 24 | .wx-dialog-title{ 25 | font-size: 18px; 26 | padding: 15px 15px 5px; 27 | } 28 | .wx-dialog-content{ 29 | padding: 15px 15px 5px; 30 | min-height: 40px; 31 | font-size: 16px; 32 | line-height: 1.3; 33 | word-wrap: break-word; 34 | word-break: break-all; 35 | color: #999999; 36 | } 37 | .wx-dialog-footer{ 38 | display: flex; 39 | align-items: center; 40 | position: relative; 41 | line-height: 45px; 42 | font-size: 17px; 43 | } 44 | .wx-dialog-footer::before{ 45 | content: ''; 46 | position: absolute; 47 | left: 0; 48 | top: 0; 49 | right: 0; 50 | height: 1px; 51 | border-top: 1px solid #D5D5D6; 52 | color: #D5D5D6; 53 | -webkit-transform-origin: 0 0; 54 | transform-origin: 0 0; 55 | -webkit-transform: scaleY(0.5); 56 | transform: scaleY(0.5); 57 | } 58 | .wx-dialog-btn{ 59 | display: block; 60 | -webkit-flex: 1; 61 | flex: 1; 62 | -webkit-tap-highlight-color: rgba(0, 0, 0, 0); 63 | position: relative; 64 | } 65 | .wx-dialog-footer .wx-dialog-btn:nth-of-type(1){ 66 | color: #353535; 67 | } 68 | .wx-dialog-footer .wx-dialog-btn:nth-of-type(2){ 69 | color: #353535; 70 | } 71 | .wx-dialog-footer .wx-dialog-btn:nth-of-type(2):after{ 72 | content: " "; 73 | position: absolute; 74 | left: 0; 75 | top: 0; 76 | width: 1px; 77 | bottom: 0; 78 | border-left: 1px solid #D5D5D6; 79 | color: #D5D5D6; 80 | -webkit-transform-origin: 0 0; 81 | transform-origin: 0 0; 82 | -webkit-transform: scaleX(0.5); 83 | transform: scaleX(0.5); 84 | } -------------------------------------------------------------------------------- /components/good/good.js: -------------------------------------------------------------------------------- 1 | Component({ 2 | /* 组件的属性列表 */ 3 | properties: { 4 | rights:{ 5 | type:Number, 6 | value:0 7 | }, 8 | duration:{ 9 | type:String, 10 | value:0 11 | }, 12 | goodOrBad: { // 属性名 13 | type: String, // 类型(必填),目前接受的类型包括:String, Number, Boolean, Object, Array, null(表示任意类型) 14 | value: '' // 属性初始值(可选),如果未指定则会根据类型选择一个 默认给一个good 15 | }, 16 | score:{ 17 | type:Number, 18 | value:0 19 | }, 20 | bfb: { 21 | type: Number, 22 | value: 0 23 | } 24 | }, 25 | 26 | /* 组件的初始数据 */ 27 | data: { 28 | status: true 29 | }, 30 | /* 组件的方法列表 */ 31 | methods: { 32 | 33 | _onClose: function () { 34 | this.setData({ 35 | status: !this.data.status 36 | }) 37 | this.triggerEvent("onClose", this.properties.qid); 38 | // if (this.data.status == true) { 39 | // this.setData({ 40 | // status: false 41 | // }) 42 | // } else { 43 | // this.setData({ 44 | // status: true 45 | // }) 46 | // } 47 | }, 48 | 49 | }, 50 | }) 51 | -------------------------------------------------------------------------------- /components/good/good.json: -------------------------------------------------------------------------------- 1 | { 2 | "component": true, 3 | "usingComponents": {} 4 | } -------------------------------------------------------------------------------- /components/good/good.wxss: -------------------------------------------------------------------------------- 1 | .pop{width:100%;height:100%;background-color:#000;opacity:.6;position:fixed;left:0;top:0;} 2 | .wxpop{position:absolute;width:690rpx;left:30rpx;top:20%;padding:0 30rpx;} 3 | .pop_t{background-color:#297be8;border-radius:20rpx 20rpx 0 0;padding-top:20rpx;} 4 | .good{display:flex;flex-direction: column;align-items: center;} 5 | .good image{width:341rpx;height:66rpx;} 6 | .sum{display: flex;align-items: center;justify-content: center;} 7 | .sum image{width:484rpx;height:159rpx;} 8 | .sum .score{position:absolute;font-size:32rpx;color:#fff;} 9 | .sum .score text{font-size:130rpx;color:#fff;} 10 | .count{display:flex;flex-direction: row;align-items: center;justify-content: space-around;font-size:26rpx;color:#fff;padding:20rpx;} 11 | .count image{width:4rpx;height:26rpx;display:block;opacity:.2;} 12 | .pop_c{background-color:#fff;display:flex;flex-direction: row;align-items: center;justify-content: space-around;padding:40rpx 20rpx;} 13 | .pop_c .xuanyao button{display:block;width:240rpx;height:78rpx;line-height:78rpx;text-align:center;border-radius:200rpx;background-color:#99c733;color:#fff;font-size:28rpx;} 14 | .pop_c .chacuo button{display:block;width:240rpx;height:78rpx;line-height:78rpx;text-align:center;border-radius:200rpx;border:1px solid #99c733;color:#99c733;font-size:28rpx;} 15 | .pop_b{background-color:#f4f4f4;border-radius:0 0 20rpx 20rpx;display:flex;align-items: center;justify-content: space-between;font-size:26rpx;color:#297be8;padding:20rpx;} 16 | .close{text-align:center;margin-top:20rpx;} 17 | .close image{width:80rpx;height:80rpx;} 18 | .show{display:block;} 19 | .hide{display:none;} 20 | 21 | 22 | .pop_t2{background-color:#b5b5b5;border-radius:20rpx 20rpx 0 0;padding-top:20rpx;} 23 | .sum2{display: flex;align-items: baseline;justify-content: center;font-size:32rpx;color:#fff;} 24 | .sum2 text{font-size:130rpx;color:#fff;} 25 | -------------------------------------------------------------------------------- /components/jiaqun/jiaqun.js: -------------------------------------------------------------------------------- 1 | Component({ 2 | /* 组件的属性列表 */ 3 | properties: { 4 | 5 | }, 6 | 7 | /* 组件的初始数据 */ 8 | data: { 9 | status: true 10 | }, 11 | /* 组件的方法列表 */ 12 | methods: { 13 | onClose: function () { 14 | if (this.data.status == true) { 15 | this.setData({ 16 | status: false 17 | }) 18 | } else { 19 | this.setData({ 20 | status: true 21 | }) 22 | } 23 | } 24 | } 25 | }) 26 | -------------------------------------------------------------------------------- /components/jiaqun/jiaqun.json: -------------------------------------------------------------------------------- 1 | { 2 | "component": true, 3 | "usingComponents": {} 4 | } -------------------------------------------------------------------------------- /components/jiaqun/jiaqun.wxml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 和专业老师一起学习! 6 | 7 | 8 | 您的学习表现不错哦!小星为您提供了临床执业医师学习群:281818187,快来加入和专业老师们一起学习吧。 9 | 10 | 11 | 12 | 一键加群学习 13 | 我已是群成员 14 | 15 | 16 | 17 | -------------------------------------------------------------------------------- /components/jiaqun/jiaqun.wxss: -------------------------------------------------------------------------------- 1 | .pop{width:100%;height:100%;background-color:#000;opacity:.6;position:fixed;left:0;top:0;} 2 | .wxpop{position:absolute;width:80%;left:10%;top:20%;} 3 | .wx{background-color:#297be7;border-radius:20rpx 20rpx 0 0;display:flex;flex-direction: column;align-items: center; 4 | padding:40rpx;} 5 | .wx .title{font-size:36rpx;color:#fff;margin-bottom:30rpx;} 6 | .wx .lpz{margin-bottom:30rpx;} 7 | .wx .lpz image{width:240rpx;height:217rpx;display:block;} 8 | .wx .mess{font-size:28rpx;color:#fff;text-align:justify;line-height:44rpx;} 9 | .wx .mess text{color:#fc9720;} 10 | .qun{background-color:#fff;border-radius:0 0 20rpx 20rpx;padding:60rpx 40rpx;display:flex;flex-direction: row;align-items: center;justify-content: space-around;} 11 | .qun_l text{color:#98c632;font-size:28rpx;border:1px solid #98c632;padding:20rpx 60rpx;border-radius:200rpx;} 12 | .qun_r text{color:#b5b5b5;font-size:24rpx;} 13 | .close{text-align:center;margin-top:20rpx;} 14 | .close image{width:80rpx;height:80rpx;} 15 | .show{display:block;} 16 | .hide{display:none;} -------------------------------------------------------------------------------- /components/regular/regular.js: -------------------------------------------------------------------------------- 1 | Component({ 2 | options: { 3 | multipleSlots: true // 在组件定义时的选项中启用多slot支持 4 | }, 5 | /* 组件的属性列表 */ 6 | properties: { 7 | 8 | }, 9 | data: { 10 | showStatus:true 11 | }, 12 | /* 组件的公有方法列表*/ 13 | methods: { 14 | onCloseRegular: function () { 15 | if(this.data.showStatus==true){ 16 | this.setData({ 17 | showStatus:false 18 | }) 19 | }else{ 20 | this.setData({ 21 | showStatus: true 22 | }) 23 | } 24 | } 25 | }, 26 | 27 | }) -------------------------------------------------------------------------------- /components/regular/regular.json: -------------------------------------------------------------------------------- 1 | { 2 | "component": true, 3 | "usingComponents": {} 4 | } -------------------------------------------------------------------------------- /components/regular/regular.wxml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 蹭课规则 6 | 7 | 一、 蹭如何蹭到直播课程 8 | 1、正在直播课程-只需添加专业服务老师微信 即可学习正在直播课程 9 | 2、未开通的课程想要预约直播课程 10 | 11 | 001首次推荐给微信好友 12 | 002首次推荐给微博好友 13 | 003首次推荐给QQ好友 14 | 004首次推荐到微信朋友圈 15 | 005首次推荐给QQ好友 16 | 006首次应用市场好评 17 | 007完成三次练习 18 | 19 | 3、回放的直播课程,2元购买一次蹭课机会 20 | 二 、课程的有效期 21 | 直播课程已两个星期为一个周期,下架后就不能观看了 22 | 三、课程是否支持离线观看 23 | 蹭的直播课不支持离线观看,只有在课程详情页购买的课程才享有该特权 24 | 四、是否支持直播间提问 25 | 蹭的直播课不支持直播提问,只有在课程详情页购买的课程才享有该特权 26 | 27 | 28 | 29 | 30 | 31 | 32 | -------------------------------------------------------------------------------- /components/regular/regular.wxss: -------------------------------------------------------------------------------- 1 | .pop{width:100%;height:100%;background-color:#000;opacity:.6;position:fixed;top:0;left:0;} 2 | .regular{position:absolute;left:7%;top:0;width:86%;} 3 | .reg_t{background-color:#fff;border-radius:20rpx;padding:30rpx;line-height:42rpx;text-align:justify;} 4 | .title{font-size:34rpx;color:#202020;text-align:center;margin-bottom:10rpx;} 5 | .lit{font-size:26rpx;color:#202020;} 6 | .li{font-size:26rpx;color:#7a7a7a;} 7 | .licont text{display:block;color:#7a7a7a;font-size:26rpx;padding-left:26rpx;} 8 | .close{text-align:center;margin-top:20rpx;} 9 | .close image{width:80rpx;height:80rpx;} 10 | .show{display:block;} 11 | .hide{display:none;} -------------------------------------------------------------------------------- /components/wxpop/wxpop.js: -------------------------------------------------------------------------------- 1 | Component({ 2 | /* 组件的属性列表 */ 3 | properties: { 4 | 5 | }, 6 | 7 | /* 组件的初始数据 */ 8 | data: { 9 | status:true 10 | }, 11 | /* 组件的方法列表 */ 12 | methods: { 13 | onClose:function(){ 14 | if(this.data.status==true){ 15 | this.setData({ 16 | status:false 17 | }) 18 | }else{ 19 | this.setData({ 20 | status:true 21 | }) 22 | } 23 | } 24 | } 25 | }) 26 | -------------------------------------------------------------------------------- /components/wxpop/wxpop.json: -------------------------------------------------------------------------------- 1 | { 2 | "component": true, 3 | "usingComponents": {} 4 | } -------------------------------------------------------------------------------- /components/wxpop/wxpop.wxml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 和专业老师一起学习! 6 | 7 | 8 | 添加专业辅导老师微信 9 | 立即观看直播课程 10 | 11 | 12 | 13 | 加老师微信 14 | 15 | 16 | 17 | -------------------------------------------------------------------------------- /components/wxpop/wxpop.wxss: -------------------------------------------------------------------------------- 1 | .pop{width:100%;height:100%;background-color:#000;opacity:.6;position:fixed;left:0;top:0;} 2 | .wxpop{position:absolute;width:80%;left:10%;top:20%;} 3 | .wx{background-color:#297be7;border-radius:20rpx 20rpx 0 0;display:flex;flex-direction: column;align-items: center; 4 | padding:40rpx;text-align:center;} 5 | .wx .title{font-size:36rpx;color:#fff;margin-bottom:30rpx;} 6 | .wx .lpz{margin-bottom:30rpx;} 7 | .wx .lpz image{width:240rpx;height:217rpx;display:block;} 8 | .wx .txt text{display:block;font-size:28rpx;color:#fff;line-height:44rpx;} 9 | .btn_add{background-color:#fff;border-radius:0 0 20rpx 20rpx;padding:40rpx;} 10 | .btn_add .add{background-color:#98c632;width:100%;line-height:70rpx;text-align:center;color:#fff;font-size:28rpx;border-radius:200rpx;display:flex;align-items:center;justify-content: center;} 11 | .btn_add image{width:29rpx;height:30rpx;margin-right:10rpx;} 12 | .close{text-align:center;margin-top:20rpx;} 13 | .close image{width:80rpx;height:80rpx;} 14 | .show{display:block;} 15 | .hide{display:none;} -------------------------------------------------------------------------------- /images/arrowright.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/chywx/xinghengtiku/030a83262bcd107363b1c7a8e6260feb7db3f479/images/arrowright.png -------------------------------------------------------------------------------- /images/curcity.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/chywx/xinghengtiku/030a83262bcd107363b1c7a8e6260feb7db3f479/images/curcity.png -------------------------------------------------------------------------------- /images/newimage/Loading4.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/chywx/xinghengtiku/030a83262bcd107363b1c7a8e6260feb7db3f479/images/newimage/Loading4.gif -------------------------------------------------------------------------------- /images/newimage/bad.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/chywx/xinghengtiku/030a83262bcd107363b1c7a8e6260feb7db3f479/images/newimage/bad.png -------------------------------------------------------------------------------- /images/newimage/bg_quan.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/chywx/xinghengtiku/030a83262bcd107363b1c7a8e6260feb7db3f479/images/newimage/bg_quan.png -------------------------------------------------------------------------------- /images/newimage/boy.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/chywx/xinghengtiku/030a83262bcd107363b1c7a8e6260feb7db3f479/images/newimage/boy.png -------------------------------------------------------------------------------- /images/newimage/clock_tb.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/chywx/xinghengtiku/030a83262bcd107363b1c7a8e6260feb7db3f479/images/newimage/clock_tb.png -------------------------------------------------------------------------------- /images/newimage/close.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/chywx/xinghengtiku/030a83262bcd107363b1c7a8e6260feb7db3f479/images/newimage/close.png -------------------------------------------------------------------------------- /images/newimage/erweima.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/chywx/xinghengtiku/030a83262bcd107363b1c7a8e6260feb7db3f479/images/newimage/erweima.jpg -------------------------------------------------------------------------------- /images/newimage/girl.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/chywx/xinghengtiku/030a83262bcd107363b1c7a8e6260feb7db3f479/images/newimage/girl.png -------------------------------------------------------------------------------- /images/newimage/good.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/chywx/xinghengtiku/030a83262bcd107363b1c7a8e6260feb7db3f479/images/newimage/good.png -------------------------------------------------------------------------------- /images/newimage/gpkt.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/chywx/xinghengtiku/030a83262bcd107363b1c7a8e6260feb7db3f479/images/newimage/gpkt.png -------------------------------------------------------------------------------- /images/newimage/ic_medal_btn.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/chywx/xinghengtiku/030a83262bcd107363b1c7a8e6260feb7db3f479/images/newimage/ic_medal_btn.png -------------------------------------------------------------------------------- /images/newimage/jiantou.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/chywx/xinghengtiku/030a83262bcd107363b1c7a8e6260feb7db3f479/images/newimage/jiantou.png -------------------------------------------------------------------------------- /images/newimage/king.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/chywx/xinghengtiku/030a83262bcd107363b1c7a8e6260feb7db3f479/images/newimage/king.png -------------------------------------------------------------------------------- /images/newimage/lanpangzi0.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/chywx/xinghengtiku/030a83262bcd107363b1c7a8e6260feb7db3f479/images/newimage/lanpangzi0.png -------------------------------------------------------------------------------- /images/newimage/lanpangzi1.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/chywx/xinghengtiku/030a83262bcd107363b1c7a8e6260feb7db3f479/images/newimage/lanpangzi1.png -------------------------------------------------------------------------------- /images/newimage/lanpangzi2.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/chywx/xinghengtiku/030a83262bcd107363b1c7a8e6260feb7db3f479/images/newimage/lanpangzi2.png -------------------------------------------------------------------------------- /images/newimage/lanpangzi3.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/chywx/xinghengtiku/030a83262bcd107363b1c7a8e6260feb7db3f479/images/newimage/lanpangzi3.png -------------------------------------------------------------------------------- /images/newimage/left_jt.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/chywx/xinghengtiku/030a83262bcd107363b1c7a8e6260feb7db3f479/images/newimage/left_jt.png -------------------------------------------------------------------------------- /images/newimage/liujiang.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/chywx/xinghengtiku/030a83262bcd107363b1c7a8e6260feb7db3f479/images/newimage/liujiang.png -------------------------------------------------------------------------------- /images/newimage/logoactivity.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/chywx/xinghengtiku/030a83262bcd107363b1c7a8e6260feb7db3f479/images/newimage/logoactivity.png -------------------------------------------------------------------------------- /images/newimage/lpz.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/chywx/xinghengtiku/030a83262bcd107363b1c7a8e6260feb7db3f479/images/newimage/lpz.png -------------------------------------------------------------------------------- /images/newimage/lxqq.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/chywx/xinghengtiku/030a83262bcd107363b1c7a8e6260feb7db3f479/images/newimage/lxqq.png -------------------------------------------------------------------------------- /images/newimage/mnks.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/chywx/xinghengtiku/030a83262bcd107363b1c7a8e6260feb7db3f479/images/newimage/mnks.png -------------------------------------------------------------------------------- /images/newimage/mrjs.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/chywx/xinghengtiku/030a83262bcd107363b1c7a8e6260feb7db3f479/images/newimage/mrjs.png -------------------------------------------------------------------------------- /images/newimage/mrjs/join_state_join.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/chywx/xinghengtiku/030a83262bcd107363b1c7a8e6260feb7db3f479/images/newimage/mrjs/join_state_join.png -------------------------------------------------------------------------------- /images/newimage/mrjs/join_state_no.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/chywx/xinghengtiku/030a83262bcd107363b1c7a8e6260feb7db3f479/images/newimage/mrjs/join_state_no.png -------------------------------------------------------------------------------- /images/newimage/mrjs/join_state_over.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/chywx/xinghengtiku/030a83262bcd107363b1c7a8e6260feb7db3f479/images/newimage/mrjs/join_state_over.png -------------------------------------------------------------------------------- /images/newimage/phone.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/chywx/xinghengtiku/030a83262bcd107363b1c7a8e6260feb7db3f479/images/newimage/phone.png -------------------------------------------------------------------------------- /images/newimage/point.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/chywx/xinghengtiku/030a83262bcd107363b1c7a8e6260feb7db3f479/images/newimage/point.png -------------------------------------------------------------------------------- /images/newimage/shuxian.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/chywx/xinghengtiku/030a83262bcd107363b1c7a8e6260feb7db3f479/images/newimage/shuxian.png -------------------------------------------------------------------------------- /images/newimage/tb_bom_jt.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/chywx/xinghengtiku/030a83262bcd107363b1c7a8e6260feb7db3f479/images/newimage/tb_bom_jt.png -------------------------------------------------------------------------------- /images/newimage/tb_btl.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/chywx/xinghengtiku/030a83262bcd107363b1c7a8e6260feb7db3f479/images/newimage/tb_btl.png -------------------------------------------------------------------------------- /images/newimage/tb_btl_open.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/chywx/xinghengtiku/030a83262bcd107363b1c7a8e6260feb7db3f479/images/newimage/tb_btl_open.png -------------------------------------------------------------------------------- /images/newimage/tb_clock.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/chywx/xinghengtiku/030a83262bcd107363b1c7a8e6260feb7db3f479/images/newimage/tb_clock.png -------------------------------------------------------------------------------- /images/newimage/tb_close.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/chywx/xinghengtiku/030a83262bcd107363b1c7a8e6260feb7db3f479/images/newimage/tb_close.png -------------------------------------------------------------------------------- /images/newimage/tb_collect.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/chywx/xinghengtiku/030a83262bcd107363b1c7a8e6260feb7db3f479/images/newimage/tb_collect.png -------------------------------------------------------------------------------- /images/newimage/tb_edit.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/chywx/xinghengtiku/030a83262bcd107363b1c7a8e6260feb7db3f479/images/newimage/tb_edit.png -------------------------------------------------------------------------------- /images/newimage/tb_editl.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/chywx/xinghengtiku/030a83262bcd107363b1c7a8e6260feb7db3f479/images/newimage/tb_editl.png -------------------------------------------------------------------------------- /images/newimage/tb_editl2.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/chywx/xinghengtiku/030a83262bcd107363b1c7a8e6260feb7db3f479/images/newimage/tb_editl2.png -------------------------------------------------------------------------------- /images/newimage/tb_erji.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/chywx/xinghengtiku/030a83262bcd107363b1c7a8e6260feb7db3f479/images/newimage/tb_erji.png -------------------------------------------------------------------------------- /images/newimage/tb_finish.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/chywx/xinghengtiku/030a83262bcd107363b1c7a8e6260feb7db3f479/images/newimage/tb_finish.png -------------------------------------------------------------------------------- /images/newimage/tb_finishl.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/chywx/xinghengtiku/030a83262bcd107363b1c7a8e6260feb7db3f479/images/newimage/tb_finishl.png -------------------------------------------------------------------------------- /images/newimage/tb_hand.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/chywx/xinghengtiku/030a83262bcd107363b1c7a8e6260feb7db3f479/images/newimage/tb_hand.png -------------------------------------------------------------------------------- /images/newimage/tb_hand1.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/chywx/xinghengtiku/030a83262bcd107363b1c7a8e6260feb7db3f479/images/newimage/tb_hand1.png -------------------------------------------------------------------------------- /images/newimage/tb_hot.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/chywx/xinghengtiku/030a83262bcd107363b1c7a8e6260feb7db3f479/images/newimage/tb_hot.png -------------------------------------------------------------------------------- /images/newimage/tb_note.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/chywx/xinghengtiku/030a83262bcd107363b1c7a8e6260feb7db3f479/images/newimage/tb_note.png -------------------------------------------------------------------------------- /images/newimage/tb_right_jt.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/chywx/xinghengtiku/030a83262bcd107363b1c7a8e6260feb7db3f479/images/newimage/tb_right_jt.png -------------------------------------------------------------------------------- /images/newimage/tb_tiku.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/chywx/xinghengtiku/030a83262bcd107363b1c7a8e6260feb7db3f479/images/newimage/tb_tiku.png -------------------------------------------------------------------------------- /images/newimage/tb_vip.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/chywx/xinghengtiku/030a83262bcd107363b1c7a8e6260feb7db3f479/images/newimage/tb_vip.png -------------------------------------------------------------------------------- /images/newimage/tb_wrong.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/chywx/xinghengtiku/030a83262bcd107363b1c7a8e6260feb7db3f479/images/newimage/tb_wrong.png -------------------------------------------------------------------------------- /images/newimage/tb_wx.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/chywx/xinghengtiku/030a83262bcd107363b1c7a8e6260feb7db3f479/images/newimage/tb_wx.png -------------------------------------------------------------------------------- /images/newimage/tb_xtk.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/chywx/xinghengtiku/030a83262bcd107363b1c7a8e6260feb7db3f479/images/newimage/tb_xtk.png -------------------------------------------------------------------------------- /images/newimage/tb_zhibo.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/chywx/xinghengtiku/030a83262bcd107363b1c7a8e6260feb7db3f479/images/newimage/tb_zhibo.png -------------------------------------------------------------------------------- /images/newimage/text_tb.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/chywx/xinghengtiku/030a83262bcd107363b1c7a8e6260feb7db3f479/images/newimage/text_tb.png -------------------------------------------------------------------------------- /images/newimage/top_adv.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/chywx/xinghengtiku/030a83262bcd107363b1c7a8e6260feb7db3f479/images/newimage/top_adv.jpg -------------------------------------------------------------------------------- /images/newimage/tu_kecheng.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/chywx/xinghengtiku/030a83262bcd107363b1c7a8e6260feb7db3f479/images/newimage/tu_kecheng.jpg -------------------------------------------------------------------------------- /images/newimage/tub1.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/chywx/xinghengtiku/030a83262bcd107363b1c7a8e6260feb7db3f479/images/newimage/tub1.png -------------------------------------------------------------------------------- /images/newimage/tub2.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/chywx/xinghengtiku/030a83262bcd107363b1c7a8e6260feb7db3f479/images/newimage/tub2.png -------------------------------------------------------------------------------- /images/newimage/tub3.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/chywx/xinghengtiku/030a83262bcd107363b1c7a8e6260feb7db3f479/images/newimage/tub3.png -------------------------------------------------------------------------------- /images/tabbar/beiti.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/chywx/xinghengtiku/030a83262bcd107363b1c7a8e6260feb7db3f479/images/tabbar/beiti.png -------------------------------------------------------------------------------- /images/tabbar/beiti2.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/chywx/xinghengtiku/030a83262bcd107363b1c7a8e6260feb7db3f479/images/tabbar/beiti2.png -------------------------------------------------------------------------------- /images/tabbar/datika.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/chywx/xinghengtiku/030a83262bcd107363b1c7a8e6260feb7db3f479/images/tabbar/datika.png -------------------------------------------------------------------------------- /images/tabbar/datika2.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/chywx/xinghengtiku/030a83262bcd107363b1c7a8e6260feb7db3f479/images/tabbar/datika2.png -------------------------------------------------------------------------------- /images/tabbar/shoucang.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/chywx/xinghengtiku/030a83262bcd107363b1c7a8e6260feb7db3f479/images/tabbar/shoucang.png -------------------------------------------------------------------------------- /images/tabbar/shoucang2.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/chywx/xinghengtiku/030a83262bcd107363b1c7a8e6260feb7db3f479/images/tabbar/shoucang2.png -------------------------------------------------------------------------------- /images/tabbar/star.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/chywx/xinghengtiku/030a83262bcd107363b1c7a8e6260feb7db3f479/images/tabbar/star.png -------------------------------------------------------------------------------- /images/tabbar/star2.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/chywx/xinghengtiku/030a83262bcd107363b1c7a8e6260feb7db3f479/images/tabbar/star2.png -------------------------------------------------------------------------------- /images/tabbar/star3.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/chywx/xinghengtiku/030a83262bcd107363b1c7a8e6260feb7db3f479/images/tabbar/star3.png -------------------------------------------------------------------------------- /images/tabbar/tb_jiaojuan.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/chywx/xinghengtiku/030a83262bcd107363b1c7a8e6260feb7db3f479/images/tabbar/tb_jiaojuan.png -------------------------------------------------------------------------------- /images/tabbar/tb_jiaojuan_ok.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/chywx/xinghengtiku/030a83262bcd107363b1c7a8e6260feb7db3f479/images/tabbar/tb_jiaojuan_ok.png -------------------------------------------------------------------------------- /images/tabbar/youjiantou.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/chywx/xinghengtiku/030a83262bcd107363b1c7a8e6260feb7db3f479/images/tabbar/youjiantou.png -------------------------------------------------------------------------------- /images/tabbar/youjiantou2.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/chywx/xinghengtiku/030a83262bcd107363b1c7a8e6260feb7db3f479/images/tabbar/youjiantou2.png -------------------------------------------------------------------------------- /images/tabbar/zuojiantou.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/chywx/xinghengtiku/030a83262bcd107363b1c7a8e6260feb7db3f479/images/tabbar/zuojiantou.png -------------------------------------------------------------------------------- /images/tabbar/zuojiantou2.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/chywx/xinghengtiku/030a83262bcd107363b1c7a8e6260feb7db3f479/images/tabbar/zuojiantou2.png -------------------------------------------------------------------------------- /images/tabbar/工具-交卷.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/chywx/xinghengtiku/030a83262bcd107363b1c7a8e6260feb7db3f479/images/tabbar/工具-交卷.png -------------------------------------------------------------------------------- /images/tabbar/工具-交卷2.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/chywx/xinghengtiku/030a83262bcd107363b1c7a8e6260feb7db3f479/images/tabbar/工具-交卷2.png -------------------------------------------------------------------------------- /images/tabbar/工具-查看错题.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/chywx/xinghengtiku/030a83262bcd107363b1c7a8e6260feb7db3f479/images/tabbar/工具-查看错题.png -------------------------------------------------------------------------------- /images/tabbar/工具-查看错题2.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/chywx/xinghengtiku/030a83262bcd107363b1c7a8e6260feb7db3f479/images/tabbar/工具-查看错题2.png -------------------------------------------------------------------------------- /images/tabbar/我的.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/chywx/xinghengtiku/030a83262bcd107363b1c7a8e6260feb7db3f479/images/tabbar/我的.png -------------------------------------------------------------------------------- /images/tabbar/我的2.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/chywx/xinghengtiku/030a83262bcd107363b1c7a8e6260feb7db3f479/images/tabbar/我的2.png -------------------------------------------------------------------------------- /images/tabbar/直播.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/chywx/xinghengtiku/030a83262bcd107363b1c7a8e6260feb7db3f479/images/tabbar/直播.png -------------------------------------------------------------------------------- /images/tabbar/直播2.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/chywx/xinghengtiku/030a83262bcd107363b1c7a8e6260feb7db3f479/images/tabbar/直播2.png -------------------------------------------------------------------------------- /images/tabbar/背景蓝色.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/chywx/xinghengtiku/030a83262bcd107363b1c7a8e6260feb7db3f479/images/tabbar/背景蓝色.png -------------------------------------------------------------------------------- /images/tabbar/视频.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/chywx/xinghengtiku/030a83262bcd107363b1c7a8e6260feb7db3f479/images/tabbar/视频.png -------------------------------------------------------------------------------- /images/tabbar/视频2.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/chywx/xinghengtiku/030a83262bcd107363b1c7a8e6260feb7db3f479/images/tabbar/视频2.png -------------------------------------------------------------------------------- /images/tabbar/题库.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/chywx/xinghengtiku/030a83262bcd107363b1c7a8e6260feb7db3f479/images/tabbar/题库.png -------------------------------------------------------------------------------- /images/tabbar/题库2.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/chywx/xinghengtiku/030a83262bcd107363b1c7a8e6260feb7db3f479/images/tabbar/题库2.png -------------------------------------------------------------------------------- /images/update.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/chywx/xinghengtiku/030a83262bcd107363b1c7a8e6260feb7db3f479/images/update.png -------------------------------------------------------------------------------- /img/ad01.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/chywx/xinghengtiku/030a83262bcd107363b1c7a8e6260feb7db3f479/img/ad01.jpg -------------------------------------------------------------------------------- /img/ad02.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/chywx/xinghengtiku/030a83262bcd107363b1c7a8e6260feb7db3f479/img/ad02.jpg -------------------------------------------------------------------------------- /img/ad03.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/chywx/xinghengtiku/030a83262bcd107363b1c7a8e6260feb7db3f479/img/ad03.jpg -------------------------------------------------------------------------------- /img/ad04.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/chywx/xinghengtiku/030a83262bcd107363b1c7a8e6260feb7db3f479/img/ad04.jpg -------------------------------------------------------------------------------- /img/background-down.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/chywx/xinghengtiku/030a83262bcd107363b1c7a8e6260feb7db3f479/img/background-down.png -------------------------------------------------------------------------------- /img/background-up.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/chywx/xinghengtiku/030a83262bcd107363b1c7a8e6260feb7db3f479/img/background-up.png -------------------------------------------------------------------------------- /img/book.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/chywx/xinghengtiku/030a83262bcd107363b1c7a8e6260feb7db3f479/img/book.jpg -------------------------------------------------------------------------------- /img/collect.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/chywx/xinghengtiku/030a83262bcd107363b1c7a8e6260feb7db3f479/img/collect.png -------------------------------------------------------------------------------- /img/collect2.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/chywx/xinghengtiku/030a83262bcd107363b1c7a8e6260feb7db3f479/img/collect2.png -------------------------------------------------------------------------------- /img/edit.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/chywx/xinghengtiku/030a83262bcd107363b1c7a8e6260feb7db3f479/img/edit.png -------------------------------------------------------------------------------- /img/edit2.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/chywx/xinghengtiku/030a83262bcd107363b1c7a8e6260feb7db3f479/img/edit2.png -------------------------------------------------------------------------------- /img/exam.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/chywx/xinghengtiku/030a83262bcd107363b1c7a8e6260feb7db3f479/img/exam.png -------------------------------------------------------------------------------- /img/exam2.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/chywx/xinghengtiku/030a83262bcd107363b1c7a8e6260feb7db3f479/img/exam2.png -------------------------------------------------------------------------------- /img/faceToFace.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/chywx/xinghengtiku/030a83262bcd107363b1c7a8e6260feb7db3f479/img/faceToFace.png -------------------------------------------------------------------------------- /img/factToFace_full.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/chywx/xinghengtiku/030a83262bcd107363b1c7a8e6260feb7db3f479/img/factToFace_full.png -------------------------------------------------------------------------------- /img/home.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/chywx/xinghengtiku/030a83262bcd107363b1c7a8e6260feb7db3f479/img/home.png -------------------------------------------------------------------------------- /img/home2.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/chywx/xinghengtiku/030a83262bcd107363b1c7a8e6260feb7db3f479/img/home2.png -------------------------------------------------------------------------------- /img/jiant_xia.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/chywx/xinghengtiku/030a83262bcd107363b1c7a8e6260feb7db3f479/img/jiant_xia.png -------------------------------------------------------------------------------- /img/jiantou.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/chywx/xinghengtiku/030a83262bcd107363b1c7a8e6260feb7db3f479/img/jiantou.png -------------------------------------------------------------------------------- /img/kc.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/chywx/xinghengtiku/030a83262bcd107363b1c7a8e6260feb7db3f479/img/kc.jpg -------------------------------------------------------------------------------- /img/location.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/chywx/xinghengtiku/030a83262bcd107363b1c7a8e6260feb7db3f479/img/location.png -------------------------------------------------------------------------------- /img/logo.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/chywx/xinghengtiku/030a83262bcd107363b1c7a8e6260feb7db3f479/img/logo.png -------------------------------------------------------------------------------- /img/mapTP.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/chywx/xinghengtiku/030a83262bcd107363b1c7a8e6260feb7db3f479/img/mapTP.png -------------------------------------------------------------------------------- /img/record.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/chywx/xinghengtiku/030a83262bcd107363b1c7a8e6260feb7db3f479/img/record.png -------------------------------------------------------------------------------- /img/record2.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/chywx/xinghengtiku/030a83262bcd107363b1c7a8e6260feb7db3f479/img/record2.png -------------------------------------------------------------------------------- /img/tb1.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/chywx/xinghengtiku/030a83262bcd107363b1c7a8e6260feb7db3f479/img/tb1.png -------------------------------------------------------------------------------- /img/tb2.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/chywx/xinghengtiku/030a83262bcd107363b1c7a8e6260feb7db3f479/img/tb2.png -------------------------------------------------------------------------------- /img/tb3.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/chywx/xinghengtiku/030a83262bcd107363b1c7a8e6260feb7db3f479/img/tb3.png -------------------------------------------------------------------------------- /img/tb4.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/chywx/xinghengtiku/030a83262bcd107363b1c7a8e6260feb7db3f479/img/tb4.png -------------------------------------------------------------------------------- /img/tb5.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/chywx/xinghengtiku/030a83262bcd107363b1c7a8e6260feb7db3f479/img/tb5.png -------------------------------------------------------------------------------- /img/tb6.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/chywx/xinghengtiku/030a83262bcd107363b1c7a8e6260feb7db3f479/img/tb6.png -------------------------------------------------------------------------------- /img/tb7.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/chywx/xinghengtiku/030a83262bcd107363b1c7a8e6260feb7db3f479/img/tb7.png -------------------------------------------------------------------------------- /img/tb8.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/chywx/xinghengtiku/030a83262bcd107363b1c7a8e6260feb7db3f479/img/tb8.png -------------------------------------------------------------------------------- /img/tb_before.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/chywx/xinghengtiku/030a83262bcd107363b1c7a8e6260feb7db3f479/img/tb_before.png -------------------------------------------------------------------------------- /img/tb_before_no.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/chywx/xinghengtiku/030a83262bcd107363b1c7a8e6260feb7db3f479/img/tb_before_no.png -------------------------------------------------------------------------------- /img/tb_collect.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/chywx/xinghengtiku/030a83262bcd107363b1c7a8e6260feb7db3f479/img/tb_collect.png -------------------------------------------------------------------------------- /img/tb_daan.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/chywx/xinghengtiku/030a83262bcd107363b1c7a8e6260feb7db3f479/img/tb_daan.png -------------------------------------------------------------------------------- /img/tb_datika.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/chywx/xinghengtiku/030a83262bcd107363b1c7a8e6260feb7db3f479/img/tb_datika.png -------------------------------------------------------------------------------- /img/tb_datika_ok.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/chywx/xinghengtiku/030a83262bcd107363b1c7a8e6260feb7db3f479/img/tb_datika_ok.png -------------------------------------------------------------------------------- /img/tb_jiaojuan.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/chywx/xinghengtiku/030a83262bcd107363b1c7a8e6260feb7db3f479/img/tb_jiaojuan.png -------------------------------------------------------------------------------- /img/tb_jiaojuan_ok.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/chywx/xinghengtiku/030a83262bcd107363b1c7a8e6260feb7db3f479/img/tb_jiaojuan_ok.png -------------------------------------------------------------------------------- /img/tb_next.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/chywx/xinghengtiku/030a83262bcd107363b1c7a8e6260feb7db3f479/img/tb_next.png -------------------------------------------------------------------------------- /img/tb_next_no.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/chywx/xinghengtiku/030a83262bcd107363b1c7a8e6260feb7db3f479/img/tb_next_no.png -------------------------------------------------------------------------------- /img/touxiang.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/chywx/xinghengtiku/030a83262bcd107363b1c7a8e6260feb7db3f479/img/touxiang.png -------------------------------------------------------------------------------- /img/wode.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/chywx/xinghengtiku/030a83262bcd107363b1c7a8e6260feb7db3f479/img/wode.png -------------------------------------------------------------------------------- /img/wode2.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/chywx/xinghengtiku/030a83262bcd107363b1c7a8e6260feb7db3f479/img/wode2.png -------------------------------------------------------------------------------- /iviewapp/action-sheet/index.js: -------------------------------------------------------------------------------- 1 | Component({ 2 | externalClasses: ['i-class', 'i-class-mask', 'i-class-header'], 3 | 4 | options: { 5 | multipleSlots: true 6 | }, 7 | 8 | properties: { 9 | visible: { 10 | type: Boolean, 11 | value: false 12 | }, 13 | maskClosable: { 14 | type: Boolean, 15 | value: true 16 | }, 17 | showCancel: { 18 | type: Boolean, 19 | value: false 20 | }, 21 | cancelText: { 22 | type: String, 23 | value: '取消' 24 | }, 25 | actions: { 26 | type: Array, 27 | value: [] 28 | } 29 | }, 30 | 31 | methods: { 32 | handleClickMask () { 33 | if (!this.data.maskClosable) return; 34 | this.handleClickCancel(); 35 | }, 36 | 37 | handleClickItem ({ currentTarget = {} }) { 38 | const dataset = currentTarget.dataset || {}; 39 | const { index } = dataset; 40 | this.triggerEvent('click', { index }); 41 | }, 42 | 43 | handleClickCancel () { 44 | this.triggerEvent('cancel'); 45 | } 46 | } 47 | }); 48 | -------------------------------------------------------------------------------- /iviewapp/action-sheet/index.json: -------------------------------------------------------------------------------- 1 | { 2 | "component": true, 3 | "usingComponents": 4 | { 5 | "i-button": "../button/index", 6 | "i-icon": "../icon/index" 7 | } 8 | } 9 | -------------------------------------------------------------------------------- /iviewapp/action-sheet/index.wxml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 14 | 15 | 16 | {{ item.name }} 17 | 18 | 19 | 20 | 21 | {{ cancelText }} 22 | 23 | 24 | -------------------------------------------------------------------------------- /iviewapp/action-sheet/index.wxss: -------------------------------------------------------------------------------- 1 | .i-as{position:fixed;width:100%;box-sizing:border-box;left:0;right:0;bottom:0;background:#f7f7f7;transform:translate3d(0,100%,0);transform-origin:center;transition:all .2s ease-in-out;z-index:900;visibility:hidden}.i-as-show{transform:translate3d(0,0,0);visibility:visible}.i-as-mask{position:fixed;top:0;left:0;right:0;bottom:0;background:rgba(0,0,0,.7);z-index:900;transition:all .2s ease-in-out;opacity:0;visibility:hidden}.i-as-mask-show{opacity:1;visibility:visible}.i-as-action-item{position:relative}.i-as-action-item::after{content:'';position:absolute;top:0;left:0;width:200%;height:200%;transform:scale(.5);transform-origin:0 0;pointer-events:none;box-sizing:border-box;border:0 solid #e9eaec;border-bottom-width:1px}.i-as-header{background:#fff;text-align:center;position:relative;font-size:12px;color:#80848f}.i-as-header::after{content:'';position:absolute;top:0;left:0;width:200%;height:200%;transform:scale(.5);transform-origin:0 0;pointer-events:none;box-sizing:border-box;border:0 solid #e9eaec;border-bottom-width:1px}.i-as-cancel{margin-top:6px}.i-as-btn-loading{display:inline-block;vertical-align:middle;margin-right:10px;width:12px;height:12px;background:0 0;border-radius:50%;border:2px solid #e5e5e5;border-color:#666 #e5e5e5 #e5e5e5 #e5e5e5;animation:btn-spin .6s linear;animation-iteration-count:infinite}.i-as-btn-text{display:inline-block;vertical-align:middle}.i-as-btn-icon{font-size:14px!important;margin-right:4px}@keyframes btn-spin{0%{transform:rotate(0)}100%{transform:rotate(360deg)}} -------------------------------------------------------------------------------- /iviewapp/alert/index.js: -------------------------------------------------------------------------------- 1 | Component({ 2 | externalClasses: ['i-class'], 3 | options: { 4 | multipleSlots: true 5 | }, 6 | properties: { 7 | //info, success, warning, error 8 | type: { 9 | type: String, 10 | value: 'info' 11 | }, 12 | closable: { 13 | type: Boolean, 14 | value: false 15 | }, 16 | showIcon: { 17 | type: Boolean, 18 | default: false 19 | }, 20 | desc: { 21 | type: Boolean, 22 | default: false 23 | }, 24 | }, 25 | data: { 26 | closed: false 27 | }, 28 | methods: { 29 | handleTap() { 30 | this.setData({ 31 | closed: !this.data.closed, 32 | }); 33 | this.triggerEvent('close'); 34 | }, 35 | 36 | } 37 | }); 38 | -------------------------------------------------------------------------------- /iviewapp/alert/index.json: -------------------------------------------------------------------------------- 1 | { 2 | "component": true, 3 | "usingComponents": 4 | { 5 | "i-icon": "../icon/index" 6 | } 7 | } 8 | -------------------------------------------------------------------------------- /iviewapp/alert/index.wxml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | 14 | 15 | 16 | -------------------------------------------------------------------------------- /iviewapp/alert/index.wxss: -------------------------------------------------------------------------------- 1 | .i-alert{position:relative;margin:10px;padding:8px 48px 8px 16px;font-size:14px;border-radius:2px;color:#fff;background:#f7f7f7;color:#495060}.i-alert.i-alert-with-icon{padding:8px 48px 8px 38px}.i-alert-info{color:#fff;background:#2db7f5}.i-alert-success{color:#fff;background:#19be6b}.i-alert-warning{color:#fff;background:#f90}.i-alert-error{color:#fff;background:#ed3f14}.i-alert-icon{position:absolute;top:9px;left:16px;font-size:14px}.i-alert-desc{font-size:12px}.i-alert-with-desc{padding:16px;position:relative}.i-alert-with-desc.i-alert-with-icon{padding:16px 16px 16px 69px}.i-alert-with-desc .i-alert-icon{top:50%;left:24px;margin-top:-21px;font-size:28px}.i-alert-close{font-size:12px;position:absolute;right:16px;top:8px;overflow:hidden;cursor:pointer} -------------------------------------------------------------------------------- /iviewapp/avatar/index.js: -------------------------------------------------------------------------------- 1 | Component({ 2 | externalClasses: ['i-class'], 3 | 4 | properties: { 5 | // circle || square 6 | shape: { 7 | type: String, 8 | value: 'circle' 9 | }, 10 | // small || large || default 11 | size: { 12 | type: String, 13 | value: 'default' 14 | }, 15 | src: { 16 | type: String, 17 | value: '' 18 | } 19 | } 20 | }); 21 | -------------------------------------------------------------------------------- /iviewapp/avatar/index.json: -------------------------------------------------------------------------------- 1 | { 2 | "component": true 3 | } 4 | -------------------------------------------------------------------------------- /iviewapp/avatar/index.wxml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | -------------------------------------------------------------------------------- /iviewapp/avatar/index.wxss: -------------------------------------------------------------------------------- 1 | .i-avatar{display:inline-block;text-align:center;background:#ccc;color:#fff;white-space:nowrap;position:relative;overflow:hidden;vertical-align:middle;width:32px;height:32px;line-height:32px;border-radius:16px;font-size:18px}.i-avatar .ivu-avatar-string{line-height:32px}.i-avatar-large{width:40px;height:40px;line-height:40px;border-radius:20px;font-size:24px}.i-avatar-large .ivu-avatar-string{line-height:40px}.i-avatar-small{width:24px;height:24px;line-height:24px;border-radius:12px;font-size:14px}.i-avatar-small .ivu-avatar-string{line-height:24px}.i-avatar-image{background:0 0}.i-avatar-square{border-radius:4px}.i-avatar>image{width:100%;height:100%} -------------------------------------------------------------------------------- /iviewapp/badge/index.js: -------------------------------------------------------------------------------- 1 | Component({ 2 | externalClasses: ['i-class', 'i-class-alone'], 3 | 4 | properties: { 5 | count: { 6 | type: Number, 7 | value: 0, 8 | observer: 'finalCount' 9 | }, 10 | overflowCount: { 11 | type: Number, 12 | value: 99 13 | }, 14 | dot: { 15 | type: Boolean, 16 | value: false 17 | }, 18 | }, 19 | data: { 20 | finalCount: 0 21 | }, 22 | methods: { 23 | finalCount() { 24 | this.setData({ 25 | finalCount: parseInt(this.data.count) >= parseInt(this.data.overflowCount) ? `${this.data.overflowCount}+` : this.data.count 26 | }); 27 | }, 28 | } 29 | }); 30 | -------------------------------------------------------------------------------- /iviewapp/badge/index.json: -------------------------------------------------------------------------------- 1 | { 2 | "component": true 3 | } 4 | -------------------------------------------------------------------------------- /iviewapp/badge/index.wxml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | {{ finalCount }} 5 | 6 | -------------------------------------------------------------------------------- /iviewapp/badge/index.wxss: -------------------------------------------------------------------------------- 1 | .i-badge{position:relative;display:inline-block;line-height:1;vertical-align:middle}.i-badge-count{position:absolute;transform:translateX(50%);top:-6px;right:0;height:18px;border-radius:9px;min-width:18px;background:#ed3f14;border:1px solid transparent;color:#fff;line-height:18px;text-align:center;padding:0 5px;font-size:12px;white-space:nowrap;transform-origin:-10% center;z-index:10;box-shadow:0 0 0 1px #fff;box-sizing:border-box;text-rendering:optimizeLegibility}.i-badge-count-alone{top:auto;display:block;position:relative;transform:translateX(0)}.i-badge-dot{position:absolute;transform:translateX(-50%);transform-origin:0 center;top:-4px;right:-8px;height:8px;width:8px;border-radius:100%;background:#ed3f14;z-index:10;box-shadow:0 0 0 1px #fff} -------------------------------------------------------------------------------- /iviewapp/base/index.js: -------------------------------------------------------------------------------- 1 | function getCtx (selector) { 2 | const pages = getCurrentPages(); 3 | const ctx = pages[pages.length - 1]; 4 | 5 | const componentCtx = ctx.selectComponent(selector); 6 | 7 | if (!componentCtx) { 8 | console.error('无法找到对应的组件,请按文档说明使用组件'); 9 | return null; 10 | } 11 | return componentCtx; 12 | } 13 | 14 | function Toast(options) { 15 | const { selector = '#toast' } = options; 16 | const ctx = getCtx(selector); 17 | 18 | ctx.handleShow(options); 19 | } 20 | 21 | Toast.hide = function (selector = '#toast') { 22 | const ctx = getCtx(selector); 23 | 24 | ctx.handleHide(); 25 | }; 26 | 27 | function Message(options) { 28 | const { selector = '#message' } = options; 29 | const ctx = getCtx(selector); 30 | 31 | ctx.handleShow(options); 32 | } 33 | 34 | module.exports = { 35 | $Toast: Toast, 36 | $Message: Message 37 | }; -------------------------------------------------------------------------------- /iviewapp/button/index.js: -------------------------------------------------------------------------------- 1 | Component({ 2 | externalClasses: ['i-class'], 3 | 4 | properties: { 5 | // default, primary, ghost, info, success, warning, error 6 | type: { 7 | type: String, 8 | value: '', 9 | }, 10 | // default, large, small 11 | size: { 12 | type: String, 13 | value: '', 14 | }, 15 | // circle, square 16 | shape: { 17 | type: String, 18 | value: 'square' 19 | }, 20 | disabled: { 21 | type: Boolean, 22 | value: false, 23 | }, 24 | loading: { 25 | type: Boolean, 26 | value: false, 27 | }, 28 | long: { 29 | type: Boolean, 30 | value: false 31 | }, 32 | openType: String, 33 | appParameter: String, 34 | hoverStopPropagation: Boolean, 35 | hoverStartTime: { 36 | type: Number, 37 | value: 20 38 | }, 39 | hoverStayTime: { 40 | type: Number, 41 | value: 70 42 | }, 43 | lang: { 44 | type: String, 45 | value: 'en' 46 | }, 47 | sessionFrom: { 48 | type: String, 49 | value: '' 50 | }, 51 | sendMessageTitle: String, 52 | sendMessagePath: String, 53 | sendMessageImg: String, 54 | showMessageCard: Boolean 55 | }, 56 | 57 | methods: { 58 | handleTap () { 59 | if (this.data.disabled) return false; 60 | 61 | this.triggerEvent('click'); 62 | } 63 | } 64 | }); 65 | -------------------------------------------------------------------------------- /iviewapp/button/index.json: -------------------------------------------------------------------------------- 1 | { 2 | "component": true 3 | } 4 | -------------------------------------------------------------------------------- /iviewapp/button/index.wxml: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /iviewapp/button/index.wxss: -------------------------------------------------------------------------------- 1 | .i-btn{text-align:center;vertical-align:middle;touch-action:manipulation;cursor:pointer;background-image:none;white-space:nowrap;user-select:none;font-size:14px;border-radius:2px;border:0!important;position:relative;text-decoration:none;height:44px;line-height:44px;box-shadow:inset 0 0 0 1px rgba(0,0,0,.1);color:#fff!important;background:#f7f7f7!important;color:#495060!important;margin:10px}.i-btn-long{border-radius:0;margin:0;box-shadow:none}.i-btn-large{height:48px;line-height:48px}.i-btn-small{height:40px;line-height:40px}.i-btn-primary{color:#fff!important;background:#2d8cf0!important}.i-btn-ghost{color:#fff!important;background:#fff!important;color:#495060!important}.i-btn-success{color:#fff!important;background:#19be6b!important}.i-btn-warning{color:#fff!important;background:#f90!important}.i-btn-error{color:#fff!important;background:#ed3f14!important}.i-btn-info{color:#fff!important;background:#2db7f5!important}.i-btn-circle{border-radius:44px}.i-btn-large.i-btn-circle{border-radius:48px}.i-btn-small.i-btn-circle{border-radius:40px}.i-btn-loading{opacity:.6}.i-btn-loading-inner{display:inline-block;margin-right:12px;vertical-align:middle;width:14px;height:14px;background:0 0;border-radius:50%;border:2px solid #fff;border-color:#fff #fff #fff transparent;animation:btn-spin .6s linear;animation-iteration-count:infinite}.i-btn-disabled{color:#bbbec4!important;background:#f7f7f7!important}@keyframes btn-spin{0%{transform:rotate(0)}100%{transform:rotate(360deg)}} -------------------------------------------------------------------------------- /iviewapp/card/index.js: -------------------------------------------------------------------------------- 1 | Component({ 2 | externalClasses: ['i-class'], 3 | 4 | options: { 5 | multipleSlots: true 6 | }, 7 | 8 | properties: { 9 | full: { 10 | type: Boolean, 11 | value: false 12 | }, 13 | thumb: { 14 | type: String, 15 | value: '' 16 | }, 17 | title: { 18 | type: String, 19 | value: '' 20 | }, 21 | extra: { 22 | type: String, 23 | value: '' 24 | } 25 | } 26 | }); 27 | -------------------------------------------------------------------------------- /iviewapp/card/index.json: -------------------------------------------------------------------------------- 1 | { 2 | "component": true 3 | } 4 | -------------------------------------------------------------------------------- /iviewapp/card/index.wxml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | {{ title }} 6 | 7 | {{ extra }} 8 | 9 | 10 | 11 | 12 | -------------------------------------------------------------------------------- /iviewapp/card/index.wxss: -------------------------------------------------------------------------------- 1 | .i-card{margin:0 16px;font-size:14px;overflow:hidden;position:relative;background:#fff;border:1rpx solid #dddee1;border-radius:5px}.i-card-full{margin:0;border-left:none;border-right:none;border-radius:0}.i-card-header{display:flex;padding:6px 16px;align-items:center}.i-card-header-content{flex:1;text-align:left}.i-card-header-thumb{display:inline-block;width:64px;height:64px;position:relative;margin-left:auto;margin-right:auto;overflow:hidden;background-size:cover;vertical-align:middle}.i-card-header-title{display:inline-block;vertical-align:middle;font-size:14px;color:#1c2438}.i-card-header-extra{flex:1;text-align:right;font-size:14px;color:#80848f}.i-card-body{position:relative;padding:6px 16px;color:#495060;font-size:14px}.i-card-body::before{content:'';position:absolute;top:0;left:0;width:200%;height:200%;transform:scale(.5);transform-origin:0 0;pointer-events:none;box-sizing:border-box;border:0 solid #e9eaec;border-top-width:1px}.i-card-footer{position:relative;padding:6px 16px;color:#80848f;font-size:12px} -------------------------------------------------------------------------------- /iviewapp/cell-group/index.js: -------------------------------------------------------------------------------- 1 | Component({ 2 | externalClasses: ['i-class'], 3 | 4 | relations: { 5 | '../cell/index': { 6 | type: 'child', 7 | linked () { 8 | this._updateIsLastCell(); 9 | }, 10 | linkChanged () { 11 | this._updateIsLastCell(); 12 | }, 13 | unlinked () { 14 | this._updateIsLastCell(); 15 | } 16 | } 17 | }, 18 | 19 | methods: { 20 | _updateIsLastCell() { 21 | let cells = this.getRelationNodes('../cell/index'); 22 | const len = cells.length; 23 | 24 | if (len > 0) { 25 | let lastIndex = len - 1; 26 | 27 | cells.forEach((cell, index) => { 28 | cell.updateIsLastCell(index === lastIndex); 29 | }); 30 | } 31 | } 32 | } 33 | }); 34 | -------------------------------------------------------------------------------- /iviewapp/cell-group/index.json: -------------------------------------------------------------------------------- 1 | { 2 | "component": true 3 | } 4 | -------------------------------------------------------------------------------- /iviewapp/cell-group/index.wxml: -------------------------------------------------------------------------------- 1 | 2 | 3 | -------------------------------------------------------------------------------- /iviewapp/cell/index.json: -------------------------------------------------------------------------------- 1 | { 2 | "component": true 3 | } 4 | -------------------------------------------------------------------------------- /iviewapp/cell/index.wxml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | {{ title }} 7 | {{ label }} 8 | 9 | 10 | 11 | {{ value }} 12 | 13 | 14 | 15 | 16 | -------------------------------------------------------------------------------- /iviewapp/cell/index.wxss: -------------------------------------------------------------------------------- 1 | .i-cell{position:relative;padding:12px 15px;display:flex;background:#fff;align-items:center;line-height:1.4;font-size:14px;overflow:hidden}.i-cell::after{content:'';position:absolute;top:0;left:0;width:200%;height:200%;transform:scale(.5);transform-origin:0 0;pointer-events:none;box-sizing:border-box;border:0 solid #e9eaec;border-bottom-width:1px;left:15px;right:0}.i-cell-last::after{display:none}.i-cell-icon{margin-right:5px}.i-cell-icon:empty{display:none}.i-cell-bd{flex:1}.i-cell-text{line-height:24px;font-size:14px}.i-cell-desc{line-height:1.2;font-size:12px;color:#80848f}.i-cell-ft{position:relative;text-align:right;color:#495060}.i-cell-access .i-cell-ft{padding-right:13px}.i-cell-access .i-cell-ft::after{content:" ";display:inline-block;width:6px;height:6px;position:absolute;top:50%;right:2px;border-width:2px 2px 0 0;border-color:#dddee1;border-style:solid;transform:translateY(-50%) matrix(.71,.71,-.71,.71,0,0)} -------------------------------------------------------------------------------- /iviewapp/checkbox-group/index.js: -------------------------------------------------------------------------------- 1 | Component({ 2 | externalClasses: ['i-class'], 3 | relations: { 4 | '../checkbox/index': { 5 | type: 'child', 6 | linked() { 7 | this.changeCurrent(); 8 | }, 9 | linkChanged() { 10 | this.changeCurrent(); 11 | }, 12 | unlinked() { 13 | this.changeCurrent(); 14 | } 15 | } 16 | }, 17 | properties: { 18 | current: { 19 | type: Array, 20 | value: [], 21 | observer: 'changeCurrent' 22 | }, 23 | }, 24 | methods: { 25 | changeCurrent(val = this.data.current) { 26 | let items = this.getRelationNodes('../checkbox/index'); 27 | const len = items.length; 28 | if (len > 0) { 29 | items.forEach(item => { 30 | item.changeCurrent(val.indexOf(item.data.value) !== -1); 31 | }); 32 | } 33 | }, 34 | emitEvent(current) { 35 | this.triggerEvent('change', current); 36 | } 37 | } 38 | }); 39 | -------------------------------------------------------------------------------- /iviewapp/checkbox-group/index.json: -------------------------------------------------------------------------------- 1 | { 2 | "component": true, 3 | "usingComponents": 4 | { 5 | "i-cell-group": "../cell-group/index" 6 | } 7 | } 8 | -------------------------------------------------------------------------------- /iviewapp/checkbox-group/index.wxml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | -------------------------------------------------------------------------------- /iviewapp/checkbox-group/index.wxss: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/chywx/xinghengtiku/030a83262bcd107363b1c7a8e6260feb7db3f479/iviewapp/checkbox-group/index.wxss -------------------------------------------------------------------------------- /iviewapp/checkbox/index.js: -------------------------------------------------------------------------------- 1 | const prefixCls = 'i-checkbox'; 2 | 3 | Component({ 4 | externalClasses: ['i-class'], 5 | relations: { 6 | '../checkbox-group/index': { 7 | type: 'parent' 8 | } 9 | }, 10 | properties: { 11 | value: { 12 | type: String, 13 | value: '' 14 | }, 15 | checked: { 16 | type: Boolean, 17 | value: false 18 | }, 19 | disabled: { 20 | type: Boolean, 21 | value: false 22 | }, 23 | color: { 24 | type: String, 25 | value: '#2d8cf0' 26 | }, 27 | position: { 28 | type: String, 29 | value: 'left', //left right 30 | observer: 'setPosition' 31 | } 32 | }, 33 | data: { 34 | checked: true, 35 | positionCls: `${prefixCls}-checkbox-left`, 36 | }, 37 | attached() { 38 | this.setPosition(); 39 | }, 40 | methods: { 41 | changeCurrent(current) { 42 | this.setData({ checked: current }); 43 | }, 44 | checkboxChange() { 45 | if (this.data.disabled) return; 46 | const item = { current: !this.data.checked, value: this.data.value }; 47 | const parent = this.getRelationNodes('../checkbox-group/index')[0]; 48 | parent ? parent.emitEvent(item) : this.triggerEvent('change', item); 49 | }, 50 | setPosition() { 51 | this.setData({ 52 | positionCls: this.data.position.indexOf('left') !== -1 ? `${prefixCls}-checkbox-left` : `${prefixCls}-checkbox-right`, 53 | }); 54 | } 55 | } 56 | }); 57 | -------------------------------------------------------------------------------- /iviewapp/checkbox/index.json: -------------------------------------------------------------------------------- 1 | { 2 | "component": true, 3 | "usingComponents": 4 | { 5 | "i-cell": "../cell/index" 6 | } 7 | } 8 | -------------------------------------------------------------------------------- /iviewapp/checkbox/index.wxml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 7 | 8 | 9 | -------------------------------------------------------------------------------- /iviewapp/checkbox/index.wxss: -------------------------------------------------------------------------------- 1 | .i-checkbox-cell::after{display:block}.i-checkbox-checkbox-left{float:left}.i-checkbox-checkbox-right{float:right}.i-checkbox-radio{vertical-align:middle}.i-checkbox-title{display:inline-block;vertical-align:middle} -------------------------------------------------------------------------------- /iviewapp/col/index.js: -------------------------------------------------------------------------------- 1 | Component({ 2 | externalClasses: ['i-class'], 3 | 4 | relations: { 5 | '../row/index': { 6 | type: 'parent' 7 | } 8 | }, 9 | 10 | properties: { 11 | span: { 12 | value: 0, 13 | type: Number 14 | }, 15 | offset: { 16 | value: 0, 17 | type: Number 18 | } 19 | } 20 | }); 21 | -------------------------------------------------------------------------------- /iviewapp/col/index.json: -------------------------------------------------------------------------------- 1 | { 2 | "component": true 3 | } -------------------------------------------------------------------------------- /iviewapp/col/index.wxml: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /iviewapp/drawer/index.js: -------------------------------------------------------------------------------- 1 | Component({ 2 | externalClasses: ['i-class'], 3 | properties: { 4 | visible: { 5 | type: Boolean, 6 | value: false 7 | }, 8 | 9 | mask: { 10 | type: Boolean, 11 | value: true 12 | }, 13 | 14 | maskClosable: { 15 | type: Boolean, 16 | value: true 17 | }, 18 | 19 | mode: { 20 | type: String, 21 | value: 'left' // left right 22 | } 23 | }, 24 | data: {}, 25 | methods: { 26 | handleMaskClick() { 27 | if (!this.data.maskClosable) { 28 | return; 29 | } 30 | this.triggerEvent('close', {}); 31 | } 32 | } 33 | }); 34 | -------------------------------------------------------------------------------- /iviewapp/drawer/index.json: -------------------------------------------------------------------------------- 1 | { 2 | "component": true 3 | } 4 | -------------------------------------------------------------------------------- /iviewapp/drawer/index.wxml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | -------------------------------------------------------------------------------- /iviewapp/drawer/index.wxss: -------------------------------------------------------------------------------- 1 | .i-drawer{visibility:hidden}.i-drawer-show{visibility:visible}.i-drawer-show .i-drawer-mask{display:block}.i-drawer-show .i-drawer-container{opacity:1}.i-drawer-show.i-drawer-left .i-drawer-container,.i-drawer-show.i-drawer-right .i-drawer-container{transform:translate3d(0,-50%,0)}.i-drawer-mask{display:none;position:fixed;top:0;left:0;right:0;bottom:0;z-index:6;background:rgba(0,0,0,.6)}.i-drawer-container{position:fixed;left:50%;top:50%;transform:translate3d(-50%,-50%,0);transform-origin:center;transition:all .4s ease;z-index:7;opacity:0}.i-drawer-left .i-drawer-container{left:0;top:50%;transform:translate3d(-100%,-50%,0)}.i-drawer-right .i-drawer-container{right:0;top:50%;left:auto;transform:translate3d(100%,-50%,0)} -------------------------------------------------------------------------------- /iviewapp/grid-icon/index.js: -------------------------------------------------------------------------------- 1 | Component({ 2 | externalClasses: ['i-class'], 3 | 4 | relations: { 5 | '../grid-item/index': { 6 | type: 'parent' 7 | } 8 | }, 9 | 10 | }); 11 | -------------------------------------------------------------------------------- /iviewapp/grid-icon/index.json: -------------------------------------------------------------------------------- 1 | { 2 | "component": true 3 | } 4 | -------------------------------------------------------------------------------- /iviewapp/grid-icon/index.wxml: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /iviewapp/grid-icon/index.wxss: -------------------------------------------------------------------------------- 1 | .i-grid-icon{display:block;width:28px;height:28px;margin:0 auto}.i-grid-icon image{width:100%;height:100%} -------------------------------------------------------------------------------- /iviewapp/grid-item/index.js: -------------------------------------------------------------------------------- 1 | Component({ 2 | externalClasses: ['i-class'], 3 | 4 | relations: { 5 | '../grid/index': { 6 | type: 'parent' 7 | }, 8 | '../grid-icon/index': { 9 | type: 'child' 10 | } 11 | }, 12 | 13 | data: { 14 | width: '33.33%' 15 | } 16 | }); 17 | -------------------------------------------------------------------------------- /iviewapp/grid-item/index.json: -------------------------------------------------------------------------------- 1 | { 2 | "component": true 3 | } 4 | -------------------------------------------------------------------------------- /iviewapp/grid-item/index.wxml: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /iviewapp/grid-item/index.wxss: -------------------------------------------------------------------------------- 1 | .i-grid-item{position:relative;float:left;padding:20px 10px;width:33.33333333%;box-sizing:border-box;border-right:1rpx solid #e9eaec;border-bottom:1rpx solid #e9eaec} -------------------------------------------------------------------------------- /iviewapp/grid-label/index.js: -------------------------------------------------------------------------------- 1 | Component({ 2 | externalClasses: ['i-class'], 3 | 4 | relations: { 5 | '../grid-item/index': { 6 | type: 'parent' 7 | } 8 | }, 9 | 10 | }); 11 | -------------------------------------------------------------------------------- /iviewapp/grid-label/index.json: -------------------------------------------------------------------------------- 1 | { 2 | "component": true 3 | } 4 | -------------------------------------------------------------------------------- /iviewapp/grid-label/index.wxml: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /iviewapp/grid-label/index.wxss: -------------------------------------------------------------------------------- 1 | .i-grid-label{margin-top:5px;display:block;text-align:center;color:#1c2438;font-size:14px;white-space:nowrap;text-overflow:ellipsis;overflow:hidden} -------------------------------------------------------------------------------- /iviewapp/grid/index.js: -------------------------------------------------------------------------------- 1 | Component({ 2 | externalClasses: ['i-class'], 3 | 4 | relations: { 5 | '../grid-item/index': { 6 | type: 'child', 7 | linked () { 8 | this.setGridItemWidth(); 9 | }, 10 | linkChanged () { 11 | this.setGridItemWidth(); 12 | }, 13 | unlinked () { 14 | this.setGridItemWidth(); 15 | } 16 | } 17 | }, 18 | 19 | methods: { 20 | setGridItemWidth () { 21 | const nodes = this.getRelationNodes('../grid-item/index'); 22 | 23 | // const len = nodes.length; 24 | // if (len < 3) { 25 | // nodes.forEach(item => { 26 | // item.setData({ 27 | // 'width': '33.33%' 28 | // }); 29 | // }); 30 | // } else { 31 | // const width = 100 / nodes.length; 32 | // nodes.forEach(item => { 33 | // item.setData({ 34 | // 'width': width + '%' 35 | // }); 36 | // }); 37 | // } 38 | const width = 100 / nodes.length; 39 | nodes.forEach(item => { 40 | item.setData({ 41 | 'width': width + '%' 42 | }); 43 | }); 44 | } 45 | }, 46 | 47 | ready () { 48 | this.setGridItemWidth(); 49 | } 50 | }); 51 | -------------------------------------------------------------------------------- /iviewapp/grid/index.json: -------------------------------------------------------------------------------- 1 | { 2 | "component": true 3 | } 4 | -------------------------------------------------------------------------------- /iviewapp/grid/index.wxml: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /iviewapp/grid/index.wxss: -------------------------------------------------------------------------------- 1 | .i-grid{border-top:1rpx solid #e9eaec;border-left:1rpx solid #e9eaec;overflow:hidden} -------------------------------------------------------------------------------- /iviewapp/icon/index.js: -------------------------------------------------------------------------------- 1 | Component({ 2 | externalClasses: ['i-class'], 3 | 4 | properties: { 5 | type: { 6 | type: String, 7 | value: '' 8 | }, 9 | size: { 10 | type: Number, 11 | value: 14 12 | }, 13 | color: { 14 | type: String, 15 | value: '' 16 | } 17 | } 18 | }); 19 | -------------------------------------------------------------------------------- /iviewapp/icon/index.json: -------------------------------------------------------------------------------- 1 | { 2 | "component": true 3 | } 4 | -------------------------------------------------------------------------------- /iviewapp/icon/index.wxml: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /iviewapp/input-number/index.json: -------------------------------------------------------------------------------- 1 | { 2 | "component": true 3 | } 4 | -------------------------------------------------------------------------------- /iviewapp/input-number/index.wxml: -------------------------------------------------------------------------------- 1 | 2 | - 3 | 4 | + 5 | 6 | -------------------------------------------------------------------------------- /iviewapp/input-number/index.wxss: -------------------------------------------------------------------------------- 1 | .i-input-number{color:#495060}.i-input-number view{display:inline-block;line-height:20px;padding:5px 0;text-align:center;min-width:40px;box-sizing:border-box;vertical-align:middle;font-size:12px;border:1rpx solid #dddee1}.i-input-number-minus{border-right:none;border-radius:2px 0 0 2px}.i-input-number-plus{border-left:none;border-radius:0 2px 2px 0}.i-input-number-text{border:1rpx solid #dddee1;display:inline-block;text-align:center;vertical-align:middle;height:30px;width:40px;min-height:auto;font-size:12px;line-height:30px}.i-input-number-disabled{border-color:#dddee1;color:#bbbec4;background:#f7f7f7} -------------------------------------------------------------------------------- /iviewapp/input/index.js: -------------------------------------------------------------------------------- 1 | Component({ 2 | behaviors: ['wx://form-field'], 3 | 4 | externalClasses: ['i-class'], 5 | 6 | properties: { 7 | title: { 8 | type: String 9 | }, 10 | // text || textarea || password || number 11 | type: { 12 | type: String, 13 | value: 'text' 14 | }, 15 | disabled: { 16 | type: Boolean, 17 | value: false 18 | }, 19 | placeholder: { 20 | type: String, 21 | value: '' 22 | }, 23 | autofocus: { 24 | type: Boolean, 25 | value: false 26 | }, 27 | mode: { 28 | type: String, 29 | value: 'normal' 30 | }, 31 | right: { 32 | type: Boolean, 33 | value: false 34 | }, 35 | error: { 36 | type: Boolean, 37 | value: false 38 | }, 39 | maxlength: { 40 | type: Number 41 | } 42 | }, 43 | 44 | methods: { 45 | handleInputChange(event) { 46 | const { detail = {} } = event; 47 | const { value = '' } = detail; 48 | this.setData({ value }); 49 | 50 | this.triggerEvent('change', event); 51 | }, 52 | 53 | handleInputFocus(event) { 54 | this.triggerEvent('focus', event); 55 | }, 56 | 57 | handleInputBlur(event) { 58 | this.triggerEvent('blur', event); 59 | } 60 | } 61 | }); 62 | -------------------------------------------------------------------------------- /iviewapp/input/index.json: -------------------------------------------------------------------------------- 1 | { 2 | "component": true 3 | } 4 | -------------------------------------------------------------------------------- /iviewapp/input/index.wxml: -------------------------------------------------------------------------------- 1 | 2 | {{ title }} 3 | 17 | 31 | 32 | -------------------------------------------------------------------------------- /iviewapp/input/index.wxss: -------------------------------------------------------------------------------- 1 | .i-cell{position:relative;padding:12px 15px;display:flex;background:#fff;align-items:center;line-height:1.4;font-size:14px;overflow:hidden}.i-cell::after{content:'';position:absolute;top:0;left:0;width:200%;height:200%;transform:scale(.5);transform-origin:0 0;pointer-events:none;box-sizing:border-box;border:0 solid #e9eaec;border-bottom-width:1px;left:15px;right:0}.i-cell-last::after{display:none}.i-cell-icon{margin-right:5px}.i-cell-icon:empty{display:none}.i-cell-bd{flex:1}.i-cell-text{line-height:24px;font-size:14px}.i-cell-desc{line-height:1.2;font-size:12px;color:#80848f}.i-cell-ft{position:relative;text-align:right;color:#495060}.i-cell-access .i-cell-ft{padding-right:13px}.i-cell-access .i-cell-ft::after{content:" ";display:inline-block;width:6px;height:6px;position:absolute;top:50%;right:2px;border-width:2px 2px 0 0;border-color:#dddee1;border-style:solid;transform:translateY(-50%) matrix(.71,.71,-.71,.71,0,0)}.i-input{padding:7px 15px;color:#495060}.i-input-wrapped{margin:10px 15px;background-color:#fff}.i-input-wrapped::after{left:0;border-width:1px;border-radius:4px}.i-input-error{color:#ed3f14}.i-input-title{color:#495060;min-width:65px;padding-right:10px}.i-input-input{flex:1;line-height:1.6;padding:4px 0;min-height:22px;height:auto;font-size:14px}.i-input-placeholder{font-size:14px}.i-input-input-right{text-align:right}.i-input.i-input-wrapped::after{display:block}.i-input-wrapped.i-input-error::after{border-color:#ed3f14} -------------------------------------------------------------------------------- /iviewapp/message/index.js: -------------------------------------------------------------------------------- 1 | const default_data = { 2 | visible: false, 3 | content: '', 4 | duration: 2, 5 | type: 'default', // default || success || warning || error 6 | }; 7 | 8 | let timmer = null; 9 | 10 | Component({ 11 | externalClasses: ['i-class'], 12 | 13 | data: { 14 | ...default_data 15 | }, 16 | 17 | methods: { 18 | handleShow (options) { 19 | const { type = 'default', duration = 2 } = options; 20 | 21 | this.setData({ 22 | ...options, 23 | type, 24 | duration, 25 | visible: true 26 | }); 27 | 28 | const d = this.data.duration * 1000; 29 | 30 | if (timmer) clearTimeout(timmer); 31 | if (d !== 0) { 32 | timmer = setTimeout(() => { 33 | this.handleHide(); 34 | timmer = null; 35 | }, d); 36 | } 37 | }, 38 | 39 | handleHide () { 40 | this.setData({ 41 | ...default_data 42 | }); 43 | } 44 | } 45 | }); -------------------------------------------------------------------------------- /iviewapp/message/index.json: -------------------------------------------------------------------------------- 1 | { 2 | "component": true 3 | } 4 | -------------------------------------------------------------------------------- /iviewapp/message/index.wxml: -------------------------------------------------------------------------------- 1 | 2 | {{ content }} 3 | -------------------------------------------------------------------------------- /iviewapp/message/index.wxss: -------------------------------------------------------------------------------- 1 | .i-message{display:block;width:100%;min-height:32px;line-height:2.3;position:fixed;top:0;left:0;right:0;background:#2d8cf0;color:#fff;text-align:center;font-size:14px;z-index:1010;opacity:0;-webkit-transform:translateZ(0) translateY(-100%);transition:all .4s ease-in-out}.i-message-show{-webkit-transform:translateZ(0) translateY(0);opacity:1}.i-message-default{background:#2d8cf0}.i-message-success{background:#19be6b}.i-message-warning{background:#f90}.i-message-error{background:#ed3f14} -------------------------------------------------------------------------------- /iviewapp/modal/index.js: -------------------------------------------------------------------------------- 1 | Component({ 2 | externalClasses: ['i-class', 'i-class-mask'], 3 | 4 | properties: { 5 | visible: { 6 | type: Boolean, 7 | value: false 8 | }, 9 | title: { 10 | type: String, 11 | value: '' 12 | }, 13 | showOk: { 14 | type: Boolean, 15 | value: true 16 | }, 17 | showCancel: { 18 | type: Boolean, 19 | value: true 20 | }, 21 | okText: { 22 | type: String, 23 | value: '确定' 24 | }, 25 | cancelText: { 26 | type: String, 27 | value: '取消' 28 | }, 29 | // 按钮组,有此值时,不显示 ok 和 cancel 按钮 30 | actions: { 31 | type: Array, 32 | value: [] 33 | }, 34 | // horizontal || vertical 35 | actionMode: { 36 | type: String, 37 | value: 'horizontal' 38 | } 39 | }, 40 | 41 | methods: { 42 | handleClickItem ({ currentTarget = {} }) { 43 | const dataset = currentTarget.dataset || {}; 44 | const { index } = dataset; 45 | this.triggerEvent('click', { index }); 46 | }, 47 | handleClickOk () { 48 | this.triggerEvent('ok'); 49 | }, 50 | handleClickCancel () { 51 | this.triggerEvent('cancel'); 52 | } 53 | } 54 | }); 55 | -------------------------------------------------------------------------------- /iviewapp/modal/index.json: -------------------------------------------------------------------------------- 1 | { 2 | "component": true, 3 | "usingComponents": { 4 | "i-grid": "../grid/index", 5 | "i-grid-item": "../grid-item/index", 6 | "i-button": "../button/index", 7 | "i-icon": "../icon/index" 8 | } 9 | } 10 | -------------------------------------------------------------------------------- /iviewapp/modal/index.wxss: -------------------------------------------------------------------------------- 1 | .i-modal{position:fixed;overflow:auto;top:0;right:0;bottom:0;left:0;height:100%;z-index:1000;display:flex;outline:0;-webkit-box-align:center;align-items:center;-webkit-box-pack:center;justify-content:center;transform:translateZ(1px);opacity:0;visibility:hidden}.i-modal-show{visibility:visible;opacity:1}.i-modal-mask{position:fixed;top:0;left:0;right:0;bottom:0;background:rgba(0,0,0,.7);z-index:1000;transition:all .2s ease-in-out;opacity:0;visibility:hidden}.i-modal-mask-show{opacity:1;visibility:visible}.i-modal-main{width:270px;position:relative}.i-modal-content{border-radius:7px;padding-top:15px;position:relative;background-color:#fff;border:0;background-clip:padding-box;text-align:center;height:100%;overflow:hidden}.i-modal-body{max-height:100px;margin-bottom:15px;font-size:14px;color:#80848f;height:100%;line-height:1.5;overflow:auto}.i-modal-title{padding:6px 15px 15px;margin:0;font-size:18px;line-height:1;color:#1c2438;text-align:center}.i-modal-actions{margin:0 1px}.i-modal-action-vertical{position:relative}.i-modal-action-vertical:after{content:'';position:absolute;top:0;left:0;width:200%;height:200%;transform:scale(.5);transform-origin:0 0;pointer-events:none;box-sizing:border-box;border:0 solid #e9eaec;border-top-width:1px}.i-modal-grid{border-radius:0 0 7px 7px;border-left:none}.i-modal-grid-item,.i-modal-grid-item-last{padding:0;border-bottom:none}.i-modal-grid-item-last{border-right:none}.i-modal-btn-ok{color:#2d8cf0!important}.i-modal-btn-loading{display:inline-block;vertical-align:middle;margin-right:10px;width:12px;height:12px;background:0 0;border-radius:50%;border:2px solid #e5e5e5;border-color:#666 #e5e5e5 #e5e5e5 #e5e5e5;animation:btn-spin .6s linear;animation-iteration-count:infinite}.i-modal-btn-text{display:inline-block;vertical-align:middle}.i-modal-btn-icon{font-size:14px!important;margin-right:4px}@keyframes btn-spin{0%{transform:rotate(0)}100%{transform:rotate(360deg)}} -------------------------------------------------------------------------------- /iviewapp/notice-bar/index.json: -------------------------------------------------------------------------------- 1 | { 2 | "component": true, 3 | "usingComponents": 4 | { 5 | "i-icon": "../icon/index" 6 | } 7 | } 8 | -------------------------------------------------------------------------------- /iviewapp/notice-bar/index.wxml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | -------------------------------------------------------------------------------- /iviewapp/notice-bar/index.wxss: -------------------------------------------------------------------------------- 1 | .i-noticebar{display:flex;height:72rpx;line-height:72rpx;font-size:14px;color:#f76a24;background-color:#fefcec;overflow:hidden}.i-noticebar-icon{display:flex;margin-left:30rpx;align-items:center}.i-noticebar-icon+view{margin-left:10rpx}.i-noticebar-operation{display:flex;margin-right:16rpx;align-items:center}.i-noticebar-content-wrap{position:relative;flex:1;margin:0 30rpx;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.i-noticebar-content-wrap .i-noticebar-content{position:absolute;transition-duration:20s} -------------------------------------------------------------------------------- /iviewapp/page/index.js: -------------------------------------------------------------------------------- 1 | Component({ 2 | externalClasses: ['i-class'], 3 | 4 | options: { 5 | multipleSlots: true 6 | }, 7 | 8 | properties: { 9 | // button || number || pointer 10 | mode: { 11 | type: String, 12 | value: 'button' 13 | }, 14 | current: { 15 | type: Number, 16 | value: 1 17 | }, 18 | total: { 19 | type: Number, 20 | value: 0 21 | }, 22 | // 是否隐藏数值 23 | simple: { 24 | type: Boolean, 25 | value: false 26 | } 27 | }, 28 | 29 | methods: { 30 | handleChange (type) { 31 | this.triggerEvent('change', { 32 | type: type 33 | }); 34 | }, 35 | handlePrev () { 36 | this.handleChange('prev'); 37 | }, 38 | handleNext () { 39 | this.handleChange('next'); 40 | } 41 | } 42 | }); 43 | -------------------------------------------------------------------------------- /iviewapp/page/index.json: -------------------------------------------------------------------------------- 1 | { 2 | "component": true, 3 | "usingComponents": 4 | { 5 | "i-button": "../button/index" 6 | } 7 | } 8 | -------------------------------------------------------------------------------- /iviewapp/page/index.wxml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | {{ current }}/{{total}} 7 | 8 | 9 | 10 | 11 | 12 | 13 | 14 | 15 | -------------------------------------------------------------------------------- /iviewapp/page/index.wxss: -------------------------------------------------------------------------------- 1 | .i-page{display:block;width:100%;height:44px;overflow:hidden;box-sizing:border-box;position:relative}.i-page-prev{position:absolute;left:10px;top:0}.i-page-next{position:absolute;right:10px;top:0}.i-page-number{width:100%;height:44px;line-height:44px;margin:0 auto;text-align:center}.i-page-number-current{display:inline;color:#2d8cf0}.i-page-pointer{width:100%;height:44px;line-height:44px;margin:0 auto;text-align:center}.i-page-pointer-dot{display:inline-block;width:8px;height:8px;margin:0 2px;border-radius:50%;background:#bbbec4}.i-page-pointer-dot.current{background:#80848f}.i-page-button{display:inline-block;margin:0} -------------------------------------------------------------------------------- /iviewapp/panel/index.js: -------------------------------------------------------------------------------- 1 | Component({ 2 | externalClasses: ['i-class'], 3 | 4 | properties: { 5 | title: { 6 | type: String, 7 | value: '' 8 | }, 9 | // 标题顶部距离 10 | hideTop: { 11 | type: Boolean, 12 | value: false 13 | }, 14 | hideBorder: { 15 | type: Boolean, 16 | value: false 17 | } 18 | } 19 | }); 20 | -------------------------------------------------------------------------------- /iviewapp/panel/index.json: -------------------------------------------------------------------------------- 1 | { 2 | "component": true 3 | } 4 | -------------------------------------------------------------------------------- /iviewapp/panel/index.wxml: -------------------------------------------------------------------------------- 1 | 2 | {{ title }} 3 | 4 | 5 | -------------------------------------------------------------------------------- /iviewapp/panel/index.wxss: -------------------------------------------------------------------------------- 1 | .i-panel{position:relative;overflow:hidden}.i-panel-title{font-size:14px;line-height:1;color:#1c2438;padding:20px 16px 10px}.i-panel-title-hide-top{padding-top:0}.i-panel-content{position:relative;background:#fff;overflow:hidden}.i-panel-content::after{content:'';position:absolute;top:0;left:0;width:200%;height:200%;transform:scale(.5);transform-origin:0 0;pointer-events:none;box-sizing:border-box;border:0 solid #e9eaec;border-top-width:1px;border-bottom-width:1px}.i-panel-without-border::after{border:0 none} -------------------------------------------------------------------------------- /iviewapp/progress/index.js: -------------------------------------------------------------------------------- 1 | Component({ 2 | externalClasses: ['i-class'], 3 | 4 | properties: { 5 | percent: { 6 | type: Number, 7 | value: 0 8 | }, 9 | // normal || active || wrong || success 10 | status: { 11 | type: String, 12 | value: 'normal' 13 | }, 14 | strokeWidth: { 15 | type: Number, 16 | value: 10 17 | }, 18 | hideInfo: { 19 | type: Boolean, 20 | value: false 21 | } 22 | } 23 | }); 24 | -------------------------------------------------------------------------------- /iviewapp/progress/index.json: -------------------------------------------------------------------------------- 1 | { 2 | "component": true 3 | } 4 | -------------------------------------------------------------------------------- /iviewapp/progress/index.wxml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | {{ percent }}% 9 | 10 | -------------------------------------------------------------------------------- /iviewapp/progress/index.wxss: -------------------------------------------------------------------------------- 1 | .i-progress{display:inline-block;width:100%;font-size:12px;position:relative}.i-progress-outer{display:inline-block;width:100%;margin-right:0;padding-right:0;box-sizing:border-box}.i-progress-show-info .i-progress-outer{padding-right:55px;margin-right:-55px}.i-progress-inner{display:inline-block;width:100%;background-color:#f3f3f3;border-radius:100px;vertical-align:middle}.i-progress-bg{border-radius:100px;background-color:#2db7f5;transition:all .2s linear;position:relative}.i-progress-text{display:inline-block;margin-left:5px;text-align:left;font-size:1em;vertical-align:middle}.i-progress-active .i-progress-bg:before{content:'';opacity:0;position:absolute;top:0;left:0;right:0;bottom:0;background:#fff;border-radius:10px;animation:i-progress-active 2s ease-in-out infinite}.i-progress-wrong .i-progress-bg{background-color:#ed3f14}.i-progress-wrong .i-progress-text{color:#ed3f14}.i-progress-success .i-progress-bg{background-color:#19be6b}.i-progress-success .i-progress-text{color:#19be6b}@keyframes i-progress-active{0%{opacity:.3;width:0}100%{opacity:0;width:100%}} -------------------------------------------------------------------------------- /iviewapp/radio-group/index.js: -------------------------------------------------------------------------------- 1 | Component({ 2 | externalClasses: ['i-class'], 3 | relations: { 4 | '../radio/index': { 5 | type: 'child', 6 | linked() { 7 | this.changeCurrent(); 8 | }, 9 | linkChanged() { 10 | this.changeCurrent(); 11 | }, 12 | unlinked() { 13 | this.changeCurrent(); 14 | } 15 | } 16 | }, 17 | properties: { 18 | current: { 19 | type: String, 20 | value: '', 21 | observer: 'changeCurrent' 22 | }, 23 | }, 24 | methods: { 25 | changeCurrent(val = this.data.current) { 26 | let items = this.getRelationNodes('../radio/index'); 27 | const len = items.length; 28 | if (len > 0) { 29 | items.forEach(item => { 30 | item.changeCurrent(val === item.data.value); 31 | }); 32 | } 33 | }, 34 | emitEvent(current) { 35 | this.triggerEvent('change', current); 36 | } 37 | } 38 | }); 39 | -------------------------------------------------------------------------------- /iviewapp/radio-group/index.json: -------------------------------------------------------------------------------- 1 | { 2 | "component": true, 3 | "usingComponents": 4 | { 5 | "i-cell-group": "../cell-group/index" 6 | } 7 | } 8 | -------------------------------------------------------------------------------- /iviewapp/radio-group/index.wxml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | -------------------------------------------------------------------------------- /iviewapp/radio-group/index.wxss: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/chywx/xinghengtiku/030a83262bcd107363b1c7a8e6260feb7db3f479/iviewapp/radio-group/index.wxss -------------------------------------------------------------------------------- /iviewapp/radio/index.js: -------------------------------------------------------------------------------- 1 | const prefixCls = 'i-radio'; 2 | 3 | Component({ 4 | externalClasses: ['i-class'], 5 | relations: { 6 | '../radio-group/index': { 7 | type: 'parent' 8 | } 9 | }, 10 | properties: { 11 | value: { 12 | type: String, 13 | value: '' 14 | }, 15 | checked: { 16 | type: Boolean, 17 | value: false 18 | }, 19 | disabled: { 20 | type: Boolean, 21 | value: false 22 | }, 23 | color: { 24 | type: String, 25 | value: '#2d8cf0' 26 | }, 27 | position: { 28 | type: String, 29 | value: 'left', //left right 30 | observer: 'setPosition' 31 | } 32 | }, 33 | data: { 34 | checked: true, 35 | positionCls: `${prefixCls}-radio-left`, 36 | }, 37 | attached() { 38 | this.setPosition(); 39 | }, 40 | methods: { 41 | changeCurrent(current) { 42 | this.setData({ checked: current }); 43 | }, 44 | radioChange() { 45 | if (this.data.disabled) return; 46 | const item = { current: !this.data.checked, value: this.data.value }; 47 | const parent = this.getRelationNodes('../radio-group/index')[0]; 48 | parent ? parent.emitEvent(item) : this.triggerEvent('change', item); 49 | }, 50 | setPosition() { 51 | this.setData({ 52 | positionCls: this.data.position.indexOf('left') !== -1 ? `${prefixCls}-radio-left` : `${prefixCls}-radio-right`, 53 | }); 54 | } 55 | } 56 | }); 57 | -------------------------------------------------------------------------------- /iviewapp/radio/index.json: -------------------------------------------------------------------------------- 1 | { 2 | "component": true, 3 | "usingComponents": 4 | { 5 | "i-cell": "../cell/index" 6 | } 7 | } 8 | -------------------------------------------------------------------------------- /iviewapp/radio/index.wxml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 7 | 8 | 9 | -------------------------------------------------------------------------------- /iviewapp/radio/index.wxss: -------------------------------------------------------------------------------- 1 | .i-radio-cell::after{display:block}.i-radio-radio-left{float:left}.i-radio-radio-right{float:right}.i-radio-radio{vertical-align:middle}.i-radio-title{display:inline-block;vertical-align:middle} -------------------------------------------------------------------------------- /iviewapp/rate/index.json: -------------------------------------------------------------------------------- 1 | { 2 | "component": true, 3 | "usingComponents":{ 4 | "i-icon": "../icon/index" 5 | } 6 | } 7 | -------------------------------------------------------------------------------- /iviewapp/rate/index.wxml: -------------------------------------------------------------------------------- 1 | 3 | 4 | 10 | 11 | 12 | 13 | 14 | 15 | var prefixCls = 'i-rate'; 16 | module.exports = { 17 | getCurrent : function( value,index ){ 18 | if( index < value ){ 19 | return prefixCls + '-current' 20 | } 21 | } 22 | } 23 | 24 | -------------------------------------------------------------------------------- /iviewapp/rate/index.wxss: -------------------------------------------------------------------------------- 1 | .i-rate{margin:0;padding:0;font-size:20px;display:inline-block;vertical-align:middle;font-weight:400;font-style:normal}.i-rate-hide-input{display:none}.i-rate-star{display:inline-block;color:#e9e9e9}.i-rate-current{color:#f5a623}.i-rate-text{display:inline-block;vertical-align:middle;margin-left:6px;font-size:14px} -------------------------------------------------------------------------------- /iviewapp/row/index.js: -------------------------------------------------------------------------------- 1 | Component({ 2 | externalClasses: ['i-class'], 3 | 4 | relations: { 5 | '../col/index': { 6 | type: 'child' 7 | } 8 | } 9 | }); 10 | -------------------------------------------------------------------------------- /iviewapp/row/index.json: -------------------------------------------------------------------------------- 1 | { 2 | "component": true 3 | } 4 | -------------------------------------------------------------------------------- /iviewapp/row/index.wxml: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /iviewapp/row/index.wxss: -------------------------------------------------------------------------------- 1 | .i-row:after{content:"";display:table;clear:both} -------------------------------------------------------------------------------- /iviewapp/slide/index.js: -------------------------------------------------------------------------------- 1 | Component({ 2 | externalClasses: ['i-class'], 3 | options: { 4 | // 在组件定义时的选项中启用多slot支持 5 | multipleSlots: true 6 | }, 7 | methods : { 8 | handleTap2(){ 9 | console.log(event,1111111) 10 | }, 11 | handleTap3(){ 12 | 13 | } 14 | } 15 | }); 16 | -------------------------------------------------------------------------------- /iviewapp/slide/index.json: -------------------------------------------------------------------------------- 1 | { 2 | "component": true, 3 | "usingComponents": 4 | { 5 | "i-button": "../button/index", 6 | "i-icon": "../icon/index" 7 | } 8 | } 9 | -------------------------------------------------------------------------------- /iviewapp/slide/index.wxml: -------------------------------------------------------------------------------- 1 | 2 | 1111 3 | 4 | -------------------------------------------------------------------------------- /iviewapp/slide/index.wxss: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/chywx/xinghengtiku/030a83262bcd107363b1c7a8e6260feb7db3f479/iviewapp/slide/index.wxss -------------------------------------------------------------------------------- /iviewapp/spin/index.js: -------------------------------------------------------------------------------- 1 | Component({ 2 | externalClasses: ['i-class'], 3 | 4 | properties: { 5 | // small || default || large 6 | size: { 7 | type: String, 8 | value: 'default' 9 | }, 10 | fix: { 11 | type: Boolean, 12 | value: false 13 | }, 14 | fullscreen: { 15 | type: Boolean, 16 | value: false 17 | }, 18 | custom: { 19 | type: Boolean, 20 | value: false 21 | } 22 | } 23 | }); 24 | -------------------------------------------------------------------------------- /iviewapp/spin/index.json: -------------------------------------------------------------------------------- 1 | { 2 | "component": true 3 | } 4 | -------------------------------------------------------------------------------- /iviewapp/spin/index.wxml: -------------------------------------------------------------------------------- 1 | 2 |
3 | 4 |
5 |
6 |
7 | -------------------------------------------------------------------------------- /iviewapp/spin/index.wxss: -------------------------------------------------------------------------------- 1 | .i-spin{color:#2d8cf0;vertical-align:middle;text-align:center}.i-spin-dot{position:relative;display:block;border-radius:50%;background-color:#2d8cf0;width:20px;height:20px;animation:ani-spin-bounce 1s 0s ease-in-out infinite}.i-spin-large .i-spin-dot{width:32px;height:32px}.i-spin-small .i-spin-dot{width:12px;height:12px}.i-spin-fix{position:absolute;top:0;left:0;z-index:8;width:100%;height:100%;background-color:rgba(255,255,255,.9)}.i-spin-fullscreen{z-index:2010}.i-spin-fullscreen-wrapper{position:fixed;top:0;right:0;bottom:0;left:0}.i-spin-fix .i-spin-main{position:absolute;top:50%;left:50%;-ms-transform:translate(-50%,-50%);transform:translate(-50%,-50%)}.i-spin-fix .i-spin-dot{display:inline-block}.i-spin-show-text .i-spin-dot,.i-spin-text{display:none}.i-spin-show-text .i-spin-text{display:block;font-size:14px}@keyframes ani-spin-bounce{0%{transform:scale(0)}100%{transform:scale(1);opacity:0}} -------------------------------------------------------------------------------- /iviewapp/step/index.js: -------------------------------------------------------------------------------- 1 | Component({ 2 | externalClasses: ['i-class'], 3 | properties : { 4 | status : { 5 | type : String, 6 | //wait、process、finish、error 7 | value : '' 8 | }, 9 | title : { 10 | type : String, 11 | value : '' 12 | }, 13 | content : { 14 | type : String, 15 | value : '' 16 | }, 17 | icon : { 18 | type : String, 19 | value : '' 20 | } 21 | }, 22 | options: { 23 | // 在组件定义时的选项中启用多slot支持 24 | multipleSlots: true 25 | }, 26 | relations : { 27 | '../steps/index' : { 28 | type : 'parent' 29 | } 30 | }, 31 | data : { 32 | //step length 33 | len : 1, 34 | //current in step index 35 | index : 0, 36 | //parent component select current index 37 | current : 0, 38 | //css direction 39 | direction : 'horizontal' 40 | }, 41 | methods : { 42 | updateDataChange( options ){ 43 | this.setData({ 44 | len : options.len, 45 | index : options.index, 46 | current : options.current, 47 | direction : options.direction 48 | }) 49 | } 50 | } 51 | 52 | }) -------------------------------------------------------------------------------- /iviewapp/step/index.json: -------------------------------------------------------------------------------- 1 | { 2 | "component": true, 3 | "usingComponents": 4 | { 5 | "i-icon": "../icon/index" 6 | } 7 | } 8 | -------------------------------------------------------------------------------- /iviewapp/step/index.wxss: -------------------------------------------------------------------------------- 1 | .i-step-ico{width:24px;height:100%;border-radius:100%;background:#fff;position:relative;z-index:2;margin:0 auto;border:#dddee1 solid 1px}.i-step-ico-in{vertical-align:baseline}.i-step-line{position:absolute;left:50%;top:12px;width:100%;height:1px;background:#dddee1}.i-step-horizontal .i-step-ico::after{position:absolute;top:11px;left:23px;z-index:1;content:'';height:1px;background:#fff;width:10px}.i-step-horizontal .i-step-item-main{text-align:center}.i-step-horizontal .i-step-ico::before{position:absolute;top:11px;left:-11px;z-index:1;content:'';height:1px;background:#fff;width:10px}.i-step-ico{box-sizing:border-box;font-size:12px}.i-step-process .i-step-ico{border:#2d8cf0 solid 1px;color:#fff;background:#2d8cf0}.i-step-wait .i-step-ico{border:#e9eaec solid 1px;color:#e9eaec}.i-step-wait .i-step-line{background:#2d8cf0}.i-step-finish .i-step-ico{border:#2d8cf0 solid 1px;color:#2d8cf0}.i-step-finish .i-step-line{background:#2d8cf0}.i-step-error .i-step-ico{border:#ed3f14 solid 1px;color:#ed3f14}.i-step-error .i-step-line{background:#ed3f14}.i-step-item{font-size:12px;position:relative;display:inline-block;box-sizing:border-box;padding-left:10px;vertical-align:top}.i-step-item-ico{width:100%;height:24px;line-height:24px;text-align:center}.i-step-item-main{margin-top:10px;clear:both}.i-step-item-title{font-size:14px;font-weight:700;color:#1c2438}.i-step-item-content{font-size:12px;font-weight:700;margin-top:2px;color:#80848f}.i-step-vertical{padding-bottom:30px}.i-step-vertical .i-step-item-ico{width:24px;float:left}.i-step-vertical .i-step-item-main{margin-left:40px;margin-top:0;clear:inherit}.i-step-vertical .i-step-line{position:absolute;height:100%;top:0;left:10px;margin:0 0 0 12px;width:1px} -------------------------------------------------------------------------------- /iviewapp/steps/index.js: -------------------------------------------------------------------------------- 1 | Component({ 2 | externalClasses: ['i-class'], 3 | properties : { 4 | current : { 5 | type : Number, 6 | value : -1, 7 | observer : '_updateDataChange' 8 | }, 9 | status : { 10 | type : String, 11 | //wait、process、finish、error 12 | value : '' 13 | }, 14 | direction : { 15 | type : String, 16 | //value has horizontal or vertical 17 | value : 'horizontal' 18 | } 19 | }, 20 | relations : { 21 | '../step/index' : { 22 | type : 'child', 23 | linked(){ 24 | this._updateDataChange(); 25 | }, 26 | linkChanged () { 27 | this._updateDataChange(); 28 | }, 29 | unlinked () { 30 | this._updateDataChange(); 31 | } 32 | } 33 | }, 34 | methods: { 35 | _updateDataChange() { 36 | let steps = this.getRelationNodes('../step/index'); 37 | const len = steps.length; 38 | if (len > 0) { 39 | steps.forEach((step, index) => { 40 | step.updateDataChange({ 41 | len : len, 42 | index : index, 43 | current : this.data.current, 44 | direction : this.data.direction 45 | }); 46 | }); 47 | } 48 | } 49 | } 50 | }) -------------------------------------------------------------------------------- /iviewapp/steps/index.json: -------------------------------------------------------------------------------- 1 | { 2 | "component": true 3 | } 4 | -------------------------------------------------------------------------------- /iviewapp/steps/index.wxml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | -------------------------------------------------------------------------------- /iviewapp/steps/index.wxss: -------------------------------------------------------------------------------- 1 | .i-steps{width:100%} -------------------------------------------------------------------------------- /iviewapp/switch/index.js: -------------------------------------------------------------------------------- 1 | Component({ 2 | externalClasses: ['i-class'], 3 | properties : { 4 | value : { 5 | type : Boolean, 6 | value : false 7 | }, 8 | //large small default 9 | size : { 10 | type : String, 11 | value : 'default' 12 | }, 13 | // is or not disable 14 | disabled : { 15 | type : Boolean, 16 | value : false 17 | }, 18 | // hidden inut name 19 | name : { 20 | type : String, 21 | value : '' 22 | } 23 | }, 24 | options: { 25 | // 在组件定义时的选项中启用多slot支持 26 | multipleSlots: true 27 | }, 28 | methods : { 29 | toggle(){ 30 | if( this.data.disabled ) return; 31 | const data = this.data; 32 | const value = data.value ? false : true; 33 | this.triggerEvent('change',{ 34 | value : value 35 | }) 36 | } 37 | } 38 | }); 39 | -------------------------------------------------------------------------------- /iviewapp/switch/index.json: -------------------------------------------------------------------------------- 1 | { 2 | "component": true 3 | } 4 | -------------------------------------------------------------------------------- /iviewapp/switch/index.wxml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | var sizes = ['large', 'default']; 12 | var prefixCls = 'i-switch'; 13 | module.exports = { 14 | setSize : function( size ){ 15 | var index = sizes.indexOf( size ); 16 | return prefixCls + ( index > -1 ? ( '-'+size ) : 'default' ) 17 | }, 18 | setCurrent : function( value,disabled ){ 19 | var className = value && !disabled ? prefixCls + '-checked' : ''; 20 | if( disabled ){ 21 | className += ' ' + prefixCls + '-disabled'; 22 | } 23 | return className; 24 | } 25 | } 26 | -------------------------------------------------------------------------------- /iviewapp/switch/index.wxss: -------------------------------------------------------------------------------- 1 | .i-switch{display:inline-block;width:48px;height:24px;line-height:24px;border-radius:24px;vertical-align:middle;border:1px solid #ccc;background-color:#ccc;position:relative;cursor:pointer;-webkit-tap-highlight-color:transparent;transition:all .2s ease-in-out}.i-switch-hide-input{display:none;opacity:0}.i-switch-inner{color:#fff;font-size:12px;position:absolute;left:25px;vertical-align:middle}.i-switch-inner .i-icon{width:12px;height:12px;text-align:center;vertical-align:middle}.i-switch:after{content:'';width:22px;height:22px;border-radius:22px;background-color:#fff;position:absolute;left:1px;top:1px;cursor:pointer;transition:left .2s ease-in-out,width .2s ease-in-out}.i-switch-checked:after{left:8px}.i-switch-large{width:60px}.i-switch-large.i-switch-checked:after{left:37px}.i-switch-checked:after{left:25px}.i-switch-checked{border-color:#2d8cf0;background-color:#2d8cf0}.i-switch-checked .i-switch-inner{left:8px}.i-switch-checked:after{left:25px}.i-switch-disabled{background:#f3f3f3;border-color:#f3f3f3}.i-switch-disabled:after{background:#ccc;cursor:not-allowed}.i-switch-disabled .i-switch-inner{color:#ccc} -------------------------------------------------------------------------------- /iviewapp/tab-bar-item/index.js: -------------------------------------------------------------------------------- 1 | Component({ 2 | externalClasses: ['i-class'], 3 | 4 | relations: { 5 | '../tab-bar/index': { 6 | type: 'parent' 7 | } 8 | }, 9 | 10 | properties: { 11 | icon: { 12 | type: String, 13 | value: '' 14 | }, 15 | currentIcon: { 16 | type: String, 17 | value: '' 18 | }, 19 | key: { 20 | type: String, 21 | value: '' 22 | }, 23 | title: { 24 | type: String, 25 | value: '' 26 | }, 27 | dot: { 28 | type: Boolean, 29 | value: false 30 | }, 31 | count: { 32 | type: Number, 33 | value: 0 34 | } 35 | }, 36 | 37 | data: { 38 | current: false, 39 | currentColor: '' 40 | }, 41 | 42 | methods: { 43 | changeCurrent (current) { 44 | this.setData({ current }); 45 | }, 46 | changeCurrentColor (currentColor) { 47 | this.setData({ currentColor }); 48 | }, 49 | handleClickItem () { 50 | const parent = this.getRelationNodes('../tab-bar/index')[0]; 51 | parent.emitEvent(this.data.key); 52 | } 53 | } 54 | }); 55 | -------------------------------------------------------------------------------- /iviewapp/tab-bar-item/index.json: -------------------------------------------------------------------------------- 1 | { 2 | "component": true, 3 | "usingComponents": 4 | { 5 | "i-badge": "../badge/index", 6 | "i-icon": "../icon/index" 7 | } 8 | } 9 | -------------------------------------------------------------------------------- /iviewapp/tab-bar-item/index.wxml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | {{ title }} 6 | {{ title }} 7 | 8 | 9 | -------------------------------------------------------------------------------- /iviewapp/tab-bar-item/index.wxss: -------------------------------------------------------------------------------- 1 | .i-tab-bar-item{flex:1;display:flex;width:100%;-webkit-box-pack:center;justify-content:center;-webkit-box-align:center;align-items:center;-webkit-box-orient:vertical;-webkit-box-direction:normal;flex-direction:column;text-align:center}.i-tab-bar-item-icon{display:flex;-webkit-box-pack:center;justify-content:center;box-sizing:border-box;color:#80848f}.i-tab-bar-item-icon-current{color:#2d8cf0}.i-tab-bar-item-title{font-size:10px;margin:3px 0 0;line-height:1;text-align:center;box-sizing:border-box;color:#80848f}.i-tab-bar-item-title-current{color:#2d8cf0} -------------------------------------------------------------------------------- /iviewapp/tab-bar/index.js: -------------------------------------------------------------------------------- 1 | Component({ 2 | externalClasses: ['i-class'], 3 | 4 | relations: { 5 | '../tab-bar-item/index': { 6 | type: 'child', 7 | linked () { 8 | this.changeCurrent(); 9 | }, 10 | linkChanged () { 11 | this.changeCurrent(); 12 | }, 13 | unlinked () { 14 | this.changeCurrent(); 15 | } 16 | } 17 | }, 18 | 19 | properties: { 20 | current: { 21 | type: String, 22 | value: '', 23 | observer: 'changeCurrent' 24 | }, 25 | color: { 26 | type: String, 27 | value: '' 28 | }, 29 | fixed: { 30 | type: Boolean, 31 | value: false 32 | } 33 | }, 34 | 35 | methods: { 36 | changeCurrent (val = this.data.current) { 37 | let items = this.getRelationNodes('../tab-bar-item/index'); 38 | const len = items.length; 39 | 40 | if (len > 0) { 41 | items.forEach(item => { 42 | item.changeCurrent(item.data.key === val); 43 | item.changeCurrentColor(this.data.color); 44 | }); 45 | } 46 | }, 47 | emitEvent (key) { 48 | this.triggerEvent('change', { key }); 49 | } 50 | } 51 | }); 52 | -------------------------------------------------------------------------------- /iviewapp/tab-bar/index.json: -------------------------------------------------------------------------------- 1 | { 2 | "component": true 3 | } 4 | -------------------------------------------------------------------------------- /iviewapp/tab-bar/index.wxml: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /iviewapp/tab-bar/index.wxss: -------------------------------------------------------------------------------- 1 | .i-tab-bar{display:flex;width:100%;height:50px;box-sizing:border-box;position:relative;justify-content:space-around;align-items:center;-webkit-box-align:center;background:#fff}.i-tab-bar::after{content:'';position:absolute;top:0;left:0;width:200%;height:200%;transform:scale(.5);transform-origin:0 0;pointer-events:none;box-sizing:border-box;border:0 solid #e9eaec;border-top-width:1px}.i-tab-bar-fixed{position:fixed;bottom:0;z-index:2} -------------------------------------------------------------------------------- /iviewapp/tab/index.js: -------------------------------------------------------------------------------- 1 | Component({ 2 | externalClasses: ['i-class'], 3 | 4 | relations: { 5 | '../tabs/index': { 6 | type: 'parent' 7 | } 8 | }, 9 | 10 | properties: { 11 | key: { 12 | type: String, 13 | value: '' 14 | }, 15 | title: { 16 | type: String, 17 | value: '' 18 | }, 19 | dot: { 20 | type: Boolean, 21 | value: false 22 | }, 23 | count: { 24 | type: Number, 25 | value: 0 26 | } 27 | }, 28 | 29 | data: { 30 | current: false, 31 | currentColor: '', 32 | scroll: false 33 | }, 34 | 35 | methods: { 36 | changeCurrent (current) { 37 | this.setData({ current }); 38 | }, 39 | changeCurrentColor (currentColor) { 40 | this.setData({ currentColor }); 41 | }, 42 | changeScroll (scroll) { 43 | this.setData({ scroll }); 44 | }, 45 | handleClickItem () { 46 | const parent = this.getRelationNodes('../tabs/index')[0]; 47 | parent.emitEvent(this.data.key); 48 | } 49 | } 50 | }); 51 | -------------------------------------------------------------------------------- /iviewapp/tab/index.json: -------------------------------------------------------------------------------- 1 | { 2 | "component": true, 3 | "usingComponents": 4 | { 5 | "i-badge": "../badge/index" 6 | } 7 | } 8 | -------------------------------------------------------------------------------- /iviewapp/tab/index.wxml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | {{ title }} 5 | {{ title }} 6 | 7 | 8 | 9 | -------------------------------------------------------------------------------- /iviewapp/tab/index.wxss: -------------------------------------------------------------------------------- 1 | .i-tabs-tab{flex:1;display:flex;width:100%;-webkit-box-pack:center;justify-content:center;-webkit-box-align:center;align-items:center;-webkit-box-orient:vertical;-webkit-box-direction:normal;flex-direction:column;text-align:center;position:relative}.i-tabs-tab-bar{display:block;width:100%;height:2px;background:0 0;position:absolute;bottom:0;left:0;background:#2d8cf0}.i-tabs-tab-title{font-size:14px;text-align:center;box-sizing:border-box;color:#80848f}.i-tabs-tab-title-current{color:#2d8cf0}.i-tabs-tab-scroll{display:inline-block;width:60px} -------------------------------------------------------------------------------- /iviewapp/tabs/index.js: -------------------------------------------------------------------------------- 1 | Component({ 2 | externalClasses: ['i-class'], 3 | 4 | relations: { 5 | '../tab/index': { 6 | type: 'child', 7 | linked () { 8 | this.changeCurrent(); 9 | }, 10 | linkChanged () { 11 | this.changeCurrent(); 12 | }, 13 | unlinked () { 14 | this.changeCurrent(); 15 | } 16 | } 17 | }, 18 | 19 | properties: { 20 | current: { 21 | type: String, 22 | value: '', 23 | observer: 'changeCurrent' 24 | }, 25 | color: { 26 | type: String, 27 | value: '' 28 | }, 29 | scroll: { 30 | type: Boolean, 31 | value: false 32 | }, 33 | fixed: { 34 | type: Boolean, 35 | value: false 36 | } 37 | }, 38 | 39 | methods: { 40 | changeCurrent (val = this.data.current) { 41 | let items = this.getRelationNodes('../tab/index'); 42 | const len = items.length; 43 | 44 | if (len > 0) { 45 | items.forEach(item => { 46 | item.changeScroll(this.data.scroll); 47 | item.changeCurrent(item.data.key === val); 48 | item.changeCurrentColor(this.data.color); 49 | }); 50 | } 51 | }, 52 | emitEvent (key) { 53 | this.triggerEvent('change', { key }); 54 | } 55 | } 56 | }); 57 | -------------------------------------------------------------------------------- /iviewapp/tabs/index.json: -------------------------------------------------------------------------------- 1 | { 2 | "component": true 3 | } 4 | -------------------------------------------------------------------------------- /iviewapp/tabs/index.wxml: -------------------------------------------------------------------------------- 1 | 2 | -------------------------------------------------------------------------------- /iviewapp/tabs/index.wxss: -------------------------------------------------------------------------------- 1 | .i-tabs{display:flex;width:100%;height:42px;line-height:42px;box-sizing:border-box;position:relative;justify-content:space-around;align-items:center;-webkit-box-align:center;background:#fff}.i-tabs::after{content:'';position:absolute;top:0;left:0;width:200%;height:200%;transform:scale(.5);transform-origin:0 0;pointer-events:none;box-sizing:border-box;border:0 solid #e9eaec;border-bottom-width:1px}.i-tabs-scroll{display:block;overflow-x:auto;white-space:nowrap}.i-tabs-fixed{position:fixed;top:0;z-index:2} -------------------------------------------------------------------------------- /iviewapp/tag/index.js: -------------------------------------------------------------------------------- 1 | Component({ 2 | externalClasses: ['i-class'], 3 | properties : { 4 | //slot name 5 | name : { 6 | type : String, 7 | value : '' 8 | }, 9 | //can click or not click 10 | checkable : { 11 | type : Boolean, 12 | value : false 13 | }, 14 | //is current choose 15 | checked : { 16 | type : Boolean, 17 | value : true 18 | }, 19 | //background and color setting 20 | color : { 21 | type : String, 22 | value : 'default' 23 | }, 24 | //control fill or not 25 | type : { 26 | type : String, 27 | value : 'dot' 28 | } 29 | }, 30 | methods : { 31 | tapTag(){ 32 | const data = this.data; 33 | if( data.checkable ){ 34 | const checked = data.checked ? false : true; 35 | this.triggerEvent('change',{ 36 | name : data.name || '', 37 | checked : checked 38 | }); 39 | } 40 | } 41 | } 42 | }) -------------------------------------------------------------------------------- /iviewapp/tag/index.json: -------------------------------------------------------------------------------- 1 | { 2 | "component" : true 3 | } -------------------------------------------------------------------------------- /iviewapp/tag/index.wxml: -------------------------------------------------------------------------------- 1 | 4 | 5 | 6 | 7 | module.exports = { 8 | getClass : function(color,type,checked,checkable) { 9 | var initColorList = ['blue', 'green', 'red', 'yellow', 'default']; 10 | var theme = ''; 11 | var className = 'i-tag-'; 12 | if( initColorList.indexOf( color ) > -1 ){ 13 | theme = className + color; 14 | } 15 | if( type === 'border' ){ 16 | theme = className+color+'-border'; 17 | } 18 | if( checkable && checked ){ 19 | theme = className+color+'-checked'; 20 | }else if( checkable && !checked ){ 21 | theme = ( type === 'border' ? className + color +'-border' : className+'none' ); 22 | } 23 | 24 | return theme; 25 | } 26 | } 27 | -------------------------------------------------------------------------------- /iviewapp/tag/index.wxss: -------------------------------------------------------------------------------- 1 | .i-tag{display:inline-block;height:18px;line-height:18px;padding:0 4px;border-radius:2px;background:#fff;font-size:11px;vertical-align:middle;border:1rpx solid #dddee1}.i-tag-none{border-color:#fff}.i-tag-default{border-color:#dddee1;background:#e9eaec}.i-tag-red{background:#ed3f14;color:#fff}.i-tag-red-border{color:#ed3f14;background:#fff;border-color:#ed3f14}.i-tag-red-checked{background:#ed3f14;color:#fff;border-color:#ed3f14}.i-tag-green{background:#19be6b;color:#fff;border-color:#19be6b}.i-tag-green-border{color:#19be6b;background:#fff;border-color:#19be6b}.i-tag-green-checked{background:#19be6b;color:#fff;border-color:#19be6b}.i-tag-blue{background:#2d8cf0;color:#fff;border-color:#2d8cf0}.i-tag-blue-border{color:#2d8cf0;background:#fff;border-color:#2d8cf0}.i-tag-blue-checked{background:#2d8cf0;color:#fff;border-color:#2d8cf0}.i-tag-yellow{background:#f90;color:#fff;border-color:#f90}.i-tag-yellow-border{color:#f90;background:#fff;border-color:#f90}.i-tag-yellow-checked{background:#f90;color:#fff;border-color:#f90}.i-tag-default-checked{background:#e9eaec;color:#495060;border-color:#e9eaec} -------------------------------------------------------------------------------- /iviewapp/toast/index.js: -------------------------------------------------------------------------------- 1 | const default_data = { 2 | visible: false, 3 | content: '', 4 | icon: '', 5 | image: '', 6 | duration: 2, 7 | mask: true, 8 | type: 'default', // default || success || warning || error || loading 9 | }; 10 | 11 | let timmer = null; 12 | 13 | Component({ 14 | externalClasses: ['i-class'], 15 | 16 | data: { 17 | ...default_data 18 | }, 19 | 20 | methods: { 21 | handleShow (options) { 22 | const { type = 'default', duration = 2 } = options; 23 | 24 | this.setData({ 25 | ...options, 26 | type, 27 | duration, 28 | visible: true 29 | }); 30 | 31 | const d = this.data.duration * 1000; 32 | 33 | if (timmer) clearTimeout(timmer); 34 | if (d !== 0) { 35 | timmer = setTimeout(() => { 36 | this.handleHide(); 37 | timmer = null; 38 | }, d); 39 | } 40 | }, 41 | 42 | handleHide () { 43 | this.setData({ 44 | ...default_data 45 | }); 46 | } 47 | } 48 | }); 49 | -------------------------------------------------------------------------------- /iviewapp/toast/index.json: -------------------------------------------------------------------------------- 1 | { 2 | "component": true, 3 | "usingComponents": 4 | { 5 | "i-icon": "../icon/index" 6 | } 7 | } 8 | -------------------------------------------------------------------------------- /iviewapp/toast/index.wxml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | 14 | 15 | {{ content }} 16 | -------------------------------------------------------------------------------- /iviewapp/toast/index.wxss: -------------------------------------------------------------------------------- 1 | .i-toast{position:fixed;top:35%;left:50%;transform:translate3d(-50%,-50%,0);background:rgba(0,0,0,.7);color:#fff;font-size:14px;line-height:1.5em;margin:0 auto;box-sizing:border-box;padding:10px 18px;text-align:center;border-radius:4px;z-index:1010}.i-toast-mask{position:fixed;top:0;bottom:0;left:0;right:0;z-index:1010}.i-toast-icon{font-size:38px!important;margin-bottom:6px}.i-toast-image{max-width:100px;max-height:100px}.i-toast-loading{display:inline-block;vertical-align:middle;width:28px;height:28px;background:0 0;border-radius:50%;border:2px solid #fff;border-color:#fff #fff #fff #2d8cf0;animation:btn-spin .8s linear;animation-iteration-count:infinite}@keyframes btn-spin{0%{transform:rotate(0)}100%{transform:rotate(360deg)}} -------------------------------------------------------------------------------- /pages/login/login-major/login-major.json: -------------------------------------------------------------------------------- 1 | { 2 | "navigationBarTitleText": "星题库-选择专业" 3 | } -------------------------------------------------------------------------------- /pages/login/login-major/login-major.wxml: -------------------------------------------------------------------------------- 1 | 2 | 4 | 5 | {{itemName[0].name}} 6 | 7 | 8 | 9 | {{item.desc}} 10 | 11 | 12 | 13 | 14 | 15 | -------------------------------------------------------------------------------- /pages/login/login-major/login-major.wxss: -------------------------------------------------------------------------------- 1 | .major-list{ 2 | width: 100%; 3 | padding: 15px 15px 0; 4 | box-sizing: border-box; 5 | background-color: #d9ecfb; 6 | } 7 | /* 隐藏滚动条 */ 8 | ::-webkit-scrollbar{ 9 | display:none; 10 | } 11 | .mink{ 12 | width: 100%; 13 | background: #fff; 14 | margin-bottom:15px; 15 | } 16 | .mink-t{ 17 | color: #fff; 18 | text-align: left; 19 | line-height: 60rpx; 20 | float: left; 21 | background: #5fb7f9; 22 | width: 100%; 23 | font-size:28rpx; 24 | padding-left:10px; 25 | } 26 | .mink-b{padding:10px;overflow:hidden;line-height:62rpx;text-align:center;} 27 | .mink-b-items{ 28 | float: left; 29 | width: 50%; 30 | color: #4a4a4a; 31 | background: #fff; 32 | } 33 | .mink-b-items text{ 34 | display: block; 35 | font-size:30rpx; 36 | overflow:hidden; 37 | white-space: nowrap; 38 | text-overflow: ellipsis; 39 | border:1px solid #dedede; 40 | border-radius:10px; 41 | padding:0 20px; 42 | margin:5px; 43 | } 44 | -------------------------------------------------------------------------------- /pages/login/login-tel/login-tel.json: -------------------------------------------------------------------------------- 1 | { 2 | "disableScroll": true, 3 | "navigationBarTitleText": "手机号码注册", 4 | "enablePullDownRefresh": false 5 | } -------------------------------------------------------------------------------- /pages/login/login-tel/login-tel.wxml: -------------------------------------------------------------------------------- 1 | 2 | 6 | *未注册的用户将自动注册 7 | 8 |
9 | 10 | 11 |
12 |
13 |
-------------------------------------------------------------------------------- /pages/login/login-tel/login-tel.wxss: -------------------------------------------------------------------------------- 1 | .logo{display:flex;flex-direction: column;align-items: center;padding-top:200rpx;} 2 | .logo image{width:180rpx;height:180rpx;margin-bottom:10px;} 3 | .logo text{font-size:38rpx;} 4 | .tip{font-size:28rpx;color:#c2c2c2;margin:20px 0;} 5 | .tel{width:100%;padding:0 15px;} 6 | .tel input{border-bottom:1px solid #ddd;margin-bottom:20px;font-size:36rpx;padding:5px;} -------------------------------------------------------------------------------- /pages/login/login-yzm/login-yzm.json: -------------------------------------------------------------------------------- 1 | { 2 | "disableScroll": true, 3 | "navigationBarTitleText": "验证码" 4 | } -------------------------------------------------------------------------------- /pages/login/login-yzm/login-yzm.wxml: -------------------------------------------------------------------------------- 1 | 2 | 请输入手机验证码 3 | 4 |
5 | 6 | 7 | 8 | 9 |
10 |
11 | (未收到验证码?) 重新获取 12 |
-------------------------------------------------------------------------------- /pages/login/login-yzm/login-yzm.wxss: -------------------------------------------------------------------------------- 1 | .code-bt{margin-top:200rpx;font-size:34rpx;margin-bottom:30px;} 2 | .code{width:100%;padding:0 15px;margin-bottom:15px;} 3 | .code input{border-bottom:1px solid #ddd;margin-bottom:20px;font-size:36rpx;padding:5px;} 4 | .forget{font-size:28rpx;color:#333;} 5 | .forget a{color:#0b8cf9;} -------------------------------------------------------------------------------- /pages/login/login.js: -------------------------------------------------------------------------------- 1 | // pages/login/login.js 2 | var app = getApp() 3 | Page({ 4 | 5 | /** 6 | * 页面的初始数据 7 | */ 8 | data: { 9 | userInfo: {} 10 | }, 11 | 12 | /** 13 | * 生命周期函数--监听页面加载 14 | */ 15 | onLoad: function (options) { 16 | console.log("onload"); 17 | var that = this 18 | app.getUserInfo(function (userInfo) { 19 | //更新数据 20 | that.setData({ 21 | userInfo: userInfo 22 | }) 23 | }) 24 | }, 25 | 26 | /** 27 | * 生命周期函数--监听页面初次渲染完成 28 | */ 29 | onReady: function () { 30 | 31 | }, 32 | 33 | /** 34 | * 生命周期函数--监听页面显示 35 | */ 36 | onShow: function () { 37 | 38 | }, 39 | 40 | /** 41 | * 生命周期函数--监听页面隐藏 42 | */ 43 | onHide: function () { 44 | 45 | }, 46 | 47 | /** 48 | * 生命周期函数--监听页面卸载 49 | */ 50 | onUnload: function () { 51 | 52 | }, 53 | 54 | /** 55 | * 页面相关事件处理函数--监听用户下拉动作 56 | */ 57 | onPullDownRefresh: function () { 58 | 59 | }, 60 | 61 | /** 62 | * 页面上拉触底事件的处理函数 63 | */ 64 | onReachBottom: function () { 65 | 66 | }, 67 | 68 | /** 69 | * 用户点击右上角分享 70 | */ 71 | onShareAppMessage: function () { 72 | 73 | } 74 | }) -------------------------------------------------------------------------------- /pages/login/login.json: -------------------------------------------------------------------------------- 1 | {} -------------------------------------------------------------------------------- /pages/login/login.wxml: -------------------------------------------------------------------------------- 1 | 2 | pages/login/login.wxml 3 | -------------------------------------------------------------------------------- /pages/login/login.wxss: -------------------------------------------------------------------------------- 1 | /* pages/login/login.wxss */ -------------------------------------------------------------------------------- /pages/sabout/sabout.json: -------------------------------------------------------------------------------- 1 | { 2 | "navigationBarTitleText": "我的" 3 | } -------------------------------------------------------------------------------- /pages/sabout/sabout.wxss: -------------------------------------------------------------------------------- 1 | page{background-color:#f4f4f4;} 2 | .tx_top{background:url('https://wxx.xinghengedu.com/img/about/toux_bg.jpg') no-repeat center top #fff;background-size:contain; 3 | display:flex;flex-direction: column;align-items:center; 4 | padding:30rpx 0;border-bottom:1px solid #dcdcdc;margin-bottom:10px;} 5 | .photo{position:relative;margin-bottom:16rpx;} 6 | .photo .touxiang{width: 168rpx;height: 168rpx;border:1px solid #f4f4f4;border-radius:84rpx;display:block;} 7 | .photo .vip{position:absolute;bottom: 0;right: 0;} 8 | .xhname{margin-bottom:16rpx;color:#297be8;font-size:36rpx;} 9 | .xhname text{margin-right:10rpx;} 10 | .zhuanye{color:#7a7a7a;font-size:26rpx;margin-bottom:30rpx;} 11 | .top_tab{display:flex;flex-direction: row;justify-content: space-around;width:100%;} 12 | .tab_cont{display:flex;align-items: center;flex:1;justify-content:center;} 13 | .tab_cont text{margin-left:5px;font-size:24rpx;color:#202020;} 14 | .tab_c2{border-left:1px solid #dcdcdc;border-right:1px solid #dcdcdc;} 15 | .service{background-color:#fff;border-top:1px solid #dcdcdc;border-bottom:1px solid #dcdcdc;padding:35rpx 30rpx; 16 | display:flex;flex-direction:row;align-items: center;justify-content: space-between;margin-bottom:10px;} 17 | .service .ser_l{display:flex;flex-direction: row;align-items: center;} 18 | .service .serl_font{padding-left:10px;} 19 | .service .serl_font text{font-size:24rpx;color:#7a7a7a;display: block;} 20 | .service .serl_font .font_t{font-size:30rpx;color:#202020;margin-bottom:10rpx;} 21 | .service .tuqq{margin-left:50rpx;} 22 | .tablink {border-top:1px solid #dcdcdc;} 23 | .tablink .link_c{border-bottom:1px solid #dcdcdc;background-color:#fff;padding:30rpx;display: flex;flex-direction: row; 24 | align-items: center;justify-content:space-between;} 25 | .tablink .lzi{font-size:30rpx;color:#202020;padding-left:10rpx;} 26 | .tablink .rzi{font-size:26rpx;color:#7a7a7a;padding-right:10rpx;margin-top:-1px;} 27 | .tablink .link_li{display: flex;align-items: center;} -------------------------------------------------------------------------------- /pages/sabout/shoucang/shoucang.json: -------------------------------------------------------------------------------- 1 | { 2 | "navigationBarTitleText": "收藏", 3 | "disableScroll": true, 4 | "usingComponents": { 5 | "i-tabs": "../../../iviewapp/tabs/index", 6 | "i-tab": "../../../iviewapp/tab/index", 7 | "i-panel": "../../../iviewapp/panel/index", 8 | "i-tab-bar": "../../../iviewapp/tab-bar/index", 9 | "i-tab-bar-item": "../../../iviewapp/tab-bar-item/index", 10 | "i-icon": "../../../iviewapp/icon/index", 11 | "i-grid": "../../../iviewapp/grid/index", 12 | "i-grid-item": "../../../iviewapp/grid-item/index", 13 | "i-button": "../../../iviewapp/button/index", 14 | "zj-biji": "../../../components/biji/biji" 15 | } 16 | } -------------------------------------------------------------------------------- /pages/sabout/shoucang/shoucang.wxml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 |
9 | 10 | 11 |