换ubuntu #30
144
README.md
144
README.md
@ -1,72 +1,72 @@
|
|||||||
# 德国代购小程序
|
# 德国代购小程序
|
||||||
|
|
||||||
### 目录结构
|
### 目录结构
|
||||||
- commponents 组件
|
- commponents 组件
|
||||||
- page 页面
|
- page 页面
|
||||||
- utils 插件
|
- utils 插件
|
||||||
- [bin.js](./doc/bin.md)
|
- [bin.js](./doc/bin.md)
|
||||||
- doc 文档存放
|
- doc 文档存放
|
||||||
## 页面路由
|
## 页面路由
|
||||||
- pages/index/index 首页 <br>
|
- pages/index/index 首页 <br>
|
||||||
- pages/shopping/shopping 购物车 <br>
|
- pages/shopping/shopping 购物车 <br>
|
||||||
组件
|
组件
|
||||||
- index/search 顶部搜索框
|
- index/search 顶部搜索框
|
||||||
- index/list 商品列表
|
- index/list 商品列表
|
||||||
- index/lsit/commodity 商品单条
|
- index/lsit/commodity 商品单条
|
||||||
- index/shopping/shoppingitem 购物车商品信息
|
- index/shopping/shoppingitem 购物车商品信息
|
||||||
- pages/search/search 搜索页 <br>
|
- pages/search/search 搜索页 <br>
|
||||||
组件
|
组件
|
||||||
- index/search 顶部搜索框
|
- index/search 顶部搜索框
|
||||||
- search/hot 热门上搜索列表
|
- search/hot 热门上搜索列表
|
||||||
- pages/classify/classify 分类页 <br>
|
- pages/classify/classify 分类页 <br>
|
||||||
组件
|
组件
|
||||||
- classify/list 右侧商品列表
|
- classify/list 右侧商品列表
|
||||||
- classify/navigation 左侧导航列表
|
- classify/navigation 左侧导航列表
|
||||||
- pages/product/product 商品页
|
- pages/product/product 商品页
|
||||||
- pages/personal/personal 我的页面
|
- pages/personal/personal 我的页面
|
||||||
- pages/message/message 个人信息
|
- pages/message/message 个人信息
|
||||||
- pages/orderconfirm/orderconfirm 确认订单 <br>
|
- pages/orderconfirm/orderconfirm 确认订单 <br>
|
||||||
组件
|
组件
|
||||||
- orderconfirm/agreement 同意协议
|
- orderconfirm/agreement 同意协议
|
||||||
- orderconfirm/bottom 订单确认底部
|
- orderconfirm/bottom 订单确认底部
|
||||||
- orderconfirm/chooseaddr 选择地址
|
- orderconfirm/chooseaddr 选择地址
|
||||||
- orderconfirm/chooseway 选择方式
|
- orderconfirm/chooseway 选择方式
|
||||||
- orderconfirm/ordershopinfo 顶部的商品信息
|
- orderconfirm/ordershopinfo 顶部的商品信息
|
||||||
- orderconfirm/orderyf 运费
|
- orderconfirm/orderyf 运费
|
||||||
- pages/order/order 订单列表<br>
|
- pages/order/order 订单列表<br>
|
||||||
组件
|
组件
|
||||||
- order/tab 切换列表
|
- order/tab 切换列表
|
||||||
- order/commodity 商品信息操作
|
- order/commodity 商品信息操作
|
||||||
- order/message 商品信息
|
- order/message 商品信息
|
||||||
|
|
||||||
- pages/chooseaddr/chooseaddr 选择地址 <br>
|
- pages/chooseaddr/chooseaddr 选择地址 <br>
|
||||||
- chooseaddr/address 地址列表(单个)
|
- chooseaddr/address 地址列表(单个)
|
||||||
- chooseaddr/addradd 添加按钮
|
- chooseaddr/addradd 添加按钮
|
||||||
|
|
||||||
- pages/addaddress/addaddress 添加地址 <br>
|
- pages/addaddress/addaddress 添加地址 <br>
|
||||||
- addaddress/shuru 添加地址的输入的每一项
|
- addaddress/shuru 添加地址的输入的每一项
|
||||||
- pages/particulars/particulars 待付款 <br>
|
- pages/particulars/particulars 待付款 <br>
|
||||||
- particulars/orderchooseaddr 地址
|
- particulars/orderchooseaddr 地址
|
||||||
- particulars/content 中间所有
|
- particulars/content 中间所有
|
||||||
- particulars/submit 支付
|
- particulars/submit 支付
|
||||||
- pages/undetermined/undetermined 代发货 <br>
|
- pages/undetermined/undetermined 代发货 <br>
|
||||||
- particulars/orderchooseaddr 地址
|
- particulars/orderchooseaddr 地址
|
||||||
- particulars/content 中间所有
|
- particulars/content 中间所有
|
||||||
- pages/receiving/receiving 待收货 <br>
|
- pages/receiving/receiving 待收货 <br>
|
||||||
- particulars/orderchooseaddr 地址
|
- particulars/orderchooseaddr 地址
|
||||||
- particulars/content 中间所有
|
- particulars/content 中间所有
|
||||||
- pages/status/status 物流信息 <br>
|
- pages/status/status 物流信息 <br>
|
||||||
- order/message 商品信息
|
- order/message 商品信息
|
||||||
- particulars/logistics 物流信息
|
- particulars/logistics 物流信息
|
||||||
- pages/receiving/receiving 已完成 <br>
|
- pages/receiving/receiving 已完成 <br>
|
||||||
- particulars/orderchooseaddr 地址
|
- particulars/orderchooseaddr 地址
|
||||||
- particulars/content 中间所有
|
- particulars/content 中间所有
|
||||||
- particulars/logistics 物流信息
|
- particulars/logistics 物流信息
|
||||||
- pages/sales1/sales1 退货1 <br>
|
- pages/sales1/sales1 退货1 <br>
|
||||||
- sales/merchandises 商品信息
|
- sales/merchandises 商品信息
|
||||||
- pages/sales2/sales2 退货3 <br>
|
- pages/sales2/sales2 退货3 <br>
|
||||||
- sales/merchandises 商品信息
|
- sales/merchandises 商品信息
|
||||||
|
|
||||||
- pages/member/member 会员商品 <br>
|
- pages/member/member 会员商品 <br>
|
||||||
- member/membertop 会员商品顶部的字
|
- member/membertop 会员商品顶部的字
|
||||||
- member/membershop 单个商品
|
- member/membershop 单个商品
|
||||||
|
76
app.js
76
app.js
@ -1,39 +1,39 @@
|
|||||||
//app.js
|
//app.js
|
||||||
App({
|
App({
|
||||||
onLaunch: function () {
|
onLaunch: function () {
|
||||||
// 展示本地存储能力
|
// 展示本地存储能力
|
||||||
var logs = wx.getStorageSync('logs') || []
|
var logs = wx.getStorageSync('logs') || []
|
||||||
logs.unshift(Date.now())
|
logs.unshift(Date.now())
|
||||||
wx.setStorageSync('logs', logs)
|
wx.setStorageSync('logs', logs)
|
||||||
|
|
||||||
// 登录
|
// 登录
|
||||||
wx.login({
|
wx.login({
|
||||||
success: res => {
|
success: res => {
|
||||||
// 发送 res.code 到后台换取 openId, sessionKey, unionId
|
// 发送 res.code 到后台换取 openId, sessionKey, unionId
|
||||||
}
|
}
|
||||||
})
|
})
|
||||||
// 获取用户信息
|
// 获取用户信息
|
||||||
wx.getSetting({
|
wx.getSetting({
|
||||||
success: res => {
|
success: res => {
|
||||||
if (res.authSetting['scope.userInfo']) {
|
if (res.authSetting['scope.userInfo']) {
|
||||||
// 已经授权,可以直接调用 getUserInfo 获取头像昵称,不会弹框
|
// 已经授权,可以直接调用 getUserInfo 获取头像昵称,不会弹框
|
||||||
wx.getUserInfo({
|
wx.getUserInfo({
|
||||||
success: res => {
|
success: res => {
|
||||||
// 可以将 res 发送给后台解码出 unionId
|
// 可以将 res 发送给后台解码出 unionId
|
||||||
this.globalData.userInfo = res.userInfo
|
this.globalData.userInfo = res.userInfo
|
||||||
|
|
||||||
// 由于 getUserInfo 是网络请求,可能会在 Page.onLoad 之后才返回
|
// 由于 getUserInfo 是网络请求,可能会在 Page.onLoad 之后才返回
|
||||||
// 所以此处加入 callback 以防止这种情况
|
// 所以此处加入 callback 以防止这种情况
|
||||||
if (this.userInfoReadyCallback) {
|
if (this.userInfoReadyCallback) {
|
||||||
this.userInfoReadyCallback(res)
|
this.userInfoReadyCallback(res)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
})
|
})
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
})
|
})
|
||||||
},
|
},
|
||||||
globalData: {
|
globalData: {
|
||||||
userInfo: null
|
userInfo: null
|
||||||
}
|
}
|
||||||
})
|
})
|
102
app.json
102
app.json
@ -1,52 +1,52 @@
|
|||||||
{
|
{
|
||||||
"pages": [
|
"pages": [
|
||||||
"pages/index/index",
|
"pages/index/index",
|
||||||
"pages/login/login",
|
"pages/login/login",
|
||||||
"pages/search/search",
|
"pages/search/search",
|
||||||
"pages/shopping/shopping",
|
"pages/shopping/shopping",
|
||||||
"pages/classify/classify",
|
"pages/classify/classify",
|
||||||
"pages/product/product",
|
"pages/product/product",
|
||||||
"pages/personal/personal",
|
"pages/personal/personal",
|
||||||
"pages/message/message",
|
"pages/message/message",
|
||||||
"pages/orderconfirm/orderconfirm",
|
"pages/orderconfirm/orderconfirm",
|
||||||
"pages/order/order",
|
"pages/order/order",
|
||||||
"pages/chooseaddr/chooseaddr",
|
"pages/chooseaddr/chooseaddr",
|
||||||
"pages/addaddress/addaddress",
|
"pages/addaddress/addaddress",
|
||||||
"pages/particulars/particulars",
|
"pages/particulars/particulars",
|
||||||
"pages/undetermined/undetermined",
|
"pages/undetermined/undetermined",
|
||||||
"pages/receiving/receiving",
|
"pages/receiving/receiving",
|
||||||
"pages/status/status",
|
"pages/status/status",
|
||||||
"pages/accomplish/accomplish",
|
"pages/accomplish/accomplish",
|
||||||
"pages/sales1/sales1",
|
"pages/sales1/sales1",
|
||||||
"pages/sales2/sales2",
|
"pages/sales2/sales2",
|
||||||
"pages/member/member",
|
"pages/member/member",
|
||||||
"pages/yue/yue",
|
"pages/yue/yue",
|
||||||
|
|
||||||
"pages/yongjin/yongjin",
|
"pages/yongjin/yongjin",
|
||||||
|
|
||||||
"pages/share/share"
|
"pages/share/share"
|
||||||
],
|
],
|
||||||
"window": {
|
"window": {
|
||||||
"backgroundTextStyle": "light",
|
"backgroundTextStyle": "light",
|
||||||
"navigationBarBackgroundColor": "#fff",
|
"navigationBarBackgroundColor": "#fff",
|
||||||
"navigationBarTitleText": "WeChat",
|
"navigationBarTitleText": "WeChat",
|
||||||
"navigationBarTextStyle": "black"
|
"navigationBarTextStyle": "black"
|
||||||
},
|
},
|
||||||
"tabBar": {
|
"tabBar": {
|
||||||
"list": [{
|
"list": [{
|
||||||
"pagePath": "pages/index/index",
|
"pagePath": "pages/index/index",
|
||||||
"text": "首页"
|
"text": "首页"
|
||||||
}, {
|
}, {
|
||||||
"pagePath": "pages/classify/classify",
|
"pagePath": "pages/classify/classify",
|
||||||
"text": "分类"
|
"text": "分类"
|
||||||
}, {
|
}, {
|
||||||
"pagePath": "pages/shopping/shopping",
|
"pagePath": "pages/shopping/shopping",
|
||||||
"text": "购物车"
|
"text": "购物车"
|
||||||
}, {
|
}, {
|
||||||
"pagePath": "pages/personal/personal",
|
"pagePath": "pages/personal/personal",
|
||||||
"text": "我的"
|
"text": "我的"
|
||||||
}]
|
}]
|
||||||
},
|
},
|
||||||
"style": "v2",
|
"style": "v2",
|
||||||
"sitemapLocation": "sitemap.json"
|
"sitemapLocation": "sitemap.json"
|
||||||
}
|
}
|
714
app.wxss
714
app.wxss
@ -1,357 +1,357 @@
|
|||||||
|
|
||||||
|
|
||||||
/*! normalize.css v8.0.1 | MIT License | github.com/necolas/normalize.css */
|
/*! normalize.css v8.0.1 | MIT License | github.com/necolas/normalize.css */
|
||||||
|
|
||||||
/* Document
|
/* Document
|
||||||
========================================================================== */
|
========================================================================== */
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* 1. Correct the line height in all browsers.
|
* 1. Correct the line height in all browsers.
|
||||||
* 2. Prevent adjustments of font size after orientation changes in iOS.
|
* 2. Prevent adjustments of font size after orientation changes in iOS.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
html {
|
html {
|
||||||
line-height: 1; /* 1 */
|
line-height: 1; /* 1 */
|
||||||
-webkit-text-size-adjust: 100%; /* 2 */
|
-webkit-text-size-adjust: 100%; /* 2 */
|
||||||
}
|
}
|
||||||
|
|
||||||
/* Sections
|
/* Sections
|
||||||
========================================================================== */
|
========================================================================== */
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Remove the margin in all browsers.
|
* Remove the margin in all browsers.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
body {
|
body {
|
||||||
margin: 0;
|
margin: 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Render the `main` element consistently in IE.
|
* Render the `main` element consistently in IE.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
main {
|
main {
|
||||||
display: block;
|
display: block;
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Correct the font size and margin on `h1` elements within `section` and
|
* Correct the font size and margin on `h1` elements within `section` and
|
||||||
* `article` contexts in Chrome, Firefox, and Safari.
|
* `article` contexts in Chrome, Firefox, and Safari.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
h1 {
|
h1 {
|
||||||
font-size: 2em;
|
font-size: 2em;
|
||||||
margin: 0.67em 0;
|
margin: 0.67em 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
/* Grouping content
|
/* Grouping content
|
||||||
========================================================================== */
|
========================================================================== */
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* 1. Add the correct box sizing in Firefox.
|
* 1. Add the correct box sizing in Firefox.
|
||||||
* 2. Show the overflow in Edge and IE.
|
* 2. Show the overflow in Edge and IE.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
hr {
|
hr {
|
||||||
box-sizing: content-box; /* 1 */
|
box-sizing: content-box; /* 1 */
|
||||||
height: 0; /* 1 */
|
height: 0; /* 1 */
|
||||||
overflow: visible; /* 2 */
|
overflow: visible; /* 2 */
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* 1. Correct the inheritance and scaling of font size in all browsers.
|
* 1. Correct the inheritance and scaling of font size in all browsers.
|
||||||
* 2. Correct the odd `em` font sizing in all browsers.
|
* 2. Correct the odd `em` font sizing in all browsers.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
pre {
|
pre {
|
||||||
font-family: monospace, monospace; /* 1 */
|
font-family: monospace, monospace; /* 1 */
|
||||||
font-size: 1em; /* 2 */
|
font-size: 1em; /* 2 */
|
||||||
}
|
}
|
||||||
|
|
||||||
/* Text-level semantics
|
/* Text-level semantics
|
||||||
========================================================================== */
|
========================================================================== */
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Remove the gray background on active links in IE 10.
|
* Remove the gray background on active links in IE 10.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
a {
|
a {
|
||||||
background-color: transparent;
|
background-color: transparent;
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* 1. Remove the bottom border in Chrome 57-
|
* 1. Remove the bottom border in Chrome 57-
|
||||||
* 2. Add the correct text decoration in Chrome, Edge, IE, Opera, and Safari.
|
* 2. Add the correct text decoration in Chrome, Edge, IE, Opera, and Safari.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
abbr[title] {
|
abbr[title] {
|
||||||
border-bottom: none; /* 1 */
|
border-bottom: none; /* 1 */
|
||||||
text-decoration: underline; /* 2 */
|
text-decoration: underline; /* 2 */
|
||||||
text-decoration: underline dotted; /* 2 */
|
text-decoration: underline dotted; /* 2 */
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Add the correct font weight in Chrome, Edge, and Safari.
|
* Add the correct font weight in Chrome, Edge, and Safari.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
b,
|
b,
|
||||||
strong {
|
strong {
|
||||||
font-weight: bolder;
|
font-weight: bolder;
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* 1. Correct the inheritance and scaling of font size in all browsers.
|
* 1. Correct the inheritance and scaling of font size in all browsers.
|
||||||
* 2. Correct the odd `em` font sizing in all browsers.
|
* 2. Correct the odd `em` font sizing in all browsers.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
code,
|
code,
|
||||||
kbd,
|
kbd,
|
||||||
samp {
|
samp {
|
||||||
font-family: monospace, monospace; /* 1 */
|
font-family: monospace, monospace; /* 1 */
|
||||||
font-size: 1em; /* 2 */
|
font-size: 1em; /* 2 */
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Add the correct font size in all browsers.
|
* Add the correct font size in all browsers.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
small {
|
small {
|
||||||
font-size: 80%;
|
font-size: 80%;
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Prevent `sub` and `sup` elements from affecting the line height in
|
* Prevent `sub` and `sup` elements from affecting the line height in
|
||||||
* all browsers.
|
* all browsers.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
sub,
|
sub,
|
||||||
sup {
|
sup {
|
||||||
font-size: 75%;
|
font-size: 75%;
|
||||||
line-height: 0;
|
line-height: 0;
|
||||||
position: relative;
|
position: relative;
|
||||||
vertical-align: baseline;
|
vertical-align: baseline;
|
||||||
}
|
}
|
||||||
|
|
||||||
sub {
|
sub {
|
||||||
bottom: -0.25em;
|
bottom: -0.25em;
|
||||||
}
|
}
|
||||||
|
|
||||||
sup {
|
sup {
|
||||||
top: -0.5em;
|
top: -0.5em;
|
||||||
}
|
}
|
||||||
|
|
||||||
/* Embedded content
|
/* Embedded content
|
||||||
========================================================================== */
|
========================================================================== */
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Remove the border on images inside links in IE 10.
|
* Remove the border on images inside links in IE 10.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
img {
|
img {
|
||||||
border-style: none;
|
border-style: none;
|
||||||
}
|
}
|
||||||
|
|
||||||
/* Forms
|
/* Forms
|
||||||
========================================================================== */
|
========================================================================== */
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* 1. Change the font styles in all browsers.
|
* 1. Change the font styles in all browsers.
|
||||||
* 2. Remove the margin in Firefox and Safari.
|
* 2. Remove the margin in Firefox and Safari.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
button,
|
button,
|
||||||
input,
|
input,
|
||||||
optgroup,
|
optgroup,
|
||||||
select,
|
select,
|
||||||
textarea {
|
textarea {
|
||||||
font-family: inherit; /* 1 */
|
font-family: inherit; /* 1 */
|
||||||
font-size: 100%; /* 1 */
|
font-size: 100%; /* 1 */
|
||||||
line-height: 1; /* 1 */
|
line-height: 1; /* 1 */
|
||||||
margin: 0; /* 2 */
|
margin: 0; /* 2 */
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Show the overflow in IE.
|
* Show the overflow in IE.
|
||||||
* 1. Show the overflow in Edge.
|
* 1. Show the overflow in Edge.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
button,
|
button,
|
||||||
input {
|
input {
|
||||||
/* 1 */
|
/* 1 */
|
||||||
overflow: visible;
|
overflow: visible;
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Remove the inheritance of text transform in Edge, Firefox, and IE.
|
* Remove the inheritance of text transform in Edge, Firefox, and IE.
|
||||||
* 1. Remove the inheritance of text transform in Firefox.
|
* 1. Remove the inheritance of text transform in Firefox.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
button,
|
button,
|
||||||
select {
|
select {
|
||||||
/* 1 */
|
/* 1 */
|
||||||
text-transform: none;
|
text-transform: none;
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Correct the inability to style clickable types in iOS and Safari.
|
* Correct the inability to style clickable types in iOS and Safari.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
button,
|
button,
|
||||||
[type="button"],
|
[type="button"],
|
||||||
[type="reset"],
|
[type="reset"],
|
||||||
[type="submit"] {
|
[type="submit"] {
|
||||||
-webkit-appearance: button;
|
-webkit-appearance: button;
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Remove the inner border and padding in Firefox.
|
* Remove the inner border and padding in Firefox.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
button::-moz-focus-inner,
|
button::-moz-focus-inner,
|
||||||
[type="button"]::-moz-focus-inner,
|
[type="button"]::-moz-focus-inner,
|
||||||
[type="reset"]::-moz-focus-inner,
|
[type="reset"]::-moz-focus-inner,
|
||||||
[type="submit"]::-moz-focus-inner {
|
[type="submit"]::-moz-focus-inner {
|
||||||
border-style: none;
|
border-style: none;
|
||||||
padding: 0;
|
padding: 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Restore the focus styles unset by the previous rule.
|
* Restore the focus styles unset by the previous rule.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
button:-moz-focusring,
|
button:-moz-focusring,
|
||||||
[type="button"]:-moz-focusring,
|
[type="button"]:-moz-focusring,
|
||||||
[type="reset"]:-moz-focusring,
|
[type="reset"]:-moz-focusring,
|
||||||
[type="submit"]:-moz-focusring {
|
[type="submit"]:-moz-focusring {
|
||||||
outline: 1px dotted ButtonText;
|
outline: 1px dotted ButtonText;
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Correct the padding in Firefox.
|
* Correct the padding in Firefox.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
fieldset {
|
fieldset {
|
||||||
padding: 0.35em 0.75em 0.625em;
|
padding: 0.35em 0.75em 0.625em;
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* 1. Correct the text wrapping in Edge and IE.
|
* 1. Correct the text wrapping in Edge and IE.
|
||||||
* 2. Correct the color inheritance from `fieldset` elements in IE.
|
* 2. Correct the color inheritance from `fieldset` elements in IE.
|
||||||
* 3. Remove the padding so developers are not caught out when they zero out
|
* 3. Remove the padding so developers are not caught out when they zero out
|
||||||
* `fieldset` elements in all browsers.
|
* `fieldset` elements in all browsers.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
legend {
|
legend {
|
||||||
box-sizing: border-box; /* 1 */
|
box-sizing: border-box; /* 1 */
|
||||||
color: inherit; /* 2 */
|
color: inherit; /* 2 */
|
||||||
display: table; /* 1 */
|
display: table; /* 1 */
|
||||||
max-width: 100%; /* 1 */
|
max-width: 100%; /* 1 */
|
||||||
padding: 0; /* 3 */
|
padding: 0; /* 3 */
|
||||||
white-space: normal; /* 1 */
|
white-space: normal; /* 1 */
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Add the correct vertical alignment in Chrome, Firefox, and Opera.
|
* Add the correct vertical alignment in Chrome, Firefox, and Opera.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
progress {
|
progress {
|
||||||
vertical-align: baseline;
|
vertical-align: baseline;
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Remove the default vertical scrollbar in IE 10+.
|
* Remove the default vertical scrollbar in IE 10+.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
textarea {
|
textarea {
|
||||||
overflow: auto;
|
overflow: auto;
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* 1. Add the correct box sizing in IE 10.
|
* 1. Add the correct box sizing in IE 10.
|
||||||
* 2. Remove the padding in IE 10.
|
* 2. Remove the padding in IE 10.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
[type="checkbox"],
|
[type="checkbox"],
|
||||||
[type="radio"] {
|
[type="radio"] {
|
||||||
box-sizing: border-box; /* 1 */
|
box-sizing: border-box; /* 1 */
|
||||||
padding: 0; /* 2 */
|
padding: 0; /* 2 */
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Correct the cursor style of increment and decrement buttons in Chrome.
|
* Correct the cursor style of increment and decrement buttons in Chrome.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
[type="number"]::-webkit-inner-spin-button,
|
[type="number"]::-webkit-inner-spin-button,
|
||||||
[type="number"]::-webkit-outer-spin-button {
|
[type="number"]::-webkit-outer-spin-button {
|
||||||
height: auto;
|
height: auto;
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* 1. Correct the odd appearance in Chrome and Safari.
|
* 1. Correct the odd appearance in Chrome and Safari.
|
||||||
* 2. Correct the outline style in Safari.
|
* 2. Correct the outline style in Safari.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
[type="search"] {
|
[type="search"] {
|
||||||
-webkit-appearance: textfield; /* 1 */
|
-webkit-appearance: textfield; /* 1 */
|
||||||
outline-offset: -2px; /* 2 */
|
outline-offset: -2px; /* 2 */
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Remove the inner padding in Chrome and Safari on macOS.
|
* Remove the inner padding in Chrome and Safari on macOS.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
[type="search"]::-webkit-search-decoration {
|
[type="search"]::-webkit-search-decoration {
|
||||||
-webkit-appearance: none;
|
-webkit-appearance: none;
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* 1. Correct the inability to style clickable types in iOS and Safari.
|
* 1. Correct the inability to style clickable types in iOS and Safari.
|
||||||
* 2. Change font properties to `inherit` in Safari.
|
* 2. Change font properties to `inherit` in Safari.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
::-webkit-file-upload-button {
|
::-webkit-file-upload-button {
|
||||||
-webkit-appearance: button; /* 1 */
|
-webkit-appearance: button; /* 1 */
|
||||||
font: inherit; /* 2 */
|
font: inherit; /* 2 */
|
||||||
}
|
}
|
||||||
|
|
||||||
/* Interactive
|
/* Interactive
|
||||||
========================================================================== */
|
========================================================================== */
|
||||||
|
|
||||||
/*
|
/*
|
||||||
* Add the correct display in Edge, IE 10+, and Firefox.
|
* Add the correct display in Edge, IE 10+, and Firefox.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
details {
|
details {
|
||||||
display: block;
|
display: block;
|
||||||
}
|
}
|
||||||
|
|
||||||
/*
|
/*
|
||||||
* Add the correct display in all browsers.
|
* Add the correct display in all browsers.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
summary {
|
summary {
|
||||||
display: list-item;
|
display: list-item;
|
||||||
}
|
}
|
||||||
|
|
||||||
/* Misc
|
/* Misc
|
||||||
========================================================================== */
|
========================================================================== */
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Add the correct display in IE 10+.
|
* Add the correct display in IE 10+.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
template {
|
template {
|
||||||
display: none;
|
display: none;
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Add the correct display in IE 10.
|
* Add the correct display in IE 10.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
[hidden] {
|
[hidden] {
|
||||||
display: none;
|
display: none;
|
||||||
}
|
}
|
||||||
image {
|
image {
|
||||||
background-size: cover;
|
background-size: cover;
|
||||||
background-image: url("http://luyuan.tk/static/images/TIM%E5%9B%BE%E7%89%8720191214113605.jpg");
|
background-image: url("http://luyuan.tk/static/images/TIM%E5%9B%BE%E7%89%8720191214113605.jpg");
|
||||||
}
|
}
|
||||||
|
@ -1,32 +1,32 @@
|
|||||||
.shuru {
|
.shuru {
|
||||||
width: 670rpx;
|
width: 670rpx;
|
||||||
height: 100rpx;
|
height: 100rpx;
|
||||||
border-bottom: 2rpx solid #E8E8E8;
|
border-bottom: 2rpx solid #E8E8E8;
|
||||||
margin: 0 auto;
|
margin: 0 auto;
|
||||||
display: flex;
|
display: flex;
|
||||||
justify-content: space-between;
|
justify-content: space-between;
|
||||||
line-height: 100rpx;
|
line-height: 100rpx;
|
||||||
font-size: 28rpx;
|
font-size: 28rpx;
|
||||||
.left {
|
.left {
|
||||||
color: #333333;
|
color: #333333;
|
||||||
}
|
}
|
||||||
.right {
|
.right {
|
||||||
margin: auto 0;
|
margin: auto 0;
|
||||||
display: flex;
|
display: flex;
|
||||||
.shuru1 {
|
.shuru1 {
|
||||||
width: 280rpx;
|
width: 280rpx;
|
||||||
text-align: right;
|
text-align: right;
|
||||||
}
|
}
|
||||||
.shurupla {
|
.shurupla {
|
||||||
color: #999999;
|
color: #999999;
|
||||||
font-size: 28rpx;
|
font-size: 28rpx;
|
||||||
}
|
}
|
||||||
.arrow {
|
.arrow {
|
||||||
width: 14rpx;
|
width: 14rpx;
|
||||||
height: 25rpx;
|
height: 25rpx;
|
||||||
background-color: #999999;
|
background-color: #999999;
|
||||||
margin: auto 0;
|
margin: auto 0;
|
||||||
margin-left: 27rpx;
|
margin-left: 27rpx;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
@ -1,11 +1,11 @@
|
|||||||
.btn {
|
.btn {
|
||||||
width: 650rpx;
|
width: 650rpx;
|
||||||
height: 98rpx;
|
height: 98rpx;
|
||||||
background: #09BB07;
|
background: #09BB07;
|
||||||
border-radius: 10rpx;
|
border-radius: 10rpx;
|
||||||
margin: 0 auto;
|
margin: 0 auto;
|
||||||
font-size: 36rpx;
|
font-size: 36rpx;
|
||||||
color: white;
|
color: white;
|
||||||
line-height: 98rpx;
|
line-height: 98rpx;
|
||||||
text-align: center;
|
text-align: center;
|
||||||
}
|
}
|
@ -1,79 +1,79 @@
|
|||||||
.address {
|
.address {
|
||||||
width: 690rpx;
|
width: 690rpx;
|
||||||
height: 192rpx;
|
height: 192rpx;
|
||||||
border-bottom: 2rpx solid #EAEAEA;
|
border-bottom: 2rpx solid #EAEAEA;
|
||||||
display: flex;
|
display: flex;
|
||||||
justify-content: space-between;
|
justify-content: space-between;
|
||||||
padding-bottom: 27rpx;
|
padding-bottom: 27rpx;
|
||||||
;
|
;
|
||||||
.left {
|
.left {
|
||||||
width: 576rpx;
|
width: 576rpx;
|
||||||
height: 119rpx;
|
height: 119rpx;
|
||||||
.userinfo {
|
.userinfo {
|
||||||
color: #333333;
|
color: #333333;
|
||||||
font-size: 26rpx;
|
font-size: 26rpx;
|
||||||
text-indent: 16xrpx;
|
text-indent: 16xrpx;
|
||||||
margin-top: 41rpx;
|
margin-top: 41rpx;
|
||||||
display: flex;
|
display: flex;
|
||||||
justify-content: space-between;
|
justify-content: space-between;
|
||||||
.username{
|
.username{
|
||||||
display: flex;
|
display: flex;
|
||||||
flex-wrap: nowrap;
|
flex-wrap: nowrap;
|
||||||
.username1{
|
.username1{
|
||||||
width: 140rpx;
|
width: 140rpx;
|
||||||
overflow: hidden;
|
overflow: hidden;
|
||||||
}
|
}
|
||||||
.tel{
|
.tel{
|
||||||
margin-right: 6rpx;
|
margin-right: 6rpx;
|
||||||
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
.addr {
|
.addr {
|
||||||
color: #999999;
|
color: #999999;
|
||||||
font-size: 24rpx;
|
font-size: 24rpx;
|
||||||
text-indent: 30rpx;
|
text-indent: 30rpx;
|
||||||
margin-top: 32rpx;
|
margin-top: 32rpx;
|
||||||
width: 551rpx;
|
width: 551rpx;
|
||||||
margin-left: 20rpx;
|
margin-left: 20rpx;
|
||||||
// display: flex;
|
// display: flex;
|
||||||
.select {
|
.select {
|
||||||
width: 26rpx;
|
width: 26rpx;
|
||||||
height: 26rpx;
|
height: 26rpx;
|
||||||
margin: auto 0;
|
margin: auto 0;
|
||||||
border-radius: 50%;
|
border-radius: 50%;
|
||||||
background-color: #EAEAEA;
|
background-color: #EAEAEA;
|
||||||
float: left;
|
float: left;
|
||||||
margin-right: -14rpx;
|
margin-right: -14rpx;
|
||||||
|
|
||||||
}
|
}
|
||||||
.selected {
|
.selected {
|
||||||
background-color: #47C877;
|
background-color: #47C877;
|
||||||
}
|
}
|
||||||
.default {
|
.default {
|
||||||
// margin-left: 12rpx;
|
// margin-left: 12rpx;
|
||||||
font-size: 24rpx;
|
font-size: 24rpx;
|
||||||
text-indent: 16rpx;
|
text-indent: 16rpx;
|
||||||
line-height: 60rpx;
|
line-height: 60rpx;
|
||||||
float: left;
|
float: left;
|
||||||
}
|
}
|
||||||
.path {
|
.path {
|
||||||
// float: left;
|
// float: left;
|
||||||
line-height: 25rpx;
|
line-height: 25rpx;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
.line {
|
.line {
|
||||||
width: 2rpx;
|
width: 2rpx;
|
||||||
height: 75rpx;
|
height: 75rpx;
|
||||||
background: rgba(211, 211, 211, 1);
|
background: rgba(211, 211, 211, 1);
|
||||||
margin: auto 0;
|
margin: auto 0;
|
||||||
}
|
}
|
||||||
.right {
|
.right {
|
||||||
color: #666666;
|
color: #666666;
|
||||||
font-size: 24rpx;
|
font-size: 24rpx;
|
||||||
line-height: 192rpx;
|
line-height: 192rpx;
|
||||||
margin-left: 30rpx;
|
margin-left: 30rpx;
|
||||||
margin-right: 21rpx;
|
margin-right: 21rpx;
|
||||||
}
|
}
|
||||||
}
|
}
|
@ -1,14 +1,14 @@
|
|||||||
Component({
|
Component({
|
||||||
properties: {
|
properties: {
|
||||||
list:Array
|
list:Array
|
||||||
},
|
},
|
||||||
data: {},
|
data: {},
|
||||||
methods: {
|
methods: {
|
||||||
todetail(a) {
|
todetail(a) {
|
||||||
console.log(a)
|
console.log(a)
|
||||||
wx.navigateTo({
|
wx.navigateTo({
|
||||||
url: "/pages/product/product?shopid=" + a.currentTarget.dataset.id
|
url: "/pages/product/product?shopid=" + a.currentTarget.dataset.id
|
||||||
})
|
})
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
})
|
})
|
@ -1,6 +1,6 @@
|
|||||||
{
|
{
|
||||||
"component": true,
|
"component": true,
|
||||||
"usingComponents": {
|
"usingComponents": {
|
||||||
|
|
||||||
}
|
}
|
||||||
}
|
}
|
@ -1,63 +1,63 @@
|
|||||||
.list {
|
.list {
|
||||||
padding-left: 20rpx;
|
padding-left: 20rpx;
|
||||||
width: 572rpx;
|
width: 572rpx;
|
||||||
box-sizing: border-box;
|
box-sizing: border-box;
|
||||||
height: 100vh;
|
height: 100vh;
|
||||||
.commodity {
|
.commodity {
|
||||||
width: 552rpx;
|
width: 552rpx;
|
||||||
// height: 143rpx;
|
// height: 143rpx;
|
||||||
// margin-top: 32rpx;
|
// margin-top: 32rpx;
|
||||||
display: flex;
|
display: flex;
|
||||||
align-items: center;
|
align-items: center;
|
||||||
.content {
|
.content {
|
||||||
width: 552rpx;
|
width: 552rpx;
|
||||||
height: 100%;
|
height: 100%;
|
||||||
display: flex;
|
display: flex;
|
||||||
align-items: center;
|
align-items: center;
|
||||||
// box-shadow: 0 0 24rpx 0 rgba(227, 227, 227, 0.4);
|
// box-shadow: 0 0 24rpx 0 rgba(227, 227, 227, 0.4);
|
||||||
border-bottom: 2rpx solid #eaeaea;
|
border-bottom: 2rpx solid #eaeaea;
|
||||||
padding: 30rpx 0;
|
padding: 30rpx 0;
|
||||||
.imgthumb {
|
.imgthumb {
|
||||||
width: 105rpx;
|
width: 105rpx;
|
||||||
height: 105rpx;
|
height: 105rpx;
|
||||||
margin-left: 40rpx;
|
margin-left: 40rpx;
|
||||||
background-color: #333;
|
background-color: #333;
|
||||||
}
|
}
|
||||||
.introduce {
|
.introduce {
|
||||||
width: 336rpx;
|
width: 336rpx;
|
||||||
margin-left: 40rpx;
|
margin-left: 40rpx;
|
||||||
display: flex;
|
display: flex;
|
||||||
flex-direction: column;
|
flex-direction: column;
|
||||||
.towline {
|
.towline {
|
||||||
overflow: hidden;
|
overflow: hidden;
|
||||||
|
|
||||||
text-overflow: ellipsis;
|
text-overflow: ellipsis;
|
||||||
|
|
||||||
display: -webkit-box;
|
display: -webkit-box;
|
||||||
|
|
||||||
-webkit-box-orient: vertical;
|
-webkit-box-orient: vertical;
|
||||||
|
|
||||||
-webkit-line-clamp: 2;
|
-webkit-line-clamp: 2;
|
||||||
}
|
}
|
||||||
> text {
|
> text {
|
||||||
font-size: 22rpx;
|
font-size: 22rpx;
|
||||||
color: #333;
|
color: #333;
|
||||||
margin-bottom: 22rpx;
|
margin-bottom: 22rpx;
|
||||||
}
|
}
|
||||||
> view {
|
> view {
|
||||||
display: flex;
|
display: flex;
|
||||||
align-items: center;
|
align-items: center;
|
||||||
justify-content: space-between;
|
justify-content: space-between;
|
||||||
> text:first-child {
|
> text:first-child {
|
||||||
font-size: 30rpx;
|
font-size: 30rpx;
|
||||||
color: #dec499;
|
color: #dec499;
|
||||||
}
|
}
|
||||||
> text:last-child {
|
> text:last-child {
|
||||||
font-size: 22rpx;
|
font-size: 22rpx;
|
||||||
color: #999;
|
color: #999;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -1,38 +1,38 @@
|
|||||||
<scroll-view class="list" scroll-y="{{true}}" >
|
<scroll-view class="list" scroll-y="{{true}}" >
|
||||||
<view class="commodity" bindtap="todetail" wx:for="{{list}}" wx:for-index="j" wx:key="{{j}}" data-id="{{item.goods_id}}">
|
<view class="commodity" bindtap="todetail" wx:for="{{list}}" wx:for-index="j" wx:key="{{j}}" data-id="{{item.goods_id}}">
|
||||||
<view class="content">
|
<view class="content">
|
||||||
<image class="imgthumb " src="{{item.image}}"></image>
|
<image class="imgthumb " src="{{item.image}}"></image>
|
||||||
<view class="introduce">
|
<view class="introduce">
|
||||||
<text class="towline">{{item.goods_name}}</text>
|
<text class="towline">{{item.goods_name}}</text>
|
||||||
<view>
|
<view>
|
||||||
<text>¥{{item.shop_price}}</text>
|
<text>¥{{item.shop_price}}</text>
|
||||||
<text>加入购物车</text>
|
<text>加入购物车</text>
|
||||||
</view>
|
</view>
|
||||||
</view>
|
</view>
|
||||||
</view>
|
</view>
|
||||||
</view>
|
</view>
|
||||||
<!-- <view class="commodity" bindtap="todetail">
|
<!-- <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">
|
||||||
<text>产品名称产品名称产品名称产品名称产品名称产品</text>
|
<text>产品名称产品名称产品名称产品名称产品名称产品</text>
|
||||||
<view>
|
<view>
|
||||||
<text>¥657</text>
|
<text>¥657</text>
|
||||||
<text>加入购物车</text>
|
<text>加入购物车</text>
|
||||||
</view>
|
</view>
|
||||||
</view>
|
</view>
|
||||||
</view>
|
</view>
|
||||||
</view>
|
</view>
|
||||||
<view class="commodity" bindtap="todetail">
|
<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">
|
||||||
<text>产品名称产品名称产品名称产品名称产品名称产品</text>
|
<text>产品名称产品名称产品名称产品名称产品名称产品</text>
|
||||||
<view>
|
<view>
|
||||||
<text>¥657</text>
|
<text>¥657</text>
|
||||||
<text>加入购物车</text>
|
<text>加入购物车</text>
|
||||||
</view>
|
</view>
|
||||||
</view>
|
</view>
|
||||||
</view>
|
</view>
|
||||||
</view> -->
|
</view> -->
|
||||||
</scroll-view>
|
</scroll-view>
|
@ -1 +1 @@
|
|||||||
.list{padding-left:20rpx;width:572rpx;box-sizing:border-box;height:100vh}.list .commodity{width:552rpx;display:flex;align-items:center}.list .commodity .content{width:552rpx;height:100%;display:flex;align-items:center;border-bottom:2rpx solid #eaeaea;padding:30rpx 0}.list .commodity .content .imgthumb{width:105rpx;height:105rpx;margin-left:40rpx;background-color:#333}.list .commodity .content .introduce{width:336rpx;margin-left:40rpx;display:flex;flex-direction:column}.list .commodity .content .introduce .towline{overflow:hidden;text-overflow:ellipsis;display:-webkit-box;-webkit-box-orient:vertical;-webkit-line-clamp:2}.list .commodity .content .introduce>text{font-size:22rpx;color:#333;margin-bottom:22rpx}.list .commodity .content .introduce>view{display:flex;align-items:center;justify-content:space-between}.list .commodity .content .introduce>view>text:first-child{font-size:30rpx;color:#dec499}.list .commodity .content .introduce>view>text:last-child{font-size:22rpx;color:#999}
|
.list{padding-left:20rpx;width:572rpx;box-sizing:border-box;height:100vh}.list .commodity{width:552rpx;display:flex;align-items:center}.list .commodity .content{width:552rpx;height:100%;display:flex;align-items:center;border-bottom:2rpx solid #eaeaea;padding:30rpx 0}.list .commodity .content .imgthumb{width:105rpx;height:105rpx;margin-left:40rpx;background-color:#333}.list .commodity .content .introduce{width:336rpx;margin-left:40rpx;display:flex;flex-direction:column}.list .commodity .content .introduce .towline{overflow:hidden;text-overflow:ellipsis;display:-webkit-box;-webkit-box-orient:vertical;-webkit-line-clamp:2}.list .commodity .content .introduce>text{font-size:22rpx;color:#333;margin-bottom:22rpx}.list .commodity .content .introduce>view{display:flex;align-items:center;justify-content:space-between}.list .commodity .content .introduce>view>text:first-child{font-size:30rpx;color:#dec499}.list .commodity .content .introduce>view>text:last-child{font-size:22rpx;color:#999}
|
||||||
|
@ -1,18 +1,18 @@
|
|||||||
Component({
|
Component({
|
||||||
properties: {
|
properties: {
|
||||||
types: Array
|
types: Array
|
||||||
},
|
},
|
||||||
data: {
|
data: {
|
||||||
id: 0
|
id: 0
|
||||||
},
|
},
|
||||||
methods: {
|
methods: {
|
||||||
select(a) {
|
select(a) {
|
||||||
// console.log(this.data.a.target.dataset.id)
|
// console.log(this.data.a.target.dataset.id)
|
||||||
// console.log(a.target.dataset.id)
|
// console.log(a.target.dataset.id)
|
||||||
this.setData({
|
this.setData({
|
||||||
id: a.target.dataset.id
|
id: a.target.dataset.id
|
||||||
})
|
})
|
||||||
this.triggerEvent("select",{id:a.target.dataset.id})
|
this.triggerEvent("select",{id:a.target.dataset.id})
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
})
|
})
|
@ -1,6 +1,6 @@
|
|||||||
{
|
{
|
||||||
"component": true,
|
"component": true,
|
||||||
"usingComponents": {
|
"usingComponents": {
|
||||||
|
|
||||||
}
|
}
|
||||||
}
|
}
|
@ -1,20 +1,20 @@
|
|||||||
.navigation {
|
.navigation {
|
||||||
width: 188rpx;
|
width: 188rpx;
|
||||||
// margin-right: 2rpx;
|
// margin-right: 2rpx;
|
||||||
border-right: 2rpx solid #eaeaea;
|
border-right: 2rpx solid #eaeaea;
|
||||||
max-height: 100vh;
|
max-height: 100vh;
|
||||||
view{
|
view{
|
||||||
height: 97rpx;
|
height: 97rpx;
|
||||||
font-size: 28rpx;
|
font-size: 28rpx;
|
||||||
color: #333;
|
color: #333;
|
||||||
border-bottom: 2rpx solid #eaeaea;
|
border-bottom: 2rpx solid #eaeaea;
|
||||||
line-height: 97rpx;
|
line-height: 97rpx;
|
||||||
font-weight: bold;
|
font-weight: bold;
|
||||||
text-align: center;
|
text-align: center;
|
||||||
box-sizing: border-box;
|
box-sizing: border-box;
|
||||||
}
|
}
|
||||||
.on{
|
.on{
|
||||||
border-left: 5rpx solid #56CC84;
|
border-left: 5rpx solid #56CC84;
|
||||||
color:#56CC84;
|
color:#56CC84;
|
||||||
}
|
}
|
||||||
}
|
}
|
@ -1,11 +1,11 @@
|
|||||||
<scroll-view class="navigation" scroll-y="{{true}}" bind:tap="select" >
|
<scroll-view class="navigation" scroll-y="{{true}}" bind:tap="select" >
|
||||||
<view wx:for="{{types}}" data-id="{{index}}" class="{{id == index?'on' : ''}}">{{item.name}}</view>
|
<view wx:for="{{types}}" data-id="{{index}}" class="{{id == index?'on' : ''}}">{{item.name}}</view>
|
||||||
<!-- <view data-id="0" class="{{id == 0?'on' : ''}}">热门商品</view>
|
<!-- <view data-id="0" class="{{id == 0?'on' : ''}}">热门商品</view>
|
||||||
<view data-id="1" class="{{id == 1?'on' : ''}}">美容健身</view>
|
<view data-id="1" class="{{id == 1?'on' : ''}}">美容健身</view>
|
||||||
<view data-id="2" class="{{id == 2?'on' : ''}}">美容健身</view>
|
<view data-id="2" class="{{id == 2?'on' : ''}}">美容健身</view>
|
||||||
<view data-id="3" class="{{id == 3?'on' : ''}}">美容健身</view>
|
<view data-id="3" class="{{id == 3?'on' : ''}}">美容健身</view>
|
||||||
<view data-id="4" class="{{id == 4?'on' : ''}}">美容健身</view>
|
<view data-id="4" class="{{id == 4?'on' : ''}}">美容健身</view>
|
||||||
<view data-id="5" class="{{id == 5?'on' : ''}}">美容健身</view>
|
<view data-id="5" class="{{id == 5?'on' : ''}}">美容健身</view>
|
||||||
<view data-id="6" class="{{id == 6?'on' : ''}}">美容健身</view>
|
<view data-id="6" class="{{id == 6?'on' : ''}}">美容健身</view>
|
||||||
<view data-id="7" class="{{id == 7?'on' : ''}}">美容健身</view> -->
|
<view data-id="7" class="{{id == 7?'on' : ''}}">美容健身</view> -->
|
||||||
</scroll-view>
|
</scroll-view>
|
@ -1 +1 @@
|
|||||||
.navigation{width:188rpx;border-right:2rpx solid #eaeaea;max-height:100vh}.navigation view{height:97rpx;font-size:28rpx;color:#333;border-bottom:2rpx solid #eaeaea;line-height:97rpx;font-weight:bold;text-align:center;box-sizing:border-box}.navigation .on{border-left:5rpx solid #56CC84;color:#56CC84}
|
.navigation{width:188rpx;border-right:2rpx solid #eaeaea;max-height:100vh}.navigation view{height:97rpx;font-size:28rpx;color:#333;border-bottom:2rpx solid #eaeaea;line-height:97rpx;font-weight:bold;text-align:center;box-sizing:border-box}.navigation .on{border-left:5rpx solid #56CC84;color:#56CC84}
|
||||||
|
@ -1,18 +1,18 @@
|
|||||||
Component({
|
Component({
|
||||||
properties: {
|
properties: {
|
||||||
img:String,
|
img:String,
|
||||||
title:String,
|
title:String,
|
||||||
id:String,
|
id:String,
|
||||||
price:String,
|
price:String,
|
||||||
shopid:String
|
shopid:String
|
||||||
},
|
},
|
||||||
data: {},
|
data: {},
|
||||||
methods: {
|
methods: {
|
||||||
gotodetail(e) {
|
gotodetail(e) {
|
||||||
console.log(e.currentTarget.dataset.id)
|
console.log(e.currentTarget.dataset.id)
|
||||||
wx.navigateTo({
|
wx.navigateTo({
|
||||||
url: "/pages/product/product?shopid="+e.currentTarget.dataset.id
|
url: "/pages/product/product?shopid="+e.currentTarget.dataset.id
|
||||||
})
|
})
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
})
|
})
|
@ -1,3 +1,3 @@
|
|||||||
{
|
{
|
||||||
"component": true
|
"component": true
|
||||||
}
|
}
|
@ -1,58 +1,58 @@
|
|||||||
.commodity {
|
.commodity {
|
||||||
width: 623rpx;
|
width: 623rpx;
|
||||||
height: 143rpx;
|
height: 143rpx;
|
||||||
margin-top: 32rpx;
|
margin-top: 32rpx;
|
||||||
display: flex;
|
display: flex;
|
||||||
align-items: center;
|
align-items: center;
|
||||||
.content {
|
.content {
|
||||||
width: 614rpx;
|
width: 614rpx;
|
||||||
height: 100%;
|
height: 100%;
|
||||||
display: flex;
|
display: flex;
|
||||||
align-items: center;
|
align-items: center;
|
||||||
box-shadow: 0 0 24rpx 0 rgba(227, 227, 227, 0.4);
|
box-shadow: 0 0 24rpx 0 rgba(227, 227, 227, 0.4);
|
||||||
.imgthumb {
|
.imgthumb {
|
||||||
width: 105rpx;
|
width: 105rpx;
|
||||||
height: 105rpx;
|
height: 105rpx;
|
||||||
margin-left: 40rpx;
|
margin-left: 40rpx;
|
||||||
background-color: #333;
|
background-color: #333;
|
||||||
}
|
}
|
||||||
.introduce {
|
.introduce {
|
||||||
width: 410rpx;
|
width: 410rpx;
|
||||||
margin-left: 40rpx;
|
margin-left: 40rpx;
|
||||||
display: flex;
|
display: flex;
|
||||||
flex-direction: column;
|
flex-direction: column;
|
||||||
> text {
|
> text {
|
||||||
font-size: 26rpx;
|
font-size: 26rpx;
|
||||||
color: #333;
|
color: #333;
|
||||||
margin-bottom: 22rpx;
|
margin-bottom: 22rpx;
|
||||||
overflow: hidden;
|
overflow: hidden;
|
||||||
|
|
||||||
text-overflow: ellipsis;
|
text-overflow: ellipsis;
|
||||||
|
|
||||||
display: -webkit-box;
|
display: -webkit-box;
|
||||||
|
|
||||||
-webkit-box-orient: vertical;
|
-webkit-box-orient: vertical;
|
||||||
|
|
||||||
-webkit-line-clamp: 2;
|
-webkit-line-clamp: 2;
|
||||||
}
|
}
|
||||||
> view {
|
> view {
|
||||||
display: flex;
|
display: flex;
|
||||||
align-items: center;
|
align-items: center;
|
||||||
justify-content: space-between;
|
justify-content: space-between;
|
||||||
> text:first-child {
|
> text:first-child {
|
||||||
font-size: 30rpx;
|
font-size: 30rpx;
|
||||||
color: #dec499;
|
color: #dec499;
|
||||||
}
|
}
|
||||||
> text:last-child {
|
> text:last-child {
|
||||||
font-size: 22rpx;
|
font-size: 22rpx;
|
||||||
color: #999;
|
color: #999;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
.decorate {
|
.decorate {
|
||||||
width: 9rpx;
|
width: 9rpx;
|
||||||
height: 102rpx;
|
height: 102rpx;
|
||||||
background-color: #3fb66e;
|
background-color: #3fb66e;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -1,14 +1,14 @@
|
|||||||
<view class="commodity" bindtap="gotodetail" data-id="{{shopid}}">
|
<view class="commodity" bindtap="gotodetail" data-id="{{shopid}}">
|
||||||
<view class="content">
|
<view class="content">
|
||||||
<image class="imgthumb " src="{{img}}"></image>
|
<image class="imgthumb " src="{{img}}"></image>
|
||||||
<view class="introduce">
|
<view class="introduce">
|
||||||
<text class="towline">{{title}}</text>
|
<text class="towline">{{title}}</text>
|
||||||
|
|
||||||
<view>
|
<view>
|
||||||
<text>¥{{price}}</text>
|
<text>¥{{price}}</text>
|
||||||
<text>加入购物车</text>
|
<text>加入购物车</text>
|
||||||
</view>
|
</view>
|
||||||
</view>
|
</view>
|
||||||
</view>
|
</view>
|
||||||
<view class="decorate"></view>
|
<view class="decorate"></view>
|
||||||
</view>
|
</view>
|
@ -1 +1 @@
|
|||||||
.commodity{width:623rpx;height:143rpx;margin-top:32rpx;display:flex;align-items:center}.commodity .content{width:614rpx;height:100%;display:flex;align-items:center;box-shadow:0 0 24rpx 0 rgba(227,227,227,0.4)}.commodity .content .imgthumb{width:105rpx;height:105rpx;margin-left:40rpx;background-color:#333}.commodity .content .introduce{width:410rpx;margin-left:40rpx;display:flex;flex-direction:column}.commodity .content .introduce>text{font-size:26rpx;color:#333;margin-bottom:22rpx;overflow:hidden;text-overflow:ellipsis;display:-webkit-box;-webkit-box-orient:vertical;-webkit-line-clamp:2}.commodity .content .introduce>view{display:flex;align-items:center;justify-content:space-between}.commodity .content .introduce>view>text:first-child{font-size:30rpx;color:#dec499}.commodity .content .introduce>view>text:last-child{font-size:22rpx;color:#999}.commodity .decorate{width:9rpx;height:102rpx;background-color:#3fb66e}
|
.commodity{width:623rpx;height:143rpx;margin-top:32rpx;display:flex;align-items:center}.commodity .content{width:614rpx;height:100%;display:flex;align-items:center;box-shadow:0 0 24rpx 0 rgba(227,227,227,0.4)}.commodity .content .imgthumb{width:105rpx;height:105rpx;margin-left:40rpx;background-color:#333}.commodity .content .introduce{width:410rpx;margin-left:40rpx;display:flex;flex-direction:column}.commodity .content .introduce>text{font-size:26rpx;color:#333;margin-bottom:22rpx;overflow:hidden;text-overflow:ellipsis;display:-webkit-box;-webkit-box-orient:vertical;-webkit-line-clamp:2}.commodity .content .introduce>view{display:flex;align-items:center;justify-content:space-between}.commodity .content .introduce>view>text:first-child{font-size:30rpx;color:#dec499}.commodity .content .introduce>view>text:last-child{font-size:22rpx;color:#999}.commodity .decorate{width:9rpx;height:102rpx;background-color:#3fb66e}
|
||||||
|
@ -1,9 +1,9 @@
|
|||||||
Component({
|
Component({
|
||||||
properties: {
|
properties: {
|
||||||
list:Array
|
list:Array
|
||||||
},
|
},
|
||||||
data: {
|
data: {
|
||||||
},
|
},
|
||||||
methods: {
|
methods: {
|
||||||
}
|
}
|
||||||
})
|
})
|
@ -1,6 +1,6 @@
|
|||||||
{
|
{
|
||||||
"component": true,
|
"component": true,
|
||||||
"usingComponents": {
|
"usingComponents": {
|
||||||
"commodity":"./commodity/index"
|
"commodity":"./commodity/index"
|
||||||
}
|
}
|
||||||
}
|
}
|
@ -1,12 +1,12 @@
|
|||||||
.list {
|
.list {
|
||||||
width: 623rpx;
|
width: 623rpx;
|
||||||
margin-top: 36rpx;
|
margin-top: 36rpx;
|
||||||
.title {
|
.title {
|
||||||
font-size: 30rpx;
|
font-size: 30rpx;
|
||||||
color: #333;
|
color: #333;
|
||||||
font-weight: bold;
|
font-weight: bold;
|
||||||
margin-left: 32rpx;
|
margin-left: 32rpx;
|
||||||
// margin-bottom: 32rpx;
|
// margin-bottom: 32rpx;
|
||||||
}
|
}
|
||||||
|
|
||||||
}
|
}
|
@ -1,4 +1,4 @@
|
|||||||
<view class="list">
|
<view class="list">
|
||||||
<text class="title">热门商品</text>
|
<text class="title">热门商品</text>
|
||||||
<commodity wx:for="{{list}}" title="{{item.goods_name}}" price="{{item.shop_price}}" img="{{item.image}}" shopid="{{item.goods_id}}"></commodity>
|
<commodity wx:for="{{list}}" title="{{item.goods_name}}" price="{{item.shop_price}}" img="{{item.image}}" shopid="{{item.goods_id}}"></commodity>
|
||||||
</view>
|
</view>
|
@ -1 +1 @@
|
|||||||
.list{width:623rpx;margin-top:36rpx}.list .title{font-size:30rpx;color:#333;font-weight:bold;margin-left:32rpx}
|
.list{width:623rpx;margin-top:36rpx}.list .title{font-size:30rpx;color:#333;font-weight:bold;margin-left:32rpx}
|
||||||
|
@ -1,8 +1,8 @@
|
|||||||
Component({
|
Component({
|
||||||
properties: {
|
properties: {
|
||||||
},
|
},
|
||||||
data: {
|
data: {
|
||||||
},
|
},
|
||||||
methods: {
|
methods: {
|
||||||
}
|
}
|
||||||
})
|
})
|
@ -1,3 +1,3 @@
|
|||||||
{
|
{
|
||||||
"component": true
|
"component": true
|
||||||
}
|
}
|
@ -1,23 +1,23 @@
|
|||||||
.search{
|
.search{
|
||||||
width: 613rpx;
|
width: 613rpx;
|
||||||
height: 76rpx;
|
height: 76rpx;
|
||||||
margin-top: 30rpx;
|
margin-top: 30rpx;
|
||||||
box-sizing: border-box;
|
box-sizing: border-box;
|
||||||
border-radius: 15rpx;
|
border-radius: 15rpx;
|
||||||
display: flex;
|
display: flex;
|
||||||
border:1rpx solid rgba(198,198,198,1);
|
border:1rpx solid rgba(198,198,198,1);
|
||||||
>image{
|
>image{
|
||||||
width: 42rpx;
|
width: 42rpx;
|
||||||
height: 42rpx;
|
height: 42rpx;
|
||||||
background-color: #000;
|
background-color: #000;
|
||||||
margin-left: 40rpx;
|
margin-left: 40rpx;
|
||||||
margin-top: 17rpx;
|
margin-top: 17rpx;
|
||||||
}
|
}
|
||||||
>input{
|
>input{
|
||||||
height: 30rpx;
|
height: 30rpx;
|
||||||
width: 480rpx;
|
width: 480rpx;
|
||||||
margin-top: 20rpx;
|
margin-top: 20rpx;
|
||||||
margin-left: 17rpx;
|
margin-left: 17rpx;
|
||||||
font-size: 30rpx;
|
font-size: 30rpx;
|
||||||
}
|
}
|
||||||
}
|
}
|
@ -1,4 +1,4 @@
|
|||||||
<view class="search">
|
<view class="search">
|
||||||
<image></image>
|
<image></image>
|
||||||
<input type="text" placeholder="输入您要搜索的产品" />
|
<input type="text" placeholder="输入您要搜索的产品" />
|
||||||
</view>
|
</view>
|
@ -1 +1 @@
|
|||||||
.search{width:613rpx;height:76rpx;margin-top:30rpx;box-sizing:border-box;border-radius:15rpx;display:flex;border:1rpx solid #c6c6c6}.search>image{width:42rpx;height:42rpx;background-color:#000;margin-left:40rpx;margin-top:17rpx}.search>input{height:30rpx;width:480rpx;margin-top:20rpx;margin-left:17rpx;font-size:30rpx}
|
.search{width:613rpx;height:76rpx;margin-top:30rpx;box-sizing:border-box;border-radius:15rpx;display:flex;border:1rpx solid #c6c6c6}.search>image{width:42rpx;height:42rpx;background-color:#000;margin-left:40rpx;margin-top:17rpx}.search>input{height:30rpx;width:480rpx;margin-top:20rpx;margin-left:17rpx;font-size:30rpx}
|
||||||
|
@ -1,30 +1,30 @@
|
|||||||
.membershop {
|
.membershop {
|
||||||
width: 373rpx;
|
width: 373rpx;
|
||||||
height: 557rpx;
|
height: 557rpx;
|
||||||
background-color: #FBFBFB;
|
background-color: #FBFBFB;
|
||||||
.pic {
|
.pic {
|
||||||
width: 113rpx;
|
width: 113rpx;
|
||||||
height: 256rpx;
|
height: 256rpx;
|
||||||
background-color: white;
|
background-color: white;
|
||||||
margin: 0 auto;
|
margin: 0 auto;
|
||||||
position: relative;
|
position: relative;
|
||||||
top: 64rpx;
|
top: 64rpx;
|
||||||
left: 121rpx;
|
left: 121rpx;
|
||||||
}
|
}
|
||||||
.shopname {
|
.shopname {
|
||||||
width: 273rpx;
|
width: 273rpx;
|
||||||
color: #333333;
|
color: #333333;
|
||||||
font-size: 30rpx;
|
font-size: 30rpx;
|
||||||
text-align: center;
|
text-align: center;
|
||||||
position: relative;
|
position: relative;
|
||||||
top: 111rpx;
|
top: 111rpx;
|
||||||
margin: 0 auto;
|
margin: 0 auto;
|
||||||
}
|
}
|
||||||
.pri {
|
.pri {
|
||||||
position: relative;
|
position: relative;
|
||||||
top: 127rpx;
|
top: 127rpx;
|
||||||
text-align: center;
|
text-align: center;
|
||||||
font-size: 30rpx;
|
font-size: 30rpx;
|
||||||
color: #09BB07;
|
color: #09BB07;
|
||||||
}
|
}
|
||||||
}
|
}
|
@ -1,6 +1,6 @@
|
|||||||
<view class="membershop">
|
<view class="membershop">
|
||||||
<image class="pic"></image>
|
<image class="pic"></image>
|
||||||
<view class="shopname">产品名产品名产品名
|
<view class="shopname">产品名产品名产品名
|
||||||
产品名产品名</view>
|
产品名产品名</view>
|
||||||
<view class="pri">$123</view>
|
<view class="pri">$123</view>
|
||||||
</view>
|
</view>
|
@ -1,9 +1,9 @@
|
|||||||
.membertop {
|
.membertop {
|
||||||
width: 100%;
|
width: 100%;
|
||||||
height: 86rpx;
|
height: 86rpx;
|
||||||
border-top: 2rpx solid #E8E8E8;
|
border-top: 2rpx solid #E8E8E8;
|
||||||
color: #999999;
|
color: #999999;
|
||||||
font-size: 24rpx;
|
font-size: 24rpx;
|
||||||
line-height: 86rpx;
|
line-height: 86rpx;
|
||||||
text-indent: 30rpx;
|
text-indent: 30rpx;
|
||||||
}
|
}
|
@ -1,11 +1,11 @@
|
|||||||
Component({
|
Component({
|
||||||
properties: {},
|
properties: {},
|
||||||
data: {},
|
data: {},
|
||||||
methods: {
|
methods: {
|
||||||
todetail() {
|
todetail() {
|
||||||
wx.navigateTo({
|
wx.navigateTo({
|
||||||
url: "/pages/undetermined/undetermined"
|
url: "/pages/undetermined/undetermined"
|
||||||
})
|
})
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
})
|
})
|
@ -1,6 +1,6 @@
|
|||||||
{
|
{
|
||||||
"component": true,
|
"component": true,
|
||||||
"usingComponents": {
|
"usingComponents": {
|
||||||
"message":"../message/index"
|
"message":"../message/index"
|
||||||
}
|
}
|
||||||
}
|
}
|
@ -1,81 +1,81 @@
|
|||||||
.commodity {
|
.commodity {
|
||||||
margin-top: 20rpx;
|
margin-top: 20rpx;
|
||||||
background-color: #fff;
|
background-color: #fff;
|
||||||
.message {
|
.message {
|
||||||
padding: 35rpx;
|
padding: 35rpx;
|
||||||
display: flex;
|
display: flex;
|
||||||
align-items: center;
|
align-items: center;
|
||||||
border-bottom: 1rpx solid #F2F2F2;
|
border-bottom: 1rpx solid #F2F2F2;
|
||||||
.image {
|
.image {
|
||||||
width: 141rpx;
|
width: 141rpx;
|
||||||
height: 150rpx;
|
height: 150rpx;
|
||||||
background-color: #000;
|
background-color: #000;
|
||||||
margin-left: 34rpx;
|
margin-left: 34rpx;
|
||||||
}
|
}
|
||||||
.introduce {
|
.introduce {
|
||||||
margin-left: 32rpx;
|
margin-left: 32rpx;
|
||||||
height: 120rpx;
|
height: 120rpx;
|
||||||
display: flex;
|
display: flex;
|
||||||
flex-direction: column;
|
flex-direction: column;
|
||||||
justify-content: space-between;
|
justify-content: space-between;
|
||||||
width: 362rpx;
|
width: 362rpx;
|
||||||
.title {
|
.title {
|
||||||
font-size: 28rpx;
|
font-size: 28rpx;
|
||||||
color: #333;
|
color: #333;
|
||||||
}
|
}
|
||||||
.count {
|
.count {
|
||||||
font-size: 24rpx;
|
font-size: 24rpx;
|
||||||
color: #999;
|
color: #999;
|
||||||
display: flex;
|
display: flex;
|
||||||
> view {
|
> view {
|
||||||
margin-right: 27rpx;
|
margin-right: 27rpx;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
.parameter {
|
.parameter {
|
||||||
width: 150rpx;
|
width: 150rpx;
|
||||||
height: 120rpx;
|
height: 120rpx;
|
||||||
display: flex;
|
display: flex;
|
||||||
flex-direction: column;
|
flex-direction: column;
|
||||||
justify-content: space-between;
|
justify-content: space-between;
|
||||||
align-items: flex-end;
|
align-items: flex-end;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
.aggregate{
|
.aggregate{
|
||||||
display: flex;
|
display: flex;
|
||||||
box-sizing: border-box;
|
box-sizing: border-box;
|
||||||
padding: 30rpx;
|
padding: 30rpx;
|
||||||
justify-content: flex-end;
|
justify-content: flex-end;
|
||||||
font-size: 22rpx;
|
font-size: 22rpx;
|
||||||
color: #999;
|
color: #999;
|
||||||
height: 78rpx;
|
height: 78rpx;
|
||||||
border-bottom: 1rpx solid #F2F2F2;
|
border-bottom: 1rpx solid #F2F2F2;
|
||||||
|
|
||||||
>text{
|
>text{
|
||||||
color: #333;
|
color: #333;
|
||||||
margin: 0 5rpx;
|
margin: 0 5rpx;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
.operation{
|
.operation{
|
||||||
height: 84rpx;
|
height: 84rpx;
|
||||||
display: flex;
|
display: flex;
|
||||||
justify-content: flex-end;
|
justify-content: flex-end;
|
||||||
padding:0 30rpx;
|
padding:0 30rpx;
|
||||||
align-items: center;
|
align-items: center;
|
||||||
.button{
|
.button{
|
||||||
width: 133rpx;
|
width: 133rpx;
|
||||||
height: 51rpx;
|
height: 51rpx;
|
||||||
border:2rpx solid #999999;
|
border:2rpx solid #999999;
|
||||||
border-radius: 26rpx;
|
border-radius: 26rpx;
|
||||||
text-align: center;
|
text-align: center;
|
||||||
font-size: 22rpx;
|
font-size: 22rpx;
|
||||||
color:#999999;
|
color:#999999;
|
||||||
line-height: 51rpx;
|
line-height: 51rpx;
|
||||||
margin-right: 8rpx;
|
margin-right: 8rpx;
|
||||||
}
|
}
|
||||||
.hlight{
|
.hlight{
|
||||||
border:2rpx solid rgba(71,200,119,1);
|
border:2rpx solid rgba(71,200,119,1);
|
||||||
color: #47C877;
|
color: #47C877;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
@ -1,14 +1,14 @@
|
|||||||
<view class="commodity" bindtap="todetail">
|
<view class="commodity" bindtap="todetail">
|
||||||
<message></message>
|
<message></message>
|
||||||
<view class="aggregate">
|
<view class="aggregate">
|
||||||
共计1件商品 合计:
|
共计1件商品 合计:
|
||||||
<text>¥29.80</text>
|
<text>¥29.80</text>
|
||||||
(含运费¥0.00)
|
(含运费¥0.00)
|
||||||
</view>
|
</view>
|
||||||
<view class="operation">
|
<view class="operation">
|
||||||
<view class="button">评价</view>
|
<view class="button">评价</view>
|
||||||
|
|
||||||
<view class="button hlight">评价</view>
|
<view class="button hlight">评价</view>
|
||||||
|
|
||||||
</view>
|
</view>
|
||||||
</view>
|
</view>
|
@ -1 +1 @@
|
|||||||
.commodity{margin-top:20rpx;background-color:#fff}.commodity .message{padding:35rpx;display:flex;align-items:center;border-bottom:1rpx solid #F2F2F2}.commodity .message .image{width:141rpx;height:150rpx;background-color:#000;margin-left:34rpx}.commodity .message .introduce{margin-left:32rpx;height:120rpx;display:flex;flex-direction:column;justify-content:space-between;width:362rpx}.commodity .message .introduce .title{font-size:28rpx;color:#333}.commodity .message .introduce .count{font-size:24rpx;color:#999;display:flex}.commodity .message .introduce .count>view{margin-right:27rpx}.commodity .message .parameter{width:150rpx;height:120rpx;display:flex;flex-direction:column;justify-content:space-between;align-items:flex-end}.commodity .aggregate{display:flex;box-sizing:border-box;padding:30rpx;justify-content:flex-end;font-size:22rpx;color:#999;height:78rpx;border-bottom:1rpx solid #F2F2F2}.commodity .aggregate>text{color:#333;margin:0 5rpx}.commodity .operation{height:84rpx;display:flex;justify-content:flex-end;padding:0 30rpx;align-items:center}.commodity .operation .button{width:133rpx;height:51rpx;border:2rpx solid #999999;border-radius:26rpx;text-align:center;font-size:22rpx;color:#999999;line-height:51rpx;margin-right:8rpx}.commodity .operation .hlight{border:2rpx solid #47c877;color:#47C877}
|
.commodity{margin-top:20rpx;background-color:#fff}.commodity .message{padding:35rpx;display:flex;align-items:center;border-bottom:1rpx solid #F2F2F2}.commodity .message .image{width:141rpx;height:150rpx;background-color:#000;margin-left:34rpx}.commodity .message .introduce{margin-left:32rpx;height:120rpx;display:flex;flex-direction:column;justify-content:space-between;width:362rpx}.commodity .message .introduce .title{font-size:28rpx;color:#333}.commodity .message .introduce .count{font-size:24rpx;color:#999;display:flex}.commodity .message .introduce .count>view{margin-right:27rpx}.commodity .message .parameter{width:150rpx;height:120rpx;display:flex;flex-direction:column;justify-content:space-between;align-items:flex-end}.commodity .aggregate{display:flex;box-sizing:border-box;padding:30rpx;justify-content:flex-end;font-size:22rpx;color:#999;height:78rpx;border-bottom:1rpx solid #F2F2F2}.commodity .aggregate>text{color:#333;margin:0 5rpx}.commodity .operation{height:84rpx;display:flex;justify-content:flex-end;padding:0 30rpx;align-items:center}.commodity .operation .button{width:133rpx;height:51rpx;border:2rpx solid #999999;border-radius:26rpx;text-align:center;font-size:22rpx;color:#999999;line-height:51rpx;margin-right:8rpx}.commodity .operation .hlight{border:2rpx solid #47c877;color:#47C877}
|
||||||
|
@ -1,8 +1,8 @@
|
|||||||
Component({
|
Component({
|
||||||
properties: {
|
properties: {
|
||||||
},
|
},
|
||||||
data: {
|
data: {
|
||||||
},
|
},
|
||||||
methods: {
|
methods: {
|
||||||
}
|
}
|
||||||
})
|
})
|
@ -1,3 +1,3 @@
|
|||||||
{
|
{
|
||||||
"component": true
|
"component": true
|
||||||
}
|
}
|
@ -1,40 +1,40 @@
|
|||||||
.message {
|
.message {
|
||||||
padding: 35rpx;
|
padding: 35rpx;
|
||||||
display: flex;
|
display: flex;
|
||||||
align-items: center;
|
align-items: center;
|
||||||
border-bottom: 1rpx solid #F2F2F2;
|
border-bottom: 1rpx solid #F2F2F2;
|
||||||
.image {
|
.image {
|
||||||
width: 141rpx;
|
width: 141rpx;
|
||||||
height: 150rpx;
|
height: 150rpx;
|
||||||
background-color: #000;
|
background-color: #000;
|
||||||
margin-left: 34rpx;
|
margin-left: 34rpx;
|
||||||
}
|
}
|
||||||
.introduce {
|
.introduce {
|
||||||
margin-left: 32rpx;
|
margin-left: 32rpx;
|
||||||
height: 120rpx;
|
height: 120rpx;
|
||||||
display: flex;
|
display: flex;
|
||||||
flex-direction: column;
|
flex-direction: column;
|
||||||
justify-content: space-between;
|
justify-content: space-between;
|
||||||
width: 362rpx;
|
width: 362rpx;
|
||||||
.title {
|
.title {
|
||||||
font-size: 28rpx;
|
font-size: 28rpx;
|
||||||
color: #333;
|
color: #333;
|
||||||
}
|
}
|
||||||
.count {
|
.count {
|
||||||
font-size: 24rpx;
|
font-size: 24rpx;
|
||||||
color: #999;
|
color: #999;
|
||||||
display: flex;
|
display: flex;
|
||||||
> view {
|
> view {
|
||||||
margin-right: 27rpx;
|
margin-right: 27rpx;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
.parameter {
|
.parameter {
|
||||||
width: 150rpx;
|
width: 150rpx;
|
||||||
height: 120rpx;
|
height: 120rpx;
|
||||||
display: flex;
|
display: flex;
|
||||||
flex-direction: column;
|
flex-direction: column;
|
||||||
justify-content: space-between;
|
justify-content: space-between;
|
||||||
align-items: flex-end;
|
align-items: flex-end;
|
||||||
}
|
}
|
||||||
}
|
}
|
@ -1,14 +1,14 @@
|
|||||||
<view class="message">
|
<view class="message">
|
||||||
<image class="image"></image>
|
<image class="image"></image>
|
||||||
<view class="introduce">
|
<view class="introduce">
|
||||||
<view class="title">001|德国双心药房版 胶原蛋白美容口服液养颜</view>
|
<view class="title">001|德国双心药房版 胶原蛋白美容口服液养颜</view>
|
||||||
<view class="count">
|
<view class="count">
|
||||||
<view>30只</view>
|
<view>30只</view>
|
||||||
<view>1.0356kg</view>
|
<view>1.0356kg</view>
|
||||||
</view>
|
</view>
|
||||||
</view>
|
</view>
|
||||||
<view class="parameter">
|
<view class="parameter">
|
||||||
<view class="price">¥29.80</view>
|
<view class="price">¥29.80</view>
|
||||||
<view class="num">x2</view>
|
<view class="num">x2</view>
|
||||||
</view>
|
</view>
|
||||||
</view>
|
</view>
|
@ -1 +1 @@
|
|||||||
.message{padding:35rpx;display:flex;align-items:center;border-bottom:1rpx solid #F2F2F2}.message .image{width:141rpx;height:150rpx;background-color:#000;margin-left:34rpx}.message .introduce{margin-left:32rpx;height:120rpx;display:flex;flex-direction:column;justify-content:space-between;width:362rpx}.message .introduce .title{font-size:28rpx;color:#333}.message .introduce .count{font-size:24rpx;color:#999;display:flex}.message .introduce .count>view{margin-right:27rpx}.message .parameter{width:150rpx;height:120rpx;display:flex;flex-direction:column;justify-content:space-between;align-items:flex-end}
|
.message{padding:35rpx;display:flex;align-items:center;border-bottom:1rpx solid #F2F2F2}.message .image{width:141rpx;height:150rpx;background-color:#000;margin-left:34rpx}.message .introduce{margin-left:32rpx;height:120rpx;display:flex;flex-direction:column;justify-content:space-between;width:362rpx}.message .introduce .title{font-size:28rpx;color:#333}.message .introduce .count{font-size:24rpx;color:#999;display:flex}.message .introduce .count>view{margin-right:27rpx}.message .parameter{width:150rpx;height:120rpx;display:flex;flex-direction:column;justify-content:space-between;align-items:flex-end}
|
||||||
|
@ -1,8 +1,8 @@
|
|||||||
Component({
|
Component({
|
||||||
properties: {
|
properties: {
|
||||||
},
|
},
|
||||||
data: {
|
data: {
|
||||||
},
|
},
|
||||||
methods: {
|
methods: {
|
||||||
}
|
}
|
||||||
})
|
})
|
@ -1,8 +1,8 @@
|
|||||||
{
|
{
|
||||||
"component": true,
|
"component": true,
|
||||||
"usingComponents": {
|
"usingComponents": {
|
||||||
"commodity": "../commodity",
|
"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"
|
||||||
}
|
}
|
||||||
}
|
}
|
@ -1,3 +1,3 @@
|
|||||||
.tab {
|
.tab {
|
||||||
width: 750rpx;
|
width: 750rpx;
|
||||||
}
|
}
|
@ -1,9 +1,9 @@
|
|||||||
<van-tabs class="tab" swipe-threshold="5">
|
<van-tabs class="tab" swipe-threshold="5">
|
||||||
<van-tab title="待付款">
|
<van-tab title="待付款">
|
||||||
<commodity></commodity>
|
<commodity></commodity>
|
||||||
</van-tab>
|
</van-tab>
|
||||||
<van-tab title="代发货"></van-tab>
|
<van-tab title="代发货"></van-tab>
|
||||||
<van-tab title="待收货"> </van-tab>
|
<van-tab title="待收货"> </van-tab>
|
||||||
<van-tab title="已完成"> </van-tab>
|
<van-tab title="已完成"> </van-tab>
|
||||||
<van-tab title="售后"> </van-tab>
|
<van-tab title="售后"> </van-tab>
|
||||||
</van-tabs>
|
</van-tabs>
|
@ -1 +1 @@
|
|||||||
.tab{width:750rpx}
|
.tab{width:750rpx}
|
||||||
|
@ -1,19 +1,19 @@
|
|||||||
.agree {
|
.agree {
|
||||||
width: 690rpx;
|
width: 690rpx;
|
||||||
// height: 96rpx;
|
// height: 96rpx;
|
||||||
line-height: 96rpx;
|
line-height: 96rpx;
|
||||||
display: flex;
|
display: flex;
|
||||||
// border-bottom: 2rpx solid #EAEAEA;
|
// border-bottom: 2rpx solid #EAEAEA;
|
||||||
margin: 0 auto;
|
margin: 0 auto;
|
||||||
color: #999999;
|
color: #999999;
|
||||||
font-size: 26rpx;
|
font-size: 26rpx;
|
||||||
.select {
|
.select {
|
||||||
width: 26rpx;
|
width: 26rpx;
|
||||||
height: 26rpx;
|
height: 26rpx;
|
||||||
margin: auto 0;
|
margin: auto 0;
|
||||||
border-radius: 50%;
|
border-radius: 50%;
|
||||||
background-color: #EAEAEA;
|
background-color: #EAEAEA;
|
||||||
margin-right: 25rpx;
|
margin-right: 25rpx;
|
||||||
margin-left: 31rpx;
|
margin-left: 31rpx;
|
||||||
}
|
}
|
||||||
}
|
}
|
@ -1,21 +1,21 @@
|
|||||||
.bottom {
|
.bottom {
|
||||||
width: 100%;
|
width: 100%;
|
||||||
height: 99rpx;
|
height: 99rpx;
|
||||||
line-height: 99rpx;
|
line-height: 99rpx;
|
||||||
display: flex;
|
display: flex;
|
||||||
justify-content: space-between;
|
justify-content: space-between;
|
||||||
border-top: 2rpx solid #EAEAEA;
|
border-top: 2rpx solid #EAEAEA;
|
||||||
font-size: 28rpx;
|
font-size: 28rpx;
|
||||||
.left {
|
.left {
|
||||||
margin-left: 59rpx;
|
margin-left: 59rpx;
|
||||||
.pri {
|
.pri {
|
||||||
color: #E0C79D;
|
color: #E0C79D;
|
||||||
font-size: 26rpx;
|
font-size: 26rpx;
|
||||||
margin-left: 19rpx;
|
margin-left: 19rpx;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
.right {
|
.right {
|
||||||
color: #4CC97D;
|
color: #4CC97D;
|
||||||
margin-right: 38rpx;
|
margin-right: 38rpx;
|
||||||
}
|
}
|
||||||
}
|
}
|
@ -1,33 +1,33 @@
|
|||||||
.orderchooseaddr {
|
.orderchooseaddr {
|
||||||
width: 690rpx;
|
width: 690rpx;
|
||||||
height: 148rpx;
|
height: 148rpx;
|
||||||
margin: 0 auto;
|
margin: 0 auto;
|
||||||
border-bottom: 2rpx solid #EAEAEA;
|
border-bottom: 2rpx solid #EAEAEA;
|
||||||
display: flex;
|
display: flex;
|
||||||
justify-content: space-between;
|
justify-content: space-between;
|
||||||
.left {
|
.left {
|
||||||
width: 572rpx;
|
width: 572rpx;
|
||||||
height: 80rpx;
|
height: 80rpx;
|
||||||
.userinfo {
|
.userinfo {
|
||||||
color: #333333;
|
color: #333333;
|
||||||
font-size: 26rpx;
|
font-size: 26rpx;
|
||||||
text-indent: 30rpx;
|
text-indent: 30rpx;
|
||||||
margin-top: 41rpx;
|
margin-top: 41rpx;
|
||||||
display: flex;
|
display: flex;
|
||||||
justify-content: space-between;
|
justify-content: space-between;
|
||||||
}
|
}
|
||||||
.addr {
|
.addr {
|
||||||
color: #999999;
|
color: #999999;
|
||||||
font-size: 24rpx;
|
font-size: 24rpx;
|
||||||
text-indent: 30rpx;
|
text-indent: 30rpx;
|
||||||
margin-top: 32rpx;
|
margin-top: 32rpx;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
.right {
|
.right {
|
||||||
width: 17rpx;
|
width: 17rpx;
|
||||||
height: 30rpx;
|
height: 30rpx;
|
||||||
background-color: #D3D3D3;
|
background-color: #D3D3D3;
|
||||||
margin: auto 0;
|
margin: auto 0;
|
||||||
margin-right: 19rpx;
|
margin-right: 19rpx;
|
||||||
}
|
}
|
||||||
}
|
}
|
@ -1,30 +1,30 @@
|
|||||||
.chooseway {
|
.chooseway {
|
||||||
width: 690rpx;
|
width: 690rpx;
|
||||||
height: 96rpx;
|
height: 96rpx;
|
||||||
line-height: 96rpx;
|
line-height: 96rpx;
|
||||||
display: flex;
|
display: flex;
|
||||||
border-bottom: 2rpx solid #EAEAEA;
|
border-bottom: 2rpx solid #EAEAEA;
|
||||||
margin: 0 auto;
|
margin: 0 auto;
|
||||||
.item {
|
.item {
|
||||||
display: flex;
|
display: flex;
|
||||||
margin-right: 90rpx;
|
margin-right: 90rpx;
|
||||||
.select {
|
.select {
|
||||||
width: 26rpx;
|
width: 26rpx;
|
||||||
height: 26rpx;
|
height: 26rpx;
|
||||||
margin: auto 0;
|
margin: auto 0;
|
||||||
border-radius: 50%;
|
border-radius: 50%;
|
||||||
background-color: #EAEAEA;
|
background-color: #EAEAEA;
|
||||||
}
|
}
|
||||||
.selected {
|
.selected {
|
||||||
background-color: #47C877;
|
background-color: #47C877;
|
||||||
}
|
}
|
||||||
.way {
|
.way {
|
||||||
color: #333333;
|
color: #333333;
|
||||||
font-size: 26rpx;
|
font-size: 26rpx;
|
||||||
text-indent: 17rpx;
|
text-indent: 17rpx;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
.item1 {
|
.item1 {
|
||||||
margin-left: 31rpx;
|
margin-left: 31rpx;
|
||||||
}
|
}
|
||||||
}
|
}
|
@ -1,42 +1,42 @@
|
|||||||
.shopinfo {
|
.shopinfo {
|
||||||
width: 690rpx;
|
width: 690rpx;
|
||||||
height: 218rpx;
|
height: 218rpx;
|
||||||
border-bottom: 2rpx solid #EAEAEA;
|
border-bottom: 2rpx solid #EAEAEA;
|
||||||
margin: 0 auto;
|
margin: 0 auto;
|
||||||
display: flex;
|
display: flex;
|
||||||
justify-content: center;
|
justify-content: center;
|
||||||
.pic {
|
.pic {
|
||||||
width: 150rpx;
|
width: 150rpx;
|
||||||
height: 163rpx;
|
height: 163rpx;
|
||||||
background-color: #EAEAEA;
|
background-color: #EAEAEA;
|
||||||
margin-right: 40rpx;
|
margin-right: 40rpx;
|
||||||
}
|
}
|
||||||
.right {
|
.right {
|
||||||
width: 402rpx;
|
width: 402rpx;
|
||||||
display: flex;
|
display: flex;
|
||||||
flex-direction: column;
|
flex-direction: column;
|
||||||
justify-content: space-between;
|
justify-content: space-between;
|
||||||
margin-top: 6rpx;
|
margin-top: 6rpx;
|
||||||
.shopname {
|
.shopname {
|
||||||
font-size: 28rpx;
|
font-size: 28rpx;
|
||||||
font-weight: bold;
|
font-weight: bold;
|
||||||
line-height: 39rpx;
|
line-height: 39rpx;
|
||||||
}
|
}
|
||||||
.down {
|
.down {
|
||||||
margin-bottom: 50rpx;
|
margin-bottom: 50rpx;
|
||||||
display: flex;
|
display: flex;
|
||||||
justify-content: space-between;
|
justify-content: space-between;
|
||||||
.shopdesc {
|
.shopdesc {
|
||||||
color: #666666;
|
color: #666666;
|
||||||
font-size: 24rpx;
|
font-size: 24rpx;
|
||||||
.size {
|
.size {
|
||||||
margin-right: 20rpx;
|
margin-right: 20rpx;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
.pri {
|
.pri {
|
||||||
color: #E1C89F;
|
color: #E1C89F;
|
||||||
font-size: 28rpx;
|
font-size: 28rpx;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
@ -1,13 +1,13 @@
|
|||||||
<view class="shopinfo">
|
<view class="shopinfo">
|
||||||
<image class="pic"></image>
|
<image class="pic"></image>
|
||||||
<view class="right">
|
<view class="right">
|
||||||
<view class="shopname">产品产品产品产品产品产品产品产品产品产品产品产品产品</view>
|
<view class="shopname">产品产品产品产品产品产品产品产品产品产品产品产品产品</view>
|
||||||
<view class="down">
|
<view class="down">
|
||||||
<view class="shopdesc">
|
<view class="shopdesc">
|
||||||
<text class="size">规格10ml</text>
|
<text class="size">规格10ml</text>
|
||||||
<text> 0.04kg</text>
|
<text> 0.04kg</text>
|
||||||
</view>
|
</view>
|
||||||
<view class="pri">¥657</view>
|
<view class="pri">¥657</view>
|
||||||
</view>
|
</view>
|
||||||
</view>
|
</view>
|
||||||
</view>
|
</view>
|
@ -1,17 +1,17 @@
|
|||||||
.orderyf {
|
.orderyf {
|
||||||
width: 690rpx;
|
width: 690rpx;
|
||||||
height: 96rpx;
|
height: 96rpx;
|
||||||
line-height: 96rpx;
|
line-height: 96rpx;
|
||||||
display: flex;
|
display: flex;
|
||||||
border-bottom: 2rpx solid #EAEAEA;
|
border-bottom: 2rpx solid #EAEAEA;
|
||||||
margin: 0 auto;
|
margin: 0 auto;
|
||||||
justify-content: space-between;
|
justify-content: space-between;
|
||||||
font-size: 28rpx;
|
font-size: 28rpx;
|
||||||
.left {
|
.left {
|
||||||
margin-left: 31rpx
|
margin-left: 31rpx
|
||||||
}
|
}
|
||||||
.right {
|
.right {
|
||||||
margin-right: 20rpx;
|
margin-right: 20rpx;
|
||||||
;
|
;
|
||||||
}
|
}
|
||||||
}
|
}
|
@ -1,8 +1,8 @@
|
|||||||
Component({
|
Component({
|
||||||
properties: {
|
properties: {
|
||||||
},
|
},
|
||||||
data: {
|
data: {
|
||||||
},
|
},
|
||||||
methods: {
|
methods: {
|
||||||
}
|
}
|
||||||
})
|
})
|
@ -1,6 +1,6 @@
|
|||||||
{
|
{
|
||||||
"component": true,
|
"component": true,
|
||||||
"usingComponents": {
|
"usingComponents": {
|
||||||
"message":"../../order/message/index"
|
"message":"../../order/message/index"
|
||||||
}
|
}
|
||||||
}
|
}
|
@ -1,38 +1,38 @@
|
|||||||
.content {
|
.content {
|
||||||
background-color: #fff;
|
background-color: #fff;
|
||||||
width: 750rpx;
|
width: 750rpx;
|
||||||
// height: ;
|
// height: ;
|
||||||
padding-bottom: 33rpx;
|
padding-bottom: 33rpx;
|
||||||
|
|
||||||
.aggregate {
|
.aggregate {
|
||||||
display: flex;
|
display: flex;
|
||||||
box-sizing: border-box;
|
box-sizing: border-box;
|
||||||
padding: 30rpx;
|
padding: 30rpx;
|
||||||
justify-content: flex-end;
|
justify-content: flex-end;
|
||||||
font-size: 22rpx;
|
font-size: 22rpx;
|
||||||
color: #999;
|
color: #999;
|
||||||
height: 78rpx;
|
height: 78rpx;
|
||||||
border-bottom: 1rpx solid #f2f2f2;
|
border-bottom: 1rpx solid #f2f2f2;
|
||||||
|
|
||||||
> text {
|
> text {
|
||||||
color: #333;
|
color: #333;
|
||||||
margin: 0 5rpx;
|
margin: 0 5rpx;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
.message {
|
.message {
|
||||||
display: flex;
|
display: flex;
|
||||||
padding: 0 30rpx;
|
padding: 0 30rpx;
|
||||||
justify-content: space-between;
|
justify-content: space-between;
|
||||||
font-size: 26rpx;
|
font-size: 26rpx;
|
||||||
color: #333;
|
color: #333;
|
||||||
align-items: center;
|
align-items: center;
|
||||||
height: 77rpx;
|
height: 77rpx;
|
||||||
border-bottom: 1rpx solid #f2f2f2;
|
border-bottom: 1rpx solid #f2f2f2;
|
||||||
}
|
}
|
||||||
.leave {
|
.leave {
|
||||||
display: flex;
|
display: flex;
|
||||||
height: 77rpx;
|
height: 77rpx;
|
||||||
padding: 0 30rpx;
|
padding: 0 30rpx;
|
||||||
align-items: center;
|
align-items: center;
|
||||||
}
|
}
|
||||||
}
|
}
|
@ -1,24 +1,24 @@
|
|||||||
<view class="content">
|
<view class="content">
|
||||||
<message></message>
|
<message></message>
|
||||||
<view class="aggregate">
|
<view class="aggregate">
|
||||||
共计1件商品 合计:
|
共计1件商品 合计:
|
||||||
<text>¥29.80</text>
|
<text>¥29.80</text>
|
||||||
(含运费¥0.00)
|
(含运费¥0.00)
|
||||||
</view>
|
</view>
|
||||||
<view class="message">
|
<view class="message">
|
||||||
<text>订单编号</text>
|
<text>订单编号</text>
|
||||||
<text>123456789123456789</text>
|
<text>123456789123456789</text>
|
||||||
</view>
|
</view>
|
||||||
<view class="message">
|
<view class="message">
|
||||||
<text>下单时间</text>
|
<text>下单时间</text>
|
||||||
<text>2018-10-01 18:00:06</text>
|
<text>2018-10-01 18:00:06</text>
|
||||||
</view>
|
</view>
|
||||||
<view class="message">
|
<view class="message">
|
||||||
<text>配送方式</text>
|
<text>配送方式</text>
|
||||||
<text>快递 免邮</text>
|
<text>快递 免邮</text>
|
||||||
</view>
|
</view>
|
||||||
<view class="leave">
|
<view class="leave">
|
||||||
<text>备注:</text>
|
<text>备注:</text>
|
||||||
<input type="text" placeholder="填写你需要对我们说的" />
|
<input type="text" placeholder="填写你需要对我们说的" />
|
||||||
</view>
|
</view>
|
||||||
</view>
|
</view>
|
@ -1 +1 @@
|
|||||||
.content{background-color:#fff;width:750rpx;padding-bottom:33rpx}.content .aggregate{display:flex;box-sizing:border-box;padding:30rpx;justify-content:flex-end;font-size:22rpx;color:#999;height:78rpx;border-bottom:1rpx solid #f2f2f2}.content .aggregate>text{color:#333;margin:0 5rpx}.content .message{display:flex;padding:0 30rpx;justify-content:space-between;font-size:26rpx;color:#333;align-items:center;height:77rpx;border-bottom:1rpx solid #f2f2f2}.content .leave{display:flex;height:77rpx;padding:0 30rpx;align-items:center}
|
.content{background-color:#fff;width:750rpx;padding-bottom:33rpx}.content .aggregate{display:flex;box-sizing:border-box;padding:30rpx;justify-content:flex-end;font-size:22rpx;color:#999;height:78rpx;border-bottom:1rpx solid #f2f2f2}.content .aggregate>text{color:#333;margin:0 5rpx}.content .message{display:flex;padding:0 30rpx;justify-content:space-between;font-size:26rpx;color:#333;align-items:center;height:77rpx;border-bottom:1rpx solid #f2f2f2}.content .leave{display:flex;height:77rpx;padding:0 30rpx;align-items:center}
|
||||||
|
@ -1,26 +1,26 @@
|
|||||||
Component({
|
Component({
|
||||||
properties: {
|
properties: {
|
||||||
},
|
},
|
||||||
data: {
|
data: {
|
||||||
steps: [
|
steps: [
|
||||||
{
|
{
|
||||||
text: '步骤一',
|
text: '步骤一',
|
||||||
desc: '描述信息'
|
desc: '描述信息'
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
text: '步骤二',
|
text: '步骤二',
|
||||||
desc: '描述信息'
|
desc: '描述信息'
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
text: '步骤三',
|
text: '步骤三',
|
||||||
desc: '描述信息'
|
desc: '描述信息'
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
text: '步骤四',
|
text: '步骤四',
|
||||||
desc: '描述信息'
|
desc: '描述信息'
|
||||||
}
|
}
|
||||||
]
|
]
|
||||||
},
|
},
|
||||||
methods: {
|
methods: {
|
||||||
}
|
}
|
||||||
})
|
})
|
@ -1,6 +1,6 @@
|
|||||||
{
|
{
|
||||||
"component": true,
|
"component": true,
|
||||||
"usingComponents": {
|
"usingComponents": {
|
||||||
"van-steps": "../utils/dist/steps/index"
|
"van-steps": "../utils/dist/steps/index"
|
||||||
}
|
}
|
||||||
}
|
}
|
@ -1,17 +1,17 @@
|
|||||||
.logistics{
|
.logistics{
|
||||||
margin-top: 20rpx;
|
margin-top: 20rpx;
|
||||||
background-color: #fff;
|
background-color: #fff;
|
||||||
.title{
|
.title{
|
||||||
height: 84rpx;
|
height: 84rpx;
|
||||||
font-size: 28rpx;
|
font-size: 28rpx;
|
||||||
color: #333;
|
color: #333;
|
||||||
line-height: 84rpx;
|
line-height: 84rpx;
|
||||||
border-bottom: 2rpx solid #e5e5e5;
|
border-bottom: 2rpx solid #e5e5e5;
|
||||||
padding-left: 29rpx;
|
padding-left: 29rpx;
|
||||||
box-sizing: border-box;
|
box-sizing: border-box;
|
||||||
}
|
}
|
||||||
.schedule{
|
.schedule{
|
||||||
width: 650rpx;
|
width: 650rpx;
|
||||||
margin-left: 50rpx;
|
margin-left: 50rpx;
|
||||||
}
|
}
|
||||||
}
|
}
|
@ -1,4 +1,4 @@
|
|||||||
<view class="logistics">
|
<view class="logistics">
|
||||||
<view class="title">物流追踪</view>
|
<view class="title">物流追踪</view>
|
||||||
<van-steps steps="{{ steps }}" active="{{ 1 }}" direction="vertical" active-color="#47C877" class="schedule" />
|
<van-steps steps="{{ steps }}" active="{{ 1 }}" direction="vertical" active-color="#47C877" class="schedule" />
|
||||||
</view>
|
</view>
|
@ -1 +1 @@
|
|||||||
.logistics{margin-top:20rpx;background-color:#fff}.logistics .title{height:84rpx;font-size:28rpx;color:#333;line-height:84rpx;border-bottom:2rpx solid #e5e5e5;padding-left:29rpx;box-sizing:border-box}.logistics .schedule{width:650rpx;margin-left:50rpx}
|
.logistics{margin-top:20rpx;background-color:#fff}.logistics .title{height:84rpx;font-size:28rpx;color:#333;line-height:84rpx;border-bottom:2rpx solid #e5e5e5;padding-left:29rpx;box-sizing:border-box}.logistics .schedule{width:650rpx;margin-left:50rpx}
|
||||||
|
@ -1,8 +1,8 @@
|
|||||||
Component({
|
Component({
|
||||||
properties: {
|
properties: {
|
||||||
},
|
},
|
||||||
data: {
|
data: {
|
||||||
},
|
},
|
||||||
methods: {
|
methods: {
|
||||||
}
|
}
|
||||||
})
|
})
|
@ -1,3 +1,3 @@
|
|||||||
{
|
{
|
||||||
"component": true
|
"component": true
|
||||||
}
|
}
|
@ -1,35 +1,35 @@
|
|||||||
.orderchooseaddr {
|
.orderchooseaddr {
|
||||||
background-color: #fff;
|
background-color: #fff;
|
||||||
width: 750rpx;
|
width: 750rpx;
|
||||||
height: 148rpx;
|
height: 148rpx;
|
||||||
margin: 0 auto;
|
margin: 0 auto;
|
||||||
border-bottom: 20rpx solid #fbfbfb;
|
border-bottom: 20rpx solid #fbfbfb;
|
||||||
display: flex;
|
display: flex;
|
||||||
justify-content: space-between;
|
justify-content: space-between;
|
||||||
.left {
|
.left {
|
||||||
width: 572rpx;
|
width: 572rpx;
|
||||||
height: 80rpx;
|
height: 80rpx;
|
||||||
.userinfo {
|
.userinfo {
|
||||||
color: #333333;
|
color: #333333;
|
||||||
font-size: 26rpx;
|
font-size: 26rpx;
|
||||||
text-indent: 30rpx;
|
text-indent: 30rpx;
|
||||||
margin-top: 41rpx;
|
margin-top: 41rpx;
|
||||||
display: flex;
|
display: flex;
|
||||||
justify-content: space-between;
|
justify-content: space-between;
|
||||||
}
|
}
|
||||||
.addr {
|
.addr {
|
||||||
color: #999999;
|
color: #999999;
|
||||||
font-size: 24rpx;
|
font-size: 24rpx;
|
||||||
text-indent: 30rpx;
|
text-indent: 30rpx;
|
||||||
margin-top: 32rpx;
|
margin-top: 32rpx;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
.right {
|
.right {
|
||||||
width: 17rpx;
|
width: 17rpx;
|
||||||
height: 30rpx;
|
height: 30rpx;
|
||||||
background-color: #d3d3d3;
|
background-color: #d3d3d3;
|
||||||
margin: auto 0;
|
margin: auto 0;
|
||||||
margin-right: 19rpx;
|
margin-right: 19rpx;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -1,10 +1,10 @@
|
|||||||
<view class="orderchooseaddr">
|
<view class="orderchooseaddr">
|
||||||
<view class="left">
|
<view class="left">
|
||||||
<view class="userinfo">
|
<view class="userinfo">
|
||||||
<text class="username">于于宇 15698857895</text>
|
<text class="username">于于宇 15698857895</text>
|
||||||
<text></text>
|
<text></text>
|
||||||
</view>
|
</view>
|
||||||
<view class="addr">中国大陆 山东省 青岛市 即墨区 纯阳路 某某某小区</view>
|
<view class="addr">中国大陆 山东省 青岛市 即墨区 纯阳路 某某某小区</view>
|
||||||
</view>
|
</view>
|
||||||
<view class="right"></view>
|
<view class="right"></view>
|
||||||
</view>
|
</view>
|
@ -1 +1 @@
|
|||||||
.orderchooseaddr{background-color:#fff;width:750rpx;height:148rpx;margin:0 auto;border-bottom:20rpx solid #fbfbfb;display:flex;justify-content:space-between}.orderchooseaddr .left{width:572rpx;height:80rpx}.orderchooseaddr .left .userinfo{color:#333333;font-size:26rpx;text-indent:30rpx;margin-top:41rpx;display:flex;justify-content:space-between}.orderchooseaddr .left .addr{color:#999999;font-size:24rpx;text-indent:30rpx;margin-top:32rpx}.orderchooseaddr .right{width:17rpx;height:30rpx;background-color:#d3d3d3;margin:auto 0;margin-right:19rpx}
|
.orderchooseaddr{background-color:#fff;width:750rpx;height:148rpx;margin:0 auto;border-bottom:20rpx solid #fbfbfb;display:flex;justify-content:space-between}.orderchooseaddr .left{width:572rpx;height:80rpx}.orderchooseaddr .left .userinfo{color:#333333;font-size:26rpx;text-indent:30rpx;margin-top:41rpx;display:flex;justify-content:space-between}.orderchooseaddr .left .addr{color:#999999;font-size:24rpx;text-indent:30rpx;margin-top:32rpx}.orderchooseaddr .right{width:17rpx;height:30rpx;background-color:#d3d3d3;margin:auto 0;margin-right:19rpx}
|
||||||
|
@ -1,8 +1,8 @@
|
|||||||
Component({
|
Component({
|
||||||
properties: {
|
properties: {
|
||||||
},
|
},
|
||||||
data: {
|
data: {
|
||||||
},
|
},
|
||||||
methods: {
|
methods: {
|
||||||
}
|
}
|
||||||
})
|
})
|
@ -1,3 +1,3 @@
|
|||||||
{
|
{
|
||||||
"component": true
|
"component": true
|
||||||
}
|
}
|
@ -1,29 +1,29 @@
|
|||||||
.payment {
|
.payment {
|
||||||
width: 750rpx;
|
width: 750rpx;
|
||||||
height: 98rpx;
|
height: 98rpx;
|
||||||
position: fixed;
|
position: fixed;
|
||||||
bottom: 0;
|
bottom: 0;
|
||||||
display: flex;
|
display: flex;
|
||||||
justify-content: space-between;
|
justify-content: space-between;
|
||||||
background-color: #fff;
|
background-color: #fff;
|
||||||
align-items: center;
|
align-items: center;
|
||||||
.price {
|
.price {
|
||||||
font-size: 34rpx;
|
font-size: 34rpx;
|
||||||
margin-left: 74rpx;
|
margin-left: 74rpx;
|
||||||
.title {
|
.title {
|
||||||
color: #333;
|
color: #333;
|
||||||
}
|
}
|
||||||
.counts{
|
.counts{
|
||||||
color: #ff3838;
|
color: #ff3838;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
.submit {
|
.submit {
|
||||||
width: 250rpx;
|
width: 250rpx;
|
||||||
height: 98rpx;
|
height: 98rpx;
|
||||||
background-color: #47c877;
|
background-color: #47c877;
|
||||||
font-size: 30rpx;
|
font-size: 30rpx;
|
||||||
color: #fff;
|
color: #fff;
|
||||||
line-height: 98rpx;
|
line-height: 98rpx;
|
||||||
text-align: center;
|
text-align: center;
|
||||||
}
|
}
|
||||||
}
|
}
|
@ -1,7 +1,7 @@
|
|||||||
<view class="payment">
|
<view class="payment">
|
||||||
<view class="price">
|
<view class="price">
|
||||||
<text class="title">总付款:</text>
|
<text class="title">总付款:</text>
|
||||||
<text class="counts">¥29</text>
|
<text class="counts">¥29</text>
|
||||||
</view>
|
</view>
|
||||||
<view class="submit">立即支付</view>
|
<view class="submit">立即支付</view>
|
||||||
</view>
|
</view>
|
@ -1 +1 @@
|
|||||||
.payment{width:750rpx;height:98rpx;position:fixed;bottom:0;display:flex;justify-content:space-between;background-color:#fff;align-items:center}.payment .price{font-size:34rpx;margin-left:74rpx}.payment .price .title{color:#333}.payment .price .counts{color:#ff3838}.payment .submit{width:250rpx;height:98rpx;background-color:#47c877;font-size:30rpx;color:#fff;line-height:98rpx;text-align:center}
|
.payment{width:750rpx;height:98rpx;position:fixed;bottom:0;display:flex;justify-content:space-between;background-color:#fff;align-items:center}.payment .price{font-size:34rpx;margin-left:74rpx}.payment .price .title{color:#333}.payment .price .counts{color:#ff3838}.payment .submit{width:250rpx;height:98rpx;background-color:#47c877;font-size:30rpx;color:#fff;line-height:98rpx;text-align:center}
|
||||||
|
@ -1,8 +1,8 @@
|
|||||||
Component({
|
Component({
|
||||||
properties: {
|
properties: {
|
||||||
},
|
},
|
||||||
data: {
|
data: {
|
||||||
},
|
},
|
||||||
methods: {
|
methods: {
|
||||||
}
|
}
|
||||||
})
|
})
|
@ -1,3 +1,3 @@
|
|||||||
{
|
{
|
||||||
"component": true
|
"component": true
|
||||||
}
|
}
|
@ -1,22 +1,22 @@
|
|||||||
.hot {
|
.hot {
|
||||||
display: flex;
|
display: flex;
|
||||||
align-items: center;
|
align-items: center;
|
||||||
flex-direction: column;
|
flex-direction: column;
|
||||||
.title {
|
.title {
|
||||||
font-size: 34rpx;
|
font-size: 34rpx;
|
||||||
color: #333;
|
color: #333;
|
||||||
font-weight: bold;
|
font-weight: bold;
|
||||||
width: 415rpx;
|
width: 415rpx;
|
||||||
height: 61rpx;
|
height: 61rpx;
|
||||||
line-height: 61rpx;
|
line-height: 61rpx;
|
||||||
text-align: center;
|
text-align: center;
|
||||||
background-image: linear-gradient(to right, #fff, #ecfff8, #fff);
|
background-image: linear-gradient(to right, #fff, #ecfff8, #fff);
|
||||||
margin-top: 53rpx;
|
margin-top: 53rpx;
|
||||||
margin-bottom: 38rpx;
|
margin-bottom: 38rpx;
|
||||||
}
|
}
|
||||||
.word{
|
.word{
|
||||||
font-size: 30rpx;
|
font-size: 30rpx;
|
||||||
color: #999;
|
color: #999;
|
||||||
margin-bottom: 55rpx;
|
margin-bottom: 55rpx;
|
||||||
}
|
}
|
||||||
}
|
}
|
@ -1,5 +1,5 @@
|
|||||||
<view class="hot">
|
<view class="hot">
|
||||||
<view class="title">热门搜索</view>
|
<view class="title">热门搜索</view>
|
||||||
<view class="word">化妆品</view>
|
<view class="word">化妆品</view>
|
||||||
<view class="word">化妆品</view>
|
<view class="word">化妆品</view>
|
||||||
</view>
|
</view>
|
@ -1 +1 @@
|
|||||||
.hot{display:flex;align-items:center;flex-direction:column}.hot .title{font-size:34rpx;color:#333;font-weight:bold;width:415rpx;height:61rpx;line-height:61rpx;text-align:center;background-image:linear-gradient(to right, #fff, #ecfff8, #fff);margin-top:53rpx;margin-bottom:38rpx}.hot .word{font-size:30rpx;color:#999;margin-bottom:55rpx}
|
.hot{display:flex;align-items:center;flex-direction:column}.hot .title{font-size:34rpx;color:#333;font-weight:bold;width:415rpx;height:61rpx;line-height:61rpx;text-align:center;background-image:linear-gradient(to right, #fff, #ecfff8, #fff);margin-top:53rpx;margin-bottom:38rpx}.hot .word{font-size:30rpx;color:#999;margin-bottom:55rpx}
|
||||||
|
@ -1,8 +1,8 @@
|
|||||||
Component({
|
Component({
|
||||||
properties: {
|
properties: {
|
||||||
},
|
},
|
||||||
data: {
|
data: {
|
||||||
},
|
},
|
||||||
methods: {
|
methods: {
|
||||||
}
|
}
|
||||||
})
|
})
|
@ -1,5 +1,5 @@
|
|||||||
{
|
{
|
||||||
"component": true,
|
"component": true,
|
||||||
"usingComponents": {
|
"usingComponents": {
|
||||||
}
|
}
|
||||||
}
|
}
|
@ -1,28 +1,28 @@
|
|||||||
.merchandise {
|
.merchandise {
|
||||||
padding: 46rpx 32rpx;
|
padding: 46rpx 32rpx;
|
||||||
display: flex;
|
display: flex;
|
||||||
border-bottom: 20rpx solid #fbfbfb;
|
border-bottom: 20rpx solid #fbfbfb;
|
||||||
.image {
|
.image {
|
||||||
width: 171rpx;
|
width: 171rpx;
|
||||||
height: 168rpx;
|
height: 168rpx;
|
||||||
background-color: #000;
|
background-color: #000;
|
||||||
}
|
}
|
||||||
.message {
|
.message {
|
||||||
margin-left: 24rpx;
|
margin-left: 24rpx;
|
||||||
.title {
|
.title {
|
||||||
font-size: 26rpx;
|
font-size: 26rpx;
|
||||||
color: #333;
|
color: #333;
|
||||||
width: 491rpx;
|
width: 491rpx;
|
||||||
margin-bottom: 9rpx;
|
margin-bottom: 9rpx;
|
||||||
}
|
}
|
||||||
.brief {
|
.brief {
|
||||||
font-size: 22rpx;
|
font-size: 22rpx;
|
||||||
color: #999;
|
color: #999;
|
||||||
margin-bottom: 26rpx;
|
margin-bottom: 26rpx;
|
||||||
}
|
}
|
||||||
.price {
|
.price {
|
||||||
font-size: 28rpx;
|
font-size: 28rpx;
|
||||||
color: #ff4e6c;
|
color: #ff4e6c;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
@ -1,8 +1,8 @@
|
|||||||
<view class="merchandise">
|
<view class="merchandise">
|
||||||
<image class="image"></image>
|
<image class="image"></image>
|
||||||
<view class="message">
|
<view class="message">
|
||||||
<view class="title">雅诗兰黛肌透修护密集精华眼膜 4对棕色瓶修护 真空眼膜</view>
|
<view class="title">雅诗兰黛肌透修护密集精华眼膜 4对棕色瓶修护 真空眼膜</view>
|
||||||
<view class="brief">肌透眼膜4片</view>
|
<view class="brief">肌透眼膜4片</view>
|
||||||
<view class="price">¥820.00</view>
|
<view class="price">¥820.00</view>
|
||||||
</view>
|
</view>
|
||||||
</view>
|
</view>
|
@ -1 +1 @@
|
|||||||
.merchandise{padding:46rpx 32rpx;display:flex;border-bottom:20rpx solid #fbfbfb}.merchandise .image{width:171rpx;height:168rpx;background-color:#000}.merchandise .message{margin-left:24rpx}.merchandise .message .title{font-size:26rpx;color:#333;width:491rpx;margin-bottom:9rpx}.merchandise .message .brief{font-size:22rpx;color:#999;margin-bottom:26rpx}.merchandise .message .price{font-size:28rpx;color:#ff4e6c}
|
.merchandise{padding:46rpx 32rpx;display:flex;border-bottom:20rpx solid #fbfbfb}.merchandise .image{width:171rpx;height:168rpx;background-color:#000}.merchandise .message{margin-left:24rpx}.merchandise .message .title{font-size:26rpx;color:#333;width:491rpx;margin-bottom:9rpx}.merchandise .message .brief{font-size:22rpx;color:#999;margin-bottom:26rpx}.merchandise .message .price{font-size:28rpx;color:#ff4e6c}
|
||||||
|
@ -1,69 +1,69 @@
|
|||||||
// components/shopping/shoppingitem/shoppingitem.js
|
// components/shopping/shoppingitem/shoppingitem.js
|
||||||
import {request} from "../../../utils/bin"
|
import {request} from "../../../utils/bin"
|
||||||
Component({
|
Component({
|
||||||
/**
|
/**
|
||||||
* 组件的属性列表
|
* 组件的属性列表
|
||||||
*/
|
*/
|
||||||
properties: {
|
properties: {
|
||||||
shopname: String,
|
shopname: String,
|
||||||
shopdesc: String,
|
shopdesc: String,
|
||||||
price: Number,
|
price: Number,
|
||||||
pic: String,
|
pic: String,
|
||||||
gid:Number,
|
gid:Number,
|
||||||
num:Number,
|
num:Number,
|
||||||
select:Boolean,
|
select:Boolean,
|
||||||
index:Number
|
index:Number
|
||||||
},
|
},
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* 组件的初始数据
|
* 组件的初始数据
|
||||||
*/
|
*/
|
||||||
data: {
|
data: {
|
||||||
|
|
||||||
},
|
},
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* 组件的方法列表
|
* 组件的方法列表
|
||||||
*/
|
*/
|
||||||
methods: {
|
methods: {
|
||||||
rm() {
|
rm() {
|
||||||
|
|
||||||
if (this.data.num == 0) {
|
if (this.data.num == 0) {
|
||||||
|
|
||||||
return
|
return
|
||||||
} else {
|
} else {
|
||||||
this.setData({
|
this.setData({
|
||||||
num: this.data.num - 1
|
num: this.data.num - 1
|
||||||
})
|
})
|
||||||
request({
|
request({
|
||||||
url:"Cart/updateNum",
|
url:"Cart/updateNum",
|
||||||
urldata:{
|
urldata:{
|
||||||
id:this.data.gid,
|
id:this.data.gid,
|
||||||
num:this.data.num - 1
|
num:this.data.num - 1
|
||||||
}
|
}
|
||||||
}).then((res)=>{
|
}).then((res)=>{
|
||||||
|
|
||||||
})
|
})
|
||||||
|
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
add() {
|
add() {
|
||||||
this.setData({
|
this.setData({
|
||||||
num: this.data.num + 1
|
num: this.data.num + 1
|
||||||
})
|
})
|
||||||
request({
|
request({
|
||||||
url:"Cart/updateNum",
|
url:"Cart/updateNum",
|
||||||
urldata:{
|
urldata:{
|
||||||
id:this.data.gid,
|
id:this.data.gid,
|
||||||
num:this.data.num + 1
|
num:this.data.num + 1
|
||||||
}
|
}
|
||||||
}).then((res)=>{
|
}).then((res)=>{
|
||||||
|
|
||||||
})
|
})
|
||||||
},
|
},
|
||||||
sel(){
|
sel(){
|
||||||
this.triggerEvent('sel', {index:this.data.index,select:this.data.select})
|
this.triggerEvent('sel', {index:this.data.index,select:this.data.select})
|
||||||
}
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
})
|
})
|
@ -1,16 +1,16 @@
|
|||||||
<view class="shoppingitem">
|
<view class="shoppingitem">
|
||||||
<view class="select {{select ? 'selects':''}}" bind:tap="sel"></view>
|
<view class="select {{select ? 'selects':''}}" bind:tap="sel"></view>
|
||||||
<view class="pic">
|
<view class="pic">
|
||||||
<image src="{{pic}}"></image>
|
<image src="{{pic}}"></image>
|
||||||
</view>
|
</view>
|
||||||
<view class="shopinfo">
|
<view class="shopinfo">
|
||||||
<view class="shopname">{{shopname}}</view>
|
<view class="shopname">{{shopname}}</view>
|
||||||
<view class="shopdesc">{{shopdesc}}</view>
|
<view class="shopdesc">{{shopdesc}}</view>
|
||||||
<view class="price">${{price}}</view>
|
<view class="price">${{price}}</view>
|
||||||
</view>
|
</view>
|
||||||
<view class="numberset">
|
<view class="numberset">
|
||||||
<view class="reverse" bind:tap="rm">-</view>
|
<view class="reverse" bind:tap="rm">-</view>
|
||||||
<view class="num">{{num}}</view>
|
<view class="num">{{num}}</view>
|
||||||
<view class="add" bind:tap="add">+</view>
|
<view class="add" bind:tap="add">+</view>
|
||||||
</view>
|
</view>
|
||||||
</view>
|
</view>
|
||||||
|
@ -1,98 +1,98 @@
|
|||||||
.shoppingitem {
|
.shoppingitem {
|
||||||
width: 639rpx;
|
width: 639rpx;
|
||||||
height: 186rpx;
|
height: 186rpx;
|
||||||
display: flex;
|
display: flex;
|
||||||
justify-content: space-between;
|
justify-content: space-between;
|
||||||
}
|
}
|
||||||
|
|
||||||
.select {
|
.select {
|
||||||
width: 26rpx;
|
width: 26rpx;
|
||||||
height: 26rpx;
|
height: 26rpx;
|
||||||
background: rgba(234, 234, 234, 1);
|
background: rgba(234, 234, 234, 1);
|
||||||
border-radius: 50%;
|
border-radius: 50%;
|
||||||
margin: auto 0;
|
margin: auto 0;
|
||||||
}
|
}
|
||||||
.selects{
|
.selects{
|
||||||
background-color: #45C778;
|
background-color: #45C778;
|
||||||
}
|
}
|
||||||
.pic {
|
.pic {
|
||||||
/* width: 222rpx;
|
/* width: 222rpx;
|
||||||
height: 222rpx; */
|
height: 222rpx; */
|
||||||
width: 186rpx;
|
width: 186rpx;
|
||||||
height: 186rpx;
|
height: 186rpx;
|
||||||
background-color: bisque;
|
background-color: bisque;
|
||||||
}
|
}
|
||||||
|
|
||||||
.pic>image {
|
.pic>image {
|
||||||
width: 100%;
|
width: 100%;
|
||||||
height: 100%;
|
height: 100%;
|
||||||
}
|
}
|
||||||
|
|
||||||
.shopinfo {
|
.shopinfo {
|
||||||
width: 186rpx;
|
width: 186rpx;
|
||||||
}
|
}
|
||||||
|
|
||||||
.shopname {
|
.shopname {
|
||||||
color: #333333;
|
color: #333333;
|
||||||
font-size: 26rpx;
|
font-size: 26rpx;
|
||||||
font-weight: bold;
|
font-weight: bold;
|
||||||
margin-bottom: 18rpx;
|
margin-bottom: 18rpx;
|
||||||
margin-top: 20rpx;
|
margin-top: 20rpx;
|
||||||
text-overflow: ellipsis;
|
text-overflow: ellipsis;
|
||||||
overflow: hidden;
|
overflow: hidden;
|
||||||
|
|
||||||
display: -webkit-box;
|
display: -webkit-box;
|
||||||
|
|
||||||
-webkit-box-orient: vertical;
|
-webkit-box-orient: vertical;
|
||||||
|
|
||||||
-webkit-line-clamp: 2;
|
-webkit-line-clamp: 2;
|
||||||
}
|
}
|
||||||
|
|
||||||
.shopdesc {
|
.shopdesc {
|
||||||
color: #666666;
|
color: #666666;
|
||||||
font-size: 22rpx;
|
font-size: 22rpx;
|
||||||
margin-bottom: 20rpx;
|
margin-bottom: 20rpx;
|
||||||
}
|
}
|
||||||
|
|
||||||
.price {
|
.price {
|
||||||
color: #D1D1D1;
|
color: #D1D1D1;
|
||||||
font-size: 32rpx;
|
font-size: 32rpx;
|
||||||
font-weight: bold;
|
font-weight: bold;
|
||||||
text-decoration: underline;
|
text-decoration: underline;
|
||||||
}
|
}
|
||||||
|
|
||||||
.numberset {
|
.numberset {
|
||||||
width: 85rpx;
|
width: 85rpx;
|
||||||
height: 186rpx;
|
height: 186rpx;
|
||||||
border: 1px solid rgba(233, 233, 233, 1);
|
border: 1px solid rgba(233, 233, 233, 1);
|
||||||
border-radius: 10px;
|
border-radius: 10px;
|
||||||
margin-top: 11rpx;
|
margin-top: 11rpx;
|
||||||
display: flex;
|
display: flex;
|
||||||
flex-direction: column;
|
flex-direction: column;
|
||||||
justify-content: space-between;
|
justify-content: space-between;
|
||||||
}
|
}
|
||||||
|
|
||||||
.reverse {
|
.reverse {
|
||||||
width: 23rpx;
|
width: 23rpx;
|
||||||
height: 23rpx;
|
height: 23rpx;
|
||||||
/* background-color: #97DFB4; */
|
/* background-color: #97DFB4; */
|
||||||
margin: 0 auto;
|
margin: 0 auto;
|
||||||
margin-top: 20rpx;
|
margin-top: 20rpx;
|
||||||
line-height: 23rpx;
|
line-height: 23rpx;
|
||||||
font-size: 46rpx;
|
font-size: 46rpx;
|
||||||
}
|
}
|
||||||
|
|
||||||
.num {
|
.num {
|
||||||
color: #242424;
|
color: #242424;
|
||||||
font-size: 30rpx;
|
font-size: 30rpx;
|
||||||
text-align: center;
|
text-align: center;
|
||||||
}
|
}
|
||||||
|
|
||||||
.add {
|
.add {
|
||||||
width: 23rpx;
|
width: 23rpx;
|
||||||
height: 23rpx;
|
height: 23rpx;
|
||||||
/* background-color: #242424; */
|
/* background-color: #242424; */
|
||||||
margin: 0 auto;
|
margin: 0 auto;
|
||||||
margin-bottom: 17rpx;
|
margin-bottom: 17rpx;
|
||||||
line-height: 23rpx;
|
line-height: 23rpx;
|
||||||
}
|
}
|
@ -1,70 +1,70 @@
|
|||||||
.box {
|
.box {
|
||||||
width: 690rpx;
|
width: 690rpx;
|
||||||
margin: 0 auto;
|
margin: 0 auto;
|
||||||
padding-bottom: 41rpx;
|
padding-bottom: 41rpx;
|
||||||
border-bottom: 2rpx solid #EEEEEE;
|
border-bottom: 2rpx solid #EEEEEE;
|
||||||
.img {
|
.img {
|
||||||
width: 40rpx;
|
width: 40rpx;
|
||||||
height: 39rpx;
|
height: 39rpx;
|
||||||
background-color: #999999;
|
background-color: #999999;
|
||||||
float: right;
|
float: right;
|
||||||
}
|
}
|
||||||
.yongjintop {
|
.yongjintop {
|
||||||
width: 317rpx;
|
width: 317rpx;
|
||||||
// height: 196rpx;
|
// height: 196rpx;
|
||||||
margin-top: 71rpx;
|
margin-top: 71rpx;
|
||||||
margin-left: 30rpx;
|
margin-left: 30rpx;
|
||||||
display: flex;
|
display: flex;
|
||||||
.photo {
|
.photo {
|
||||||
width: 130rpx;
|
width: 130rpx;
|
||||||
height: 130rpx;
|
height: 130rpx;
|
||||||
background-color: gold;
|
background-color: gold;
|
||||||
margin-bottom: 52rpx;
|
margin-bottom: 52rpx;
|
||||||
border-radius: 90%;
|
border-radius: 90%;
|
||||||
}
|
}
|
||||||
.tel {
|
.tel {
|
||||||
color: #333333;
|
color: #333333;
|
||||||
font-size: 28rpx;
|
font-size: 28rpx;
|
||||||
margin-top: 33rpx;
|
margin-top: 33rpx;
|
||||||
margin-left: 35rpx;
|
margin-left: 35rpx;
|
||||||
.mingpian {
|
.mingpian {
|
||||||
font-size: 24rpx;
|
font-size: 24rpx;
|
||||||
color: #999999;
|
color: #999999;
|
||||||
margin-top: 18rpx;
|
margin-top: 18rpx;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
.mid {
|
.mid {
|
||||||
width: 100%;
|
width: 100%;
|
||||||
height: 175rpx;
|
height: 175rpx;
|
||||||
border-bottom: 20rpx solid #FBFBFB;
|
border-bottom: 20rpx solid #FBFBFB;
|
||||||
// justify-content: space-around;
|
// justify-content: space-around;
|
||||||
color: #333333;
|
color: #333333;
|
||||||
font-size: 28rpx;
|
font-size: 28rpx;
|
||||||
text-align: center;
|
text-align: center;
|
||||||
.midbox {
|
.midbox {
|
||||||
width: 478rpx;
|
width: 478rpx;
|
||||||
height: 175rpx;
|
height: 175rpx;
|
||||||
display: flex;
|
display: flex;
|
||||||
justify-content: space-between;
|
justify-content: space-between;
|
||||||
margin: 0 auto;
|
margin: 0 auto;
|
||||||
}
|
}
|
||||||
.way {
|
.way {
|
||||||
margin-top: 46rpx;
|
margin-top: 46rpx;
|
||||||
margin-bottom: 14rpx;
|
margin-bottom: 14rpx;
|
||||||
}
|
}
|
||||||
.money {
|
.money {
|
||||||
font-size: 24rpx;
|
font-size: 24rpx;
|
||||||
}
|
}
|
||||||
.money1 {
|
.money1 {
|
||||||
color: #F81F1F;
|
color: #F81F1F;
|
||||||
}
|
}
|
||||||
.line {
|
.line {
|
||||||
width: 2rpx;
|
width: 2rpx;
|
||||||
height: 60rpx;
|
height: 60rpx;
|
||||||
margin: auto 0;
|
margin: auto 0;
|
||||||
background-color: #EEEEEE;
|
background-color: #EEEEEE;
|
||||||
}
|
}
|
||||||
}
|
}
|
@ -1,30 +1,30 @@
|
|||||||
<view class="box">
|
<view class="box">
|
||||||
<view class="img"></view>
|
<view class="img"></view>
|
||||||
<view class="yongjintop">
|
<view class="yongjintop">
|
||||||
<image class="photo"></image>
|
<image class="photo"></image>
|
||||||
<view class="tel">
|
<view class="tel">
|
||||||
<view>156***578</view>
|
<view>156***578</view>
|
||||||
<view class="mingpian">我的名片</view>
|
<view class="mingpian">我的名片</view>
|
||||||
</view>
|
</view>
|
||||||
</view>
|
</view>
|
||||||
</view>
|
</view>
|
||||||
<view class="mid">
|
<view class="mid">
|
||||||
<view class="midbox">
|
<view class="midbox">
|
||||||
<view>
|
<view>
|
||||||
<view class="way">昨日收益</view>
|
<view class="way">昨日收益</view>
|
||||||
<view class="money">
|
<view class="money">
|
||||||
<text class="money1">657.00</text>
|
<text class="money1">657.00</text>
|
||||||
<text>RMB</text>
|
<text>RMB</text>
|
||||||
</view>
|
</view>
|
||||||
</view>
|
</view>
|
||||||
<view class="line"></view>
|
<view class="line"></view>
|
||||||
<view>
|
<view>
|
||||||
<view class="way">昨日收益</view>
|
<view class="way">昨日收益</view>
|
||||||
<view class="money">
|
<view class="money">
|
||||||
<text class="money1">657.00</text>
|
<text class="money1">657.00</text>
|
||||||
<text>RMB</text>
|
<text>RMB</text>
|
||||||
</view>
|
</view>
|
||||||
</view>
|
</view>
|
||||||
</view>
|
</view>
|
||||||
|
|
||||||
</view>
|
</view>
|
@ -1,56 +1,56 @@
|
|||||||
.box {
|
.box {
|
||||||
width: 690rpx;
|
width: 690rpx;
|
||||||
margin: 0 auto;
|
margin: 0 auto;
|
||||||
padding-bottom: 41rpx;
|
padding-bottom: 41rpx;
|
||||||
border-bottom: 2rpx solid #EEEEEE;
|
border-bottom: 2rpx solid #EEEEEE;
|
||||||
.yongjintop {
|
.yongjintop {
|
||||||
width: 152rpx;
|
width: 152rpx;
|
||||||
height: 196rpx;
|
height: 196rpx;
|
||||||
margin: 0 auto;
|
margin: 0 auto;
|
||||||
margin-top: 40rpx;
|
margin-top: 40rpx;
|
||||||
.photo {
|
.photo {
|
||||||
width: 130rpx;
|
width: 130rpx;
|
||||||
height: 130rpx;
|
height: 130rpx;
|
||||||
background-color: gold;
|
background-color: gold;
|
||||||
margin-bottom: 44rpx;
|
margin-bottom: 44rpx;
|
||||||
border-radius: 90%;
|
border-radius: 90%;
|
||||||
}
|
}
|
||||||
.tel {
|
.tel {
|
||||||
color: #333333;
|
color: #333333;
|
||||||
font-size: 28rpx;
|
font-size: 28rpx;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
.mid {
|
.mid {
|
||||||
width: 100%;
|
width: 100%;
|
||||||
height: 175rpx;
|
height: 175rpx;
|
||||||
border-bottom: 20rpx solid #FBFBFB;
|
border-bottom: 20rpx solid #FBFBFB;
|
||||||
// justify-content: space-around;
|
// justify-content: space-around;
|
||||||
color: #333333;
|
color: #333333;
|
||||||
font-size: 28rpx;
|
font-size: 28rpx;
|
||||||
text-align: center;
|
text-align: center;
|
||||||
.midbox {
|
.midbox {
|
||||||
width: 478rpx;
|
width: 478rpx;
|
||||||
height: 175rpx;
|
height: 175rpx;
|
||||||
display: flex;
|
display: flex;
|
||||||
justify-content: space-between;
|
justify-content: space-between;
|
||||||
margin: 0 auto;
|
margin: 0 auto;
|
||||||
}
|
}
|
||||||
.way {
|
.way {
|
||||||
margin-top: 46rpx;
|
margin-top: 46rpx;
|
||||||
margin-bottom: 14rpx;
|
margin-bottom: 14rpx;
|
||||||
}
|
}
|
||||||
.money {
|
.money {
|
||||||
font-size: 24rpx;
|
font-size: 24rpx;
|
||||||
}
|
}
|
||||||
.money1 {
|
.money1 {
|
||||||
color: #F81F1F;
|
color: #F81F1F;
|
||||||
}
|
}
|
||||||
.line {
|
.line {
|
||||||
width: 2rpx;
|
width: 2rpx;
|
||||||
height: 60rpx;
|
height: 60rpx;
|
||||||
margin: auto 0;
|
margin: auto 0;
|
||||||
background-color: #EEEEEE;
|
background-color: #EEEEEE;
|
||||||
}
|
}
|
||||||
}
|
}
|
@ -1,26 +1,26 @@
|
|||||||
<view class="box">
|
<view class="box">
|
||||||
<view class="yongjintop">
|
<view class="yongjintop">
|
||||||
<image class="photo"></image>
|
<image class="photo"></image>
|
||||||
<view class="tel">156***578</view>
|
<view class="tel">156***578</view>
|
||||||
</view>
|
</view>
|
||||||
</view>
|
</view>
|
||||||
<view class="mid">
|
<view class="mid">
|
||||||
<view class="midbox">
|
<view class="midbox">
|
||||||
<view>
|
<view>
|
||||||
<view class="way">昨日收益</view>
|
<view class="way">昨日收益</view>
|
||||||
<view class="money">
|
<view class="money">
|
||||||
<text class="money1">657.00</text>
|
<text class="money1">657.00</text>
|
||||||
<text>RMB</text>
|
<text>RMB</text>
|
||||||
</view>
|
</view>
|
||||||
</view>
|
</view>
|
||||||
<view class="line"></view>
|
<view class="line"></view>
|
||||||
<view>
|
<view>
|
||||||
<view class="way">昨日收益</view>
|
<view class="way">昨日收益</view>
|
||||||
<view class="money">
|
<view class="money">
|
||||||
<text class="money1">657.00</text>
|
<text class="money1">657.00</text>
|
||||||
<text>RMB</text>
|
<text>RMB</text>
|
||||||
</view>
|
</view>
|
||||||
</view>
|
</view>
|
||||||
</view>
|
</view>
|
||||||
|
|
||||||
</view>
|
</view>
|
@ -1,23 +1,23 @@
|
|||||||
.yuedetail {
|
.yuedetail {
|
||||||
width: 100%;
|
width: 100%;
|
||||||
height: 100rpx;
|
height: 100rpx;
|
||||||
border-bottom: 2rpx solid #EEEEEE;
|
border-bottom: 2rpx solid #EEEEEE;
|
||||||
display: flex;
|
display: flex;
|
||||||
justify-content: space-between;
|
justify-content: space-between;
|
||||||
.left {
|
.left {
|
||||||
font-size: 28rpx;
|
font-size: 28rpx;
|
||||||
margin-left: 30rpx;
|
margin-left: 30rpx;
|
||||||
.date {
|
.date {
|
||||||
color: #666666;
|
color: #666666;
|
||||||
}
|
}
|
||||||
.time {
|
.time {
|
||||||
color: #999999;
|
color: #999999;
|
||||||
margin-top: 5rpx;
|
margin-top: 5rpx;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
.right {
|
.right {
|
||||||
color: #333333;
|
color: #333333;
|
||||||
font-size: 36rpx;
|
font-size: 36rpx;
|
||||||
margin-right: 30rpx;
|
margin-right: 30rpx;
|
||||||
}
|
}
|
||||||
}
|
}
|
@ -1,6 +1,6 @@
|
|||||||
.yuetitle {
|
.yuetitle {
|
||||||
color: #333333;
|
color: #333333;
|
||||||
font-size: 28rpx;
|
font-size: 28rpx;
|
||||||
font-weight: bold;
|
font-weight: bold;
|
||||||
margin-left: 31rpx;
|
margin-left: 31rpx;
|
||||||
}
|
}
|
@ -1,23 +1,23 @@
|
|||||||
.yuetop {
|
.yuetop {
|
||||||
width: 690rpx;
|
width: 690rpx;
|
||||||
// height: 189rpx;
|
// height: 189rpx;
|
||||||
margin: 0 auto;
|
margin: 0 auto;
|
||||||
border-bottom: 2rpx solid #EEEEEE;
|
border-bottom: 2rpx solid #EEEEEE;
|
||||||
.all {
|
.all {
|
||||||
color: #333333;
|
color: #333333;
|
||||||
font-size: 28rpx;
|
font-size: 28rpx;
|
||||||
padding-top: 63rpx;
|
padding-top: 63rpx;
|
||||||
padding-bottom: 25rpx;
|
padding-bottom: 25rpx;
|
||||||
}
|
}
|
||||||
.money {
|
.money {
|
||||||
color: #333333;
|
color: #333333;
|
||||||
font-size: 48rpx;
|
font-size: 48rpx;
|
||||||
font-weight: 500;
|
font-weight: 500;
|
||||||
padding-bottom: 37rpx;
|
padding-bottom: 37rpx;
|
||||||
.chong {
|
.chong {
|
||||||
color: #09BB07;
|
color: #09BB07;
|
||||||
font-size: 26rpx;
|
font-size: 26rpx;
|
||||||
margin-left: 35rpx;
|
margin-left: 35rpx;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
62
doc/bin.md
62
doc/bin.md
@ -1,31 +1,31 @@
|
|||||||
# bin.js
|
# bin.js
|
||||||
## 引入方式
|
## 引入方式
|
||||||
模块导入
|
模块导入
|
||||||
## request 方法
|
## request 方法
|
||||||
对于wx.request()的简单封装
|
对于wx.request()的简单封装
|
||||||
request(object)
|
request(object)
|
||||||
返回值类型 promise
|
返回值类型 promise
|
||||||
除url必须 其余都为可选 详细参数查阅 [微信开发者文档](https://developers.weixin.qq.com/miniprogram/dev/api/network/request/wx.request.html)
|
除url必须 其余都为可选 详细参数查阅 [微信开发者文档](https://developers.weixin.qq.com/miniprogram/dev/api/network/request/wx.request.html)
|
||||||
```
|
```
|
||||||
object
|
object
|
||||||
{
|
{
|
||||||
url,访问地址 必须
|
url,访问地址 必须
|
||||||
method,请求方式
|
method,请求方式
|
||||||
header,附加header头
|
header,附加header头
|
||||||
dataType,返回类型
|
dataType,返回类型
|
||||||
responseType,类型
|
responseType,类型
|
||||||
complete 成功失败都执行的回调函数
|
complete 成功失败都执行的回调函数
|
||||||
}
|
}
|
||||||
```
|
```
|
||||||
```
|
```
|
||||||
request({
|
request({
|
||||||
url:"https://api.luyaun.tk/getlist",
|
url:"https://api.luyaun.tk/getlist",
|
||||||
method:"GET"
|
method:"GET"
|
||||||
}).then((res)=>{
|
}).then((res)=>{
|
||||||
请求成功执行方法
|
请求成功执行方法
|
||||||
},(rej)=>{
|
},(rej)=>{
|
||||||
请求失败执行方法
|
请求失败执行方法
|
||||||
}).catch((ree)=>{
|
}).catch((ree)=>{
|
||||||
执行错误时调用方法
|
执行错误时调用方法
|
||||||
})
|
})
|
||||||
```
|
```
|
||||||
|
@ -1,66 +1,66 @@
|
|||||||
// pages/accomplish/accomplish.js
|
// pages/accomplish/accomplish.js
|
||||||
Page({
|
Page({
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* 页面的初始数据
|
* 页面的初始数据
|
||||||
*/
|
*/
|
||||||
data: {
|
data: {
|
||||||
|
|
||||||
},
|
},
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* 生命周期函数--监听页面加载
|
* 生命周期函数--监听页面加载
|
||||||
*/
|
*/
|
||||||
onLoad: function (options) {
|
onLoad: function (options) {
|
||||||
|
|
||||||
},
|
},
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* 生命周期函数--监听页面初次渲染完成
|
* 生命周期函数--监听页面初次渲染完成
|
||||||
*/
|
*/
|
||||||
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 () {
|
||||||
|
|
||||||
}
|
}
|
||||||
})
|
})
|
@ -1,7 +1,7 @@
|
|||||||
{
|
{
|
||||||
"usingComponents": {
|
"usingComponents": {
|
||||||
"content":"../components/particulars/content/index",
|
"content":"../components/particulars/content/index",
|
||||||
"orderchooseaddr":"../components/particulars/orderchooseaddr/index",
|
"orderchooseaddr":"../components/particulars/orderchooseaddr/index",
|
||||||
"logistics": "../components/particulars/logistics/index"
|
"logistics": "../components/particulars/logistics/index"
|
||||||
}
|
}
|
||||||
}
|
}
|
Some files were not shown because too many files have changed in this diff Show More
Loading…
Reference in New Issue
Block a user