Commit d0a51525 authored by xieyishang's avatar xieyishang

addxx

parent 337fea33
{
"pages": [
"pages/index/index",
"pages/index/switchcity/switchcity",
"pages/user/user",
"pages/pay/pay",
"pages/webview/webview",
"pages/lmping/user/user",
"pages/lmping/home/home",
"pages/lmping/hometwo/hometwo",
"pages/lmping/signin/signin",
"pages/lmping/order/order",
"pages/lmping/user/user",
"pages/lmping/myfans/myfans",
"pages/lmping/pushcard/pushcard",
"pages/lmping/lmvallog/lmvallog",
"pages/lmping/profitlog/profitlog",
"pages/lmping/rechargelog/rechargelog",
"pages/lmping/activitydescri/activitydescri"
"pages/lmping/activitydescri/activitydescri",
"pages/pay/pay",
"pages/webview/webview"
],
"subpackages": [
{
......@@ -26,30 +23,6 @@
"shops/weidian/ping_details/ping_details"
]
},
{
"root": "pages/personal/",
"pages": [
"withdraw/withdraw",
"withdraw/withdraw_record/withdraw_record",
"withdraw/withdrawal_success/withdrawal_success",
"withdraw/bankCard_list/bankCard_list",
"withdraw/bankCard/bankCard",
"lumainfo/lumainfo",
"lumainfo/lumaintroduce/lumaintroduce",
"lumainfo/certificate/certificate",
"coupons/coupons",
"set/set",
"set/new_address/new_address",
"set/payment_code/payment_code",
"set/address_list/address_list",
"express/express",
"agreementuser/agreementuser",
"agreement/agreement"
]
}
],
"window": {
......@@ -63,12 +36,7 @@
"borderStyle": "white",
"backgroundColor": "#fafafa",
"list": [
{
"pagePath": "pages/index/index",
"text": "首页",
"iconPath": "/images/newtabbar/tab1_0.png",
"selectedIconPath": "/images/newtabbar/tab1_1.png"
},
{
"pagePath": "pages/lmping/home/home",
"text": "拼团",
......@@ -76,7 +44,7 @@
"selectedIconPath": "/images/newtabbar/a1.png"
},
{
"pagePath": "pages/user/user",
"pagePath": "pages/lmping/user/user",
"text": "我的",
"iconPath": "/images/newtabbar/tab3_0.png",
"selectedIconPath": "/images/newtabbar/tab3_1.png"
......
// pages/advices/advices.js
Page({
/**
* 页面的初始数据
*/
data: {
},
/**
* 生命周期函数--监听页面加载
*/
onLoad: function (options) {
},
/**
* 生命周期函数--监听页面初次渲染完成
*/
onReady: function () {
},
/**
* 生命周期函数--监听页面显示
*/
onShow: function () {
},
/**
* 生命周期函数--监听页面隐藏
*/
onHide: function () {
},
/**
* 生命周期函数--监听页面卸载
*/
onUnload: function () {
},
/**
* 页面相关事件处理函数--监听用户下拉动作
*/
onPullDownRefresh: function () {
},
/**
* 页面上拉触底事件的处理函数
*/
onReachBottom: function () {
},
/**
* 用户点击右上角分享
*/
onShareAppMessage: function () {
}
})
\ No newline at end of file
{
"usingComponents": {}
}
\ No newline at end of file
<!--pages/advices/advices.wxml-->
<scroll-view scroll-x="true" class="nav {{showScroll ? 'showScroll' : ''}} " scroll-left="{{navScrollLeft}}" scroll-with-animation="{{true}}" scroll-into-view="{{toView}}" bindscrolltoupper="stopTimer" bindscroll="stopNewTimer">
<block wx:for="{{guige}}" wx:for-index="idx" wx:for-item="navItem" wx:key="idx">
<view id="navItem{{idx}}" class="nav-item navItem{{idx}} {{currentTab == idx ?'active':''}}" data-current="{{idx}}" data-id="{{guige.id}}" data-url="{{guige.cat_url}}" data-name="{{guige.name}}" bindtap="switchNav" style="margin-right:{{idx==navData.length-1?'60rpx':'0rpx'}};">
{{item.name}}
<image class='hot' src='../../static/images/icon/icon_hot.png' wx:if="{{navItem.is_recommend == 1}}"></image>
</view>
</block>
<view class='slideLine' style="width:{{slideWidth}}px;left:{{sliedeLeft}}px;"></view>
</scroll-view>
\ No newline at end of file
/* pages/advices/advices.wxss */
/* 顶部导航条 */
.nav {
height: 100rpx;
width: 630rpx;
position: relative;
box-sizing: border-box;
overflow: hidden;
font-size: 0;
line-height: 100rpx;
white-space: nowrap;
opacity: 0;
transition: all 300ms cubic-bezier(0.23, 1, 0.32, 1) 0ms;
}
.nav.showScroll {
opacity: 1;
}
.slideLine {
height: 8rpx;
/* width: 24px; */
position: absolute;
top: 94rpx;
/* top: 0; */
background: #e64340;
transition: all 300ms cubic-bezier(0.23, 1, 0.32, 1) 0ms;
}
.nav-item {
/* padding: 0 5px; */
margin: 0 5px;
position: relative;
display: inline;
/* height: 100rpx; */
text-align: center;
font-size: 14px;
color: #666;
border-bottom: none;
/* background: green; */
transition: all 500ms cubic-bezier(0.23, 1, 0.32, 1) 0ms;
}
.nav-item .hot{
width: 19rpx;
height: 19rpx;
position: absolute;
right: -5rpx;
top: -5rpx;
}
.nav-item.active {
color: #e64340;
/* height: 94rpx; *//* border-bottom: 8rpx solid #e64340; */
}
.page-top {
width: 100%;
position: relative;
background: white;
}
.page-top.top {
position: fixed;
top: 0;
left: 0;
z-index: 99999;
}
.search {
position: absolute;
right: 30rpx;
top: 20rpx;
width: 60rpx;
height: 60rpx;
z-index: 999999;
}
.mask-scroll {
position: absolute;
right: 120rpx;
top: 0;
width: 45rpx;
height: 100rpx;
z-index: 999999;
}
\ No newline at end of file
import { getAdvices } from '../../api/advicesCenter.js';
const app = getApp();
Page({
/**
* 页面的初始数据
*/
data: {
demomsg:`<span>江西多思盈信息科技有限公司希望你们成为他的员工,点击链接同意:</span><a href="https://mp.weixin.qq.com/s/VK0a4aPM3a-FGOpUa0jkRg">查看详情</a>`,
active:0,//选中项
page:0,//页数
advices:[],//消息列表
isallshow:false,//是否加载完毕
is_read:0,//是否显示未读红点 0不显示 1显示
hidden:false,
isloading:false,
},
onLoad(){
},
/*
切换选项
*/
tabel(e){
if(this.data.isloading){
console.info("点的太快了");
return false;
}
this.setData({
active:e.currentTarget.dataset.active,
page:0,
advices:[],
isallshow:false,
isloading:true,
});
wx.pageScrollTo({
scrollTop: 0,
duration: 300
});
this.getAdvicesFun();
},
/*
消息数据请求
*/
getAdvicesFun(){
wx.showLoading({ title: '加载中...' });
let page=this.data.page;
page++;
getAdvices({
page:page,
source:this.data.active==0?0:1,//0 个人 1系统
type:this.data.is_read,//0未读 1已读
}).then(res=>{
// console.log(res);
this.setData({
isloading:false,
})
wx.hideLoading();
if(res.code==0){
if(this.data.active==0){ //个人消息
if(res.data.advices.length!=0){
this.setData({
advices:[...this.data.advices,...res.data.advices]
})
}else{
this.setData({ isallshow:true });
}
}else{ //系统消息
if(res.data.platformAdvices.length!=0){
this.setData({
advices:[...this.data.advices,...res.data.platformAdvices]
})
}else{
this.setData({ isallshow:true });
}
}
this.setData({
is_read:res.data.is_read,
page,
})
}else{
wx.showToast({
title: res.msg,
icon:'none'
})
}
}).catch(()=>{
this.setData({
isloading:false,
})
wx.hideLoading();
})
},
setUserInfo(e) { //点击了授权
if (e.detail) {
this.setData({
hidden: false,
});
this.getAdvicesFun();
}
},
/**
* 生命周期函数--监听页面显示
*/
onShow: function () {
this.setData({
page:0,
is_read:0,
advices:[],
isallshow:false,//是否加载完毕
})
if(!wx.getStorageSync('userInfo')){
this.setData({
hidden:true,
});
return;
}
this.setData({
hidden:false,
});
this.getAdvicesFun();
},
/**
* 生命周期函数--监听页面隐藏
*/
onHide(){
this.setData({ hidden:false });
},
/**
* 生命周期函数--监听页面卸载
*/
onUnload: function () {
},
/**
* 页面相关事件处理函数--监听用户下拉动作
*/
onPullDownRefresh: function () {
},
/**
* 页面上拉触底事件的处理函数
*/
onReachBottom() {
if(!this.isallshow){
this.getAdvicesFun();
}
},
/**
* 用户点击右上角分享
*/
onShareAppMessage: function () {
}
})
\ No newline at end of file
{
"usingComponents": {
"mp-html":"/components/mphtml/index"
},
"navigationBarTitleText": "消息中心"
}
\ No newline at end of file
<view>
<view class="ali-c h90 tabel bgf posf w1005" style="top:0;">
<view class="flex1" catchtap='tabel' data-active="0">
<view class="tc lh90 mgat {{active==0?'active':''}}" style="width: 150rpx;">个人消息</view>
</view>
<view class="flex1 " catchtap='tabel' data-active="1" style="border-left: 1px solid #f5f7f6;">
<view class="tc lh90 mgat posr {{active==1?'active':''}}" style="width: 150rpx;">
平台消息
<view wx:if="{{is_read==1}}" class="bgF64 posa"
style="right:-12rpx;top:40rpx;border-radius: 50%;width: 15rpx;height: 15rpx;"></view>
</view>
</view>
</view>
<view class="mt-100">
<!-- 个人消息 -->
<view style="padding: 24rpx;" wx:if="{{active==0}}">
<view class="mb-40" wx:for="{{advices}}" wx:key="index">
<view class="s28 c83 tc">{{item.day}} {{item.time}}</view>
<view class="mt-25 bgf br10" style="padding: 24rpx;">
<view class="32 fwb">{{item.title}}</view>
<view wx:if="{{item.msg_text}}" class="s30 mt-20" style="color: #363535;text-align: justify;">
<!-- {{item.msg_text.content}} -->
<mp-html content="{{item.msg_text.content}}" />
</view>
</view>
</view>
</view>
<!-- 系统消息 -->
<view style="padding: 24rpx;" wx:if="{{active==1}}">
<view class="mb-40" wx:for="{{advices}}" wx:key="index">
<view class="s28 c83 tc">{{item.day}} {{item.time}}</view>
<view class="mt-25 bgf br10" style="padding: 24rpx;">
<view class="32 fwb">{{item.title}}</view>
<view class="s30 mt-20" style="color: #363535;text-align: justify;">
<!-- {{item.intro}} -->
<!-- demomsg -->
<mp-html content="{{item.intro}}" />
</view>
</view>
</view>
</view>
<view class="tc c33" wx:if="{{advices.length==0}}">暂无消息</view>
<view class="tc c33 mb-20" wx:if="{{advices.length!=0&&isallshow}}"> ~我也是有底线的~ </view>
</view>
</view>
<!-- 登陆授权弹窗 -->
<login hidden="{{hidden}}" bind:setUserInfo="setUserInfo" />
\ No newline at end of file
::-webkit-scrollbar {
width: 0;
height: 0;
color: transparent;
display: none;
}
page{
background: #f5f7f6;
padding-bottom: 0rpx !important;
}
.c83{
color: #838383;
}
.active{
color: #F64F15;
border-bottom: 4rpx solid #F64F15;
background: none ;
}
.tabel{
border-top: 1px solid #f5f7f6;
border-bottom: 1px solid #f5f7f6;
}
.bgF64{
background: #F64F15;
}
\ No newline at end of file
/**index.wxss**/
page{
background: rgba(245, 242, 242, 1);
position: relative;
}
.indexbox{
background:linear-gradient(180deg,rgba(255,16,16,1),rgba(255,16,16,1),rgba(255,16,16,1),#f64f15,rgba(245, 242, 242, .8),rgba(245, 242, 242, .8),rgba(245, 242, 242, 1),rgba(245, 242, 242, 1));
}
.toububox{
width: 100%;
position: fixed;
top: 0;
padding:0 24rpx 15rpx 24rpx;
box-sizing: border-box;
background: #FF1010;
z-index: 998;
}
.yingyongimg{
width:50rpx;
height:50rpx;
}
.wizhiimg{
width:24rpx;
height:32rpx;
}
.xiangxiaimg{
width:18rpx;
height:10rpx;
}
.sousuoimg{
width:27rpx;
height:27rpx;
}
.ewmimg{
width:48rpx;
height:48rpx;
}
.tzhiimg{
width:34rpx;
height:34rpx;
}
.show{
display: block;
}
.hidden{
display: none;
}
.tubiaoimg{
width:84rpx;
height:84rpx;
margin-bottom: 20rpx;
}
.zhaomuimg{
background-size: 100% 100%;
}
.ljteimg{
width:106rpx;
height:24rpx;
position: absolute;
bottom: 17%;
left: 46%;
-webkit-animation-name: scaleDrawss; /*关键帧名称*/
-webkit-animation-timing-function: ease-in-out; /*动画的速度曲线*/
-webkit-animation-iteration-count: infinite; /*动画播放的次数*/
-webkit-animation-duration: 1.3s; /*动画所花费的时间*/
}
@keyframes scaleDrawss { /*定义关键帧、scaleDrew是需要绑定到选择器的关键帧名称*/
0%{
transform: scale(1); /*开始为原始大小*/
}
25%{
transform: scale(1.5); /*放大1.1倍*/
}
50%{
transform: scale(1);
}
75%{
transform: scale(1.5);
}
}
.inputbox{
height: 55rpx;
padding: 0 20rpx;
box-sizing: border-box;
display: flex;
align-items: center;
flex: 1;
background:rgba(255,255,255,1);
border-radius:5rpx;
}
.input_zi{
flex: 1;
}
.in_pl{
font-size:24rpx;
font-weight:500;
color:rgba(107,107,107,1);
}
/* 轮播 */
.banner_swiper {
width: 100%;
height: 240rpx;
}
.le-img {
width: 100%;
height: 230rpx;
display: block;
transform: scale(0.8);
transition: all 0.3s ease;
border-radius: 6px;
}
.le-img.le-active {
width: 100%;
transform: scale(1);
}
/* 向上滚动 */
.laba{
width: 31rpx;
height: 28rpx;
display: inline-block;
margin-left:10rpx;
}
.swiper_container {
height: 55rpx;
flex: 1;
margin-left: 20rpx;
line-height: 55rpx;
}
.swiper_item {
overflow: hidden;
text-overflow: ellipsis;
white-space: nowrap;
letter-spacing: 2px;
font-family: PingFang-SC-Regular;
font-size: 28rpx;
color: #fff;
}
/* 招募 */
.box_zm_10 {
width: 100%;
border-radius: 10rpx;
padding: 1rpx 20rpx;
box-sizing: border-box;
}
.ziti{
font-size:36rpx;
font-weight:400;
color:rgba(255,223,92,1);
}
.zmbox{
width: 49%;
padding: 0 20rpx;
box-sizing: border-box;
border-radius: 10rpx;
background: #fff;
}
.sjimg{
width:28rpx;
height:28rpx;
}
.rzimg{
width:82rpx;
height:82rpx;
}
.rz_btn{
width:146rpx;
height:40rpx;
background:rgba(255,105,0,1);
border-radius:20rpx;
text-align: center;
font-size: 24rpx;
color: #fff;
line-height: 40rpx;
}
/* 优选 */
.yximg{
width: 100%;
background-size: 100% 100%;
}
.ptyx-80{
width: 100%;
padding: 80rpx 10rpx 0 10rpx;
box-sizing: border-box;
}
.gifimg{
float: right;
width:96rpx;
height:96rpx;
-webkit-animation-name: scaleDraw; /*关键帧名称*/
-webkit-animation-timing-function: ease-in-out; /*动画的速度曲线*/
-webkit-animation-iteration-count: infinite; /*动画播放的次数*/
-webkit-animation-duration: 1.3s; /*动画所花费的时间*/
}
@keyframes scaleDraw { /*定义关键帧、scaleDrew是需要绑定到选择器的关键帧名称*/
0%{
transform: scale(1); /*开始为原始大小*/
}
25%{
transform: scale(1.5); /*放大1.1倍*/
}
50%{
transform: scale(1);
}
75%{
transform: scale(1.5);
}
}
.yxbox{
width: 49%;
border-radius: 10rpx;
overflow: hidden;
background: #fff;
}
.yxboxs{
width: 32%;
border-radius: 10rpx;
overflow: hidden;
background: #fff;
}
.yximg_zi{
width:180rpx;
height:150rpx;
margin: 0 auto
}
.yximg_zi2{
width: 115rpx;
height: 115rpx;
margin: 0 auto;
}
.yxbt{
line-height: 50rpx;
text-align: center;
width:100%;
height:50rpx;
background:linear-gradient(96deg,rgba(255,105,0,1),rgba(249,63,53,1));
}
/* 召唤好友 */
.zhaohuanimg{
width: 100%;
height: 200rpx;
background-size: 100% 100%;
}
/* 为你甄选 */
.wnimg{
width:26rpx;
height:30rpx;
}
.sximg{
width:34rpx;
height:28rpx;
transition: All 0.4s ease;
-webkit-transition: All 0.4s ease;
}
.zxzibox{
width:49%;
background: #FFF3EA;
border-radius:10rpx;
}
.zxzibox_img{
width:100%;
height:177rpx;
}
.tisiimg{
width:188rpx;
height:50rpx;
left: 0;
bottom: 0;
font-size:30rpx;
font-weight:800;
color:rgba(255,255,255,1);
padding-left: 10rpx;
box-sizing: border-box;
line-height: 50rpx;
background-size: 100% 100%
}
/* 推荐商家 */
/* tap */
.diancan{
height: 80rpx;
line-height: 80rpx;
font-size:30rpx;
font-weight:500;
color:rgba(34,34,34,1);
text-align: center;
}
.diancans{
font-weight:500;
color: #f64f15;
}
/* 内容 */
.zi_img{
width:180rpx;
height:180rpx;
border-radius:10rpx;
}
.dada_bt{
width: 85rpx;
height: 30rpx;
text-align: center;
line-height: 30rpx;
color: #fff;
background: #f64f15;
font-size: 18rpx
}
.ts_ke{
padding: 0 5rpx;
box-sizing: border-box;
border: 1px solid #f64f15;
font-size: 20rpx;
font-weight: 500;
color: #f64f15;
margin-bottom: 5rpx;
}
.poar{
position: absolute;
top: 10rpx;
right: 0;
}
/* 免费专区 */
.mfbtn{
width:31.5%;
height:70rpx;
border:1px solid rgb(201, 199, 199);
border-radius:10rpx;
font-size:30rpx;
font-weight:500;
color:rgba(183,183,183,1);
text-align: center;
line-height: 70rpx;
}
.mfbtnss{
background:#f64f15;
border:1px solid #f64f15;
color: #fff;
}
.remenimg{
width:100%;
height:200rpx;
border-radius:10rpx;
}
.ziti_mf{
width:100%;
height:37rpx;
line-height: 37rpx;
background:rgba(34,34,34,.2);
padding: 0 15rpx;
text-align: center;
box-sizing: border-box;
font-size:26rpx;
font-weight:500;
color:rgba(255,255,255,1);
left: 0;
bottom: 0;
}
.min_zihx{
font-size:20rpx;
font-weight:400;
text-decoration:line-through;
color:rgba(153,153,153,1);
}
/* 弹窗 */
.modals-cancelss{position:absolute; z-index:1000; top:0; left: 0; right:0; bottom: 0; background-color: rgba(0,0,0,.5);}
.id-dialog-bodys{position: absolute;
z-index: 9997;
top: 65rpx;
left: 0;
right: 0;
padding: 24rpx;
border-radius: 10rpx ;
background-color: #fff;
box-sizing: border-box;
width: 100%;
margin: 0 auto;
}
/*动画前初始位置*/
.bottom-pos{-webkit-transform:translateY(0);transform:translateY(0);}
.id_yh_btn{
width:100%;
height:88rpx;
border-top: 2rpx solid rgba(229,229,229,1);
font-size:32rpx;
font-weight:500;
color:#121212;
text-align: center;
}
button{
background: none;
border: none;
border-radius: 0rpx;
}
button::after{
background: none;
border: none;
border-radius: 0rpx;
}
.id_text_top{
padding: 30rpx;
box-sizing: border-box;
font-size:32rpx;
font-weight:500;
color:#3f3e3ebe;
text-indent:2em;
}
/* 筛选 */
/* tap */
.tapsui{
width:100%;
height: auto;
}
.tapsui_z{
width:100%;
height: 80rpx;
line-height: 80rpx;
font-size:28rpx;
font-weight:500;
color:rgba(102,102,102,1);
text-align: center;
box-sizing: border-box;
}
.tapsui_zs{
box-sizing: border-box;
font-size:30rpx;
font-weight:bold;
color:#f64f15;
}
.duihaoimg{
width:30rpx;
height:30rpx;
}
/* 遮罩层 */
.mask{
width: 100%;
height: 100%;
position: fixed;
top: 0;
left: 0;
background: #000;
z-index: 9000;
opacity: 0.8;
}
/* 弹出层 */
.modalDlg{
width: 100%;
position: fixed;
top: 10vh;
left: 0;
right: 0;
z-index: 9999;
border-radius:5px;
display: flex;
flex-direction: column;
align-items: center;
}
.quxiaoimg{
width: 68rpx;
height: 68rpx;
position: absolute;
bottom: -100rpx;
left: 0;
right: 0;
margin: 0 auto;z-index: 999;
}
.nianhuojie{
width: 737rpx;
height: 605rpx;margin: 10vh auto 0;
}
.nianhuojiess{
width: 526rpx;
height: 727rpx;margin: 5vh auto 0;
}
This diff is collapsed.
{
"usingComponents": {
"van-count-down": "../../@vant/weapp/lib/count-down/index",
"Stars": "/components/Stars/Stars",
"recommend":"/components/recommend/recommend",
"mp-dialog": "/@vant/weapp/lib/popup/index",
"promptPopup":"/components/promptPopup/promptPopup",
"loginPopup":"/components/loginPopup/loginPopup",
"goodsItem":"/components/goodsItem/goodsItem",
"shareEarnItem":"/components/shareEarnItem/shareEarnItem",
"empty":"/@vant/weapp/lib/empty/index"
},
"navigationBarTitleText": "鹿马108",
"enablePullDownRefresh":true,
"navigationBarBackgroundColor": "#f64f15",
"navigationBarTextStyle": "white",
"navigationStyle":"custom"
}
\ No newline at end of file
This diff is collapsed.
page {
background: #EDEBEB;
padding-bottom: 80rpx !important;
}
.pd20 {
padding: 20rpx;
}
.cF64 {
color: #F64F15;
}
.c16 {
color: #161616;
}
.bgF64 {
background: #F64F15;
}
.cE6 {
color: #E6E6E6;
}
view {
box-sizing: border-box;
}
.map {
width: 21rpx;
height: 28rpx;
margin-top: 2rpx;
}
.jiantou {
width: 24rpx;
height: 13.32rpx;
}
.search_input {
width: 270rpx;
height: 60rpx;
border-radius: 30rpx;
overflow: hidden;
margin: 0 auto;
background: rgba(255, 255, 255, 0.3);
}
.countssun {
background: #FF0000;
top: -28rpx;
right: -16rpx;
border-radius: 50%;
width: 46rpx;
height: 46rpx;
text-align: center;
line-height: 46rpx;
}
.zi_img {
width: 92rpx;
height: 92rpx;
}
.image-wrapper {
border-radius: 16rpx;
overflow: hidden;
}
.uni-swiper-dots {
left: 80% !important;
}
.uni-swiper-dots-horizontal {
left: 80% !important;
}
.btnBox {
width: 364rpx;
height: 62rpx;
border-radius: 31rpx;
background: #FBD526;
overflow: hidden;
}
.qiang {
background: #FD2A00;
width: 117rpx;
line-height: 60rpx;
font-size: 44rpx;
}
.qiang2 {
width: 75rpx;
line-height: 41rpx;
}
.btnBox2 {
width: 193rpx;
height: 42rpx;
background: #FD2A00;
border-radius: 21rpx;
overflow: hidden;
}
.xian {
bottom: 0;
width: 106rpx;
height: 12rpx;
border-radius: 6rpx;
transition: 0.3s ease;
}
.xianL {
left: 122rpx;
}
.xianLTow {
left: 476rpx;
}
.countItem {
display: inline-block;
width: 39rpx;
margin-right: 10rpx;
color: #F64F15;
font-size: 22rpx;
text-align: center;
background-color: #ffffff !important;
border-radius: 4rpx;
}
.xrbtbox {
width: 702rpx;
margin: 10rpx auto 0 auto;
padding: 25rpx 20rpx;
padding-top: 15rpx;
border-radius: 20rpx;
/* border-bottom-left-radius: 20rpx;border-bottom-right-radius: 20rpx; */
}
.xrbtbox.no{
border-top-left-radius: 0;
border-top-right-radius: 0;
}
.xrbtbox_two {
width: 702rpx;
margin: 10rpx auto 0 auto;
padding: 15rpx 20rpx;
border-top-left-radius: 20rpx;
border-top-right-radius: 20rpx;
}
.dian {
width: 10rpx;
height: 10rpx;
background-color: #FFFFFF;
opacity: 0.55;
border-radius: 50%;
margin-right: 10rpx;
}
.op1 {
opacity: 1 !important;
}
.headscentent{
/* margin-top: -365rpx; */
}
/* 砍价入口 */
.bargainingentry{
height: 240rpx;
}
.bargainingitme{
padding: 20rpx;
background: linear-gradient(173deg, #fb8138, #F75619, #FB5838, #f14b2b);
border-radius: 10px;
height: 230rpx;
}
.bargainingitme .goodsleft{
width: 188rpx;
height: 188rpx;
border-radius: 10rpx;
}
.bargainingitme .goodsleft image{
border-radius: 10rpx;
}
.bargainingitme .goodsrigs{
margin-left: 30rpx;
}
.goodsrigs .nargtit{
color: #FFFFFF;
font-size: 30rpx;
font-weight: bold;
/* margin-bottom: 4rpx; */
letter-spacing: 1px;
margin-bottom: 12rpx;
}
.goodsrigs .inneruser{
display: inline-block;
margin-top: 10rpx;
color: #FC5E4D;
font-size: 30rpx;
font-weight: bold;
/* height: 50rpx;
line-height: 50rpx; */
background: #FFFFFF;
border-radius: 30rpx;
padding: 10rpx 30rpx;
box-sizing: border-box;
font-weight: blod;
}
.bargainingitme .countItem{
background-color: transparent !important;
border:1rpx solid #fff;
color: #fff;
height: 33rpx;
line-height: 33rpx;
width: 33rpx;
}
.bargainingitme .endtetx{
margin-left: 20rpx;
color: #fff;
font-size: 30rpx;
font-weight: bolder;
}
.progrebox{
width: 210rpx;
margin-bottom: 12rpx;
position: relative;
height: 22rpx;
border-radius: 10rpx;
overflow: hidden;
}
.progreboxtext{
width: 100%;
text-align: center;
position: absolute;
top: -2px;
left: 0rpx;
color: #FB7152;
font-size: 20rpx;
}
.basprice {
color: #fff;
font-size: 26rpx;
}
.basprice .kprice{
color: #F9F17E;
font-size: 32rpx;
font-weight: bold;
}
.basprice .yjtest{
text-decoration:line-through;
}
/* 砍价入口end */
/* 优惠券弹窗 */
.couponsBox {
width: 578rpx;
background: #FF2734;
position: relative;
border-radius: 40rpx;
padding-top: 220rpx;
padding-bottom: 40rpx;
box-sizing: border-box;
overflow: hidden;
}
.couponsImg {
width: 100%;
height: 316rpx;
top: -80rpx;
position: absolute;
}
.itemCoupons {
background: #fff;
width: 495rpx;
border-radius: 10rpx;
overflow: hidden;
margin: 0 auto 20rpx auto;
}
.couponsTitle {
font-size: 29rpx;
font-weight: bold;
}
.itemLabel {
color: #E3AA5B;
font-size: 18rpx;
padding: 0rpx 5rpx;
border: 1px solid #E3AA5B;
width: 110rpx;
}
.preferential {
color: #FF0026;
font-size: 18rpx;
}
.preferential text {
font-size: 32rpx;
}
.couponsbtn {
color: #fff;
font-size: 22rpx;
background: #FD0222;
border-radius: 10rpx;
line-height: 40rpx;
padding: 5rpx 16rpx;
}
.couponsbtns {
color: #fff;
font-size: 22rpx;
background: rgb(245, 97, 116);
border-radius: 10rpx;
line-height: 40rpx;
padding: 5rpx 16rpx;
}
.con_banner .img {
width: 100%;
height: 160rpx;
}
.kqBox {
width: 100%;
max-height: 1000rpx;
overflow-x: hidden;
}
.yhqhah {
width: 100%;
color: rgb(255, 255, 255);
text-align: center;
font-size: 23rpx;
}
.jian {
background: #000000;
width: 58rpx;
height: 58rpx;
line-height: 56rpx;
text-align: center;
border-radius: 50%;
}
.xqimgbox image {
width: 40rpx;
height: 40rpx;
border: 4rpx solid #fff;
border-radius: 50%;
margin-left: -20rpx;
}
.xqimgbox image:nth-child(1) {
margin-left: 0rpx !important;
z-index: 10;
}
.xqimgbox image:nth-child(2) {
z-index: 9;
}
.xqimgbox image:nth-child(3) {
z-index: 8;
}
.nutrition {
border: 1px solid #eee;
background: rgba(255, 255, 255, 1);
}
.nutrition_1 {
height: 340rpx;
display: flex;
vertical-align: center;
}
.nutrition_2 {
width: 350rpx;
height: 300rpx;
}
.nutrition_1_1 {
display: flex;
padding: 0 0 20rpx 0;
justify-content: space-between;
/* margin-top: 10rpx; */
}
.commodity_img {
width: 90%;
margin: 0 auto;
height: 220rpx;
}
.commodity {
display: inline-block;
width: 275rpx;
background-image: linear-gradient(180deg, #F79822, #F64F15);
height: 100%;
margin-right: 10rpx;
padding-top: 10rpx;
box-sizing: border-box;
border-radius: 10rpx;
}
.hotcss {
background-color: red;
color: #fff;
font-size: 18rpx;
padding: 2rpx 10rpx;
box-sizing: border-box;
display: inline-block;
margin-left: 10rpx;
border-radius: 10rpx;
}
\ No newline at end of file
var city = require('../../../utils/city.js');
var app = getApp();
var img_host = app.globalData.ImgPath;
var clientImgPath = app.globalData.clientImgPath;
import { getCitys, bindCity, getAreaList } from '../../../api/index.js';
Page({
data: {
img_host: img_host,
clientImgPath: clientImgPath,
showDialog: false,//弹出
countyList: [],//区县列表
searchLetter: [],
keyword: '',
showLetter: "",
winHeight: 0,
// tHeight: 0,
// bHeight: 0,
cityList: [],
isShowLetter: false,
scrollTop: 0,//置顶高度
scrollTopId: '',//置顶id
current_city_name: "",
current_city_id: '8',
hotcityList: [],
locationlog:[],
},
bindScroll() {
},
onShow() {
let locationlog = wx.getStorageSync("locationlog");
if (locationlog) {
this.setData({
locationlog: locationlog,
})
}
},
onLoad: function () {
// 生命周期函数--监听页面加载
var that = this;
// 生命周期函数--监听页面加载
var searchLetter = city.searchLetter();
var cityList = city.cityList();
var sysInfo = wx.getSystemInfoSync();
var winHeight = sysInfo.windowHeight;
var itemH = winHeight / searchLetter.length;
var tempObj = [];
for (var i = 0; i < searchLetter.length; i++) {
var temp = {};
temp.name = searchLetter[i];
temp.tHeight = i * itemH;
temp.bHeight = (i + 1) * itemH;
tempObj.push(temp)
}
// that.cutcity(options);
that.setData({
winHeight: winHeight,
itemH: itemH,
searchLetter: tempObj,
})
that.getCitys();
},
getCitys: function () {
var that = this;
let params = { key: that.data.keyword }
getCitys(params).then(res => {
if (res.code == 0) {
that.setData({
cityList: res.data.city_list,
hotcityList: res.data.hot_citys,
current_city_name: wx.getStorageSync("myCity") || '南昌',
current_city_id: wx.getStorageSync("city_id") || '8',
})
}
console.log(this.data.current_city_id)
});
},
searchInput: function (e) {
this.data.keyword = e.detail.value;
},
search: function () {
this.getCitys();
},
clickLetter: function (e) {
console.log(e.currentTarget.dataset.letter)
var showLetter = e.currentTarget.dataset.letter;
this.setData({
showLetter: showLetter,
isShowLetter: true,
scrollTopId: showLetter,
})
var that = this;
setTimeout(function () {
that.setData({
isShowLetter: false
})
}, 1000)
},
//选择城市
bindCity: function (e) {
var that = this;
let params = { city_id: e.currentTarget.dataset.city_id }
bindCity(params).then(res => {
if (res.code == 0) {
that.setData({
current_city_name: res.data.city.name,
current_city_id: res.data.city.city_id,
})
app.globalData.myLatitude = res.data.city.lat;
app.globalData.myLongitude = res.data.city.lng;
wx.setStorageSync("city_id", res.data.city.city_id);
wx.setStorageSync("myCity", res.data.city.name);
wx.setStorageSync("addr_id", res.data.city.addr_id);
wx.setStorageSync("change_city", 1);
wx.navigateBack();
}
});
},
//选择城市
bindCitys: function (e) {
var that = this;
let hha = e.currentTarget.dataset.addr_id;
let params = { city_id: e.currentTarget.dataset.city_id }
that.bindCityss(hha)
},
//选择城市2
bindCityss: function (e) {
var that = this;
let params = { addr_id: e }
getAreaList(params).then(res => {
if (res.code == 0) {
that.setData({
countyList: res.data,
showDialog: !this.data.showDialog
})
}
});
},
// 选择县
Selectfun(e) {
var that = this;
let hha = e.currentTarget.dataset.addr_id;
let params = { addr_id: hha }
getAreaList(params).then(res => {
if (res.code == 0) {
that.setData({
countyList: res.data,
showDialog: !this.data.showDialog,
current_city_name: res.data[0].name,
current_city_id: res.data[0].city_id,
})
app.globalData.myLatitude = res.data[0].lat;
app.globalData.myLongitude = res.data[0].lng;
wx.setStorageSync("city_id", res.data[0].city_id);
wx.setStorageSync("myCity", res.data[0].name);
wx.setStorageSync("addr_id", res.data[0].addr_id);
wx.setStorageSync("change_city", 1);
// 存储定位记录
let locationlog = wx.getStorageSync("locationlog");
let locationArr = [];
if (locationlog) {
//之前有
locationArr = [...locationlog, res.data[0]]
} else {
//之前没有
locationArr = [res.data[0]]
}
//去重~
var obj = {};
locationArr = locationArr.reduce(function (item, next) {
obj[next.city_id] ? '' : obj[next.city_id] = true && item.push(next);
return item;
}, []);
wx.setStorageSync("locationlog", locationArr)
wx.navigateBack();
}
});
console.log(e, '哈哈sfdsfdsfsd')
},
// 关闭弹窗
close() {
this.setData({
showDialog: !this.data.showDialog
})
},
//点击热门城市回到顶部
hotCity: function () {
this.setData({
scrollTop: 0,
})
}
})
\ No newline at end of file
{
"navigationBarTitleText": "切换城市"
}
\ No newline at end of file
<!-- 搜索框 -->
<view class='list-search'>
<view class='list-search-box'>
<icon type="search" size="15" />
<input placeholder="输入您要搜索的城市" bindinput='searchInput' />
</view>
<button class='search-button' bindtap='search'>搜索</button>
</view>
<view>
</view>
<view class="searchLetter touchClass">
<!-- <view class="thishotText" bindtap="hotCity">
<view style="margin-top:0;">当前</view>
<view style="margin-top:0;">热门</view>
</view> -->
<view wx:for="{{searchLetter}}" style="color:#2ab4ff;font-size:20rpx;" wx:key="index" data-letter="{{item.name}}"
catchtouchend="clickLetter">{{item.name}}</view>
</view>
<block wx:if="{{isShowLetter}}">
<view class="showSlectedLetter">
{{showLetter}}
</view>
</block>
<scroll-view scroll-y="true" style="height:{{winHeight}}px;background:#fff;" bindscroll="bindScroll"
scroll-into-view="{{scrollTopId}}" scroll-top="{{scrollTop}}">
<view class="hotcity-common thisCity">当前选择城市</view>
<view class="thisCityName" bindtap="bindCity" data-city_id="{{current_city_id}}">{{current_city_name}}</view>
<view class="item_letter" wx:if="{{locationlog.length>1}}"></view>
<view class="locationlogs" wx:if="{{locationlog.length>1}}">
<view class="logstit">定位/最近访问</view>
<view class="flex flex-wrap">
<view>
<view class="thisCityName thisCityNametwo flex ali-c" bindtap="bindCity" :data-city_id="current_city_id">
<image style="width: 20rpx;height: 26rpx;margin-right:5rpx;" src="/images/dingwei.png" mode=""></image>
<text>{{current_city_name}}</text>
</view>
</view>
<view wx:for="{{locationlog}}" wx:key="index">
<view wx:if="{{current_city_name!=item.name}}" class="thisCityName thisCityNametwo on" data-addr_id="{{item.addr_id}}"
data-city="{{item.name}}" bindtap="Selectfun">{{item.name}}</view>
</view>
</view>
</view>
<!-- <view>
<text class="hotcity hotcity-common">热门城市</text>
<view class="weui-grids">
<block wx:for-items="{{hotcityList}}" wx:key="index">
<view class="weui-grid" data-city_id="{{item.city_id}}" data-city="{{item.name}}" bindtap="bindCity" >
<view class="weui-grid__label">{{item.name}}</view>
</view>
</block>
</view>
</view> -->
<view class="selection" wx:for="{{cityList}}" wx:key="index">
<view class="item_letter" id="{{index}}">{{index}}</view>
<view class="item_city" wx:for="{{item}}" wx:for-item="ct" wx:key="city_id" data-addr_id="{{ct.addr_id}}"
data-city_id="{{ct.city_id}}" data-city="{{ct.name}}" bindtap="bindCitys">
{{ct.name}}
</view>
</view>
</scroll-view>
<!-- 弹窗 -->
<view class="zan-dialog {{ showDialog ? 'zan-dialog--show' : '' }}">
<!-- 如果想点击弹窗外不隐藏,取消bindtap点击事件即可 -->
<view class="zan-dialog__mask" bindtap="close" />
<view class="zan-dialog__container">
<view class="popupbox ali-c">
<view class="popupimg">
<view class="item_city_zi beijingh mb-20">
<!-- <view class="" wx:for="{{countyList}}" wx:key='index'>
{{item.name}}
</view> -->
<view class="ali-c ds-fw">
<block wx:for-items="{{countyList}}" wx:key="index">
<view class="xianji" data-addr_id="{{item.addr_id}}" data-city="{{item.name}}" bindtap="Selectfun">
<view class="weui-grid__label">{{item.name}}</view>
</view>
</block>
</view>
</view>
<view style="width: 100%;" class="jus-c" bindtap="close">
<!-- <image class="guanbi" src="{{clientImgPath}}/images/taobao/guanbi.png" mode=""></image> -->
<image class="guanbi" src="{{clientImgPath}}/images/images/colse.png" mode=""></image>
</view>
</view>
</view>
</view>
</view>
\ No newline at end of file
page{
background-color:#ffffff;
}
.searchLetter {
position: fixed;
right: 0;
width: 50rpx;
text-align: center;
justify-content: center;
display: flex;
flex-direction: column;
color: #666;
z-index: 1;
}
.searchLetter view {
margin-top: 20rpx;
color: #999999 !important ;
}
.touchClass {
background-color: #fff;
color: #fff;
padding-top: 91rpx;
}
.showSlectedLetter {
background-color: rgba(0, 0, 0, 0.5);
color: #fff;
display: flex;
justify-content: center;
align-items: center;
position: fixed;
top: 50%;
left: 50%;
margin: -100rpx;
width: 200rpx;
height: 200rpx;
border-radius: 20rpx;
font-size: 52rpx;
z-index: 1;
}
.selection {
display: flex;
width: 100%;
flex-direction: column;
margin: 0rpx 0 0;
}
.item_letter {
display: flex;
background-color: #f5f5f5;
height: 40rpx;
padding-left: 34rpx;
align-items: center;
font-size: 28rpx;
color: #666;
}
.item_city {
display: flex;
background-color: #fff;
height: 100rpx;
padding-left: 34rpx;
align-items: center;
border-bottom: 1rpx solid #ededed;
font-size: 28rpx;
color: #666;
}
.hotcity-common {
font-size: 28rpx;
color: #666;
padding: 0 0 0 30rpx;
}
.thisCity {
padding-top: 100rpx;
}
.thisCityName {
display: inline-block;
border: 1rpx solid #f64f15;
border-radius: 8rpx;
padding: 10rpx;
box-sizing: border-box;
font-size: 28rpx;
color: #f64f15;
text-align: center;
min-width: 149.5rpx;
margin: 20rpx 0 20rpx 30rpx;
}
.thishotText {
color: #999999;
font-size: 20rpx;
margin: 0 !important;
}
.slectCity {
border-color: #999999 !important;
}
.slectCity view {
color: #999999 !important;
}
.weui-grid {
position: relative;
float: left;
padding: 10rpx 0;
width: 149.5rpx;
box-sizing: border-box;
border: 1rpx solid #ececec;
border-radius: 8rpx;
margin: 10rpx 12rpx 20rpx;
}
.weui-grid__label {
display: block;
text-align: center;
color: #333;
font-size: 28rpx;
white-space: nowrap;
text-overflow: ellipsis;
overflow: hidden;
}
.list-search {
position: absolute;
top: 0;
left: 0;
display: flex;
align-items: center;
width: 100%;
height: 90rpx;
padding: 10rpx 30rpx;
box-sizing: border-box;
z-index: 20;
background: #FFF;
border-bottom:1px #f5f5f5 solid;
}
.search-title {
flex-shrink: 0;
font-size: 28rpx;
padding-right: 10rpx;
}
.list-search-box {
display: flex;
align-items: center;
padding: 0 30rpx;
width: 100%;
height: 70rpx;
background: #f5f5f5;
border-radius: 90rpx;
font-size: 28rpx;
box-sizing: border-box;
}
.list-search-box input {
width: 100%;
padding-left: 10rpx;
}
.search-button {
/* width: 100rpx; */
flex-shrink: 0;
height: 60rpx;
line-height: 60rpx;
font-size: 28rpx;
margin-left: 10rpx;
}
button::after{
border: none;
padding: 0
}
/* 热门城市横排显示样式 */
.list-horizontal {
display: flex;
flex-wrap: wrap;
padding: 10rpx;
padding-right: 50rpx;
}
.list-horizontal .list-name {
padding: 5rpx 20rpx;
border: 1px #ccc solid;
border-radius: 10rpx;
margin: 10rpx;
/* margin-right: 20rpx; */
}
.fiexed-box {
position: absolute;
top: 90rpx;
z-index: 19;
width: 100%;
/* background: #ddd; */
}
.item_city_zi{
padding: 20rpx;
box-sizing: border-box;
}
/* 弹窗 */
.popupbox{
width: 100%;
height: 100vh;
}
.popupimg{
width: 100%;
padding: 0 24rpx;
box-sizing: border-box;
}
.guanbi{
width: 72rpx;
height: 72rpx;
}
.zan-dialog__mask {
position: fixed;
top: 0;
left: 0;
right: 0;
bottom: 0;
z-index: 10;
background: rgba(0, 0, 0, 0); background: rgba(0, 0, 0, 0.4);
display: none;
}
.zan-dialog__container {
position: fixed;
top: 0;
width: 100%;
height: 100vh;
/* background: #f8f8f8; */
transform: translateY(300%);
transition: all 0.4s ease;
z-index: 12;
/* border-radius: 20rpx; */
/* box-shadow: 0px 3px 3px 2px gainsboro; */
}
.zan-dialog--show .zan-dialog__container {
transform: translateY(0);
}
.zan-dialog--show .zan-dialog__mask {
display: block;
}
.beijingh{
flex: 1;
background-color: #ffffff;
min-height: 400rpx;
max-height: 600rpx;
overflow-x: hidden;
border-radius: 15rpx;
}
.xianji{
padding: 10rpx 0;
width: 149.5rpx;
box-sizing: border-box;
border: 1rpx solid #ececec;
border-radius: 8rpx;
margin: 10rpx 8rpx 20rpx;
}
.locationlogs{
padding-right: 50rpx;
}
.locationlogs .logstit{
font-size: 28rpx;
color: #666;
padding: 20rpx 0 20rpx 30rpx;
}
.locationlogs .thisCityName{
display: flex;
align-items: center;
justify-content: center;
}
.thisCityNametwo.on{
color: #a7a6ab;
border: 1px solid #a7a6ab;
}
\ No newline at end of file
// pages/personal/agreement/agreement.js
Page({
/**
* 页面的初始数据
*/
data: {
},
/**
* 生命周期函数--监听页面加载
*/
onLoad: function (options) {
},
/**
* 生命周期函数--监听页面初次渲染完成
*/
onReady: function () {
},
/**
* 生命周期函数--监听页面显示
*/
onShow: function () {
},
/**
* 生命周期函数--监听页面隐藏
*/
onHide: function () {
},
/**
* 生命周期函数--监听页面卸载
*/
onUnload: function () {
},
/**
* 页面相关事件处理函数--监听用户下拉动作
*/
onPullDownRefresh: function () {
},
/**
* 页面上拉触底事件的处理函数
*/
onReachBottom: function () {
},
/**
* 用户点击右上角分享
*/
onShareAppMessage: function () {
}
})
\ No newline at end of file
{
"usingComponents": {},
"navigationBarTitleText": "隐私政策"
}
\ No newline at end of file
<!--pages/personal/agreement/agreement.wxml-->
<view class="Agreement yicode">
<view class="contenxtext">本软件尊重并保护所有使用服务用户的个人隐私权。为了给您提供更准确、更有个性化的服务,本软件会按照本隐私权政策的规定使用和披露您的个人信息。但本软件将以高度的勤勉、审慎义务对待这些信息。除本隐私权政策另有规定外,在未征得您事先许可的情况下,本软件不会将这些信息对外披露或向第三方提供。本软件会不时更新本隐私权政策。您在同意本软件服务使用协议之时,即视为您已经同意本隐私权政策全部内容。本隐私权政策属于本软件服务使用协议不可分割的一部分。</view>
<view class="cententext">1.适用范围</view>
<view class="contowtext">a)在您使用本软件网络服务,本软件自动接收并记录的您的手机上的信息,包括但不限于您的健康数据、使用的语言、访问日期和时间、软硬件特征信息及您需求的网页记录等数据;</view>
<view class="cententext">2.信息的使用</view>
<view class="contowtext">a)在获得您的数据之后,本软件会将其上传至服务器,以生成您的排行榜数据,以便您能够更好地使用服务。</view>
<view class="cententext">3.信息披露</view>
<view class="contowtext">a)本软件不会将您的信息披露给不受信任的第三方。</view>
<view class="contowtext">b)根据法律的有关规定,或者行政或司法机构的要求,向第三方或者行政、司法机构披露;</view>
<view class="contowtext">c)如您出现违反中国有关法律、法规或者相关规则的情况,需要向第三方披露;</view>
<view class="cententext">4.信息存储和交换</view>
<view class="contowtext">本软件收集的有关您的信息和资料将保存在本软件及(或)其关联公司的服务器上,这些信息和资料可能传送至您所在国家、地区或本软件收集信息和资料所在地的境外并在境外被访问、存储和展示。</view>
<view class="cententext">5.信息安全</view>
<view class="contowtext">a)在使用本软件网络服务进行网上交易时,您不可避免的要向交易对方或潜在的交易对方披露自己的个人信息,如联络方式或者邮政地址。请您妥善保护自己的个人信息,仅在必要的情形下向他人提供。如您发现自己的个人信息泄密,请您立即联络本软件客服,以便本软件采取相应措施。</view>
<view class="cententext">6.我们会出于以下目的,收集和使用您的信息:</view>
<view class="contowtext">a)为便于我们为您提供服务,您需要提供基本注册信息,例如手机号码、电子邮箱地址等,并创建您的用户名和密码。</view>
<view class="contowtext">b)我们所收集和使用的信息是为您提供服务的必要条件,如缺少相关信息,我们将无法为您提供服务的核心内容。</view>
<view class="contowtext">c)为您展示和推送商品或服务。我们可能使用您的信息,您的浏览及搜索记录、设备信息、位置信息、订单信息,提取您的浏览、搜索偏好、行为习惯、位置信息等特征,并基于特征标签通过电子邮件、短信或其他方式向您发送营销信息,提供或推广我们或第三方的如下商品和服务。</view>
<view class="contowtext">d)向您发出通知。我们可能在必需时(例如当我们由于系统维护而暂停某一单项服务、变更、终止提供某一单项服务时)向您发出与服务有关的通知。</view>
</view>
/* pages/personal/agreement/agreement.wxss */
page{
background-color: #fff !important;
}
.Agreement{
padding: 24rpx;
}
.Agreement .contenxtext{
font-size: 30rpx;
margin-bottom: 10rpx;
}
.Agreement .cententext{
font-size: 28rpx;
margin-bottom: 10rpx;
}
.Agreement .contowtext{
font-size: 26rpx;
margin-bottom: 10rpx;
}
\ No newline at end of file
// pages/personal/agreementuser/agreementuser.js
Page({
/**
* 页面的初始数据
*/
data: {
},
/**
* 生命周期函数--监听页面加载
*/
onLoad: function (options) {
},
/**
* 生命周期函数--监听页面初次渲染完成
*/
onReady: function () {
},
/**
* 生命周期函数--监听页面显示
*/
onShow: function () {
},
/**
* 生命周期函数--监听页面隐藏
*/
onHide: function () {
},
/**
* 生命周期函数--监听页面卸载
*/
onUnload: function () {
},
/**
* 页面相关事件处理函数--监听用户下拉动作
*/
onPullDownRefresh: function () {
},
/**
* 页面上拉触底事件的处理函数
*/
onReachBottom: function () {
},
/**
* 用户点击右上角分享
*/
onShareAppMessage: function () {
}
})
\ No newline at end of file
{
"usingComponents": {},
"navigationBarTitleText": "用户协议"
}
\ No newline at end of file
This diff is collapsed.
/* pages/personal/agreementuser/agreementuser.wxss */
page{
background-color: #fff !important;
}
.Agreement{
padding: 24rpx;
}
.Agreement .contenxtext{
font-size: 30rpx;
margin-bottom: 10rpx;
}
.Agreement .cententext{
font-size: 28rpx;
margin-bottom: 10rpx;
}
.Agreement .contowtext{
font-size: 26rpx;
margin-bottom: 10rpx;
}
\ No newline at end of file
// pages/personal//coupons/coupons.js
const app = getApp();
import {getUserInfo, my_coupons, del_coupons} from '../../../api/user.js';
import { shopType, hotelId } from '../../../api/shop.js';
import Util from '../../../utils/util.js';
import luma from '../../../utils/luma.js';
var clientImgPath = app.globalData.clientImgPath;
var img_host = app.globalData.ImgPath;
Page({
/**
* 页面的初始数据
*/
data: {
arr:['hh','aa','bb'],
hiddenName:true,
currentTab: 0,
currentIndex: 0,
hidden: true,
currentTab_1: 0,
currentIndex: 0,
pageNum: 0,
is_loading_done: false, //是否显示加载完,默认没有加载完
couponlist: [],
clientImgPath: clientImgPath,
genre:1,
coupons:[],
hidden:false,//授权弹窗是否显示
},
getCoupon:function(data){
console.info(data)
var shopid = data.detail.shop_id;
var goods_id = data.detail.goods_id;
var couponid = data.detail.id;
shopType(shopid).then(res => {
if (res.code == 0) {
if (res.data == 'ele') {
if(goods_id!=null){
console.info(1)
wx.navigateTo({
url: '/pages/shop/shops/ele/ele_details/ele_details?product_id=' + goods_id+ '&shop_id=' + shopid ,
})
}else{
console.info(2)
wx.navigateTo({
url: '/pages/shop/shops/ele/ele?shop_id=' + shopid+ '&couponid=' + couponid,
})
}
} else if (res.data == 'weidian') {
if(goods_id!=null){
console.info(goods_id,3)
wx.navigateTo({
url: '/pages/shop/shops/weidian/weidian_details/weidian_details?goods_id=' + goods_id+ '&couponid=' + couponid ,
})
}else {
console.info(4)
wx.navigateTo({
url: '/pages/shop/shops/weidian/home_page_weidian/home_page_weidian?shop_id=' + shopid+ '&couponid=' + couponid ,
})
}
} else {
hotelId(shopid).then(res => {
if (res.code == 0) {
wx.navigateTo({
url: '/pages/shop/hotel/hotel_details/hotel_details?hotel_id=' + res.data + '&couponid=' + couponid,
})
}
})
}
}
})
},
bindButtonTap() {
this.setData({
focus: true,
hidden: false
})
},
onbindblur() {
this.setData({
hidden: true
})
},
//点击切换
clickTab: function (e) {
var that = this;
if (this.data.currentTab === e.target.dataset.current) {
return false;
} else {
that.data.pageNum=0;
that.data.couponlist=[];
that.data.coupons = [];
that.setData({
currentTab: e.target.dataset.current,
couponList: that.data.couponlist,
coupons: that.data.coupons,
pageNum: that.data.pageNum,
})
}
that.initializedata(that.data.genre);
},
//点击切换
clickTab_1: function (e) {
var that = this;
console.log(e.target.dataset.current)
if (this.data.currentTab_1 === e.target.dataset.current) {
return false;
} else {
that.setData({
currentTab_1: e.target.dataset.current,
})
}
if (that.data.currentTab_1==0){
that.data.genre = 1
that.data.couponlist = [];
that.data.coupons = [];
that.data.pageNum = 0;
that.setData({
couponList: that.data.couponlist,
coupons: that.data.coupons,
pageNum: that.data.pageNum,
})
that.initializedata(1);
}else{
that.data.genre = 0
that.data.couponlist = [];
that.data.coupons = [];
that.data.pageNum = 0;
that.setData({
couponList: that.data.couponlist,
coupons: that.data.coupons,
pageNum: that.data.pageNum,
})
that.initializedata(0);
}
},
setUserInfo(e){ //点击了授权
if(e.detail){
this.initializedata();
}
},
/**
* 生命周期函数--监听页面加载
*/
onLoad(options) {
if(options.currentTab){
this.setData({
currentTab:options.currentTab,
currentTab_1:options.shop_id==3140?0:1,
genre:options.shop_id==3140?1:0,
})
}
if( !wx.getStorageSync('userInfo') ){
this.setData({ hidden:true });
return;
}
this.setData({ hidden:false });
this.initializedata(this.data.genre);
},
//初始化数据
initializedata: function (genre=1) {
this.data.is_loading_done= false;
var that = this;
var page = that.data.pageNum;
if (that.data.currentTab == 0) {
that.my_coupons(0, page, genre);
} else if (that.data.currentTab == 1) {
that.my_coupons(1, page, genre);
} else if (that.data.currentTab == 2){
that.my_coupons(2, page, genre)
}
},
my_coupons(type, page, genre=1){
var that = this;
my_coupons(type, page, genre).then(res => {
if (res.code == 0) {
console.log(res.data)
if (res.data==null){
that.setData({
is_loading_done: true,
})
}else{
if(that.data.genre==0){
var coupon_list = that.data.couponlist;
coupon_list = coupon_list.concat(res.data);
coupon_list.map((item, index)=>{
item.isshowall = false;
return item;
})
that.data.couponlist = coupon_list;
that.setData({
couponList: coupon_list,
})
}else{
var coupons = that.data.coupons;
coupons = coupons.concat(res.data);
that.data.coupons = coupons;
that.setData({
coupons: coupons,
})
}
}
wx.hideLoading();
}
}).catch(err=>{
if( res.data.code == -10800 ){
that.setData({ hidden:true });
}
})
},
deleteCoupons:function(e){
var that = this
var coupons_id = e.currentTarget.dataset['id'];
del_coupons(coupons_id).then(res=>{
console.log(res.data)
if(res.code==0){
wx.showToast({
title: res.msg,
duration: 2000,
})
that.data.pageNum=0;
that.initializedata(that.data.genre);
that.onload()
}
})
},
/**
* 生命周期函数--监听页面初次渲染完成
*/
onReady: function () {
},
/**
* 生命周期函数--监听页面显示
*/
onShow: function () {
this.getUserInfo()
},
/**
* 生命周期函数--监听页面隐藏
*/
onHide: function () {
},
/**
* 获取
*/
getUserInfo(){
console.log(111111111);
let params = {};
getUserInfo(params).then(res => {
console.log(res.data)
if(res.code==0){
getApp().globalData.userInfo = res.data.info;
var user_id = res.data.info.user_id;
// wx.setStorageSync('user_id', user_id);
wx.setStorageSync('userInfo', res.data);
wx.setStorageSync('user_id', res.data.info.user_id);
this.setData({
member: getApp().globalData.userInfo,
personal: res.data
})
// this.getLuckDrawListFun()
}
})
},
/**
* 生命周期函数--监听页面卸载
*/
onUnload: function () {
},
/**
* 页面相关事件处理函数--监听用户下拉动作
*/
onPullDownRefresh: function () {
},
loadmore: function () {
var that = this;
var pageNum = that.data.pageNum;
that.setData({
pageNum: pageNum + 1
})
that.initializedata(that.data.genre);
},
/**
* 页面上拉触底事件的处理函数
*/
onReachBottom: function () {
var that = this;
var is_loading_done = that.data.is_loading_done; //是否加载完毕
if (is_loading_done == false) { //还没加载完毕则继续加载
wx.showLoading({
title: '加载中',
mask: false
})
that.loadmore();
} else {
wx.showLoading({
title: '已全部加载完毕',
mask: false
})
setTimeout(function () {
wx.hideLoading()
}, 1000)
}
},
/**
* 用户点击右上角分享
*/
onShareAppMessage: function () {
},
})
\ No newline at end of file
{
"navigationBarTitleText": "我的卡券",
"usingComponents": {
"CouponsGroup": "../../../components/CouponsGroup/CouponsGroup"
}
}
\ No newline at end of file
<!--pages/personal//coupons/coupons.wxml-->
<!-- tab -->
<view class='tab_wrap fu_top'>
<view class="swiper-tab-items {{currentTab==0?'activezi':''}}" data-current="0" bindtap="clickTab">未使用</view>
<view class="swiper-tab-items {{currentTab==1?'activezi':''}}" data-current="1" bindtap="clickTab">已使用</view>
<view class="swiper-tab-items {{currentTab==2?'activezi':''}}" data-current="2" bindtap="clickTab">已过期</view>
</view>
<view class="{{currentTab == 0 ? 'show':'hidden'}}">
<view class='tab_wrap fu_top xian_t'>
<view style="width:50%" class="swiper-tab-ss {{currentTab_1==0?'actives':''}}" data-current="0" bindtap="clickTab_1">鹿马优选优惠券</view>
<view class="tapshuxian"></view>
<view style="width:50%" class="swiper-tab-ss {{currentTab_1==1?'actives':''}}" data-current="1" bindtap="clickTab_1">其它店铺优惠券</view>
</view>
<view class="{{currentTab_1 == 0 ? 'show':'hidden'}}">
<view class="kaj_box">
<!-- 无数据显示图片 -->
<view class="meiyous" wx:if='{{coupons.length==0}}'>
<image src="{{clientImgPath}}/images/uts/meiyoule.png"></image>
</view>
<!-- s -->
<view class="kaj_zi" wx:if='{{coupons.length!=0}}'>
<!-- 新的 卡券组-->
<CouponsGroup coupons='{{coupons}}' currentTab='{{currentTab_1}}' bind:getCoupon="getCoupon" currentTabs='{{currentTab}}'/>
</view>
</view>
</view>
<view class="{{currentTab_1 == 1 ? 'show':'hidden'}}">
<view class="kaj_box">
<!-- 无数据显示图片 -->
<view class="meiyous" wx:if='{{couponList.length==0}}'>
<image src="{{clientImgPath}}/images/uts/meiyoule.png"></image>
</view>
<!-- s -->
<view class="kaj_zi" wx:if='{{couponList.length!=0}}'>
<!-- 新的 卡券组-->
<CouponsGroup coupons='{{couponList}}' bind:getCoupon="getCoupon" currentTab='{{currentTab_1}}' currentTabs='{{currentTab}}' />
</view>
</view>
</view>
</view>
<view class="{{currentTab == 1 ? 'show':'hidden'}}">
<view class='tab_wrap fu_top xian_t'>
<view style="width:50%" class="swiper-tab-ss {{currentTab_1==0?'actives':''}}" data-current="0" bindtap="clickTab_1">鹿马优选优惠券</view>
<view class="tapshuxian"></view>
<view style="width:50%" class="swiper-tab-ss {{currentTab_1==1?'actives':''}}" data-current="1" bindtap="clickTab_1">其它店铺优惠券</view>
</view>
<view class="{{currentTab_1 == 0 ? 'show':'hidden'}}">
<view class="kaj_box">
<!-- 无数据显示图片 -->
<view class="meiyous" wx:if='{{coupons.length==0}}'>
<image src="{{clientImgPath}}/images/uts/meiyoule.png"></image>
</view>
<!-- s -->
<view class="kaj_zi" wx:if='{{coupons.length!=0}}'>
<!-- 新的 卡券组-->
<CouponsGroup coupons='{{coupons}}' currentTab='{{currentTab_1}}' bind:getCoupon="getCoupon" currentTabs='{{currentTab}}' />
</view>
</view>
</view>
<view class="{{currentTab_1 == 1 ? 'show':'hidden'}}">
<view class="kaj_box">
<!-- 无数据显示图片 -->
<view class="meiyous" wx:if='{{couponList.length==0}}'>
<image src="{{clientImgPath}}/images/uts/meiyoule.png"></image>
</view>
<!-- s -->
<view class="kaj_zi" wx:if='{{couponList.length!=0}}'>
<!-- 新的 卡券组-->
<CouponsGroup coupons='{{couponList}}' bind:getCoupon="getCoupon" currentTab='{{currentTab_1}}' currentTabs='{{currentTab}}' />
</view>
</view>
</view>
</view>
<view class="{{currentTab == 2 ? 'show':'hidden'}}">
<view class='tab_wrap fu_top xian_t'>
<view style="width:50%" class="swiper-tab-ss {{currentTab_1==0?'actives':''}}" data-current="0" bindtap="clickTab_1">鹿马优选优惠券</view>
<view class="tapshuxian"></view>
<view style="width:50%" class="swiper-tab-ss {{currentTab_1==1?'actives':''}}" data-current="1" bindtap="clickTab_1">其它店铺优惠券</view>
</view>
<view class="{{currentTab_1 == 0 ? 'show':'hidden'}}">
<view class="kaj_box">
<!-- 无数据显示图片 -->
<view class="meiyous" wx:if='{{coupons.length==0}}'>
<image src="{{clientImgPath}}/images/uts/meiyoule.png"></image>
</view>
<!-- s -->
<view class="kaj_zi" wx:if='{{coupons.length!=0}}'>
<!-- 新的 卡券组 过期卡券-->
<!-- <CouponsGroup currentTab='{{currentTab_1}}' coupons='{{coupons}}' bind:getCoupon="getCoupon" currentTabs='{{currentTab}}' /> -->
<!-- <view class="mab-30 kbox {{item.type==2||item.type==1?'huse':''}} " wx:for='{{coupons}}' wx:key='key'> -->
<view class="mab-30 kbox huse " wx:for='{{coupons}}' wx:key='key'>
<view bindlongpress="onDel" data-index="{{index}}" data-name="哈哈">
<view class="dsfle">
<view class="lezi">
<!-- 优惠券过期 -->
<view class="ysyong">
<image src="{{clientImgPath}}/images/images/yiguoqil.png"></image>
</view>
<!-- <view class="ysyong" wx:if='{{item.type==1}}'>
<image src="{{clientImgPath}}/images/images/yishiyong.png"></image>
</view> -->
<view class="dsfle-a">
<view class="juxing hong">商户</view>
<view class="mjtext">满{{item.at_least}}减{{item.money}}元</view>
</view>
<view class="xztext">仅限于{{item.shop_name}}店铺内使用</view>
<view class="dsfle-a s-30">
<view class="rqtext">有效期至 {{item.end_time}}</view>
<view class="xqbtn" bindtap="xiangqing" data-index='{{index}}'>详情</view>
</view>
</view>
<view class="rezi">
<view class="rh1">{{item.money}}元</view>
<view class="rh2">满{{item.at_least}}元使用</view>
<view class="rh3" bindtap='getCoupon' data-index="{{index}}" wx:if='{{item.type==0}}'>立即使用</view>
</view>
</view>
<view class="smtext {{bianlss==index?'back':'none'}} {{show?'back':'none'}}">
<view>使用说明:</view>
1.本券有效期至{{item.end_time}}。
2.本券每人限领1张,单笔订单限用1张且仅限移动端使用,不可叠加使用,不找零,不兑现。
3.如用券订单交易取消,券退回账户;如部分交易取消,券优惠按商品金额拆分。
4.商品固定余额部分不参与优惠。
5.若发现多笔订单中用户ID、收货人姓名、详细地址、联系方式及与用户身份相关的其他信息,任意一项或数项存在相同相似,或其他非真实有效等情形的,视为黄牛订单,鹿马108有权取消订单并不予发货。
<!-- 6.{{item.money}}元优惠券 -->
</view>
<!-- 优惠劵 -->
<view class="butt" hidden="{{!item.isshowall}}">
<!-- <view class="butt_1">取消</view> -->
<view class="butt_1" bindtap="handleLongPress" data-index="{{index}}">删除</view>
</view>
</view>
</view>
<!-- 新的 卡券组 过期卡券 /-->
</view>
</view>
</view>
<view class="{{currentTab_1 == 1 ? 'show':'hidden'}}">
<view class="kaj_box">
<!-- 无数据显示图片 -->
<view class="meiyous" wx:if='{{couponList.length==0}}'>
<image src="{{clientImgPath}}/images/uts/meiyoule.png"></image>
</view>
<!-- s -->
<view class="kaj_zi" wx:if='{{couponList.length!=0}}' wx:key="key">
<!-- 新的 卡券组-->
<CouponsGroup coupons='{{couponList}}' bind:getCoupon="getCoupon" currentTab='{{currentTab_1}}' currentTabs='{{currentTab}}' />
</view>
</view>
</view>
</view>
<!-- 登陆授权弹窗 -->
<login hidden="{{hidden}}" bind:setUserInfo="setUserInfo"/>
\ No newline at end of file
/* pages/personal//coupons/coupons.wxss */
page{
background: #F4F5FA;
}
/* tap */
.tab_wrap{
width: 100%;
height: 80rpx;
box-sizing: border-box;
padding: 0 55rpx;
overflow: hidden;
font-size: 28rpx;
display: flex;
align-items:center;
justify-content: space-between;
background: white;
}
.tab_wrap .activezi{
height: 55rpx;
text-align: center;
font-size:30rpx;
font-weight:bold;
line-height: 55rpx;
color:#f64f15;
border-bottom:4rpx solid #f64f15;
}
.actives{
height: 55rpx;
text-align: center;
font-size:30rpx;
font-weight:bold;
line-height: 55rpx;
color:#f64f15;
}
.swiper-tab-items{
height: 55rpx;
font-size:30rpx;
font-weight:bold;
line-height: 55rpx;
color: rgba(85,85,85,1);
text-align: center;
border-bottom:4rpx solid white;
}
.swiper-tab-ss{
height: 55rpx;
font-size:28rpx;
font-weight:bold;
line-height: 55rpx;
text-align: center;
}
.show{
display: block;
}
.hidden{
display: none;
}
.kjx_l_t_l_text{
font-size: 55rpx;
}
/* 内容 */
.kaj_box{
width: 100%;
padding: 20rpx 25rpx;
box-sizing: border-box;
}
.kjx_l_t_r{
}
.kjx_l_b_z{
width: 250rpx;
}
.kjx_l_t_box{
text-align: center;
}
.kjx_l_t_l{
width: 180rpx;
text-align: center;
}
.kjx_l_b_l{
width: 180rpx;
text-align: center;
}
.kaj_zi{
width: 100%;
/* background:rgba(255,255,255,1); */
/* border-radius:10rpx; */
/* padding: 20rpx 25rpx;
box-sizing: border-box; */
}
.kaj_zi_t{
display: flex;
align-items: center;
margin-bottom: 20rpx;
}
.kaj_zi_t_l{
overflow: hidden;
border-radius: 35rpx;
margin-right: 20rpx;
width:70rpx;
height:70rpx;
}
.kaj_zi_t_r{
width: 500rpx;
white-space: nowrap;
text-overflow: ellipsis;
overflow: hidden;
word-break: break-all;
font-size:30rpx;
font-weight:800;
color:rgba(0,0,0,1);
}
.kjx_box{
width:100%;
height:138rpx;
position: relative;
margin-top: 15rpx;
}
.kjx_l_box{
width:100%;
height:100%;
display: flex;
align-items: center;
position: absolute;
}
.kjx_bjtu{
width: 100%;
height: 100%;
position: absolute;
top: 0;
left: 0;
z-index: 0;
}
image{
width: 100%;
height: 100%;
display: block;
}
.kjx_l{
width: 588rpx;
padding: 25rpx 30rpx 25rpx 10rpx;
box-sizing: border-box;
}
.kjx_l_t{
display: flex;
justify-content: space-between;
align-items: center;
}
.kjx_l_t_l{
font-size:30rpx;
font-weight:800;
color:rgba(225,0,63,1);
}
.kjx_l_t_r{
width: 250rpx;
font-size:30rpx;
font-weight:bold;
color:rgba(51,51,51,1);
}
.kjx_l_b{
display: flex;
justify-content: space-between;
align-items: center;
font-size:20rpx;
font-weight:500;
color:rgba(153,153,153,1);
}
.kjx_l_b_r{
width:22rpx;
height:22rpx;
opacity:0.5;
}
.kjx_r{
width:35rpx;
font-size:24rpx;
line-height: 27rpx;
font-weight:bold;
color:#fff;
margin-left: 60rpx;
}
.kjx_rs{
width:35rpx;
font-size:24rpx;
line-height: 35rpx;
font-weight:bold;
color:rgba(51,51,51,1);
margin-left: 22rpx;
}
.xian_t{
border-top: 1px solid rgba(215,215,215,.5)
}
.kjx_rbox{
flex: 1;
display: flex;
align-items: center;
justify-content: center;
}
/* 过期卡券 css */
/* components/CouponsGroup/CouponsGroup.wxss */
/* 新的 */
.mab-30{
margin-bottom: 30rpx;
}
.dsfle{
display: flex;
}
.dsfle-a{
display: flex;align-items: center;
}
.lezi{
flex: 1;padding: 20rpx 20rpx 20rpx 0;box-sizing: border-box;position: relative;
}
.ysyong{
position: absolute;
width: 136rpx;
height: 136rpx;
right: -68rpx;
bottom: 50%;
z-index: 999;
margin-bottom: -68rpx;
}
.butt{
display: flex;
justify-content: flex-end;
/* margin: 0 20rpx 20rpx 0; */
margin-top: 20rpx;
}
.butt_1{
padding: 10rpx 35px 10rpx 35px;
/* border: 1rpx solid red; */
border-radius: 10rpx;
margin: 0 10rpx 20rpx 0;
background: #f64f15;
color:#ffffff;
font-weight: bold
}
.rezi{
width: 220rpx;padding: 20rpx 0;box-sizing: border-box;
position: relative;background-color: #f64f15;text-align: center;
}
.rezi::after{
content: '';
display: block;
width: 40px;
height: 100%;
/* height: 132px; */
background-size: 17px 11px;
background-repeat: repeat-y;
background-image: -o-radial-gradient(#fff 14rpx, transparent 14rpx);
background-image: -webkit-radial-gradient(#fff 14rpx, transparent 14rpx);
/* background-image: radial-gradient(#F5F2F2 8px, transparent 8px); */
position: absolute;
top:0;
left: -22rpx;
}
/* .byuan{
width: 20rpx;height: 20rpx;border-radius: 0 20rpx 20rpx 0;background-color: #fff;position: absolute;left: -10rpx;
} */
.juxing{
padding: 1px 2px;
font-size:24rpx;
font-weight:500;
color:rgba(255,255,255,1);
}
.kbox{
background:rgba(255,255,255,1);
border-radius:12rpx;overflow: hidden;padding: 0 0 0 20rpx ;
}
.hong{
background:rgba(242,45,71,1);
}
.mjtext{
font-size:36rpx;
font-weight:600;
color:rgba(26,26,26,1);margin-left: 10rpx;
}
.xztext{
font-size:24rpx;
font-weight:500;
color:rgba(179,179,179,1);margin-top: 15rpx;
}
.rqtext{
font-size:24rpx;
font-weight:500;
color:rgba(128,128,128,1);
}
.xqbtn{
margin-left: 20rpx;
padding: 1px 2px;
border:1px solid rgba(153,153,153,1);
border-radius:8rpx;
font-size:18rpx;
font-weight:500;
color:rgba(179,179,179,1);
}
.s-30{
margin-top: 30rpx;
}
.rh1{
font-size:48rpx;
font-weight:bold;
color:rgba(255,255,255,1);
}
.rh2{
font-size:20rpx;
font-weight:500;
color:rgba(255,255,255,1);
margin: 10rpx 0;
}
.rh3{
width:140rpx;
height:46rpx;
text-align: center;
background:rgba(255,255,255,1);
font-size:24rpx;
font-weight:400;
color:rgba(255,105,0,1);
line-height:46rpx;
margin: 0 auto;
}
.smtext{
margin: 20rpx 0;
font-size:17rpx;
font-weight:500;
color:rgba(51,51,51,1);
line-height:24rpx;
padding-right: 20rpx;
box-sizing: border-box;
}
.huse{
-webkit-filter: grayscale(100%);
}
.none{
display: none;
}
.back{
display: initial-back;
}
\ No newline at end of file
const app = getApp()
import { logisticsList, oneKeyShipments } from '../../../api/shop.js';
Page({
/**
* 页面的初始数据
*/
data: {
clientImgPath: app.globalData.clientImgPath,
selectData: [],
index:-1
},
bindPickerChange: function (e) {
console.log('picker发送选择改变,携带值为', e.detail.value)
var index = e.detail.value
this.setData({
index: e.detail.value
})
console.log(index)
},
/**
* 生命周期函数--监听页面加载
*/
onLoad: function (options) {
console.log(options)
var that=this;
that.setData({
order_id: options.order_id,
vendor_id:options.vendor_id
})
that.initializedata();
},
/**
* 生命周期函数--监听页面初次渲染完成
*/
onReady: function () {
},
/**
* 生命周期函数--监听页面显示
*/
onShow: function () {
},
/**
* 生命周期函数--监听页面隐藏
*/
onHide: function () {
},
/**
* 生命周期函数--监听页面卸载
*/
onUnload: function () {
},
/**
* 页面相关事件处理函数--监听用户下拉动作
*/
onPullDownRefresh: function () {
},
/**
* 页面上拉触底事件的处理函数
*/
onReachBottom: function () {
},
/**
* 用户点击右上角分享
*/
onShareAppMessage: function () {
},
//初始化数据
initializedata: function () {
var that=this;
let params = {};
logisticsList(params).then(res => {
that.setData({
selectData: res.data,
})
})
},
formSubmit:function(e){
var that=this;
console.log(that.data.vendor_id);
let params = {
order_id: that.data.order_id,
shipperName: that.data.selectData[that.data.index],
logisticCode: e.detail.value.logisticCode,
formId:e.detail.formId,
vendor_id:that.data.vendor_id
};
oneKeyShipments(params).then(res => {
if (res.code == 0) {
wx.showModal({
title: '提示',
content: res.msg,
showCancel: false,
success(res) {
wx.redirectTo({
url: '/pages/personal/Ishop/weidianLine_list_merchant/weidianLine_list_merchant'
})
}
})
}else {
app.showModal({
content: res.msg,
showCancel: false,
});
}
})
},
cancelShipments:function(){
wx.redirectTo({
url: '/pages/personal/Ishop/weidianLine_list_merchant/weidianLine_list_merchant'
})
}
})
\ No newline at end of file
{
"usingComponents": {},
"navigationBarTitleText": "快递发货"
}
\ No newline at end of file
<view class="boxs">
<form bindsubmit="formSubmit" report-submit="true">
<view class="topbox_20">
<picker bindchange="bindPickerChange" value="{{index}}" range="{{selectData}}">
<view class="ali-z mt-10">
<view class="ali-c">
<view class="kuaiimg mr-40"><image src="{{clientImgPath}}/images/uts/kuaidi.png"></image></view>
<view wx:if='{{index==-1}}' class="sz_30 bt_hei">请选择快递公司</view>
<view wx:if='{{index>=0}}' class="sz_30 bt_hei">{{selectData[index]}}</view>
</view>
<view class="xiangyouimg"><image src="{{clientImgPath}}/images/uts/quanbu@2x.png"></image></view>
</view>
</picker>
<view class="xian mt-30 mb-30"></view>
<view class="ali-c">
<view class="didanimg mr-50"><image src="{{clientImgPath}}/images/uts/dingdanhao.png"></image></view>
<view class="inptqt"><input name='logisticCode' placeholder="请填写快递单号" placeholder-class="sz_30 inp_hui"></input></view>
</view>
<view class="xian mt-30 mb-30"></view>
<view class="ali-z mt-80">
<button class="button_b" bindtap="cancelShipments" style="width:45%">取消</button>
<button class="button " form-type="submit" style="width:45%">确定发货</button>
</view>
</view>
</form>
</view>
/* pages/personal//express/express.wxss */
page{
background: rgba(245, 242, 242, 1);
}
.kuaiimg{
width: 48rpx;
height: 38rpx;
}
.xiangyouimg{
width:10rpx;
height:18rpx;
}
.inptqt{
flex: 1;
height: 40rpx
}
.didanimg{
width: 40rpx;
height: 42rpx;
}
\ No newline at end of file
const app = getApp()
var http_host = app.globalData.http_host;
var img_host = app.globalData.ImgPath;
Page({
/**
* 页面的初始数据
*/
data: {
},
/**
* 生命周期函数--监听页面加载
*/
onLoad: function (options) {
this.setData({
img_host: img_host,
});
},
/**
* 用户点击右上角分享
*/
onShareAppMessage: function () {
return {
title: '鹿马优选资质',
path: '/pages/my/certificate/certificate'
}
}
})
\ No newline at end of file
{
"navigationBarTitleText": "证件资质"
}
\ No newline at end of file
<view class='top-img'>
<image src='{{img_host}}/static/default/images/xuke.png'></image>
</view>
<view class='top-img-text'>增值电信业务经营许可证</view>
<view class='top-img'>
<image src='{{img_host}}/static/default/images/108zhuzuo.jpg'></image>
</view>
<view class='top-img'>
<image src='{{img_host}}/static/default/images/108zhuzuo2.jpg'></image>
</view>
<view class='top-img-text'>计算机软件著作权登记证书</view>
<view class='top-imgs'>
<image src='{{img_host}}/static/default/images/gaoxin.jpg'></image>
</view>
<view class='top-imgs-text'>国家高新技术企业证书</view>
<view class='top-imgs'>
<image src='{{img_host}}/static/default/images/yingye.png'></image>
</view>
<view class='top-imgs-text'>营业执照</view>
<view class='top-imgs'>
<image src='{{img_host}}/static/default/images/shipin.png'></image>
</view>
<view class='top-imgs-text'>食品经营许可证</view>
\ No newline at end of file
.top-img{
width: 600rpx;
height: 825rpx;
margin: 0 auto
}
.top-img image{
width: 100%;
height: 100%;
}
.top-imgs{
width: 600rpx;
height: 436rpx;
margin: 0 auto
}
.top-imgs image{
width: 100%;
height: 100%;
}
.top-img-text{
height: 100rpx;
line-height: 100rpx;
text-align: center;
font-size: 31rpx;
margin-bottom: 50rpx
}
.top-imgs-text{
height: 100rpx;
line-height: 100rpx;
text-align: center;
font-size: 31rpx;
margin-bottom: 55rpx
}
\ No newline at end of file
const app = getApp()
var http_host = app.globalData.http_host;
var img_host = app.globalData.img_host;
Page({
data:{
site :app.globalData.CONFIG.site,
},
/**
* 生命周期函数--监听页面加载
*/
onLoad: function (options) {
console.log(app.globalData.CONFIG)
},
callTel:function(e){
wx.makePhoneCall({
phoneNumber: e.currentTarget.dataset.tel // 仅为示例,并非真实的电话号码
})
},
certificate:function(){
wx.navigateTo({
url: '/pages/personal/lumainfo/certificate/certificate',
})
},
agreement:function(){
wx.navigateTo({
url: '/pages/my/agreement/agreement',
})
},
lumaintroduce: function () {
wx.navigateTo({
url: '/pages/personal/lumainfo/lumaintroduce/lumaintroduce',
})
}
})
\ No newline at end of file
{
"navigationBarTitleText": "关于鹿马"
}
\ No newline at end of file
<!-- 头部 -->
<view class='imageTop'>
<image src='{{img_host}}/static/default/images/logo@2x.png'></image>
</view>
<view class='textTop'>
<text class='textTop-t'>鹿马优选</text>
<text class='textTop-e'>V5.0.1</text>
</view>
<!-- 内容 -->
<view class='background'>
<view class='content-top-one' bindtap='lumaintroduce'>
<text class='content-top-one-t'>关于鹿马</text>
<view style='width:17rpx;height:31rpx;position: absolute;right: 39rpx;top:40rpx;line-height: 90rpx; '>
<image src='{{img_host}}/static/default/images/dayuhao.png'style="width:100%;height:100%;"></image>
</view>
</view>
<view class='content-top-one' bindtap='agreement' style='display:none'>
<text class='content-top-one-t'>协议及声明</text>
<view style='width:17rpx;height:31rpx;position: absolute;right: 39rpx;line-height: 90rpx; '>
<image src='{{img_host}}/static/default/images/dayuhao.png'style="width:100%;height:100%;"></image>
</view>
</view>
<view class='content-top-one' bindtap='certificate'>
<text class='content-top-one-t'>证件资质</text>
<view style='width:17rpx;height:31rpx;position: absolute;right: 39rpx;top:40rpx;line-height: 90rpx; '>
<image src='{{img_host}}/static/default/images/dayuhao.png'style="width:100%;height:100%;"></image>
</view>
</view>
<view class='content-top-one'>
<text class='content-top-one-t'>微信公众号</text>
<text class='content-top-one-x'>鹿马优选</text>
</view>
<view class='content-top-one'>
<text class='content-top-one-t'>客服电话</text>
<text class='content-top-one-x' bindtap='callTel' data-tel='{{site.tel}}' >{{site.tel}}</text>
</view>
</view>
<!--底部 -->
<view class='textDottom'>
<text>Copyright©2019鹿马优选 All Rights Reserved</text><br/>
<text>江西多思盈信息科技有限公司</text>
</view>
\ No newline at end of file
page{
background:rgba(246,246,246,1);
padding-top: 80rpx;
}
.navigator-hover{
background: none;
}
.imageTop{
width: 174rpx;
height: 189rpx;
margin: 0 auto
}
.imageTop image{
width: 100%;
height: 100%;
}
.textTop{
padding-top:20rpx;
margin: 0 auto;
width: 200rpx;
height: 200rpx;
text-align:center;
}
.textTop-t{
font-size:38rpx;
font-weight:bold;
color:rgba(26,26,26,1);
}
.textTop-e{
font-size:32rpx;
font-weight:400;
color:rgba(132,132,132,1);
}
/* 内容 */
.background{
margin: 0 auto;
width:710rpx;
background:rgba(255,255,255,1);
border-radius:20rpx;
}
.content-top-one-t{
float: left;
margin-left:39rpx;
line-height: 100rpx;
/* width:335rpx;
height:26rpx; */
font-size:26rpx;
font-family:PingFang-SC-Medium;
font-weight:500;
color:rgba(128,128,128,1);
}
.content-top-one-x{
float: right;
margin-right:39rpx;
line-height: 103rpx;
/* width:121rpx;
height:30rpx; */
font-size:26rpx;
font-family:Montserrat-Regular;
font-weight:400;
color:rgba(51,51,51,1);
}
.content-top-one{
position: relative;
width:100%;
height:100rpx;
border-bottom: 1rpx solid rgba(245,245,245,1)
}
/* dibu */
.textDottom{
margin: 0 auto;
position: absolute;
left:50%;
transform: translateX(-50%);
bottom: 70rpx;
width: 480rpx;
text-align:center;
}
.textDottom text{
text-align:center;
font-size:22rpx;
font-family:PingFang-SC-Regular;
font-weight:400;
color:rgba(166,166,166,1);
}
\ No newline at end of file
const app = getApp();
Page({
/**
* 页面的初始数据
*/
data: {
img_host: app.globalData.img_host,
},
/**
* 生命周期函数--监听页面加载
*/
onLoad: function (options) {
var that = this;
app.sendRequest({
url: '/Article/index',
data: {
content_id: 1,
},
success: function (res) {
console.log("saddas",res)
if (res.status <0) {
app.showModal({
content: res.msg, //错误信息: res.errMsg
url: '/pages/my/about_user/about_user'
})
}else{
//富文本格式转化
let contents = res.contents.contents;
wxParse.wxParse('contents', 'html', contents, that, 5);
}
},
})
},
/**
* 用户点击右上角分享
*/
onShareAppMessage: function () {
return {
title:"关于鹿马",
path: '/pages/my/lumaintroduce/lumaintroduce'
}
}
})
\ No newline at end of file
{
"navigationBarTitleText": "关于鹿马"
}
\ No newline at end of file
<import src="../../../components/wxParse/wxParse.wxml" />
<view class='background'>
<view class='content-top-one'>
<view class='content-top-one-t'>
<!-- <template is="wxParse" data="{{wxParseData:contents.nodes}}" /> -->
鹿马108是多思盈推出的一款全新互联网电商服务平台,它以服务消费者为导向、资源共享为基础引用移动互联技术把消费者、商家、合伙人、平台四为一体,鹿马108电商平台致力于让消费者消费更实惠、商家获利还 优惠、合伙人赚钱更便利的服务宗旨。
</view>
</view>
</view>
page{
border-top:1rpx solid rgba(246,246,246,1);
}
.navigator-hover{
background: none;
}
.background{
width:100%;
background:rgba(255,255,255,1);
padding-top: 30rpx;
box-sizing: border-box;
}
.content-top-one{
margin: 0 auto;
width:680rpx;
text-align: justify;
text-indent: 2em;
line-height: 50rpx;
font-size:30rpx;
font-family:PingFang-SC-Regular;
font-weight:400;
color:rgb(71, 69, 69);
}
.content-top-one-t{
height: 100%;
}
var app = getApp();
import { addrList, deleteAddr,setDefaultAddr } from "../../../../api/basicInformation.js";
Page({
/**
* 页面的初始数据
*/
data: {
addr_list : [],
clientImgPath: app.globalData.clientImgPath,
type:'0', //0普通进入 1外卖地址进入 2商城地址进入
},
/**
* 生命周期函数--监听页面加载
*/
onLoad: function (options) {
},
/**
* 生命周期函数--监听页面显示
*/
onShow: function () {
this.init();
},
init(){
addrList({type:this.data.type}).then(res=>{
this.setData({
addr_list : res.data
})
})
},
addNewAddr(){
wx.navigateTo({
url: '/pages/personal/set/new_address/new_address?type='+this.data.type,
})
},
change(e){
let items=e.currentTarget.dataset.items;
wx.navigateTo({
url: '/pages/personal/set/new_address/new_address?isedit=' + JSON.stringify(items)
})
},
deleteAddr(e){
var that = this
wx.showModal({
title: '提示',
content: '确认删除?',
confirmText: '确认',
showCancel: true,
success: function (res) {
if (res.confirm) {
var data = {
addr_id: e.currentTarget.dataset.id
}
deleteAddr(data).then(res => {
if (res.code == 0) {
/*wx.showModal({
title: '提示',
content: '删除成功',
confirmText: '确认',
showCancel: false,
success:function(res){
that.init();
}
})
*/
that.init();
} else {
wx.showModal({
title: '提示',
content: res.msg,
})
}
})
}
}
})
},
//设置默认地址
setDefaultAddr(e){
console.log(e)
let index=e.target.dataset.index;//点击的下标
let addr_id=e.detail.value[0];//点击的地址id
let type=e.target.dataset.type;//点击的地址类型
let addr_list=this.data.addr_list;
console.log(index,addr_id,type,addr_list)
setDefaultAddr({
addr_id:addr_id,
type:type
}).then(res=>{
wx.showToast({
title: res.data,
icon: 'none'
})
if(res.code==0){
addr_list.map((item,index)=>{
if(item.type==type){
if(item.addr_id==addr_id){
item.is_default=1;
}else{
item.is_default=0;
}
}
})
this.setData({addr_list});
}
}).catch(err=>{
wx.showToast({
title: err. data,
icon: 'none'
})
})
}
})
\ No newline at end of file
{
"usingComponents": {},
"navigationBarTitleText": "我的收货地址"
}
\ No newline at end of file
<view class="boxs">
<view wx:for='{{addr_list}}' wx:key="index" wx:for-item="item">
<checkbox-group bindchange='setDefaultAddr' data-type="{{item.type}}" data-index="{{index}}">
<view class="bobox ov">
<view class="beijing posr">
<view class="sz_30 c_bi twb">{{item.name}} <text>{{item.mobile}} </text></view>
<view class="sz_30 c_bi mt-10" >{{item.addr}}</view>
<image wx:if="{{item.type==2}}" class="posa" src="{{clientImgPath}}/images/images/sc.png"></image>
<image wx:if="{{item.type==1}}" class="posa" src="{{clientImgPath}}/images/images/wm.png"></image>
</view>
<view class="dibubox ali-z">
<view class="ali-c">
<checkbox
disabled="{{item.is_default==1}}"
checked="{{item.is_default==1}}"
value="{{item.addr_id}}"
class="mb-10"
/>
<view class="sz_30 bt_hei ml-20">设为默认地址</view>
</view>
<view class="ali-c">
<view bindtap="change" data-items="{{item}}">
<view class="btnxiao"> 修改</view>
</view>
<view data-id="{{item.addr_id}}" class="btnxiao ml-30" bindtap="deleteAddr">删除</view>
</view>
</view>
</view>
</checkbox-group>
</view>
<button class="button_a flexc mt-60" bindtap="addNewAddr">
<view class="bttimg"><image src="{{clientImgPath}}/images/uts/jiayige.png"></image></view>
<view class="ml-30">添加新地址</view>
</button>
</view>
This diff is collapsed.
This diff is collapsed.
{
"usingComponents": {},
"navigationBarTitleText": "添加新地址"
}
\ No newline at end of file
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
{
"usingComponents": {},
"navigationBarTitleText": "支付密码"
}
\ No newline at end of file
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
{
"usingComponents": {
},
"navigationBarTitleText": "设置管理"
}
\ No newline at end of file
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
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