Commit 216e41df authored by 潘永坪's avatar 潘永坪

Merge branch 'develop' of http://git.tbd.yanzuoguang.com/panyongping/uni-pdtravel into develop

parents 7d237041 93f7c9ce
This diff is collapsed.
...@@ -60,7 +60,6 @@ export default { ...@@ -60,7 +60,6 @@ export default {
openid: uni.getStorageSync('openid'), //openid openid: uni.getStorageSync('openid'), //openid
templateIds//模板Id templateIds//模板Id
} }
uni.setStorageSync('merchantId', data.merchantId)
this.$request('wechatUser/pdAlbum/saveVisitorSurvey', data).then(res => { this.$request('wechatUser/pdAlbum/saveVisitorSurvey', data).then(res => {
if (res.code === '00') { if (res.code === '00') {
uni.showToast({ uni.showToast({
...@@ -68,7 +67,7 @@ export default { ...@@ -68,7 +67,7 @@ export default {
icon: 'success' icon: 'success'
}) })
uni.navigateTo({ uni.navigateTo({
url: './albumIndex?tip=true' url: `./albumIndex?tip=true&merchantId=${data.merchantId}`
}) })
}else{ }else{
uni.showToast({ uni.showToast({
......
<template> <template>
<view class="big-box" :style="{'padding-top': statusBarHeight + 'px'}"> <view class="big-box" :style="{'padding-top': statusBarHeight + 'px'}" v-if="statusBarHeight">
<view class="nav-bar" :style="{'height': navHeight + 'px'}"></view> <view class="nav-bar" :style="{'height': navHeight + 'px'}"></view>
<text class="title">扫脸获取您的照片</text> <text class="title">扫脸获取您的照片</text>
<view class="scan"> <view class="scan">
...@@ -57,6 +57,7 @@ export default { ...@@ -57,6 +57,7 @@ export default {
maskCount: 3,//弹窗倒计时 maskCount: 3,//弹窗倒计时
queryData: {},//查询参数 queryData: {},//查询参数
defaultBrightness: 0.5,//屏幕亮度 defaultBrightness: 0.5,//屏幕亮度
options: {},//路由传参
} }
}, },
methods: { methods: {
...@@ -135,7 +136,7 @@ export default { ...@@ -135,7 +136,7 @@ export default {
}) })
}, },
getQueryField() {//---获取查询参数 getQueryField() {//---获取查询参数
const merchantId = uni.getStorageSync('merchantId') const merchantId = this.options.merchantId
this.$request('scenic/albumConfig/getAlbumConfig',{merchantId}).then(res => {//创建任务 this.$request('scenic/albumConfig/getAlbumConfig',{merchantId}).then(res => {//创建任务
if (res.code === '00') { if (res.code === '00') {
...@@ -228,7 +229,8 @@ export default { ...@@ -228,7 +229,8 @@ export default {
}) })
}, },
}, },
onLoad() { onLoad(options) {
this.options = options
this.recordDeviceInfo() this.recordDeviceInfo()
uni.getScreenBrightness({//获取屏幕亮度 uni.getScreenBrightness({//获取屏幕亮度
success(res) { success(res) {
......
...@@ -9,10 +9,12 @@ ...@@ -9,10 +9,12 @@
<image src="../static/album/myPhoto01.png"></image> <image src="../static/album/myPhoto01.png"></image>
</view> </view>
<u-picker mode="selector" v-model="orderShow" :default-selector="[orderType]" :range="option" range-key="areaName" @confirm="industrysTypeConfirm($event)" @cancel="cancel"></u-picker> <u-picker mode="selector" v-model="orderShow" :default-selector="[orderType]" :range="option" range-key="areaName" @confirm="industrysTypeConfirm($event)" @cancel="cancel"></u-picker>
<view v-for="(item,index) in merchantList" :key="index" class="left-project" :class="[projectCheck==0?'left-projectDe':'']" @click="projectClick(index,item.id)"> <template v-for="(item,index) in merchantList">
<view :key="index" v-if="index<2" class="left-project" :class="[projectCheck==0?'left-projectDe':'']" @click="projectClick(index,item.id)">
{{item.name}} {{item.name}}
<i>{{previewData.length}}</i> <i>{{previewData.length}}</i>
</view> </view>
</template>
</view> </view>
<view class="address-right" @click="projectMoreFun()" v-if="merchantList.length>2"> <view class="address-right" @click="projectMoreFun()" v-if="merchantList.length>2">
<u-icon name="more-dot-fill"></u-icon> <u-icon name="more-dot-fill"></u-icon>
...@@ -175,7 +177,7 @@ export default { ...@@ -175,7 +177,7 @@ export default {
this.openid = uni.getStorageSync('openid') //获取openid this.openid = uni.getStorageSync('openid') //获取openid
this.faceIds = JSON.parse(option.faceIds) this.faceIds = JSON.parse(option.faceIds)
this.location = JSON.parse(uni.getStorageSync('location')) this.location = JSON.parse(uni.getStorageSync('location'))
this.merchantId = uni.getStorageSync('merchantId')// 'z0015605022691a5945bbe463141668c' this.merchantId = option.merchantId||''// 'z0015605022691a5945bbe463141668c'
this.obtainProvince()//获取省市区 this.obtainProvince()//获取省市区
this.inquireMerchant()//查询所有商户 this.inquireMerchant()//查询所有商户
this.getPhotos()//照片列表 this.getPhotos()//照片列表
...@@ -330,10 +332,11 @@ export default { ...@@ -330,10 +332,11 @@ export default {
tickets:1, tickets:1,
productId:this.merchantMessage[0].merchantExtendProjectId, productId:this.merchantMessage[0].merchantExtendProjectId,
orderSource:11,//指定为相册优惠券 orderSource:11,//指定为相册优惠券
merchantType:11,//指定为相册
} }
this.$request('wechatUser/myPage/usableCouponList',data).then((res)=>{ this.$request('wechatUser/myPage/usableCouponList',data).then((res)=>{
if(res.code=='00'){ if(res.code=='00'){
if(res.data.masterSlaveCouponList!=undefined){ if(res.data.masterSlaveCouponList.length>0){
res.data.masterSlaveCouponList.forEach(item=>{ res.data.masterSlaveCouponList.forEach(item=>{
item['couponPrice']=item.deductPrice item['couponPrice']=item.deductPrice
}) })
...@@ -463,6 +466,7 @@ export default { ...@@ -463,6 +466,7 @@ export default {
overflow-x: auto; overflow-x: auto;
.left-name { .left-name {
flex-shrink: 0;
font-size: 32rpx; font-size: 32rpx;
color: #999999; color: #999999;
line-height: 76rpx; line-height: 76rpx;
...@@ -470,6 +474,7 @@ export default { ...@@ -470,6 +474,7 @@ export default {
} }
.left-picker { .left-picker {
flex-shrink:0;
display: flex; display: flex;
font-size: 32rpx; font-size: 32rpx;
color: #333333; color: #333333;
......
...@@ -3,7 +3,8 @@ ...@@ -3,7 +3,8 @@
<view class="bg"> <view class="bg">
<image src="../static/vlog/icon/camera.png"></image> <image src="../static/vlog/icon/camera.png"></image>
</view> </view>
<camera class="camera" device-position="front" flash="off" @error="error" @initdone="initdone"></camera> <camera class="camera" device-position="front" flash="off" @error="error"></camera>
<!-- <camera class="camera" device-position="front" flash="off" @error="error" @initdone="initdone"></camera> -->
<view class="surface" v-show="show"> <view class="surface" v-show="show">
<view>请正对镜头</view> <view>请正对镜头</view>
<text>{{text}}</text> <text>{{text}}</text>
...@@ -47,6 +48,7 @@ export default { ...@@ -47,6 +48,7 @@ export default {
} }
}, },
onLoad() { //代替 vue 里面的 created onLoad() { //代替 vue 里面的 created
this.initdone()
}, },
onReady() { //代替 vue 里面的 mounted onReady() { //代替 vue 里面的 mounted
}, },
......
static/img/my/coupon.png

11.2 KB | W: | H:

static/img/my/coupon.png

9.02 KB | W: | H:

static/img/my/coupon.png
static/img/my/coupon.png
static/img/my/coupon.png
static/img/my/coupon.png
  • 2-up
  • Swipe
  • Onion skin
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