Commit f50f5149 authored by 王建威's avatar 王建威

修改样式

parent 40404785
......@@ -118,7 +118,7 @@
onLoad(option) {
this.contract_no = option.contract_no || '';
uni.request({
url: `/uni/api/userqualification/GetUserQualification/${option.property_id}`,
url: `/uni/api/userqualification/GetUserQualification/${option.property_id}/${option.equipment_id}`,
method: 'GET',
success: (res) => {
if(res.data.code === 0) {
......
......@@ -95,7 +95,7 @@
this.contract_no = option.contract_no || '';
const d = uni.getStorageSync('installment');
uni.request({
url: `/uni/api/userqualification/GetUserQualification/${d.property_id}`,
url: `/uni/api/userqualification/GetUserQualification/${d.property_id}/${d.equipment_id}`,
method: 'GET',
success: (res) => {
const d = res.data.data;
......
......@@ -82,7 +82,7 @@
onLoad(option) {
const d = uni.getStorageSync('installment');
uni.request({
url: `/uni/api/userqualification/GetUserQualification/${d.property_id}`,
url: `/uni/api/userqualification/GetUserQualification/${d.property_id}/${d.equipment_id}`,
method: 'GET',
success: (res) => {
const d = res.data.data;
......
......@@ -32,7 +32,7 @@
key: 'installment',
success: (res) => {
uni.navigateTo({
url: `/pages/apply/applypage1?property_id=${d.property_id}`
url: `/pages/apply/applypage1?property_id=${d.property_id}&equipment_id=${d.equipment_id}`
});
}
});
......
......@@ -22,16 +22,16 @@
<swiper-item>b</swiper-item>
</swiper>
</view> -->
<view class="fin_select" v-if="EquipmentHotList">
<view class="fin_select" v-if="EquipmentRecommendList">
<view class="fin_select_label">
<text class="fin_limit">限时</text>
<text class="fin_title">行业精选 限时免息!</text>
<!-- <text class="fin_limit">限时</text> -->
<text class="fin_title">行业精选,更多选择</text>
</view>
<text class="fin_desc">各类搭配组合 满足中小型医院无忧开店</text>
<uni-swiper-dot :info="EquipmentHotList" mode="dot" :dotsStyles="{'width': 4,'height':4, 'bottom':0,'border':'none','selectedBorder':'none'}" :current="current">
<text class="fin_desc">0首付,无压力,高端设备,随时拥有</text>
<uni-swiper-dot :info="EquipmentRecommendList" mode="dot" :dotsStyles="{'width': 4,'height':4, 'bottom':0,'border':'none','selectedBorder':'none'}" :current="current">
<swiper class="fin_swiper" :autoplay="true" @change="change"
:style="height ? {'height':'580rpx'} : null">
<swiper-item class="fin_swiper_item" v-for="(val, index) in EquipmentHotList" :key="index">
<swiper-item class="fin_swiper_item" v-for="(val, index) in EquipmentRecommendList" :key="index">
<view class="fin_goods" v-for="(vo, key) in val" :key="key">
<view class="fin_goods_item" @click="jumpDetail(vo.equipment_id)">
<image :src="vo.img_url"></image>
......@@ -43,9 +43,9 @@
</swiper>
</uni-swiper-dot>
</view>
<view class="fin_recommended" v-if="EquipmentRecommendList">
<view class="fin_recommended" v-if="EquipmentHotList">
<view class="fin_recommended_label">
<i class="fin_icon"></i>
<!-- <i class="fin_icon"></i> -->
<text class="fin_recommended_title">为您推荐</text>
</view>
<view class="fin_rec_desc">
......@@ -54,10 +54,13 @@
<i></i>
</view>
<view class="fin_rec_goods">
<view class="fin_rec_goods_item" v-for="(val, index) in EquipmentRecommendList" :key="index" @click="jumpDetail(val.equipment_id)">
<view class="fin_rec_goods_item" v-for="(val, index) in EquipmentHotList" :key="index" @click="jumpDetail(val.equipment_id)">
<image :src="val.img_url"></image>
<i class="fin_rec_label fin_rec_label1">限时</i>
<i class="fin_rec_label fin_rec_label2">免息</i>
<text v-if="Number(val.count) === 0">
<i class="fin_rec_label fin_rec_label1">限时</i>
<i class="fin_rec_label fin_rec_label2">免息</i>
</text>
<text v-else style="height: 52rpx;"></text>
<text class="fin_rec_goodsname">{{val.equipment_name}}</text>
<!-- <text class="fin_rec_goodssubname">限量版宝璐天然粮</text> -->
<text class="fin_rec_goodprice">
......@@ -115,10 +118,10 @@
this.EquipmentRecommendList = EquipmentRecommendList;
this.isLogin = res.data.login_flg;
// 热销列表 根据专区类型是否显示
if(EquipmentHotList instanceof Array) {
if(EquipmentRecommendList instanceof Array) {
let array = [];
let temp = [];
EquipmentHotList.map((item, index) => {
EquipmentRecommendList.map((item, index) => {
if((item.goods_type > 0 && goods_type > 0) || item.goods_type == 0) {
temp.push(item);
}
......@@ -127,25 +130,25 @@
for (var i = 0, j = temp.length; i < j; i += 6) {
array.push(temp.slice(i, i + 6));
}
this.EquipmentHotList = array;
this.EquipmentRecommendList = array;
}else{
this.EquipmentHotList = null;
this.EquipmentRecommendList = null;
}
} else {
this.EquipmentHotList = EquipmentHotList;
this.EquipmentRecommendList = EquipmentRecommendList;
}
// 推荐列表 根据专区类型是否显示
if(EquipmentRecommendList instanceof Array) {
if(EquipmentHotList instanceof Array) {
let recommd_list = [];
EquipmentRecommendList.map((item, index) => {
EquipmentHotList.map((item, index) => {
if((item.goods_type > 0 && goods_type > 0) || item.goods_type == 0) {
recommd_list.push(item);
}
});
this.EquipmentRecommendList = recommd_list;
this.EquipmentHotList = recommd_list;
}
if(this.EquipmentHotList[0].length > 3) {
if(this.EquipmentRecommendList[0].length > 3) {
this.height = true;
}
}
......
......@@ -129,7 +129,9 @@
</view>
</view>
<view class="poupp_nper">
<view><text class="dlb">期数</text><text class="dlb limit_free">限时免息</text></view>
<view><text class="dlb">期数</text>
<!-- <text class="dlb limit_free">限时免息</text> -->
</view>
<view class="poupp_nper_box">
<text v-for="(val,index) in data.Equipmentproperty" :key="index" :class="{act: periodTab === index}" @click="choosePeriod(index)">{{Number(val.periods_num)+1}}</text>
</view>
......@@ -283,7 +285,8 @@
data: data,
success: () => {
uni.navigateTo({
url: '/pages/apply/choosetype'
// url: '/pages/apply/choosetype'
url: `/pages/apply/applypage1?property_id=${this.e_info.property_id}&equipment_id=${this.equipment_id}`
});
}
});
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment