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

View File

@ -1,4 +1,4 @@
@import "./utils/wxParse/wxParse.wxss"
/*! normalize.css v8.0.1 | MIT License | github.com/necolas/normalize.css */ /*! normalize.css v8.0.1 | MIT License | github.com/necolas/normalize.css */

View File

@ -25,11 +25,10 @@
color: #333333; color: #333333;
} }
.arrow { .arrow {
width: 14rpx; width: 21rpx;
height: 25rpx; height: 25rpx;
background-color: #999999;
margin: auto 0; margin: auto 0;
margin-left: 27rpx; margin-left: 20rpx;
} }
} }
} }

View File

@ -2,7 +2,7 @@
<view class="left">{{left}}</view> <view class="left">{{left}}</view>
<view class="right"wx:if="{{ifarrow}}" bindtap="choose"> <view class="right"wx:if="{{ifarrow}}" bindtap="choose">
<text class="shurupla1">{{right}}</text> <text class="shurupla1">{{right}}</text>
<view class="arrow"></view> <image class="arrow" src="../../../utils/img/right.png"></image>
</view> </view>
<view class="right" wx:else> <view class="right" wx:else>
<input type="text" placeholder-class="shurupla" class="shuru1" placeholder="{{right}}" value="" bindinput="get" no="0" data-left="{{left}}"/> <input type="text" placeholder-class="shurupla" class="shuru1" placeholder="{{right}}" value="" bindinput="get" no="0" data-left="{{left}}"/>

View File

@ -1 +1 @@
.shuru{width:670rpx;height:100rpx;border-bottom:2rpx solid #E8E8E8;margin:0 auto;display:flex;justify-content:space-between;line-height:100rpx;font-size:28rpx}.shuru .left{color:#333333}.shuru .right{margin:auto 0;display:flex}.shuru .right .shuru1{width:280rpx;text-align:right}.shuru .right .shurupla{color:#999999;font-size:28rpx}.shuru .right .shurupla1{color:#333333}.shuru .right .arrow{width:14rpx;height:25rpx;background-color:#999999;margin:auto 0;margin-left:27rpx} .shuru{width:670rpx;height:100rpx;border-bottom:2rpx solid #E8E8E8;margin:0 auto;display:flex;justify-content:space-between;line-height:100rpx;font-size:28rpx}.shuru .left{color:#333333}.shuru .right{margin:auto 0;display:flex}.shuru .right .shuru1{width:280rpx;text-align:right}.shuru .right .shurupla{color:#999999;font-size:28rpx}.shuru .right .shurupla1{color:#333333}.shuru .right .arrow{width:21rpx;height:25rpx;margin:auto 0;margin-left:20rpx}

View File

@ -14,20 +14,7 @@ Page({
* 生命周期函数--监听页面加载 * 生命周期函数--监听页面加载
*/ */
onLoad: function(options) { 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){ select(a){
@ -59,7 +46,20 @@ Page({
* 生命周期函数--监听页面显示 * 生命周期函数--监听页面显示
*/ */
onShow: function() { 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:[] adlist:[]
}, },
onLoad(){ onLoad(){
},
searchs(){
console.log(10)
},
onShow(){
request({ request({
url:"Goods/hotGoodsList", url:"Goods/hotGoodsList",
data:{ data:{
@ -34,8 +40,5 @@ Page({
adlist:res.data.data adlist:res.data.data
}) })
}) })
},
searchs(){
console.log(10)
} }
}) })

View File

@ -105,7 +105,7 @@ Page({
this.setData({ this.setData({
username:res.data.data.nick_name, username:res.data.data.nick_name,
img:res.data.data.head_pic, 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, level:res.data.data.level,
yj:res.data.data.is_distribut yj:res.data.data.is_distribut
}) })

View File

@ -1,5 +1,6 @@
.box{ .box{
@import "../../utils/wxParse/wxParse.wxss";
border-top: 1rpx solid #eaeaea; border-top: 1rpx solid #eaeaea;
display: flex; display: flex;
flex-direction: column; 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;"> <van-popup show="{{ show}}" bind:close="onClose" custom-style="border-radius:15rpx;">
<view class="recharge"> <view class="recharge">
<text>¥</text> <text>¥</text>
<input type="number" bindinput="number" /> <input type="digit" bindinput="number" />
<view bind:tap="recharge">确定</view> <view bind:tap="recharge">确定</view>
</view> </view>
</van-popup> </van-popup>

BIN
utils/img/right.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 2.6 KiB