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

preview-photo

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