Commit 57d9d58b authored by 刘文虎's avatar 刘文虎
parents b6ac3681 76175dff
Pipeline #2825 canceled with stages
// 废弃
const UNI_APP = {
apiUrl: 'https://api.weixin.qq.com',
qn_base_url: 'http://reu2asz23.hn-bkt.clouddn.com/icon/',
qn_asset_url: 'https://reu2asz23.hn-bkt.clouddn.com/upload-image/',
qn_base_url: 'https://static-book.kaying.cc/icon/',
qn_asset_url: 'https://static-book.kaying.cc/upload-image/',
argoDebugMode: 1,
version: 'v1.0.0',
}
......
const UNI_APP = {
apiUrl: 'https://api2-fans.kaying.cc/',
qn_base_url: 'http://reu2asz23.hn-bkt.clouddn.com/icon/',
qn_asset_url: 'https://reu2asz23.hn-bkt.clouddn.com/upload-image/',
qn_base_url: 'https://static-book.kaying.cc/icon/',
qn_asset_url: 'https://static-book.kaying.cc/upload-image/',
argoDebugMode: 0,
version: 'v1.0.0',
}
......
const UNI_APP = {
apiUrl: 'https://api-book-test.banshouhui.com',
qn_base_url: 'http://reu2asz23.hn-bkt.clouddn.com/icon/',
qn_asset_url: 'https://reu2asz23.hn-bkt.clouddn.com/upload-image/',
qn_base_url: 'https://static-book.kaying.cc/icon/',
qn_asset_url: 'https://static-book.kaying.cc/upload-image/',
argoDebugMode: 1,
version: 'v1.0.0',
}
......
<template>
<view class="cell-card">
<view class="back-view" v-if="isGreen">
<image :src="image"></image>
</view>
<view class="content-view">
<view class="title-view"></view>
<view class="text-view">
<text>{{ info.backContent }}</text>
</view>
</view>
</view>
</template>
<script>
export default {
props: {
info: {
type: Object,
default() {
return {}
},
},
},
data() {
return {
loading: true,
}
},
computed: {
baseUrl() {
return process.uniEnv.qn_base_url
},
// green 绿;blue 蓝;black 黑;
image() {
switch (this.info.type) {
case 'green':
return this.baseUrl + 'muban1fanmian@3x.png'
case 'blue':
return this.baseUrl + 'muban2fanmian@3x.png'
case 'black':
return this.baseUrl + 'muban3fanmian@3x.png'
}
},
},
methods: {},
}
</script>
<style scoped lang="scss">
.cell-card {
width: 100%;
height: 420rpx;
border-radius: 16rpx;
background-color: #ffffff;
position: relative;
overflow: hidden;
.back-view {
position: absolute;
top: 0;
right: 0;
height: 0;
width: 100%;
height: 100%;
}
.content-view {
position: relative;
display: flex;
justify-content: center;
align-items: center;
flex-direction: column;
.title-view {
font-size: 40rpx;
font-weight: bold;
color: #ffffff;
margin-bottom: 48rpx;
}
.text-view {
display: flex;
justify-content: center;
align-items: center;
font-size: 28rpx;
font-weight: bold;
color: #ffffff;
}
}
}
</style>
......@@ -51,14 +51,14 @@ export default {
<style scoped lang="scss">
.cell-relation {
padding: 0 24rpx;
background-color: #2D3340;
background-color: transparent;
.content-view {
height: 100rpx;
height: 88rpx;
display: flex;
justify-content: space-between;
align-items: center;
font-size: 26rpx;
color: #ffffff;
color: #333333;
.left-view {
display: flex;
align-items: center;
......@@ -66,10 +66,10 @@ export default {
width: 260rpx;
.image-view {
width: 48rpx;
height: 48rpx;
width: 56rpx;
height: 56rpx;
border-radius: 50%;
background-color: #ffffff;
background-color: #FFFFFF;
}
.name-view {
margin-left: 16rpx;
......
<template>
<u-popup
v-model="show"
safe-area-inset-bottom
mode="center"
width="100%"
height="768"
:closeable="false"
@close="handleClickSure"
>
<view class="content-view">
<view
class="image-view"
v-for="(item, index) in images"
:key="index"
@click="$u.throttle(handleClickSure, 500)"
>
<image :src="item"></image>
</view>
</view>
</u-popup>
</template>
<script>
export default {
props: {
visible: {
type: Boolean,
default: false,
},
images: {
type: Array,
default() {
return []
},
},
},
data() {
return {
show: false,
}
},
watch: {
visible(val) {
this.show = val
console.log('----------------',this.images)
},
},
methods: {
changeVisibleValue(val) {
this.show = val
this.$emit('update:visible', val)
},
handleClickSure() {
this.changeVisibleValue(false)
this.$emit('click')
},
},
}
</script>
<style lang="scss" scoped>
.content-view {
display: flex;
justify-content: center;
align-items: center;
position: relative;
flex-direction: column;
width: 100%;
background-color: transparent;
padding: 0 64rpx;
.image-view {
width: 100%;
height: 372rpx;
margin-bottom: 24rpx;
border-radius: 8rpx;
}
}
</style>
......@@ -288,6 +288,24 @@
"enablePullDownRefresh": false,
"disableScroll": true
}
},{
"path": "create",
"name": "card-create",
"style": {
"navigationBarTitleText": "创建名片",
"navigationStyle": "custom",
"enablePullDownRefresh": false,
"disableScroll": true
}
},{
"path": "share",
"name": "card-share",
"style": {
"navigationBarTitleText": "电子名片",
"navigationStyle": "custom",
"enablePullDownRefresh": false,
"disableScroll": true
}
}]
}],
"globalStyle": {
......
This diff is collapsed.
......@@ -15,7 +15,7 @@
</view>
<template v-else>
<view class="card-content">
<Card :info="info.card"/>
<Card :info="info.card" />
</view>
<view class="tool-view">
<view
......@@ -50,10 +50,11 @@
</view>
<view class="list-view">
<view
class="list-content"
v-if="currentList && currentList.length > 0"
></view>
<view class="list-content" v-if="list && list.length > 0">
<view v-for="(item, index) in list" :key="index">
<CellRelation :member="item" />
</view>
</view>
<NoData
v-else-if="!loading"
customStyle="margin-top:0rpx;height:510rpx"
......@@ -77,7 +78,7 @@ export default {
NavbarRight,
NoData,
Card,
CellRelation
CellRelation,
},
data() {
return {
......@@ -132,10 +133,26 @@ export default {
address:
'dfsafdsafdasf发撒范德萨范德萨发的范德萨范大师傅的范德萨范大事发声的范德萨范德萨发撒发',
phone: '131231241314',
qrCode: 'http://reu2asz23.hn-bkt.clouddn.com/icon/beijing%403x.png',
qrCode: 'http://static-book.kaying.cc/icon/beijing%403x.png',
},
}
this.list = []
this.list = [
{
nickname: 'fsafdsa',
avatar: 'http://static-book.kaying.cc/icon/beijing%403x.png',
createTime: '2087-32-32 21:99:00',
},
{
nickname: 'gsdsaf',
avatar: '',
createTime: '2087-32-32 21:99:00',
},
{
nickname: 'fsajyrtfdsa',
avatar: 'http://static-book.kaying.cc/icon/beijing%403x.png',
createTime: '2087-32-32 21:99:00',
},
]
this.loading = false
},
handleChangeList(key) {
......@@ -143,6 +160,14 @@ export default {
this.loading = true
this.getInfo()
},
handleClickAdd() {
this.$u.route({
url: 'pages/card/create',
params: {
cardId: id,
}
})
},
},
}
</script>
......@@ -242,6 +267,8 @@ export default {
background-color: #f6f7fa;
border-radius: 16rpx;
.list-content {
padding: 16rpx 0;
min-height: 510rpx;
}
.no-data {
}
......
<template>
<view class="card-share">
<NavbarRight title="电子名片" />
<view class="content-view">
<view class="card-view">
<Card :info="info" />
</view>
<CardBack :info="info" />
</view>
<view class="bottom-view">
<view class="left-view">
<u-button :custom-style="customScan" @click="handleClickScan">
<view class="image-view">
<image :src="bodadianhuaImage"></image>
</view>
<view class="scan-view">拨打电话</view>
</u-button>
</view>
<view class="right-view">
<u-button
:custom-style="customConFirm"
@click="handleClickConFirm"
class="confirm-button"
>
<view class="image-view">
<image :src="cunrutongxunluImage"></image>
</view>
<view class="confirm-view">存入手机通讯录</view>
</u-button>
</view>
</view>
</view>
</template>
<script>
import NavbarRight from '@/components/navbar-right'
import Card from '@/components/cell-card'
import CardBack from '@/components/cell-card-back'
export default {
components: {
NavbarRight,
Card,
CardBack,
},
data() {
return {
cardId: '',
info: {},
}
},
computed: {
baseUrl() {
return process.uniEnv.qn_base_url
},
bodadianhuaImage() {
return this.baseUrl + 'bodadianhua@3x.png'
},
cunrutongxunluImage() {
return this.baseUrl + 'cunrutongxunlu@3x.png'
},
customScan() {
return {
color: 'transparent',
'background-color': '#ffffff',
height: '104rpx',
'border-radius': '16rpx',
width: '332rpx',
}
},
customConFirm() {
return {
color: 'transparent',
'background-color': '#02a074',
height: '104rpx',
'border-radius': '16rpx',
width: '332rpx',
}
},
},
onLoad(options) {
if (options && options.cardId) {
this.cardId = options.cardId
}
this.init()
},
onShow() {},
methods: {
init() {
this.loading = false
this.info = {
type: 'green',
title: '扳手专业品牌家电维修',
name: '小扳手',
address:
'dfsafdsafdasf发撒范德萨范德萨发的范德萨范大师傅的范德萨范大事发声的范德萨范德萨发撒发',
phone: '131231241314',
qrCode: 'http://static-book.kaying.cc/icon/beijing%403x.png',
backContent: `家电维修安装、清洗保养服务、二手家电回收\n水电维修服务、家具维保服务、家居清洗美化`,
}
},
handleClickScan() {},
handleClickConfirm() {},
},
}
</script>
<style scoped lang="scss">
.card-share {
position: relative;
display: flex;
flex-direction: column;
height: 100vh;
background-color: #f6f7fa;
.content-view {
position: relative;
height: 100%;
overflow: auto;
padding: 24rpx 24rpx 44rpx 24rpx;
.card-view {
margin-bottom: 24rpx;
}
}
.bottom-view {
position: relative;
margin: 16rpx 24rpx 36rpx 24rpx;
display: flex;
align-items: center;
justify-content: space-between;
.left-view {
display: flex;
align-items: center;
justify-content: center;
.image-view {
width: 32rpx;
height: 32rpx;
margin-right: 16rpx;
display: flex;
align-items: center;
justify-content: center;
}
.scan-view {
color: #02a074;
height: 104rpx;
line-height: 104rpx;
font-weight: bold;
font-size: 32rpx;
}
}
.right-view {
margin-left: 24rpx;
flex: 1;
display: flex;
align-items: center;
justify-content: center;
.image-view {
width: 32rpx;
height: 32rpx;
margin-right: 16rpx;
display: flex;
align-items: center;
justify-content: center;
}
.confirm-view {
color: #ffffff;
height: 104rpx;
line-height: 104rpx;
font-weight: bold;
font-size: 32rpx;
}
}
}
}
</style>
......@@ -299,12 +299,12 @@ export default {
范德萨范大师发大水范德萨发送范德萨范德萨范德萨
范德萨范德萨`,
images: [
'http://reu2asz23.hn-bkt.clouddn.com/icon/beijing%403x.png',
'http://reu2asz23.hn-bkt.clouddn.com/icon/riqi@3x.png',
'http://reu2asz23.hn-bkt.clouddn.com/shijian@3x.png',
'http://reu2asz23.hn-bkt.clouddn.com/icon/daochuzhangdan@3x.png',
'http://reu2asz23.hn-bkt.clouddn.com/icon/didian@3x.png',
'http://reu2asz23.hn-bkt.clouddn.com/shanchuzhangdanxiangqing@3x.png',
'http://static-book.kaying.cc/icon/beijing%403x.png',
'http://static-book.kaying.cc/icon/riqi@3x.png',
'http://static-book.kaying.cc/shijian@3x.png',
'http://static-book.kaying.cc/icon/daochuzhangdan@3x.png',
'http://static-book.kaying.cc/icon/didian@3x.png',
'http://static-book.kaying.cc/shanchuzhangdanxiangqing@3x.png',
],
records: [
{
......
......@@ -51,7 +51,7 @@
</view>
<view class="images-view" v-if="info.images && info.images.length > 0">
<view
:class="['image-view', { 'not-last': (index + 1) % 4 }]"
:class="'image-view ' + ((index + 1) % 4 ? 'not-last' : '')"
v-for="(item, index) in info.images"
:key="index"
hover-class="u-hover-class"
......@@ -302,12 +302,12 @@ export default {
范德萨范大师发大水范德萨发送范德萨范德萨范德萨
范德萨范德萨`,
images: [
'http://reu2asz23.hn-bkt.clouddn.com/icon/beijing%403x.png',
'http://reu2asz23.hn-bkt.clouddn.com/icon/beijing%403x.png',
'http://reu2asz23.hn-bkt.clouddn.com/icon/beijing%403x.png',
'http://reu2asz23.hn-bkt.clouddn.com/icon/beijing%403x.png',
'http://reu2asz23.hn-bkt.clouddn.com/icon/beijing%403x.png',
'http://reu2asz23.hn-bkt.clouddn.com/icon/beijing%403x.png',
'http://static-book.kaying.cc/icon/beijing%403x.png',
'http://static-book.kaying.cc/icon/beijing%403x.png',
'http://static-book.kaying.cc/icon/beijing%403x.png',
'http://static-book.kaying.cc/icon/beijing%403x.png',
'http://static-book.kaying.cc/icon/beijing%403x.png',
'http://static-book.kaying.cc/icon/beijing%403x.png',
],
records: [
{
......
......@@ -72,7 +72,7 @@
</view>
<view class="images-view" v-if="info.images && info.images.length > 0">
<view
:class="['image-view', { 'not-last': (index + 1) % 4 }]"
:class="'image-view ' + ((index + 1) % 4 ? 'not-last' : '')"
v-for="(item, index) in info.images"
:key="index"
hover-class="u-hover-class"
......@@ -328,12 +328,12 @@ export default {
范德萨范大师发大水范德萨发送范德萨范德萨范德萨
范德萨范德萨`,
images: [
'http://reu2asz23.hn-bkt.clouddn.com/icon/beijing%403x.png',
'http://reu2asz23.hn-bkt.clouddn.com/icon/beijing%403x.png',
'http://reu2asz23.hn-bkt.clouddn.com/icon/beijing%403x.png',
'http://reu2asz23.hn-bkt.clouddn.com/icon/beijing%403x.png',
'http://reu2asz23.hn-bkt.clouddn.com/icon/beijing%403x.png',
'http://reu2asz23.hn-bkt.clouddn.com/icon/beijing%403x.png',
'http://static-book.kaying.cc/icon/beijing%403x.png',
'http://static-book.kaying.cc/icon/beijing%403x.png',
'http://static-book.kaying.cc/icon/beijing%403x.png',
'http://static-book.kaying.cc/icon/beijing%403x.png',
'http://static-book.kaying.cc/icon/beijing%403x.png',
'http://static-book.kaying.cc/icon/beijing%403x.png',
],
detailList: [
{
......@@ -398,6 +398,9 @@ export default {
},
handleClickChange() {
console.log('--------handleClickChange---------')
},
handleClickScan() {
},
handleClickConfirm(select) {
if (this.current == 0) {
......
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