Commit 2dec7783 authored by 李俊赕's avatar 李俊赕

preview-photo

parent 8134a94e
......@@ -62,6 +62,12 @@
"navigationBarTitleText": "选择品牌"
}
},
{
"path": "pages/photo/take",
"style": {
"navigationBarTitleText": "拍照-ljd"
}
},
......@@ -89,13 +95,13 @@
{
"path": "pages/take/index",
"style": {
"navigationBarTitleText": "接单",
"enablePullDownRefresh": true
}
},
// {
// "path": "pages/take/try",
// "style": {
// "navigationBarTitleText": "接单",
// "enablePullDownRefresh": true
// }
// },
......@@ -180,9 +186,16 @@
"navigationBarTitleText": "uni-app",
"navigationBarBackgroundColor": "#F8F8F8",
"backgroundColor": "#F8F8F8"
},
"condition": { //模式配置,仅开发期间生效
"current": 0, //当前激活的模式(list 的索引项)
"list": [{
"name": "拍照小工具", //模式名称
"path": "pages/photo/try", //启动页面,必选
"query": "" //启动参数,在页面的onLoad函数里面得到
}]
}
}
<template>
<view>
<image class="pic" :src="images[0]" mode="aspectFill"></image>
</view>
</template>
<script>
......@@ -10,10 +12,20 @@
}
},
onLoad(e) {
console.log(e,'e')
if(e.img){
this.images = [e.img]
}
},
methods: {
showPreviewFn(img) {
uni.previewImage({
current: 0,
urls: this.images
});
},
//拨打客服 点击
phoneCallClick: function (phone) {
uni.makePhoneCall({
......@@ -28,4 +40,9 @@
</script>
<style>
.pic{
display: block;
width:100%;
height:auto;
}
</style>
This diff is collapsed.
This diff is collapsed.
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment