浏览代码

测试user

jmx 8 年之前
父节点
当前提交
997984f3d8
共有 4 个文件被更改,包括 4 次插入4 次删除
  1. 0 0
      www/webapp/o2o/dist/js/api.js
  2. 0 0
      www/webapp/o2o/dist/js/main.js
  3. 1 1
      www/webapp/o2o/js/api.js
  4. 3 3
      www/webapp/o2o/module/pay/index.html

文件差异内容过多而无法显示
+ 0 - 0
www/webapp/o2o/dist/js/api.js


文件差异内容过多而无法显示
+ 0 - 0
www/webapp/o2o/dist/js/main.js


+ 1 - 1
www/webapp/o2o/js/api.js

@@ -25,7 +25,7 @@ define(['config', 'base'], function(config, base) {
 		var that = this;
 		this.isLoading = true;
 		$.signAjax({
-			url: config.apiPath + '/index.php?r=o2o/user/info',
+			url: config.apiPath + '/index.php?r=api/user/info',
 			data: data,
 			dataType: 'JSON',
 			success: function(res) {

+ 3 - 3
www/webapp/o2o/module/pay/index.html

@@ -138,11 +138,11 @@
       created = formatDate(created);
       amount = amount / 100;
 
-      console.log('111111111111')
-      console.log(bookingTime)
+      console.log('22222222222')
+      console.log(typeof bookingTime)
 
       $('#order-name').text(body);
-      if (bookingTime != undefined){
+      if (typeof bookingTime != 'undefined'){
         console.log('text')
         $('#order-time').text(bookingTime);
       }else {

部分文件因为文件数量过多而无法显示