| xqd
@@ -380,11 +380,9 @@
|
|
|
$scope.bigImage = false;
|
|
|
$scope.showBigImage = function(imageName){
|
|
|
$scope.url = imageName;
|
|
|
- //$ionicBackdrop.retain();
|
|
|
$scope.bigImage = true;
|
|
|
};
|
|
|
$scope.hideBigImage = function(){
|
|
|
- //$ionicBackdrop.release();
|
|
|
$scope.bigImage = false;
|
|
|
};
|
|
|
$scope.addpict = function () {
|
| xqd
@@ -468,6 +466,8 @@
|
|
|
msg.hide();
|
|
|
console.log(result);
|
|
|
$scope.dream = result.data.data;
|
|
|
+ var reg = new RegExp("\n", "g");
|
|
|
+ $scope.dream.about = $scope.dream.about.replace(reg, "<br/>");
|
|
|
var end_time = new Date($scope.dream.end_time.replace(/-/g, "/"));
|
|
|
var date = new Date();
|
|
|
var inter = (end_time.getTime() - date.getTime()) / 1000;
|
| xqd
@@ -530,6 +530,7 @@
|
|
|
$scope.cancelSupport = function () {
|
|
|
$scope.tosupport = false;
|
|
|
$scope.toshare = false;
|
|
|
+ $scope.input.show = false;
|
|
|
|
|
|
};
|
|
|
$scope.toshare = false;
|
| xqd
@@ -541,7 +542,7 @@
|
|
|
$state.go("app.recharge")
|
|
|
};
|
|
|
$scope.shareDream = function(){
|
|
|
- $state.go("app.my_shareDream",{item:$scope.dream});
|
|
|
+ $state.go("app.shareDream",{item:$scope.dream});
|
|
|
};
|
|
|
|
|
|
//实时排行
|
| xqd
@@ -574,15 +575,13 @@
|
|
|
if(day<0 && h<0 && m>0) $scope.timer = m+'分钟';
|
|
|
if(day<0 && h<0 && m<0) $scope.timer = '结束';
|
|
|
|
|
|
- /*if(day>0) $scope.timer = day+'天'+ $scope.timer;
|
|
|
-
|
|
|
- if($scope.leftTimer)$interval.cancel($scope.leftTimer);
|
|
|
- $scope.leftTimer = $interval(function () {
|
|
|
- if (countDown >= 1) leftTimer(countDown - 1);
|
|
|
- },1000);
|
|
|
- if(countDown<=0){
|
|
|
- $scope.timer='结束';
|
|
|
- }*/
|
|
|
+ /* if($scope.leftTimer)$interval.cancel($scope.leftTimer);
|
|
|
+ $scope.leftTimer = $interval(function () {
|
|
|
+ if (countDown >= 1) leftTimer(countDown - 1);
|
|
|
+ },1000);*/
|
|
|
+ /* if(countDown<=0){
|
|
|
+ $scope.timer='结束';
|
|
|
+ }*/
|
|
|
};
|
|
|
$scope.changeIndex = function (index) {
|
|
|
$scope.index = index;
|
| xqd
@@ -660,12 +659,14 @@
|
|
|
};
|
|
|
$scope.input = {
|
|
|
placeholder: '评论',
|
|
|
- focus:false
|
|
|
+ focus: false,
|
|
|
+ show:false
|
|
|
};
|
|
|
-
|
|
|
$scope.replay = function ($event, name) {
|
|
|
+
|
|
|
$event.stopPropagation();
|
|
|
$scope.input.focus = true;
|
|
|
+ $scope.input.show = true;
|
|
|
$scope.input.placeholder = "回复" + name;
|
|
|
$scope.vm.title='';
|
|
|
};
|
| xqd
@@ -688,6 +689,14 @@
|
|
|
$scope.closeModal();
|
|
|
})
|
|
|
};
|
|
|
+ $scope.bigImage = false;
|
|
|
+ $scope.showBigImage = function(imageName){
|
|
|
+ $scope.url = imageName;
|
|
|
+ $scope.bigImage = true;
|
|
|
+ };
|
|
|
+ $scope.hideBigImage = function(){
|
|
|
+ $scope.bigImage = false;
|
|
|
+ };
|
|
|
$scope.addpict = function () {
|
|
|
common.chooseImage().then(function (img) {
|
|
|
common.uploadFiles(img,1).then(function (result) {
|
| xqd
@@ -737,7 +746,7 @@
|
|
|
$scope.modal.remove();
|
|
|
});
|
|
|
$scope.toMessage = function(){
|
|
|
- $state.go("app.my_message");
|
|
|
+ $state.go("app.message");
|
|
|
}
|
|
|
}]);
|
|
|
app.controller('userDetailCtrl', ["$scope", "$state", "$ionicModal","storage","msg", "common", "config", "homeService", "$ionicTabsDelegate", "$stateParams", "$ionicModal", "$timeout", "$ionicScrollDelegate", "$interval"
|