version/0412
fanfan 9 months ago
commit f79bcec8e1
  1. 2
      pages/goods/list.vue
  2. 5
      pages/index/index.vue
  3. 15
      pages/news1/setting.vue
  4. 8
      pages/serve/install.vue
  5. 11
      pages/user/index.vue

@ -17,7 +17,7 @@
</view> </view>
</scroll-view> </scroll-view>
</view> </view>
<view class="goodsType"> <view class="goodsType" v-if="goodsType && goodsType.length > 0">
<scroll-view class="typeList" scroll-x="true"> <scroll-view class="typeList" scroll-x="true">
<view v-for="(item,index) in goodsType" :key="index" class="typeItem" @click="onChage(item,2)" <view v-for="(item,index) in goodsType" :key="index" class="typeItem" @click="onChage(item,2)"
:style="{'color':isActive==item.category_id?'#F43B21':'#5A5A5A','background':isActive==item.category_id?'#FEF6F6':'#F7F8FA','border':isActive==item.category_id?'2rpx solid #F22029':'none'}"> :style="{'color':isActive==item.category_id?'#F43B21':'#5A5A5A','background':isActive==item.category_id?'#FEF6F6':'#F7F8FA','border':isActive==item.category_id?'2rpx solid #F22029':'none'}">

@ -683,7 +683,6 @@
}) })
return; return;
} }
} else if (type == 2) {
uni.navigateTo({ uni.navigateTo({
url url
}) })
@ -691,11 +690,7 @@
uni.navigateTo({ uni.navigateTo({
url url
}) })
return;
} }
uni.navigateTo({
url
})
}, },
changeGoodsType(index) { changeGoodsType(index) {
this.tabCurrent = index; this.tabCurrent = index;

@ -1,5 +1,6 @@
<template> <template>
<view class="setting"> <view class="setting">
<form @submit="sureSubmit">
<view class="box"> <view class="box">
<view class="box-avter" style="padding-bottom: 24rpx;"> <view class="box-avter" style="padding-bottom: 24rpx;">
<view class="name-text"> <view class="name-text">
@ -17,7 +18,7 @@
<view class="name-text"> <view class="name-text">
昵称 昵称
</view> </view>
<input type="text" v-model="info.nick_name" placeholder="请输入用户昵称"> <input type="nickname" :value="info.nick_name" name='nick_name' placeholder="请输入用户昵称">
</view> </view>
<view class="box-avter conten-height"> <view class="box-avter conten-height">
<view class="name-text"> <view class="name-text">
@ -72,9 +73,10 @@
</view> </view>
</view> </view>
<view class="bottomBtn"> <view class="bottomBtn">
<button class="submitBtn" @click="sureSubmit">确认修改</button> <!-- @click="sureSubmit" -->
<button class="submitBtn" formType="submit">确认修改</button>
</view> </view>
</form>
</view> </view>
</template> </template>
@ -105,6 +107,9 @@ export default {
this.genderIndex = this.info.gender == '男' ? 0 : 1 this.genderIndex = this.info.gender == '男' ? 0 : 1
}, },
methods: { methods: {
formSubmit(e) {
console.log(e)
},
chooseavatar(e){ chooseavatar(e){
console.log(e) console.log(e)
let tempFiles = e.detail.avatarUrl; let tempFiles = e.detail.avatarUrl;
@ -116,7 +121,9 @@ export default {
]) ])
this.uploadFile() this.uploadFile()
}, },
sureSubmit() { sureSubmit(e) {
console.log(e)
this.info.nick_name = e.detail.value.nick_name
let params = { let params = {
nick_name: this.info.nick_name, nick_name: this.info.nick_name,
avatar_id: this.avatar_id[0], avatar_id: this.avatar_id[0],

@ -23,8 +23,8 @@
识别二维码 识别二维码
</view> </view>
<view class="txm"> <view class="txm">
<image :src="qrcode" <image :src="qrcode" :show-menu-by-longpress="true"
@click="clickImg" mode="" class="codeImg"></image> mode="" class="codeImg"></image>
</view> </view>
</view> </view>
</view> </view>
@ -58,6 +58,10 @@
}) })
// this.showQRCodePopup = true // this.showQRCodePopup = true
// this.qrcode = createQrCodeImg(url, { 'size': 500 }); // this.qrcode = createQrCodeImg(url, { 'size': 500 });
// uni.previewImage({
// current:: this.qrcode
// urls: [this.qrcode]
// })
}, },
/** /**
* 获取列表 * 获取列表

@ -7,13 +7,14 @@
<view class="box_1"> <view class="box_1">
<image :src="$picUrl+'/static/default-logo.png'" v-if="!isLogin || !userInfo.avatar_url" class="image_2" <image :src="$picUrl+'/static/default-logo.png'" v-if="!isLogin || !userInfo.avatar_url" class="image_2"
@click="goLogin()"></image> @click="goLogin()"></image>
<image :src="userInfo.avatar_url" v-else class="image_2"></image> <image :src="userInfo.avatar_url" @click="goJump('/pages/news1/setting')" v-else class="image_2"></image>
<view class="group_1"> <view class="group_1">
<view class="image-text_1" v-if="!isLogin" @click="goLogin()"> <view class="image-text_1" v-if="!isLogin" @click="goLogin()">
未登录 未登录
</view> </view>
<button class="avatar-wrapper" v-else type="primary" open-type="chooseAvatar" <!-- open-type="chooseAvatar"
@chooseavatar="onChooseAvatar"> @chooseavatar="onChooseAvatar" -->
<button class="avatar-wrapper" v-else type="primary" @click="goJump('/pages/news1/setting')">
<text lines="1" class="text-group_1">{{userInfo.nick_name}}</text> <text lines="1" class="text-group_1">{{userInfo.nick_name}}</text>
<image :src="$picUrl+'/static/user/weChat.png'" class="thumbnail_1"></image> <image :src="$picUrl+'/static/user/weChat.png'" class="thumbnail_1"></image>
</button> </button>
@ -554,8 +555,8 @@
<text v-if="lookMemberType == 3">我的专属分销识别码</text> <text v-if="lookMemberType == 3">我的专属分销识别码</text>
</view> </view>
<view class="codeImg"> <view class="codeImg">
<image v-if="lookMemberType == 2" :src="qrcode" class="img"></image> <image v-if="lookMemberType == 2" :show-menu-by-longpress="true" :src="qrcode" class="img"></image>
<image v-if="lookMemberType == 3" :src="qrcode" class="img"></image> <image v-if="lookMemberType == 3" :show-menu-by-longpress="true" :src="qrcode" class="img"></image>
</view> </view>
<view class="codeName"> <view class="codeName">
{{userInfo.user_id}} {{userInfo.user_id}}

Loading…
Cancel
Save