更改阳上人往生者
This commit is contained in:
+5
-1
@@ -57,7 +57,7 @@ const postMobileCode = (mobile, code) => service.post('/api/sms-validate', { mob
|
|||||||
const getGoodsDetail = (goods_type, goods_id, temple_id) => service.get(`/api/${goods_type}/get-info?id=${goods_id}&temple_id=${temple_id}`);
|
const getGoodsDetail = (goods_type, goods_id, temple_id) => service.get(`/api/${goods_type}/get-info?id=${goods_id}&temple_id=${temple_id}`);
|
||||||
|
|
||||||
// 佛前供灯商品
|
// 佛前供灯商品
|
||||||
const getGoodsLightDetail = (goods_type, goods_id, temple_id) => service.get(`/api/temple/light?id=${goods_id}&temple_id=${temple_id}`);
|
const getGoodsLightDetail = (goods_type, goods_id, temple_id) => service.get(`/api/temple/light?temple_id=${temple_id}`);
|
||||||
|
|
||||||
// 创建日行一善商品订单
|
// 创建日行一善商品订单
|
||||||
const createFriendlyDayOrder = data => service.post('/api/order/create-friendly', data);
|
const createFriendlyDayOrder = data => service.post('/api/order/create-friendly', data);
|
||||||
@@ -167,7 +167,11 @@ const getPlatformHome = agent_id => service.get(`/api/home?agent_id=${agent_id}`
|
|||||||
// 查询是否登录
|
// 查询是否登录
|
||||||
const hasLogin = () => service.get('/api/has-login');
|
const hasLogin = () => service.get('/api/has-login');
|
||||||
|
|
||||||
|
// 查询
|
||||||
|
const getMeritTypes = () => service.get('/api/order/get-merit-types');
|
||||||
|
|
||||||
export {
|
export {
|
||||||
|
getMeritTypes,
|
||||||
getDynamicDataByGoodsId,
|
getDynamicDataByGoodsId,
|
||||||
hasLogin,
|
hasLogin,
|
||||||
getHotWords,
|
getHotWords,
|
||||||
|
|||||||
@@ -34,7 +34,7 @@ export default {
|
|||||||
default(){
|
default(){
|
||||||
return []
|
return []
|
||||||
}
|
}
|
||||||
}
|
},
|
||||||
},
|
},
|
||||||
data() {
|
data() {
|
||||||
return {
|
return {
|
||||||
|
|||||||
@@ -400,7 +400,7 @@ export default {
|
|||||||
}
|
}
|
||||||
|
|
||||||
.caret{
|
.caret{
|
||||||
padding-bottom: 2.2rem;
|
padding-bottom: .2rem;
|
||||||
.head{
|
.head{
|
||||||
display: flex;
|
display: flex;
|
||||||
justify-content: space-between;
|
justify-content: space-between;
|
||||||
|
|||||||
@@ -5,16 +5,30 @@
|
|||||||
<div class="field">
|
<div class="field">
|
||||||
<label class="required">功德芳名</label>
|
<label class="required">功德芳名</label>
|
||||||
<div class="input-wrapper">
|
<div class="input-wrapper">
|
||||||
<input class="input" :value="meritName" type="text" readonly placeholder="请填写功德主姓名" @click="onShowDialog('name')">
|
<input class="input" :value="meritName" type="text" readonly placeholder="请输入功德芳名" @click="onShowDialog('name')">
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
<div class="field">
|
<div class="field">
|
||||||
<label >心愿</label>
|
<label >心愿</label>
|
||||||
<div class="input-wrapper" @click="onShowDesire">
|
<div class="input-wrapper" @click="onShowDesire">
|
||||||
<textarea class="input" v-model="dream" placeholder="请填写您的心愿" readonly type="textarea" />
|
<textarea class="input" v-model="dream" placeholder="请填写您的心愿" readonly type="textarea" />
|
||||||
<i class="iconfont icon-arrow-right"></i>
|
<i class="iconfont icon-arrow-right"></i>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
<template v-if="query.is_die == '1'">
|
||||||
|
<div class="field">
|
||||||
|
<label class="required">阳上人</label>
|
||||||
|
<div class="input-wrapper">
|
||||||
|
<input class="input" v-model="live_name" type="tel" placeholder="请填写阳上人">
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
<div class="field">
|
||||||
|
<label class="required">往生者</label>
|
||||||
|
<div class="input-wrapper">
|
||||||
|
<input class="input" v-model="die_name" type="tel" placeholder="请填写往生者">
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
</template>
|
||||||
<div class="field">
|
<div class="field">
|
||||||
<label >手机号码</label>
|
<label >手机号码</label>
|
||||||
<div class="input-wrapper">
|
<div class="input-wrapper">
|
||||||
@@ -25,7 +39,7 @@
|
|||||||
</div>
|
</div>
|
||||||
|
|
||||||
<div class="btn-wrapper">
|
<div class="btn-wrapper">
|
||||||
<span class="total">合计: ¥{{query.amount}}</span>
|
<span class="total">合计: <b class="price">¥{{query.amount}}</b></span>
|
||||||
<button type="button" @click="onNext">下一步</button>
|
<button type="button" @click="onNext">下一步</button>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
@@ -36,7 +50,6 @@
|
|||||||
</template>
|
</template>
|
||||||
|
|
||||||
<script>
|
<script>
|
||||||
|
|
||||||
export default {
|
export default {
|
||||||
name: 'fill-name',
|
name: 'fill-name',
|
||||||
data(){
|
data(){
|
||||||
@@ -48,7 +61,12 @@ export default {
|
|||||||
dialogName: '',
|
dialogName: '',
|
||||||
showMeritName: false,
|
showMeritName: false,
|
||||||
showDesire: false,
|
showDesire: false,
|
||||||
merit_names: []
|
merit_names: [],
|
||||||
|
meritTypes: [],
|
||||||
|
meritTypeId: null,
|
||||||
|
showBuddhi: true,
|
||||||
|
live_name: '', // 阳上人姓名
|
||||||
|
die_name: '', // 往生人姓名
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
computed: {
|
computed: {
|
||||||
@@ -57,12 +75,11 @@ export default {
|
|||||||
},
|
},
|
||||||
meritId(){
|
meritId(){
|
||||||
return this.merit_names.map(item => item.id).join(',')
|
return this.merit_names.map(item => item.id).join(',')
|
||||||
}
|
},
|
||||||
},
|
},
|
||||||
created() {
|
|
||||||
|
|
||||||
},
|
|
||||||
methods: {
|
methods: {
|
||||||
|
|
||||||
onShowDialog(){
|
onShowDialog(){
|
||||||
this.showMeritName = true;
|
this.showMeritName = true;
|
||||||
},
|
},
|
||||||
@@ -79,18 +96,10 @@ export default {
|
|||||||
if(!this.meritId){
|
if(!this.meritId){
|
||||||
return this.$toast.fail('请填写功德芳名');
|
return this.$toast.fail('请填写功德芳名');
|
||||||
}
|
}
|
||||||
// if(!this.dream){
|
if(this.query.is_die == 1 && (!this.live_name || !this.die_name)){
|
||||||
// return this.$toast.fail('请填写心愿');
|
return this.$toast.fail('请填写阳上人与往生人')
|
||||||
// }
|
}
|
||||||
// if(!this.mobile){
|
|
||||||
// return this.$toast.fail('请填写功德主手机号');
|
|
||||||
// }
|
|
||||||
console.log('query', {
|
|
||||||
...this.$route.query,
|
|
||||||
dream: this.dream,
|
|
||||||
merit_name: this.meritName,
|
|
||||||
mobile: this.mobile,
|
|
||||||
})
|
|
||||||
this.$router.push({
|
this.$router.push({
|
||||||
name: 'pay',
|
name: 'pay',
|
||||||
query: {
|
query: {
|
||||||
@@ -98,13 +107,24 @@ export default {
|
|||||||
dream: this.dream,
|
dream: this.dream,
|
||||||
merit_name: this.meritName,
|
merit_name: this.meritName,
|
||||||
mobile: this.mobile,
|
mobile: this.mobile,
|
||||||
|
live_name: this.live_name,
|
||||||
|
die_name: this.die_name
|
||||||
}
|
}
|
||||||
})
|
})
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
</script>
|
</script>
|
||||||
|
<style lang="scss">
|
||||||
|
.fill-name{
|
||||||
|
.field{
|
||||||
|
.van-radio__icon--checked .van-icon{
|
||||||
|
background: #CF9E3B;
|
||||||
|
border-color: #CF9E3B;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
</style>
|
||||||
<style scoped lang="scss">
|
<style scoped lang="scss">
|
||||||
.fill-name{
|
.fill-name{
|
||||||
background: #f9f9f9;
|
background: #f9f9f9;
|
||||||
@@ -121,7 +141,7 @@ export default {
|
|||||||
box-shadow: 0 0 .2rem rgba(0,0,0,0.05);
|
box-shadow: 0 0 .2rem rgba(0,0,0,0.05);
|
||||||
}
|
}
|
||||||
.field{
|
.field{
|
||||||
margin-bottom: .8rem;
|
margin-bottom: .6rem;
|
||||||
.required{
|
.required{
|
||||||
&::after{
|
&::after{
|
||||||
content: '*';
|
content: '*';
|
||||||
@@ -132,16 +152,19 @@ export default {
|
|||||||
label{
|
label{
|
||||||
color: #333;
|
color: #333;
|
||||||
}
|
}
|
||||||
|
|
||||||
.input-wrapper{
|
.input-wrapper{
|
||||||
margin-top: .2rem;
|
margin-top: .2rem;
|
||||||
border: 1px solid rgba(183, 173, 173, 0.54);
|
border: 1px solid rgba(183, 173, 173, 0.54);
|
||||||
padding: .2rem .3rem;
|
padding: .2rem .3rem;
|
||||||
border-radius: .1rem;
|
border-radius: .1rem;
|
||||||
position: relative;
|
position: relative;
|
||||||
|
background: #fdfdfd;
|
||||||
.input{
|
.input{
|
||||||
display: block;
|
display: block;
|
||||||
width: 100%;
|
width: 100%;
|
||||||
border: none;
|
border: none;
|
||||||
|
background: transparent;
|
||||||
}
|
}
|
||||||
.input[type=textarea]{
|
.input[type=textarea]{
|
||||||
min-height: 2rem;
|
min-height: 2rem;
|
||||||
@@ -175,8 +198,13 @@ export default {
|
|||||||
align-items: center;
|
align-items: center;
|
||||||
.total{
|
.total{
|
||||||
font-size: .4rem;
|
font-size: .4rem;
|
||||||
color: #666666;
|
color: $primary-color;
|
||||||
padding-left: .4rem;
|
padding-left: .4rem;
|
||||||
|
.price{
|
||||||
|
font-size: .5rem;
|
||||||
|
line-height: 1;
|
||||||
|
font-weight: bold;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
button{
|
button{
|
||||||
background: linear-gradient(to bottom, $primary-color, #9f7313);
|
background: linear-gradient(to bottom, $primary-color, #9f7313);
|
||||||
|
|||||||
@@ -32,7 +32,8 @@
|
|||||||
</div>
|
</div>
|
||||||
<div>
|
<div>
|
||||||
<user-merit v-for="pay in payList" :key="pay.id" :data="pay"></user-merit>
|
<user-merit v-for="pay in payList" :key="pay.id" :data="pay"></user-merit>
|
||||||
<div class="read-more" v-if="noMore">没有更多了</div>
|
<div class="read-more" v-if="noMore && page > 1">没有更多了</div>
|
||||||
|
<div class="read-more" v-if="noMore && page === 1">暂无数据</div>
|
||||||
<div class="read-more" v-else @click="loadMoreFn">查看更多</div>
|
<div class="read-more" v-else @click="loadMoreFn">查看更多</div>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
@@ -199,6 +200,7 @@ export default {
|
|||||||
quantity: this.quantity,
|
quantity: this.quantity,
|
||||||
title: this.data.name,
|
title: this.data.name,
|
||||||
subTitle: selectedSpec.spec_name,
|
subTitle: selectedSpec.spec_name,
|
||||||
|
is_die: selectedSpec.is_die,
|
||||||
amount: this.priceTotal,
|
amount: this.priceTotal,
|
||||||
is_customized: this.spec_id === 'is_customized' ? 1 : 0,
|
is_customized: this.spec_id === 'is_customized' ? 1 : 0,
|
||||||
from: 'common_goods', // 标识为通用商品
|
from: 'common_goods', // 标识为通用商品
|
||||||
@@ -211,7 +213,7 @@ export default {
|
|||||||
this.data = response;
|
this.data = response;
|
||||||
await this.getPayRecords(this.lTypeId, 1);
|
await this.getPayRecords(this.lTypeId, 1);
|
||||||
this.$nextTick(() => {
|
this.$nextTick(() => {
|
||||||
this.paddingBottom = this.$refs.fixedBottom.getOffsetHeight()
|
this.paddingBottom = this.$refs.fixedBottom.getOffsetHeight() - 50
|
||||||
})
|
})
|
||||||
this.wechatReady({
|
this.wechatReady({
|
||||||
...this.data.shareConfig,
|
...this.data.shareConfig,
|
||||||
|
|||||||
@@ -229,6 +229,7 @@ export default {
|
|||||||
title: this.data.details.title,
|
title: this.data.details.title,
|
||||||
subTitle: this.currentLight.name + ':'+this.lightSize.name,
|
subTitle: this.currentLight.name + ':'+this.lightSize.name,
|
||||||
amount: this.totalPrice,
|
amount: this.totalPrice,
|
||||||
|
is_die: this.currentLight.is_die,
|
||||||
from: 'goods_light', // 标识为通用商品
|
from: 'goods_light', // 标识为通用商品
|
||||||
}
|
}
|
||||||
})
|
})
|
||||||
|
|||||||
+2
-2
@@ -91,7 +91,8 @@ export default {
|
|||||||
name: 'goods-detail',
|
name: 'goods-detail',
|
||||||
query: {
|
query: {
|
||||||
goods_id: goods.goods_id,
|
goods_id: goods.goods_id,
|
||||||
temple_id: goods.temple_id
|
temple_id: goods.temple_id,
|
||||||
|
goods_type: goods.goods_type
|
||||||
}
|
}
|
||||||
})
|
})
|
||||||
},
|
},
|
||||||
@@ -103,7 +104,6 @@ export default {
|
|||||||
query: {
|
query: {
|
||||||
goods_type: nav.goods_type,
|
goods_type: nav.goods_type,
|
||||||
temple_id: nav.temple_id,
|
temple_id: nav.temple_id,
|
||||||
goods_id: nav.goods_id,
|
|
||||||
}
|
}
|
||||||
})
|
})
|
||||||
return
|
return
|
||||||
|
|||||||
@@ -115,7 +115,7 @@ export default {
|
|||||||
}
|
}
|
||||||
|
|
||||||
this.wechatReady({
|
this.wechatReady({
|
||||||
title: `${this.info.unit_name} - 在线功德箱 | 已有 ${this.total} 人广种福田`,
|
title: `${this.info.unit_name} - 在线功德箱 | 已有 ${this.total} 人广种福田,布施增福慧,转发即功德!`,
|
||||||
desc: '随缘布施,广种福田,喜结善缘',
|
desc: '随缘布施,广种福田,喜结善缘',
|
||||||
imgUrl: 'https://temple-h5.oss-cn-hangzhou.aliyuncs.com/uploads/common/merit_box.png',
|
imgUrl: 'https://temple-h5.oss-cn-hangzhou.aliyuncs.com/uploads/common/merit_box.png',
|
||||||
link: location.href
|
link: location.href
|
||||||
|
|||||||
+14
-1
@@ -7,7 +7,11 @@
|
|||||||
<h1 class="amount"><b>¥</b>{{query.amount}}</h1>
|
<h1 class="amount"><b>¥</b>{{query.amount}}</h1>
|
||||||
<div class="order-info">
|
<div class="order-info">
|
||||||
<h3 class="goods_title">{{query.title}}</h3>
|
<h3 class="goods_title">{{query.title}}</h3>
|
||||||
|
<div class="goods-lucky-to" >
|
||||||
|
<span>功德芳名:{{query.merit_name}}</span>
|
||||||
|
<span v-if="query.is_die == '1'">阳上人:{{query.live_name}}</span>
|
||||||
|
<span v-if="query.is_die == '1'">往生人:{{query.die_name}}</span>
|
||||||
|
</div>
|
||||||
<div class="desc">
|
<div class="desc">
|
||||||
<!-- subTitle: 规格名称 -->
|
<!-- subTitle: 规格名称 -->
|
||||||
<span>{{query.subTitle}}</span>
|
<span>{{query.subTitle}}</span>
|
||||||
@@ -165,6 +169,15 @@ export default {
|
|||||||
font-size: .4rem;
|
font-size: .4rem;
|
||||||
font-weight: bold;
|
font-weight: bold;
|
||||||
}
|
}
|
||||||
|
.goods-lucky-to{
|
||||||
|
font-size: .35rem;
|
||||||
|
padding-top: .4rem;
|
||||||
|
span ~ span{
|
||||||
|
padding-left: .2rem;
|
||||||
|
border-left: 1px solid #ddd;
|
||||||
|
margin-left: .2rem;
|
||||||
|
}
|
||||||
|
}
|
||||||
.desc{
|
.desc{
|
||||||
padding-top: .5rem;
|
padding-top: .5rem;
|
||||||
color: #666;
|
color: #666;
|
||||||
|
|||||||
+1
-1
File diff suppressed because one or more lines are too long
Reference in New Issue
Block a user