|
- mnPopups.open({
- rect: {
- w: width,
- h: 155
- },
- position: {
- x: api.winWidth - 34,
- y: top
- },
- styles: {
- mask: 'rgba(0,0,0,0)',
- bg: '#4C4C4C',
- corner: 5,
- cell: {
- bg: {
- normal: '#4C4C4C',
- highlight: ''
- },
- h: 50,
- title: {
- marginL: 40,
- color: '#fff',
- size: 14,
- },
- icon: {
- marginL: 10,
- w: 18,
- h: 18,
- corner: 2
- },
- separateLine: { //(可选项)JSON 类型;分割线的样式设置
- width: 1, //(可选项)数字类型;分割线的粗细,默认为1
- marginLR: 0, //(可选项)数字类型;分割线距离左右的间距,默认为0
- bg: '#5E5E5E', //(可选项)字符类型;分割线的背景颜色,支持rgb、rgba、#;默认:#C0C0C0
- hideLastSeparateLine: true //(可选项)布尔类型;是否隐藏最后一条分割线,默认false
- }
- },
- pointer: {
- size: 7,
- xPercent: 90,
- yPercent: 0,
- orientation: 'downward'
- }
- },
- datas: [{
- title: '扫码签收',
- icon: '../../image/scan-for-sign.png'
- }, {
- title: '申请归档',
- icon: '../../image/applyForIn.png'
- },
- {
- title: '无案号材料',
- icon: '../../image/noCase.png'
- }
- ],
- animation: false
- }, function(ret) {
- if (ret && ret.eventType === "click") {
- if (ret.index == 0) {
- showCamera(function(sVal) {
- api.openWin({
- name: 'scanSignForCaseListMain',
- url: 'scanSignForCaseListMain.html',
- bgColor: '#ccc',
- pageParam: {
- param: {
- fileNo: sVal
- }
- },
- useWKWebView: true,
- })
- })
- } else if (ret.index == 1) {
- api.sendEvent({
- name: 'batchApplyEvent'
- })
- }
- else if(ret.index==2){
- api.openFrame({
- WKWebView: true,
- name: 'noCaseNoFileMain',
- url:'noCaseNoFileMain.html'
- })
- }
- }
- });
复制代码 |
|