Commit 51bb81c9 authored by 潘永坪's avatar 潘永坪

影集开发

parent f8e85439
......@@ -102,7 +102,7 @@ export default {
}
//小按钮
.btn{
background:#3688FF;
background:#FE6600;
display: inline-block;
color: #FFFFFF;
width: 135rpx;
......@@ -114,7 +114,7 @@ export default {
}
//中等按钮
.middle-btn{
background:#3688FF;
background:#FE6600;
display: inline-block;
color: #FFFFFF;
width: 180rpx;
......@@ -126,7 +126,7 @@ export default {
}
//大按钮
.big-btn{
background:#3688FF;
background:#FE6600;
display: inline-block;
color: #FFFFFF;
width: 240rpx;
......
{
"name": "uni-pdtravel",
"version": "1.0.0",
"description": "",
"main": "main.js",
"scripts": {
"test": "echo \"Error: no test specified\" && exit 1"
},
"repository": {
"type": "git",
"url": "http://192.168.0.204/panyongping/uni-pdtravel.git"
},
"keywords": [],
"author": "",
"license": "ISC"
}
......@@ -499,6 +499,13 @@
"enablePullDownRefresh": false
}
},
{
"path" : "albumOrder/albumOrder",
"style" :
{
"navigationBarTitleText" : ""
}
}
]
}
......
<template>
<view>
</view>
</template>
<script>
export default {
data() {
return {
}
},
methods: {
}
}
</script>
<style>
</style>
......@@ -157,6 +157,7 @@ export default {
}
},
onLoad(option) {
// this.downloadFun('https://picture.pangdly.com/img/home1.69efcf8.jpg')
this.orderId=option.orderId||''
this.getDetail()
},
......
......@@ -135,14 +135,14 @@
我的影集
</view>
</view>
<!-- <view class="middle3-list" @click="goshopping()">
<view class="middle3-list" @click="goshopping()">
<view>
<image src="@/static/img/my/center/shopping.png"></image>
</view>
<view>
购物车
</view>
</view> -->
</view>
<view class="middle3-list" @click="online()">
<view>
<image src="@/static/img/my/center/customer.png"></image>
......
......@@ -17,7 +17,7 @@ export default {
let pdToken=uni.getStorageSync('token')||''
let pdCreateUserId=uni.getStorageSync('createUserId')||''
let pdUserId=uni.getStorageSync('userId')||''
let baseUrl=this.$wxurl+'enterpriseWechat?companyId='
let baseUrl=this.$wxurl+'commonInfo?companyId='
this.outUrl=baseUrl+companyId+'&pdOpenid='+pdOpenid+'&pdToken='+pdToken+'&pdCreateUserId='+pdCreateUserId+'&pdUserId='+pdUserId
},
methods: {
......
<template>
<view>
<web-view :src="outUrl"></web-view>
<view class="top">
<view v-for="(item,index) in tabList" :key='index' @click="tabClick(index)" :class="{on:active==index}">
{{item}}
</view>
</view>
<view class="middle">
</view>
<view class="bottom">
<text v-if="active==0">新增联系人</text>
<text v-else>新增地址</text>
</view>
</view>
</template>
......@@ -8,24 +22,60 @@
export default {
data() {
return {
outUrl:'',//跳出地址
active:0,//导航下标
tabList:['联系人','收货地址']//导航标题
}
},
onLoad(option) {
let companyId=this.$commonjs.getCompanyId(option)
let pdOpenid=uni.getStorageSync('openid')||''//胖丁小程序openid,临时用,当公众号授权做好之后可以删除
let pdToken=uni.getStorageSync('token')||''
let pdCreateUserId=uni.getStorageSync('createUserId')||''
let pdUserId=uni.getStorageSync('userId')||''
let baseUrl=this.$wxurl+'commonInfo?companyId='
this.outUrl=baseUrl+companyId+'&pdOpenid='+pdOpenid+'&pdToken='+pdToken+'&pdCreateUserId='+pdCreateUserId+'&pdUserId='+pdUserId
},
methods: {
//---导航点击
tabClick(index){
this.active=index
}
}
}
</script>
<style>
<style lang="scss" scoped>
.top{
position: fixed;
z-index: 1;
background: #fff;
display: flex;
padding:28rpx 0;
width: 100%;
view{
width: 50%;
text-align: center;
}
view.on{
color: $theme;
font-weight: bold;
}
}
.bottom{
height: 128rpx;
background: #fff;
display: flex;
align-items: center;
position: fixed;
bottom: 0;
z-index: 1;
width: 100%;
padding: 0 32rpx;
text{
display:flex;
height: 88rpx;
width: 100%;
align-items: center;
justify-content: center;
background: $red;
color: #fff;
font-size: 32rpx;
border-radius: 44rpx;
}
}
</style>
\ No newline at end of file
<template>
<view>
<web-view :src="outUrl"></web-view>
</view>
</template>
<script>
export default {
data() {
return {
outUrl:'',//跳出地址
}
},
onLoad(option) {
let companyId=this.$commonjs.getCompanyId(option)
let pdOpenid=uni.getStorageSync('openid')||''//胖丁小程序openid,临时用,当公众号授权做好之后可以删除
let pdToken=uni.getStorageSync('token')||''
let pdCreateUserId=uni.getStorageSync('createUserId')||''
let pdUserId=uni.getStorageSync('userId')||''
let baseUrl=this.$wxurl+'shopCart?companyId='
this.outUrl=baseUrl+companyId+'&pdOpenid='+pdOpenid+'&pdToken='+pdToken+'&pdCreateUserId='+pdCreateUserId+'&pdUserId='+pdUserId
},
methods: {
}
}
</script>
<style>
</style>
\ No newline at end of file
<template>
<view class="wrap">
<view class="top">
<text>
共3件宝贝
</text>
<text v-if="showManage" @click="manageChange()">
管理
</text>
<text v-else @click="manageChange()">
退出管理
</text>
</view>
<view class="middle">
<checkbox-group @change="checkboxChange" class="checkbox-box">
<view class="companyList" v-for="(item,index) in 2" :key='index'>
<view class="companyTitle">
<label>
<checkbox
style="transform: scale(0.8)"
class="blue"
:disabled="items.status == 2"
:value="index"
/>
云相片
</label>
</view>
<scroll-view class="scroll" scroll-x="true" v-for="(item2,a) in 5" :key='a'>
<view class="product-wrap">
<view class="product-left">
<label>
<checkbox
style="transform: scale(0.8)"
class="blue"
:disabled="items.status == 2"
:value="a"
/>
<view>
<image src="../../my/static/takeNumber/sdMap.jpg" style="width: 160rpx;height: 160rpx;"></image>
</view>
</label>
</view>
<view class="product-right">
<view>
<text class="product-name">单照片</text>
<text class="product-time">05-29 11:29</text>
</view>
<view>
<view class="product-price">
<text style="font-size: 28rpx;">¥</text>20
</view>
<u-number-box>
<view slot="minus" class="number-minus" >
<u-icon name="minus" color="#FFFFFF" size="32"></u-icon>
</view>
<text slot="input" class="number-input">{{buyNum}}</text>
<view slot="plus" class="number-plus">
<u-icon name="plus" color="#FFFFFF" size="32"></u-icon>
</view>
</u-number-box>
</view>
</view>
</view>
<view class="product-dele">
<view>
<web-view :src="outUrl"></web-view>
<u-icon name='trash' color='#ffffff' size='56'></u-icon>
删除
</view>
</view>
</scroll-view>
</view>
</checkbox-group>
</view>
<view class="bottom">
<view class="bottom-left">
<label>
<checkbox
style="transform: scale(0.8)"
class="blue"
:disabled="items.status == 2"
/>
全选
</label>
</view>
<view class="bottom-middle">
<text>
商品合计:
</text>
<text>
<text style="font-size: 28rpx;">¥</text>100
</text>
</view>
<view class="bottom-right">
<text v-if="showManage" class="btn">去结算</text>
<text v-else class="btn">删除(1)</text>
</view>
</view>
</view>
</template>
......@@ -8,24 +109,153 @@
export default {
data() {
return {
outUrl:'',//跳出地址
showManage:true,//管理显示隐藏
}
},
onLoad(option) {
let companyId=this.$commonjs.getCompanyId(option)
let pdOpenid=uni.getStorageSync('openid')||''//胖丁小程序openid,临时用,当公众号授权做好之后可以删除
let pdToken=uni.getStorageSync('token')||''
let pdCreateUserId=uni.getStorageSync('createUserId')||''
let pdUserId=uni.getStorageSync('userId')||''
let baseUrl=this.$wxurl+'shopCart?companyId='
this.outUrl=baseUrl+companyId+'&pdOpenid='+pdOpenid+'&pdToken='+pdToken+'&pdCreateUserId='+pdCreateUserId+'&pdUserId='+pdUserId
},
methods: {
//---管理和退出管理变化
manageChange(){
this.showManage=!this.showManage
}
}
}
</script>
<style>
<style scoped lang="scss">
.top{
position: fixed;
top: 0;
width: 100%;
z-index: 1;
background: #ffffff;
padding:0 32rpx;
height: 90rpx;
display: flex;
align-items: center;
justify-content: space-between;
text:first-child{
color: #999999;
}
}
.middle{
padding: 90rpx 0 120rpx 0;
}
.companyList{
padding: 32rpx;
background: #ffffff;
}
.companyTitle{
font-weight: 600;
}
.scroll{
white-space: nowrap;
width: 100%;
margin-top: 24rpx;
height: 168rpx;
}
.product-wrap{
display:inline-flex;
width: 100%;
height: 100%;
vertical-align: top;
}
.product-left{
display: flex;
align-items: center;
label{
display: flex;
align-items: center;
image{
width: 160rpx;
height: 160rpx;
border-radius: 8rpx;
margin: 0 28rpx 0 16rpx;
}
}
}
.product-right{
display: flex;
flex: 1;
flex-direction: column;
justify-content: space-between;
>view{
display: flex;
justify-content: space-between;
}
}
.product-name{
font-weight: bold;
}
.product-price{
color: $red;
font-weight: bold;
font-size: 40rpx;
}
.product-time{
font-size: 24rpx;
color: #999999;
}
.product-dele{
margin-left: 20rpx;
display:inline-flex;
width: 132rpx;
background: $red;
align-items: center;
justify-content: center;
color: #ffffff;
font-size: 32rpx;
height: 100%;
border-radius: 0 0 16rpx 0;
vertical-align: top;
}
.bottom{
display: flex;
position: fixed;
bottom: 0;
z-index: 1;
width: 100%;
height: 120rpx;
background: #ffffff;
align-items: center;
padding: 0 24rpx;
}
.bottom-left{
color: #666666;
}
.bottom-middle{
flex: 1;
text-align: center;
text:last-child{
color: $red;
font-weight: bold;
font-size: 40rpx;
}
}
.number-minus {
width: 52rpx;
height: 52rpx;
background:#ccc;
border-radius: 50%;
display: flex;
justify-content: center;
align-items: center;
}
.number-input {
padding:0 20rpx;
width: 100rpx;
text-align: center;
font-size: 40rpx;
}
.number-plus{
width: 52rpx;
height: 52rpx;
background:$theme;
border-radius: 50%;
display: flex;
justify-content: center;
align-items: center;
}
</style>
\ No newline at end of file
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