耀实惠小程序
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 

91 lines
2.8 KiB

<template>
<view class="subscribe">
<view class="subscribe-item border-blue flex align-center" @click="toPage(true)">
<image class="subscribe-item-image" :src="IMG_URL+'subscribe.png'" mode="widthFix"></image>
<view class="font-42 font-weight-bold theme-color m-r-30 m-l-30">没有处方</view>
<view class="">
<u-icon name="arrow-rightward" color="#01AEEA" size="80"></u-icon>
</view>
</view>
<view class="subscribe-item flex align-center" @click="toPage(false)">
<image class="subscribe-item-image" :src="IMG_URL+'subscribe.png'" mode="widthFix"></image>
<view class="font-42 font-weight-bold text-green m-r-30 m-l-30">我有处方</view>
<view class="">
<u-icon name="arrow-rightward" color="#46CF26" size="80"></u-icon>
</view>
</view>
</view>
</template>
<script>
import { IMG_URL } from '@/env.js'
export default {
data() {
return {
IMG_URL,
goodsId: '',
isSituation: 0,
num: '',
price: '',
goodSkuParam: '',
prescriptionId: 0,
orderType: null,
createOrderType: '',
payType: '',
isZone: ''
}
},
onLoad(options) {
console.log('options.createOrderType ',options.createOrderType )
this.createOrderType = options.createOrderType
this.payType = options.payType
this.goodsId = options.goodsId;
this.isSituation = options.isSituation;
this.num = options.num;
this.price = options.price;
this.goodSkuParam = options.goodSkuParam;
this.prescriptionId = options.prescriptionId
this.orderType = options.orderType
this.isZone = options.isZone
},
methods: {
toPage (flag) {
if (flag) {
// 无处方
this.$tools.navigateTo({
url: `/pagesA/my_other_list/prescription/select_medicine_man/index?goodsId=${this.goodsId}&orderType=${this.orderType}&type=noPrescription&isSituation=${this.isSituation}&num=${this.num}&price=${this.price}&goodSkuParam=${this.goodSkuParam}&prescriptionId=${this.prescriptionId}&createOrderType=${this.createOrderType}&payType=${this.payType}&isZone=${this.isZone}`
})
} else {
// 有处方
this.$tools.navigateTo({
url: `/pagesA/my_other_list/prescription/medicine/index?goodsId=${this.goodsId}&orderType=${this.orderType}&prescription=1&type=prescription&isSituation=${this.isSituation}&num=${this.num}&price=${this.price}&goodSkuParam=${this.goodSkuParam}&prescriptionId=${this.prescriptionId}&createOrderType=${this.createOrderType}&payType=${this.payType}&isZone=${this.isZone}`
})
}
}
}
}
</script>
<style lang="scss" scoped>
.subscribe {
padding: 100rpx 40rpx;
&-item {
padding: 0 20rpx;
height: 350rpx;
border: 6rpx solid #46cf26;
border-radius: 20rpx;
margin-bottom: 100rpx;
&-image {
width: 280rpx;
}
}
}
.text-green {
color: #46CF26;
}
.border-blue {
border-color: $u-type-primary;
}
</style>