|
@@ -20,6 +20,9 @@
|
|
|
<!-- <view class="desc">-->
|
|
<!-- <view class="desc">-->
|
|
|
<!-- <text>{{item.title}}</text>-->
|
|
<!-- <text>{{item.title}}</text>-->
|
|
|
<!-- </view>-->
|
|
<!-- </view>-->
|
|
|
|
|
+ <view class="flex-row justify-center" v-if="item.isShow">
|
|
|
|
|
+ <text style="font-size: 28rpx;font-weight: bold;color: red;" @click="navigateTo(item)">点击续费</text>
|
|
|
|
|
+ </view>
|
|
|
</view>
|
|
</view>
|
|
|
|
|
|
|
|
<view class="h-center-content flex-col justify-around ">
|
|
<view class="h-center-content flex-col justify-around ">
|
|
@@ -44,7 +47,9 @@
|
|
|
<image class="h-right-content-img " :src="item.facePhotoUrl || '/static/logo.png'" mode="aspectFit" @click="magnify(item.facePhotoUrl)"></image>
|
|
<image class="h-right-content-img " :src="item.facePhotoUrl || '/static/logo.png'" mode="aspectFit" @click="magnify(item.facePhotoUrl)"></image>
|
|
|
</view>
|
|
</view>
|
|
|
</view>
|
|
</view>
|
|
|
|
|
+
|
|
|
<view v-if="showRemarkId == item.id" class="remark" style="text-indent:unset">
|
|
<view v-if="showRemarkId == item.id" class="remark" style="text-indent:unset">
|
|
|
|
|
+
|
|
|
<view v-if="item.description !=null">
|
|
<view v-if="item.description !=null">
|
|
|
使用说明:
|
|
使用说明:
|
|
|
<text>{{ item.description }}</text>
|
|
<text>{{ item.description }}</text>
|
|
@@ -61,7 +66,9 @@
|
|
|
</view>
|
|
</view>
|
|
|
</template>
|
|
</template>
|
|
|
<script>
|
|
<script>
|
|
|
- export default {
|
|
|
|
|
|
|
+ import {date} from "@/uni_modules/uv-ui-tools/libs/function/test";
|
|
|
|
|
+
|
|
|
|
|
+ export default {
|
|
|
data() {
|
|
data() {
|
|
|
return {
|
|
return {
|
|
|
showRemarkId:'',
|
|
showRemarkId:'',
|
|
@@ -80,6 +87,38 @@
|
|
|
},
|
|
},
|
|
|
|
|
|
|
|
methods: {
|
|
methods: {
|
|
|
|
|
+
|
|
|
|
|
+ isShow(item){
|
|
|
|
|
+ if (item.effectiveEndTime){
|
|
|
|
|
+ let date = new Date(item.effectiveEndTime);
|
|
|
|
|
+ let now = new Date().getTime();
|
|
|
|
|
+ const timeDiff = Math.abs(now - date.getTime());
|
|
|
|
|
+ const ninetyDaysMs = 90 * 24 * 60 * 60 * 1000;
|
|
|
|
|
+ return timeDiff < ninetyDaysMs;
|
|
|
|
|
+ }
|
|
|
|
|
+ return false
|
|
|
|
|
+ },
|
|
|
|
|
+
|
|
|
|
|
+ navigateTo(item){
|
|
|
|
|
+ if(item.activityId){
|
|
|
|
|
+ let list = item.activityId.split(',')
|
|
|
|
|
+ if (list.length == 1){
|
|
|
|
|
+ uni.navigateTo({
|
|
|
|
|
+ url:'/orderPages/activityDetail/activityDetail?id=' + item.activityId
|
|
|
|
|
+ })
|
|
|
|
|
+ }else {
|
|
|
|
|
+ uni.navigateTo({
|
|
|
|
|
+ url:'/orderPages/activityList/activityList'
|
|
|
|
|
+ })
|
|
|
|
|
+ }
|
|
|
|
|
+ }else{
|
|
|
|
|
+ uni.navigateTo({
|
|
|
|
|
+ url:'/orderPages/activityList/activityList'
|
|
|
|
|
+ })
|
|
|
|
|
+ }
|
|
|
|
|
+
|
|
|
|
|
+ },
|
|
|
|
|
+
|
|
|
showRemark(item) {
|
|
showRemark(item) {
|
|
|
if (this.showRemarkId == item.id) {
|
|
if (this.showRemarkId == item.id) {
|
|
|
this.showRemarkId = ''
|
|
this.showRemarkId = ''
|
|
@@ -101,6 +140,12 @@
|
|
|
this.$api.myEquityCardList().then(res=>{
|
|
this.$api.myEquityCardList().then(res=>{
|
|
|
console.log(res)
|
|
console.log(res)
|
|
|
this.equityList = res.data.data
|
|
this.equityList = res.data.data
|
|
|
|
|
+ for (let equityListElement of this.equityList) {
|
|
|
|
|
+
|
|
|
|
|
+ let a = this.isShow(equityListElement)
|
|
|
|
|
+ console.log(a)
|
|
|
|
|
+ equityListElement.isShow = this.isShow(equityListElement)
|
|
|
|
|
+ }
|
|
|
if (this.equityList){
|
|
if (this.equityList){
|
|
|
this.getImgUrlByBannerOssId(this.equityList)
|
|
this.getImgUrlByBannerOssId(this.equityList)
|
|
|
}
|
|
}
|