|
|
@@ -33,18 +33,15 @@
|
|
|
</p>
|
|
|
<p class="table-item">
|
|
|
<span>申报状态:</span>
|
|
|
- <span
|
|
|
- >剩
|
|
|
+ <span>剩
|
|
|
{{
|
|
|
- new Date(
|
|
|
+ Math.floor(new Date(
|
|
|
new Date(infoObj.project_end_date).getTime() -
|
|
|
- new Date(infoObj.project_start_date).getTime()
|
|
|
+ new Date().getTime()
|
|
|
).getTime() /
|
|
|
- (1 * 24 * 60 * 60 * 1000) +
|
|
|
- 1
|
|
|
+ (1 * 24 * 60 * 60 * 1000)) + 1
|
|
|
}}
|
|
|
- 天</span
|
|
|
- >
|
|
|
+ 天</span>
|
|
|
</p>
|
|
|
</div>
|
|
|
</div>
|
|
|
@@ -207,7 +204,14 @@ export default {
|
|
|
let id = option.id;
|
|
|
this.getDetailInfo(id);
|
|
|
},
|
|
|
+ onShow() {
|
|
|
+ },
|
|
|
methods: {
|
|
|
+ goAuthPage(){
|
|
|
+ uni.navigateTo({
|
|
|
+ url:'../auth/index'
|
|
|
+ })
|
|
|
+ },
|
|
|
getDetailInfo(ids) {
|
|
|
let md5Sign = md5(
|
|
|
"method=" +
|
|
|
@@ -330,6 +334,10 @@ export default {
|
|
|
});
|
|
|
},
|
|
|
collectionPage() {
|
|
|
+ if(!getApp().globalData.user_phone){
|
|
|
+ this.goAuthPage();
|
|
|
+ return
|
|
|
+ }
|
|
|
let md5Sign = md5(
|
|
|
"method=" +
|
|
|
"user" +
|
|
|
@@ -415,13 +423,24 @@ export default {
|
|
|
},
|
|
|
sharePage() {
|
|
|
let that = this;
|
|
|
- uni.showShareMenu({
|
|
|
- title: that.infoObj.title,
|
|
|
- path: "pages/policy/policy_detail?id=" + that.infoObj.id,
|
|
|
- success(res) {
|
|
|
- that.shareRequest();
|
|
|
- },
|
|
|
- });
|
|
|
+ uni.showShareMenu({
|
|
|
+ title: that.infoObj.title,
|
|
|
+ path: "pages/policy/policy_detail?id=" + that.infoObj.id,
|
|
|
+ success(res) {
|
|
|
+ that.shareRequest();
|
|
|
+ },
|
|
|
+ });
|
|
|
+ // if(!getApp().globalData.user_phone){
|
|
|
+ // that.goAuthPage();
|
|
|
+ // }else {
|
|
|
+ // // uni.showShareMenu({
|
|
|
+ // // title: that.infoObj.title,
|
|
|
+ // // path: "pages/policy/policy_detail?id=" + that.infoObj.id,
|
|
|
+ // // success(res) {
|
|
|
+ // // that.shareRequest();
|
|
|
+ // // },
|
|
|
+ // // });
|
|
|
+ // }
|
|
|
},
|
|
|
changeScroll(height) {
|
|
|
//点的时候触发这个函数 height 是之前的高度
|