Commit 84e12895951d26f7d92ec993a1ce13d6471ba45a
1 parent
26002bcc
模板预览的优化
Showing
4 changed files
with
1174 additions
and
0 deletions
packageG/pages/user_template/index.js
0 → 100644
| 1 | + | |
| 2 | +var t = getApp(), | |
| 3 | + a = t.request, | |
| 4 | + os = t.globalData.setting, | |
| 5 | + ut = require("../../utils/util.js"), | |
| 6 | + com = require("../../utils/common.js"); | |
| 7 | + var regeneratorRuntime = require('../../utils/runtime.js'); | |
| 8 | + var api = require('../../api/api.js'); | |
| 9 | + var appd = getApp().globalData; | |
| 10 | + | |
| 11 | +Page({ | |
| 12 | + data: { | |
| 13 | + url: os.imghost, | |
| 14 | + temp_id:0, | |
| 15 | + goodsGroupArr:[] | |
| 16 | + }, | |
| 17 | + | |
| 18 | + onLoad: function(e) { | |
| 19 | + var th = this; | |
| 20 | + this.data.temp_id=e.scene; | |
| 21 | + if(!this.data.temp_id) | |
| 22 | + this.data.temp_id=e.sence; | |
| 23 | + if(!this.data.temp_id) wx.showModal({ title:"未读取到模板ID" ,}) | |
| 24 | + | |
| 25 | + var first_leader = e.first_leader; | |
| 26 | + if (first_leader) { | |
| 27 | + //-- user_id代过来免登录 -- | |
| 28 | + getApp().globalData.first_leader = first_leader; | |
| 29 | + //调用接口判断是不是会员 | |
| 30 | + getApp().request.promiseGet("/api/weshop/shoppingGuide/get/" + os.stoid + "/" + first_leader, {}).then(res => { | |
| 31 | + if (res.data.code == 0) { | |
| 32 | + getApp().globalData.guide_id = res.data.data.id; | |
| 33 | + getApp().globalData.guide_pick_id= res.data.data.pickup_id | |
| 34 | + } | |
| 35 | + }) | |
| 36 | + } | |
| 37 | + | |
| 38 | + | |
| 39 | + | |
| 40 | + }, | |
| 41 | + | |
| 42 | + async onShow() { | |
| 43 | + getApp().check_can_share(); | |
| 44 | + var th = this; | |
| 45 | + await this.init_load(); | |
| 46 | + //如果是自定义模板 | |
| 47 | + if (this.data.isTemplate) { | |
| 48 | + | |
| 49 | + } | |
| 50 | + }, | |
| 51 | + //获取商品模块实例 | |
| 52 | + newGoodsGroup(){ | |
| 53 | + let arr=[] | |
| 54 | + if (this.data.template_arr.length == 0) { | |
| 55 | + return | |
| 56 | + } | |
| 57 | + this.data.template_arr.map((item,index)=>{ | |
| 58 | + if (item.ename == 'goodsGroup') { | |
| 59 | + arr.push(`goodsGroup${index}`) | |
| 60 | + } | |
| 61 | + }) | |
| 62 | + if (arr.length > 0) { | |
| 63 | + this.setData({ | |
| 64 | + goodsGroupArr : arr | |
| 65 | + }) | |
| 66 | + arr.map(item=>{ | |
| 67 | + let a = '.'+item | |
| 68 | + this[item] = this.selectComponent(a); | |
| 69 | + }) | |
| 70 | + } | |
| 71 | + }, | |
| 72 | + //当隐藏的时候就关闭计时器 | |
| 73 | + onHide: function() { | |
| 74 | + | |
| 75 | + }, | |
| 76 | + //同步初始加载 | |
| 77 | + async init_load() { | |
| 78 | + var th = this; | |
| 79 | + //因为营销版本的功能包含了自定义模板的功能,是同时的 | |
| 80 | + //读取全局是否有弄自定义模板 | |
| 81 | + await getApp().request.promiseGet("/api/weshop/store_module/get/"+th.data.temp_id+"/8",{1:1} ).then(res => { | |
| 82 | + var data = res.data.data; | |
| 83 | + if (data) { | |
| 84 | + var temp_data = data; | |
| 85 | + wx.setNavigationBarTitle({ | |
| 86 | + title: temp_data.page_title, | |
| 87 | + }); | |
| 88 | + var t_arr = JSON.parse(temp_data.json_str); | |
| 89 | + th.setData({ | |
| 90 | + share_title:temp_data.page_title, | |
| 91 | + template_arr: t_arr, | |
| 92 | + isTemplate: 1, | |
| 93 | + bgcolor_t: temp_data.bkcolor | |
| 94 | + }); | |
| 95 | + setTimeout(()=>{ | |
| 96 | + th.newGoodsGroup() | |
| 97 | + },1000) | |
| 98 | + | |
| 99 | + //---如果有设定顶部的颜色的时候-- | |
| 100 | + if(temp_data.top_color && temp_data.top_color!='null' ){ | |
| 101 | + | |
| 102 | + var top_w_color="#ffffff"; | |
| 103 | + if(temp_data.top_word_color && temp_data.top_word_color=='black'){ | |
| 104 | + top_w_color="#000000"; | |
| 105 | + } | |
| 106 | + | |
| 107 | + wx.setNavigationBarColor({ | |
| 108 | + frontColor: top_w_color, // 必写项 | |
| 109 | + backgroundColor: temp_data.top_color, // 必写项 | |
| 110 | + }) | |
| 111 | + } | |
| 112 | + | |
| 113 | + } | |
| 114 | + }) | |
| 115 | + | |
| 116 | + | |
| 117 | + | |
| 118 | + }, | |
| 119 | + | |
| 120 | + onPullDownRefresh: function(e) { | |
| 121 | + | |
| 122 | + }, | |
| 123 | + | |
| 124 | + | |
| 125 | + onShareAppMessage:async function(e) { | |
| 126 | + var th=this; | |
| 127 | + getApp().globalData.no_clear=1; | |
| 128 | + getApp().getConfig(await function(e){ | |
| 129 | + th.setData({ | |
| 130 | + store_config:e | |
| 131 | + }) | |
| 132 | + }.bind(this)) | |
| 133 | + | |
| 134 | + var url= `pages/template/index?sence=`+this.data.temp_id; | |
| 135 | + var userInfo = getApp().globalData.userInfo; | |
| 136 | + //是分销商才带 | |
| 137 | + if (userInfo) { | |
| 138 | + url += "&first_leader=" + userInfo.user_id; | |
| 139 | + } | |
| 140 | + | |
| 141 | + var ob = { | |
| 142 | + title: this.data.share_title, | |
| 143 | + path: url, | |
| 144 | + //imageUrl:this.data.url+this.data.store_config.store_logo, | |
| 145 | + }; | |
| 146 | + return ob; | |
| 147 | + }, | |
| 148 | + | |
| 149 | + /** | |
| 150 | + * 用户分享朋友圈 | |
| 151 | + */ | |
| 152 | + async onShareTimeline(){ | |
| 153 | + | |
| 154 | + var th=this; | |
| 155 | + getApp().globalData.no_clear=1; | |
| 156 | + getApp().getConfig(await function(e){ | |
| 157 | + th.setData({ | |
| 158 | + store_config:e | |
| 159 | + }) | |
| 160 | + }.bind(this)) | |
| 161 | + var {share_title,temp_id,store_config} = this.data; | |
| 162 | + var url= `sence=${temp_id}`; | |
| 163 | + | |
| 164 | + var userInfo = getApp().globalData.userInfo; | |
| 165 | + //是分销商才带 | |
| 166 | + if (userInfo) { | |
| 167 | + url += "&first_leader=" + userInfo.user_id; | |
| 168 | + } | |
| 169 | + | |
| 170 | + var ob = { | |
| 171 | + title:share_title, | |
| 172 | + query:url, | |
| 173 | + //imageUrl:this.data.url+store_config.store_logo, | |
| 174 | + }; | |
| 175 | + console.log(ob); | |
| 176 | + return ob; | |
| 177 | +}, | |
| 178 | + //---加载更多是靠这个函数---- | |
| 179 | + onReachBottom: function() { | |
| 180 | + if(getApp().globalData.func_list) | |
| 181 | + { | |
| 182 | + for(let i in getApp().globalData.func_list){ | |
| 183 | + let item=getApp().globalData.func_list[i]; | |
| 184 | + item.re_show(); | |
| 185 | + } | |
| 186 | + } | |
| 187 | + | |
| 188 | + //自定义时商品自动加载更多 | |
| 189 | + let goodsGroupArr = this.data.goodsGroupArr | |
| 190 | + if (this.data.isTemplate && goodsGroupArr.length >0) { | |
| 191 | + goodsGroupArr.map(item=>{ | |
| 192 | + this[item].automore() | |
| 193 | + }) | |
| 194 | + } | |
| 195 | + }, | |
| 196 | + | |
| 197 | + | |
| 198 | + | |
| 199 | +}); | |
| 0 | 200 | \ No newline at end of file | ... | ... |
packageG/pages/user_template/index.json
0 → 100644
| 1 | +{ | |
| 2 | + "navigationBarBackgroundColor": "#ff7295", | |
| 3 | + "navigationBarTextStyle": "white", | |
| 4 | + "usingComponents": { | |
| 5 | + "advertising":"/components/diy_advertising/diy_advertising", | |
| 6 | + "assist":"/components/diy_assist/diy_assist", | |
| 7 | + "diy_user_info":"/components/diy_user_info/diy_user_info", | |
| 8 | + "diy_user_order":"/components/diy_user_order/diy_user_order", | |
| 9 | + "diy_user_my_rights":"/components/diy_user_my_rights/diy_user_my_rights", | |
| 10 | + "diy_user_tools_services":"/components/diy_user_my_rights/diy_user_tools_services" | |
| 11 | + }, | |
| 12 | + "enablePullDownRefresh": false, | |
| 13 | + "onReachBottomDistance":300 | |
| 14 | +} | |
| 0 | 15 | \ No newline at end of file | ... | ... |
packageG/pages/user_template/index.wxml
0 → 100644
| 1 | +<view class="container" style="background-color:{{bgcolor_t}}"> | |
| 2 | + <block wx:for="{{template_arr}}" wx:key="{{index}}"> | |
| 3 | + <view> | |
| 4 | + <!--广告组合--> | |
| 5 | + <block wx:if="{{item.ename=='advertising'}}"> | |
| 6 | + <advertising object="{{item.content}}"></advertising> | |
| 7 | + </block> | |
| 8 | + <!--辅助空白--> | |
| 9 | + <block wx:if="{{item.ename=='white'}}"> | |
| 10 | + <assist object="{{item.content}}"></assist> | |
| 11 | + </block> | |
| 12 | + <!-- 会员信息 --> | |
| 13 | + <block wx:if="{{item.ename=='userinfo'}}"> | |
| 14 | + <diy_user_info object="{{item.content}}"></diy_user_info> | |
| 15 | + </block> | |
| 16 | + <!-- 我的订单 --> | |
| 17 | + <block wx:if="{{item.ename=='order'}}"> | |
| 18 | + <diy_user_order object="{{item.content}}"></diy_user_order> | |
| 19 | + </block> | |
| 20 | + <!-- 我的权益 --> | |
| 21 | + <block wx:if="{{item.ename=='my_rights'}}"> | |
| 22 | + <diy_user_order object="{{item.content}}"></diy_user_order> | |
| 23 | + </block> | |
| 24 | + <!-- 工具与服务 --> | |
| 25 | + <block wx:if="{{item.ename=='tools_services'}}"> | |
| 26 | + <diy_user_tools_services object="{{item.content}}"></diy_user_tools_services> | |
| 27 | + </block> | |
| 28 | + | |
| 29 | + </view> | |
| 30 | + </block> | |
| 31 | +</view> | |
| 32 | +<!-- 蒙尘 --> | |
| 33 | +<block wx:if="{{is_disgraceful}}"> | |
| 34 | + <view class="disgraceful"> | |
| 35 | + <!-- 新人礼领取图片 --> | |
| 36 | + <view class="newreceive flex-center"> | |
| 37 | + <view> | |
| 38 | + <navigator bindtap="new_nav"> | |
| 39 | + <view class="flex-level"> | |
| 40 | + <image class="receive" src="{{url}}{{new_image==''?'/miniapp/images/newpeople/newreceive.png':new_image}}"></image> | |
| 41 | + </view> | |
| 42 | + </navigator> | |
| 43 | + <view class="flex-level"> | |
| 44 | + <image class="close" src="{{url}}/miniapp/images/plus/Close.png" bindtap="close_disgraceful"></image> | |
| 45 | + </view> | |
| 46 | + </view> | |
| 47 | + </view> | |
| 48 | + </view> | |
| 49 | +</block> | |
| 0 | 50 | \ No newline at end of file | ... | ... |
packageG/pages/user_template/index.wxss
0 → 100644
| 1 | +.pink-b { | |
| 2 | + background: #ff7295; | |
| 3 | +} | |
| 4 | + | |
| 5 | +.search-box { | |
| 6 | + position: fixed; | |
| 7 | + top: 0; | |
| 8 | + left: 0; | |
| 9 | + width: 100%; | |
| 10 | + height: 88rpx; | |
| 11 | + z-index: 10; | |
| 12 | +} | |
| 13 | + | |
| 14 | +.classify-img { | |
| 15 | + width: 50rpx; | |
| 16 | + height: 45rpx; | |
| 17 | +} | |
| 18 | + | |
| 19 | +.logo { | |
| 20 | + width: 48rpx; | |
| 21 | + height: 48rpx; | |
| 22 | + margin: 0 18rpx; | |
| 23 | + border-radius: 50%; | |
| 24 | + overflow: hidden; | |
| 25 | +} | |
| 26 | + | |
| 27 | +.search-inner { | |
| 28 | + display: flex; | |
| 29 | + align-items: center; | |
| 30 | + margin: 20rpx 25rpx; | |
| 31 | + width: 566rpx; | |
| 32 | + height: 58rpx; | |
| 33 | + border-radius: 29rpx; | |
| 34 | + background-color: #fff; | |
| 35 | + justify-content: center; | |
| 36 | +} | |
| 37 | + | |
| 38 | +.search-img { | |
| 39 | + width: 30rpx; | |
| 40 | + height: 30rpx; | |
| 41 | + margin-left: 36rpx; | |
| 42 | + display: flex; | |
| 43 | + align-items: center; | |
| 44 | + position: absolute; | |
| 45 | + left: 10%; | |
| 46 | +} | |
| 47 | + | |
| 48 | +.search-cont { | |
| 49 | + height: 58rpx; | |
| 50 | + width: 530rpx; | |
| 51 | + padding-left: 12rpx; | |
| 52 | + line-height: 58rpx; | |
| 53 | + font-size: 24rpx; | |
| 54 | + color: #666; | |
| 55 | + margin-left: 56rpx; | |
| 56 | +} | |
| 57 | + | |
| 58 | +.search-fixed { | |
| 59 | + background: #ff7295; | |
| 60 | +} | |
| 61 | + | |
| 62 | +.swiper_box { | |
| 63 | + width: 100%; | |
| 64 | + height: auto; | |
| 65 | +} | |
| 66 | + | |
| 67 | +.s_prom { | |
| 68 | + width: 100%; | |
| 69 | + height: 340rpx; | |
| 70 | +} | |
| 71 | + | |
| 72 | +.s_proms { | |
| 73 | + width: 100%; | |
| 74 | + height: 590rpx; | |
| 75 | +} | |
| 76 | + | |
| 77 | +.slide-image { | |
| 78 | + width: 100%; | |
| 79 | + display: inline-block; | |
| 80 | + overflow: hidden; | |
| 81 | + border-radius: 14rpx; | |
| 82 | + height: auto; | |
| 83 | +} | |
| 84 | + | |
| 85 | +.venues_box { | |
| 86 | + background-color: #fff; | |
| 87 | + padding: 20rpx 10rpx; | |
| 88 | +} | |
| 89 | + | |
| 90 | +.venues_item { | |
| 91 | + display: block; | |
| 92 | + float: left; | |
| 93 | + width: 20%; | |
| 94 | + text-align: center; | |
| 95 | + margin: 25rpx 0; | |
| 96 | +} | |
| 97 | + | |
| 98 | +.venues_item image { | |
| 99 | + vertical-align: middle; | |
| 100 | + width: 90rpx; | |
| 101 | + height: 90rpx; | |
| 102 | + border: 0; | |
| 103 | +} | |
| 104 | + | |
| 105 | +.venues_item view { | |
| 106 | + font-size: 26rpx; | |
| 107 | + margin-top: 10rpx; | |
| 108 | +} | |
| 109 | + | |
| 110 | +.choice_box { | |
| 111 | + font-size: 14px; | |
| 112 | +} | |
| 113 | + | |
| 114 | +.choice_box .choice_list .choice_item { | |
| 115 | + width: 368rpx; | |
| 116 | + float: left; | |
| 117 | + margin: 2rpx; | |
| 118 | + background-color: #fff; | |
| 119 | +} | |
| 120 | + | |
| 121 | +.choice_box .choice_list image { | |
| 122 | + width: 100%; | |
| 123 | + height: auto; | |
| 124 | +} | |
| 125 | + | |
| 126 | +.title-img { | |
| 127 | + margin-top: 110rpx; | |
| 128 | + margin-bottom: 15rpx; | |
| 129 | + height: auto; | |
| 130 | +} | |
| 131 | + | |
| 132 | +.choice_box .choice_list .title { | |
| 133 | + height: 36rpx; | |
| 134 | + line-height: 36rpx; | |
| 135 | + /* font-weight: bold; */ | |
| 136 | + text-align: left; | |
| 137 | + color: #333; | |
| 138 | + margin-left: 20rpx; | |
| 139 | + font-size: 30rpx; | |
| 140 | +} | |
| 141 | + | |
| 142 | +.choice_box .choice_list .choice_footer { | |
| 143 | + display: block; | |
| 144 | + margin-top: 20rpx; | |
| 145 | + margin-left: 15rpx; | |
| 146 | + position: relative; | |
| 147 | + height: 74rpx; | |
| 148 | + line-height: 17rpx; | |
| 149 | +} | |
| 150 | + | |
| 151 | +.choice_box .choice_list .choice_footer .price { | |
| 152 | + color: #f23030; | |
| 153 | + height: 10px; | |
| 154 | +} | |
| 155 | + | |
| 156 | +.choice_box .choice_list .choice_footer .similer { | |
| 157 | + position: absolute; | |
| 158 | + bottom: 0; | |
| 159 | + right: 0; | |
| 160 | + text-align: center; | |
| 161 | + color: #686868; | |
| 162 | + width: fit-content; | |
| 163 | + line-height: 30rpx; | |
| 164 | + border: 1rpx solid #bfbfbf; | |
| 165 | + padding: 1rpx 6rpx; | |
| 166 | + border-radius: 5rpx; | |
| 167 | +} | |
| 168 | + | |
| 169 | +.section { | |
| 170 | + margin-top: 20rpx; | |
| 171 | + background-color: #fff; | |
| 172 | +} | |
| 173 | + | |
| 174 | +.section-title { | |
| 175 | + padding-top: 30rpx; | |
| 176 | + height: 54rpx; | |
| 177 | + line-height: 54rpx; | |
| 178 | + font-size: 36rpx; | |
| 179 | + font-weight: 700; | |
| 180 | + color: #333; | |
| 181 | + text-align: center; | |
| 182 | + letter-spacing: 3rpx; | |
| 183 | +} | |
| 184 | + | |
| 185 | +.section-subtitle { | |
| 186 | + line-height: 0; | |
| 187 | + width: 340rpx; | |
| 188 | + height: 16rpx; | |
| 189 | + padding-bottom: 20rpx; | |
| 190 | + margin: 0 auto; | |
| 191 | +} | |
| 192 | + | |
| 193 | +.seckill { | |
| 194 | + margin-top: 20rpx; | |
| 195 | + background-color: #fff; | |
| 196 | + padding-bottom: 30rpx; | |
| 197 | +} | |
| 198 | + | |
| 199 | +.seckill-time { | |
| 200 | + display: flex; | |
| 201 | + justify-content: space-between; | |
| 202 | + padding: 0 30rpx; | |
| 203 | + align-items: center; | |
| 204 | + height: 72rpx; | |
| 205 | + color: #333; | |
| 206 | + margin-bottom: 20rpx; | |
| 207 | +} | |
| 208 | + | |
| 209 | +.sk-tips { | |
| 210 | + font-size: 36rpx; | |
| 211 | + font-weight: bold; | |
| 212 | + margin-right: 20rpx; | |
| 213 | +} | |
| 214 | + | |
| 215 | +.sk-time { | |
| 216 | + position: relative; | |
| 217 | + display: inline-block; | |
| 218 | + font-size: 24rpx; | |
| 219 | + width: 36rpx; | |
| 220 | + line-height: 36rpx; | |
| 221 | + background-color: #333; | |
| 222 | + margin-right: 20rpx; | |
| 223 | + color: #fff; | |
| 224 | + text-align: center; | |
| 225 | +} | |
| 226 | + | |
| 227 | +.sk-time::before { | |
| 228 | + content: ':'; | |
| 229 | + position: absolute; | |
| 230 | + right: -13rpx; | |
| 231 | + top: 0; | |
| 232 | + color: #333; | |
| 233 | + font-weight: bold; | |
| 234 | +} | |
| 235 | + | |
| 236 | +.sk-time:last-child::before { | |
| 237 | + content: ''; | |
| 238 | +} | |
| 239 | + | |
| 240 | +.seckill-time>navigator { | |
| 241 | + font-size: 28rpx; | |
| 242 | +} | |
| 243 | + | |
| 244 | +.sk-pic { | |
| 245 | + width: 28rpx; | |
| 246 | + height: 28rpx; | |
| 247 | + vertical-align: top; | |
| 248 | +} | |
| 249 | + | |
| 250 | +.seckill-list { | |
| 251 | + overflow: hidden; | |
| 252 | +} | |
| 253 | + | |
| 254 | +/* .seckill-list navigator { | |
| 255 | + width: 236rpx; margin-right: 10rpx; position: relative; | |
| 256 | +} */ | |
| 257 | + | |
| 258 | +.seckill-list view { | |
| 259 | + height: 62rpx; | |
| 260 | + padding: 0 10rpx; | |
| 261 | + line-height: 33rpx; | |
| 262 | + overflow: hidden; | |
| 263 | + font-size: 28rpx; | |
| 264 | + width: 203rpx; | |
| 265 | +} | |
| 266 | + | |
| 267 | +.seckill-list view.imgview { | |
| 268 | + width: 203rpx; | |
| 269 | + height: 210rpx; | |
| 270 | + position: relative; | |
| 271 | + overflow: hidden; | |
| 272 | +} | |
| 273 | + | |
| 274 | +.imgview image { | |
| 275 | + width: 203rpx; | |
| 276 | + height: 203rpx; | |
| 277 | + border-radius: 10rpx; | |
| 278 | +} | |
| 279 | + | |
| 280 | +.seckill-list view.djs_view { | |
| 281 | + background: rgba(9, 9, 9, 0.5); | |
| 282 | + color: #fff; | |
| 283 | + font-size: 20rpx; | |
| 284 | + width: 216rpx; | |
| 285 | + height: 36rpx; | |
| 286 | + line-height: 36rpx; | |
| 287 | + position: absolute; | |
| 288 | + bottom: 0; | |
| 289 | + left: 10rpx; | |
| 290 | + z-index: 5; | |
| 291 | + text-align-last: center; | |
| 292 | +} | |
| 293 | + | |
| 294 | +.seckill-list image.status_img { | |
| 295 | + width: 100rpx; | |
| 296 | + height: 35rpx; | |
| 297 | + position: absolute; | |
| 298 | + top: 0rpx; | |
| 299 | + left: 10rpx; | |
| 300 | + z-index: 5; | |
| 301 | +} | |
| 302 | + | |
| 303 | +.seckill-list view.status_view { | |
| 304 | + width: 60rpx; | |
| 305 | + height: 60rpx; | |
| 306 | + text-align: center; | |
| 307 | + line-height: 60rpx; | |
| 308 | + position: absolute; | |
| 309 | + background: #e9030d; | |
| 310 | + color: #fff; | |
| 311 | + font-size: 18rpx; | |
| 312 | + top: 5rpx; | |
| 313 | + right: 10rpx; | |
| 314 | + z-index: 5; | |
| 315 | + border-radius: 50%; | |
| 316 | + padding: 0; | |
| 317 | +} | |
| 318 | + | |
| 319 | +.xiafa { | |
| 320 | + text-decoration: line-through; | |
| 321 | + font-size: 10px; | |
| 322 | + color: #999; | |
| 323 | + margin-left: 10rpx; | |
| 324 | +} | |
| 325 | + | |
| 326 | +.shelue { | |
| 327 | + /* text-overflow: -o-ellipsis-lastline; | |
| 328 | + overflow: hidden; | |
| 329 | + text-overflow: ellipsis; | |
| 330 | + display: -webkit-box; | |
| 331 | + -webkit-line-clamp: 2; | |
| 332 | + -webkit-box-orient: vertical; */ | |
| 333 | + white-space: nowrap; | |
| 334 | + text-overflow: ellipsis; | |
| 335 | + overflow: hidden; | |
| 336 | +} | |
| 337 | + | |
| 338 | +.meiz { | |
| 339 | + padding: 0 10rpx; | |
| 340 | + background: #c4182e; | |
| 341 | + color: #fff; | |
| 342 | + height: 18px; | |
| 343 | + line-height: 18px; | |
| 344 | + margin-top: -10rpx; | |
| 345 | + border-radius: 10rpx; | |
| 346 | +} | |
| 347 | + | |
| 348 | +.dengj { | |
| 349 | + padding: 0 10rpx; | |
| 350 | + background: #ffd700; | |
| 351 | + color: #fff; | |
| 352 | + height: 18px; | |
| 353 | + line-height: 18px; | |
| 354 | + margin-top: -10rpx; | |
| 355 | + border-radius: 10rpx; | |
| 356 | +} | |
| 357 | + | |
| 358 | +.kongge { | |
| 359 | + width: 20rpx; | |
| 360 | +} | |
| 361 | + | |
| 362 | +.choice_footer .ys { | |
| 363 | + color: #999; | |
| 364 | + margin-top: 20rpx; | |
| 365 | + font-size: 11px; | |
| 366 | + margin-left: 5rpx; | |
| 367 | +} | |
| 368 | + | |
| 369 | +.p_swiper { | |
| 370 | + display: flex; | |
| 371 | +} | |
| 372 | + | |
| 373 | +.p_swiper .un_line { | |
| 374 | + text-decoration: line-through; | |
| 375 | + font-size: 22rpx; | |
| 376 | + color: #b2a2c2; | |
| 377 | +} | |
| 378 | + | |
| 379 | +.seckill-list view.co-red2 { | |
| 380 | + font-size: 22rpx; | |
| 381 | + color: #c2aebb; | |
| 382 | + margin-top: -8rpx; | |
| 383 | +} | |
| 384 | + | |
| 385 | +.seckill-list view.cantuan { | |
| 386 | + width: 72rpx; | |
| 387 | + height: 36rpx; | |
| 388 | + text-align: center; | |
| 389 | + line-height: 36rpx; | |
| 390 | + position: absolute; | |
| 391 | + background: #e9030d; | |
| 392 | + color: #fff; | |
| 393 | + font-size: 18rpx; | |
| 394 | + bottom: 30rpx; | |
| 395 | + right: 10rpx; | |
| 396 | + z-index: 5; | |
| 397 | + border-radius: 5rpx; | |
| 398 | + padding: 0; | |
| 399 | +} | |
| 400 | + | |
| 401 | +.arrow-right { | |
| 402 | + width: 24rpx; | |
| 403 | + height: 24rpx; | |
| 404 | +} | |
| 405 | + | |
| 406 | +.pd-view { | |
| 407 | + height: 80rpx; | |
| 408 | +} | |
| 409 | + | |
| 410 | +.xc-grow-ups { | |
| 411 | + margin-left: 8rpx; | |
| 412 | + margin-top: 6rpx; | |
| 413 | +} | |
| 414 | + | |
| 415 | +.xc-top-img { | |
| 416 | + width: 100%; | |
| 417 | + top: -1rpx; | |
| 418 | + height: 315rpx; | |
| 419 | +} | |
| 420 | + | |
| 421 | +.classify-frame { | |
| 422 | + line-height: 25rpx; | |
| 423 | +} | |
| 424 | + | |
| 425 | +.slide-image-frame { | |
| 426 | + width: 95%; | |
| 427 | + margin: auto; | |
| 428 | + border-radius: 10rpx; | |
| 429 | +} | |
| 430 | + | |
| 431 | +.xc-hook { | |
| 432 | + width: 52rpx; | |
| 433 | + height: 52rpx; | |
| 434 | +} | |
| 435 | + | |
| 436 | +.margin-left { | |
| 437 | + margin-left: 10rpx; | |
| 438 | +} | |
| 439 | + | |
| 440 | +.xc-class-img { | |
| 441 | + width: 83rpx; | |
| 442 | + height: 83rpx; | |
| 443 | +} | |
| 444 | + | |
| 445 | +.xc-class-frame { | |
| 446 | + line-height: 40rpx; | |
| 447 | + margin-top: 40rpx; | |
| 448 | + margin-bottom: 20rpx; | |
| 449 | +} | |
| 450 | + | |
| 451 | +.xc-title-img { | |
| 452 | + height: 220rpx; | |
| 453 | + width: 100%; | |
| 454 | + border-radius: 15rpx; | |
| 455 | +} | |
| 456 | + | |
| 457 | +.title-img-frame { | |
| 458 | + width: 94%; | |
| 459 | + margin: auto; | |
| 460 | + margin-top: 30rpx; | |
| 461 | + padding-bottom: 10rpx; | |
| 462 | +} | |
| 463 | + | |
| 464 | +.seckill-list { | |
| 465 | + line-height: 24rpx; | |
| 466 | +} | |
| 467 | + | |
| 468 | +.seckill-lists { | |
| 469 | + line-height: 30rpx; | |
| 470 | +} | |
| 471 | + | |
| 472 | +.xc-marfin-right { | |
| 473 | + margin-right: 8rpx; | |
| 474 | +} | |
| 475 | + | |
| 476 | +.classname .clock-img { | |
| 477 | + width: 36rpx; | |
| 478 | + height: 36rpx; | |
| 479 | + margin-right: 10rpx; | |
| 480 | +} | |
| 481 | + | |
| 482 | +.classname .seckill-ttitle-img { | |
| 483 | + width: 150rpx; | |
| 484 | + height: 40rpx; | |
| 485 | +} | |
| 486 | + | |
| 487 | +.seckill-ttitle-img.height { | |
| 488 | + height: 35rpx; | |
| 489 | +} | |
| 490 | + | |
| 491 | +.split-line { | |
| 492 | + width: 100%; | |
| 493 | + height: 10rpx; | |
| 494 | + background: #eee; | |
| 495 | +} | |
| 496 | + | |
| 497 | +.mar-top10 { | |
| 498 | + margin-top: 10rpx; | |
| 499 | +} | |
| 500 | + | |
| 501 | +.classname .user-img { | |
| 502 | + width: 30rpx; | |
| 503 | + height: 30rpx; | |
| 504 | + margin-left: 20rpx; | |
| 505 | + margin-right: 10rpx; | |
| 506 | +} | |
| 507 | + | |
| 508 | +.user-frame { | |
| 509 | + /* border-left: 5rpx solid #eee; */ | |
| 510 | + height: 35rpx; | |
| 511 | + line-height: 35rpx; | |
| 512 | + margin-left: 10rpx; | |
| 513 | +} | |
| 514 | + | |
| 515 | +.user-name { | |
| 516 | + width: 66rpx; | |
| 517 | + border-left: 5rpx solid #eee; | |
| 518 | +} | |
| 519 | + | |
| 520 | +/* 团购列表 */ | |
| 521 | + | |
| 522 | +.kill-item { | |
| 523 | + display: flex; | |
| 524 | + justify-content: space-between; | |
| 525 | + background-color: #fff; | |
| 526 | + padding: 10rpx 10rpx; | |
| 527 | + margin-bottom: 10rpx; | |
| 528 | + border-radius: 10rpx; | |
| 529 | + height: 249rpx; | |
| 530 | + align-items: center; | |
| 531 | +} | |
| 532 | + | |
| 533 | +.kill-pic { | |
| 534 | + width: 215rpx; | |
| 535 | + height: 215rpx; | |
| 536 | + position: relative; | |
| 537 | +} | |
| 538 | + | |
| 539 | +.teamheight { | |
| 540 | + height: 289rpx; | |
| 541 | + border-bottom: 6rpx solid #eee; | |
| 542 | +} | |
| 543 | + | |
| 544 | +.kill-cont { | |
| 545 | + width: 440rpx; | |
| 546 | + height: 215rpx; | |
| 547 | + margin-left: 16rpx; | |
| 548 | +} | |
| 549 | + | |
| 550 | +.goods-name { | |
| 551 | + max-height: 60rpx; | |
| 552 | + font-size: 24rpx; | |
| 553 | + color: #555; | |
| 554 | + line-height: 55rpx; | |
| 555 | +} | |
| 556 | + | |
| 557 | +.xc-team-img { | |
| 558 | + width: 38rpx; | |
| 559 | + height: 45rpx; | |
| 560 | + left: -1rpx; | |
| 561 | + top: -16rpx; | |
| 562 | +} | |
| 563 | + | |
| 564 | +.tneirong { | |
| 565 | + color: #fff; | |
| 566 | + font-size: 20rpx; | |
| 567 | + border-radius: 20rpx; | |
| 568 | + padding-left: 32rpx; | |
| 569 | + padding-right: 15rpx; | |
| 570 | + padding-bottom: 2rpx; | |
| 571 | + height: 28rpx; | |
| 572 | + line-height: 28rpx; | |
| 573 | + white-space: nowrap; | |
| 574 | +} | |
| 575 | + | |
| 576 | +.xc-people-val-frame { | |
| 577 | + border: 3rpx solid #d60021; | |
| 578 | + border-radius: 8rpx; | |
| 579 | + white-space: nowrap; | |
| 580 | + height: 28rpx; | |
| 581 | +} | |
| 582 | + | |
| 583 | +.xc-people-val-frame .val-img { | |
| 584 | + width: 33rpx; | |
| 585 | + height: 28rpx; | |
| 586 | + border-radius: 8rpx; | |
| 587 | + margin-left: -2rpx; | |
| 588 | +} | |
| 589 | + | |
| 590 | +.people-img { | |
| 591 | + width: 20rpx; | |
| 592 | + height: 20rpx; | |
| 593 | +} | |
| 594 | + | |
| 595 | +.goods-num { | |
| 596 | + height: 50rpx; | |
| 597 | + display: flex; | |
| 598 | + justify-content: space-between; | |
| 599 | + margin-top: 10rpx; | |
| 600 | + font-size: 24rpx; | |
| 601 | + color: #999; | |
| 602 | +} | |
| 603 | + | |
| 604 | +.xc-top15 { | |
| 605 | + padding-top: 15rpx; | |
| 606 | + margin-top: 25rpx; | |
| 607 | +} | |
| 608 | + | |
| 609 | +.underline { | |
| 610 | + text-decoration: line-through; | |
| 611 | + color: #999; | |
| 612 | + font-size: 20rpx; | |
| 613 | + margin-left: 5rpx; | |
| 614 | + margin-top: 5rpx; | |
| 615 | +} | |
| 616 | + | |
| 617 | +.navigator.navwidth { | |
| 618 | + width: 100%;; | |
| 619 | +} | |
| 620 | + | |
| 621 | +.view.left { | |
| 622 | + padding: 0 5rpx; | |
| 623 | +} | |
| 624 | + | |
| 625 | +/* 热门好物 */ | |
| 626 | + | |
| 627 | +.title .China { | |
| 628 | + width: 100%; | |
| 629 | + margin-top: 10rpx; | |
| 630 | + margin-bottom: 10rpx; | |
| 631 | + line-height: 0rpx; | |
| 632 | +} | |
| 633 | + | |
| 634 | +.title .China .line view { | |
| 635 | + width: 2rpx; | |
| 636 | +} | |
| 637 | + | |
| 638 | +.title .China .line { | |
| 639 | + height: 40rpx; | |
| 640 | + color: rgb(51, 51, 51); | |
| 641 | +} | |
| 642 | + | |
| 643 | +.title .China .line view { | |
| 644 | + border-left: 3rpx solid #000; | |
| 645 | + margin-left: 5rpx; | |
| 646 | +} | |
| 647 | + | |
| 648 | +.title .China .line .one { | |
| 649 | + height: 23rpx; | |
| 650 | +} | |
| 651 | + | |
| 652 | +.title .China .line .two { | |
| 653 | + height: 15rpx; | |
| 654 | +} | |
| 655 | + | |
| 656 | +.title .China .line .three { | |
| 657 | + height: 18rpx; | |
| 658 | +} | |
| 659 | + | |
| 660 | +.title .China .Recommend { | |
| 661 | + margin: 0rpx 20rpx; | |
| 662 | + font-size: 28rpx; | |
| 663 | + line-height: 39rpx; | |
| 664 | + font-weight: bold; | |
| 665 | +} | |
| 666 | + | |
| 667 | +.title .english .silk { | |
| 668 | + width: 214rpx; | |
| 669 | + height: 2rpx; | |
| 670 | + background-color: #000; | |
| 671 | +} | |
| 672 | + | |
| 673 | +.title .english .esh { | |
| 674 | + margin: 0rpx 15rpx; | |
| 675 | +} | |
| 676 | + | |
| 677 | +.collects { | |
| 678 | + margin-top: 40rpx; | |
| 679 | +} | |
| 680 | + | |
| 681 | +.hang { | |
| 682 | + width: 100%; | |
| 683 | + margin: auto; | |
| 684 | + padding-left: 21rpx; | |
| 685 | +} | |
| 686 | + | |
| 687 | +.hang .collect { | |
| 688 | + width: 347rpx; | |
| 689 | + height: 571rpx; | |
| 690 | + border-radius: 25rpx; | |
| 691 | + border: 1rpx solid rgb(214, 214, 214); | |
| 692 | + overflow: hidden; | |
| 693 | + margin-right: 14rpx; | |
| 694 | + margin-bottom: 5rpx; | |
| 695 | +} | |
| 696 | + | |
| 697 | +.collect .bottom { | |
| 698 | + padding: 0rpx 20rpx; | |
| 699 | +} | |
| 700 | + | |
| 701 | +.collect .sp { | |
| 702 | + width: 100%; | |
| 703 | + height: 326rpx; | |
| 704 | +} | |
| 705 | + | |
| 706 | +.collect .money { | |
| 707 | + margin-top: 60rpx; | |
| 708 | + margin-bottom: 18rpx; | |
| 709 | + line-height: 28rpx; | |
| 710 | + align-items: baseline; | |
| 711 | +} | |
| 712 | + | |
| 713 | +.collect .money view { | |
| 714 | + line-height: 28rpx; | |
| 715 | +} | |
| 716 | + | |
| 717 | +.collect .money .flex { | |
| 718 | + font-weight: bold; | |
| 719 | +} | |
| 720 | + | |
| 721 | +.collect .money .flex .fs24 { | |
| 722 | + padding-top: 5rpx; | |
| 723 | +} | |
| 724 | + | |
| 725 | +.collect .Discount { | |
| 726 | + width: 156rpx; | |
| 727 | + height: 28rpx; | |
| 728 | + border-radius: 20rpx; | |
| 729 | + background-color: rgb(56, 56, 56); | |
| 730 | + font-size: 18rpx; | |
| 731 | + color: rgb(255, 255, 255); | |
| 732 | +} | |
| 733 | + | |
| 734 | +.collect .Discount image { | |
| 735 | + height: 18rpx; | |
| 736 | + width: 18rpx; | |
| 737 | + line-height: 28rpx; | |
| 738 | + margin-right: 3rpx; | |
| 739 | +} | |
| 740 | + | |
| 741 | +.collect.ml20 { | |
| 742 | + margin-left: 13rpx; | |
| 743 | +} | |
| 744 | + | |
| 745 | +.fs24.dollar { | |
| 746 | + padding: 0rpx; | |
| 747 | +} | |
| 748 | + | |
| 749 | +.money .price { | |
| 750 | + margin-left: 12rpx; | |
| 751 | + text-decoration: line-through; | |
| 752 | + line-height: 23rpx; | |
| 753 | +} | |
| 754 | + | |
| 755 | +.province { | |
| 756 | + line-height: 26rpx; | |
| 757 | +} | |
| 758 | + | |
| 759 | +.nothing { | |
| 760 | + height: 75rpx; | |
| 761 | + width: 100%; | |
| 762 | +} | |
| 763 | + | |
| 764 | +.nothing .no_content { | |
| 765 | + margin: 0rpx 11rpx; | |
| 766 | + color: rgb(138, 138, 138); | |
| 767 | +} | |
| 768 | + | |
| 769 | +.nothing .Foil { | |
| 770 | + width: 80rpx; | |
| 771 | + height: 2rpx; | |
| 772 | + background-color: rgb(138, 138, 138); | |
| 773 | +} | |
| 774 | + | |
| 775 | +.goods_name { | |
| 776 | + height: 70rpx; | |
| 777 | + margin-top: 6rpx; | |
| 778 | +} | |
| 779 | + | |
| 780 | +.seckill-list view.translation { | |
| 781 | + width: 108rpx; | |
| 782 | + height: 20rpx; | |
| 783 | + border-radius: 20rpx; | |
| 784 | + background: #dfdfdf; | |
| 785 | + margin: auto; | |
| 786 | + line-height: 20rpx; | |
| 787 | +} | |
| 788 | + | |
| 789 | +.seckill-list view.spot { | |
| 790 | + width: 10rpx; | |
| 791 | + height: 10rpx; | |
| 792 | + padding: 0rpx; | |
| 793 | +} | |
| 794 | + | |
| 795 | +.spot { | |
| 796 | + width: 10rpx; | |
| 797 | + height: 10rpx; | |
| 798 | + padding: 0rpx; | |
| 799 | +} | |
| 800 | + | |
| 801 | +.translation { | |
| 802 | + width: 108rpx; | |
| 803 | + height: 20rpx; | |
| 804 | + border-radius: 20rpx; | |
| 805 | + background: #e0e0e0; | |
| 806 | + line-height: 20rpx; | |
| 807 | + bottom: 45rpx; | |
| 808 | + left: 43%; | |
| 809 | +} | |
| 810 | + | |
| 811 | +.translation { | |
| 812 | + width: 108rpx; | |
| 813 | + height: 20rpx; | |
| 814 | + border-radius: 20rpx; | |
| 815 | + background: #b8d1d6; | |
| 816 | + line-height: 20rpx; | |
| 817 | + bottom: 12rpx; | |
| 818 | + left: 43%; | |
| 819 | +} | |
| 820 | + | |
| 821 | +.translations { | |
| 822 | + width: 108rpx; | |
| 823 | + height: 20rpx; | |
| 824 | + border-radius: 20rpx; | |
| 825 | + background: #dfdfdf; | |
| 826 | + line-height: 20rpx; | |
| 827 | + bottom: 25rpx; | |
| 828 | + left: 43%; | |
| 829 | +} | |
| 830 | + | |
| 831 | +.mar-top { | |
| 832 | + margin-top: 20rpx; | |
| 833 | +} | |
| 834 | + | |
| 835 | +.mar-tops { | |
| 836 | + margin-top: 10rpx; | |
| 837 | +} | |
| 838 | + | |
| 839 | +.pt_active { | |
| 840 | + animation: sport 0.5s; | |
| 841 | +} | |
| 842 | + | |
| 843 | +@keyframes sport { | |
| 844 | + 0% { | |
| 845 | + transform: translateY(80rpx); | |
| 846 | + opacity: 0; | |
| 847 | + } | |
| 848 | + | |
| 849 | + 100% { | |
| 850 | + transform: translateY(0rpx); | |
| 851 | + opacity: 1; | |
| 852 | + } | |
| 853 | +} | |
| 854 | + | |
| 855 | +.m-left { | |
| 856 | + margin-left: 18rpx; | |
| 857 | +} | |
| 858 | + | |
| 859 | +.martop4 { | |
| 860 | + margin-top: 4rpx; | |
| 861 | +} | |
| 862 | + | |
| 863 | +.time-blue { | |
| 864 | + margin-left: 10rpx; | |
| 865 | +} | |
| 866 | + | |
| 867 | +.is_seckill_height { | |
| 868 | + height: 40rpx; | |
| 869 | + line-height: 32rpx; | |
| 870 | +} | |
| 871 | + | |
| 872 | +.assemble-top-border { | |
| 873 | + border-top: 10rpx solid #eee; | |
| 874 | + padding-top: 20rpx; | |
| 875 | + margin-top: 0rpx; | |
| 876 | +} | |
| 877 | + | |
| 878 | +.gonju { | |
| 879 | + max-width: 120rpx; | |
| 880 | +} | |
| 881 | + | |
| 882 | +.disgraceful { | |
| 883 | + position: fixed; | |
| 884 | + width: 100%; | |
| 885 | + height: 100%; | |
| 886 | + left: 0rpx; | |
| 887 | + bottom: 0rpx; | |
| 888 | + background-color: rgba(182, 174, 174, 0.753); | |
| 889 | + z-index: 10; | |
| 890 | +} | |
| 891 | + | |
| 892 | +.newreceive { | |
| 893 | + position: fixed; | |
| 894 | + width: 100%; | |
| 895 | + height: 100%; | |
| 896 | + z-index: 11; | |
| 897 | +} | |
| 898 | + | |
| 899 | +.receive { | |
| 900 | + width: 570rpx; | |
| 901 | + height: 750rpx; | |
| 902 | +} | |
| 903 | +.close{ | |
| 904 | + width: 70rpx; | |
| 905 | + height: 70rpx; | |
| 906 | + margin-top: 30rpx; | |
| 907 | +} | |
| 908 | +.swiper{ | |
| 909 | + height: 250rpx; | |
| 910 | + padding-bottom:30rpx; | |
| 911 | +} | |
| 912 | +.container{ overflow: hidden;} | |
| 0 | 913 | \ No newline at end of file | ... | ... |