作者 lihongjuan

1

... ... @@ -2,7 +2,8 @@
"pages": [
"pages/startindex/startindex",
"pages/homepage/homepage",
"pages/mine/mine",
"pages/kind/kind",
"pages/goumaixuzhi/goumaixuzhi",
"pages/kaifapiao/kaifapiao",
"pages/lianjie/lianjie",
... ... @@ -18,12 +19,10 @@
"pages/picbox/picbox",
"pages/huiyuanknow/huiyuanknow",
"pages/chongzhi/chongzhi",
"pages/mine/mine",
"pages/orderbox/orderbox",
"pages/search/search",
"pages/searchresult/searcgresult",
"pages/cart/cart",
"pages/kind/kind",
"pages/logs/logs",
"pages/videoplay/videoplay",
"pages/jingmei/jingmei",
... ... @@ -31,8 +30,8 @@
"pages/pichezi/pichezi",
"pages/tupianbox/tupianbox",
"pages/yulanfapiao/yulanfapiao",
"pages/tousujianyi/tousujianyi"
"pages/tousujianyi/tousujianyi",
"pages/searchsecond/searchsecond"
],
"window": {
"backgroundTextStyle": "light",
... ... @@ -40,38 +39,5 @@
"navigationBarTitleText": "",
"navigationBarTextStyle": "black"
},
"sitemapLocation": "sitemap.json",
"tabBar": {
"selectedColor": "#FB6324",
"list": [
{
"pagePath": "pages/homepage/homepage",
"text": "首页",
"selectedColor": "#FB6324",
"iconPath": "img/shouye.png",
"selectedIconPath": "img/shouyeactive.png"
},
{
"pagePath": "pages/kind/kind",
"text": "分类",
"selectedColor": "#FB6324",
"iconPath": "img/kind.png",
"selectedIconPath": "img/kindactive.png"
},
{
"pagePath": "pages/cart/cart",
"text": "购物车",
"selectedColor": "#FB6324",
"iconPath": "img/cart.png",
"selectedIconPath": "img/cartactive.png"
},
{
"pagePath": "pages/mine/mine",
"text": "我的",
"selectedColor": "#FB6324",
"iconPath": "img/mine.png",
"selectedIconPath": "img/mineactive.png"
}
]
}
"sitemapLocation": "sitemap.json"
}
\ No newline at end of file
... ...
/**app.wxss**/
page{
page {
background: #fff;
}
.container {
height: 100%;
display: flex;
... ... @@ -11,35 +13,37 @@ page{
padding: 200rpx 0;
box-sizing: border-box;
}
image{
width:100%;
height:100%;
image {
width: 100%;
height: 100%;
}
.anniu{
width:80rpx;
height:80rpx;
.anniu {
width: 80rpx;
height: 80rpx;
font-size: 0;
position: absolute;
left:50%;
top:50%;
transform: translate(-50%,-50%)
left: 50%;
top: 50%;
transform: translate(-50%, -50%);
}
.anniux{
width:40rpx;
height:40rpx;
.anniux {
width: 40rpx;
height: 40rpx;
font-size: 0;
position: absolute;
left:50%;
top:50%;
transform: translate(-50%,-50%)
left: 50%;
top: 50%;
transform: translate(-50%, -50%);
}
.searchsanjiao{
width:21rpx;
height:27rpx;
font-size: 0;
margin-left:8rpx;
.searchsanjiao {
width: 21rpx;
height: 27rpx;
font-size: 0;
margin-left: 8rpx;
}
.xiazairegister {
... ... @@ -60,32 +64,32 @@ image{
margin-left: 18rpx;
}
.nodata{
color:#999;
.nodata {
color: #999;
font-size: 30rpx;
text-align: center;
margin-top:260rpx;
margin-top: 260rpx;
}
.fangdaimg{
width:32rpx;
height:32rpx;
.fangdaimg {
width: 32rpx;
height: 32rpx;
font-size: 0;
position: absolute;
bottom:0;
right:0
bottom: 0;
right: 0;
}
.xuantype{
display:flex;
.xuantype {
display: flex;
align-items: center;
height:60rpx;
background: #F9F9F9;
padding-right:24rpx;
height: 60rpx;
background: #f9f9f9;
padding-right: 24rpx;
border-radius: 4rpx;
margin-left:30rpx;
margin-left: 30rpx;
}
/* 购买须知 */
.buybox {
... ... @@ -100,36 +104,41 @@ image{
color: #8c9198;
font-size: 32rpx;
text-align: center;
margin-top:20rpx;
margin-top: 20rpx;
}
.goumiatext {
text-indent: 60rpx;
margin-top:20rpx;
margin-top: 20rpx;
}
.text{
line-height: 1.5
.text {
line-height: 1.5;
}
.gouxuanleft{
width:36rpx;
height:36rpx;
font-size: 0
.gouxuanleft {
width: 36rpx;
height: 36rpx;
font-size: 0;
}
.gouxuanleft image{
width:100%;
height:100%;
.gouxuanleft image {
width: 100%;
height: 100%;
}
.gouxuanright{
color:#5B5E63;
.gouxuanright {
color: #5b5e63;
font-size: 28rpx;
margin-left:20rpx;
margin-left: 20rpx;
font-weight: bold;
}
.gouxuan{
display:flex;
.gouxuan {
display: flex;
align-items: center;
justify-content: center;
margin-top:20rpx;
margin-top: 20rpx;
}
.quebtn {
... ... @@ -142,8 +151,9 @@ image{
font-size: 32rpx;
text-align: center;
line-height: 88rpx;
margin:40rpx auto 0;
margin: 40rpx auto 0;
}
.register {
width: 100%;
height: 100%;
... ... @@ -154,3 +164,73 @@ image{
right: 0;
z-index: 999;
}
.teacherfooter {
width: 750rpx;
display: flex;
align-items: center;
justify-content: space-between;
padding: 18rpx 82rpx;
box-sizing: border-box;
position: fixed;
bottom: 0;
left: 0;
background: #fff;
border-top: 1rpx solid #f5f5f5;
}
.teacherfootitem {
display: felx;
flex-direction: column;
align-items: center;
justify-content: center;
}
.teacherfootitemtop {
width: 40rpx;
height: 40rpx;
font-size: 0;
margin: 0 auto;
}
.teacherfootname {
color: #bdc4ce;
font-size: 22rpx;
}
.selactive {
color: #fb6324;
}
/* 预约拍摄 */
.crema {
width: 95rpx;
height: 95rpx;
border-radius: 50%;
background: #fb6324;
position: fixed;
bottom: 4rpx;
left: 50%;
transform: translateX(-50%);
display: flex;
flex-direction: column;
align-items: center;
justify-content: center;
z-index: 999;
}
.cremaimg {
width: 42rpx;
height: 42rpx;
font-size: 0;
}
.yuyeu {
font-size: 20rpx;
color: #fff;
margin-top: 2rpx;
}
.cremaimgox{
width:52rpx;
}
\ No newline at end of file
... ...
... ... @@ -19,7 +19,8 @@ Page({
hebing: [],
delshow: false,
video_attr: [],
goucartid: []
goucartid: [],
footersel:3
},
/**
... ... @@ -545,6 +546,28 @@ Page({
},
// 底部导航跳转
footersel(e) {
let id = e.currentTarget.dataset.id;
if (id == 1) {
wx.navigateTo({
url: '/pages/homepage/homepage',
})
} else if (id == 2) {
wx.navigateTo({
url: '/pages/kind/kind',
})
} else if (id == 3) {
wx.navigateTo({
url: '/pages/cart/cart',
})
} else if (id == 4) {
wx.navigateTo({
url: '/pages/mine/mine',
})
}
},
/**
* 生命周期函数--监听页面初次渲染完成
*/
... ...
... ... @@ -114,3 +114,38 @@
<view class="cartfootright" bindtap="hejisuan">合并计算({{totalcartarr.length}})</view>
</view>
<!-- 底部导航 -->
<view class="teacherfooter">
<view class="teacherfootitem" bindtap="footersel" data-id="1">
<view class="teacherfootitemtop shou">
<image src="{{footersel==1?'/img/shouyeactive.png':'/img/shouye.png'}}"></image>
</view>
<view class="teacherfootname {{footersel==1?'selactive':''}}">首页</view>
</view>
<view class="teacherfootitem" bindtap="footersel" data-id="2">
<view class="teacherfootitemtop order">
<image src="{{footersel==2?'/img/kindactive.png':'/img/kind.png'}}"></image>
</view>
<view class="teacherfootname {{footersel==2?'selactive':''}}">分类</view>
</view>
<view class="teacherfootitem" bindtap="footersel" data-id="3">
<view class="teacherfootitemtop rili">
<image src=" {{footersel==3?'/img/cartactive.png':'/img/cart.png'}}"></image>
</view>
<view class="teacherfootname {{footersel==3?'selactive':''}}">购物车</view>
</view>
<view class="teacherfootitem" bindtap="footersel" data-id="4">
<view class="teacherfootitemtop show">
<image src="{{footersel==4?'/img/mineactive.png':'/img/mine.png'}}"></image>
</view>
<view class="teacherfootname {{footersel==4?'selactive':''}}">我的</view>
</view>
</view>
\ No newline at end of file
... ...
... ... @@ -196,7 +196,8 @@ Page({
paySign: res.paySign,
success: function (res) {
console.log(res)
wx.switchTab({
wx.navigateTo({
url: '/pages/mine/mine',
})
... ...
... ... @@ -66,7 +66,8 @@ Page({
that.setData({
phone:res.tel
})
wx.switchTab({
wx.navigateTo({
url: '/pages/homepage/homepage',
})
that.bangdingshouji()
... ...
... ... @@ -26,7 +26,8 @@ Page({
pic:'',
image:'',
phoneshow:false,
phonenum:''
phonenum:'',
footersel:1
},
bindPickerChange: function(e) {
console.log('picker发送选择改变,携带值为', e.detail.value)
... ... @@ -73,7 +74,8 @@ Page({
// wx.navigateTo({
// url: '/pages/videobox/videobox',
// })
wx.switchTab({
wx.navigateTo({
url: '/pages/kind/kind',
})
}
... ... @@ -236,6 +238,30 @@ Page({
})
},
// 底部导航跳转
footersel(e){
console.log(34343489)
let id=e.currentTarget.dataset.id;
console.log(id)
if(id==1){
wx.navigateTo({
url: '/pages/homepage/homepage',
})
}else if(id==2){
wx.navigateTo({
url: '/pages/kind/kind',
})
}else if(id==3){
wx.navigateTo({
url: '/pages/cart/cart',
})
}else if(id==4){
wx.navigateTo({
url: '/pages/mine/mine',
})
}
},
... ...
... ... @@ -7,7 +7,7 @@
</view>
</view>
<view class="search">
<view class="search" bindtap="gosearch">
<picker bindchange="bindPickerChange" value="{{index}}" range="{{array}}">
<!-- <view class="picker">
当前选择:{{array[index]}}
... ... @@ -23,7 +23,7 @@
<view class="picxian"></view>
<view class="searchright" bindtap="gosearch">
<view class="searchright" >
<view class="searchfightimg">
<image src="/img/sousuo.png"></image>
</view>
... ... @@ -67,14 +67,7 @@
</view>
<view class="crema" bindtap="yuyue">
<view class="cremaimg">
<image src="/img/crema.png"></image>
</view>
<view class='yuyeu'>预约</view>
<view class='yuyeu'>拍摄素材</view>
</view>
<!-- 预留电话 -->
<view class="register" wx:if="{{phoneshow}}" bindtap="hidewrap">
... ... @@ -82,9 +75,54 @@
<view class="phonewrap" catchtap='enter'>
<view class="phonename">请输入您的手机号</view>
<view class="phoneenter">
<input placeholder='请输入手机号' bindinput="enterphone" type="number"/>
<input placeholder='请输入手机号' bindinput="enterphone" type="number" />
</view>
<view class="surebtn" bindtap="surebtn">确定</view>
</view>
</view>
<view class="crema" bindtap="yuyue">
<view class="cremaimg">
<image src="/img/crema.png"></image>
</view>
<!-- <view class='yuyeu'>预约</view> -->
<view class='yuyeu'>预约拍摄</view>
</view>
<!-- 底部导航 -->
<view class="teacherfooter">
<view class="teacherfootitem" bindtap="footersel" data-id="1">
<view class="teacherfootitemtop shou">
<image src="{{footersel==1?'/img/shouyeactive.png':'/img/shouye.png'}}"></image>
</view>
<view class="teacherfootname {{footersel==1?'selactive':''}}">首页</view>
</view>
<view class="teacherfootitem" bindtap="footersel" data-id="2">
<view class="teacherfootitemtop order">
<image src="{{footersel==2?'/img/kindactive.png':'/img/kind.png'}}"></image>
</view>
<view class="teacherfootname {{footersel==2?'selactive':''}}">分类</view>
</view>
<view class="cremaimgox"></view>
<view class="teacherfootitem" bindtap="footersel" data-id="3">
<view class="teacherfootitemtop rili">
<image src=" {{footersel==3?'/img/cartactive.png':'/img/cart.png'}}"></image>
</view>
<view class="teacherfootname {{footersel==3?'selactive':''}}">购物车</view>
</view>
<view class="teacherfootitem" bindtap="footersel" data-id="4">
<view class="teacherfootitemtop show">
<image src="{{footersel==4?'/img/mineactive.png':'/img/mine.png'}}"></image>
</view>
<view class="teacherfootname {{footersel==4?'selactive':''}}">我的</view>
</view>
</view>
\ No newline at end of file
... ...
... ... @@ -35,7 +35,7 @@ page {
}
.searchright {
width:440rpx;
width:369rpx;
display: flex;
align-items: center;
margin-left: 36rpx;
... ... @@ -55,17 +55,17 @@ page {
}
.searchrightname {
width:378rpx;
width:285rpx;
margin-left: 22rpx;
color: #8c9198;
font-size: 28rpx;
font-size: 30rpx;
}
.searchrightname input{
width:100%;
}
.searchleftname {
color: #8c9198;
font-size: 28rpx;
font-size: 32rpx;
}
.searchimg {
... ... @@ -82,7 +82,7 @@ page {
.searchbox {
margin-top: 48rpx;
padding-bottom: 80rpx;
padding-bottom: 120rpx;
}
.searchvideoimg {
... ... @@ -99,23 +99,24 @@ page {
}
.crema {
width: 145rpx;
height: 145rpx;
width: 95rpx;
height: 95rpx;
border-radius: 50%;
background: #fb6324;
position: fixed;
bottom: 20rpx;
bottom: 4rpx;
left: 50%;
transform: translateX(-50%);
display: flex;
flex-direction: column;
align-items: center;
justify-content: center;
z-index:999
}
.cremaimg {
width: 60rpx;
height: 60rpx;
width: 42rpx;
height: 42rpx;
font-size: 0;
}
... ... @@ -199,8 +200,8 @@ page {
top: 8rpx;
/* transform: translate(-50%,-50%); */
/* background: url("https://areial.w.broing.cn/uploads/20191120/hand.png") center center no-repeat; */
width: 40rpx;
height: 42rpx;
width: 50rpx;
height: 48rpx;
font-size: 0;
animation: circleHide 1s ease infinite both;
}
... ...
... ... @@ -78,7 +78,8 @@ Page({
}).catch((errMsg) => {
console.log(errMsg)
wx.switchTab({
wx.navigateTo({
url: '/pages/homepage/homepage',
})
})
... ... @@ -87,7 +88,8 @@ Page({
});
} else {
console.log("未授权=====")
wx.switchTab({
wx.navigateTo({
url: '/pages/homepage/homepage',
})
}
... ...
... ... @@ -7,7 +7,8 @@ Page({
* 页面的初始数据
*/
data: {
zonelist: []
zonelist: [],
footersel:2
},
/**
... ... @@ -87,6 +88,28 @@ Page({
},
// 底部导航跳转
footersel(e) {
let id = e.currentTarget.dataset.id;
if (id == 1) {
wx.navigateTo({
url: '/pages/homepage/homepage',
})
} else if (id == 2) {
wx.navigateTo({
url: '/pages/kind/kind',
})
} else if (id == 3) {
wx.navigateTo({
url: '/pages/cart/cart',
})
} else if (id == 4) {
wx.navigateTo({
url: '/pages/mine/mine',
})
}
},
/**
* 生命周期函数--监听页面卸载
*/
... ...
<view class="kindbox" >
<view class="kindbox">
<view class="kinditem" wx:for="{{zonelist}}" wx:key="" bindtap="gopic" data-index="{{index}}" data-id="{{item.id}}" data-areaname="{{item.area_name}}">
<view class="kindtopimg">
<image src="{{item.thumbnail}}"></image>
... ... @@ -10,3 +10,48 @@
<view class="kindname">{{item.area_name}}</view>
</view>
</view>
<!-- 预约拍摄 -->
<view class="crema" bindtap="yuyue">
<view class="cremaimg">
<image src="/img/crema.png"></image>
</view>
<!-- <view class='yuyeu'>预约</view> -->
<view class='yuyeu'>预约拍摄</view>
</view>
<!-- 底部导航 -->
<view class="teacherfooter">
<view class="teacherfootitem" bindtap="footersel" data-id="1">
<view class="teacherfootitemtop shou">
<image src="{{footersel==1?'/img/shouyeactive.png':'/img/shouye.png'}}"></image>
</view>
<view class="teacherfootname {{footersel==1?'selactive':''}}">首页</view>
</view>
<view class="teacherfootitem" bindtap="footersel" data-id="2">
<view class="teacherfootitemtop order">
<image src="{{footersel==2?'/img/kindactive.png':'/img/kind.png'}}"></image>
</view>
<view class="teacherfootname {{footersel==2?'selactive':''}}">分类</view>
</view>
<view class="cremaimgox"></view>
<view class="teacherfootitem" bindtap="footersel" data-id="3">
<view class="teacherfootitemtop rili">
<image src=" {{footersel==3?'/img/cartactive.png':'/img/cart.png'}}"></image>
</view>
<view class="teacherfootname {{footersel==3?'selactive':''}}">购物车</view>
</view>
<view class="teacherfootitem" bindtap="footersel" data-id="4">
<view class="teacherfootitemtop show">
<image src="{{footersel==4?'/img/mineactive.png':'/img/mine.png'}}"></image>
</view>
<view class="teacherfootname {{footersel==4?'selactive':''}}">我的</view>
</view>
</view>
\ No newline at end of file
... ...
... ... @@ -9,7 +9,8 @@ Page({
myinfo: '',
type:'',
cancelorder:false,
kai: 1
kai: 1,
footersel:4
},
... ... @@ -19,6 +20,28 @@ Page({
onLoad: function(options) {
},
// 底部导航跳转
footersel(e) {
let id = e.currentTarget.dataset.id;
if (id == 1) {
wx.navigateTo({
url: '/pages/homepage/homepage',
})
} else if (id == 2) {
wx.navigateTo({
url: '/pages/kind/kind',
})
} else if (id == 3) {
wx.navigateTo({
url: '/pages/cart/cart',
})
} else if (id == 4) {
wx.navigateTo({
url: '/pages/mine/mine',
})
}
},
// 申请开发票
applayfapiao(){
this.setData({
... ...
... ... @@ -133,3 +133,38 @@
</view>
</view> -->
</view>
<!-- 底部导航 -->
<view class="teacherfooter">
<view class="teacherfootitem" bindtap="footersel" data-id="1">
<view class="teacherfootitemtop shou">
<image src="{{footersel==1?'/img/shouyeactive.png':'/img/shouye.png'}}"></image>
</view>
<view class="teacherfootname {{footersel==1?'selactive':''}}">首页</view>
</view>
<view class="teacherfootitem" bindtap="footersel" data-id="2">
<view class="teacherfootitemtop order">
<image src="{{footersel==2?'/img/kindactive.png':'/img/kind.png'}}"></image>
</view>
<view class="teacherfootname {{footersel==2?'selactive':''}}">分类</view>
</view>
<view class="teacherfootitem" bindtap="footersel" data-id="3">
<view class="teacherfootitemtop rili">
<image src=" {{footersel==3?'/img/cartactive.png':'/img/cart.png'}}"></image>
</view>
<view class="teacherfootname {{footersel==3?'selactive':''}}">购物车</view>
</view>
<view class="teacherfootitem" bindtap="footersel" data-id="4">
<view class="teacherfootitemtop show">
<image src="{{footersel==4?'/img/mineactive.png':'/img/mine.png'}}"></image>
</view>
<view class="teacherfootname {{footersel==4?'selactive':''}}">我的</view>
</view>
</view>
\ No newline at end of file
... ...
... ... @@ -997,7 +997,8 @@ Page({
onUnload: function() {
if (this.data.jump == 1) {
wx.switchTab({
wx.navigateTo({
url: '/pages/homepage/homepage',
})
}
... ...
... ... @@ -311,8 +311,6 @@ Page({
let that = this;
wx.downloadFile({
url: that.data.picdetail.water_url,
success: function(res) {
console.log('下载图片下载图片下载图片', res)
var tempFilePath = res.tempFilePath
... ... @@ -325,9 +323,7 @@ Page({
that.setData({
water_url: res.savedFilePath
})
console.log('123456855555555', that.data.water_url)
}, //可以将saveFilePath写入到页面数据中
fail: function(res) {
console.log('失败', res)
... ... @@ -661,7 +657,8 @@ Page({
// 加入购物车
cart() {
wx.switchTab({
wx.navigateTo({
url: '/pages/cart/cart',
})
},
... ...
... ... @@ -85,10 +85,13 @@
</view>
<!-- 搜素图片 -->
<view class="searchimglist" wx:if="{{searchresult}}">
<view class="searchimgitem" wx:for="{{searcharr}}" wx:key='' bindtap="gopic" data-id="{{item.id}}">
<view wx:for="{{searcharr}}" wx:key='' bindtap="gopic" data-id="{{item.id}}">
<view class="searchimgitem">
<image src="{{item.thumbnail}}"></image>
</view>
<view class="title">{{item.title}}</view>
</view>
</view>
<view wx:else>
<view class="picdetailbox" wx:if="{{xuzhi==false}}">
... ...
... ... @@ -363,3 +363,20 @@
.searchimglist{
margin-bottom:50rpx;
}
.title {
width: 702rpx;
height: 74rpx;
background: #fff;
line-height: 74rpx;
border-bottom-left-radius: 4rpx;
border-bottom-right-radius: 4rpx;
text-align: center;
color: #3d444d;
font-size: 28rpx;
overflow: hidden;
text-overflow: ellipsis;
white-space: nowrap;
margin-bottom: 24rpx;
margin-right: 12rpx;
}
\ No newline at end of file
... ...
... ... @@ -22,9 +22,9 @@ Page({
addressarr: [],
textarr: [],
pricearr: [],
selad:-1,
selte:-1,
selword:-1
selad: -1,
selte: -1,
selword: -1
},
... ... @@ -34,7 +34,7 @@ Page({
*/
onLoad: function(options) {
console.log(options)
if (options.index!=undefined){
if (options.index != undefined) {
this.setData({
index: options.index,
type_id: Number(options.index) + 1
... ... @@ -54,8 +54,29 @@ Page({
page: 1,
searcharr: [],
show: true,
sousuoword: true
sousuoword: true,
addressarr: [],
textarr: [],
pricearr: [],
})
this.data.address.forEach(function(value,index,array){
value.sel=false
})
this.data.text.forEach(function (value, index, array) {
value.sel = false
})
this.data.price.forEach(function (value, index, array) {
value.sel = false
})
this.setData({
address: this.data.address,
price: this.data.price,
text: this.data.text
})
console.log(this.data.address)
console.log(this.data.price)
console.log(this.data.text)
},
// 获取关键字列表
... ... @@ -89,12 +110,12 @@ Page({
newarr.push(obj)
})
that.setData({
address:that.data.address,
text:that.data.text,
price:newarr
address: that.data.address,
text: that.data.text,
price: newarr
})
console.log(that.data.address,that.data.text,that.data.price)
console.log(that.data.address, that.data.text, that.data.price)
}).catch((err) => {
... ... @@ -103,19 +124,19 @@ Page({
// 搜素地名关键字
seladdress(e) {
let that=this;
let id=e.currentTarget.dataset.id;
let index=e.currentTarget.dataset.index;
that.data.address.forEach(function(value,indexk,array){
if(id==value.id){
value.sel=!value.sel;
if(value.sel==true){
let that = this;
let id = e.currentTarget.dataset.id;
let index = e.currentTarget.dataset.index;
that.data.address.forEach(function(value, indexk, array) {
if (id == value.id) {
value.sel = !value.sel;
if (value.sel == true) {
that.data.addressarr.push(value.id)
}else{
that.data.addressarr.forEach(function(value,indexl,array){
if(id==value){
that.data.addressarr.splice(indexl,1)
} else {
that.data.addressarr.forEach(function(value, indexl, array) {
if (id == value) {
that.data.addressarr.splice(indexl, 1)
}
})
}
... ... @@ -123,23 +144,43 @@ Page({
})
that.setData({
address:that.data.address,
addressarr:that.data.addressarr
address: that.data.address,
addressarr: that.data.addressarr
})
app.globalData.addressarr = this.data.addressarr;
app.globalData.textarr = this.data.textarr;
app.globalData.pricearr = this.data.pricearr;
app.globalData.keyword = this.data.keyword;
app.globalData.type_id = this.data.type_id;
app.globalData.index = this.data.index;
wx.navigateTo({
url: '/pages/searchsecond/searchsecond',
})
// this.setData({
// page: 1,
// searcharr: [],
// sousuoword: false
// })
// this.getsousuo();
},
// 搜索内容关键词
seltext(e){
seltext(e) {
let that = this;
let id = e.currentTarget.dataset.id;
let index = e.currentTarget.dataset.index;
that.data.text.forEach(function (value, indexk, array) {
that.data.text.forEach(function(value, indexk, array) {
if (id == value.id) {
value.sel = !value.sel;
if (value.sel == true) {
that.data.textarr.push(value.id)
} else {
that.data.textarr.forEach(function (value, indexl, array) {
that.data.textarr.forEach(function(value, indexl, array) {
if (id == value) {
that.data.textarr.splice(indexl, 1)
}
... ... @@ -152,19 +193,38 @@ Page({
text: that.data.text,
textarr: that.data.textarr
})
app.globalData.addressarr = this.data.addressarr;
app.globalData.textarr = this.data.textarr;
app.globalData.pricearr = this.data.pricearr;
app.globalData.keyword = this.data.keyword;
app.globalData.type_id = this.data.type_id;
app.globalData.index = this.data.index;
wx.navigateTo({
url: '/pages/searchsecond/searchsecond',
})
// this.setData({
// page: 1,
// searcharr: [],
// sousuoword: false
// })
// this.getsousuo();
console.log(that.data.text);
console.log(that.data.textarr)
},
// 搜索价格关键词
selprice(e){
selprice(e) {
let that = this;
console.log(that.data.price)
let price=e.currentTarget.dataset.price;
let price = e.currentTarget.dataset.price;
console.log(price)
let index = e.currentTarget.dataset.index;
that.data.price.forEach(function (value, indexk, array) {
that.data.price.forEach(function(value, indexk, array) {
if (price == value.name) {
console.log(value.name)
... ... @@ -172,7 +232,7 @@ Page({
if (value.sel == true) {
that.data.pricearr.push(value.name)
} else {
that.data.pricearr.forEach(function (value, indexl, array) {
that.data.pricearr.forEach(function(value, indexl, array) {
if (price == value) {
that.data.pricearr.splice(indexl, 1)
}
... ... @@ -185,7 +245,24 @@ Page({
price: that.data.price,
pricearr: that.data.pricearr
})
app.globalData.addressarr = this.data.addressarr;
app.globalData.textarr = this.data.textarr;
app.globalData.pricearr = this.data.pricearr;
app.globalData.keyword = this.data.keyword;
app.globalData.type_id = this.data.type_id;
app.globalData.index = this.data.index;
wx.navigateTo({
url: '/pages/searchsecond/searchsecond',
})
// this.setData({
// page: 1,
// searcharr: [],
// sousuoword: false
// })
// this.getsousuo();
},
... ... @@ -213,6 +290,17 @@ Page({
},
sousuo() {
app.globalData.addressarr = this.data.addressarr;
app.globalData.textarr = this.data.textarr;
app.globalData.pricearr = this.data.pricearr;
app.globalData.keyword = this.data.keyword;
app.globalData.type_id = this.data.type_id;
app.globalData.index = this.data.index;
wx.navigateTo({
url: '/pages/searchsecond/searchsecond',
})
// if (this.data.keyword == '') {
// wx.showToast({
... ... @@ -223,13 +311,13 @@ Page({
// }
this.setData({
page: 1,
searcharr: [],
sousuoword: false
})
// this.setData({
// page: 1,
// searcharr: [],
// sousuoword: false
// })
this.getsousuo();
// this.getsousuo();
},
... ... @@ -242,9 +330,9 @@ Page({
let param = {
type_id: that.data.type_id,
keyword: that.data.keyword,
address:that.data.addressarr,
price:that.data.pricearr,
text:that.data.textarr,
address: that.data.addressarr,
price: that.data.pricearr,
text: that.data.textarr,
page: that.data.page,
pageNum: 10
}
... ... @@ -326,7 +414,26 @@ Page({
* 生命周期函数--监听页面显示
*/
onShow: function() {
this.data.address.forEach(function (value, index, array) {
value.sel = false
})
this.data.text.forEach(function (value, index, array) {
value.sel = false
})
this.data.price.forEach(function (value, index, array) {
value.sel = false
})
this.setData({
address: this.data.address,
price: this.data.price,
text: this.data.text,
keyword:'',
textarr:[],
addressarr:[],
pricearr:[],
type_id:1,
index:0
})
},
/**
... ... @@ -340,7 +447,10 @@ Page({
* 生命周期函数--监听页面卸载
*/
onUnload: function() {
// wx.redirectTo({
// url: '/pages/search/search',
// })
// wx.navigateBack
},
/**
... ... @@ -354,6 +464,7 @@ Page({
* 页面上拉触底事件的处理函数
*/
onReachBottom: function() {
if (this.data.show == false) {
let newpage = this.data.page;
newpage++;
this.setData({
... ... @@ -361,6 +472,8 @@ Page({
})
this.getsousuo()
}
},
... ...
... ... @@ -13,6 +13,7 @@
<view class="searchsanjiao">
<image src='/img/sanjiaodown.png'></image>
</view>
</view>
<!-- <view class="searchleft">
... ... @@ -31,7 +32,7 @@
<image src="/img/sousuo.png"></image>
</view>
<view class="searchrightname">
<input placeholder='不同的搜索内容用空格隔开' bindinput='enterword' bindblur='shuru' />
<input placeholder='不同的搜索内容用空格隔开' bindinput='enterword' bindblur='shuru' value="{{keyword}}"/>
</view>
</view>
</view>
... ... @@ -79,13 +80,22 @@
<view class="searchlist" wx:if="{{showlist==1}}">
<view class="searchlistbox">
<view class="searchboximg" wx:for="{{searcharr}}" wx:key='' bindtap="govideo" data-url="{{item.video}}" data-id="{{item.id}}">
<view wx:for="{{searcharr}}" wx:key='' bindtap="govideo" data-url="{{item.video}}" data-id="{{item.id}}">
<view class="searchboximg">
<image src="{{item.thumbnail}}"></image>
<view class="anniu">
<image src="/img/anniu.png"></image>
</view>
</view>
<view class="picboxname">{{item.title}}</view>
</view>
</view>
... ... @@ -97,9 +107,15 @@
<!-- 搜素图片 -->
<view class="searchimglist" wx:if="{{showlist==2}}">
<view class="searchimgitem" wx:for="{{searcharr}}" wx:key='' bindtap="gopic" data-id="{{item.id}}">
<view wx:for="{{searcharr}}" wx:key='' bindtap="gopic" data-id="{{item.id}}">
<view class="searchimgitem">
<image src="{{item.thumbnail}}"></image>
</view>
<view class="picboxname">{{item.title}}</view>
</view>
</view>
<!-- 搜素精美大片 -->
<view class="searchlist" wx:if="{{showlist==3}}">
... ... @@ -111,7 +127,9 @@
<view class="anniu">
<image src="/img/anniu.png"></image>
</view>
</view>
<view class="picboxname">{{item.title}}</view>
</view>
... ...
page{
overflow-x: hidden
}
.sousuo{
padding:0 20rpx;
display:flex;
... ... @@ -122,7 +126,7 @@
height:394rpx;
font-size: 0;
position: relative;
margin-top:24rpx;
}
.moreshuju{
display:flex;
... ... @@ -159,3 +163,22 @@
color:#fff;
}
.picboxname{
width:750rpx;
height:74rpx;
line-height: 74rpx;
border-bottom-left-radius: 4rpx;
border-bottom-right-radius: 4rpx;
background: #fff;
text-align: center;
color:#3D444D;
font-size: 28rpx;
overflow: hidden;
text-overflow: ellipsis;
white-space: nowrap;
margin-right:12rpx;
font-weight: bold;
}
\ No newline at end of file
... ...
// pages/startindex/startindex.js
const app=getApp()
Page({
/**
* 页面的初始数据
*/
data: {
thumbnail:''
},
/**
* 生命周期函数--监听页面加载
*/
onLoad: function (options) {
setTimeout(function(){
wx.redirectTo({
url: '/pages/homepage/homepage',
})
},3000)
},
getpic(){
let that = this;
var url = 'user/cover';
... ... @@ -27,9 +28,6 @@ Page({
that.setData({
thumbnail: res.thumbnail
})
}).catch((err) => {
})
... ... @@ -48,12 +46,8 @@ Page({
*/
onShow: function () {
let that=this;
that.getpic()
setTimeout(function(){
wx.switchTab({
url: '/pages/homepage/homepage',
})
},2500)
that.getpic();
},
/**
... ...
{
"usingComponents": {}
"usingComponents": {
},
"navigationStyle": "custom"
}
\ No newline at end of file
... ...
... ... @@ -126,7 +126,8 @@ Page({
// 图片详情
picdetail(e) {
console.log(e)
let id = e.currentTarget.dataset.id
let id = e.currentTarget.dataset.id;
console.log(id)
wx.navigateTo({
url: '/pages/picdetail/picdetail?id=' + id,
})
... ...
... ... @@ -156,7 +156,8 @@ Page({
// 进入购物车列表
gouwuche() {
wx.switchTab({
wx.navigateTo({
url: '/pages/cart/cart',
})
},
... ... @@ -212,7 +213,7 @@ Page({
wei: false
})
}
WxParse.wxParse('article', 'html', res.content, that, 5);
// WxParse.wxParse('article', 'html', res.content, that, 5);
}).catch((err) => {
... ...
... ... @@ -149,7 +149,8 @@
<view class="searchlist" wx:if="{{searchresult==true}}">
<view class="searchlistbox">
<view class="searchboximg" wx:for="{{searcharr}}" wx:key='' bindtap="govideo" data-url="{{item.video}}" data-id="{{item.id}}">
<view wx:for="{{searcharr}}" wx:key='' bindtap="govideo" data-url="{{item.video}}" data-id="{{item.id}}">
<view class="searchboximg">
<image src="{{item.thumbnail}}"></image>
<view class="anniu">
... ... @@ -157,9 +158,10 @@
</view>
</view>
<view class="title">{{item.title}}</view>
</view>
</view>
</view>
<view wx:else>
... ... @@ -241,9 +243,10 @@
<view class="yulanname" bindtap="shouyulan" data-url="{{videodetail.accredit}}">授权书预览</view>
</view>
<view class="pictext">
<view class="pictext" wx:for="{{videodetail.content}}" wx:key="">
{{item}}
<!-- {{videodetail.content}} -->
<template is="wxParse" data="{{wxParseData:article.nodes}}" />
<!-- <template is="wxParse" data="{{wxParseData:article.nodes}}" /> -->
</view>
</view>
... ...
@import "../search/search.wxss";
page{
overflow-x: hidden
}
.picdetailbox {
padding: 24rpx;
box-sizing: border-box;
... ... @@ -41,7 +44,7 @@
width: 175rpx;
padding: 6rpx 12rpx;
box-sizing: border-box;
background: #FB6324;
background: #fb6324;
display: flex;
align-items: center;
margin-top: 20rpx;
... ... @@ -90,10 +93,9 @@
}
.picbotname {
font-size: 22rpx;
margin-top: 6rpx;
color:#FB6324;
color: #fb6324;
}
.addcar {
... ... @@ -386,50 +388,70 @@
display: flex;
align-items: center;
}
.feihuileft{
display:flex;
align-items: center
.feihuileft {
display: flex;
align-items: center;
}
.feihuirl{
width:44rpx;
height:44rpx;
.feihuirl {
width: 44rpx;
height: 44rpx;
font-size: 0;
}
.feihuirl image{
width:100%;
height:100%;
.feihuirl image {
width: 100%;
height: 100%;
}
.feihuiright{
display:flex;
.feihuiright {
display: flex;
align-items: center;
padding: 4rpx;
box-sizing: border-box;
background: #FB6324;
background: #fb6324;
border-radius: 4rpx;
}
.feihuill{
color:#fff;
.feihuill {
color: #fff;
font-size: 28rpx;
}
.feivip{
display:flex;
justify-content: space-between
.feivip {
display: flex;
justify-content: space-between;
}
.wrodbox{
display:flex;
.wrodbox {
display: flex;
flex-wrap: wrap;
}
.worditem{
padding:12rpx 14rpx;
.worditem {
padding: 12rpx 14rpx;
box-sizing: border-box;
background: #F2F2F2;
color:#06121e;
background: #f2f2f2;
color: #06121e;
font-size: 28rpx;
margin-right:20rpx;
margin-top:20rpx;
margin-right: 20rpx;
margin-top: 20rpx;
}
.title {
width: 702rpx;
height: 74rpx;
background: #fff;
line-height: 74rpx;
border-bottom-left-radius: 4rpx;
border-bottom-right-radius: 4rpx;
text-align: center;
color: #3d444d;
font-size: 28rpx;
overflow: hidden;
text-overflow: ellipsis;
white-space: nowrap;
margin-bottom: 24rpx;
margin-right: 12rpx;
}
... ...
... ... @@ -43,7 +43,8 @@ Page({
icon: "none"
})
setTimeout(function() {
wx.switchTab({
wx.navigateTo({
url: '/pages/mine/mine',
})
// wx.navigateBack({
... ...
... ... @@ -4,13 +4,20 @@
"ignore": []
},
"setting": {
"urlCheck": false,
"urlCheck": true,
"es6": true,
"postcss": true,
"minified": true,
"newFeature": true,
"autoAudits": false,
"checkInvalidKey": true
"checkInvalidKey": true,
"checkSiteMap": true,
"uploadWithSourceMap": true,
"babelSetting": {
"ignore": [],
"disablePlugins": [],
"outputPath": ""
}
},
"compileType": "miniprogram",
"libVersion": "2.9.2",
... ...