ui修改
This commit is contained in:
@@ -1,4 +1,4 @@
|
||||
var WxParse = null;
|
||||
var WxParse = null;
|
||||
//获取应用实例
|
||||
var app = getApp()
|
||||
var sopenFrame = null
|
||||
@@ -200,7 +200,7 @@ Page({
|
||||
})
|
||||
}
|
||||
|
||||
that.getIconList();
|
||||
that.getIconList();
|
||||
that.rdata(0);
|
||||
sopenFrame = setInterval(function () {
|
||||
if (app.globalData.IFRefreshindex == 1) {
|
||||
@@ -826,7 +826,7 @@ Page({
|
||||
gotodetail: function (e) {
|
||||
var id = e.currentTarget.dataset.id
|
||||
wx.navigateTo({
|
||||
url: "../details/index?id=" + id
|
||||
url: "../details/index?id=" + id + "&fromHot=1"
|
||||
})
|
||||
},
|
||||
gotoPointDetail: function (e) {
|
||||
@@ -1149,31 +1149,35 @@ Page({
|
||||
var userId = wx.getStorageSync("userId")
|
||||
var LoginId = wx.getStorageSync("LoginId")
|
||||
var userInfodata = wx.getStorageSync("userInfo")
|
||||
|
||||
if (userId && LoginId && userInfodata) {
|
||||
wx.request({
|
||||
url: app.globalData.apiurl + "/api/api.ashx?action=index_about_id",
|
||||
data: {},
|
||||
method: "POST",
|
||||
dataType: "json",
|
||||
header: {
|
||||
"content-type": "application/x-www-form-urlencoded"
|
||||
},
|
||||
success(res) {
|
||||
if (res.data.status == 1) {
|
||||
wx.navigateTo({
|
||||
url: "../articledetail/index?id="+res.data.about_id
|
||||
})
|
||||
}
|
||||
else
|
||||
{
|
||||
wx.showToast({
|
||||
title: res.data.msg,
|
||||
icon: "none",
|
||||
duration: 3000
|
||||
})
|
||||
}
|
||||
}
|
||||
})
|
||||
wx.navigateTo({
|
||||
url: "../articledetail/index?ParentID=7"
|
||||
})
|
||||
// wx.request({
|
||||
// url: app.globalData.apiurl + "/api/api.ashx?action=index_about_id",
|
||||
// data: {},
|
||||
// method: "POST",
|
||||
// dataType: "json",
|
||||
// header: {
|
||||
// "content-type": "application/x-www-form-urlencoded"
|
||||
// },
|
||||
// success(res) {
|
||||
// if (res.data.status == 1) {
|
||||
// wx.navigateTo({
|
||||
// url: "../articledetail/index?id="+res.data.about_id
|
||||
// })
|
||||
// }
|
||||
// else
|
||||
// {
|
||||
// wx.showToast({
|
||||
// title: res.data.msg,
|
||||
// icon: "none",
|
||||
// duration: 3000
|
||||
// })
|
||||
// }
|
||||
// }
|
||||
// })
|
||||
|
||||
}
|
||||
else {
|
||||
|
||||
@@ -38,7 +38,7 @@
|
||||
</view>
|
||||
</view>
|
||||
</view>
|
||||
<view class="notice_box">
|
||||
<view class="notice_box" wx:if="{{IFCS==2}}" >
|
||||
<view class="notice_title">
|
||||
<image src="../../images/notice.png"></image><text>最新公告</text>
|
||||
</view>
|
||||
@@ -54,7 +54,7 @@
|
||||
|
||||
</view>
|
||||
|
||||
|
||||
<!-- IFCS==1 -->
|
||||
<view class="mydata_box0" wx:if="{{IFCS==1}}">
|
||||
<view class="mydata_box0_bo">
|
||||
|
||||
@@ -121,15 +121,15 @@
|
||||
<block wx:for="{{products}}" wx:for-item="cell" wx:for-index="index0">
|
||||
<view class='block {{products.length > 1 ? "block0" : ""}} {{products.length > 1 && index0 % 2 == 0 ? "l" : ""}} {{products.length > 1 && index0 % 2 == 1 ? "r" : ""}}' bindtap="gotodetail" data-id="{{cell._id}}">
|
||||
<view class='choice_item'>
|
||||
<view class='choice_item_image'>
|
||||
<image src="{{cell.image}}" />
|
||||
</view>
|
||||
<view class='choice_item_font'>
|
||||
<view class="title">{{cell.name}}</view>
|
||||
<view class="price">零售价:¥{{cell.scje}}</view>
|
||||
<view class="price">会员价:¥{{cell.hyje}}</view>
|
||||
<view wx:if="{{products.length == 1}}" class="right_button">
|
||||
<view>立即购买</view>
|
||||
<image src="{{cell.image}}"/>
|
||||
<view class="title">{{cell.name}}</view>
|
||||
<view class="je">
|
||||
<view class="jeto">
|
||||
<view>零售价: </view>
|
||||
<view class="scje">¥{{cell.scje}}</view>
|
||||
</view>
|
||||
<view class="jeto jeto0">
|
||||
<view class="viphyj">会员价:<text>¥{{cell.hyje}}</text></view>
|
||||
</view>
|
||||
</view>
|
||||
</view>
|
||||
@@ -138,7 +138,7 @@
|
||||
</view>
|
||||
</view>
|
||||
</view>
|
||||
<view class="container_box_to" style="margin-bottom: 6em;">
|
||||
<view class="container_box_to" style="margin-bottom: 6em;" wx:if="{{IFCS==2}}" >
|
||||
<view class="choice_text">
|
||||
<view class="line_flag"></view>
|
||||
<text>兑换商城</text>
|
||||
@@ -153,15 +153,11 @@
|
||||
<block wx:for="{{products0}}" wx:for-item="cell" wx:for-index="index0">
|
||||
<view class='block {{products0.length > 1 ? "block0" : ""}} {{products0.length > 1 && index0 % 2 == 0 ? "l" : ""}} {{products0.length > 1 && index0 % 2 == 1 ? "r" : ""}}' bindtap="gotoPointDetail" data-id="{{cell._id}}">
|
||||
<view class='choice_item'>
|
||||
<view class='choice_item_image'>
|
||||
<image src="{{cell.image}}" />
|
||||
</view>
|
||||
<view class='choice_item_font'>
|
||||
<view class="title">{{cell.name}}</view>
|
||||
<view class="price" style="display:none;">零售价:¥{{cell.scje}}</view>
|
||||
<view class="price">兑换券:{{cell.hyje}}</view>
|
||||
<view wx:if="{{products0.length == 1}}" class="right_button">
|
||||
<view>立即购买</view>
|
||||
<image src="{{cell.image}}"/>
|
||||
<view class="title">{{cell.name}}</view>
|
||||
<view class="je">
|
||||
<view class="jeto jeto0">
|
||||
<view class="viphyj">兑换券:<text>{{cell.hyje}}</text></view>
|
||||
</view>
|
||||
</view>
|
||||
</view>
|
||||
|
||||
@@ -556,6 +556,7 @@ width: 50%;
|
||||
padding: 0.5em;
|
||||
text-align: center;
|
||||
overflow: hidden;
|
||||
box-sizing: border-box;
|
||||
}
|
||||
.choice_box .choice_list .block.block0.l{
|
||||
padding-right: 0.25em;
|
||||
@@ -565,11 +566,9 @@ padding-left: 0.25em;
|
||||
}
|
||||
.choice_box .choice_list .block .choice_item{
|
||||
float: left;
|
||||
display: flex;
|
||||
flex-direction: row;
|
||||
margin-top: 0.8em;
|
||||
width: 100%;
|
||||
padding:0;
|
||||
border:1px solid #f1f1f1;
|
||||
background-color: #fff;
|
||||
border-radius:0.5em;
|
||||
box-sizing: border-box;
|
||||
@@ -578,29 +577,27 @@ overflow: hidden;
|
||||
.choice_box .choice_list .block.block0 .choice_item{
|
||||
display:block;
|
||||
}
|
||||
.choice_box .choice_list .block .choice_item .choice_item_image{
|
||||
width:10em;
|
||||
padding: 0.8em;
|
||||
box-sizing: border-box;
|
||||
}
|
||||
|
||||
.choice_box .choice_list .block .choice_item .choice_item_font{
|
||||
flex-grow: 1;
|
||||
display:flex;
|
||||
flex-direction: column;
|
||||
margin-top: 0.8em;
|
||||
}
|
||||
|
||||
.choice_box .choice_list .block .choice_item .choice_item_image image{
|
||||
width:100%;
|
||||
height:9em;
|
||||
border-radius:0.5em;
|
||||
}
|
||||
.choice_box .choice_list .block.block0 image {
|
||||
width: 100%;
|
||||
height:46vw;
|
||||
}
|
||||
|
||||
/* 单行商品布局优化 */
|
||||
.choice_box .choice_list .block:not(.block0) {
|
||||
width: 100%;
|
||||
padding: 0.5em;
|
||||
box-sizing: border-box;
|
||||
}
|
||||
.choice_box .choice_list .block:not(.block0) .choice_item {
|
||||
display: block;
|
||||
}
|
||||
.choice_box .choice_list .block:not(.block0) image {
|
||||
width: 100%;
|
||||
height: 80vw;
|
||||
max-height: 480px;
|
||||
object-fit: cover;
|
||||
}
|
||||
|
||||
.choice_box .choice_list .title {
|
||||
float: left;
|
||||
padding:0 0.5em;
|
||||
@@ -661,17 +658,35 @@ box-sizing: border-box;
|
||||
.choice_box .choice_list .je .jeto{
|
||||
display: flex;
|
||||
flex-direction:row;
|
||||
margin-top: 0.8em;
|
||||
background: linear-gradient(to right, #FF6B35, #FF4E50);
|
||||
padding: 0.4em 0.4em;
|
||||
color:#fff;
|
||||
border-radius:0.5em;
|
||||
box-sizing: border-box;
|
||||
color: #FF6B35;
|
||||
}
|
||||
.choice_box .choice_list .je .jeto.jeto0{
|
||||
|
||||
}
|
||||
.choice_box .choice_list .je .jeto .viphyj{
|
||||
display: flex;
|
||||
flex-direction:row;
|
||||
margin-top: 0.2em;
|
||||
font-weight: 600;
|
||||
}
|
||||
.choice_box .choice_list .je .jeto .viphyj image{
|
||||
width:1.2em;
|
||||
height:1.2em;
|
||||
margin-top: 0.1em;
|
||||
margin-right: 0.2em;
|
||||
}
|
||||
.choice_box .choice_list .je .jeto .viphyj view{
|
||||
height:1.5em;
|
||||
line-height: 1.5em;
|
||||
}
|
||||
|
||||
.choice_box .choice_list .je .jeto .scje{
|
||||
text-decoration:line-through;
|
||||
}
|
||||
.choice_box .choice_list .je .jeto .hyje{
|
||||
|
||||
line-height:1.4em;
|
||||
margin-top: 0.2em;
|
||||
}
|
||||
|
||||
|
||||
.choice_box .choice_list .block.block0 .title{
|
||||
@@ -679,18 +694,30 @@ text-decoration:line-through;
|
||||
overflow: hidden;
|
||||
white-space: nowrap;
|
||||
text-overflow: ellipsis;
|
||||
|
||||
}
|
||||
.choice_box .choice_list .block.block0 .je {
|
||||
float: left;
|
||||
width:100%;
|
||||
display: block;
|
||||
text-align: center;
|
||||
|
||||
text-align: left;
|
||||
}
|
||||
.choice_box .choice_list .block.block0 .je .jeto {
|
||||
justify-content: flex-start;
|
||||
margin-top: 0;
|
||||
}
|
||||
.choice_box .choice_list .block.block0 .je .jeto .viphyj {
|
||||
justify-content: flex-start;
|
||||
align-items: center;
|
||||
margin-top: 0.2em;
|
||||
font-weight: 600;
|
||||
}
|
||||
.choice_box .choice_list .block.block0 .je .jeto .viphyj text {
|
||||
font-weight: bold;
|
||||
margin-left: 0.2em;
|
||||
}
|
||||
.choice_box .choice_list .block.block0 .je .jeto .hyje{
|
||||
margin-top: 0.15em;
|
||||
|
||||
|
||||
}
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user