zhengjei #21

Manually merged
asd merged 2 commits from zhengjei into master 2019-12-16 19:57:11 +08:00
7 changed files with 82 additions and 67 deletions
Showing only changes of commit c63b86466f - Show all commits

View File

@ -1,8 +1,11 @@
Component({ Component({
properties: { properties: {},
}, data: {},
data: {
},
methods: { methods: {
} todetail() {
wx.navigateTo({
url: "/pages/product/product"
}) })
}
}
})

View File

@ -1,5 +1,5 @@
<scroll-view class="list" scroll-y="{{true}}" > <scroll-view class="list" scroll-y="{{true}}" >
<view class="commodity"> <view class="commodity" bindtap="todetail">
<view class="content"> <view class="content">
<image class="imgthumb "></image> <image class="imgthumb "></image>
<view class="introduce"> <view class="introduce">
@ -11,7 +11,7 @@
</view> </view>
</view> </view>
</view> </view>
<view class="commodity"> <view class="commodity" bindtap="todetail">
<view class="content"> <view class="content">
<image class="imgthumb "></image> <image class="imgthumb "></image>
<view class="introduce"> <view class="introduce">
@ -23,7 +23,7 @@
</view> </view>
</view> </view>
</view> </view>
<view class="commodity"> <view class="commodity" bindtap="todetail">
<view class="content"> <view class="content">
<image class="imgthumb "></image> <image class="imgthumb "></image>
<view class="introduce"> <view class="introduce">

View File

@ -1,8 +1,11 @@
Component({ Component({
properties: { properties: {},
}, data: {},
data: {
},
methods: { methods: {
todetail() {
wx.navigateTo({
url: "/pages/undetermined/undetermined"
})
}
} }
}) })

View File

@ -1,4 +1,4 @@
<view class="commodity"> <view class="commodity" bindtap="todetail">
<message></message> <message></message>
<view class="aggregate"> <view class="aggregate">
共计1件商品 合计: 共计1件商品 合计:

View File

@ -1,7 +1,7 @@
{ {
"component": true, "component": true,
"usingComponents": { "usingComponents": {
"commodity":"../commodity/index", "commodity": "../commodity",
"van-tab": "../utils/dist/tab/index", "van-tab": "../utils/dist/tab/index",
"van-tabs": "../utils/dist/tabs/index" "van-tabs": "../utils/dist/tabs/index"
} }

View File

@ -11,56 +11,65 @@ Page({
/** /**
* 生命周期函数--监听页面加载 * 生命周期函数--监听页面加载
*/ */
onLoad: function (options) { onLoad: function(options) {
}, },
chooseaddr() {
wx.navigateTo({
url: "/pages/chooseaddr/chooseaddr"
})
},
todetail() {
wx.navigateTo({
url: "/pages/product/product"
})
},
/** /**
* 生命周期函数--监听页面初次渲染完成 * 生命周期函数--监听页面初次渲染完成
*/ */
onReady: function () { onReady: function() {
}, },
/** /**
* 生命周期函数--监听页面显示 * 生命周期函数--监听页面显示
*/ */
onShow: function () { onShow: function() {
}, },
/** /**
* 生命周期函数--监听页面隐藏 * 生命周期函数--监听页面隐藏
*/ */
onHide: function () { onHide: function() {
}, },
/** /**
* 生命周期函数--监听页面卸载 * 生命周期函数--监听页面卸载
*/ */
onUnload: function () { onUnload: function() {
}, },
/** /**
* 页面相关事件处理函数--监听用户下拉动作 * 页面相关事件处理函数--监听用户下拉动作
*/ */
onPullDownRefresh: function () { onPullDownRefresh: function() {
}, },
/** /**
* 页面上拉触底事件的处理函数 * 页面上拉触底事件的处理函数
*/ */
onReachBottom: function () { onReachBottom: function() {
}, },
/** /**
* 用户点击右上角分享 * 用户点击右上角分享
*/ */
onShareAppMessage: function () { onShareAppMessage: function() {
} }
}) })

View File

@ -1,4 +1,4 @@
<view class="box"> <view class="box">
<orderchooseaddr></orderchooseaddr> <orderchooseaddr bindtap="chooseaddr"></orderchooseaddr>
<content></content> <content bindtap="todetail"></content>
</view> </view>