init
This commit is contained in:
1
wx49a18253b90a02d2/pages/product/detail.js
Normal file
1
wx49a18253b90a02d2/pages/product/detail.js
Normal file
@@ -0,0 +1 @@
|
||||
var t=getApp(),a=require("../../utils/wxb.js");Page({data:{color:"",datas:[],id:0,setting:[]},onLoad:function(t){console.log(t),a.that=this,a.style(),a.that.setData({id:t.id}),this.getDetail()},getDetail:function(i){a.that=this,a.globalData=t.globalData,wx.showLoading({title:"加载中..."}),a.Post("/api/companygw.index/detail2",{id:a.that.data.id},(function(t){wx.hideLoading(),a.that.setData({datas:t})}))},calling:function(){wx.makePhoneCall({phoneNumber:a.that.data.setting.service_tel,success:function(){console.log("拨打电话成功!")},fail:function(){console.log("拨打电话失败!")}})},onShareAppMessage:function(i){return a.that=this,a.globalData=t.globalData,{title:"企业官网",path:"/pages/product/detail?id="+a.that.data.id,success:function(t){wx.showToast({title:"已转发"})},fail:function(t){wx.showToast({title:"转发失败"})}}}});
|
||||
1
wx49a18253b90a02d2/pages/product/detail.json
Normal file
1
wx49a18253b90a02d2/pages/product/detail.json
Normal file
@@ -0,0 +1 @@
|
||||
{"usingComponents":{}}
|
||||
38
wx49a18253b90a02d2/pages/product/detail.wxml
Normal file
38
wx49a18253b90a02d2/pages/product/detail.wxml
Normal file
@@ -0,0 +1,38 @@
|
||||
<view class="page">
|
||||
<view class="item bdbt">
|
||||
<view class="lt">
|
||||
<image mode="aspectFit" src="/img/p1.png"></image>
|
||||
</view>
|
||||
<view class="rt">
|
||||
<view class="name">电商小程序</view>
|
||||
<view class="xinghao" hidden="{{datas.product.version==''?true:false}}">标准:简单</view>
|
||||
<view class="price">价格:¥<text class="money"> 2000 </text>元</view>
|
||||
</view>
|
||||
</view>
|
||||
<view class="duanluo">
|
||||
<image mode="aspectFit" src="/img/banner.png"></image>
|
||||
<text class="content">
|
||||
|
||||
电商小程序电商小程序电商小程序电商小程序电商小程序电商小程序,
|
||||
电商小程序电商小程序电商小程序电商小程序,
|
||||
电商小程序电商小程序电商小程序电商小程序电商小程序
|
||||
|
||||
|
||||
|
||||
</text>
|
||||
</view>
|
||||
</view>
|
||||
<view class="jszc">技术支持:某某科技公司</view>
|
||||
<view style="height:100rpx;"></view>
|
||||
<view class="footer">
|
||||
<navigator url="/pages/contact/liuyan">
|
||||
<view class="lt">
|
||||
<image src="/img/yj.png"></image>
|
||||
<text>在线咨询</text>
|
||||
</view>
|
||||
</navigator>
|
||||
<view bindtap="calling" class="rt" style="background:red">
|
||||
<image src="/img/tel.png"></image>
|
||||
<text>拨打电话</text>
|
||||
</view>
|
||||
</view>
|
||||
1
wx49a18253b90a02d2/pages/product/detail.wxss
Normal file
1
wx49a18253b90a02d2/pages/product/detail.wxss
Normal file
@@ -0,0 +1 @@
|
||||
.page{min-height:1000rpx;padding-bottom:20rpx;padding-top:20rpx}.duanluo{display:inline-block;line-height:30rpx;margin-left:2%;width:96%}.duanluo image{margin-top:10rpx;max-width:100%}.item{height:200rpx;margin-left:2%;margin-top:20rpx;overflow:hidden;width:96%}.item .lt{float:left;width:200rpx}.item .lt image{height:160rpx;margin-left:10rpx;margin-top:20rpx;width:180rpx}.item .rt{height:180rpx;margin-top:20rpx;width:680rpx}.item .rt .name{-webkit-box-orient:vertical;-webkit-line-clamp:1;display:-webkit-box;font-size:26rpx;height:60rpx;line-height:60rpx;overflow:hidden;text-overflow:ellipsis;word-break:break-all}.item .rt .price,.item .rt .xinghao{height:40rpx;line-height:40rpx}.price .money{color:red;font-size:26rpx;font-weight:700}
|
||||
1
wx49a18253b90a02d2/pages/product/index.js
Normal file
1
wx49a18253b90a02d2/pages/product/index.js
Normal file
@@ -0,0 +1 @@
|
||||
var t=getApp(),a=require("../../utils/wxb.js");Page({data:{color:"",datas:[],page:1,more:0,type:0,keyword:""},onShow:function(){a.that=this,a.globalData=t.globalData,this.setData({datas:[],page:1,more:0}),this.getHome()},onLoad:function(){a.that=this,a.style()},more:function(t){this.getHome()},formBindsubmit:function(t){this.setData({keyword:t.detail.value.keyword,page:1,datas:[]}),this.getHome()},getHome:function(o){a.that=this,a.globalData=t.globalData,wx.showLoading({title:"加载中..."}),a.Post("/api/companygw.index/product",{page:a.that.data.page,keyword:a.that.data.keyword},(function(t){var o=a.that.data.datas;for(var e in t.list)o.push(t.list[e]);console.log(t),wx.hideLoading(),a.that.setData({datas:o,page:a.that.data.page+1,more:t.more})}))},onShareAppMessage:function(o){return a.that=this,a.globalData=t.globalData,{title:"企业官网",path:"/pages/product/index",success:function(t){wx.showToast({title:"已转发"})},fail:function(t){wx.showToast({title:"转发失败"})}}}});
|
||||
1
wx49a18253b90a02d2/pages/product/index.json
Normal file
1
wx49a18253b90a02d2/pages/product/index.json
Normal file
@@ -0,0 +1 @@
|
||||
{"navigationBarTitleText":"产品中心","usingComponents":{}}
|
||||
92
wx49a18253b90a02d2/pages/product/index.wxml
Normal file
92
wx49a18253b90a02d2/pages/product/index.wxml
Normal file
@@ -0,0 +1,92 @@
|
||||
<view class="search">
|
||||
<form bindsubmit="formBindsubmit">
|
||||
<input name="keyword" placeholder="输入搜索产品名称"></input>
|
||||
<button formType="submit" style="background:red;">搜索</button>
|
||||
</form>
|
||||
</view>
|
||||
<view class="page">
|
||||
<navigator url="/pages/product/detail">
|
||||
<view class="item bdbt">
|
||||
<view class="lt">
|
||||
<image src="/img/p1.png"></image>
|
||||
</view>
|
||||
<view class="rt">
|
||||
<view class="name">电商小程序</view>
|
||||
<view class="xinghao" hidden="{{item.version==''?true:false}}">标准:简单</view>
|
||||
<view class="price">价格:¥<text class="money"> 2000 </text>元</view>
|
||||
</view>
|
||||
</view>
|
||||
</navigator>
|
||||
</view>
|
||||
<view class="page">
|
||||
<navigator url="/pages/product/detail">
|
||||
<view class="item bdbt">
|
||||
<view class="lt">
|
||||
<image src="/img/p1.png"></image>
|
||||
</view>
|
||||
<view class="rt">
|
||||
<view class="name">电商小程序</view>
|
||||
<view class="xinghao" hidden="{{item.version==''?true:false}}">标准:简单</view>
|
||||
<view class="price">价格:¥<text class="money"> 2000 </text>元</view>
|
||||
</view>
|
||||
</view>
|
||||
</navigator>
|
||||
</view>
|
||||
<view class="page">
|
||||
<navigator url="/pages/product/detail">
|
||||
<view class="item bdbt">
|
||||
<view class="lt">
|
||||
<image src="/img/p1.png"></image>
|
||||
</view>
|
||||
<view class="rt">
|
||||
<view class="name">电商小程序</view>
|
||||
<view class="xinghao" hidden="{{item.version==''?true:false}}">标准:简单</view>
|
||||
<view class="price">价格:¥<text class="money"> 2000 </text>元</view>
|
||||
</view>
|
||||
</view>
|
||||
</navigator>
|
||||
</view>
|
||||
<view class="page">
|
||||
<navigator url="/pages/product/detail">
|
||||
<view class="item bdbt">
|
||||
<view class="lt">
|
||||
<image src="/img/p1.png"></image>
|
||||
</view>
|
||||
<view class="rt">
|
||||
<view class="name">电商小程序</view>
|
||||
<view class="xinghao" hidden="{{item.version==''?true:false}}">标准:简单</view>
|
||||
<view class="price">价格:¥<text class="money"> 2000 </text>元</view>
|
||||
</view>
|
||||
</view>
|
||||
</navigator>
|
||||
</view>
|
||||
<view class="page">
|
||||
<navigator url="/pages/product/detail">
|
||||
<view class="item bdbt">
|
||||
<view class="lt">
|
||||
<image src="/img/p1.png"></image>
|
||||
</view>
|
||||
<view class="rt">
|
||||
<view class="name">电商小程序</view>
|
||||
<view class="xinghao" hidden="{{item.version==''?true:false}}">标准:简单</view>
|
||||
<view class="price">价格:¥<text class="money"> 2000 </text>元</view>
|
||||
</view>
|
||||
</view>
|
||||
</navigator>
|
||||
</view>
|
||||
<view class="page">
|
||||
<navigator url="/pages/product/detail">
|
||||
<view class="item bdbt">
|
||||
<view class="lt">
|
||||
<image src="/img/p1.png"></image>
|
||||
</view>
|
||||
<view class="rt">
|
||||
<view class="name">电商小程序</view>
|
||||
<view class="xinghao" hidden="{{item.version==''?true:false}}">标准:简单</view>
|
||||
<view class="price">价格:¥<text class="money"> 2000 </text>元</view>
|
||||
</view>
|
||||
</view>
|
||||
</navigator>
|
||||
</view>
|
||||
<view class="jszc">技术支持:某某科技公司</view>
|
||||
<view style="height:100rpx;"></view>
|
||||
1
wx49a18253b90a02d2/pages/product/index.wxss
Normal file
1
wx49a18253b90a02d2/pages/product/index.wxss
Normal file
@@ -0,0 +1 @@
|
||||
.item{height:200rpx;margin-left:2%;margin-top:20rpx;overflow:hidden;width:96%}.item .lt{float:left;width:200rpx}.item .lt image{height:160rpx;margin-left:10rpx;margin-top:20rpx;width:180rpx}.item .rt{height:180rpx;margin-top:20rpx;width:680rpx}.item .rt .name{-webkit-box-orient:horizontal;-webkit-line-clamp:1;display:-webkit-box;font-size:26rpx;height:60rpx;line-height:60rpx;overflow:hidden;text-overflow:ellipsis;word-break:break-all}.item .rt .price,.item .rt .xinghao{height:40rpx;line-height:40rpx}.price .money{color:red;font-size:26rpx;font-weight:700}.search{background:#fff;border-radius:20rpx;height:60rpx;margin:30rpx auto 0;overflow:hidden;width:80%}.search button{border:0;color:#fff;float:right;font-size:24rpx;height:62rpx;line-height:62rpx;width:30%}.search input{float:left;font-size:24rpx;height:60rpx;line-height:60rpx;margin-left:5%;width:60%}
|
||||
Reference in New Issue
Block a user