浏览记录移除, 我的发布列表,修改回显及删除

This commit is contained in:
clay
2023-01-18 17:02:16 +08:00
parent 4b10b9486d
commit 7d0b6274f1
6 changed files with 152 additions and 84 deletions

View File

@@ -44,8 +44,8 @@
<text v-else style="color:#CCCCCC;">请选择产品类型</text>
<u-icon name="arrow-right" color="#969696" size="14"></u-icon>
</view>
<u-picker :show="showProductPicker" :columns="productPickerColumn" @cancel="showProductPicker = false"
@confirm="getProductValue"></u-picker>
<u-picker :show="showProductPicker" :columns="productPickerColumn"
@cancel="showProductPicker = false" @confirm="getProductValue"></u-picker>
</u-form-item>
<u-form-item label="定位" borderBottom>
<view class="select-view" @tap="selectProductPosition">
@@ -149,14 +149,17 @@
fileList1: [],
isLoad: true,
cateName: null,
tagName: null
tagName: null,
}
},
onLoad(options) {
console.log(options)
if (options.index == 1) {
//我的发布点击修改回显数据
let publishFormList = JSON.parse(options.item)
this.fileList1 = publishFormList.images
this.needsPublishForm = publishFormList
if (options.index == 0) {
this.tabCurrent = 0
} else if (options.index == 2) {
} else if (options.index == 1) {
this.tabCurrent = 1
}
if (!uni.getStorageSync('token') || uni.getStorageSync('token').length === 0) {
@@ -194,7 +197,7 @@
}).finally(_ => {})
},
getPositionPickerList() {
if(this.needsPublishForm.cate_id) {
if (this.needsPublishForm.cate_id) {
const data = {
pid: this.needsPublishForm.cate_id
}

View File

@@ -76,12 +76,42 @@
}
},
onLoad() {
// this.login()
this.getCategories()
this.getBanner()
this.getImgUrl()
this.imgUrl = uni.getStorageSync('img_url')
},
methods: {
// login() {
// var that = this
// uni.login({
// "provider": "weixin",
// "onlyAuthorize": true, // 微信登录仅请求授权认证
// success: function(event) {
// const {
// code
// } = event
// that.$apiServe.login({
// code: code
// }).then(res => {
// var data = res.data.data
// console.log('登录code换取的信息', data);
// // uni.setStorageSync('token', data.token);
// // that.$toast.success('登录成功')
// // that.$emit('success')
// //登录完成后使用手机code换取手机号,调用/user/getMobileByMnp接口
// //接口详细链接 https://docs.apipost.cn/preview/468be606f65cae75/3f2f988ddf82dd8e
// // const codeData = {
// // code: e.detail.code
// // }
// // apiService.postMobileByMnp(codeData).then(res => {
// // console.log(res)
// // })
// })
// },
// })
// },
//获取按上架时间排列的产品列表length
getTimeLength(e) {
this.reachBottomLength = e

View File

@@ -5,8 +5,8 @@
</view>
<view style="padding-left: 30rpx;padding-right: 30rpx;display: flex;">
<u-button type="info" :plain="true" size="nomal" @click="$emit('fail')">取消</u-button>
<u-button open-type="getPhoneNumber" size="nomal" @getphonenumber="getphonenumber"
color='#12CA64'>登录</u-button>
<u-button open-type="getPhoneNumber" size="nomal" @getphonenumber="getphonenumber" color='#12CA64'>登录
</u-button>
</view>
</view>
</template>
@@ -101,13 +101,14 @@
/deep/.u-button {
width: 40% !important;
}
.login-content {
width: 100%;
position:absolute;
top:50%;
position: absolute;
top: 50%;
left: 50%;
padding: 50rpx 30rpx;
padding: 50rpx 30rpx;
background-color: #fff;
transform:translate(-50%,-50%);
transform: translate(-50%, -50%);
}
</style>