|
- function fnOpen(){
- FNImageClip.open({
- rect: {
- x: 0,
- y: document.querySelector('.main').offsetHeight,
- w: api.winWidth,
- h: api.winHeight - document.querySelector('.main').offsetHeight
- },
- isMinWidth:true,
- isMinHeight:true,
- isHideGrid:true,
- srcPath: api.pageParam.path,
- highDefinition: false,
- mode: 'image',
- style: {
- mask: 'rgba(55,55,55,0.3)',
- clip: {
- w: 300,
- h: 300,
- x: (api.winWidth - 300) / 2 ,//80,
- y: (api.winHeight - 300) / 3,//20,
- borderColor: '#0f0',
- borderWidth: 1,
- appearance: 'rectangle'
- }
- }
- }, function(ret, err){
- if( ret ){
- // alert( JSON.stringify( ret ) );
- }else{
- toast('图片上传异常,请重新上传')
- }
- });
- }
复制代码 |
|