对接本地商家数据及修改页面

This commit is contained in:
wangxiaowei 2024-08-19 15:32:47 +08:00
parent d1973de005
commit 16f3e8b229
7 changed files with 33 additions and 32 deletions

@ -121,7 +121,7 @@
</view> -->
<view class="apply-form-item">
<u-field label="手持身份证" label-width="160" placeholder="请上传手持身份证" :border-bottom="false"
<u-field label="自拍照" label-width="160" placeholder="请上传自拍照" :border-bottom="false"
required disabled />
<view class="apply-form-upload" @click="uploadHandCard" v-if="form.idCard">
<image :src="form.idCard" mode="aspectFit"></image>
@ -501,7 +501,7 @@
})
},
// 上传手持身份证
// 上传自拍照
uploadHandCard() {
uni.chooseImage({
count: 1,
@ -620,7 +620,7 @@
})
if (!idCard) return this.$toast({
title: '请上传手持身份证'
title: '请上传自拍照'
})
if (!name) return this.$toast({

@ -39,7 +39,7 @@
data,
code,
msg
} = await getLocalShopById({id: this.lstore_id})
} = await getLocalShopById({id: this.lstore_id, type: 1})
if (code == 1) {
this.pay_image = data.pay_image
}

@ -14,7 +14,7 @@
<view class="footer bg-white flex row-between fixed">
<view class="all-price lg flex">
<text>支付:</text>
<text>支付:</text>
<view class="primary">
<price-format weight="500" :first-size="36" :second-size="36" :price="money">
</price-format>
@ -54,7 +54,7 @@
</u-radio-group>
</view>
<view class="intro bold">
参与百亿返补和八折支付不享受退款服务
参与消费返补和八折支付不享受退款服务
</view>
</view>
</view>
@ -95,7 +95,7 @@
money: '',
payway: 1,
paywayList: [
{id: 1, icon: 'https://zjeloong.oss-cn-hangzhou.aliyuncs.com/uniapp/bundle_b/butie.png', name: '百亿返补', extra: '购买商品参与百亿返补', pay_way: 1},
{id: 1, icon: 'https://zjeloong.oss-cn-hangzhou.aliyuncs.com/uniapp/bundle_b/butie.png', name: '消费返补', extra: '购买商品参与消费返补', pay_way: 1},
{id: 2, icon: 'https://zjeloong.oss-cn-hangzhou.aliyuncs.com/uniapp/bundle_b/bazhe.png', name: '八折支付', extra: '购买商品享受八折服务', pay_way: 2},
{id: 3, icon: 'https://zjeloong.oss-cn-hangzhou.aliyuncs.com/uniapp/bundle_b/icon_withdrawals.png', name: '余额支付', extra: '', pay_way: 3},
],
@ -103,12 +103,13 @@
successPopup: false,
cancelPopup: false,
payMoney: 0,
lid: 0
lid: 0,
info: [],
};
},
onLoad(query) {
if (query.id) {
if (query?.id) {
this.lid = query.id
} else {
this.lid = strToParams(decodeURIComponent(this.$Router.currentRoute.query.scene)).lid
@ -135,7 +136,7 @@
},
getLocalShopByIdFunc() {
getLocalShopById({id: this.lid}).then((res) => {
getLocalShopById({id: this.lid, type: 1}).then((res) => {
if (res.code == 1) {
this.info = res.data
}
@ -257,7 +258,7 @@
onShowSuccessPopup() {
this.successPopup = !this.successPopup
setTimeout(() => {
uni.switchTab({
uni.navigateTo({
url: '/bundle_b/pages/subsidy_shop/subsidy_shop'
})
}, 500)

@ -2,21 +2,21 @@
<view class="content">
<view class="info">
<view class="head flex">
<u-image :src="item.shopLogo" :width="width" :height="width" :border-radius="10"></u-image>
<view class="m-l-20 name bold">{{item.shopName}}</view>
<u-image :src="info.shopLogo" :width="width" :height="width" :border-radius="10"></u-image>
<view class="m-l-20 name bold">{{info.shopName}}</view>
</view>
<view class="m-t-20">
<view class="flex row-between">
<view class="address bold">
{{item.address}}
{{info.address ? info.address : ''}}
</view>
<view>
<view @click="callPhone(info.empowerPhone)">
<u-icon name="phone-fill" size="50" color="#00B26A"></u-icon>
</view>
</view>
<view class="distance">
<u-icon name="map" size="32" class="m-r-10"></u-icon>
<text>{{item.distance}}</text>
<text>{{info.distance}}</text>
</view>
</view>
</view>
@ -54,12 +54,14 @@
data() {
return {
width: '160rpx',
id: 0
id: 0,
info: []
}
},
async onLoad(options) {
this.id = options.id
this.reLocationFunc()
// this.reLocationFunc()
this.getLocalShopByIdFunc()
},
methods: {
...mapActions(['initLocationFunc']),
@ -72,23 +74,21 @@
// 获取商家详情
async getLocalShopByIdFunc() {
getLocalShopById({id: this.id, longitude: this.cityInfo.gcj02_lng, latitude: this.cityInfo.gcj02_lat}).then((res) => {
getLocalShopById({id: this.id, longitude: this.cityInfo.gcj02_lng, latitude: this.cityInfo.gcj02_lat, type: 1}).then((res) => {
if (res.code == 1) {
this.info = res.data
}
})
},
callPhone(phone) {
uni.makePhoneCall({
phoneNumber: phone
});
}
},
computed: {
...mapGetters(['sysInfo', 'cityInfo', 'userInfo']),
},
watch: {
cityInfo: {
handler(val) {
this.getLocalShopByIdFunc()
}
}
}
}
</script>

@ -43,7 +43,6 @@
return {
storeState: 1,
menu: [
{title: '信息编辑', image: 'https://zjeloong.oss-cn-hangzhou.aliyuncs.com/uniapp/bundle_b/local_shop/local_info.png', src: '/bundle_b/pages/local_shop/local_edit_info'},
{title: '商品添加', image: 'https://zjeloong.oss-cn-hangzhou.aliyuncs.com/uniapp/bundle_b/local_shop/local_add.png', src: '/bundle_b/pages/local_shop/local_shop_add'},
{title: '商品管理', image: 'https://zjeloong.oss-cn-hangzhou.aliyuncs.com/uniapp/bundle_b/local_shop/local_shop.png', src: '/bundle_b/pages/local_shop/local_shop_manager'},
{title: '订单管理', image: 'https://zjeloong.oss-cn-hangzhou.aliyuncs.com/uniapp/bundle_b/local_shop/local_order.png', src: '/bundle_b/pages/local_shop/local_shop_order'},
@ -63,7 +62,7 @@
},
methods: {
getLocalShopByIdFunc(id) {
getLocalShopById({id}).then((res) => {
getLocalShopById({id, type: 0}).then((res) => {
if (res.code == 1) {
this.info = res.data
}

@ -4,19 +4,19 @@
<view class="list" v-for="(item, index) in list" :key="index">
<view class="info flex">
<u-image width="50rpx" height="50rpx" :src="'https://zjeloong.oss-cn-hangzhou.aliyuncs.com/uniapp/shop.png'" shape="circle"></u-image>
<view class="bold m-l-10">东龙汇(浙江)电子商务有限公司</view>
<view class="bold m-l-10">{{item.account_name}}</view>
</view>
<view class="m-t-20">
<view class="info-text text-center m-t-60">付款金额</view>
<view class="flex money row-center m-t-20 m-b-60">
<view class="bold">¥</view>
<view class="bold">5.00</view>
<view class="bold">{{item.total_amount}}</view>
</view>
<!-- <view class="info-text text-center">账单详情 <u-icon name="arrow-right" color="#ccc" class="m-l-10"></u-icon> </view> -->
</view>
<view class="flex pay-time m-t-40">
<view class="info-text sm">支付时间</view>
<view class="m-l-20" style="margin-top: 4rpx;">2024-08-10 23:59:59</view>
<view class="m-l-20" style="margin-top: 4rpx;">{{item.create_time}}</view>
</view>
</view>
</mescroll-uni>

@ -124,6 +124,7 @@
async onLoad(options) {
try {
if (!options?.refresh) {
console.log('refresh')
this.reLocationFunc()
this.mescroll.resetUpScroll()
}