Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
T
take_order
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
和慭琛
take_order
Commits
a4b37f52
Commit
a4b37f52
authored
Dec 01, 2020
by
和慭琛
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
下单页 页面搭建 100%
parent
2c05781d
Changes
21
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
21 changed files
with
1090 additions
and
62 deletions
+1090
-62
pages.json
take-order/pages.json
+19
-6
index.vue
take-order/pages/index/index.vue
+343
-32
record.vue
take-order/pages/index/record.vue
+27
-0
success.vue
take-order/pages/index/success.vue
+11
-0
vendor.js.map
...ackage/dist/dev/.sourcemap/mp-weixin/common/vendor.js.map
+1
-1
index.js.map
...ge/dist/dev/.sourcemap/mp-weixin/pages/index/index.js.map
+1
-1
record.js.map
...e/dist/dev/.sourcemap/mp-weixin/pages/index/record.js.map
+1
-0
success.js.map
.../dist/dev/.sourcemap/mp-weixin/pages/index/success.js.map
+1
-0
app.json
take-order/unpackage/dist/dev/mp-weixin/app.json
+4
-3
index.js
take-order/unpackage/dist/dev/mp-weixin/pages/index/index.js
+130
-3
index.json
...order/unpackage/dist/dev/mp-weixin/pages/index/index.json
+1
-1
index.wxml
...order/unpackage/dist/dev/mp-weixin/pages/index/index.wxml
+1
-1
index.wxss
...order/unpackage/dist/dev/mp-weixin/pages/index/index.wxss
+243
-14
record.js
...-order/unpackage/dist/dev/mp-weixin/pages/index/record.js
+155
-0
record.json
...rder/unpackage/dist/dev/mp-weixin/pages/index/record.json
+4
-0
record.wxml
...rder/unpackage/dist/dev/mp-weixin/pages/index/record.wxml
+1
-0
record.wxss
...rder/unpackage/dist/dev/mp-weixin/pages/index/record.wxss
+1
-0
success.js
...order/unpackage/dist/dev/mp-weixin/pages/index/success.js
+140
-0
success.json
...der/unpackage/dist/dev/mp-weixin/pages/index/success.json
+4
-0
success.wxml
...der/unpackage/dist/dev/mp-weixin/pages/index/success.wxml
+1
-0
success.wxss
...der/unpackage/dist/dev/mp-weixin/pages/index/success.wxss
+1
-0
No files found.
take-order/pages.json
View file @
a4b37f52
...
...
@@ -4,12 +4,25 @@
"^u-(.*)"
:
"@/uview-ui/components/u-$1/u-$1.vue"
},
*/
"pages"
:
[
//pages数组中第一项表示应用启动页,参考:https
:
//uniapp.dcloud.io/collocation/pages
{
"path"
:
"pages/index/index"
,
"style"
:
{
"navigationBarTitleText"
:
"uni-app"
}
"pages"
:
[
//pages数组中第一项表示应用启动页,参考:https
:
//uniapp.dcloud.io/collocation/pages
{
"path"
:
"pages/index/index"
,
"style"
:
{
"navigationBarTitleText"
:
"下单"
}
},
{
"path"
:
"pages/index/record"
,
"style"
:
{
"navigationBarTitleText"
:
"下的单"
}
},
{
"path"
:
"pages/index/success"
,
"style"
:
{
"navigationBarTitleText"
:
"下单"
}
}
],
"globalStyle"
:
{
...
...
take-order/pages/index/index.vue
View file @
a4b37f52
<
template
>
<view
class=
"content"
>
<image
class=
"logo"
src=
"/static/logo.png"
></image>
<view
class=
"text-area"
>
<text
class=
"title"
>
{{
title
}}
</text>
<view
class=
""
>
<view
class=
"topView"
>
<text
class=
"topTitle"
>
扳手会全国百万师傅为你服务
</text>
</view>
<view
class=
"itemView"
>
<text
class=
"itemTitle"
>
联系人:
</text>
<input
class=
"itemInput"
v-model=
"name"
type=
""
value=
""
placeholder=
"请输入联系人姓名"
/>
</view>
<view
class=
"itemView"
>
<text
class=
"itemTitle"
>
联系电话:
</text>
<input
class=
"itemInput"
v-model=
"phone"
type=
""
value=
""
placeholder=
"请输入联系电话"
/>
</view>
<view
class=
"itemView"
@
click=
"locationClick()"
>
<text
class=
"itemTitle"
>
定位位置:
</text>
<view
class=
"locationView"
>
<image
class=
"locationIcon"
src=
""
mode=
""
></image>
<text
class=
"locationText"
>
{{
location
}}
</text>
</view>
</view>
<view
class=
"itemView"
>
<text
class=
"itemTitle"
>
详细地址:
</text>
<input
class=
"itemInput"
v-model=
"address"
type=
""
value=
""
placeholder=
"请输入详细地址"
/>
</view>
<view
class=
"selectItemView"
>
<view
class=
"selectItemTitleView"
>
<text
class=
"selectItemTitle"
>
产品类型:
</text>
</view>
<view
class=
"selectBackView"
>
<view
class=
"selectView"
v-for=
"(item,ikey) in productTypeList"
:key=
"ikey"
>
<view
:class=
"activeProduct==item.title ?'innerView activeColor':'innerView' "
@
click=
"productTypeClick(item)"
>
<text
class=
"innerText"
>
{{
item
.
title
}}
</text>
</view>
</view>
</view>
</view>
<view
class=
"selectItemView"
>
<view
class=
"selectItemTitleView"
>
<text
class=
"selectItemTitle"
>
服务类型:
</text>
</view>
<view
class=
"selectBackView"
>
<view
class=
"selectView"
v-for=
"(item,ikey) in serviceTypleList"
:key=
"ikey"
>
<view
:class=
"activeService==item.title ? 'innerView activeColor' : 'innerView' "
@
click=
"serviceTypeClick(item)"
>
<text
class=
"innerText"
>
{{
item
.
title
}}
</text>
</view>
</view>
</view>
</view>
<view
class=
"textAreaItemView"
>
<view
class=
"selectItemTitleView"
>
<text
class=
"selectItemTitle"
>
服务需求:
</text>
</view>
<view
class=
"textAreaView"
>
<textarea
class=
"textArea"
value=
""
placeholder=
"请输入服务需求"
/>
</view>
</view>
<view
class=
"agreeView"
>
<image
class=
"agreeIcon"
src=
""
mode=
""
@
click=
"agreeClick(isAgree)"
></image>
<text
class=
"agreeTitle"
>
我已阅读并同意
</text>
<text
class=
"agreeProtocol"
@
click=
"protocolClick()"
>
《服务协议》
</text>
</view>
<view
class=
"bottomView"
>
<view
class=
"bottomLeftView"
@
click=
"recordClick()"
>
<text
class=
"bottomTitle"
>
下单记录
</text>
</view>
<view
class=
"bottomRightView"
@
click=
"confirmClick()"
>
<text
class=
"bottomTitle"
>
立即下单
</text>
</view>
</view>
</view>
</
template
>
...
...
@@ -11,42 +74,290 @@
export
default
{
data
()
{
return
{
title
:
'Hello'
name
:
''
,
phone
:
''
,
location
:
''
,
address
:
''
,
productTypeList
:[
{
title
:
'家用电器'
},{
title
:
'居家用品'
},{
title
:
'商用电器'
}
],
activeProduct
:
''
,
serviceTypleList
:[
{
title
:
'安装'
},{
title
:
'清洗包养'
},{
title
:
'维修'
},
//,{title:'安装'},{title:'清洗包养'},{title:'维修'}
],
activeService
:
''
,
isAgree
:
false
}
},
onLoad
()
{
onLoad
()
{
},
methods
:
{
methods
:
{
locationClick
:
function
(){
let
that
=
this
uni
.
chooseLocation
({
success
:
function
(
res
)
{
console
.
log
(
'位置名称:'
+
res
.
name
);
console
.
log
(
'详细地址:'
+
res
.
address
);
console
.
log
(
'纬度:'
+
res
.
latitude
);
console
.
log
(
'经度:'
+
res
.
longitude
);
that
.
location
=
res
.
name
that
.
address
=
res
.
address
},
fail
:
function
(
res
)
{
uni
.
showToast
({
title
:
'定位失败'
})
}
});
},
productTypeClick
:
function
(
item
)
{
this
.
activeProduct
=
item
.
title
console
.
log
(
item
.
title
)
},
serviceTypeClick
:
function
(
item
)
{
this
.
activeService
=
item
.
title
console
.
log
(
item
.
title
)
},
agreeClick
:
function
(
isAgree
)
{
console
.
log
(
isAgree
)
},
protocolClick
:
function
()
{
console
.
log
(
'服务协议点击'
)
},
recordClick
:
function
()
{
console
.
log
(
'下单记录'
)
uni
.
navigateTo
({
url
:
'/pages/index/record'
})
},
confirmClick
:
function
()
{
console
.
log
(
'立即下单'
)
uni
.
navigateTo
({
url
:
'/pages/index/success'
})
},
}
}
</
script
>
<
style
>
.content
{
<
style
>
.topView
{
background-color
:
#FFFFFF
;
width
:
100%
;
height
:
100
rpx
;
display
:
flex
;
align-items
:
center
;
justify-content
:
center
;
border-bottom
:
2
rpx
solid
#FAFAFA
;
}
.topTitle
{
font-size
:
40
rpx
;
font-weight
:
bold
;
}
.itemView
{
background-color
:
#FFFFFF
;
display
:
flex
;
flex-direction
:
column
;
flex-direction
:
row
;
align-items
:
center
;
justify-content
:
center
;
}
.logo
{
height
:
200
rpx
;
width
:
200
rpx
;
margin-top
:
200
rpx
;
margin-left
:
auto
;
margin-right
:
auto
;
margin-bottom
:
50
rpx
;
}
.text-area
{
display
:
flex
;
justify-content
:
center
;
}
.title
{
font-size
:
36
rpx
;
color
:
#8f8f94
;
}
justify-content
:
space-between
;
width
:
100%
;
height
:
80
rpx
;
border-bottom
:
2
rpx
solid
#999999
;
}
.itemTitle
{
background-color
:
#FFFFFF
;
margin-left
:
24
rpx
;
font-size
:
28
rpx
;
color
:
#333333
;
}
.itemInput
{
background-color
:
#FFFFFF
;
margin-right
:
24
rpx
;
height
:
70
rpx
;
width
:
70%
;
}
.locationView
{
background-color
:
#FFFFFF
;
margin-right
:
24
rpx
;
height
:
80
rpx
;
width
:
70%
;
display
:
flex
;
flex-direction
:
row
;
align-items
:
center
;
border-bottom
:
2
rpx
solid
#999999
;
}
.locationIcon
{
background-color
:
#999999
;
width
:
40
rpx
;
height
:
40
rpx
;
}
.locationText
{
font-size
:
24
rpx
;
margin-left
:
24
rpx
;
margin-right
:
24
rpx
;
}
.selectItemView
{
background-color
:
#FFFFFF
;
display
:
flex
;
flex-direction
:
row
;
align-items
:
center
;
justify-content
:
space-between
;
width
:
100%
;
border-bottom
:
2
rpx
solid
#999999
;
}
.selectItemTitleView
{
width
:
30%
;
height
:
80
rpx
;
display
:
flex
;
}
.selectItemTitle
{
background-color
:
#FFFFFF
;
margin-top
:
24
rpx
;
margin-left
:
24
rpx
;
font-size
:
28
rpx
;
color
:
#333333
;
}
.selectBackView
{
background-color
:
#FFFFFF
;
margin-top
:
0
rpx
;
margin-right
:
24
rpx
;
width
:
70%
;
display
:
flex
;
flex-wrap
:
wrap
;
}
.selectView
{
background-color
:
#FFFFFF
;
width
:
33.33%
;
display
:
flex
;
}
.innerView
{
background-color
:
#FFFFFF
;
margin-top
:
0
rpx
;
width
:
160
rpx
;
height
:
60
rpx
;
border-radius
:
10
rpx
;
border
:
2
rpx
solid
#999999
;
display
:
flex
;
align-items
:
center
;
justify-content
:
center
;
}
.innerText
{
font-size
:
24
rpx
;
}
.activeColor
{
background-color
:
#999999
;
}
.textAreaItemView
{
background-color
:
#FFFFFF
;
display
:
flex
;
flex-direction
:
row
;
align-items
:
center
;
justify-content
:
space-between
;
width
:
100%
;
}
.textAreaView
{
background-color
:
#FFFFFF
;
margin-top
:
0
rpx
;
margin-right
:
24
rpx
;
width
:
70%
;
}
.textArea
{
background-color
:
#FFFFFF
;
margin-top
:
24
rpx
;
width
:
100%
;
height
:
200
rpx
;
border
:
2
rpx
solid
#999999
;
}
.agreeView
{
background-color
:
#FFFFFF
;
width
:
100%
;
height
:
80
rpx
;
margin-top
:
160
rpx
;
display
:
flex
;
flex-direction
:
row
;
align-items
:
center
;
justify-content
:
center
;
}
.agreeIcon
{
background-color
:
#999999
;
width
:
40
rpx
;
height
:
40
rpx
;
}
.agreeTitle
{
margin-left
:
10
rpx
;
font-size
:
28
rpx
;
}
.agreeProtocol
{
color
:
#007AFF
;
font-size
:
28
rpx
;
}
.bottomView
{
background-color
:
#FFFFFF
;
width
:
100%
;
height
:
110
rpx
;
display
:
flex
;
flex-direction
:
row
;
align-items
:
center
;
border-top
:
2
rpx
solid
#999999
;
position
:
fixed
;
bottom
:
0
;
}
.bottomLeftView
{
background-color
:
#FFFFFF
;
width
:
30%
;
height
:
100%
;
display
:
flex
;
align-items
:
center
;
justify-content
:
center
;
border-right
:
2
rpx
solid
#999999
;
}
.bottomRightView
{
background-color
:
#FFFFFF
;
width
:
70%
;
height
:
100%
;
display
:
flex
;
align-items
:
center
;
justify-content
:
center
;
}
.bottomTitle
{
font-size
:
32
rpx
;
}
</
style
>
take-order/pages/index/record.vue
0 → 100644
View file @
a4b37f52
<
template
>
<view
class=
""
>
下单列表页
</view>
</
template
>
<
script
>
export
default
{
data
()
{
return
{
name
:
''
,
}
},
onLoad
()
{
},
methods
:
{
productTypeClick
:
function
(
item
)
{
console
.
log
(
item
.
title
)
},
}
}
</
script
>
<
style
>
</
style
>
take-order/pages/index/success.vue
0 → 100644
View file @
a4b37f52
<
template
>
<view
class=
""
>
下单成功页
</view>
</
template
>
<
script
>
</
script
>
<
style
>
</
style
>
take-order/unpackage/dist/dev/.sourcemap/mp-weixin/common/vendor.js.map
View file @
a4b37f52
This diff is collapsed.
Click to expand it.
take-order/unpackage/dist/dev/.sourcemap/mp-weixin/pages/index/index.js.map
View file @
a4b37f52
This diff is collapsed.
Click to expand it.
take-order/unpackage/dist/dev/.sourcemap/mp-weixin/pages/index/record.js.map
0 → 100644
View file @
a4b37f52
{"version":3,"sources":["uni-app:///main.js",null,"webpack:////Users/liyifan/Desktop/take-order/take-order/pages/index/record.vue?ae2b","webpack:////Users/liyifan/Desktop/take-order/take-order/pages/index/record.vue?6436","webpack:////Users/liyifan/Desktop/take-order/take-order/pages/index/record.vue?92d4","uni-app:///pages/index/record.vue"],"names":["createPage","Page"],"mappings":";;;;;;;;;;kDAAA;AACA;AACA,8F;AACAA,UAAU,CAACC,eAAD,CAAV,C;;;;;;;;;;;;;ACHA;AAAA;AAAA;AAAA;AAAA;AAAmH;AACnH;AAC0D;AACL;;;AAGrD;AACgN;AAChN,gBAAgB,iNAAU;AAC1B,EAAE,4EAAM;AACR,EAAE,iFAAM;AACR,EAAE,0FAAe;AACjB;AACA;AACA;AACA;AACA;AACA,EAAE,qFAAU;AACZ;AACA;;AAEA;AACe,gF;;;;;;;;;;;;ACtBf;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;;;;;;;;;;;;;ACAA;AAAA;AAAA;AAAA;AAAA;AAAA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;;;;;;;;;;;;;ACRA;AAAA;AAAA;AAAA;AAAo0B,CAAgB,oyBAAG,EAAC,C;;;;;;;;;;;;;;;;;;;ACOx1B;AACA,MADA,kBACA;AACA;AACA,cADA;;AAGA,GALA;AAMA,QANA,oBAMA;;AAEA,GARA;AASA;AACA;AACA;AACA,KAHA,EATA,E","file":"pages/index/record.js","sourcesContent":["import 'uni-pages';\nimport Vue from 'vue'\nimport Page from './pages/index/record.vue'\ncreatePage(Page)","import { render, staticRenderFns, recyclableRender, components } from \"./record.vue?vue&type=template&id=8a0d7bb2&\"\nvar renderjs\nimport script from \"./record.vue?vue&type=script&lang=js&\"\nexport * from \"./record.vue?vue&type=script&lang=js&\"\n\n\n/* normalize component */\nimport normalizer from \"!../../../../../../../Applications/HBuilderX.app/Contents/HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/vue-cli-plugin-uni/packages/vue-loader/lib/runtime/componentNormalizer.js\"\nvar component = normalizer(\n script,\n render,\n staticRenderFns,\n false,\n null,\n null,\n null,\n false,\n components,\n renderjs\n)\n\ncomponent.options.__file = \"pages/index/record.vue\"\nexport default component.exports","export * from \"-!../../../../../../../Applications/HBuilderX.app/Contents/HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/vue-cli-plugin-uni/packages/vue-loader/lib/loaders/templateLoader.js??vue-loader-options!../../../../../../../Applications/HBuilderX.app/Contents/HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/vue-cli-plugin-uni/packages/webpack-preprocess-loader/index.js??ref--16-0!../../../../../../../Applications/HBuilderX.app/Contents/HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/webpack-uni-mp-loader/lib/template.js!../../../../../../../Applications/HBuilderX.app/Contents/HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/vue-cli-plugin-uni/packages/webpack-uni-app-loader/page-meta.js!../../../../../../../Applications/HBuilderX.app/Contents/HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/vue-cli-plugin-uni/packages/vue-loader/lib/index.js??vue-loader-options!../../../../../../../Applications/HBuilderX.app/Contents/HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/webpack-uni-mp-loader/lib/style.js!./record.vue?vue&type=template&id=8a0d7bb2&\"","var components\nvar render = function() {\n var _vm = this\n var _h = _vm.$createElement\n var _c = _vm._self._c || _h\n}\nvar recyclableRender = false\nvar staticRenderFns = []\nrender._withStripped = true\n\nexport { render, staticRenderFns, recyclableRender, components }","import mod from \"-!../../../../../../../Applications/HBuilderX.app/Contents/HBuilderX/plugins/uniapp-cli/node_modules/babel-loader/lib/index.js!../../../../../../../Applications/HBuilderX.app/Contents/HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/vue-cli-plugin-uni/packages/webpack-preprocess-loader/index.js??ref--12-1!../../../../../../../Applications/HBuilderX.app/Contents/HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/webpack-uni-mp-loader/lib/script.js!../../../../../../../Applications/HBuilderX.app/Contents/HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/vue-cli-plugin-uni/packages/vue-loader/lib/index.js??vue-loader-options!../../../../../../../Applications/HBuilderX.app/Contents/HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/webpack-uni-mp-loader/lib/style.js!./record.vue?vue&type=script&lang=js&\"; export default mod; export * from \"-!../../../../../../../Applications/HBuilderX.app/Contents/HBuilderX/plugins/uniapp-cli/node_modules/babel-loader/lib/index.js!../../../../../../../Applications/HBuilderX.app/Contents/HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/vue-cli-plugin-uni/packages/webpack-preprocess-loader/index.js??ref--12-1!../../../../../../../Applications/HBuilderX.app/Contents/HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/webpack-uni-mp-loader/lib/script.js!../../../../../../../Applications/HBuilderX.app/Contents/HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/vue-cli-plugin-uni/packages/vue-loader/lib/index.js??vue-loader-options!../../../../../../../Applications/HBuilderX.app/Contents/HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/webpack-uni-mp-loader/lib/style.js!./record.vue?vue&type=script&lang=js&\"","<template>\n\t<view class=\"\">\n\t\t下单列表页\n\t</view>\n</template>\n\n<script>\n\texport default {\n\t\tdata() {\n\t\t\treturn {\n\t\t\t\tname: '',\n\t\t\t}\n\t\t},\n\t\tonLoad() {\n\t\t\t\n\t\t},\n\t\tmethods: {\n\t\t\tproductTypeClick: function (item) {\n\t\t\t\tconsole.log(item.title)\n\t\t\t},\n\t\t\t\n\t\t}\n\t}\n</script>\n\n<style>\n</style>\n"],"sourceRoot":""}
\ No newline at end of file
take-order/unpackage/dist/dev/.sourcemap/mp-weixin/pages/index/success.js.map
0 → 100644
View file @
a4b37f52
{"version":3,"sources":["uni-app:///main.js","webpack:////Users/liyifan/Desktop/take-order/take-order/pages/index/success.vue?9069","webpack:////Users/liyifan/Desktop/take-order/take-order/pages/index/success.vue?9ed2","webpack:////Users/liyifan/Desktop/take-order/take-order/pages/index/success.vue?a4bb","webpack:////Users/liyifan/Desktop/take-order/take-order/pages/index/success.vue?f94c"],"names":["createPage","Page"],"mappings":";;;;;;;;;;kDAAA;AACA;AACA,gG;AACAA,UAAU,CAACC,gBAAD,CAAV,C;;;;;;;;;;;;;ACHA;AAAA;AAAA;AAAA;AAAA;AAAoH;AACpH;AAC2D;AACL;;;AAGtD;AACgN;AAChN,gBAAgB,iNAAU;AAC1B,EAAE,6EAAM;AACR,EAAE,kFAAM;AACR,EAAE,2FAAe;AACjB;AACA;AACA;AACA;AACA;AACA,EAAE,sFAAU;AACZ;AACA;;AAEA;AACe,gF;;;;;;;;;;;;ACtBf;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;;;;;;;;;;;;;ACAA;AAAA;AAAA;AAAA;AAAA;AAAA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;;;;;;;;;;;;;ACRA;AAAA;AAAA;AAAA;AAAq0B,CAAgB,qyBAAG,EAAC,C","file":"pages/index/success.js","sourcesContent":["import 'uni-pages';\nimport Vue from 'vue'\nimport Page from './pages/index/success.vue'\ncreatePage(Page)","import { render, staticRenderFns, recyclableRender, components } from \"./success.vue?vue&type=template&id=0caffd1d&\"\nvar renderjs\nimport script from \"./success.vue?vue&type=script&lang=js&\"\nexport * from \"./success.vue?vue&type=script&lang=js&\"\n\n\n/* normalize component */\nimport normalizer from \"!../../../../../../../Applications/HBuilderX.app/Contents/HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/vue-cli-plugin-uni/packages/vue-loader/lib/runtime/componentNormalizer.js\"\nvar component = normalizer(\n script,\n render,\n staticRenderFns,\n false,\n null,\n null,\n null,\n false,\n components,\n renderjs\n)\n\ncomponent.options.__file = \"pages/index/success.vue\"\nexport default component.exports","export * from \"-!../../../../../../../Applications/HBuilderX.app/Contents/HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/vue-cli-plugin-uni/packages/vue-loader/lib/loaders/templateLoader.js??vue-loader-options!../../../../../../../Applications/HBuilderX.app/Contents/HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/vue-cli-plugin-uni/packages/webpack-preprocess-loader/index.js??ref--16-0!../../../../../../../Applications/HBuilderX.app/Contents/HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/webpack-uni-mp-loader/lib/template.js!../../../../../../../Applications/HBuilderX.app/Contents/HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/vue-cli-plugin-uni/packages/webpack-uni-app-loader/page-meta.js!../../../../../../../Applications/HBuilderX.app/Contents/HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/vue-cli-plugin-uni/packages/vue-loader/lib/index.js??vue-loader-options!../../../../../../../Applications/HBuilderX.app/Contents/HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/webpack-uni-mp-loader/lib/style.js!./success.vue?vue&type=template&id=0caffd1d&\"","var components\nvar render = function() {\n var _vm = this\n var _h = _vm.$createElement\n var _c = _vm._self._c || _h\n}\nvar recyclableRender = false\nvar staticRenderFns = []\nrender._withStripped = true\n\nexport { render, staticRenderFns, recyclableRender, components }","import mod from \"-!../../../../../../../Applications/HBuilderX.app/Contents/HBuilderX/plugins/uniapp-cli/node_modules/babel-loader/lib/index.js!../../../../../../../Applications/HBuilderX.app/Contents/HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/vue-cli-plugin-uni/packages/webpack-preprocess-loader/index.js??ref--12-1!../../../../../../../Applications/HBuilderX.app/Contents/HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/webpack-uni-mp-loader/lib/script.js!../../../../../../../Applications/HBuilderX.app/Contents/HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/vue-cli-plugin-uni/packages/vue-loader/lib/index.js??vue-loader-options!../../../../../../../Applications/HBuilderX.app/Contents/HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/webpack-uni-mp-loader/lib/style.js!./success.vue?vue&type=script&lang=js&\"; export default mod; export * from \"-!../../../../../../../Applications/HBuilderX.app/Contents/HBuilderX/plugins/uniapp-cli/node_modules/babel-loader/lib/index.js!../../../../../../../Applications/HBuilderX.app/Contents/HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/vue-cli-plugin-uni/packages/webpack-preprocess-loader/index.js??ref--12-1!../../../../../../../Applications/HBuilderX.app/Contents/HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/webpack-uni-mp-loader/lib/script.js!../../../../../../../Applications/HBuilderX.app/Contents/HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/vue-cli-plugin-uni/packages/vue-loader/lib/index.js??vue-loader-options!../../../../../../../Applications/HBuilderX.app/Contents/HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/webpack-uni-mp-loader/lib/style.js!./success.vue?vue&type=script&lang=js&\""],"sourceRoot":""}
\ No newline at end of file
take-order/unpackage/dist/dev/mp-weixin/app.json
View file @
a4b37f52
{
"pages"
:
[
"pages/index/index"
"pages/index/index"
,
"pages/index/record"
,
"pages/index/success"
],
"subPackages"
:
[],
"window"
:
{
...
...
@@ -9,6 +11,5 @@
"navigationBarBackgroundColor"
:
"#F8F8F8"
,
"backgroundColor"
:
"#F8F8F8"
},
"usingComponents"
:
{},
"sitemapLocation"
:
"sitemap6.json"
"usingComponents"
:
{}
}
\ No newline at end of file
take-order/unpackage/dist/dev/mp-weixin/pages/index/index.js
View file @
a4b37f52
...
...
@@ -135,7 +135,70 @@ __webpack_require__.r(__webpack_exports__);
/***/
(
function
(
module
,
exports
,
__webpack_require__
)
{
"use strict"
;
Object
.
defineProperty
(
exports
,
"__esModule"
,
{
value
:
true
});
exports
.
default
=
void
0
;
//
/* WEBPACK VAR INJECTION */
(
function
(
uni
)
{
Object
.
defineProperty
(
exports
,
"__esModule"
,
{
value
:
true
});
exports
.
default
=
void
0
;
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
...
...
@@ -148,13 +211,77 @@ var _default =
{
data
:
function
data
()
{
return
{
title
:
'Hello'
};
name
:
''
,
phone
:
''
,
location
:
''
,
address
:
''
,
productTypeList
:
[
{
title
:
'家用电器'
},
{
title
:
'居家用品'
},
{
title
:
'商用电器'
}],
activeProduct
:
''
,
serviceTypleList
:
[
{
title
:
'安装'
},
{
title
:
'清洗包养'
},
{
title
:
'维修'
}
//,{title:'安装'},{title:'清洗包养'},{title:'维修'}
],
activeService
:
''
,
isAgree
:
false
};
},
onLoad
:
function
onLoad
()
{
},
methods
:
{}
};
exports
.
default
=
_default
;
methods
:
{
locationClick
:
function
locationClick
()
{
var
that
=
this
;
uni
.
chooseLocation
({
success
:
function
success
(
res
)
{
console
.
log
(
'位置名称:'
+
res
.
name
);
console
.
log
(
'详细地址:'
+
res
.
address
);
console
.
log
(
'纬度:'
+
res
.
latitude
);
console
.
log
(
'经度:'
+
res
.
longitude
);
that
.
location
=
res
.
name
;
that
.
address
=
res
.
address
;
},
fail
:
function
fail
(
res
)
{
uni
.
showToast
({
title
:
'定位失败'
});
}
});
},
productTypeClick
:
function
productTypeClick
(
item
)
{
this
.
activeProduct
=
item
.
title
;
console
.
log
(
item
.
title
);
},
serviceTypeClick
:
function
serviceTypeClick
(
item
)
{
this
.
activeService
=
item
.
title
;
console
.
log
(
item
.
title
);
},
agreeClick
:
function
agreeClick
(
isAgree
)
{
console
.
log
(
isAgree
);
},
protocolClick
:
function
protocolClick
()
{
console
.
log
(
'服务协议点击'
);
},
recordClick
:
function
recordClick
()
{
console
.
log
(
'下单记录'
);
uni
.
navigateTo
({
url
:
'/pages/index/record'
});
},
confirmClick
:
function
confirmClick
()
{
console
.
log
(
'立即下单'
);
uni
.
navigateTo
({
url
:
'/pages/index/success'
});
}
}
};
exports
.
default
=
_default
;
/* WEBPACK VAR INJECTION */
}.
call
(
this
,
__webpack_require__
(
/*! ./node_modules/@dcloudio/uni-mp-weixin/dist/index.js */
1
)[
"default"
]))
/***/
}),
/* 17 */
...
...
take-order/unpackage/dist/dev/mp-weixin/pages/index/index.json
View file @
a4b37f52
{
"navigationBarTitleText"
:
"
uni-app
"
,
"navigationBarTitleText"
:
"
下单
"
,
"usingComponents"
:
{}
}
\ No newline at end of file
take-order/unpackage/dist/dev/mp-weixin/pages/index/index.wxml
View file @
a4b37f52
<view class="content"><image class="logo" src="/static/logo.png"></image><view class="text-area"><text class="title">{{title}}</text></view></view>
\ No newline at end of file
<view><view class="topView"><text class="topTitle">扳手会全国百万师傅为你服务</text></view><view class="itemView"><text class="itemTitle">联系人:</text><input class="itemInput" type value="{{name}}" placeholder="请输入联系人姓名" data-event-opts="{{[['input',[['__set_model',['','name','$event',[]]]]]]}}" bindinput="__e"/></view><view class="itemView"><text class="itemTitle">联系电话:</text><input class="itemInput" type value="{{phone}}" placeholder="请输入联系电话" data-event-opts="{{[['input',[['__set_model',['','phone','$event',[]]]]]]}}" bindinput="__e"/></view><view data-event-opts="{{[['tap',[['locationClick']]]]}}" class="itemView" bindtap="__e"><text class="itemTitle">定位位置:</text><view class="locationView"><image class="locationIcon" src mode></image><text class="locationText">{{location}}</text></view></view><view class="itemView"><text class="itemTitle">详细地址:</text><input class="itemInput" type value="{{address}}" placeholder="请输入详细地址" data-event-opts="{{[['input',[['__set_model',['','address','$event',[]]]]]]}}" bindinput="__e"/></view><view class="selectItemView"><view class="selectItemTitleView"><text class="selectItemTitle">产品类型:</text></view><view class="selectBackView"><block wx:for="{{productTypeList}}" wx:for-item="item" wx:for-index="ikey" wx:key="ikey"><view class="selectView"><view data-event-opts="{{[['tap',[['productTypeClick',['$0'],[[['productTypeList','',ikey]]]]]]]}}" class="{{[activeProduct==item.title?'innerView activeColor':'innerView']}}" bindtap="__e"><text class="innerText">{{item.title}}</text></view></view></block></view></view><view class="selectItemView"><view class="selectItemTitleView"><text class="selectItemTitle">服务类型:</text></view><view class="selectBackView"><block wx:for="{{serviceTypleList}}" wx:for-item="item" wx:for-index="ikey" wx:key="ikey"><view class="selectView"><view data-event-opts="{{[['tap',[['serviceTypeClick',['$0'],[[['serviceTypleList','',ikey]]]]]]]}}" class="{{[activeService==item.title?'innerView activeColor':'innerView']}}" bindtap="__e"><text class="innerText">{{item.title}}</text></view></view></block></view></view><view class="textAreaItemView"><view class="selectItemTitleView"><text class="selectItemTitle">服务需求:</text></view><view class="textAreaView"><textarea class="textArea" value="" placeholder="请输入服务需求"></textarea></view></view><view class="agreeView"><image class="agreeIcon" src mode data-event-opts="{{[['tap',[['agreeClick',['$0'],['isAgree']]]]]}}" bindtap="__e"></image><text class="agreeTitle">我已阅读并同意</text><text data-event-opts="{{[['tap',[['protocolClick']]]]}}" class="agreeProtocol" bindtap="__e">《服务协议》</text></view><view class="bottomView"><view data-event-opts="{{[['tap',[['recordClick']]]]}}" class="bottomLeftView" bindtap="__e"><text class="bottomTitle">下单记录</text></view><view data-event-opts="{{[['tap',[['confirmClick']]]]}}" class="bottomRightView" bindtap="__e"><text class="bottomTitle">立即下单</text></view></view></view>
\ No newline at end of file
take-order/unpackage/dist/dev/mp-weixin/pages/index/index.wxss
View file @
a4b37f52
.content {
.topView{
background-color: #FFFFFF;
width: 100%;
height: 100rpx;
display: -webkit-box;
display: -webkit-flex;
display: flex;
-webkit-box-orient: vertical;
-webkit-box-align: center;
-webkit-align-items: center;
align-items: center;
-webkit-box-pack: center;
-webkit-justify-content: center;
justify-content: center;
border-bottom: 2rpx solid #FAFAFA;
}
.topTitle{
font-size: 40rpx;
font-weight: bold;
}
.itemView {
background-color: #FFFFFF;
display: -webkit-box;
display: -webkit-flex;
display: flex;
-webkit-box-orient: horizontal;
-webkit-box-direction: normal;
-webkit-flex-direction: column;
flex-direction: column;
-webkit-flex-direction: row;
flex-direction: row;
-webkit-box-align: center;
-webkit-align-items: center;
align-items: center;
-webkit-box-pack: justify;
-webkit-justify-content: space-between;
justify-content: space-between;
width: 100%;
height: 80rpx;
border-bottom: 2rpx solid #999999;
}
.itemTitle {
background-color: #FFFFFF;
margin-left: 24rpx;
font-size: 28rpx;
color: #333333;
}
.itemInput {
background-color: #FFFFFF;
margin-right: 24rpx;
height: 70rpx;
width: 70%;
}
.locationView {
background-color: #FFFFFF;
margin-right: 24rpx;
height: 80rpx;
width: 70%;
display: -webkit-box;
display: -webkit-flex;
display: flex;
-webkit-box-orient: horizontal;
-webkit-box-direction: normal;
-webkit-flex-direction: row;
flex-direction: row;
-webkit-box-align: center;
-webkit-align-items: center;
align-items: center;
border-bottom: 2rpx solid #999999;
}
.locationIcon {
background-color: #999999;
width: 40rpx;
height: 40rpx;
}
.locationText {
font-size: 24rpx;
margin-left: 24rpx;
margin-right: 24rpx;
}
.selectItemView{
background-color: #FFFFFF;
display: -webkit-box;
display: -webkit-flex;
display: flex;
-webkit-box-orient: horizontal;
-webkit-box-direction: normal;
-webkit-flex-direction: row;
flex-direction: row;
-webkit-box-align: center;
-webkit-align-items: center;
align-items: center;
-webkit-box-pack: justify;
-webkit-justify-content: space-between;
justify-content: space-between;
width: 100%;
border-bottom: 2rpx solid #999999;
}
.selectItemTitleView{
width: 30%;
height: 80rpx;
display: -webkit-box;
display: -webkit-flex;
display: flex;
}
.selectItemTitle {
background-color: #FFFFFF;
margin-top: 24rpx;
margin-left: 24rpx;
font-size: 28rpx;
color: #333333;
}
.selectBackView{
background-color: #FFFFFF;
margin-top: 0rpx;
margin-right: 24rpx;
width: 70%;
display: -webkit-box;
display: -webkit-flex;
display: flex;
-webkit-flex-wrap: wrap;
flex-wrap: wrap;
}
.selectView{
background-color: #FFFFFF;
width: 33.33%;
display: -webkit-box;
display: -webkit-flex;
display: flex;
}
.innerView{
background-color: #FFFFFF;
margin-top: 0rpx;
width: 160rpx;
height: 60rpx;
-webkit-border-radius: 10rpx;
border-radius: 10rpx;
border: 2rpx solid #999999;
display: -webkit-box;
display: -webkit-flex;
display: flex;
-webkit-box-align: center;
-webkit-align-items: center;
align-items: center;
...
...
@@ -14,24 +144,123 @@
-webkit-justify-content: center;
justify-content: center;
}
.logo {
.innerText{
font-size: 24rpx;
}
.activeColor{
background-color: #999999;
}
.textAreaItemView{
background-color: #FFFFFF;
display: -webkit-box;
display: -webkit-flex;
display: flex;
-webkit-box-orient: horizontal;
-webkit-box-direction: normal;
-webkit-flex-direction: row;
flex-direction: row;
-webkit-box-align: center;
-webkit-align-items: center;
align-items: center;
-webkit-box-pack: justify;
-webkit-justify-content: space-between;
justify-content: space-between;
width: 100%;
}
.textAreaView{
background-color: #FFFFFF;
margin-top: 0rpx;
margin-right: 24rpx;
width: 70%;
}
.textArea{
background-color: #FFFFFF;
margin-top: 24rpx;
width: 100%;
height: 200rpx;
width: 200rpx;
margin-top: 200rpx;
margin-left: auto;
margin-right: auto;
margin-bottom: 50rpx;
border: 2rpx solid #999999;
}
.text-area {
.agreeView{
background-color: #FFFFFF;
width: 100%;
height: 80rpx;
margin-top: 160rpx;
display: -webkit-box;
display: -webkit-flex;
display: flex;
-webkit-box-orient: horizontal;
-webkit-box-direction: normal;
-webkit-flex-direction: row;
flex-direction: row;
-webkit-box-align: center;
-webkit-align-items: center;
align-items: center;
-webkit-box-pack: center;
-webkit-justify-content: center;
justify-content: center;
}
.title {
font-size: 36rpx;
color: #8f8f94;
.agreeIcon{
background-color: #999999;
width: 40rpx;
height: 40rpx;
}
.agreeTitle{
margin-left: 10rpx;
font-size: 28rpx;
}
.agreeProtocol{
color: #007AFF;
font-size: 28rpx;
}
.bottomView{
background-color: #FFFFFF;
width: 100%;
height: 110rpx;
display: -webkit-box;
display: -webkit-flex;
display: flex;
-webkit-box-orient: horizontal;
-webkit-box-direction: normal;
-webkit-flex-direction: row;
flex-direction: row;
-webkit-box-align: center;
-webkit-align-items: center;
align-items: center;
border-top: 2rpx solid #999999;
position: fixed;
bottom: 0;
}
.bottomLeftView{
background-color: #FFFFFF;
width: 30%;
height: 100%;
display: -webkit-box;
display: -webkit-flex;
display: flex;
-webkit-box-align: center;
-webkit-align-items: center;
align-items: center;
-webkit-box-pack: center;
-webkit-justify-content: center;
justify-content: center;
border-right: 2rpx solid #999999;
}
.bottomRightView{
background-color: #FFFFFF;
width: 70%;
height: 100%;
display: -webkit-box;
display: -webkit-flex;
display: flex;
-webkit-box-align: center;
-webkit-align-items: center;
align-items: center;
-webkit-box-pack: center;
-webkit-justify-content: center;
justify-content: center;
}
.bottomTitle{
font-size: 32rpx;
}
take-order/unpackage/dist/dev/mp-weixin/pages/index/record.js
0 → 100644
View file @
a4b37f52
This diff is collapsed.
Click to expand it.
take-order/unpackage/dist/dev/mp-weixin/pages/index/record.json
0 → 100644
View file @
a4b37f52
{
"navigationBarTitleText"
:
"下的单"
,
"usingComponents"
:
{}
}
\ No newline at end of file
take-order/unpackage/dist/dev/mp-weixin/pages/index/record.wxml
0 → 100644
View file @
a4b37f52
<view>下单列表页</view>
\ No newline at end of file
take-order/unpackage/dist/dev/mp-weixin/pages/index/record.wxss
0 → 100644
View file @
a4b37f52
/* pages/index/record.wxss */
\ No newline at end of file
take-order/unpackage/dist/dev/mp-weixin/pages/index/success.js
0 → 100644
View file @
a4b37f52
This diff is collapsed.
Click to expand it.
take-order/unpackage/dist/dev/mp-weixin/pages/index/success.json
0 → 100644
View file @
a4b37f52
{
"navigationBarTitleText"
:
"下单"
,
"usingComponents"
:
{}
}
\ No newline at end of file
take-order/unpackage/dist/dev/mp-weixin/pages/index/success.wxml
0 → 100644
View file @
a4b37f52
<view>下单成功页</view>
\ No newline at end of file
take-order/unpackage/dist/dev/mp-weixin/pages/index/success.wxss
0 → 100644
View file @
a4b37f52
/* pages/index/success.wxss */
\ No newline at end of file
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment