优化升级弹窗,以及委托订单,文章详情页面优化

This commit is contained in:
jia 2023-09-11 14:09:38 +08:00
parent 59af0d169d
commit b775d4cf78
4 changed files with 45 additions and 39 deletions

View File

@ -44,7 +44,7 @@
<view class="center-twoa">
委托方:
</view>
<view class="center-twob" >
<view class="center-twob">
{{objinfo.mer_info.mer_name}}
</view>
</view>
@ -52,7 +52,7 @@
<view class="center-twoa">
被委托方:
</view>
<view class="center-twob" >
<view class="center-twob">
{{objinfo.entrust_mer_info.mer_name}}
</view>
</view>
@ -114,7 +114,7 @@
</view>
<view class="content_bootm_one" v-for="(item,i) in objinfo.product_list">
<view class="content_bootm_one" v-for="(item,i) in objinfo.product_list" @click="Merchbaby(item)">
<view class="bootm_oneimg">
<image :src="item.image[0]" mode="aspectFit"></image>
</view>
@ -163,14 +163,22 @@
},
methods: {
//
list(id) {
entrustdetail(id).then((res) => {
console.log(res.data)
this.objinfo = res.data
})
},
//
Merchbaby(item) {
uni.navigateTo({
url: `/pages/goods_details/index?id=${item.product_id}`
})
},
//
submit(item) {
addEntrustCart({
community_id: item.community_id

View File

@ -157,16 +157,7 @@
}
},
onShow() {
uni.startLocationUpdate({
success: res => {
console.log('开启接收位置消息成功')
},
fail: err => {
this.selfLocation()
},
complete: msg => console.log('调用开启接收位置消息 API 完成')
});
//
uni.onNetworkStatusChange((res) => {

View File

@ -1,8 +1,10 @@
<template>
<view :style="viewColor">
<!-- #ifdef H5 -->
<view class="head-menu">
<view class='iconfont icon-xiangzuo' @click="returns"></view>
</view>
<!-- #endif -->
<view v-if="followDetail != null && followDetail" class="main" @click.stop="showManage = false">
<view v-if="followDetail.status != 1" class="approval_status">
<view class="status_count" :class="followDetail.status == 0 ? 'status1' : 'status0'">

View File

@ -117,12 +117,16 @@ const actions = {
} else {
apptype = 1
}
console.log(apptype, '11111')
Appversion({
version: os.appWgtVersion,
type: apptype
}).then((res) => {
if (data) uni.showLoading({
if (Object.keys(res.data.appInfo).length > 0) {
uni.showLoading({
title: '检查更新中'
})
@ -144,11 +148,12 @@ const actions = {
} catch (e) {
console.log(e);
}
if (data) uni.hideLoading();
uni.hideLoading();
}
}
}).catch((err) => {
console.log(err)
// console.log(err)
})