update 花店端的一些细节功能、打印的、合伙人推广二维码的
| | |
| | | "style": {
|
| | | "navigationBarTitleText": "搜鲜花"
|
| | | }
|
| | | },
|
| | | {
|
| | | "path": "pages/home/components/home-banner-detail",
|
| | | "style": {
|
| | | "navigationBarTitleText": "公告"
|
| | | }
|
| | | }
|
| | | ],
|
| | | "subPackages": [{
|
对比新文件 |
| | |
| | | <template> |
| | | <view class="travel-detail"> |
| | | <view v-if="dto.id"> |
| | | <!-- 标题、价格、时间、地点 --> |
| | | <!-- <view class="infos"> |
| | | <view class="name">{{dto.name||dto.title||'暂无标题'}}</view> |
| | | </view> --> |
| | | <!-- <view style="background: #F5F5F5;height: 24rpx;"> |
| | | |
| | | </view> |
| | | <view class="bg-white p10"> |
| | | <image :src="dto.cover" v-if="dto.cover" mode="aspectFit" class="m-t-8" |
| | | style="display: block;margin: 0 auto;" @click="previewImg(dto.cover)"></image> |
| | | |
| | | </view> --> |
| | | <!-- <view style="background: #F5F5F5;height: 24rpx;"> |
| | | |
| | | </view> --> |
| | | |
| | | <!-- 活动描述 --> |
| | | <view class="info-desc"> |
| | | <!-- <view class="title">公告描述</view> --> |
| | | <view v-html="dto.content||'暂无内容'" class="rich" style="overflow: scroll;"> |
| | | |
| | | </view> |
| | | </view> |
| | | |
| | | </view> |
| | | </view> |
| | | </template> |
| | | |
| | | <script> |
| | | export default { |
| | | data() { |
| | | return { |
| | | dto: { |
| | | |
| | | }, |
| | | peoples: [], |
| | | id: '' |
| | | }; |
| | | }, |
| | | async onLoad(options) { |
| | | this.id = options.id || '' |
| | | await this.init() |
| | | |
| | | }, |
| | | async onPullDownRefresh() { |
| | | await this.init() |
| | | uni.stopPullDownRefresh() |
| | | }, |
| | | methods: { |
| | | async init() { |
| | | this.$message.showLoading() |
| | | const { |
| | | data |
| | | } = await this.$http.request('get', '/api/pub/banner/page/view?id=' + this.id, { |
| | | |
| | | }) |
| | | |
| | | this.$message.hideLoading() |
| | | this.dto = { |
| | | ...data |
| | | } |
| | | uni.setNavigationBarTitle({ |
| | | title: this.dto.name || this.dto.title || '公告' |
| | | }) |
| | | this.dto.content = this.$util.formatRichText(this.dto.content || '') |
| | | |
| | | }, |
| | | } |
| | | } |
| | | </script> |
| | | |
| | | <style lang="scss" scoped> |
| | | .popup-form { |
| | | padding-bottom: 68rpx; |
| | | |
| | | .bottom-img { |
| | | width: 118rpx; |
| | | height: 70rpx; |
| | | display: block; |
| | | margin: 0 auto; |
| | | } |
| | | |
| | | .bottom-info { |
| | | font-weight: 400; |
| | | font-size: 28rpx; |
| | | color: #666666; |
| | | line-height: 40rpx; |
| | | text-align: center; |
| | | } |
| | | |
| | | .title { |
| | | font-size: 32rpx; |
| | | color: #000000; |
| | | margin-bottom: 32rpx; |
| | | } |
| | | |
| | | .people-name { |
| | | font-weight: 600; |
| | | font-size: 32rpx; |
| | | color: #000000; |
| | | line-height: 102rpx; |
| | | margin-left: 28rpx; |
| | | } |
| | | |
| | | .people-img { |
| | | width: 102rpx; |
| | | height: 102rpx; |
| | | border: 2rpx solid #FFFFFF; |
| | | } |
| | | } |
| | | |
| | | .travel-detail { |
| | | .info-peoples { |
| | | padding: 24rpx 30rpx; |
| | | background: #fff; |
| | | |
| | | .title { |
| | | font-size: 32rpx; |
| | | color: #000000; |
| | | font-weight: 600; |
| | | |
| | | } |
| | | |
| | | .show-more-peoples { |
| | | font-size: 24rpx; |
| | | color: #26C3A5; |
| | | } |
| | | } |
| | | |
| | | .info-desc { |
| | | padding: 24rpx 30rpx; |
| | | background: #fff; |
| | | |
| | | .title { |
| | | margin-bottom: 20rpx; |
| | | font-weight: 600; |
| | | font-size: 32rpx; |
| | | color: #000000; |
| | | } |
| | | |
| | | /deep/ img { |
| | | max-width: 600rpx; |
| | | |
| | | } |
| | | } |
| | | |
| | | .info-cover { |
| | | width: 750rpx; |
| | | height: 474rpx; |
| | | } |
| | | |
| | | .infos { |
| | | padding: 24rpx 30rpx; |
| | | background: #fff; |
| | | |
| | | .name { |
| | | font-weight: 600; |
| | | font-size: 40rpx; |
| | | color: #000000; |
| | | } |
| | | |
| | | |
| | | .price { |
| | | font-weight: 600; |
| | | line-height: 72rpx; |
| | | font-size: 50rpx; |
| | | color: #000000; |
| | | |
| | | .dot { |
| | | font-size: 40rpx; |
| | | line-height: 56rpx; |
| | | } |
| | | } |
| | | |
| | | .status { |
| | | width: 132rpx; |
| | | height: 50rpx; |
| | | border-radius: 26rpx; |
| | | border: 2rpx solid #999999; |
| | | color: #999999; |
| | | line-height: 50rpx; |
| | | font-size: 24rpx; |
| | | |
| | | text-align: center; |
| | | margin-left: 16rpx; |
| | | } |
| | | |
| | | .status.A, |
| | | .status.J { |
| | | border: 2rpx solid #04BA97; |
| | | color: #04BA97; |
| | | } |
| | | |
| | | .icon-loc { |
| | | width: 24rpx; |
| | | height: 30rpx; |
| | | background-size: 100% 100%; |
| | | |
| | | } |
| | | |
| | | .icon-clock { |
| | | width: 24rpx; |
| | | height: 26rpx; |
| | | background-size: 100% 100%; |
| | | |
| | | } |
| | | } |
| | | } |
| | | </style> |
| | |
| | | <template> |
| | | <view class="p15 bg-white"> |
| | | <view class="search-container m-t-12 flex"> |
| | | <view class="flex m-r-20"> |
| | | <view class="m-r-10" style="line-height: 80rpx;" @click="changeType"> |
| | | {{type=='flower'?'按鲜花':'按店铺'}} |
| | | </view> |
| | | <u-icon name="arrow-down"></u-icon> |
| | | |
| | | </view> |
| | | <view class="flex1 input"> |
| | | <u-input placeholder="请输入花名" v-model="search_flow" clearable @confirm="buttonSearchFlow" @clear="()=>{ |
| | | $nextTick(()=>{buttonSearchFlow()}) |
| | | }"> |
| | | <!-- <u--text text="http://" slot="prefix" margin="0 3px 0 0" type="tips"></u--text> --> |
| | | |
| | | |
| | | <template slot="suffix"> |
| | | <uni-icons color="#20613D" type="search" size="24" @click="buttonSearchFlow"></uni-icons> |
| | | </template> |
| | |
| | | </view> |
| | | |
| | | </view> |
| | | <view class="m-t-12"> |
| | | <view class="m-t-20"> |
| | | <view class="title flex"> |
| | | <view class="m-l-0 m-r-a">搜索历史</view> |
| | | <view class="bg-white desc-gray text-center m-l-a m-r-0" @click.stop="clearHistory"> |
| | |
| | | return { |
| | | search_flow: '', |
| | | history: [], |
| | | type: 'flower', //supplierName |
| | | } |
| | | }, |
| | | onShow() { |
| | |
| | | this.$storage.setItem("cache_home_search", JSON.stringify(this.history)) |
| | | }, |
| | | methods: { |
| | | changeType() { |
| | | if (this.type == 'flower') { |
| | | this.type = 'supplier' |
| | | } else { |
| | | this.type = 'flower' |
| | | } |
| | | }, |
| | | buttonSearchFlow() { |
| | | var name = this.search_flow |
| | | if (name) { |
| | |
| | | this.history.splice(this.history.length - 1, 1) |
| | | } |
| | | |
| | | console.log('buttonSearchFlow') |
| | | // console.log('buttonSearchFlow') |
| | | var p = '' |
| | | if (this.type === 'flower') { |
| | | p = 'name=' + this.search_flow |
| | | } else { |
| | | p = 'supplierName=' + this.search_flow |
| | | } |
| | | uni.navigateTo({ |
| | | url: '/sub_pages/customer/trade/list?name=' + this.search_flow |
| | | url: '/sub_pages/customer/trade/list?' + p |
| | | }) |
| | | } |
| | | }, |
| | |
| | | this.history.splice(this.history.indexOf(name), 1) |
| | | } |
| | | this.history.unshift(name) |
| | | |
| | | var p = '' |
| | | if (this.type === 'flower') { |
| | | p = 'name=' + name |
| | | } else { |
| | | p = 'supplierName=' + name |
| | | } |
| | | uni.navigateTo({ |
| | | url: '/sub_pages/customer/trade/list?name=' + name |
| | | url: '/sub_pages/customer/trade/list?' + p |
| | | }) |
| | | } |
| | | } |
| | |
| | | <image class="p1 img100 m-t-12" :lazy-load="true" mode="aspectFill" |
| | | :src="item.bgUrl"> |
| | | </image> |
| | | <view class="c-txt-1"> |
| | | <view class="c-txt-1" v-show="false"> |
| | | <view class="title">{{ item.name }}</view> |
| | | <view class="flex"> |
| | | <view class="desc">查看详情</view> |
| | |
| | | </view>
|
| | | <view class="search-container m-t-12 flex" @click="goto('/pages/home/components/home-search',false)">
|
| | | <view class="flex1 input">
|
| | | <u-input placeholder="请输入花名" disabled v-model="search_flow">
|
| | | <u-input placeholder="请输入花名或店铺名" disabled v-model="search_flow">
|
| | | <template slot="suffix">
|
| | | <!-- @click="buttonSearchFlow" -->
|
| | | <uni-icons color="#20613D" type="search" size="24"></uni-icons>
|
| | |
| | | v-if="banners&&banners.length>0" :autoplay="true">
|
| | | <swiper-item v-for="(item, index) in banners" :key="index">
|
| | | <view class="swiper-item" :class="'swiper-item' + index">
|
| | | <image @click="previewImg(item.url||item.image)" class="home-banner-image" mode="scaleToFill"
|
| | | <!-- @click="previewImg(item.url||item.image)" -->
|
| | | <image class="home-banner-image" mode="scaleToFill" @click="clickBanner(item)"
|
| | | :src="item.url||item.image">
|
| | | </image>
|
| | | </view>
|
| | |
| | | };
|
| | | },
|
| | | onShareAppMessage() {
|
| | | let that = this; |
| | | var name = that.currentInfo.customerDTO&&that.currentInfo.customerDTO.name || that.currentInfo.supplierDTO&&that.currentInfo.supplierDTO.name || that.currentInfo.partnerDTO&&that.currentInfo.partnerDTO.name || '' |
| | | let that = this;
|
| | | var name = that.currentInfo.customerDTO && that.currentInfo.customerDTO.name || that.currentInfo.supplierDTO &&
|
| | | that.currentInfo.supplierDTO.name || that.currentInfo.partnerDTO && that.currentInfo.partnerDTO.name || ''
|
| | | var url =
|
| | | `/pages/home/home?shareId=${this.currentInfo&&this.currentInfo.id||''}&shareName=${name||''}`; //你的转发页面路径拼接参数
|
| | | return {
|
| | |
| | | }
|
| | | },
|
| | | onShareTimeline() {
|
| | | let that = this; |
| | | var name = that.currentInfo.customerDTO&&that.currentInfo.customerDTO.name || that.currentInfo.supplierDTO&&that.currentInfo.supplierDTO.name || that.currentInfo.partnerDTO&&that.currentInfo.partnerDTO.name || '' |
| | | var url = |
| | | `/pages/home/home?shareId=${this.currentInfo&&this.currentInfo.id||''}&shareName=${name||''}`; //你的转发页面路径拼接参数 |
| | | return { |
| | | title: "花满芫", |
| | | path: url, |
| | | let that = this;
|
| | | var name = that.currentInfo.customerDTO && that.currentInfo.customerDTO.name || that.currentInfo.supplierDTO &&
|
| | | that.currentInfo.supplierDTO.name || that.currentInfo.partnerDTO && that.currentInfo.partnerDTO.name || ''
|
| | | var url =
|
| | | `/pages/home/home?shareId=${this.currentInfo&&this.currentInfo.id||''}&shareName=${name||''}`; //你的转发页面路径拼接参数
|
| | | return {
|
| | | title: "花满芫",
|
| | | path: url,
|
| | | }
|
| | | },
|
| | |
|
| | |
| | | //获取banner图
|
| | | this.$http.request('get', '/api/pub/banner/list', {}).then(res => {
|
| | | if (res.code == 0) {
|
| | | this.banners = res.data || []
|
| | | if (this.banners.length == 0) {
|
| | | this.banners.push({
|
| | | url: 'https://hmy-flower.oss-cn-shanghai.aliyuncs.com/62/62ddac6297104e369aba646be704064dbanner@2x.png'
|
| | | })
|
| | | this.banners = []
|
| | |
|
| | | var tarr = res.data || []
|
| | | if (tarr.length == 0) {
|
| | | // tarr.push({
|
| | | // url: 'https://hmy-flower.oss-cn-shanghai.aliyuncs.com/62/62ddac6297104e369aba646be704064dbanner@2x.png'
|
| | | // })
|
| | | this.banners = tarr
|
| | | } else {
|
| | | for (var item of this.banners) {
|
| | | var result = []
|
| | | for (var item of tarr) {
|
| | | // http://106.14.123.210/files/group1/e8/e1c17f7229514e5da211d8d47b09906b.jpeg
|
| | | try {
|
| | | if (item.url) {
|
| | | var t = JSON.parse(item.url)
|
| | | if (Array.isArray(t)) {
|
| | | item.url = t[0] || ''
|
| | | // item.url = t[0] || ''
|
| | | for (var url of t) {
|
| | | result.push({
|
| | | ...item,
|
| | | url: url || ''
|
| | | })
|
| | | }
|
| | | } else {
|
| | | item.url = t.url || ''
|
| | | // item.url = t.url || ''
|
| | | result.push({
|
| | | ...item,
|
| | | url: t.url || ''
|
| | | })
|
| | | }
|
| | | }
|
| | |
|
| | |
| | | // console.log('error',e)
|
| | | }
|
| | | }
|
| | | }
|
| | | this.banners = result
|
| | | } |
| | | console.log('this.banners',this.banners)
|
| | | }
|
| | | })
|
| | |
|
| | |
| | |
|
| | | },
|
| | | methods: {
|
| | | clickBanner(item) {
|
| | | if (item.id) {
|
| | | uni.navigateTo({
|
| | | url: '/pages/home/components/home-banner-detail?id=' + item.id
|
| | | })
|
| | | } else if (item.url) {
|
| | | this.previewImg(item.url)
|
| | | }
|
| | | },
|
| | | goToAddress() {
|
| | | if (!this.currentInfo.id) {
|
| | | this.$message.showToast('请先前往登录')
|
| | |
| | | } |
| | | } |
| | | break |
| | | case 'delOrder':{ |
| | | case 'delOrder': { |
| | | await this.$message.confirm('是否删除此订单') |
| | | // 发送请求 |
| | | this.$message.showLoading() |
| | |
| | | </view> |
| | | <view class="value">{{ dto.deliveryNo }}</view> |
| | | </view> |
| | | |
| | | <view class="flex"> |
| | | <view class="desc flex flex1"> |
| | | <view class="label"> |
| | |
| | | <view class="value">{{ dto.customerTel || '-' }}</view> |
| | | </view> |
| | | </view> |
| | | <view class="desc flex"> |
| | | <view class="label"> |
| | | 收货地址: |
| | | <view class="flex"> |
| | | <view class="desc flex flex1"> |
| | | <view class="label"> |
| | | 收货地址: |
| | | </view> |
| | | <view class="value">{{ dto.customerAddress }}</view> |
| | | </view> |
| | | <view class="value">{{ dto.customerAddress }}</view> |
| | | <view class="desc flex flex1" v-if="dto.deliveryName"> |
| | | <view class="label"> |
| | | 快递名称: |
| | | </view> |
| | | <view class="value">{{ dto.deliveryName }}</view> |
| | | </view> |
| | | </view> |
| | | |
| | | <view class="desc flex" v-if="dto.statusBackend!=='PENDING'&&dto.statusBackend!=='CANCEL'"> |
| | | <view class="label"> |
| | | 支付时间: |
| | |
| | | </view>
|
| | | </view>
|
| | | <!-- #ifdef PUB_PARTNER -->
|
| | | <view class="user-util m-t-12 flex" v-if="selftype==='partner'"
|
| | | <view class="user-util m-t-12 flex"
|
| | | v-if="selftype==='partner'&¤tInfo.partnerDTO&¤tInfo.partnerDTO.id&¤tInfo.partnerDTO.status=='P'"
|
| | | @click="goto('/sub_pages/partner/partner-info/partner-code',true)">
|
| | | <view class="title">推广的注册二维码</view>
|
| | | <view class="right-icon">
|
| | |
| | | // #ifdef PUB_CUSTOMER
|
| | | onShareAppMessage() {
|
| | | let that = this;
|
| | | var name = that.currentInfo.customerDTO&&that.currentInfo.customerDTO.name || that.currentInfo.supplierDTO&&that.currentInfo.supplierDTO.name || that.currentInfo.partnerDTO&&that.currentInfo.partnerDTO.name || '' |
| | | var name = that.currentInfo.customerDTO && that.currentInfo.customerDTO.name || that.currentInfo.supplierDTO &&
|
| | | that.currentInfo.supplierDTO.name || that.currentInfo.partnerDTO && that.currentInfo.partnerDTO.name || ''
|
| | | var url =
|
| | | `/pages/home/home?shareId=${this.currentInfo&&this.currentInfo.id||''}&shareName=${name||''}`; //你的转发页面路径拼接参数
|
| | | return {
|
| | |
| | | },
|
| | | onShareTimeline() {
|
| | | let that = this;
|
| | | var name = that.currentInfo.customerDTO && that.currentInfo.customerDTO.name || that.currentInfo.supplierDTO && |
| | | that.currentInfo.supplierDTO.name || that.currentInfo.partnerDTO && that.currentInfo.partnerDTO.name || '' |
| | | var name = that.currentInfo.customerDTO && that.currentInfo.customerDTO.name || that.currentInfo.supplierDTO &&
|
| | | that.currentInfo.supplierDTO.name || that.currentInfo.partnerDTO && that.currentInfo.partnerDTO.name || ''
|
| | | var url =
|
| | | `/pages/home/home?shareId=${this.currentInfo&&this.currentInfo.id||''}&shareName=${name||''}`; //你的转发页面路径拼接参数
|
| | | return {
|
| | |
| | | |
| | | </view> |
| | | <view class="t-red">*提醒:未实名或者真实姓名与微信支付实名不一样,可能会导致转账失败</view> |
| | | |
| | | <view class="t-red m-t-20" |
| | | v-if="currentInfo.partnerDTO&¤tInfo.partnerDTO.realName||currentInfo.supplierDTO&¤tInfo.supplierDTO.realName"> |
| | | *已实名:{{currentInfo.partnerDTO && currentInfo.partnerDTO.realName ||currentInfo.supplierDTO && currentInfo.supplierDTO.realName || '-'}} |
| | | </view> |
| | | |
| | | <!-- <button @click="getUserProfile" open-type="getUserInfo" class="bottom-button">绑定当前微信</button> --> |
| | | <button @click="wxlogin" open-type="getUserInfo" class="bottom-button">绑定当前微信</button> |
| | |
| | | // store.dispatch('/clearUserInfo') |
| | | // commit('updat') |
| | | // store.commit('updateLogin', false) |
| | | console.log('401',res) |
| | | console.log('401', res) |
| | | message.showToast('登录信息失效') |
| | | storage.removeItem('token') |
| | | reject({ |
| | |
| | | code: 403, |
| | | msg: 'Forbidden' |
| | | }) |
| | | } else if (res.statusCode === 429) { |
| | | message.showToast('系统操作太频繁,请稍后再试!') |
| | | reject({ |
| | | data: null, |
| | | code: 429, |
| | | msg: 'Forbidden' |
| | | }) |
| | | } else if (res.statusCode === 404) { |
| | | message.showToast('api不存在') |
| | | reject({ |
| | |
| | | 'shopping': 0, |
| | | 'follow': 0, |
| | | 'delivery': 0, |
| | | 'order': 0 |
| | | 'order': 0, |
| | | 'shopnum': 0 |
| | | }, |
| | | defaultaddress: {} |
| | | }, |
| | |
| | | <view class="label">身份认证</view>
|
| | | <view class="value">{{dto.idcardTypeStr||'未认证'}}</view>
|
| | | </view>
|
| | | <!-- <view class="form-input flex">
|
| | | <view class="label"> </view>
|
| | | <view class="value">{{'已实名'}}</view>
|
| | | </view> -->
|
| | | </view>
|
| | | </view>
|
| | |
|
| | |
| | | // #ifdef PUB_CUSTOMER
|
| | | onShareAppMessage() {
|
| | | let that = this;
|
| | | var name = that.currentInfo.customerDTO&&that.currentInfo.customerDTO.name || that.currentInfo.supplierDTO&&that.currentInfo.supplierDTO.name || that.currentInfo.partnerDTO&&that.currentInfo.partnerDTO.name || '' |
| | | var name = that.currentInfo.customerDTO && that.currentInfo.customerDTO.name || that.currentInfo.supplierDTO &&
|
| | | that.currentInfo.supplierDTO.name || that.currentInfo.partnerDTO && that.currentInfo.partnerDTO.name || ''
|
| | | var url =
|
| | | `/sub_pages/customer/shop/shop?id=${this.id}&shareId=${this.currentInfo&&this.currentInfo.id||''}&shareName=${name||''}`; //你的转发页面路径拼接参数
|
| | | return {
|
| | |
| | | },
|
| | | onShareTimeline() {
|
| | | let that = this;
|
| | | var name = that.currentInfo.customerDTO&&that.currentInfo.customerDTO.name || that.currentInfo.supplierDTO&&that.currentInfo.supplierDTO.name || that.currentInfo.partnerDTO&&that.currentInfo.partnerDTO.name || '' |
| | | var name = that.currentInfo.customerDTO && that.currentInfo.customerDTO.name || that.currentInfo.supplierDTO &&
|
| | | that.currentInfo.supplierDTO.name || that.currentInfo.partnerDTO && that.currentInfo.partnerDTO.name || ''
|
| | | var url =
|
| | | `/sub_pages/customer/shop/shop?id=${this.id}&shareId=${this.currentInfo&&this.currentInfo.id||''}&shareName=${name||''}`; //你的转发页面路径拼接参数
|
| | | return {
|
| | |
| | | await this.clickSwipeButton(dto, false) |
| | | // await this.init() |
| | | } |
| | | this.$store.dispatch('sign_add', 'shopnum'); |
| | | this.$forceUpdate() |
| | | } |
| | | }, |
| | |
| | | levelStr: '',
|
| | | level: '',
|
| | | column: '',
|
| | | params: [],
|
| | | params: [], |
| | | supplierName:'',
|
| | | columnStr: '',
|
| | | },
|
| | | categoryInfo: {},
|
| | |
| | | var name = that.currentInfo.customerDTO && that.currentInfo.customerDTO.name || that.currentInfo.supplierDTO &&
|
| | | that.currentInfo.supplierDTO.name || that.currentInfo.partnerDTO && that.currentInfo.partnerDTO.name || ''
|
| | | var url =
|
| | | `/sub_pages/customer/trade/list?categoryId=${this.query.category}&zoneId=${this.query.zoneId}&name=${this.query.name}&shareId=${this.currentInfo&&this.currentInfo.id||''}&shareName=${name||''}`; //你的转发页面路径拼接参数
|
| | | `/sub_pages/customer/trade/list?categoryId=${this.query.category}&zoneId=${this.query.zoneId}&name=${this.query.name}&supplierName=${this.query.supplierName}&shareId=${this.currentInfo&&this.currentInfo.id||''}&shareName=${name||''}`; //你的转发页面路径拼接参数
|
| | | return {
|
| | | title: "花满芫-商品列表",
|
| | | path: url,
|
| | |
| | | var name = that.currentInfo.customerDTO && that.currentInfo.customerDTO.name || that.currentInfo.supplierDTO &&
|
| | | that.currentInfo.supplierDTO.name || that.currentInfo.partnerDTO && that.currentInfo.partnerDTO.name || ''
|
| | | var url =
|
| | | `/sub_pages/customer/trade/list?categoryId=${this.query.category}&zoneId=${this.query.zoneId}&name=${this.query.name}&shareId=${this.currentInfo&&this.currentInfo.id||''}&shareName=${name||''}`; //你的转发页面路径拼接参数
|
| | | `/sub_pages/customer/trade/list?categoryId=${this.query.category}&zoneId=${this.query.zoneId}&name=${this.query.name}&supplierName=${this.query.supplierName}&shareId=${this.currentInfo&&this.currentInfo.id||''}&shareName=${name||''}`; //你的转发页面路径拼接参数
|
| | | return {
|
| | | title: "花满芫-商品列表",
|
| | | path: url,
|
| | |
| | | console.log('options', options)
|
| | | this.query.category = options.categoryId || options.category || ''
|
| | | this.query.zoneId = options.zoneId || ''
|
| | | this.query.name = options.name || ''
|
| | | this.query.name = options.name || '' |
| | | this.query.supplierName = options.supplierName || '' |
| | | |
| | | |
| | | if (this.query.name) {
|
| | | uni.setNavigationBarTitle({
|
| | | title: '商品列表-' + this.query.name
|
| | | })
|
| | | } |
| | | if (this.query.supplierName) { |
| | | uni.setNavigationBarTitle({ |
| | | title: '商品列表-' + this.query.supplierName |
| | | }) |
| | | }
|
| | | this.listApi = '/api/customer/flower/list'
|
| | | this.getList('post')
|
| | |
| | | } |
| | | command.setText(30, 40, "TSS24.BF2", 1, 1, "" + (that.item.supplierName || '-')) |
| | | command.setText(200, 40, "TSS24.BF2", 1, 1, "" + (that.item.warehouseName || '待分配')) |
| | | |
| | | command.setText(30, 80, "TSS24.BF2", 1, 1, "" + (that.item.flowerCategory || '')) |
| | | var flowerCategory = that.item.flowerCategory |
| | | if (flowerCategory) { |
| | | //只取二级分类 |
| | | var tarr = flowerCategory.splite("/") |
| | | if (tarr.length >= 2) { |
| | | flowerCategory = tarr[tarr.length - 1] |
| | | } |
| | | } |
| | | command.setText(30, 80, "TSS24.BF2", 1, 1, "" + (flowerCategory || '')) |
| | | command.setText(200, 80, "TSS24.BF2", 1, 1, "库位:" + (that.item.warehouseLocationCode || '')) |
| | | |
| | | command.setText(30, 120, "TSS24.BF2", 1, 1, "等级:" + (that.item.flowerLevelStr || '')) |
| | | command.setText(200, 120, "TSS24.BF2", 1, 1, "" + (that.item.flowerColor || '')) |
| | | |
| | | command.setText(30, 160, "TSS24.BF2", 1, 1, "规格: " + (that.item.flowerUnit || '-')) |
| | | command.setText(200, 160, "TSS24.BF2", 1, 1, "成熟度: " + (paramsmap['成熟度'] || '-')) |
| | | |
| | | command.setText(30, 200, "TSS24.BF2", 1, 1, "枝长: " + (paramsmap['枝长'] || '-')) |
| | | // 规格: |
| | | command.setText(30, 160, "TSS24.BF2", 1, 1, "" + (that.item.flowerUnit || '-')) |
| | | // 成熟度: |
| | | command.setText(200, 160, "TSS24.BF2", 1, 1, "" + (paramsmap['成熟度'] || '-')) |
| | | // 枝长: |
| | | command.setText(30, 200, "TSS24.BF2", 1, 1, "" + (paramsmap['枝长'] || '-')) |
| | | command.setText(200, 200, "TSS24.BF2", 1, 1, that.$util.toDate(new Date())) |
| | | |
| | | command.setText(100, 230, "TSS24.BF2", 1, 1, "————————————") |
| | | command.setText(60, 230, "TSS24.BF2", 1, 1, "————————————") |
| | | |
| | | command.setText(30, 260, "TSS24.BF2", 1, 1, "花满芫") |
| | | command.setText(200, 260, "TSS24.BF2", 1, 1, `数目: ${i+1}/${that.item.num}`) |
| | |
| | | font-size: 28rpx; |
| | | color: #000000; |
| | | line-height: 40rpx; |
| | | |
| | | .level { |
| | | font-weight: 400; |
| | | font-size: 28rpx; |
| | |
| | | font-size: 28rpx; |
| | | color: #000000; |
| | | line-height: 40rpx; |
| | | |
| | | .level { |
| | | font-weight: 400; |
| | | font-size: 28rpx; |