This commit is contained in:
asd 2019-12-16 19:56:41 +08:00
parent 74cd940235
commit c63b86466f
7 changed files with 82 additions and 67 deletions

View File

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

View File

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

View File

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

View File

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

View File

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

View File

@ -1,66 +1,75 @@
// pages/undetermined/undetermined.js
Page({
/**
* 页面的初始数据
*/
data: {
/**
* 页面的初始数据
*/
data: {
},
},
/**
* 生命周期函数--监听页面加载
*/
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">
<orderchooseaddr></orderchooseaddr>
<content></content>
<orderchooseaddr bindtap="chooseaddr"></orderchooseaddr>
<content bindtap="todetail"></content>
</view>