修改页面
This commit is contained in:
@ -1,7 +1,6 @@
|
|||||||
// export const dev_host = 'https://app.wanjiashangchao.com'; // 开发环境域名
|
export const dev_host = 'https://app.wanjiashangchao.com'; //线上环境域名
|
||||||
export const dev_host = 'https://ltstore.stnav.com'; // 开发环境域名
|
// export const dev_host = 'https://ltstore.stnav.com'; // 开发环境域名
|
||||||
export const mock_host = 'https://ltstore.stnav.com'; // MOCK环境域名
|
export const mock_host = 'http://mock.zhongbenruanjian.com'; // MOCK环境域名
|
||||||
// export const mock_host = 'http://mock.zhongbenruanjian.com'; // MOCK环境域名
|
|
||||||
export const product_host = 'http://zbphp.zhongbenzx.com'; // 生产环境域名
|
export const product_host = 'http://zbphp.zhongbenzx.com'; // 生产环境域名
|
||||||
export const WEBSOCKET = 'wss://zbphp.zhongbenzx.com/socket/';
|
export const WEBSOCKET = 'wss://zbphp.zhongbenzx.com/socket/';
|
||||||
export const PAAS_URL = 'https://yufabu.saizhuge.net'; // paas域名
|
export const PAAS_URL = 'https://yufabu.saizhuge.net'; // paas域名
|
||||||
|
|||||||
@ -2,8 +2,8 @@
|
|||||||
"name" : "萬家商超",
|
"name" : "萬家商超",
|
||||||
"appid" : "__UNI__21B1139",
|
"appid" : "__UNI__21B1139",
|
||||||
"description" : "萬家商超",
|
"description" : "萬家商超",
|
||||||
"versionName" : "1.1.4",
|
"versionName" : "1.1.7",
|
||||||
"versionCode" : 114,
|
"versionCode" : 117,
|
||||||
"transformPx" : false,
|
"transformPx" : false,
|
||||||
"app-plus" : {
|
"app-plus" : {
|
||||||
"usingComponents" : true,
|
"usingComponents" : true,
|
||||||
|
|||||||
846
pages/dpxq/immediatePayment/immediatePayment copy.vue
Normal file
846
pages/dpxq/immediatePayment/immediatePayment copy.vue
Normal file
@ -0,0 +1,846 @@
|
|||||||
|
<template>
|
||||||
|
<view class="page" v-if="token" :style="themeColor">
|
||||||
|
<view class="flex benben-position-layout flex flex-wrap align-center immediatePayment_flex_0"
|
||||||
|
:style="{height:(88+StatusBarRpx)+'rpx',paddingTop:StatusBarRpx+'rpx'}">
|
||||||
|
<view class='flex flex-wrap align-center justify-between flex-sub immediatePayment_fd0_0'>
|
||||||
|
<view v-if="source == 'app'" class='flex flex-wrap align-center'>
|
||||||
|
<!-- <text class='fu-iconfont2 immediatePayment_fd0_0_c0_c0'></text> -->
|
||||||
|
<button class="fu-iconfont2 immediatePayment_fd0_0_c0_c0" style="background: #fff;"
|
||||||
|
open-type="launchApp" app-parameter="wechat"></button>
|
||||||
|
</view>
|
||||||
|
<view v-else class='flex flex-wrap align-center' @tap.stop="popupShow1684575594621=true">
|
||||||
|
<text class='fu-iconfont2 immediatePayment_fd0_0_c0_c0'></text>
|
||||||
|
<!-- <button class="fu-iconfont2 immediatePayment_fd0_0_c0_c0" style="background: #fff;" open-type="launchApp" app-parameter="wechat"></button> -->
|
||||||
|
</view>
|
||||||
|
<view class='flex flex-wrap align-stretch justify-center flex-sub'>
|
||||||
|
<text class='immediatePayment_fd0_0_c1_c0'>支付</text>
|
||||||
|
</view>
|
||||||
|
<view class='flex flex-wrap align-center immediatePayment_fd0_0_c2'>
|
||||||
|
</view>
|
||||||
|
</view>
|
||||||
|
|
||||||
|
</view>
|
||||||
|
<view :style="{height: (88+StatusBarRpx)+'rpx'}"></view>
|
||||||
|
<!---flex布局flex布局开始-->
|
||||||
|
<view class="flex flex-direction flex-wrap align-center benben-flex-layout immediatePayment_flex_1">
|
||||||
|
<view class='flex flex-wrap align-end'>
|
||||||
|
<text class='immediatePayment_fd1_0_c0'>¥</text>
|
||||||
|
<template v-if="isDeduct == 0">
|
||||||
|
<text class='immediatePayment_fd1_0_c1' v-if="!is_agreem">{{pay_moeny}}</text>
|
||||||
|
<text class='immediatePayment_fd1_0_c1'
|
||||||
|
v-else>{{Number(pay_moeny)-Number(deduct_money) > 0 ? (Number(pay_moeny)-Number(deduct_money)).toFixed(2) : 0}}</text>
|
||||||
|
</template>
|
||||||
|
|
||||||
|
<template v-if="isDeduct == 1">
|
||||||
|
<text class='immediatePayment_fd1_0_c1' v-if="!is_agreem">{{oldMoney}}</text>
|
||||||
|
<text class='immediatePayment_fd1_0_c1'
|
||||||
|
v-else>{{Number(oldMoney)-Number(deduct_money) > 0 ? (Number(oldMoney)-Number(deduct_money)).toFixed(2) : 0}}</text>
|
||||||
|
</template>
|
||||||
|
</view>
|
||||||
|
<view class='flex flex-wrap align-center immediatePayment_fd1_1'>
|
||||||
|
<text class='immediatePayment_fd1_1_c0'>支付剩余时间:</text>
|
||||||
|
<benben-countdown class='' :time-type='true' :count-time="time" @timeEnd="handleTimeEnd">
|
||||||
|
<template #default="{ d, h, i, s }">
|
||||||
|
<text class='immediatePayment_fd1_1_c1_c2'>{{h}}</text>
|
||||||
|
|
||||||
|
<text class='immediatePayment_fd1_1_c1_c3'>:</text>
|
||||||
|
|
||||||
|
<text class='immediatePayment_fd1_1_c1_c4'>{{i}}</text>
|
||||||
|
|
||||||
|
<text class='immediatePayment_fd1_1_c1_c5'>:</text>
|
||||||
|
|
||||||
|
<text class='immediatePayment_fd1_1_c1_c6'>{{s}}</text>
|
||||||
|
|
||||||
|
<text></text>
|
||||||
|
</template>
|
||||||
|
</benben-countdown>
|
||||||
|
</view>
|
||||||
|
</view>
|
||||||
|
|
||||||
|
<!---flex布局flex布局结束-->
|
||||||
|
<!---flex布局flex布局开始-->
|
||||||
|
<!-- && source != 'app' -->
|
||||||
|
<view class="flex benben-flex-layout flex-wrap align-center immediatePayment_flex_2" v-if="score > 0">
|
||||||
|
<view class='flex flex-wrap align-center justify-between flex-sub immediatePayment_fd2_0'>
|
||||||
|
<view class='flex flex-direction flex-sub flex-wrap'>
|
||||||
|
<text class='immediatePayment_fd2_0_c0_c0'>使用抵用券抵扣<text
|
||||||
|
class="text-sm">(当前可用抵用券:{{user_score}})</text></text>
|
||||||
|
<text class='immediatePayment_fd2_0_c1_c0'>抵扣{{deduct_money}}</text>
|
||||||
|
</view>
|
||||||
|
<view class='flex flex-wrap align-center'>
|
||||||
|
<benben-flex-switch-new class-name='flex flex immediatePayment_fd2_0_c1_c1' v-model="is_agreem"
|
||||||
|
:disabled='Number(deduct_money) <= 0 || isdeduction == 1 || source == "app"' :auto='true'>
|
||||||
|
<template v-slot:checked>
|
||||||
|
|
||||||
|
<view class='flex flex position-relative align-center'>
|
||||||
|
<image class='immediatePayment_checkfd2_0_c1_c1_c0_c0' mode="aspectFit"
|
||||||
|
:src='STATIC_URL+"85.png"'>
|
||||||
|
</image>
|
||||||
|
</view>
|
||||||
|
|
||||||
|
</template>
|
||||||
|
<template v-slot:unchecked>
|
||||||
|
|
||||||
|
<view class='flex flex position-relative justify-end align-center'>
|
||||||
|
<image class='immediatePayment_noCheckfd2_0_c1_c1_c1_c0' mode="aspectFit"
|
||||||
|
:src='STATIC_URL+"123.png"'>
|
||||||
|
</image>
|
||||||
|
</view>
|
||||||
|
|
||||||
|
</template>
|
||||||
|
</benben-flex-switch-new>
|
||||||
|
</view>
|
||||||
|
</view>
|
||||||
|
</view>
|
||||||
|
|
||||||
|
<!---flex布局flex布局结束-->
|
||||||
|
|
||||||
|
<view class="flex flex-direction flex-wrap align-stretch benben-flex-layout immediatePayment_flex_3">
|
||||||
|
<view class='flex flex-direction flex-wrap align-stretch immediatePayment_fd3_0'>
|
||||||
|
<view class='flex flex-wrap align-center immediatePayment_fd3_0_c0'>
|
||||||
|
<text class='immediatePayment_fd3_0_c0_c0'>选择支付方式</text>
|
||||||
|
</view>
|
||||||
|
<view class='flex flex-wrap align-center'>
|
||||||
|
<benben-select-diy ref="showSelectPopup1684574445816"
|
||||||
|
class-name='flex flex-direction flex-wrap align-stretch flex immediatePayment_fd3_0_c1_c0'
|
||||||
|
:items.sync="select_pay" v-model="select_id" default-type="value" default-label="name"
|
||||||
|
:allow-cancel='true' type="radio" :disabled='false'>
|
||||||
|
<template v-for='(item,key0) in select_pay'>
|
||||||
|
<view v-if="item.isSelected" class='flex align-center flex immediatePayment_fd3_0_c1_c0_c0'
|
||||||
|
:key="key0" @tap="$refs.showSelectPopup1684574445816.tapHandle(key0)">
|
||||||
|
<image class='immediatePayment_fd3_0_c1_c0_c0_c0' mode="aspectFit" :src='item.image'>
|
||||||
|
</image>
|
||||||
|
<text class='immediatePayment_fd3_0_c1_c0_c0_c1'>{{item.name}}</text>
|
||||||
|
<image class='immediatePayment_fd3_0_c1_c0_c0_c2' mode="aspectFit"
|
||||||
|
:src='STATIC_URL+"85.png"'></image>
|
||||||
|
</view>
|
||||||
|
<view v-else class='flex align-center flex immediatePayment_fd3_0_c1_c0_c1' :key="key0"
|
||||||
|
@tap="$refs.showSelectPopup1684574445816.tapHandle(key0)">
|
||||||
|
<image class='immediatePayment_fd3_0_c1_c0_c1_c0' mode="aspectFit" :src='item.image'>
|
||||||
|
</image>
|
||||||
|
<text class='immediatePayment_fd3_0_c1_c0_c1_c1'>{{item.name}}</text>
|
||||||
|
<image class='immediatePayment_fd3_0_c1_c0_c1_c2' mode="aspectFit"
|
||||||
|
:src='STATIC_URL+"179.png"'></image>
|
||||||
|
</view>
|
||||||
|
</template>
|
||||||
|
</benben-select-diy>
|
||||||
|
</view>
|
||||||
|
</view>
|
||||||
|
</view>
|
||||||
|
|
||||||
|
|
||||||
|
<view class="flex flex-direction flex-wrap align-center benben-position-layout flex immediatePayment_flex_4">
|
||||||
|
<button class='immediatePayment_fd4_0' @tap.stop="determineAskforFunc()">立即支付</button>
|
||||||
|
|
||||||
|
</view>
|
||||||
|
<view :style="{height: '127rpx'}"></view>
|
||||||
|
<benben-popup v-model="popupShow1684575594621" :mask="true" mode='center'>
|
||||||
|
<!---flex布局flex布局开始-->
|
||||||
|
<view class="flex flex-direction align-center benben-flex-layout immediatePayment_flex_5">
|
||||||
|
<text class='immediatePayment_fd5_0'>确认离开收银台?</text>
|
||||||
|
<text class='immediatePayment_fd5_1'>您的订单还未完成支付,请尽快支付</text>
|
||||||
|
<view class='flex flex-wrap align-center immediatePayment_fd5_2'>
|
||||||
|
<button class='immediatePayment_fd5_2_c0' @tap.stop="handleJumpDiy" data-type="switchTab"
|
||||||
|
:data-url="`/pages/tabBar/myOrder/myOrder`">确认离开</button>
|
||||||
|
<button class='immediatePayment_fd5_2_c1' @tap.stop="popupShow1684575594621=false">继续支付</button>
|
||||||
|
</view>
|
||||||
|
</view>
|
||||||
|
|
||||||
|
<!---flex布局flex布局结束-->
|
||||||
|
|
||||||
|
</benben-popup>
|
||||||
|
|
||||||
|
|
||||||
|
</view>
|
||||||
|
</template>
|
||||||
|
<script>
|
||||||
|
import {
|
||||||
|
LOGIN_PAGE_URL,
|
||||||
|
SYSTEM_CONFIG,
|
||||||
|
ACCEPT_PLATFORM
|
||||||
|
} from '@/common/config.js'
|
||||||
|
export default {
|
||||||
|
components: {},
|
||||||
|
|
||||||
|
|
||||||
|
data() {
|
||||||
|
return {
|
||||||
|
orderMoney: 0,
|
||||||
|
"popupShow1684575594621": false,
|
||||||
|
time: 0,
|
||||||
|
"is_agreem": false,
|
||||||
|
score: 0,
|
||||||
|
"select_pay": [{
|
||||||
|
"name": "微信支付",
|
||||||
|
"value": "1",
|
||||||
|
"image": "https://lvtai-files.oss-cn-beijing.aliyuncs.com/mini/1d066923b9b33614a9df47ea787e5af9.png"
|
||||||
|
},
|
||||||
|
|
||||||
|
// {
|
||||||
|
// "name": "余额支付",
|
||||||
|
// "value": "3",
|
||||||
|
// "image": "https://zhongben-crm.oss-cn-zhangjiakou.aliyuncs.com/uploads/images/20220615/6188e5b4967f1b162ee2c0c93fd7cf94.png"
|
||||||
|
// },
|
||||||
|
],
|
||||||
|
"select_id": "1",
|
||||||
|
"pay_moeny": "",
|
||||||
|
"state": "",
|
||||||
|
sn: '',
|
||||||
|
deduct_money: "",
|
||||||
|
user_score: "",
|
||||||
|
payTimer: null,
|
||||||
|
source: '',
|
||||||
|
token: '',
|
||||||
|
isdeduction: '',
|
||||||
|
score: 0,
|
||||||
|
isDeduct: 0,
|
||||||
|
oldMoney: 0
|
||||||
|
};
|
||||||
|
},
|
||||||
|
computed: {
|
||||||
|
themeColor() {
|
||||||
|
return this.$store.getters.themeColor
|
||||||
|
},
|
||||||
|
|
||||||
|
},
|
||||||
|
watch: {},
|
||||||
|
onLoad(options) {
|
||||||
|
let {
|
||||||
|
money,
|
||||||
|
state,
|
||||||
|
time,
|
||||||
|
sn,
|
||||||
|
source,
|
||||||
|
isdeduction,
|
||||||
|
score
|
||||||
|
} = options
|
||||||
|
if (money !== undefined) this.pay_moeny = money
|
||||||
|
if (state !== undefined) this.state = state
|
||||||
|
if (time !== undefined) this.time = time
|
||||||
|
if (sn !== undefined) this.sn = sn
|
||||||
|
if (source !== undefined) this.source = source
|
||||||
|
if (isdeduction !== undefined) this.isdeduction = isdeduction
|
||||||
|
if (score !== undefined) this.score = score
|
||||||
|
|
||||||
|
// if (is_agreem !== undefined) this.is_agreem = is_agreem
|
||||||
|
// console.log('is_agreem=', is_agreem)
|
||||||
|
// if (this.source != 'app') {
|
||||||
|
// this.is_agreem = this.isdeduction == 1
|
||||||
|
// }
|
||||||
|
|
||||||
|
// #ifdef APP-PLUS
|
||||||
|
this.select_pay.push({
|
||||||
|
"name": "支付宝支付",
|
||||||
|
"value": "2",
|
||||||
|
"image": "https://zhongben-crm.oss-cn-zhangjiakou.aliyuncs.com/uploads/images/20220615/6188e5b4967f1b162ee2c0c93fd7cf94.png"
|
||||||
|
})
|
||||||
|
// #endif
|
||||||
|
},
|
||||||
|
onUnload() {
|
||||||
|
if (this.payTimer) {
|
||||||
|
clearInterval(this.payTimer);
|
||||||
|
}
|
||||||
|
},
|
||||||
|
onReady() {
|
||||||
|
|
||||||
|
},
|
||||||
|
onShow() {
|
||||||
|
this.token = global.token || ''
|
||||||
|
if (!this.token) {
|
||||||
|
uni.navigateTo({
|
||||||
|
url: LOGIN_PAGE_URL
|
||||||
|
})
|
||||||
|
return
|
||||||
|
}
|
||||||
|
|
||||||
|
this.getInfo();
|
||||||
|
this.get64a62b3d77830()
|
||||||
|
},
|
||||||
|
onHide() {
|
||||||
|
|
||||||
|
},
|
||||||
|
onResize() {
|
||||||
|
|
||||||
|
},
|
||||||
|
onPullDownRefresh() {
|
||||||
|
|
||||||
|
},
|
||||||
|
onReachBottom(e) {
|
||||||
|
|
||||||
|
},
|
||||||
|
onPageScroll(e) {
|
||||||
|
|
||||||
|
},
|
||||||
|
methods: {
|
||||||
|
handleTimeEnd() {
|
||||||
|
uni.navigateBack({
|
||||||
|
delta: 1
|
||||||
|
})
|
||||||
|
},
|
||||||
|
getInfo() {
|
||||||
|
this.$api
|
||||||
|
.post(global.apiUrls.post5c78c4772da97, {
|
||||||
|
user_id: (global.userInfo && global.userInfo.id) || 0
|
||||||
|
})
|
||||||
|
.then(res => {
|
||||||
|
res = res.data;
|
||||||
|
if (res.code == 1) {
|
||||||
|
this.score = res.data.score - 0;
|
||||||
|
}
|
||||||
|
});
|
||||||
|
},
|
||||||
|
get64a62b3d77830() {
|
||||||
|
this.$api.post(global.apiUrls.get64a62b3d77830, {
|
||||||
|
order_sn: this.sn
|
||||||
|
}).then(res => {
|
||||||
|
res = res.data;
|
||||||
|
if (res.code == 1) {
|
||||||
|
this.deduct_money = res.data.deduct_money
|
||||||
|
this.user_score = res.data.user_score
|
||||||
|
console.log('res.data.is_deduct=', res.data.is_deduct)
|
||||||
|
if (res.data.is_deduct == 1) {
|
||||||
|
this.is_agreem = true
|
||||||
|
this.isDeduct = 1
|
||||||
|
this.oldMoney = res.data.order_money
|
||||||
|
}
|
||||||
|
}
|
||||||
|
});
|
||||||
|
},
|
||||||
|
//判断自取
|
||||||
|
determineAskforFunc() {
|
||||||
|
let that = this;
|
||||||
|
console.log(that.is_agreem)
|
||||||
|
if (that.is_agreem) {
|
||||||
|
this.get64a633e0099ce()
|
||||||
|
} else {
|
||||||
|
this.paySure()
|
||||||
|
// this.post6757f462c15d3()
|
||||||
|
}
|
||||||
|
|
||||||
|
return
|
||||||
|
},
|
||||||
|
post6757f462c15d3() {
|
||||||
|
this.$api.post(global.apiUrls.post6757f462c15d3, {
|
||||||
|
order_sn: this.sn
|
||||||
|
}).then(res => {
|
||||||
|
if (res.data.code == 1) {
|
||||||
|
if (res.data.data.is_pay == 1) {
|
||||||
|
this.isdeduction = 1
|
||||||
|
this.paySure()
|
||||||
|
} else {
|
||||||
|
this.$urouter.redirectTo(
|
||||||
|
`/pages/dpxq/paymentResults/paymentResults?pay=5&state=${this.state}&sn=${this.sn}`
|
||||||
|
);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
});
|
||||||
|
},
|
||||||
|
get64a633e0099ce() {
|
||||||
|
this.$api.post(global.apiUrls.get64a633e0099ce, {
|
||||||
|
order_sn: this.sn
|
||||||
|
}).then(res => {
|
||||||
|
if (res.data.code == 1) {
|
||||||
|
if (res.data.data.is_pay == 1) {
|
||||||
|
this.paySure()
|
||||||
|
} else {
|
||||||
|
this.$urouter.redirectTo(
|
||||||
|
`/pages/dpxq/paymentResults/paymentResults?pay=5&state=${this.state}&sn=${this.sn}`
|
||||||
|
);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
});
|
||||||
|
},
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
paySure() {
|
||||||
|
let that = this;
|
||||||
|
if (that.select_id == 3) {
|
||||||
|
this.$api.post(global.apiUrls.postPayOrder, {
|
||||||
|
order_sn: this.sn
|
||||||
|
})
|
||||||
|
.then(res => {
|
||||||
|
if (res.data.code == 1) {
|
||||||
|
that.$urouter.redirectTo(
|
||||||
|
`/pages/dpxq/paymentResults/paymentResults?pay=${that.select_id}&state=${that.state}&sn=${that.sn}`
|
||||||
|
);
|
||||||
|
} else {
|
||||||
|
this.$message.info(res.data.msg)
|
||||||
|
}
|
||||||
|
})
|
||||||
|
.catch(err => {
|
||||||
|
console.log("err: ", err);
|
||||||
|
})
|
||||||
|
|
||||||
|
} else {
|
||||||
|
uni.showLoading({
|
||||||
|
title: '正在支付',
|
||||||
|
mask: true
|
||||||
|
})
|
||||||
|
|
||||||
|
let paytype = that.select_id == '1' ? 3 : 2
|
||||||
|
let url = that.select_id == '1' ? global.apiUrls.wxPay : global.apiUrls.aliPay;
|
||||||
|
let params = {
|
||||||
|
order_sn: this.sn
|
||||||
|
}
|
||||||
|
if (this.select_id == 1) {
|
||||||
|
params.wxpaytype = 'AppPay'
|
||||||
|
// #ifdef MP-WEIXIN
|
||||||
|
params.wxpaytype = 'MiniPay'
|
||||||
|
// #endif
|
||||||
|
}
|
||||||
|
// // #ifdef MP-WEIXIN
|
||||||
|
// paytype = 'mini'
|
||||||
|
// // #endif
|
||||||
|
that.$api.post(url, params).then(res => {
|
||||||
|
|
||||||
|
console.log(res)
|
||||||
|
uni.hideLoading()
|
||||||
|
res = res.data
|
||||||
|
if (res.code == 1) {
|
||||||
|
console.log('支付', res);
|
||||||
|
|
||||||
|
if (that.select_id == 2) {
|
||||||
|
// uni.requestPayment({
|
||||||
|
// provider: 'alipay',
|
||||||
|
// orderInfo: res.data, //微信、支付宝订单数据
|
||||||
|
// success: function(res) {
|
||||||
|
// uni.showToast({ title: '支付成功~', icon: 'none' });
|
||||||
|
// that.$urouter.redirectTo(`/pages/dpxq/paymentResults/paymentResults?pay=${that.select_id}&state=${that.state}&sn=${that.sn}`);
|
||||||
|
// },
|
||||||
|
// fail: function(err) {
|
||||||
|
// console.log('fail:' + JSON.stringify(err));
|
||||||
|
// }
|
||||||
|
// });
|
||||||
|
// #ifdef APP
|
||||||
|
plus.runtime.openWeb(res.data.result.payCode);
|
||||||
|
// #endif
|
||||||
|
if (that.payTimer) {
|
||||||
|
clearInterval(that.payTimer);
|
||||||
|
}
|
||||||
|
that.payTimer = setInterval(function() {
|
||||||
|
console.log(2);
|
||||||
|
that.$api.get(global.apiUrls.getOrderDetail, {
|
||||||
|
order_sn: that.sn
|
||||||
|
})
|
||||||
|
.then(res => {
|
||||||
|
console.log(res.data.data)
|
||||||
|
if (res.data.code == 1) {
|
||||||
|
let payStatus = res.data.data.status - 0;
|
||||||
|
console.log(payStatus);
|
||||||
|
if (payStatus > 0) {
|
||||||
|
clearInterval(that.payTimer);
|
||||||
|
uni.redirectTo({
|
||||||
|
url: `/pages/dpxq/paymentResults/paymentResults?pay=${that.select_id}&state=${that.state}&sn=${that.sn}`
|
||||||
|
})
|
||||||
|
}
|
||||||
|
}
|
||||||
|
})
|
||||||
|
.catch(err => {
|
||||||
|
console.log(err)
|
||||||
|
});
|
||||||
|
// clearInterval(this.payTimer)
|
||||||
|
}, 5000)
|
||||||
|
} else {
|
||||||
|
// console.log(JSON.stringify(res.data.result));
|
||||||
|
// #ifdef APP-PLUS
|
||||||
|
plus.share.getServices(function(res) {
|
||||||
|
console.log(res, '<--res')
|
||||||
|
var sweixin = null;
|
||||||
|
for (var i = 0; i < res.length; i++) {
|
||||||
|
var t = res[i];
|
||||||
|
if (t.id == 'weixin') {
|
||||||
|
sweixin = t;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
if (sweixin) {
|
||||||
|
console.log(1);
|
||||||
|
let payMoney = Number(that.pay_moeny) - (that.is_agreem ? Number(
|
||||||
|
that.deduct_money) : 0)
|
||||||
|
sweixin.launchMiniProgram({
|
||||||
|
id: 'gh_2d502cf377f1', //这里写你的小程序原始id(以gh开头)
|
||||||
|
type: 0, //这里是不同的环境(默认0正式 2体验)
|
||||||
|
path: `/pages/dpxq/immediatePayment/immediatePayment?source=app&state=${that.state}&money=${payMoney}&time=${that.time}&sn=${that.sn}&isdeduction=${that.is_agreem ? 1 : 2}` //这里是指定页的路径,如需传参直接字符串拼接(首页可以省略)
|
||||||
|
}, function(res) {
|
||||||
|
console.log(234);
|
||||||
|
console.log(JSON.stringify(res));
|
||||||
|
if (that.payTimer) {
|
||||||
|
clearInterval(that.payTimer);
|
||||||
|
}
|
||||||
|
that.payTimer = setInterval(function() {
|
||||||
|
console.log(2);
|
||||||
|
that.$api.get(global.apiUrls
|
||||||
|
.getOrderDetail, {
|
||||||
|
order_sn: that.sn
|
||||||
|
})
|
||||||
|
.then(res => {
|
||||||
|
console.log(res.data.data)
|
||||||
|
if (res.data.code == 1) {
|
||||||
|
let payStatus = res.data
|
||||||
|
.data.status - 0;
|
||||||
|
console.log(payStatus);
|
||||||
|
if (payStatus > 0) {
|
||||||
|
clearInterval(that
|
||||||
|
.payTimer);
|
||||||
|
uni.redirectTo({
|
||||||
|
url: `/pages/dpxq/paymentResults/paymentResults?pay=${that.select_id}&state=${that.state}&sn=${that.sn}`
|
||||||
|
})
|
||||||
|
}
|
||||||
|
}
|
||||||
|
})
|
||||||
|
.catch(err => {
|
||||||
|
console.log(err)
|
||||||
|
});
|
||||||
|
// clearInterval(this.payTimer)
|
||||||
|
}, 3000)
|
||||||
|
}, function(err) {
|
||||||
|
console.log(JSON.stringify(err));
|
||||||
|
});
|
||||||
|
} else {
|
||||||
|
uni.showToast({
|
||||||
|
title: '您还没有安装微信',
|
||||||
|
icon: 'none'
|
||||||
|
});
|
||||||
|
}
|
||||||
|
}, function(res) {
|
||||||
|
console.log(JSON.stringify(res));
|
||||||
|
});
|
||||||
|
// `/pages/dpxq/immediatePayment/immediatePayment?state=${info.pick_type}&money=${info.payable_money}&time=${info.surplus_pay_time}&sn=${info.order_sn}`
|
||||||
|
// uni.requestPayment({
|
||||||
|
// provider: 'wxpay',
|
||||||
|
// orderInfo: res.data.result.payCode, //微信、支付宝订单数据
|
||||||
|
// success: function(res) {
|
||||||
|
// uni.showToast({ title: '支付成功~', icon: 'none' });
|
||||||
|
// that.$urouter.redirectTo(`/pages/dpxq/paymentResults/paymentResults?pay=${that.select_id}&state=${that.state}&sn=${that.sn}`);
|
||||||
|
// },
|
||||||
|
// fail: function(err) {
|
||||||
|
// console.log('fail:' + JSON.stringify(err));
|
||||||
|
// }
|
||||||
|
// });
|
||||||
|
// #endif
|
||||||
|
// #ifdef MP-WEIXIN
|
||||||
|
uni.requestPayment({
|
||||||
|
provider: 'wxpay',
|
||||||
|
timeStamp: res.data.result.payCode.timeStamp,
|
||||||
|
nonceStr: res.data.result.payCode.nonceStr,
|
||||||
|
package: res.data.result.payCode.package,
|
||||||
|
signType: res.data.result.payCode.signType,
|
||||||
|
paySign: res.data.result.payCode.paySign,
|
||||||
|
success: res => {
|
||||||
|
uni.showToast({
|
||||||
|
title: '支付成功~',
|
||||||
|
icon: 'none'
|
||||||
|
});
|
||||||
|
that.$urouter.redirectTo(
|
||||||
|
`/pages/dpxq/paymentResults/paymentResults?source=${this.source}&pay=${this.select_id}&state=${this.state}&sn=${that.sn}`
|
||||||
|
);
|
||||||
|
},
|
||||||
|
fail: err => {
|
||||||
|
console.log('fail:' + JSON.stringify(err));
|
||||||
|
}
|
||||||
|
});
|
||||||
|
// #endif
|
||||||
|
}
|
||||||
|
} else {
|
||||||
|
uni.showToast({
|
||||||
|
title: res.data.msg,
|
||||||
|
icon: 'none'
|
||||||
|
});
|
||||||
|
}
|
||||||
|
})
|
||||||
|
.catch(err => {
|
||||||
|
console.log(err);
|
||||||
|
});
|
||||||
|
|
||||||
|
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
};
|
||||||
|
</script>
|
||||||
|
<style lang="scss" scoped>
|
||||||
|
.page {
|
||||||
|
width: 100vw;
|
||||||
|
overflow-x: hidden;
|
||||||
|
min-height: calc(100vh - var(--window-bottom));
|
||||||
|
background: rgba(246, 247, 249, 1);
|
||||||
|
background-size: 100% auto !important;
|
||||||
|
}
|
||||||
|
|
||||||
|
.immediatePayment_flex_0 {
|
||||||
|
background: #fff;
|
||||||
|
width: 750rpx;
|
||||||
|
height: 88rpx;
|
||||||
|
overflow: hidden;
|
||||||
|
z-index: 10;
|
||||||
|
top: 0rpx;
|
||||||
|
background-size: 100% auto !important;
|
||||||
|
}
|
||||||
|
|
||||||
|
.immediatePayment_fd0_0_c2 {
|
||||||
|
width: 32rpx;
|
||||||
|
height: 32rpx;
|
||||||
|
}
|
||||||
|
|
||||||
|
.immediatePayment_fd0_0_c1_c0 {
|
||||||
|
font-size: 36rpx;
|
||||||
|
font-weight: 500;
|
||||||
|
color: #333;
|
||||||
|
line-height: 88rpx;
|
||||||
|
}
|
||||||
|
|
||||||
|
.immediatePayment_fd0_0_c0_c0 {
|
||||||
|
font-size: 32rpx;
|
||||||
|
font-weight: 500;
|
||||||
|
color: #333;
|
||||||
|
line-height: 88rpx;
|
||||||
|
}
|
||||||
|
|
||||||
|
.immediatePayment_fd0_0 {
|
||||||
|
margin: 0rpx 32rpx 0rpx 32rpx;
|
||||||
|
}
|
||||||
|
|
||||||
|
.immediatePayment_flex_1 {
|
||||||
|
padding: 72rpx 0rpx 120rpx 0rpx;
|
||||||
|
}
|
||||||
|
|
||||||
|
.immediatePayment_fd1_1_c1_c6 {
|
||||||
|
color: #666666;
|
||||||
|
font-size: 24rpx;
|
||||||
|
font-weight: 500;
|
||||||
|
line-height: 24rpx;
|
||||||
|
}
|
||||||
|
|
||||||
|
.immediatePayment_fd1_1_c1_c5 {
|
||||||
|
color: #666666;
|
||||||
|
font-size: 24rpx;
|
||||||
|
font-weight: 500;
|
||||||
|
line-height: 24rpx;
|
||||||
|
}
|
||||||
|
|
||||||
|
.immediatePayment_fd1_1_c1_c4 {
|
||||||
|
color: #666666;
|
||||||
|
font-size: 24rpx;
|
||||||
|
font-weight: 500;
|
||||||
|
line-height: 24rpx;
|
||||||
|
}
|
||||||
|
|
||||||
|
.immediatePayment_fd1_1_c1_c3 {
|
||||||
|
color: #666666;
|
||||||
|
font-size: 24rpx;
|
||||||
|
font-weight: 500;
|
||||||
|
line-height: 24rpx;
|
||||||
|
}
|
||||||
|
|
||||||
|
.immediatePayment_fd1_1_c1_c2 {
|
||||||
|
color: #666666;
|
||||||
|
font-size: 24rpx;
|
||||||
|
font-weight: 500;
|
||||||
|
line-height: 24rpx;
|
||||||
|
}
|
||||||
|
|
||||||
|
.immediatePayment_fd1_1_c0 {
|
||||||
|
color: #666666;
|
||||||
|
font-size: 24rpx;
|
||||||
|
font-weight: 500;
|
||||||
|
line-height: 24rpx;
|
||||||
|
}
|
||||||
|
|
||||||
|
.immediatePayment_fd1_1 {
|
||||||
|
margin: 16rpx 0rpx 0rpx 0rpx;
|
||||||
|
}
|
||||||
|
|
||||||
|
.immediatePayment_fd1_0_c1 {
|
||||||
|
color: #E32121;
|
||||||
|
font-size: 64rpx;
|
||||||
|
font-weight: 500;
|
||||||
|
line-height: 64rpx;
|
||||||
|
}
|
||||||
|
|
||||||
|
.immediatePayment_fd1_0_c0 {
|
||||||
|
color: #E32121;
|
||||||
|
font-size: 32rpx;
|
||||||
|
font-weight: 500;
|
||||||
|
line-height: 40rpx;
|
||||||
|
}
|
||||||
|
|
||||||
|
.immediatePayment_flex_2 {
|
||||||
|
padding: 0rpx 32rpx 0rpx 32rpx;
|
||||||
|
}
|
||||||
|
|
||||||
|
.immediatePayment_noCheckfd2_0_c1_c1_c1_c0 {
|
||||||
|
border-radius: 24rpx 24rpx 24rpx 24rpx;
|
||||||
|
width: 36rpx;
|
||||||
|
height: 36rpx;
|
||||||
|
}
|
||||||
|
|
||||||
|
.immediatePayment_checkfd2_0_c1_c1_c0_c0 {
|
||||||
|
width: 36rpx;
|
||||||
|
height: 36rpx;
|
||||||
|
border-radius: 24rpx 24rpx 24rpx 24rpx;
|
||||||
|
}
|
||||||
|
|
||||||
|
::v-deep .immediatePayment_fd2_0_c1_c1 {
|
||||||
|
margin: 0rpx 0rpx 0rpx 24rpx;
|
||||||
|
}
|
||||||
|
|
||||||
|
.immediatePayment_fd2_0_c1_c0 {
|
||||||
|
color: red;
|
||||||
|
font-size: 28rpx;
|
||||||
|
font-weight: 400;
|
||||||
|
line-height: 42rpx;
|
||||||
|
}
|
||||||
|
|
||||||
|
.immediatePayment_fd2_0_c0_c0 {
|
||||||
|
color: #333333;
|
||||||
|
font-size: 28rpx;
|
||||||
|
font-weight: 500;
|
||||||
|
line-height: 42rpx;
|
||||||
|
}
|
||||||
|
|
||||||
|
.immediatePayment_fd2_0 {
|
||||||
|
background: rgba(255, 255, 255, 1);
|
||||||
|
border-radius: 16rpx 16rpx 16rpx 16rpx;
|
||||||
|
background-size: 100% auto !important;
|
||||||
|
padding: 32rpx 32rpx 32rpx 24rpx;
|
||||||
|
}
|
||||||
|
|
||||||
|
.immediatePayment_flex_3 {
|
||||||
|
padding: 32rpx 30rpx 2rpx 32rpx;
|
||||||
|
}
|
||||||
|
|
||||||
|
.immediatePayment_fd3_0_c1_c0_c1_c2 {
|
||||||
|
width: 36rpx;
|
||||||
|
height: 36rpx;
|
||||||
|
margin: 0rpx 0rpx 0rpx auto;
|
||||||
|
border-radius: 18rpx 18rpx 18rpx 18rpx;
|
||||||
|
}
|
||||||
|
|
||||||
|
.immediatePayment_fd3_0_c1_c0_c1_c1 {
|
||||||
|
font-size: 28rpx;
|
||||||
|
font-weight: 400;
|
||||||
|
color: #333;
|
||||||
|
}
|
||||||
|
|
||||||
|
.immediatePayment_fd3_0_c1_c0_c1_c0 {
|
||||||
|
width: 52rpx;
|
||||||
|
height: 52rpx;
|
||||||
|
border-radius: 0rpx 0rpx 0rpx 0rpx;
|
||||||
|
margin: 0rpx 16rpx 0rpx 0rpx;
|
||||||
|
}
|
||||||
|
|
||||||
|
.immediatePayment_fd3_0_c1_c0_c1 {
|
||||||
|
border-bottom: 1px solid #eee;
|
||||||
|
padding: 28rpx 0rpx 28rpx 0rpx;
|
||||||
|
}
|
||||||
|
|
||||||
|
.immediatePayment_fd3_0_c1_c0_c0_c2 {
|
||||||
|
width: 36rpx;
|
||||||
|
height: 36rpx;
|
||||||
|
margin: 0rpx 0rpx 0rpx auto;
|
||||||
|
border-radius: 18rpx 18rpx 18rpx 18rpx;
|
||||||
|
}
|
||||||
|
|
||||||
|
.immediatePayment_fd3_0_c1_c0_c0_c1 {
|
||||||
|
font-size: 28rpx;
|
||||||
|
font-weight: 400;
|
||||||
|
color: #333;
|
||||||
|
}
|
||||||
|
|
||||||
|
.immediatePayment_fd3_0_c1_c0_c0_c0 {
|
||||||
|
width: 52rpx;
|
||||||
|
height: 52rpx;
|
||||||
|
border-radius: 0rpx 0rpx 0rpx 0rpx;
|
||||||
|
margin: 0rpx 16rpx 0rpx 0rpx;
|
||||||
|
}
|
||||||
|
|
||||||
|
.immediatePayment_fd3_0_c1_c0_c0 {
|
||||||
|
border-bottom: 1px solid #eee;
|
||||||
|
padding: 28rpx 0rpx 28rpx 0rpx;
|
||||||
|
}
|
||||||
|
|
||||||
|
::v-deep .immediatePayment_fd3_0_c1_c0 {
|
||||||
|
width: 622rpx;
|
||||||
|
}
|
||||||
|
|
||||||
|
.immediatePayment_fd3_0_c0_c0 {
|
||||||
|
font-size: 32rpx;
|
||||||
|
font-weight: 700;
|
||||||
|
color: #333;
|
||||||
|
margin: 0rpx 0rpx 8rpx 0rpx;
|
||||||
|
}
|
||||||
|
|
||||||
|
.immediatePayment_fd3_0_c0 {
|
||||||
|
border-bottom: 1px solid #eee;
|
||||||
|
padding: 40rpx 0rpx 24rpx 0rpx;
|
||||||
|
}
|
||||||
|
|
||||||
|
.immediatePayment_fd3_0 {
|
||||||
|
background: rgba(255, 255, 255, 1);
|
||||||
|
padding: 0rpx 32rpx 0rpx 32rpx;
|
||||||
|
border-radius: 16rpx 16rpx 16rpx 16rpx;
|
||||||
|
background-size: 100% auto !important;
|
||||||
|
}
|
||||||
|
|
||||||
|
.immediatePayment_flex_4 {
|
||||||
|
width: 750rpx;
|
||||||
|
height: 127rpx;
|
||||||
|
overflow: hidden;
|
||||||
|
z-index: 10;
|
||||||
|
bottom: calc(0rpx + var(--window-bottom));
|
||||||
|
}
|
||||||
|
|
||||||
|
.immediatePayment_fd4_0 {
|
||||||
|
background: rgba(255, 147, 0, 1);
|
||||||
|
border-radius: 44rpx 44rpx 44rpx 44rpx;
|
||||||
|
font-size: 32rpx;
|
||||||
|
color: #fff;
|
||||||
|
width: 686rpx;
|
||||||
|
height: 80rpx;
|
||||||
|
line-height: 80rpx;
|
||||||
|
font-weight: 400;
|
||||||
|
}
|
||||||
|
|
||||||
|
.immediatePayment_flex_5 {
|
||||||
|
background: rgba(255, 255, 255, 1);
|
||||||
|
border-radius: 16rpx 16rpx 16rpx 16rpx;
|
||||||
|
padding: 40rpx 24rpx 0 24rpx;
|
||||||
|
}
|
||||||
|
|
||||||
|
.immediatePayment_fd5_2_c1 {
|
||||||
|
background: rgba(255, 255, 255, 1);
|
||||||
|
font-size: 28rpx;
|
||||||
|
color: rgba(255, 147, 0, 1);
|
||||||
|
padding: 0rpx 61rpx 0rpx 61rpx;
|
||||||
|
margin: 0rpx 0rpx 0rpx 12rpx;
|
||||||
|
}
|
||||||
|
|
||||||
|
.immediatePayment_fd5_2_c0 {
|
||||||
|
border-right: 1px solid #eee;
|
||||||
|
background: rgba(255, 255, 255, 1);
|
||||||
|
font-size: 28rpx;
|
||||||
|
color: rgba(153, 153, 153, 1);
|
||||||
|
padding: 0rpx 61rpx 0rpx 61rpx;
|
||||||
|
margin: 0rpx 12rpx 0rpx 0rpx;
|
||||||
|
background-size: 100% auto !important;
|
||||||
|
}
|
||||||
|
|
||||||
|
.immediatePayment_fd5_2 {
|
||||||
|
border-top: 1px solid #eee;
|
||||||
|
}
|
||||||
|
|
||||||
|
.immediatePayment_fd5_1 {
|
||||||
|
line-height: 52rpx;
|
||||||
|
font-size: 28rpx;
|
||||||
|
font-weight: 400;
|
||||||
|
color: #333333;
|
||||||
|
margin: 40rpx 0rpx 40rpx 0rpx;
|
||||||
|
}
|
||||||
|
|
||||||
|
.immediatePayment_fd5_0 {
|
||||||
|
line-height: 44rpx;
|
||||||
|
font-size: 32rpx;
|
||||||
|
font-weight: 500;
|
||||||
|
color: #333333;
|
||||||
|
}
|
||||||
|
</style>
|
||||||
@ -361,6 +361,7 @@
|
|||||||
title: '正在支付',
|
title: '正在支付',
|
||||||
mask: true
|
mask: true
|
||||||
})
|
})
|
||||||
|
|
||||||
let paytype = that.select_id == '1' ? 3 : 2
|
let paytype = that.select_id == '1' ? 3 : 2
|
||||||
let url = that.select_id == '1' ? global.apiUrls.wxPay : global.apiUrls.aliPay;
|
let url = that.select_id == '1' ? global.apiUrls.wxPay : global.apiUrls.aliPay;
|
||||||
let params = {
|
let params = {
|
||||||
@ -382,6 +383,7 @@
|
|||||||
res = res.data
|
res = res.data
|
||||||
if (res.code == 1) {
|
if (res.code == 1) {
|
||||||
console.log('支付', res);
|
console.log('支付', res);
|
||||||
|
|
||||||
if (that.select_id == 2) {
|
if (that.select_id == 2) {
|
||||||
// uni.requestPayment({
|
// uni.requestPayment({
|
||||||
// provider: 'alipay',
|
// provider: 'alipay',
|
||||||
@ -422,7 +424,7 @@
|
|||||||
console.log(err)
|
console.log(err)
|
||||||
});
|
});
|
||||||
// clearInterval(this.payTimer)
|
// clearInterval(this.payTimer)
|
||||||
}, 3000)
|
}, 5000)
|
||||||
} else {
|
} else {
|
||||||
// console.log(JSON.stringify(res.data.result));
|
// console.log(JSON.stringify(res.data.result));
|
||||||
// #ifdef APP-PLUS
|
// #ifdef APP-PLUS
|
||||||
|
|||||||
@ -5,21 +5,23 @@
|
|||||||
</view>
|
</view>
|
||||||
<view class="flex benben-position-layout flex flex-wrap align-center storeDetails_flex_0"
|
<view class="flex benben-position-layout flex flex-wrap align-center storeDetails_flex_0"
|
||||||
:style="{ height: (CustomBarRpx) + 'rpx', paddingTop: StatusBarRpx + 'rpx', background: backgroundColor }">
|
:style="{ height: (CustomBarRpx) + 'rpx', paddingTop: StatusBarRpx + 'rpx', background: backgroundColor }">
|
||||||
<view class='flex flex-wrap align-stretch justify-between flex-sub storeDetails_fd0_0' :style="{marginRight: menuButtonWidth +'px'}">
|
<view class='flex flex-wrap align-stretch justify-between flex-sub storeDetails_fd0_0'
|
||||||
<view class='flex flex-wrap align-center storeDetails_fd0_0_c0' @tap.stop="handleJumpDiy" data-type="back"
|
:style="{ marginRight: menuButtonWidth + 'px' }">
|
||||||
data-url="1">
|
<view class='flex flex-wrap align-center storeDetails_fd0_0_c0' @tap.stop="handleJumpDiy"
|
||||||
|
data-type="back" data-url="1">
|
||||||
<text class='fu-iconfont2 storeDetails_fd0_0_c0_c0'></text>
|
<text class='fu-iconfont2 storeDetails_fd0_0_c0_c0'></text>
|
||||||
</view>
|
</view>
|
||||||
<view class='flex flex-wrap align-center'>
|
<view class='flex flex-wrap align-center'>
|
||||||
<image class='storeDetails_fd0_0_c1_c0' :src='STATIC_URL + "73.png"' @tap.stop="handleJumpDiy"
|
<image class='storeDetails_fd0_0_c1_c0' :src='STATIC_URL + "73.png"' @tap.stop="handleJumpDiy"
|
||||||
data-type="navigateTo" :data-url="`/pages/dpxq/searchWithin/searchWithin?id=${id}`"></image>
|
data-type="navigateTo" :data-url="`/pages/dpxq/searchWithin/searchWithin?id=${id}`"></image>
|
||||||
<image class='storeDetails_fd0_0_c1_c1' mode="aspectFit" :src='STATIC_URL+"72.png"' @tap.stop="handleChatShop"></image>
|
<image class='storeDetails_fd0_0_c1_c1' mode="aspectFit" :src='STATIC_URL + "72.png"'
|
||||||
<image class='storeDetails_fd0_0_c1_c2' :src='STATIC_URL+"74.png"' @tap.stop="iscollectFunctionFunc()"
|
@tap.stop="handleChatShop"></image>
|
||||||
v-if="is_collect=='0'"></image>
|
<image class='storeDetails_fd0_0_c1_c2' :src='STATIC_URL + "74.png"'
|
||||||
<image class='storeDetails_fd0_0_c1_c2_1' :src='STATIC_URL+"97.png"' @tap.stop="iscollectFunctionFunc()"
|
@tap.stop="iscollectFunctionFunc()" v-if="is_collect == '0'"></image>
|
||||||
v-if="is_collect=='1' && opacity < 0.8"></image>
|
<image class='storeDetails_fd0_0_c1_c2_1' :src='STATIC_URL + "97.png"'
|
||||||
<image class='storeDetails_fd0_0_c1_c2_1' :src='STATIC_URL+"971.png"' @tap.stop="iscollectFunctionFunc()"
|
@tap.stop="iscollectFunctionFunc()" v-if="is_collect == '1' && opacity < 0.8"></image>
|
||||||
v-if="is_collect=='1' && opacity >= 0.8"></image>
|
<image class='storeDetails_fd0_0_c1_c2_1' :src='STATIC_URL + "971.png"'
|
||||||
|
@tap.stop="iscollectFunctionFunc()" v-if="is_collect == '1' && opacity >= 0.8"></image>
|
||||||
<image class='storeDetails_fd0_0_c1_c3' :src='STATIC_URL + "70.png"'
|
<image class='storeDetails_fd0_0_c1_c3' :src='STATIC_URL + "70.png"'
|
||||||
@tap.stop="$refs.benbenPositionPopup1684720938789.open($event)"></image>
|
@tap.stop="$refs.benbenPositionPopup1684720938789.open($event)"></image>
|
||||||
</view>
|
</view>
|
||||||
@ -29,20 +31,22 @@
|
|||||||
<view :style="{ height: (CustomBarRpx) + 'rpx' }"></view>
|
<view :style="{ height: (CustomBarRpx) + 'rpx' }"></view>
|
||||||
|
|
||||||
|
|
||||||
<benben-position-popup ref="benbenPositionPopup1684720938789" :width="172" :height="122" :mask-hide='false'
|
<benben-position-popup ref="benbenPositionPopup1684720938789" :width="172" :height="90" :mask-hide='false'
|
||||||
popup-origin="left top">
|
popup-origin="left top">
|
||||||
<view
|
<view
|
||||||
class='flex flex-direction align-stretch justify-center benben-flex-position-popup flex storeDetails_popup_1'>
|
class='flex flex-direction align-stretch justify-center benben-flex-position-popup flex storeDetails_popup_1'>
|
||||||
<view class='flex flex-wrap align-center justify-center' @tap.stop="popupShow1684725724594 = true">
|
<view class='flex flex-wrap align-center justify-center' @tap.stop="popupShow1684725724594 = true">
|
||||||
<image class='storeDetails_positionPopup1_c0_c0' mode="aspectFit" :src='STATIC_URL+"98.png"'></image>
|
<image class='storeDetails_positionPopup1_c0_c0' mode="aspectFit" :src='STATIC_URL + "98.png"'>
|
||||||
|
</image>
|
||||||
<text class='storeDetails_positionPopup1_c0_c1'>分享商家</text>
|
<text class='storeDetails_positionPopup1_c0_c1'>分享商家</text>
|
||||||
</view>
|
</view>
|
||||||
<view class='flex flex-wrap align-center justify-center storeDetails_positionPopup1_c1'
|
<!-- <view class='flex flex-wrap align-center justify-center storeDetails_positionPopup1_c1'
|
||||||
@tap.stop="handleToReporting" data-type="navigateTo"
|
@tap.stop="handleToReporting" data-type="navigateTo"
|
||||||
:data-url="`/pages/dpxq/reportingMerchants/reportingMerchants?id=${id}`">
|
:data-url="`/pages/dpxq/reportingMerchants/reportingMerchants?id=${id}`">
|
||||||
<image class='storeDetails_positionPopup1_c1_c0' mode="aspectFit" :src='STATIC_URL+"99.png"'></image>
|
<image class='storeDetails_positionPopup1_c1_c0' mode="aspectFit" :src='STATIC_URL + "99.png"'>
|
||||||
|
</image>
|
||||||
<text class='storeDetails_positionPopup1_c1_c1'>举报商家</text>
|
<text class='storeDetails_positionPopup1_c1_c1'>举报商家</text>
|
||||||
</view>
|
</view> -->
|
||||||
</view>
|
</view>
|
||||||
</benben-position-popup>
|
</benben-position-popup>
|
||||||
|
|
||||||
@ -63,15 +67,19 @@
|
|||||||
</view>
|
</view>
|
||||||
<view class='flex flex-wrap align-center' style="position: relative;">
|
<view class='flex flex-wrap align-center' style="position: relative;">
|
||||||
<image class='storeDetails_fd2_0_c0_c1_c0' mode="aspectFill" :src='info.logo'></image>
|
<image class='storeDetails_fd2_0_c0_c1_c0' mode="aspectFill" :src='info.logo'></image>
|
||||||
<image style="width: 50rpx; height: 50rpx; position: absolute; top: 0; right: 0; z-index: 10;" v-if="info.storelevel_thumb" :src="info.storelevel_thumb" mode="aspectFill"></image>
|
<image style="width: 50rpx; height: 50rpx; position: absolute; top: 0; right: 0; z-index: 10;"
|
||||||
|
v-if="info.storelevel_thumb" :src="info.storelevel_thumb" mode="aspectFill"></image>
|
||||||
</view>
|
</view>
|
||||||
</view>
|
</view>
|
||||||
<view class='flex flex-wrap align-center'>
|
<view class='flex flex-wrap align-center'>
|
||||||
<view class='flex flex-wrap align-center storeDetails_fd2_0_c1_c1' style="margin: 0 20rpx 0 0;" v-if="info.store_type">
|
<view class='flex flex-wrap align-center storeDetails_fd2_0_c1_c1' style="margin: 0 20rpx 0 0;"
|
||||||
<text class='storeDetails_fd2_0_c1_c1_c1' style="font-size: 26rpx;color: #FF9D00;">{{info.store_type}}</text>
|
v-if="info.store_type">
|
||||||
|
<text class='storeDetails_fd2_0_c1_c1_c1' style="font-size: 26rpx;color: #FF9D00;">{{
|
||||||
|
info.store_type }}</text>
|
||||||
</view>
|
</view>
|
||||||
<view class='flex flex-wrap align-center'>
|
<view class='flex flex-wrap align-center'>
|
||||||
<image class='storeDetails_fd2_0_c1_c0_c0' mode="aspectFit" :src='STATIC_URL+"31.png"'></image>
|
<image class='storeDetails_fd2_0_c1_c0_c0' mode="aspectFit" :src='STATIC_URL + "31.png"'>
|
||||||
|
</image>
|
||||||
<text class='storeDetails_fd2_0_c1_c0_c1'>{{ info.score }}</text>
|
<text class='storeDetails_fd2_0_c1_c0_c1'>{{ info.score }}</text>
|
||||||
</view>
|
</view>
|
||||||
<view class='flex flex-wrap align-center storeDetails_fd2_0_c1_c1'>
|
<view class='flex flex-wrap align-center storeDetails_fd2_0_c1_c1'>
|
||||||
@ -91,10 +99,10 @@
|
|||||||
class='storeDetails_fd2_0_c2_c0_c1_1' v-if="expand == '2'">{{ info.notice }}</text>
|
class='storeDetails_fd2_0_c2_c0_c1_1' v-if="expand == '2'">{{ info.notice }}</text>
|
||||||
</view>
|
</view>
|
||||||
<view class='flex flex-wrap align-center storeDetails_fd2_0_c2_c1' @tap.stop="expandFunctionFunc()">
|
<view class='flex flex-wrap align-center storeDetails_fd2_0_c2_c1' @tap.stop="expandFunctionFunc()">
|
||||||
<image class='storeDetails_fd2_0_c2_c1_c0' :src='STATIC_URL+"76.png"' @tap.stop="expandFunctionFunc()"
|
<image class='storeDetails_fd2_0_c2_c1_c0' :src='STATIC_URL + "76.png"'
|
||||||
v-if="expand=='1'"></image>
|
@tap.stop="expandFunctionFunc()" v-if="expand == '1'"></image>
|
||||||
<image class='storeDetails_fd2_0_c2_c1_c0_1' :src='STATIC_URL+"64.png"' @tap.stop="expandFunctionFunc()"
|
<image class='storeDetails_fd2_0_c2_c1_c0_1' :src='STATIC_URL + "64.png"'
|
||||||
v-if="expand=='2'"></image>
|
@tap.stop="expandFunctionFunc()" v-if="expand == '2'"></image>
|
||||||
</view>
|
</view>
|
||||||
</view>
|
</view>
|
||||||
</view>
|
</view>
|
||||||
@ -105,13 +113,14 @@
|
|||||||
<view class="flex benben-flex-layout flex-wrap align-center">
|
<view class="flex benben-flex-layout flex-wrap align-center">
|
||||||
<view class='flex flex-wrap align-center flex-sub'>
|
<view class='flex flex-wrap align-center flex-sub'>
|
||||||
<view>
|
<view>
|
||||||
<benben-flex-tabs class-name='storeDetails_benbenTabsfd3_0_c0' v-model="tabls" ref="benben_tabsfd3_0_c0"
|
<benben-flex-tabs class-name='storeDetails_benbenTabsfd3_0_c0' v-model="tabls"
|
||||||
select-mark="benben_tabsfd3_0_c0" key="benben_tabsfd3_0_c0" :open-title-type='false' :open-sticky='false'
|
ref="benben_tabsfd3_0_c0" select-mark="benben_tabsfd3_0_c0" key="benben_tabsfd3_0_c0"
|
||||||
:top='0' :is-show-content='true' :scrollspy='false' :tabs-info.sync="tabsInfofd3_0_c0">
|
:open-title-type='false' :open-sticky='false' :top='0' :is-show-content='true'
|
||||||
|
:scrollspy='false' :tabs-info.sync="tabsInfofd3_0_c0">
|
||||||
|
|
||||||
<scroll-view @scroll="tabsInfofd3_0_c0.scrollX = $event.detail.scrollLeft" id="benben_tabsfd3_0_c0"
|
<scroll-view @scroll="tabsInfofd3_0_c0.scrollX = $event.detail.scrollLeft"
|
||||||
class="benben-tabs" style="width:750rpx" :scroll-x="true" :scroll-left.sync="tabsInfofd3_0_c0.moveX"
|
id="benben_tabsfd3_0_c0" class="benben-tabs" style="width:750rpx" :scroll-x="true"
|
||||||
scroll-with-animation="all .3s ease">
|
:scroll-left.sync="tabsInfofd3_0_c0.moveX" scroll-with-animation="all .3s ease">
|
||||||
<view class="benben-tabs-content" id="benben_tabsfd3_0_c0-content">
|
<view class="benben-tabs-content" id="benben_tabsfd3_0_c0-content">
|
||||||
<view id="benben_tabsfd3_0_c0-title" class="benben-tabs-title flex align-center flex ">
|
<view id="benben_tabsfd3_0_c0-title" class="benben-tabs-title flex align-center flex ">
|
||||||
<view
|
<view
|
||||||
@ -127,10 +136,12 @@
|
|||||||
|
|
||||||
<text>评价</text>
|
<text>评价</text>
|
||||||
|
|
||||||
<text class='storeDetails_titleItemfd3_0_c0_c4_c1'>{{info.comment_num > 999 ? '999+' : info.comment_num }}</text>
|
<text class='storeDetails_titleItemfd3_0_c0_c4_c1'>{{ info.comment_num > 999 ?
|
||||||
|
'999+' : info.comment_num }}</text>
|
||||||
|
|
||||||
</view>
|
</view>
|
||||||
<view :class="{ 'checkTitlefd3_0_c0': tabls == '3', 'flex flex-wrap align-center': true }"
|
<view
|
||||||
|
:class="{ 'checkTitlefd3_0_c0': tabls == '3', 'flex flex-wrap align-center': true }"
|
||||||
@tap="tabls = '3'" :id="`benben_tabsfd3_0_c0-title-item-${'3'}`">
|
@tap="tabls = '3'" :id="`benben_tabsfd3_0_c0-title-item-${'3'}`">
|
||||||
|
|
||||||
<text>商家</text>
|
<text>商家</text>
|
||||||
@ -139,7 +150,8 @@
|
|||||||
</view>
|
</view>
|
||||||
<view :style="{ left: tabsInfofd3_0_c0.lineleft, maxWidth: tabsInfofd3_0_c0.lineWidth }"
|
<view :style="{ left: tabsInfofd3_0_c0.lineleft, maxWidth: tabsInfofd3_0_c0.lineWidth }"
|
||||||
id="benben_tabsfd3_0_c0-line"
|
id="benben_tabsfd3_0_c0-line"
|
||||||
class="benben-tabs-line flex benben-flex-tabs-line storeDetails_linefd3_0_c0"></view>
|
class="benben-tabs-line flex benben-flex-tabs-line storeDetails_linefd3_0_c0">
|
||||||
|
</view>
|
||||||
</view>
|
</view>
|
||||||
</scroll-view>
|
</scroll-view>
|
||||||
|
|
||||||
@ -147,16 +159,18 @@
|
|||||||
<view>
|
<view>
|
||||||
<view class="benben_tabsfd3_0_c0-body-item flex flex-direction flex-wrap align-stretch"
|
<view class="benben_tabsfd3_0_c0-body-item flex flex-direction flex-wrap align-stretch"
|
||||||
v-if="tabls == '1' && swiperList.length > 0" :id="`benben_tabsfd3_0_c0-body-item-${'1'}`">
|
v-if="tabls == '1' && swiperList.length > 0" :id="`benben_tabsfd3_0_c0-body-item-${'1'}`">
|
||||||
<view class='flex flex-wrap align-center justify-center storeDetails_bodyItemfd3_0_c0_c3_c0'>
|
<view
|
||||||
|
class='flex flex-wrap align-center justify-center storeDetails_bodyItemfd3_0_c0_c3_c0'>
|
||||||
<view style="position: relative">
|
<view style="position: relative">
|
||||||
<swiper ref="benbenSwiperbodyItemfd3_0_c0_c3_c0_c0"
|
<swiper ref="benbenSwiperbodyItemfd3_0_c0_c3_c0_c0"
|
||||||
@change="bannerIndexbodyItemfd3_0_c0_c3_c0_c0 = $event.detail.current"
|
@change="bannerIndexbodyItemfd3_0_c0_c3_c0_c0 = $event.detail.current"
|
||||||
class='flex position-relative storeDetails_bodyItemfd3_0_c0_c3_c0_c0' previous-margin="0rpx"
|
class='flex position-relative storeDetails_bodyItemfd3_0_c0_c3_c0_c0'
|
||||||
next-margin="0rpx" :display-multiple-items="1" :interval="5000" :duration="500" :autoplay='true'
|
previous-margin="0rpx" next-margin="0rpx" :display-multiple-items="1"
|
||||||
:circular='true'>
|
:interval="5000" :duration="500" :autoplay='true' :circular='true'>
|
||||||
<swiper-item class='flex storeDetails_bodyItemfd3_0_c0_c3_c0_c0_c1' @tap="handleAd(item)" v-for="(item, index) in swiperList" :key="index">
|
<swiper-item class='flex storeDetails_bodyItemfd3_0_c0_c3_c0_c0_c1'
|
||||||
<image class='storeDetails_bodyItemfd3_0_c0_c3_c0_c0_c1_c0' mode="aspectFill"
|
@tap="handleAd(item)" v-for="(item, index) in swiperList" :key="index">
|
||||||
:src='item.thumb'></image>
|
<image class='storeDetails_bodyItemfd3_0_c0_c3_c0_c0_c1_c0'
|
||||||
|
mode="aspectFill" :src='item.thumb'></image>
|
||||||
</swiper-item>
|
</swiper-item>
|
||||||
</swiper>
|
</swiper>
|
||||||
</view>
|
</view>
|
||||||
@ -164,7 +178,8 @@
|
|||||||
</view>
|
</view>
|
||||||
<view class="benben_tabsfd3_0_c0-body-item flex flex-direction flex-wrap align-stretch"
|
<view class="benben_tabsfd3_0_c0-body-item flex flex-direction flex-wrap align-stretch"
|
||||||
v-if="tabls == '2'" :id="`benben_tabsfd3_0_c0-body-item-${'2'}`">
|
v-if="tabls == '2'" :id="`benben_tabsfd3_0_c0-body-item-${'2'}`">
|
||||||
<view class='flex flex-wrap align-center justify-around storeDetails_bodyItemfd3_0_c0_c4_c0'>
|
<view
|
||||||
|
class='flex flex-wrap align-center justify-around storeDetails_bodyItemfd3_0_c0_c4_c0'>
|
||||||
<view class='flex flex-direction flex-wrap align-center'>
|
<view class='flex flex-direction flex-wrap align-center'>
|
||||||
<text class='storeDetails_bodyItemfd3_0_c0_c4_c0_c0_c0'>商家评分</text>
|
<text class='storeDetails_bodyItemfd3_0_c0_c4_c0_c0_c0'>商家评分</text>
|
||||||
<text class='storeDetails_bodyItemfd3_0_c0_c4_c0_c0_c1'>{{ info.score }}</text>
|
<text class='storeDetails_bodyItemfd3_0_c0_c4_c0_c0_c1'>{{ info.score }}</text>
|
||||||
@ -174,67 +189,84 @@
|
|||||||
|
|
||||||
<view class='flex flex-direction flex-wrap align-center'>
|
<view class='flex flex-direction flex-wrap align-center'>
|
||||||
<text class='storeDetails_bodyItemfd3_0_c0_c4_c0_c2_c0'>服务态度</text>
|
<text class='storeDetails_bodyItemfd3_0_c0_c4_c0_c2_c0'>服务态度</text>
|
||||||
<text class='storeDetails_bodyItemfd3_0_c0_c4_c0_c2_c1'>{{info.service_score}}</text>
|
<text class='storeDetails_bodyItemfd3_0_c0_c4_c0_c2_c1'>{{ info.service_score
|
||||||
|
}}</text>
|
||||||
</view>
|
</view>
|
||||||
|
|
||||||
<view class='flex storeDetails_bodyItemfd3_0_c0_c4_c0_c3'></view>
|
<view class='flex storeDetails_bodyItemfd3_0_c0_c4_c0_c3'></view>
|
||||||
|
|
||||||
<view class='flex flex-direction flex-wrap align-center'>
|
<view class='flex flex-direction flex-wrap align-center'>
|
||||||
<text class='storeDetails_bodyItemfd3_0_c0_c4_c0_c4_c0'>菜品口味</text>
|
<text class='storeDetails_bodyItemfd3_0_c0_c4_c0_c4_c0'>菜品口味</text>
|
||||||
<text class='storeDetails_bodyItemfd3_0_c0_c4_c0_c4_c1'>{{info.goods_score}}</text>
|
<text class='storeDetails_bodyItemfd3_0_c0_c4_c0_c4_c1'>{{ info.goods_score
|
||||||
|
}}</text>
|
||||||
</view>
|
</view>
|
||||||
</view>
|
</view>
|
||||||
|
|
||||||
<view class='flex flex-wrap align-center storeDetails_bodyItemfd3_0_c0_c4_c1'>
|
<view class='flex flex-wrap align-center storeDetails_bodyItemfd3_0_c0_c4_c1'>
|
||||||
<benben-select-diy ref="showSelectPopup1684555028116" class-name='flex flex-wrap flex'
|
<benben-select-diy ref="showSelectPopup1684555028116" class-name='flex flex-wrap flex'
|
||||||
:items.sync="evaluate_List" v-model="evaluate_id" default-type="value" default-label="name"
|
:items.sync="evaluate_List" v-model="evaluate_id" default-type="value"
|
||||||
:allow-cancel='false' type="radio" :disabled='false' @change="handleCommentTypeChange">
|
default-label="name" :allow-cancel='false' type="radio" :disabled='false'
|
||||||
|
@change="handleCommentTypeChange">
|
||||||
<template v-for='(item, key0) in evaluate_List'>
|
<template v-for='(item, key0) in evaluate_List'>
|
||||||
<view v-if="item.isSelected"
|
<view v-if="item.isSelected"
|
||||||
class='flex align-center flex storeDetails_bodyItemfd3_0_c0_c4_c1_c0_c0' :key="key0"
|
class='flex align-center flex storeDetails_bodyItemfd3_0_c0_c4_c1_c0_c0'
|
||||||
@tap="$refs.showSelectPopup1684555028116.tapHandle(key0)">
|
:key="key0" @tap="$refs.showSelectPopup1684555028116.tapHandle(key0)">
|
||||||
<text>{{ item.name }}</text>
|
<text>{{ item.name }}</text>
|
||||||
<text class='storeDetails_bodyItemfd3_0_c0_c4_c1_c0_c0_c1'>{{item.num > 999 ? '999+' : item.num}}</text>
|
<text class='storeDetails_bodyItemfd3_0_c0_c4_c1_c0_c0_c1'>{{ item.num > 999
|
||||||
|
? '999+' : item.num }}</text>
|
||||||
</view>
|
</view>
|
||||||
<view v-else class='flex align-center flex storeDetails_bodyItemfd3_0_c0_c4_c1_c0_c1' :key="key0"
|
<view v-else
|
||||||
@tap="$refs.showSelectPopup1684555028116.tapHandle(key0)">
|
class='flex align-center flex storeDetails_bodyItemfd3_0_c0_c4_c1_c0_c1'
|
||||||
|
:key="key0" @tap="$refs.showSelectPopup1684555028116.tapHandle(key0)">
|
||||||
<text>{{ item.name }}</text>
|
<text>{{ item.name }}</text>
|
||||||
<text class='storeDetails_bodyItemfd3_0_c0_c4_c1_c0_c1_c1'>{{item.num > 999 ? '999+' : item.num}}</text>
|
<text class='storeDetails_bodyItemfd3_0_c0_c4_c1_c0_c1_c1'>{{ item.num > 999
|
||||||
|
? '999+' : item.num }}</text>
|
||||||
</view>
|
</view>
|
||||||
</template>
|
</template>
|
||||||
</benben-select-diy>
|
</benben-select-diy>
|
||||||
</view>
|
</view>
|
||||||
<fu-loading v-if="isShowLoading"></fu-loading>
|
<fu-loading v-if="isShowLoading"></fu-loading>
|
||||||
<fu-empty-ui v-if="commentList.length === 0 && isInit"></fu-empty-ui>
|
<fu-empty-ui v-if="commentList.length === 0 && isInit"></fu-empty-ui>
|
||||||
<view class='flex flex-direction flex-wrap align-stretch storeDetails_bodyItemfd3_0_c0_c4_c2' v-for="(item, index) in commentList" :key="index">
|
<view
|
||||||
<view class='flex flex-wrap align-center justify-between storeDetails_bodyItemfd3_0_c0_c4_c2_c0'>
|
class='flex flex-direction flex-wrap align-stretch storeDetails_bodyItemfd3_0_c0_c4_c2'
|
||||||
|
v-for="(item, index) in commentList" :key="index">
|
||||||
|
<view
|
||||||
|
class='flex flex-wrap align-center justify-between storeDetails_bodyItemfd3_0_c0_c4_c2_c0'>
|
||||||
<view class='flex flex-wrap align-center'>
|
<view class='flex flex-wrap align-center'>
|
||||||
<view class='flex flex-wrap align-center storeDetails_bodyItemfd3_0_c0_c4_c2_c0_c0_c0'>
|
<view
|
||||||
<image class='storeDetails_bodyItemfd3_0_c0_c4_c2_c0_c0_c0_c0' mode="aspectFill"
|
class='flex flex-wrap align-center storeDetails_bodyItemfd3_0_c0_c4_c2_c0_c0_c0'>
|
||||||
:src='item.avatar'></image>
|
<image class='storeDetails_bodyItemfd3_0_c0_c4_c2_c0_c0_c0_c0'
|
||||||
|
mode="aspectFill" :src='item.avatar'>
|
||||||
|
</image>
|
||||||
</view>
|
</view>
|
||||||
<view class='flex flex-direction flex-wrap align-start'>
|
<view class='flex flex-direction flex-wrap align-start'>
|
||||||
<text class='storeDetails_bodyItemfd3_0_c0_c4_c2_c0_c0_c1_c0'>{{item.user_nickname}}</text>
|
<text class='storeDetails_bodyItemfd3_0_c0_c4_c2_c0_c0_c1_c0'>{{
|
||||||
<view class='flex flex-wrap align-center storeDetails_bodyItemfd3_0_c0_c4_c2_c0_c0_c1_c1'>
|
item.user_nickname }}</text>
|
||||||
|
<view
|
||||||
|
class='flex flex-wrap align-center storeDetails_bodyItemfd3_0_c0_c4_c2_c0_c0_c1_c1'>
|
||||||
<template v-for="starNum in [1, 2, 3, 4, 5]">
|
<template v-for="starNum in [1, 2, 3, 4, 5]">
|
||||||
<image v-if="item.score >= starNum" :key="starNum"
|
<image v-if="item.score >= starNum" :key="starNum"
|
||||||
class='storeDetails_star1bodyItemfd3_0_c0_c4_c2_c0_c0_c1_c1' mode="aspectFit"
|
class='storeDetails_star1bodyItemfd3_0_c0_c4_c2_c0_c0_c1_c1'
|
||||||
:src='STATIC_URL+"31.png"'></image>
|
mode="aspectFit" :src='STATIC_URL + "31.png"'></image>
|
||||||
<image v-else :key="starNum" class='storeDetails_star1bodyItemfd3_0_c0_c4_c2_c0_c0_c1_c1'
|
<image v-else :key="starNum"
|
||||||
|
class='storeDetails_star1bodyItemfd3_0_c0_c4_c2_c0_c0_c1_c1'
|
||||||
mode="aspectFit" :src='STATIC_URL + "164.png"'></image>
|
mode="aspectFit" :src='STATIC_URL + "164.png"'></image>
|
||||||
</template>
|
</template>
|
||||||
</view>
|
</view>
|
||||||
</view>
|
</view>
|
||||||
</view>
|
</view>
|
||||||
<view class='flex flex-wrap align-center'>
|
<view class='flex flex-wrap align-center'>
|
||||||
<text class='storeDetails_bodyItemfd3_0_c0_c4_c2_c0_c1_c0'>{{item.create_time}}</text>
|
<text class='storeDetails_bodyItemfd3_0_c0_c4_c2_c0_c1_c0'>{{ item.create_time
|
||||||
|
}}</text>
|
||||||
</view>
|
</view>
|
||||||
</view>
|
</view>
|
||||||
<view class='flex flex-wrap align-center storeDetails_bodyItemfd3_0_c0_c4_c2_c1'>
|
<view class='flex flex-wrap align-center storeDetails_bodyItemfd3_0_c0_c4_c2_c1'>
|
||||||
<text class='storeDetails_bodyItemfd3_0_c0_c4_c2_c1_c0'>{{ item.content }}</text>
|
<text class='storeDetails_bodyItemfd3_0_c0_c4_c2_c1_c0'>{{ item.content }}</text>
|
||||||
</view>
|
</view>
|
||||||
<view class='flex flex-wrap align-center'>
|
<view class='flex flex-wrap align-center'>
|
||||||
<image @tap.stop="ViewImage(item.images,i)" v-for="(img, i) in item.images" :key="i" class='storeDetails_bodyItemfd3_0_c0_c4_c2_c2_c0' mode="aspectFill" :src='img'>
|
<image @tap.stop="ViewImage(item.images, i)" v-for="(img, i) in item.images"
|
||||||
|
:key="i" class='storeDetails_bodyItemfd3_0_c0_c4_c2_c2_c0' mode="aspectFill"
|
||||||
|
:src='img'>
|
||||||
</image>
|
</image>
|
||||||
</view>
|
</view>
|
||||||
</view>
|
</view>
|
||||||
@ -245,7 +277,8 @@
|
|||||||
v-if="tabls == '3'" :id="`benben_tabsfd3_0_c0-body-item-${'3'}`">
|
v-if="tabls == '3'" :id="`benben_tabsfd3_0_c0-body-item-${'3'}`">
|
||||||
<view class='flex flex-wrap align-start storeDetails_bodyItemfd3_0_c0_c5_c0'>
|
<view class='flex flex-wrap align-start storeDetails_bodyItemfd3_0_c0_c5_c0'>
|
||||||
<text class='storeDetails_bodyItemfd3_0_c0_c5_c0_c0'>商家简介</text>
|
<text class='storeDetails_bodyItemfd3_0_c0_c5_c0_c0'>商家简介</text>
|
||||||
<text class='storeDetails_bodyItemfd3_0_c0_c5_c0_c1'>{{info.synopsis || '暂无简介'}}</text>
|
<text class='storeDetails_bodyItemfd3_0_c0_c5_c0_c1'>{{ info.synopsis || '暂无简介'
|
||||||
|
}}</text>
|
||||||
</view>
|
</view>
|
||||||
|
|
||||||
<view class='flex flex-wrap align-start storeDetails_bodyItemfd3_0_c0_c5_c1'>
|
<view class='flex flex-wrap align-start storeDetails_bodyItemfd3_0_c0_c5_c1'>
|
||||||
@ -259,29 +292,39 @@
|
|||||||
</view>
|
</view>
|
||||||
<view
|
<view
|
||||||
class='flex flex-wrap align-center justify-between flex-sub storeDetails_bodyItemfd3_0_c0_c5_c2_c1'>
|
class='flex flex-wrap align-center justify-between flex-sub storeDetails_bodyItemfd3_0_c0_c5_c2_c1'>
|
||||||
<text class='storeDetails_bodyItemfd3_0_c0_c5_c2_c1_c0'>{{info.service_phone}}</text>
|
<text class='storeDetails_bodyItemfd3_0_c0_c5_c2_c1_c0'>{{ info.service_phone
|
||||||
<image @tap="phoneTap(info.service_phone)" class='storeDetails_bodyItemfd3_0_c0_c5_c2_c1_c1' mode="aspectFit" :src='STATIC_URL+"78.png"'>
|
}}</text>
|
||||||
|
<image @tap="phoneTap(info.service_phone)"
|
||||||
|
class='storeDetails_bodyItemfd3_0_c0_c5_c2_c1_c1' mode="aspectFit"
|
||||||
|
:src='STATIC_URL + "78.png"'>
|
||||||
</image>
|
</image>
|
||||||
</view>
|
</view>
|
||||||
</view>
|
</view>
|
||||||
|
|
||||||
<view class='flex flex-wrap align-start storeDetails_bodyItemfd3_0_c0_c5_c3' @click="handleToMap">
|
<view class='flex flex-wrap align-start storeDetails_bodyItemfd3_0_c0_c5_c3'
|
||||||
|
@click="handleToMap">
|
||||||
<text class='storeDetails_bodyItemfd3_0_c0_c5_c3_c0'>商家地址</text>
|
<text class='storeDetails_bodyItemfd3_0_c0_c5_c3_c0'>商家地址</text>
|
||||||
<text class='storeDetails_bodyItemfd3_0_c0_c5_c3_c1'>{{info.address_province + info.address_city + info.address_district + info.address_address}}</text>
|
<text class='storeDetails_bodyItemfd3_0_c0_c5_c3_c1'>{{ info.address_province +
|
||||||
|
info.address_city +
|
||||||
|
info.address_district + info.address_address }}</text>
|
||||||
</view>
|
</view>
|
||||||
|
|
||||||
<view class='flex flex-wrap align-start justify-between storeDetails_bodyItemfd3_0_c0_c5_c4'
|
<view class='flex flex-wrap align-start justify-between storeDetails_bodyItemfd3_0_c0_c5_c4'
|
||||||
@tap.stop="handleJumpDiy" data-type="navigateTo"
|
@tap.stop="handleJumpDiy" data-type="navigateTo"
|
||||||
:data-url="`/pages/dpxq/merchantQualification/merchantQualification?id=${id}`">
|
:data-url="`/pages/dpxq/merchantQualification/merchantQualification?id=${id}`">
|
||||||
<text class='storeDetails_bodyItemfd3_0_c0_c5_c4_c0'>商家资质</text>
|
<text class='storeDetails_bodyItemfd3_0_c0_c5_c4_c0'>商家资质</text>
|
||||||
<image class='storeDetails_bodyItemfd3_0_c0_c5_c4_c1' mode="aspectFit" :src='STATIC_URL+"25.png"'>
|
<image class='storeDetails_bodyItemfd3_0_c0_c5_c4_c1' mode="aspectFit"
|
||||||
|
:src='STATIC_URL + "25.png"'>
|
||||||
</image>
|
</image>
|
||||||
</view>
|
</view>
|
||||||
|
|
||||||
<view class='flex flex-direction flex-wrap align-stretch'>
|
<view class='flex flex-direction flex-wrap align-stretch'>
|
||||||
<text class='storeDetails_bodyItemfd3_0_c0_c5_c5_c0'>商家图片</text>
|
<text class='storeDetails_bodyItemfd3_0_c0_c5_c5_c0'>商家图片</text>
|
||||||
<view class='flex flex-wrap align-center justify-between'>
|
<view class='flex flex-wrap align-center justify-between'>
|
||||||
<image @tap.stop="ViewImage(info.show_images,index)" class='storeDetails_bodyItemfd3_0_c0_c5_c5_c1_c0' v-for="(item, index) in info.show_images" :key="index" mode="aspectFill" :src='item'>
|
<image @tap.stop="ViewImage(info.show_images, index)"
|
||||||
|
class='storeDetails_bodyItemfd3_0_c0_c5_c5_c1_c0'
|
||||||
|
v-for="(item, index) in info.show_images" :key="index" mode="aspectFill"
|
||||||
|
:src='item'>
|
||||||
</image>
|
</image>
|
||||||
|
|
||||||
</view>
|
</view>
|
||||||
@ -302,15 +345,8 @@
|
|||||||
<view class="content-wrap" :style="{ height: pageHeight - CustomBar - 70 + 'px' }">
|
<view class="content-wrap" :style="{ height: pageHeight - CustomBar - 70 + 'px' }">
|
||||||
<!-- 左边tab栏开始 -->
|
<!-- 左边tab栏开始 -->
|
||||||
<scroll-view class="left" scroll-with-animation="all 0.2s ease" :scroll-into-view="toLeftId" scroll-y>
|
<scroll-view class="left" scroll-with-animation="all 0.2s ease" :scroll-into-view="toLeftId" scroll-y>
|
||||||
<view
|
<view :upper-threshold="500" :id="`l_id${index}`" v-for="(item, index) in classiftList" :key="index"
|
||||||
:upper-threshold="500"
|
class="item text-center" :class="{ active: index == currentId }" @click="handleSelect(index)">
|
||||||
:id="`l_id${index}`"
|
|
||||||
v-for="(item, index) in classiftList"
|
|
||||||
:key="index"
|
|
||||||
class="item text-center"
|
|
||||||
:class="{ active: index == currentId }"
|
|
||||||
@click="handleSelect(index)"
|
|
||||||
>
|
|
||||||
<image :src='STATIC_URL + "hot.png"' mode="widthFix" v-if="item.aid == 99999"></image>
|
<image :src='STATIC_URL + "hot.png"' mode="widthFix" v-if="item.aid == 99999"></image>
|
||||||
{{ item.name }}
|
{{ item.name }}
|
||||||
<view class="cuIconlujing226" v-if="item.num > 0"> {{ item.num }}</view>
|
<view class="cuIconlujing226" v-if="item.num > 0"> {{ item.num }}</view>
|
||||||
@ -318,18 +354,9 @@
|
|||||||
</scroll-view>
|
</scroll-view>
|
||||||
<!-- 左边tab栏结束 -->
|
<!-- 左边tab栏结束 -->
|
||||||
<!-- 右边列表开始 -->
|
<!-- 右边列表开始 -->
|
||||||
<scroll-view
|
<scroll-view class="right" scroll-with-animation="all 0.2s ease" refresher-background="transparent"
|
||||||
class="right"
|
scroll-y @scroll="scroll" :scroll-top="scrollTop" :refresher-triggered="refresherTriggered"
|
||||||
scroll-with-animation="all 0.2s ease"
|
:refresher-enabled="false" :refresher-threshold="100">
|
||||||
refresher-background="transparent"
|
|
||||||
scroll-y
|
|
||||||
@scroll="scroll"
|
|
||||||
:scroll-top="scrollTop"
|
|
||||||
:refresher-triggered="refresherTriggered"
|
|
||||||
:refresher-enabled="false"
|
|
||||||
:refresher-threshold="100"
|
|
||||||
|
|
||||||
>
|
|
||||||
<!-- @refresherrefresh="refresherrefresh" -->
|
<!-- @refresherrefresh="refresherrefresh" -->
|
||||||
<view class="cate-box-wrap">
|
<view class="cate-box-wrap">
|
||||||
<!-- <view class="flex align-center justify-between text-333">
|
<!-- <view class="flex align-center justify-between text-333">
|
||||||
@ -338,11 +365,14 @@
|
|||||||
<fu-loading v-if="isShowLoading1"></fu-loading>
|
<fu-loading v-if="isShowLoading1"></fu-loading>
|
||||||
<fu-empty-ui v-if="goodsList.length === 0 && isInit1"></fu-empty-ui>
|
<fu-empty-ui v-if="goodsList.length === 0 && isInit1"></fu-empty-ui>
|
||||||
<view class="cate-box">
|
<view class="cate-box">
|
||||||
<view class="cate-box-item flex " v-for="(ele, j) in goodsList" :key="j" @tap="handlerClassify(ele)">
|
<view class="cate-box-item flex " v-for="(ele, j) in goodsList" :key="j"
|
||||||
<image style="width: 168rpx; height: 168rpx;border-radius: 16rpx;margin-right: 16rpx;" :src="ele.thumb" mode="aspectFill" />
|
@tap="handlerClassify(ele)">
|
||||||
|
<image style="width: 168rpx; height: 168rpx;border-radius: 16rpx;margin-right: 16rpx;"
|
||||||
|
:src="ele.thumb" mode="aspectFill" />
|
||||||
<view class="" style="width: 350rpx;">
|
<view class="" style="width: 350rpx;">
|
||||||
<view class="text-lg text-bold goodsname" v-if="ele.name">{{ ele.name }}</view>
|
<view class="text-lg text-bold goodsname" v-if="ele.name">{{ ele.name }}</view>
|
||||||
<view class="text-lg text-bold goodsname" v-if="!ele.name ">{{ ele.goods_name}}</view>
|
<view class="text-lg text-bold goodsname" v-if="!ele.name">{{ ele.goods_name }}
|
||||||
|
</view>
|
||||||
<!-- <view class="text-lm text-999 sales">月销{{ele.sales_num_new}}</view> -->
|
<!-- <view class="text-lm text-999 sales">月销{{ele.sales_num_new}}</view> -->
|
||||||
<view class="text-lm text-999 sales"></view>
|
<view class="text-lm text-999 sales"></view>
|
||||||
<view class="flex align-center justify-between">
|
<view class="flex align-center justify-between">
|
||||||
@ -350,17 +380,23 @@
|
|||||||
<text class="price text-bold">¥{{ ele.shop_price }}</text>
|
<text class="price text-bold">¥{{ ele.shop_price }}</text>
|
||||||
<text class="text-sm line text-999">¥{{ ele.market_price }}</text>
|
<text class="text-sm line text-999">¥{{ ele.market_price }}</text>
|
||||||
</view>
|
</view>
|
||||||
<view v-if="ele.is_spec==1" @tap.stop="handleShowPopupSpec(ele)" class="skuclass flex align-center justify-center text-xs text-white">选规格</view>
|
<view v-if="ele.is_spec == 1" @tap.stop="handleShowPopupSpec(ele)"
|
||||||
|
class="skuclass flex align-center justify-center text-xs text-white">选规格
|
||||||
|
</view>
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
<view v-else style="display: flex; align-items: center;">
|
<view v-else style="display: flex; align-items: center;">
|
||||||
<image class="skuimg" v-if="ele.num > 0" @tap.stop="handleUpdateCart(ele, 2, 1)" :src='STATIC_URL+"101.png"'></image>
|
<image class="skuimg" v-if="ele.num > 0"
|
||||||
|
@tap.stop="handleUpdateCart(ele, 2, 1)" :src='STATIC_URL + "101.png"'>
|
||||||
|
</image>
|
||||||
<view style="padding: 0 20rpx;" v-if="ele.num > 0">{{ ele.num }}</view>
|
<view style="padding: 0 20rpx;" v-if="ele.num > 0">{{ ele.num }}</view>
|
||||||
<image class="skuimg" @tap.stop="handleUpdateCart(ele, 1, 1)" :src='STATIC_URL+"102.png"'></image>
|
<image class="skuimg" @tap.stop="handleUpdateCart(ele, 1, 1)"
|
||||||
|
:src='STATIC_URL + "102.png"'></image>
|
||||||
|
</view>
|
||||||
|
<view class="specnum" v-if="ele.is_spec == 1 && ele.num > 0">{{ ele.num }}
|
||||||
</view>
|
</view>
|
||||||
<view class="specnum" v-if="ele.is_spec==1 && ele.num>0">{{ele.num}}</view>
|
|
||||||
</view>
|
</view>
|
||||||
</view>
|
</view>
|
||||||
</view>
|
</view>
|
||||||
@ -384,12 +420,13 @@
|
|||||||
<text class='storeDetails_fd5_0_c1_c0'>分享到</text>
|
<text class='storeDetails_fd5_0_c1_c0'>分享到</text>
|
||||||
</view>
|
</view>
|
||||||
<view class='flex flex-wrap align-center'>
|
<view class='flex flex-wrap align-center'>
|
||||||
<image class='storeDetails_fd5_0_c2_c0' :src='STATIC_URL+"60.png"' @tap.stop="popupShow1684725724594=false">
|
<image class='storeDetails_fd5_0_c2_c0' :src='STATIC_URL + "60.png"'
|
||||||
|
@tap.stop="popupShow1684725724594 = false">
|
||||||
</image>
|
</image>
|
||||||
</view>
|
</view>
|
||||||
</view>
|
</view>
|
||||||
<view class='flex align-center justify-center storeDetails_fd5_1'>
|
<view class='flex align-center justify-center storeDetails_fd5_1'>
|
||||||
<view class='flex flex-direction align-center'>
|
<view class='flex flex-direction align-center' @tap.stop="shareWx">
|
||||||
<image class='storeDetails_fd5_1_c0_c0' mode="aspectFit" :src='STATIC_URL + "104.png"'></image>
|
<image class='storeDetails_fd5_1_c0_c0' mode="aspectFit" :src='STATIC_URL + "104.png"'></image>
|
||||||
<text class='storeDetails_fd5_1_c0_c1'>微信好友</text>
|
<text class='storeDetails_fd5_1_c0_c1'>微信好友</text>
|
||||||
</view>
|
</view>
|
||||||
@ -409,15 +446,19 @@
|
|||||||
<view class='flex flex-direction flex-wrap align-stretch'>
|
<view class='flex flex-direction flex-wrap align-stretch'>
|
||||||
<view class='flex flex-direction flex-wrap align-stretch storeDetails_fd6_0_c0'>
|
<view class='flex flex-direction flex-wrap align-stretch storeDetails_fd6_0_c0'>
|
||||||
<view class='flex flex-wrap align-start storeDetails_fd6_0_c0_c0'>
|
<view class='flex flex-wrap align-start storeDetails_fd6_0_c0_c0'>
|
||||||
<image class='storeDetails_fd6_0_c0_c0_c0' mode="aspectFit" :src='selectGoodsItem.thumb'></image>
|
<image class='storeDetails_fd6_0_c0_c0_c0' mode="aspectFit" :src='selectGoodsItem.thumb'>
|
||||||
|
</image>
|
||||||
<text class='storeDetails_fd6_0_c0_c0_c1'>{{ selectGoodsItem.name }}</text>
|
<text class='storeDetails_fd6_0_c0_c0_c1'>{{ selectGoodsItem.name }}</text>
|
||||||
</view>
|
</view>
|
||||||
<block v-if="showSpec">
|
<block v-if="showSpec">
|
||||||
<view class='flex flex-direction align-stretch storeDetails_fd6_0_c0_c1' v-for="(specItem, index) in selectGoodsItemSpec" :key="index">
|
<view class='flex flex-direction align-stretch storeDetails_fd6_0_c0_c1'
|
||||||
|
v-for="(specItem, index) in selectGoodsItemSpec" :key="index">
|
||||||
<text class='storeDetails_fd6_0_c0_c1_c0'>{{ specItem.name }}</text>
|
<text class='storeDetails_fd6_0_c0_c1_c0'>{{ specItem.name }}</text>
|
||||||
<view class="flex flex-wrap storeDetails_fd6_0_c0_c1_c1">
|
<view class="flex flex-wrap storeDetails_fd6_0_c0_c1_c1">
|
||||||
<view class='text-cut' :class="item.checked ? 'storeDetails_fd6_0_c0_c1_c1_c0' : 'storeDetails_fd6_0_c0_c1_c1_c1'"
|
<view class='text-cut'
|
||||||
v-for="(item, key0) in specItem.spec_value" :key="key0" @tap="handleChooseSkuItem(index, item)">
|
:class="item.checked ? 'storeDetails_fd6_0_c0_c1_c1_c0' : 'storeDetails_fd6_0_c0_c1_c1_c1'"
|
||||||
|
v-for="(item, key0) in specItem.spec_value" :key="key0"
|
||||||
|
@tap="handleChooseSkuItem(index, item)">
|
||||||
<!-- <text></text> -->
|
<!-- <text></text> -->
|
||||||
{{ item.item }}
|
{{ item.item }}
|
||||||
</view>
|
</view>
|
||||||
@ -450,29 +491,42 @@
|
|||||||
<!-- <text class='storeDetails_fd6_0_c0_c3_c2'>、</text>
|
<!-- <text class='storeDetails_fd6_0_c0_c3_c2'>、</text>
|
||||||
<text class='storeDetails_fd6_0_c0_c3_c3'>{{two_id}}</text> -->
|
<text class='storeDetails_fd6_0_c0_c3_c3'>{{two_id}}</text> -->
|
||||||
</view>
|
</view>
|
||||||
<view class='flex flex-wrap align-center justify-between storeDetails_fd6_0_c0_c4' v-if="selectSku.key_name">
|
<view class='flex flex-wrap align-center justify-between storeDetails_fd6_0_c0_c4'
|
||||||
|
v-if="selectSku.key_name">
|
||||||
<view class='flex flex-wrap align-end'>
|
<view class='flex flex-wrap align-end'>
|
||||||
<text class='storeDetails_fd6_0_c0_c4_c0_c0'>售价</text>
|
<text class='storeDetails_fd6_0_c0_c4_c0_c0'>售价</text>
|
||||||
<text class='storeDetails_fd6_0_c0_c4_c0_c1'>¥</text>
|
<text class='storeDetails_fd6_0_c0_c4_c0_c1'>¥</text>
|
||||||
<view class='flex-wrap align-center storeDetails_fd6_0_c0_c4_c0_c2'>
|
<view class='flex-wrap align-center storeDetails_fd6_0_c0_c4_c0_c2'>
|
||||||
<text class=' storeDetails_price1_fd6_0_c0_c4_c0_c2'>{{ selectSku.shop_price | frontPrice }}</text>
|
<text class=' storeDetails_price1_fd6_0_c0_c4_c0_c2'>{{ selectSku.shop_price |
|
||||||
<text class=' storeDetails_price2_fd6_0_c0_c4_c0_c2'>{{ selectSku.shop_price | laterPrice }}</text>
|
frontPrice
|
||||||
|
}}</text>
|
||||||
|
<text class=' storeDetails_price2_fd6_0_c0_c4_c0_c2'>{{ selectSku.shop_price |
|
||||||
|
laterPrice
|
||||||
|
}}</text>
|
||||||
</view>
|
</view>
|
||||||
<text class='storeDetails_fd6_0_c0_c4_c0_c3' style="text-decoration:line-through;">¥</text>
|
<text class='storeDetails_fd6_0_c0_c4_c0_c3'
|
||||||
<text class='storeDetails_fd6_0_c0_c4_c0_c4' style="text-decoration:line-through;">{{selectSku.market_price}}</text>
|
style="text-decoration:line-through;">¥</text>
|
||||||
|
<text class='storeDetails_fd6_0_c0_c4_c0_c4' style="text-decoration:line-through;">{{
|
||||||
|
selectSku.market_price }}</text>
|
||||||
</view>
|
</view>
|
||||||
|
|
||||||
<button v-if="isCartHasSelectSku(selectSku.sku_id) == 0" class='storeDetails_fd6_0_c0_c4_c1' @click="handleAddCart">加入购物车</button>
|
<button v-if="isCartHasSelectSku(selectSku.sku_id) == 0" class='storeDetails_fd6_0_c0_c4_c1'
|
||||||
|
@click="handleAddCart">加入购物车</button>
|
||||||
<view v-else style="display: flex; align-items: center;">
|
<view v-else style="display: flex; align-items: center;">
|
||||||
<image class="skuimg" @tap.stop="handleUpdateCart(getCartHasSelectSku(selectSku.sku_id), 2, 1)" :src='STATIC_URL+"101.png"'></image>
|
<image class="skuimg"
|
||||||
|
@tap.stop="handleUpdateCart(getCartHasSelectSku(selectSku.sku_id), 2, 1)"
|
||||||
|
:src='STATIC_URL + "101.png"'></image>
|
||||||
<view style="padding: 0 20rpx;">{{ isCartHasSelectSku(selectSku.sku_id) }}</view>
|
<view style="padding: 0 20rpx;">{{ isCartHasSelectSku(selectSku.sku_id) }}</view>
|
||||||
<image class="skuimg" @tap.stop="handleUpdateCart(getCartHasSelectSku(selectSku.sku_id), 1, 1)" :src='STATIC_URL+"102.png"'></image>
|
<image class="skuimg"
|
||||||
|
@tap.stop="handleUpdateCart(getCartHasSelectSku(selectSku.sku_id), 1, 1)"
|
||||||
|
:src='STATIC_URL + "102.png"'></image>
|
||||||
</view>
|
</view>
|
||||||
</view>
|
</view>
|
||||||
</view>
|
</view>
|
||||||
<view class='flex flex-wrap align-center justify-center storeDetails_fd6_0_c1'>
|
<view class='flex flex-wrap align-center justify-center storeDetails_fd6_0_c1'>
|
||||||
<image class='storeDetails_fd6_0_c1_c0' :src='STATIC_URL + "103.png"'
|
<image class='storeDetails_fd6_0_c1_c0' :src='STATIC_URL + "103.png"'
|
||||||
@tap.stop="popupShowSpec=false"></image>
|
@tap.stop="popupShowSpec = false">
|
||||||
|
</image>
|
||||||
</view>
|
</view>
|
||||||
</view>
|
</view>
|
||||||
</view>
|
</view>
|
||||||
@ -496,7 +550,8 @@
|
|||||||
</view>
|
</view>
|
||||||
|
|
||||||
<scroll-view scroll-y="true" class="cart-wrap">
|
<scroll-view scroll-y="true" class="cart-wrap">
|
||||||
<view class='flex flex-wrap align-start storeDetails_fd7_1' v-for="(item, index) in cartList" :key="index">
|
<view class='flex flex-wrap align-start storeDetails_fd7_1' v-for="(item, index) in cartList"
|
||||||
|
:key="index">
|
||||||
<view class='flex flex-wrap align-center storeDetails_fd7_1_c0'>
|
<view class='flex flex-wrap align-center storeDetails_fd7_1_c0'>
|
||||||
<image class='storeDetails_fd7_1_c0_c0' mode="aspectFill" :src='item.thumb'></image>
|
<image class='storeDetails_fd7_1_c0_c0' mode="aspectFill" :src='item.thumb'></image>
|
||||||
</view>
|
</view>
|
||||||
@ -515,9 +570,13 @@
|
|||||||
<text class='storeDetails_fd7_1_c1_c2_c0_c3'>{{ item.market_price }}</text>
|
<text class='storeDetails_fd7_1_c1_c2_c0_c3'>{{ item.market_price }}</text>
|
||||||
</view>
|
</view>
|
||||||
<view class='flex flex-wrap align-center'>
|
<view class='flex flex-wrap align-center'>
|
||||||
<image class="skuimg" @tap.stop="handleUpdateCart(item, 2, 2)" :src='STATIC_URL+"101.png"'></image>
|
<image class="skuimg" @tap.stop="handleUpdateCart(item, 2, 2)"
|
||||||
|
:src='STATIC_URL + "101.png"'>
|
||||||
|
</image>
|
||||||
<view style="padding: 0 20rpx;">{{ item.num }}</view>
|
<view style="padding: 0 20rpx;">{{ item.num }}</view>
|
||||||
<image class="skuimg" @tap.stop="handleUpdateCart(item, 1, 2)" :src='STATIC_URL+"102.png"'></image>
|
<image class="skuimg" @tap.stop="handleUpdateCart(item, 1, 2)"
|
||||||
|
:src='STATIC_URL + "102.png"'>
|
||||||
|
</image>
|
||||||
<!-- <benben-flex-number-box class-name='flex flex align-center'
|
<!-- <benben-flex-number-box class-name='flex flex align-center'
|
||||||
input-class="storeDetails_numberBoxInputfd7_1_c1_c2_c1_c0" v-model="item.num" :min="1" :step="1" :opacity="0.3">
|
input-class="storeDetails_numberBoxInputfd7_1_c1_c2_c1_c0" v-model="item.num" :min="1" :step="1" :opacity="0.3">
|
||||||
<template #minus>
|
<template #minus>
|
||||||
@ -540,7 +599,8 @@
|
|||||||
<view class='flex flex-wrap align-center flex-sub storeDetails_fd7_2_c0'>
|
<view class='flex flex-wrap align-center flex-sub storeDetails_fd7_2_c0'>
|
||||||
<view class='flex flex-wrap align-center storeDetails_fd7_2_c0_c0'>
|
<view class='flex flex-wrap align-center storeDetails_fd7_2_c0_c0'>
|
||||||
<text class='fu-iconfont2 storeDetails_fd7_2_c0_c0_c0'></text>
|
<text class='fu-iconfont2 storeDetails_fd7_2_c0_c0_c0'></text>
|
||||||
<benben-message-num :messageNum="cartNum" class='storeDetails_fd7_2_c0_c0_c1' size='24' color='#fff' background-color='red'>
|
<benben-message-num :messageNum="cartNum" class='storeDetails_fd7_2_c0_c0_c1' size='24'
|
||||||
|
color='#fff' background-color='red'>
|
||||||
</benben-message-num>
|
</benben-message-num>
|
||||||
</view>
|
</view>
|
||||||
<view class='flex flex-wrap align-center'>
|
<view class='flex flex-wrap align-center'>
|
||||||
@ -548,8 +608,9 @@
|
|||||||
<text class='storeDetails_fd7_2_c0_c1_c1'>{{ cartMoney }}</text>
|
<text class='storeDetails_fd7_2_c0_c1_c1'>{{ cartMoney }}</text>
|
||||||
</view>
|
</view>
|
||||||
</view>
|
</view>
|
||||||
<view class='flex flex-wrap align-center justify-center storeDetails_fd7_2_c1' @tap.stop="handleSettle"
|
<view class='flex flex-wrap align-center justify-center storeDetails_fd7_2_c1'
|
||||||
data-type="navigateTo" :data-url="`/pages/dpxq/settlementPage/settlementPage?id=${id}`">
|
@tap.stop="handleSettle" data-type="navigateTo"
|
||||||
|
:data-url="`/pages/dpxq/settlementPage/settlementPage?id=${id}`">
|
||||||
<text class='storeDetails_fd7_2_c1_c0'>去结算</text>
|
<text class='storeDetails_fd7_2_c1_c0'>去结算</text>
|
||||||
</view>
|
</view>
|
||||||
</view>
|
</view>
|
||||||
@ -560,7 +621,8 @@
|
|||||||
</benben-popup>
|
</benben-popup>
|
||||||
<view class="flex flex-direction flex-wrap align-stretch benben-position-layout flex storeDetails_flex_8">
|
<view class="flex flex-direction flex-wrap align-stretch benben-position-layout flex storeDetails_flex_8">
|
||||||
<view class='flex flex-direction flex-wrap align-stretch flex-sub storeDetails_fd8_0'>
|
<view class='flex flex-direction flex-wrap align-stretch flex-sub storeDetails_fd8_0'>
|
||||||
<view class='flex flex-wrap align-center justify-between storeDetails_fd8_0_c0' v-if="cartMoney < info.start_price">
|
<view class='flex flex-wrap align-center justify-between storeDetails_fd8_0_c0'
|
||||||
|
v-if="cartMoney < info.start_price">
|
||||||
<view class='flex flex-wrap align-end' v-if="cartMoney > 0" @tap.stop="popupShowCart = true">
|
<view class='flex flex-wrap align-end' v-if="cartMoney > 0" @tap.stop="popupShowCart = true">
|
||||||
<text class='fu-iconfont2 storeDetails_fd8_0_c0_c0_c0'></text>
|
<text class='fu-iconfont2 storeDetails_fd8_0_c0_c0_c0'></text>
|
||||||
<text class='storeDetails_fd8_0_c0_c0_c1'>¥</text>
|
<text class='storeDetails_fd8_0_c0_c0_c1'>¥</text>
|
||||||
@ -586,7 +648,8 @@
|
|||||||
@tap.stop="popupShowCart = true">
|
@tap.stop="popupShowCart = true">
|
||||||
<view class='flex flex-wrap align-center storeDetails_fd8_0_c1_c0_c0'>
|
<view class='flex flex-wrap align-center storeDetails_fd8_0_c1_c0_c0'>
|
||||||
<text class='fu-iconfont2 storeDetails_fd8_0_c1_c0_c0_c0'></text>
|
<text class='fu-iconfont2 storeDetails_fd8_0_c1_c0_c0_c0'></text>
|
||||||
<benben-message-num :messageNum="cartNum" class='storeDetails_fd8_0_c1_c0_c0_c1' size='24' color='#fff' background-color='red'>
|
<benben-message-num :messageNum="cartNum" class='storeDetails_fd8_0_c1_c0_c0_c1' size='24'
|
||||||
|
color='#fff' background-color='red'>
|
||||||
</benben-message-num>
|
</benben-message-num>
|
||||||
</view>
|
</view>
|
||||||
<view class='flex flex-wrap align-center'>
|
<view class='flex flex-wrap align-center'>
|
||||||
@ -598,8 +661,9 @@
|
|||||||
<text class='storeDetails_fd8_0_c1_c0_c2_c1'>{{ marketMoney }}</text>
|
<text class='storeDetails_fd8_0_c1_c0_c2_c1'>{{ marketMoney }}</text>
|
||||||
</view>
|
</view>
|
||||||
</view>
|
</view>
|
||||||
<view class='flex flex-wrap align-center justify-center storeDetails_fd8_0_c1_c1' @tap.stop="handleSettle"
|
<view class='flex flex-wrap align-center justify-center storeDetails_fd8_0_c1_c1'
|
||||||
data-type="navigateTo" :data-url="`/pages/dpxq/settlementPage/settlementPage?id=${id}`">
|
@tap.stop="handleSettle" data-type="navigateTo"
|
||||||
|
:data-url="`/pages/dpxq/settlementPage/settlementPage?id=${id}`">
|
||||||
<text class='storeDetails_fd8_0_c1_c1_c0'>去结算</text>
|
<text class='storeDetails_fd8_0_c1_c1_c0'>去结算</text>
|
||||||
</view>
|
</view>
|
||||||
</view>
|
</view>
|
||||||
@ -614,8 +678,6 @@
|
|||||||
<script>
|
<script>
|
||||||
export default {
|
export default {
|
||||||
components: {},
|
components: {},
|
||||||
|
|
||||||
|
|
||||||
data() {
|
data() {
|
||||||
return {
|
return {
|
||||||
popupShowCart: false,
|
popupShowCart: false,
|
||||||
@ -717,7 +779,6 @@
|
|||||||
themeColor() {
|
themeColor() {
|
||||||
return this.$store.getters.themeColor
|
return this.$store.getters.themeColor
|
||||||
},
|
},
|
||||||
|
|
||||||
},
|
},
|
||||||
watch: {
|
watch: {
|
||||||
lists: {
|
lists: {
|
||||||
@ -761,6 +822,13 @@
|
|||||||
this.getCartList();
|
this.getCartList();
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
|
onShareAppMessage(res) {
|
||||||
|
return {
|
||||||
|
title: this.info.store_name,
|
||||||
|
path: `/pages/dpxq/storeDetails/storeDetails?id=${this.id}`,
|
||||||
|
imageUrl: this.info.logo
|
||||||
|
};
|
||||||
|
},
|
||||||
onHide() {
|
onHide() {
|
||||||
|
|
||||||
},
|
},
|
||||||
@ -1411,6 +1479,28 @@
|
|||||||
this.expand = '1';
|
this.expand = '1';
|
||||||
}
|
}
|
||||||
return
|
return
|
||||||
|
},
|
||||||
|
|
||||||
|
shareWx() {
|
||||||
|
// uni.share({
|
||||||
|
// provider: 'weixin',
|
||||||
|
// scene: "WXSceneSession", // 分享到微信聊天界面
|
||||||
|
// type: 5, // 5 表示分享为小程序
|
||||||
|
// imageUrl: this.info.logo, // 必填,分享缩略图
|
||||||
|
// title: this.info.store_name,
|
||||||
|
// miniProgram: {
|
||||||
|
// id: 'gh_2d502cf377f1', // 小程序的原始ID(非AppID),在微信公众平台-设置-账号信息中查找
|
||||||
|
// path: `/pages/dpxq/storeDetails/storeDetails?id=${this.id}`, // 目标小程序页面路径(可带参数)
|
||||||
|
// type: 1, // 0-正式版,1-测试版,2-体验版
|
||||||
|
// webUrl: 'http://uniapp.dcloud.io' // 必填,低版本微信兼容链接
|
||||||
|
// },
|
||||||
|
// success(res) {
|
||||||
|
// console.log('分享成功', res);
|
||||||
|
// },
|
||||||
|
// fail(err) {
|
||||||
|
// console.error('分享失败', err);
|
||||||
|
// }
|
||||||
|
// });
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
@ -1491,7 +1581,7 @@
|
|||||||
box-shadow: 0rpx 4rpx 24rpx rgba(50, 50, 51, .12);
|
box-shadow: 0rpx 4rpx 24rpx rgba(50, 50, 51, .12);
|
||||||
border-radius: 8rpx 8rpx 8rpx 8rpx;
|
border-radius: 8rpx 8rpx 8rpx 8rpx;
|
||||||
width: 172rpx;
|
width: 172rpx;
|
||||||
height: 122rpx;
|
height: 90rpx;
|
||||||
background-size: 100% auto !important;
|
background-size: 100% auto !important;
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -1643,6 +1733,7 @@
|
|||||||
height: 128rpx;
|
height: 128rpx;
|
||||||
border-radius: 8rpx 8rpx 8rpx 8rpx;
|
border-radius: 8rpx 8rpx 8rpx 8rpx;
|
||||||
}
|
}
|
||||||
|
|
||||||
.fu-my-background {
|
.fu-my-background {
|
||||||
position: absolute;
|
position: absolute;
|
||||||
top: 0;
|
top: 0;
|
||||||
@ -1880,6 +1971,7 @@
|
|||||||
height: 226rpx;
|
height: 226rpx;
|
||||||
border-radius: 8rpx 8rpx 8rpx 8rpx;
|
border-radius: 8rpx 8rpx 8rpx 8rpx;
|
||||||
margin: 0rpx 4rpx 8rpx 0rpx;
|
margin: 0rpx 4rpx 8rpx 0rpx;
|
||||||
|
|
||||||
&:nth-child(3n) {
|
&:nth-child(3n) {
|
||||||
margin-right: 0;
|
margin-right: 0;
|
||||||
}
|
}
|
||||||
@ -2961,6 +3053,7 @@
|
|||||||
margin: 0rpx 0rpx 32rpx 0rpx;
|
margin: 0rpx 0rpx 32rpx 0rpx;
|
||||||
max-height: 80vh;
|
max-height: 80vh;
|
||||||
}
|
}
|
||||||
|
|
||||||
.cart-wrap {
|
.cart-wrap {
|
||||||
max-height: 60vh;
|
max-height: 60vh;
|
||||||
}
|
}
|
||||||
@ -3164,12 +3257,14 @@
|
|||||||
bottom: var(--window-bottom);
|
bottom: var(--window-bottom);
|
||||||
display: flex;
|
display: flex;
|
||||||
background: #fff;
|
background: #fff;
|
||||||
|
|
||||||
.left {
|
.left {
|
||||||
width: 180rpx;
|
width: 180rpx;
|
||||||
height: 100%;
|
height: 100%;
|
||||||
// margin-top: 50rpx;
|
// margin-top: 50rpx;
|
||||||
background-color: #F6F7F9;
|
background-color: #F6F7F9;
|
||||||
box-sizing: border-box;
|
box-sizing: border-box;
|
||||||
|
|
||||||
.item {
|
.item {
|
||||||
width: 100%;
|
width: 100%;
|
||||||
height: 99rpx;
|
height: 99rpx;
|
||||||
@ -3182,12 +3277,14 @@
|
|||||||
display: -webkit-box;
|
display: -webkit-box;
|
||||||
-webkit-box-orient: vertical;
|
-webkit-box-orient: vertical;
|
||||||
position: relative;
|
position: relative;
|
||||||
|
|
||||||
image {
|
image {
|
||||||
width: 16rpx;
|
width: 16rpx;
|
||||||
height: 20rpx;
|
height: 20rpx;
|
||||||
margin-right: 10rpx;
|
margin-right: 10rpx;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
.item.active {
|
.item.active {
|
||||||
background-color: #fff;
|
background-color: #fff;
|
||||||
color: #FF9300;
|
color: #FF9300;
|
||||||
@ -3205,6 +3302,7 @@
|
|||||||
// transform: translateY(-50%);
|
// transform: translateY(-50%);
|
||||||
// }
|
// }
|
||||||
}
|
}
|
||||||
|
|
||||||
.cuIconlujing226 {
|
.cuIconlujing226 {
|
||||||
width: 32rpx;
|
width: 32rpx;
|
||||||
height: 32rpx;
|
height: 32rpx;
|
||||||
@ -3219,29 +3317,35 @@
|
|||||||
border-radius: 50%;
|
border-radius: 50%;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
.right {
|
.right {
|
||||||
width: 570rpx;
|
width: 570rpx;
|
||||||
height: 100%;
|
height: 100%;
|
||||||
background-color: #fff;
|
background-color: #fff;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
.cate-box-wrap {
|
.cate-box-wrap {
|
||||||
.cate-box-wrap-title {
|
.cate-box-wrap-title {
|
||||||
line-height: 80rpx;
|
line-height: 80rpx;
|
||||||
padding: 0 32rpx;
|
padding: 0 32rpx;
|
||||||
}
|
}
|
||||||
|
|
||||||
&:last-child {
|
&:last-child {
|
||||||
// min-height: calc(100vh - var(--window-bottom) - var(--window-top));
|
// min-height: calc(100vh - var(--window-bottom) - var(--window-top));
|
||||||
min-height: 100%;
|
min-height: 100%;
|
||||||
}
|
}
|
||||||
|
|
||||||
.cate-box {
|
.cate-box {
|
||||||
display: flex;
|
display: flex;
|
||||||
flex-wrap: wrap;
|
flex-wrap: wrap;
|
||||||
padding-left: 10rpx;
|
padding-left: 10rpx;
|
||||||
box-sizing: border-box;
|
box-sizing: border-box;
|
||||||
|
|
||||||
.cate-box-item {
|
.cate-box-item {
|
||||||
padding-bottom: 20rpx;
|
padding-bottom: 20rpx;
|
||||||
position: relative;
|
position: relative;
|
||||||
|
|
||||||
.goodsname {
|
.goodsname {
|
||||||
-webkit-line-clamp: 1;
|
-webkit-line-clamp: 1;
|
||||||
overflow: hidden;
|
overflow: hidden;
|
||||||
@ -3249,26 +3353,32 @@
|
|||||||
display: -webkit-box;
|
display: -webkit-box;
|
||||||
-webkit-box-orient: vertical;
|
-webkit-box-orient: vertical;
|
||||||
}
|
}
|
||||||
|
|
||||||
.price {
|
.price {
|
||||||
color: #E32121;
|
color: #E32121;
|
||||||
margin-right: 16rpx;
|
margin-right: 16rpx;
|
||||||
}
|
}
|
||||||
|
|
||||||
.sales {
|
.sales {
|
||||||
margin: 12rpx 0 40rpx 0;
|
margin: 12rpx 0 40rpx 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
.line {
|
.line {
|
||||||
text-decoration: line-through;
|
text-decoration: line-through;
|
||||||
}
|
}
|
||||||
|
|
||||||
.skuclass {
|
.skuclass {
|
||||||
width: 94rpx;
|
width: 94rpx;
|
||||||
height: 42rpx;
|
height: 42rpx;
|
||||||
background: #FF9300;
|
background: #FF9300;
|
||||||
border-radius: 21rpx;
|
border-radius: 21rpx;
|
||||||
}
|
}
|
||||||
|
|
||||||
.skuimg {
|
.skuimg {
|
||||||
width: 40rpx;
|
width: 40rpx;
|
||||||
height: 40rpx;
|
height: 40rpx;
|
||||||
}
|
}
|
||||||
|
|
||||||
.specnum {
|
.specnum {
|
||||||
width: 32rpx;
|
width: 32rpx;
|
||||||
height: 32rpx;
|
height: 32rpx;
|
||||||
@ -3285,6 +3395,7 @@
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
.skuimg {
|
.skuimg {
|
||||||
width: 40rpx;
|
width: 40rpx;
|
||||||
height: 40rpx;
|
height: 40rpx;
|
||||||
|
|||||||
@ -34,55 +34,71 @@
|
|||||||
<view class='flex flex-wrap align-center justify-between certifiedMerchant_fd2_0_c1'>
|
<view class='flex flex-wrap align-center justify-between certifiedMerchant_fd2_0_c1'>
|
||||||
<text class='certifiedMerchant_fd2_0_c1_c0'>店铺名称</text>
|
<text class='certifiedMerchant_fd2_0_c1_c0'>店铺名称</text>
|
||||||
<input class='certifiedMerchant_fd2_0_c1_c1' type="text" placeholder="请输入店铺名称" confirm-type="done"
|
<input class='certifiedMerchant_fd2_0_c1_c1' type="text" placeholder="请输入店铺名称" confirm-type="done"
|
||||||
:maxlength="11" placeholder-style="color:rgba(191, 191, 191, 1);font-size:28rpx" v-model="shopNames" />
|
:maxlength="11" placeholder-style="color:rgba(191, 191, 191, 1);font-size:28rpx"
|
||||||
|
v-model="shopNames" />
|
||||||
</view>
|
</view>
|
||||||
<view class='flex flex-wrap align-center justify-between certifiedMerchant_fd2_0_c2'>
|
<view class='flex flex-wrap align-center justify-between certifiedMerchant_fd2_0_c2'>
|
||||||
<text class='certifiedMerchant_fd2_0_c2_c0'>店铺LOGO</text>
|
<text class='certifiedMerchant_fd2_0_c2_c0'>店铺LOGO</text>
|
||||||
<view class='flex flex-wrap align-center' @tap="soloChooseImage('shopLogo','shopLogo',false,false)">
|
<view class='flex flex-wrap align-center'
|
||||||
<image class='certifiedMerchant_fd2_0_c2_c1_c0' mode="aspectFill" :src='shopLogo?shopLogo:"/static/39.png"'>
|
@tap="soloChooseImage('shopLogo', 'shopLogo', false, false)">
|
||||||
|
<image class='certifiedMerchant_fd2_0_c2_c1_c0' mode="aspectFill"
|
||||||
|
:src='shopLogo ? shopLogo : "/static/39.png"'>
|
||||||
</image>
|
</image>
|
||||||
<image class='certifiedMerchant_fd2_0_c2_c1_c1' mode="aspectFit" :src='STATIC_URL + "142.png"'>
|
<image class='certifiedMerchant_fd2_0_c2_c1_c1' mode="aspectFit" :src='STATIC_URL + "142.png"'>
|
||||||
</image>
|
</image>
|
||||||
</view>
|
</view>
|
||||||
</view>
|
</view>
|
||||||
<view class='flex flex-wrap align-center justify-between certifiedMerchant_fd2_0_c3' @tap.stop="handleJumpDiy"
|
<view class='flex flex-wrap align-center justify-between certifiedMerchant_fd2_0_c3'
|
||||||
data-type="navigateTo" :data-url="`/pages/my/siteClassification/siteClassification`">
|
@tap.stop="handleJumpDiy" data-type="navigateTo"
|
||||||
|
:data-url="`/pages/my/siteClassification/siteClassification`">
|
||||||
<text class='certifiedMerchant_fd2_0_c3_c0'>店铺分类</text>
|
<text class='certifiedMerchant_fd2_0_c3_c0'>店铺分类</text>
|
||||||
<view class='flex flex-wrap align-center'>
|
<view class='flex flex-wrap align-center'>
|
||||||
<input class='certifiedMerchant_fd2_0_c3_c1_c0' type="text" placeholder="请选择" confirm-type="done"
|
<input class='certifiedMerchant_fd2_0_c3_c1_c0' type="text" placeholder="请选择"
|
||||||
:maxlength="20" :disabled='true' placeholder-style="color:rgba(191, 191, 191, 1);font-size:28rpx"
|
confirm-type="done" :maxlength="20" :disabled='true'
|
||||||
|
placeholder-style="color:rgba(191, 191, 191, 1);font-size:28rpx"
|
||||||
v-model="shopclassification" />
|
v-model="shopclassification" />
|
||||||
<image class='certifiedMerchant_fd2_0_c3_c1_c1' mode="aspectFit" :src='STATIC_URL + "142.png"'>
|
<image class='certifiedMerchant_fd2_0_c3_c1_c1' mode="aspectFit" :src='STATIC_URL + "142.png"'>
|
||||||
</image>
|
</image>
|
||||||
</view>
|
</view>
|
||||||
</view>
|
</view>
|
||||||
<view class='flex flex-wrap align-center justify-between certifiedMerchant_fd2_0_c3' @tap.stop="handleSelectorType"
|
<view class='flex flex-wrap align-center justify-between certifiedMerchant_fd2_0_c3'
|
||||||
data-type="navigateTo" :data-url="`/pages/my/siteClassification/siteClassification`">
|
@tap.stop="handleSelectorType" data-type="navigateTo"
|
||||||
|
:data-url="`/pages/my/siteClassification/siteClassification`">
|
||||||
<text class='certifiedMerchant_fd2_0_c3_c0'>店铺类型</text>
|
<text class='certifiedMerchant_fd2_0_c3_c0'>店铺类型</text>
|
||||||
<view class='flex flex-wrap align-center'>
|
<view class='flex flex-wrap align-center'>
|
||||||
<text class="certifiedMerchant_fd2_0_c3_c1_c0" :class="shopType ? 'text-333' : 'text-999'">{{shopType ? shopType : '请选择'}}</text>
|
<text class="certifiedMerchant_fd2_0_c3_c1_c0" :class="shopType ? 'text-333' : 'text-999'">{{
|
||||||
|
shopType ?
|
||||||
|
shopType : '请选择' }}</text>
|
||||||
<image class='certifiedMerchant_fd2_0_c3_c1_c1' mode="aspectFit" :src='STATIC_URL + "142.png"'>
|
<image class='certifiedMerchant_fd2_0_c3_c1_c1' mode="aspectFit" :src='STATIC_URL + "142.png"'>
|
||||||
</image>
|
</image>
|
||||||
</view>
|
</view>
|
||||||
</view>
|
</view>
|
||||||
<view class='flex flex-wrap align-center justify-between certifiedMerchant_fd2_0_c3' @tap.stop="handleSelector"
|
<view class='flex flex-wrap align-center justify-between certifiedMerchant_fd2_0_c3'
|
||||||
data-type="navigateTo" :data-url="`/pages/my/siteClassification/siteClassification`">
|
@tap.stop="handleSelector" data-type="navigateTo"
|
||||||
|
:data-url="`/pages/my/siteClassification/siteClassification`">
|
||||||
<text class='certifiedMerchant_fd2_0_c3_c0'>抽佣比例</text>
|
<text class='certifiedMerchant_fd2_0_c3_c0'>抽佣比例</text>
|
||||||
<view class='flex flex-wrap align-center'>
|
<view class='flex flex-wrap align-center'>
|
||||||
<input class='certifiedMerchant_fd2_0_c3_c1_c0' type="text" placeholder="请选择" confirm-type="done"
|
<input class='certifiedMerchant_fd2_0_c3_c1_c0' type="text" placeholder="请选择"
|
||||||
:maxlength="20" :disabled='true' placeholder-style="color:rgba(191, 191, 191, 1);font-size:28rpx"
|
confirm-type="done" :maxlength="20" :disabled='true'
|
||||||
|
placeholder-style="color:rgba(191, 191, 191, 1);font-size:28rpx"
|
||||||
:value="scoreRate ? `${scoreRate}%` : ''" />
|
:value="scoreRate ? `${scoreRate}%` : ''" />
|
||||||
<image class='certifiedMerchant_fd2_0_c3_c1_c1' mode="aspectFit" :src='STATIC_URL + "142.png"'>
|
<image class='certifiedMerchant_fd2_0_c3_c1_c1' mode="aspectFit" :src='STATIC_URL + "142.png"'>
|
||||||
</image>
|
</image>
|
||||||
</view>
|
</view>
|
||||||
</view>
|
</view>
|
||||||
|
<view class='flex flex-wrap align-center justify-between certifiedMerchant_fd2_0_c1'>
|
||||||
|
<text class='certifiedMerchant_fd2_0_c1_c0'>信用代码</text>
|
||||||
|
<input class='certifiedMerchant_fd2_0_c1_c1' type="text" placeholder="请输入企业信用代码" confirm-type="done"
|
||||||
|
placeholder-style="color:rgba(191, 191, 191, 1);font-size:28rpx"
|
||||||
|
v-model="license_number" />
|
||||||
|
</view>
|
||||||
<view class='flex flex-wrap align-center justify-between certifiedMerchant_fd2_0_c4'
|
<view class='flex flex-wrap align-center justify-between certifiedMerchant_fd2_0_c4'
|
||||||
@tap.stop="showMulLinkageThreePicker">
|
@tap.stop="showMulLinkageThreePicker">
|
||||||
<text class='certifiedMerchant_fd2_0_c4_c0'>店铺地址</text>
|
<text class='certifiedMerchant_fd2_0_c4_c0'>店铺地址</text>
|
||||||
<view class='flex flex-wrap align-center'>
|
<view class='flex flex-wrap align-center'>
|
||||||
<input class='certifiedMerchant_fd2_0_c4_c1_c0' type="text" placeholder="请选择" confirm-type="done"
|
<input class='certifiedMerchant_fd2_0_c4_c1_c0' type="text" placeholder="请选择"
|
||||||
:maxlength="20" :disabled='true' placeholder-style="color:rgba(191, 191, 191, 1);font-size:28rpx"
|
confirm-type="done" :maxlength="20" :disabled='true'
|
||||||
v-model="shopAdress" />
|
placeholder-style="color:rgba(191, 191, 191, 1);font-size:28rpx" v-model="shopAdress" />
|
||||||
<image class='certifiedMerchant_fd2_0_c4_c1_c1' mode="aspectFit" :src='STATIC_URL + "142.png"'>
|
<image class='certifiedMerchant_fd2_0_c4_c1_c1' mode="aspectFit" :src='STATIC_URL + "142.png"'>
|
||||||
</image>
|
</image>
|
||||||
</view>
|
</view>
|
||||||
@ -98,22 +114,24 @@
|
|||||||
<view class='flex flex-wrap align-center justify-between certifiedMerchant_fd2_0_c6'>
|
<view class='flex flex-wrap align-center justify-between certifiedMerchant_fd2_0_c6'>
|
||||||
<text class='certifiedMerchant_fd2_0_c6_c0'>身份证</text>
|
<text class='certifiedMerchant_fd2_0_c6_c0'>身份证</text>
|
||||||
<view class='flex flex-wrap align-center'>
|
<view class='flex flex-wrap align-center'>
|
||||||
<input class='certifiedMerchant_fd2_0_c6_c1_c0' type="idcard" placeholder="请输入18位身份证号码" confirm-type="done"
|
<input class='certifiedMerchant_fd2_0_c6_c1_c0' type="idcard" placeholder="请输入18位身份证号码"
|
||||||
:maxlength="18" placeholder-style="color:#999;font-size:28rpx" v-model="IdCard" />
|
confirm-type="done" :maxlength="18" placeholder-style="color:#999;font-size:28rpx"
|
||||||
|
v-model="IdCard" />
|
||||||
</view>
|
</view>
|
||||||
</view>
|
</view>
|
||||||
<view class='flex flex-direction flex-wrap align-stretch justify-between certifiedMerchant_fd2_0_c7'>
|
<view class='flex flex-direction flex-wrap align-stretch justify-between certifiedMerchant_fd2_0_c7'>
|
||||||
<text class='certifiedMerchant_fd2_0_c7_c0'>请上传身份证正反面</text>
|
<text class='certifiedMerchant_fd2_0_c7_c0'>请上传身份证正反面</text>
|
||||||
<view v-if="!idfront" @tap="soloChooseImage('idfront', 'idfront', false, false)"
|
<view v-if="!idfront" @tap="soloChooseImage('idfront', 'idfront', false, false)"
|
||||||
class="upload position-relative certifiedMerchant_fd2_0_c7_c1">
|
class="upload position-relative certifiedMerchant_fd2_0_c7_c1">
|
||||||
<image class=" certifiedMerchant_fd2_0_c7_c1_image" mode="aspectFill" :src="STATIC_URL+'144.png'"></image>
|
<image class=" certifiedMerchant_fd2_0_c7_c1_image" mode="aspectFill"
|
||||||
|
:src="STATIC_URL + '144.png'"></image>
|
||||||
</view>
|
</view>
|
||||||
|
|
||||||
<view class="position-relative" style="margin-top: 20rpx;" v-else>
|
<view class="position-relative" style="margin-top: 20rpx;" v-else>
|
||||||
<text v-if="idfront != ''" @tap="idfront = ''"
|
<text v-if="idfront != ''" @tap="idfront = ''"
|
||||||
class='fu-iconfont2 position-absolute certifiedMerchant_fd2_0_c9_c0_icon'></text>
|
class='fu-iconfont2 position-absolute certifiedMerchant_fd2_0_c9_c0_icon'></text>
|
||||||
<image @tap="soloChooseImage('idfront','idfront',false,false)" class="certifiedMerchant_fd2_0_c9_c0_image1"
|
<image @tap="soloChooseImage('idfront', 'idfront', false, false)"
|
||||||
mode="aspectFill" :src="idfront"></image>
|
class="certifiedMerchant_fd2_0_c9_c0_image1" mode="aspectFill" :src="idfront"></image>
|
||||||
</view>
|
</view>
|
||||||
|
|
||||||
<text class='certifiedMerchant_fd2_0_c7_c2'>身份证正面</text>
|
<text class='certifiedMerchant_fd2_0_c7_c2'>身份证正面</text>
|
||||||
@ -121,7 +139,8 @@
|
|||||||
<view class='flex flex-direction flex-wrap align-stretch justify-between'>
|
<view class='flex flex-direction flex-wrap align-stretch justify-between'>
|
||||||
<view @tap="soloChooseImage('idopposite', 'idopposite', false, false)"
|
<view @tap="soloChooseImage('idopposite', 'idopposite', false, false)"
|
||||||
class="upload position-relative certifiedMerchant_fd2_0_c8_c0" v-if="!idopposite">
|
class="upload position-relative certifiedMerchant_fd2_0_c8_c0" v-if="!idopposite">
|
||||||
<image class=" certifiedMerchant_fd2_0_c8_c0_image" mode="aspectFill" :src="STATIC_URL+'288.png'"></image>
|
<image class=" certifiedMerchant_fd2_0_c8_c0_image" mode="aspectFill"
|
||||||
|
:src="STATIC_URL + '288.png'"></image>
|
||||||
</view>
|
</view>
|
||||||
<view class="position-relative" v-else>
|
<view class="position-relative" v-else>
|
||||||
<text v-if="idopposite != ''" @tap="idopposite = ''"
|
<text v-if="idopposite != ''" @tap="idopposite = ''"
|
||||||
@ -140,7 +159,8 @@
|
|||||||
<view class='flex flex-direction flex-wrap align-stretch justify-between'>
|
<view class='flex flex-direction flex-wrap align-stretch justify-between'>
|
||||||
<view @tap="soloChooseImage('business', 'business', false, false)"
|
<view @tap="soloChooseImage('business', 'business', false, false)"
|
||||||
class="upload position-relative certifiedMerchant_fd2_0_c8_c0" v-if="!business">
|
class="upload position-relative certifiedMerchant_fd2_0_c8_c0" v-if="!business">
|
||||||
<image class=" certifiedMerchant_fd2_0_c8_c0_image" mode="aspectFill" :src="STATIC_URL+'145.png'"></image>
|
<image class=" certifiedMerchant_fd2_0_c8_c0_image" mode="aspectFill"
|
||||||
|
:src="STATIC_URL + '145.png'"></image>
|
||||||
</view>
|
</view>
|
||||||
<view class="position-relative" v-else>
|
<view class="position-relative" v-else>
|
||||||
<text v-if="business != ''" @tap="business = ''"
|
<text v-if="business != ''" @tap="business = ''"
|
||||||
@ -185,7 +205,8 @@
|
|||||||
<text class='certifiedMerchant_fd3_0_c0_c1'>为保证平台用户安全性,需要您进行实名认证,实名认证通过之后即可登录并在平台进行营业</text>
|
<text class='certifiedMerchant_fd3_0_c0_c1'>为保证平台用户安全性,需要您进行实名认证,实名认证通过之后即可登录并在平台进行营业</text>
|
||||||
</view>
|
</view>
|
||||||
<view class='flex flex-wrap align-center certifiedMerchant_fd3_0_c1'>
|
<view class='flex flex-wrap align-center certifiedMerchant_fd3_0_c1'>
|
||||||
<button class='flex-sub certifiedMerchant_fd3_0_c1_c0' @tap.stop="submitInformationFunc()">提交信息认证</button>
|
<button class='flex-sub certifiedMerchant_fd3_0_c1_c0'
|
||||||
|
@tap.stop="submitInformationFunc()">提交信息认证</button>
|
||||||
</view>
|
</view>
|
||||||
<view class='flex flex-wrap align-center justify-center'>
|
<view class='flex flex-wrap align-center justify-center'>
|
||||||
<benben-flex-switch-new class-name='flex flex certifiedMerchant_fd3_0_c2_c0' v-model="isAgreement"
|
<benben-flex-switch-new class-name='flex flex certifiedMerchant_fd3_0_c2_c0' v-model="isAgreement"
|
||||||
@ -193,7 +214,8 @@
|
|||||||
<template v-slot:checked>
|
<template v-slot:checked>
|
||||||
|
|
||||||
<view class='flex flex position-relative align-center'>
|
<view class='flex flex position-relative align-center'>
|
||||||
<image class='certifiedMerchant_checkfd3_0_c2_c0_c0_c0' mode="aspectFit" :src='STATIC_URL+"33.png"'>
|
<image class='certifiedMerchant_checkfd3_0_c2_c0_c0_c0' mode="aspectFit"
|
||||||
|
:src='STATIC_URL + "33.png"'>
|
||||||
</image>
|
</image>
|
||||||
</view>
|
</view>
|
||||||
|
|
||||||
@ -201,7 +223,8 @@
|
|||||||
<template v-slot:unchecked>
|
<template v-slot:unchecked>
|
||||||
|
|
||||||
<view class='flex flex position-relative justify-end align-center'>
|
<view class='flex flex position-relative justify-end align-center'>
|
||||||
<image class='certifiedMerchant_noCheckfd3_0_c2_c0_c1_c0' mode="aspectFit" :src='STATIC_URL+"123.png"'>
|
<image class='certifiedMerchant_noCheckfd3_0_c2_c0_c1_c0' mode="aspectFit"
|
||||||
|
:src='STATIC_URL + "123.png"'>
|
||||||
</image>
|
</image>
|
||||||
</view>
|
</view>
|
||||||
|
|
||||||
@ -218,7 +241,8 @@
|
|||||||
<w-picker :visible.sync="visible" mode="selector" default-type="name" :default-props="defaultProps"
|
<w-picker :visible.sync="visible" mode="selector" default-type="name" :default-props="defaultProps"
|
||||||
:options="rateList" @confirm="onConfirm($event, 'selector')" @cancel="onCancel" ref="selector"></w-picker>
|
:options="rateList" @confirm="onConfirm($event, 'selector')" @cancel="onCancel" ref="selector"></w-picker>
|
||||||
<w-picker :visible.sync="visible" mode="selector" default-type="name" :default-props="defaultProps"
|
<w-picker :visible.sync="visible" mode="selector" default-type="name" :default-props="defaultProps"
|
||||||
:options="shopTypeList" @confirm="onConfirm($event,'type')" @cancel="onCancel" ref="selectorType"></w-picker>
|
:options="shopTypeList" @confirm="onConfirm($event, 'type')" @cancel="onCancel"
|
||||||
|
ref="selectorType"></w-picker>
|
||||||
</view>
|
</view>
|
||||||
</template>
|
</template>
|
||||||
<script>
|
<script>
|
||||||
@ -256,6 +280,7 @@
|
|||||||
"IdCard": "",
|
"IdCard": "",
|
||||||
"idopposite": "",
|
"idopposite": "",
|
||||||
"idfront": "",
|
"idfront": "",
|
||||||
|
"license_number": "",
|
||||||
business: '',
|
business: '',
|
||||||
foodLicense: '',
|
foodLicense: '',
|
||||||
"license": [],
|
"license": [],
|
||||||
@ -416,6 +441,7 @@
|
|||||||
this.shopAdress = res.data.data.address;
|
this.shopAdress = res.data.data.address;
|
||||||
this.detailAddress = res.data.data.address_address;
|
this.detailAddress = res.data.data.address_address;
|
||||||
this.IdCard = res.data.data.id_card;
|
this.IdCard = res.data.data.id_card;
|
||||||
|
this.license_number = res.data.data.license_number;
|
||||||
this.idfront = res.data.data.id_front;
|
this.idfront = res.data.data.id_front;
|
||||||
this.shopType = res.data.data.store_type;
|
this.shopType = res.data.data.store_type;
|
||||||
this.idopposite = res.data.data.id_back;
|
this.idopposite = res.data.data.id_back;
|
||||||
@ -488,6 +514,10 @@
|
|||||||
this.$message.info('请选择抽佣比例');
|
this.$message.info('请选择抽佣比例');
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
|
if (!validate(this.license_number, 'require')) {
|
||||||
|
this.$message.info('请输入商家信用代码');
|
||||||
|
return false;
|
||||||
|
}
|
||||||
if (!validate(this.shopAdress, 'require')) {
|
if (!validate(this.shopAdress, 'require')) {
|
||||||
this.$message.info('请选择店铺地址');
|
this.$message.info('请选择店铺地址');
|
||||||
return false;
|
return false;
|
||||||
@ -534,6 +564,7 @@
|
|||||||
id_front: this.idfront,
|
id_front: this.idfront,
|
||||||
id_back: this.idopposite,
|
id_back: this.idopposite,
|
||||||
license_image: this.business,
|
license_image: this.business,
|
||||||
|
license_number: this.license_number,
|
||||||
address: this.shopAdress,
|
address: this.shopAdress,
|
||||||
address_province: this.province,
|
address_province: this.province,
|
||||||
address_city: this.city,
|
address_city: this.city,
|
||||||
@ -575,6 +606,7 @@
|
|||||||
.text-999 {
|
.text-999 {
|
||||||
color: #999 !important;
|
color: #999 !important;
|
||||||
}
|
}
|
||||||
|
|
||||||
.page {
|
.page {
|
||||||
width: 100vw;
|
width: 100vw;
|
||||||
overflow-x: hidden;
|
overflow-x: hidden;
|
||||||
|
|||||||
@ -55,7 +55,7 @@
|
|||||||
:class="{ 'checkTitlefd1_0': tabls == '4', 'flex flex-wrap align-center myOrder_titlefd1_0_c7': true }"
|
:class="{ 'checkTitlefd1_0': tabls == '4', 'flex flex-wrap align-center myOrder_titlefd1_0_c7': true }"
|
||||||
@tap="tabClick(4)" :id="`benben_tabsfd1_0-title-item-${'4'}`">
|
@tap="tabClick(4)" :id="`benben_tabsfd1_0-title-item-${'4'}`">
|
||||||
|
|
||||||
<text>待评价</text>
|
<text>已完成</text>
|
||||||
<text v-if="detailsnum && detailsnum.to_be_evaluated > 0">({{detailsnum.to_be_evaluated}})</text>
|
<text v-if="detailsnum && detailsnum.to_be_evaluated > 0">({{detailsnum.to_be_evaluated}})</text>
|
||||||
</view>
|
</view>
|
||||||
</view>
|
</view>
|
||||||
@ -280,7 +280,7 @@
|
|||||||
case 6:
|
case 6:
|
||||||
return '待到店自提';
|
return '待到店自提';
|
||||||
case 7:
|
case 7:
|
||||||
return '待评价';
|
return '已评价';
|
||||||
case 8:
|
case 8:
|
||||||
return '已完成';
|
return '已完成';
|
||||||
case -1:
|
case -1:
|
||||||
|
|||||||
@ -69,7 +69,8 @@
|
|||||||
</view>
|
</view>
|
||||||
<view class='flex flex-wrap align-center justify-center myPage_fd0_1_c1' @tap.stop="handleJumpDiy"
|
<view class='flex flex-wrap align-center justify-center myPage_fd0_1_c1' @tap.stop="handleJumpDiy"
|
||||||
data-type="navigateTo" :data-url="`/pages/xtsz/payCode/payCode`">
|
data-type="navigateTo" :data-url="`/pages/xtsz/payCode/payCode`">
|
||||||
<image class='myPage_fd0_1_c1_c1' mode="aspectFit" :src='STATIC_URL + "my_pay_ercode.png"' style="margin-right: 10rpx;width:32rpx;height:32rpx;"></image>
|
<image class='myPage_fd0_1_c1_c1' mode="aspectFit" :src='STATIC_URL + "my_pay_ercode.png"'
|
||||||
|
style="margin-right: 10rpx;width:32rpx;height:32rpx;"></image>
|
||||||
<text class='myPage_fd0_1_c1_c0'>付款码</text>
|
<text class='myPage_fd0_1_c1_c0'>付款码</text>
|
||||||
<!-- <image class='myPage_fd0_1_c1_c1' mode="aspectFit" :src='STATIC_URL+"150.png"'></image> -->
|
<!-- <image class='myPage_fd0_1_c1_c1' mode="aspectFit" :src='STATIC_URL+"150.png"'></image> -->
|
||||||
</view>
|
</view>
|
||||||
@ -239,9 +240,12 @@
|
|||||||
|
|
||||||
<view class="flex flex-direction flex-wrap align-stretch benben-flex-layout myPage_flex_3">
|
<view class="flex flex-direction flex-wrap align-stretch benben-flex-layout myPage_flex_3">
|
||||||
<view class='flex flex-direction flex-wrap align-stretch myPage_fd3_0'>
|
<view class='flex flex-direction flex-wrap align-stretch myPage_fd3_0'>
|
||||||
<view class='flex flex-wrap align-center justify-between myPage_menu' @tap.stop="toTakeoutMiNiProgram" data-type="navigateTo" :data-url="`/pages/xtsz/aboutUs/aboutUs`">
|
<view class='flex flex-wrap align-center justify-between myPage_menu'
|
||||||
|
@tap.stop="toTakeoutMiNiProgram" data-type="navigateTo"
|
||||||
|
:data-url="`/pages/xtsz/aboutUs/aboutUs`">
|
||||||
<view class="flex align-center myPage_menu_item">
|
<view class="flex align-center myPage_menu_item">
|
||||||
<image :src='STATIC_URL + "my_paotui_icon2.png"' style="width:44rpx;height: 44rpx;;"></image>
|
<image :src='STATIC_URL + "my_paotui_icon2.png"' style="width:44rpx;height: 44rpx;;">
|
||||||
|
</image>
|
||||||
<text>跑腿服务</text>
|
<text>跑腿服务</text>
|
||||||
</view>
|
</view>
|
||||||
<view>
|
<view>
|
||||||
@ -249,7 +253,8 @@
|
|||||||
</view>
|
</view>
|
||||||
</view>
|
</view>
|
||||||
<view class="myPage_menu_line"></view>
|
<view class="myPage_menu_line"></view>
|
||||||
<view class='flex flex-wrap align-center justify-between myPage_menu' v-if="shopStatus == -1 && isPublish" @tap.stop="handleJumpDiy" data-type="navigateTo"
|
<view class='flex flex-wrap align-center justify-between myPage_menu'
|
||||||
|
v-if="shopStatus == -1 && isPublish" @tap.stop="handleJumpDiy" data-type="navigateTo"
|
||||||
:data-url="`/pages/my/merchantSettlement/merchantSettlement`">
|
:data-url="`/pages/my/merchantSettlement/merchantSettlement`">
|
||||||
<view class="flex align-center myPage_menu_item">
|
<view class="flex align-center myPage_menu_item">
|
||||||
<image :src='STATIC_URL + "my_shop_icon.png"' style="width:44rpx;height: 44rpx;;"></image>
|
<image :src='STATIC_URL + "my_shop_icon.png"' style="width:44rpx;height: 44rpx;;"></image>
|
||||||
@ -259,7 +264,10 @@
|
|||||||
<uv-icon name="arrow-right" size="32rpx"></uv-icon>
|
<uv-icon name="arrow-right" size="32rpx"></uv-icon>
|
||||||
</view>
|
</view>
|
||||||
</view>
|
</view>
|
||||||
<view class='flex flex-wrap align-center justify-between myPage_menu' v-if="(shopStatus == 2 || shopStatus == 0 || shopStatus == 1) && isPublish" @tap.stop="handleJumpDiy" data-type="navigateTo" :data-url="`/pages/my/certificationAudit/certificationAudit?stateUS=${shopStatus}`">
|
<view class='flex flex-wrap align-center justify-between myPage_menu'
|
||||||
|
v-if="(shopStatus == 2 || shopStatus == 0 || shopStatus == 1) && isPublish"
|
||||||
|
@tap.stop="handleJumpDiy" data-type="navigateTo"
|
||||||
|
:data-url="`/pages/my/certificationAudit/certificationAudit?stateUS=${shopStatus}`">
|
||||||
<view class="flex align-center myPage_menu_item">
|
<view class="flex align-center myPage_menu_item">
|
||||||
<image :src='STATIC_URL + "my_shop_icon.png"' style="width:44rpx;height: 44rpx;;"></image>
|
<image :src='STATIC_URL + "my_shop_icon.png"' style="width:44rpx;height: 44rpx;;"></image>
|
||||||
<text>商家入驻</text>
|
<text>商家入驻</text>
|
||||||
@ -601,13 +609,48 @@ export default {
|
|||||||
|
|
||||||
// 跳转小程序
|
// 跳转小程序
|
||||||
toTakeoutMiNiProgram() {
|
toTakeoutMiNiProgram() {
|
||||||
|
console.log(123)
|
||||||
|
// #ifdef MP-WEIXIN
|
||||||
uni.navigateToMiniProgram({
|
uni.navigateToMiniProgram({
|
||||||
appId: 'wxc71d195244088eac',
|
appId: 'wxc71d195244088eac',
|
||||||
path: '/pages/index/index',
|
path: '/pages/index/index',
|
||||||
success(res) {
|
success(res) {
|
||||||
console.log('打开成功');
|
console.log('打开成功');
|
||||||
|
},
|
||||||
|
fail(err) {
|
||||||
|
console.error('跳转失败', err);
|
||||||
}
|
}
|
||||||
})
|
})
|
||||||
|
// #endif
|
||||||
|
|
||||||
|
|
||||||
|
if (!plus.share) {
|
||||||
|
alert("当前环境不支持 plus.share");
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
// #ifdef APP-PLUS
|
||||||
|
plus.share.getServices(function(res) {
|
||||||
|
var sweixin = null;
|
||||||
|
for (var i = 0; i < res.length; i++) {
|
||||||
|
var t = res[i];
|
||||||
|
if (t.id == 'weixin') {
|
||||||
|
sweixin = t;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
if (sweixin) {
|
||||||
|
sweixin.launchMiniProgram({
|
||||||
|
id: 'gh_cfa37ff43af6', // 小程序原始id
|
||||||
|
path: '/pages/index/index',
|
||||||
|
type: 0
|
||||||
|
});
|
||||||
|
} else {
|
||||||
|
plus.nativeUI.alert('当前环境不支持微信操作!');
|
||||||
|
}
|
||||||
|
}, function(res) {
|
||||||
|
console.log(12321321313)
|
||||||
|
console.log(JSON.stringify(res));
|
||||||
|
});
|
||||||
|
// #endif
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
@ -651,7 +694,7 @@ export default {
|
|||||||
|
|
||||||
.myPage_user {
|
.myPage_user {
|
||||||
background: url(https://lvtai-files.oss-cn-beijing.aliyuncs.com/mini/my_user_bg.png) no-repeat, transparent;
|
background: url(https://lvtai-files.oss-cn-beijing.aliyuncs.com/mini/my_user_bg.png) no-repeat, transparent;
|
||||||
background-size: 100% auto;
|
background-size: 100% 100%;
|
||||||
margin: 20rpx 40rpx 0;
|
margin: 20rpx 40rpx 0;
|
||||||
padding: 36rpx 0 20rpx;
|
padding: 36rpx 0 20rpx;
|
||||||
// border-radius: 42rpx 0rpx 0rpx 42rpx;
|
// border-radius: 42rpx 0rpx 0rpx 42rpx;
|
||||||
|
|||||||
@ -74,14 +74,39 @@
|
|||||||
<view class="flex flex-direction flex-wrap align-stretch benben-flex-layout nearbyMerchants_flex_3">
|
<view class="flex flex-direction flex-wrap align-stretch benben-flex-layout nearbyMerchants_flex_3">
|
||||||
<view class='flex flex-wrap align-center nearbyMerchants_fd3_0' v-for="(item, index) in list" style="position: relative;"
|
<view class='flex flex-wrap align-center nearbyMerchants_fd3_0' v-for="(item, index) in list" style="position: relative;"
|
||||||
:key="index">
|
:key="index">
|
||||||
<view class="point-bg">
|
<!-- <image class='point-bg' mode="scaleToFill" src='https://lvtai-files.oss-cn-beijing.aliyuncs.com/mini/point_bg.png'
|
||||||
<view class="point-bg-txt">积分{{item.score_rate}}%</view>
|
style="width: 140rpx;height: 100rpx;z-index: 9999999999999;">
|
||||||
</view>
|
</image> -->
|
||||||
|
<image
|
||||||
|
class="point-bg"
|
||||||
|
src="https://lvtai-files.oss-cn-beijing.aliyuncs.com/mini/point_bg.png"
|
||||||
|
:style="{
|
||||||
|
position: 'absolute',
|
||||||
|
top: '-32rpx',
|
||||||
|
left: '-32rpx',
|
||||||
|
width: '120rpx',
|
||||||
|
height: '112rpx',
|
||||||
|
zIndex: 10
|
||||||
|
}"
|
||||||
|
>
|
||||||
|
<!-- 文字内容需要单独用 view 包裹 -->
|
||||||
|
<text class="point-bg-txt" :style="{
|
||||||
|
position: 'absolute',
|
||||||
|
fontSize: '16rpx',
|
||||||
|
top: '-54rpx',
|
||||||
|
left: '8rpx',
|
||||||
|
width: '112rpx',
|
||||||
|
height: '112rpx',
|
||||||
|
zIndex: 10
|
||||||
|
}">积分{{item.score_rate}}%</text>
|
||||||
|
</image>
|
||||||
|
|
||||||
<view class='flex flex-direction flex-wrap align-start' @click.stop="handleToDetail(item)"
|
<view class='flex flex-direction flex-wrap align-start' @click.stop="handleToDetail(item)"
|
||||||
style="position: relative;">
|
style="position: relative;">
|
||||||
<view class='flex flex-wrap align-center'>
|
<view class='flex flex-wrap align-center'>
|
||||||
<image class='nearbyMerchants_fd3_0_c0_c1_c0' mode="aspectFill" :src='item.logo'></image>
|
<image class='nearbyMerchants_fd3_0_c0_c1_c0' mode="aspectFill" :src='item.logo'></image>
|
||||||
</view>
|
</view>
|
||||||
|
|
||||||
<!-- <image class="nearbyMerchants_fd3_0_c0_c0001" :src='STATIC_URL+"23.png"' mode="widthFix">
|
<!-- <image class="nearbyMerchants_fd3_0_c0_c0001" :src='STATIC_URL+"23.png"' mode="widthFix">
|
||||||
</image> -->
|
</image> -->
|
||||||
<!-- <view class='flex flex-wrap align-center justify-center nearbyMerchants_fd3_0_c0_c0'
|
<!-- <view class='flex flex-wrap align-center justify-center nearbyMerchants_fd3_0_c0_c0'
|
||||||
@ -845,6 +870,19 @@
|
|||||||
background-size: 100% auto !important;
|
background-size: 100% auto !important;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
.point-bg {
|
||||||
|
/* 注意:nvue 中不需要设置 background 相关属性 */
|
||||||
|
resize-mode: cover; /* 替代 background-size: cover */
|
||||||
|
}
|
||||||
|
|
||||||
|
.point-bg-txt {
|
||||||
|
transform: rotate(315deg);
|
||||||
|
font-size: 20rpx;
|
||||||
|
color: #ffffff;
|
||||||
|
margin-left: 12rpx;
|
||||||
|
margin-top: 32rpx;
|
||||||
|
}
|
||||||
.nearbyMerchants_flex_0 {
|
.nearbyMerchants_flex_0 {
|
||||||
background: rgba(255, 147, 0, 1);
|
background: rgba(255, 147, 0, 1);
|
||||||
width: 750rpx;
|
width: 750rpx;
|
||||||
@ -1332,22 +1370,4 @@
|
|||||||
color: #fff;
|
color: #fff;
|
||||||
}
|
}
|
||||||
|
|
||||||
.point-bg {
|
|
||||||
background: url(https://lvtai-files.oss-cn-beijing.aliyuncs.com/mini/point_bg.png) no-repeat;
|
|
||||||
background-size: cover;
|
|
||||||
position: absolute;
|
|
||||||
top: -32rpx;
|
|
||||||
left: -32rpx;
|
|
||||||
z-index: 10;
|
|
||||||
width: 112rpx;
|
|
||||||
height: 112rpx;
|
|
||||||
}
|
|
||||||
|
|
||||||
.point-bg-txt {
|
|
||||||
transform: rotate(315deg);
|
|
||||||
font-size: 20rpx;
|
|
||||||
color: #fff;
|
|
||||||
margin-left: 12rpx;
|
|
||||||
margin-top: 32rpx;
|
|
||||||
}
|
|
||||||
</style>
|
</style>
|
||||||
1354
pages/tabBar/nearbyMerchants/nearbyMerchants2.nvue
Normal file
1354
pages/tabBar/nearbyMerchants/nearbyMerchants2.nvue
Normal file
File diff suppressed because it is too large
Load Diff
29
pages/tabBar/nearbyMerchants/nearbyMerchants3.nvue
Normal file
29
pages/tabBar/nearbyMerchants/nearbyMerchants3.nvue
Normal file
@ -0,0 +1,29 @@
|
|||||||
|
<template>
|
||||||
|
<view style="width: 100px; height: 100px; position: relative;">
|
||||||
|
<view class="point-bg"></view>
|
||||||
|
<text class="point-bg-txt">积分10%</text>
|
||||||
|
</view>
|
||||||
|
</template>
|
||||||
|
|
||||||
|
<style>
|
||||||
|
/* 无 scoped 或使用 ::v-deep */
|
||||||
|
.point-bg {
|
||||||
|
background: url('https://lvtai-files.oss-cn-beijing.aliyuncs.com/mini/point_bg.png') no-repeat;
|
||||||
|
background-size: cover;
|
||||||
|
position: absolute;
|
||||||
|
top: -16px;
|
||||||
|
left: -16px;
|
||||||
|
z-index: 10;
|
||||||
|
width: 56px;
|
||||||
|
height: 56px;
|
||||||
|
}
|
||||||
|
.point-bg-txt {
|
||||||
|
-webkit-transform: rotate(315deg);
|
||||||
|
transform: rotate(315deg);
|
||||||
|
font-size: 10px;
|
||||||
|
color: red;
|
||||||
|
margin-left: 6px;
|
||||||
|
margin-top: 16px;
|
||||||
|
display: inline-block; /* 确保 transform 生效 */
|
||||||
|
}
|
||||||
|
</style>
|
||||||
Reference in New Issue
Block a user