Charlie 8 years ago
parent
commit
a48fa615a1

BIN
www/images/digest.png


BIN
www/images/stick.png


BIN
www/images/toutiao_0.png


BIN
www/images/toutiao_1.png


+ 0 - 16
www/js/amazeui.datetimepicker.zh-CN.js

@@ -1,16 +0,0 @@
-/**
- * Simplified Chinese translation for bootstrap-datetimepicker
- * Yuan Cheung <advanimal@gmail.com>
- */
-;(function($){
-	$.fn.datetimepicker.dates['zh-CN'] = {
-			days: ["星期日", "星期一", "星期二", "星期三", "星期四", "星期五", "星期六", "星期日"],
-			daysShort: ["周日", "周一", "周二", "周三", "周四", "周五", "周六", "周日"],
-			daysMin:  ["日", "一", "二", "三", "四", "五", "六", "日"],
-			months: ["一月", "二月", "三月", "四月", "五月", "六月", "七月", "八月", "九月", "十月", "十一月", "十二月"],
-			monthsShort: ["一月", "二月", "三月", "四月", "五月", "六月", "七月", "八月", "九月", "十月", "十一月", "十二月"],
-			today: "今日",
-			suffix: [],
-			meridiem: ["上午", "下午"]
-	};
-}(jQuery));

+ 0 - 167
www/js/hybrid.js

@@ -1,167 +0,0 @@
-function os_proxy(fn){
-    var u = navigator.userAgent.toLowerCase();
-    if (!fn.hasOwnProperty('browser')){
-        fn['browser'] = function(){
-            console.log('没有定义方法');
-            return false;
-        }
-    }
-    if ((/android|linux/i.test(u)) && fn.hasOwnProperty('android')){
-        return fn['android']();
-    } else if ((/iphone|ipad|ipod/i.test(u)) && fn.hasOwnProperty('ios')){
-        return fn['ios']();
-    } else{
-        return fn['browser']();
-    }
-}
-//获取用户的信息
-function get_user_info(){
-    os_proxy({
-        android: function(){
-            window.jsapi.getUserInfo('{"callback":"notifyGetUserInfo"}');
-        },
-        ios: function(){
-            window.location.href = 'http://callclient?method=getUserInfo&callback=notifyGetUserInfo';
-        }
-    });
-}
-//保存用户的信息
-function notifyGetUserInfo(result){
-    //alert('notifyGetUserInfo called');
-    var reg=new RegExp('(\r\n|\r|\n)', 'g');
-    var _res = JSON.stringify(result).replace(reg, '');
-    $('#result').val(_res);
-    var res = JSON.parse(_res);
-
-    res = os_proxy({
-        android: function(){
-            if (res.success == 1){
-                res.success = true;
-            } else {
-                res.success = false;
-            }
-            return res;
-        },
-        ios: function(){
-            if (res && res.hasOwnProperty('success')){
-                if (res.success == 1){
-                    res.success = true;
-                } else {
-                    res.success = false;
-                }
-            }
-            return res;
-        }
-    });
-    if (res){
-        if (res.hasOwnProperty('version')){
-            app_version = res.version;
-        }
-        if (res.hasOwnProperty('deviceId')){
-            deviceId = res.deviceId;
-        }
-        if (res.hasOwnProperty('osVersion')){
-            osVersion = res.osVersion;
-        }
-
-        if (res.hasOwnProperty('success') && res.success){
-            do_login(res);
-        }
-    }
-}
-//根据客户端接口或web登录接口初始化用户信息
-function do_login(res){
-    if (res.hasOwnProperty('success')){
-        user_info = res.data;
-    }
-    if (res.hasOwnProperty('success')){
-        user_id = user_info.id;
-    }
-
-    //$('#result').val('user_id:'+user_id+'<br />'+'osVersion:'+osVersion+'<br />'+'deviceId:'+deviceId+'<br />'+'app_version:'+app_version+'<br />'+'user_name:'+user_info.user_name+'<br />');
-}
-//分享
-function do_share(opts){
-    var share_img = 'http://www.yiguanjia.me/images/logo.png';
-    var share_str = '';
-    var share_url = '';
-    var title = '';
-    if (opts.hasOwnProperty('str')){
-        if (typeof(opts.str) == 'function'){
-            share_str = opts.str();
-        } else {
-            share_str = opts.str;
-        }
-    }
-    if (opts.hasOwnProperty('img')){
-        share_img = opts.img;
-    }
-    if (opts.hasOwnProperty('url')){
-        share_url = opts.url;
-    }
-    if (opts.hasOwnProperty('title')){
-        title = opts.title;
-    }
-    var share_param = {
-        share_title : title,
-        share_string : share_str,
-        share_img_url: encodeURIComponent(share_img),
-        share_url: encodeURIComponent(share_url)
-    };
-    os_proxy({
-        android: function(){
-            share_param.share_img_url = share_img;
-            share_param.share_url = share_url;
-            window.jsapi.doShare(JSON.stringify(share_param));
-        },
-        ios: function(){
-            window.location.href = 'http://callclient?method=doShare&param=' + JSON.stringify(share_param);
-        }
-    });
-}
-//退出webview
-function exit_webview(){
-    os_proxy({
-        android: function(){
-            window.jsapi.exitWebView();
-        },
-        ios: function(){
-            var url = 'http://callclient?method=exitWebView';
-            window.location.href = url;
-        }
-    });
-}
-//跳转到登录页面
-function go_login(){
-    os_proxy({
-        android: function(){
-            window.jsapi.goLogin('{"callback":"notifyGetUserInfo"}');
-        },
-        ios: function(){
-            var url = 'http://callclient?method=goLogin';
-            url += '&callback=notifyGetUserInfo';
-            window.location.href = url;
-        }
-    });
-}
-
-//打开/关闭IOS的左滑返回
-function switch_pop_gesture(flag){
-    os_proxy({
-        ios: function(){
-            var url = 'http://callclient?method=switchPopGesture';
-            url += '&param={"enable":'+flag+'}';
-            window.location.href = url;
-        }
-    });
-}
-
-var user_id = 0;
-var user_info = null;
-var osVersion = '';
-var deviceId = '';
-var app_version = '2.0';
-
-$(function(){
-    //get_user_info();
-})

+ 0 - 56
www/js/www/type_selector.js

@@ -1,56 +0,0 @@
-;
-(function ($) {
-    var defaults = {
-        onselected:function(value){console.log(value);},
-        value:{}    //初始化的选项信息
-    };
-
-    var options = null;
-    var privateVal = {
-        time:9527
-    }
-
-    var privateFunction = {
-        createDom:function(){
-            privateVal.time = new Date().getTime();
-            var _html = '<input type="hidden" name="'+options.input_name+'" />\
-                        <div>\
-                            <div style="float: left;margin-right: 10px;"><input id="serviceType'+privateVal.time+'" style="margin-right: 10px;" /></div><div style="float: left;"><input id="group_'+privateVal.time+'" style="margin-right: 10px;" /></div><div style="clear: both;"></div>\
-                        </div>';
-            $('#'+options.container).html(_html);
-        },
-        initCombobox:function(){
-            var cat = $('#serviceType'+privateVal.time).combobox({
-                url:site_root+'/index.php?r=serviceType/all',
-                editable:false,
-                valueField:'type',
-                textField:'type',
-               
-            });
-            
-        }
-    }
-
-    var methods = {
-        init: function(args) {
-            options = $.extend(defaults, args);
-            privateFunction.createDom();
-            privateFunction.initCombobox();
-            
-        }
-    };
-
-    $.fn.group_selector = function() {
-        var method = arguments[0];
-        if(methods[method]) {
-            method = methods[method];
-        } else if( typeof(method) == 'object' || !method ) {
-            method = methods.init;
-        } else {
-            return this;
-        }
-        var args = arguments[1];
-        return method.call(this,args);
-    }
-
-})(jQuery);