This commit is contained in:
2020-01-08 15:18:51 +08:00
parent a342e22c8b
commit 3fcdf4ce6c
11 changed files with 30 additions and 27 deletions

View File

@@ -14,20 +14,7 @@ Page({
* 生命周期函数--监听页面加载
*/
onLoad: function(options) {
request({
url: "Goods/goodsCategoryList",
data: {
parent_id: 2
}
}).then((res) => {
// console.log(res)
this.setData({
type: res.data.result
})
this.select({detail:{id:res.data.result[0].id}})
console.log(this.data.type, 150)
})
},
select(a){
@@ -59,7 +46,20 @@ Page({
* 生命周期函数--监听页面显示
*/
onShow: function() {
request({
url: "Goods/goodsCategoryList",
data: {
parent_id: 2
}
}).then((res) => {
// console.log(res)
this.setData({
type: res.data.result
})
this.select({detail:{id:res.data.result[0].id}})
console.log(this.data.type, 150)
})
},
/**

View File

@@ -7,6 +7,12 @@ Page({
adlist:[]
},
onLoad(){
},
searchs(){
console.log(10)
},
onShow(){
request({
url:"Goods/hotGoodsList",
data:{
@@ -34,8 +40,5 @@ Page({
adlist:res.data.data
})
})
},
searchs(){
console.log(10)
}
})

View File

@@ -105,7 +105,7 @@ Page({
this.setData({
username:res.data.data.nick_name,
img:res.data.data.head_pic,
frozen_money:res.data.data.frozen_money,
frozen_money:res.data.data.user_money,
level:res.data.data.level,
yj:res.data.data.is_distribut
})

View File

@@ -1,5 +1,6 @@
.box{
@import "../../utils/wxParse/wxParse.wxss";
border-top: 1rpx solid #eaeaea;
display: flex;
flex-direction: column;

View File

@@ -1 +1 @@
.box{border-top:1rpx solid #eaeaea;display:flex;flex-direction:column;align-items:center}.box .swiper{margin-top:109rpx;width:389rpx;height:657rpx}.box .swiper .image{width:389rpx;height:549rpx}.box .title{font-size:32rpx;color:#333;margin-bottom:34rpx;width:540rpx}.box .menery{font-size:34rpx;color:#666;margin-bottom:70rpx}.box .menery>text:last-child{font-size:20rpx;margin-left:20rpx}.box .add{width:308rpx;height:98rpx;background-color:#50CA80;border-radius:49rpx;line-height:98rpx;font-size:34rpx;color:#fff;text-align:center;position:fixed;bottom:50rpx;left:221rpx}
@import "../../utils/wxParse/wxParse.wxss";.box{border-top:1rpx solid #eaeaea;display:flex;flex-direction:column;align-items:center}.box .swiper{margin-top:109rpx;width:389rpx;height:657rpx}.box .swiper .image{width:389rpx;height:549rpx}.box .title{font-size:32rpx;color:#333;margin-bottom:34rpx;width:540rpx}.box .menery{font-size:34rpx;color:#666;margin-bottom:70rpx}.box .menery>text:last-child{font-size:20rpx;margin-left:20rpx}.box .add{width:308rpx;height:98rpx;background-color:#50CA80;border-radius:49rpx;line-height:98rpx;font-size:34rpx;color:#fff;text-align:center;position:fixed;bottom:50rpx;left:221rpx}

View File

@@ -9,7 +9,7 @@
<van-popup show="{{ show}}" bind:close="onClose" custom-style="border-radius:15rpx;">
<view class="recharge">
<text>¥</text>
<input type="number" bindinput="number" />
<input type="digit" bindinput="number" />
<view bind:tap="recharge">确定</view>
</view>
</van-popup>