fanfan 8 months ago
commit 7d4fee32bb
  1. 1
      pages/goods/detail.vue
  2. 4
      pages/login/index.vue
  3. 31
      pages/news1/setting.vue
  4. 24
      pages/order/detail.vue
  5. 2
      pages/order/index.vue
  6. 2
      pages/user/index.vue

@ -758,6 +758,7 @@
} }
info.content = info.content info.content = info.content
.replace(/style=""/g, '') .replace(/style=""/g, '')
.replace(/<img " src=/g, '<img src=')
.replace(/<img src=/g, '<img style="width: 100%; display:block" src=') .replace(/<img src=/g, '<img style="width: 100%; display:block" src=')
// that.goods = info; // that.goods = info;
Object.keys(info).forEach(item => { Object.keys(info).forEach(item => {

@ -114,9 +114,7 @@ export default {
that.showCountDown = !that.showCountDown; that.showCountDown = !that.showCountDown;
CaptchaApi.sendSmsCaptcha({ CaptchaApi.sendSmsCaptcha({
form: { mobile: that.phoneNum
mobile: that.phoneNum,
},
}).then((res) => { }).then((res) => {
if (res.status == 200) { if (res.status == 200) {
that.countDownFun = setInterval(() => { that.countDownFun = setInterval(() => {

@ -65,13 +65,20 @@
<u-icon style="margin-left: 5rpx; color: #8A8A8A" name="arrow-right"></u-icon> <u-icon style="margin-left: 5rpx; color: #8A8A8A" name="arrow-right"></u-icon>
</view> </view>
</view> </view>
<view class="box" style="padding: 0 40rpx;margin-bottom: 140rpx;" @click="onOut"> <view class="box" style="padding: 0 40rpx;" @click="onOut">
<view class="box-avter conten-height" style="border: none;"> <view class="box-avter conten-height" style="border: none;">
<view class="name-text"> <view class="name-text">
注销账号 注销账号
</view> </view>
</view> </view>
</view> </view>
<view class="box" style="padding: 0 40rpx;margin-bottom: 140rpx;" @click="onOut1">
<view class="box-avter conten-height" style="border: none;">
<view class="name-text">
退出登录
</view>
</view>
</view>
<view class="bottomBtn"> <view class="bottomBtn">
<!-- @click="sureSubmit" --> <!-- @click="sureSubmit" -->
<button class="submitBtn" formType="submit">确认修改</button> <button class="submitBtn" formType="submit">确认修改</button>
@ -188,6 +195,28 @@ export default {
} }
}) })
}, },
onOut1() {
uni.showModal({
title: '您是否要退出登录?',
content: '',
success(o) {
if (o.confirm) {
uni.showToast({
title: '退出成功',
icon: 'none',
duration: 2000
})
uni.clearStorage()
uni.clearStorageSync()
setTimeout(function () {
uni.navigateBack({
delta: 1
})
}, 2000);
}
}
});
},
onOut() { onOut() {
uni.showModal({ uni.showModal({
title: '您是否要注销账号?', title: '您是否要注销账号?',

@ -321,7 +321,7 @@
@click="handleTargetComment(order.order_id)"> @click="handleTargetComment(order.order_id)">
评价 评价
</view> --> </view> -->
<view class="buyAgain" @click="onCopyOrderInfo(order)" <view class="buyAgain" v-if="userInfo.user_type == 40" @click="onCopyOrderInfo(order.copy_text)"
style="width: 200rpx;color:#fff;background: linear-gradient( 180deg, #FD5D06 0%, #F3211A 100%);" style="width: 200rpx;color:#fff;background: linear-gradient( 180deg, #FD5D06 0%, #F3211A 100%);"
> >
复制订单详情 复制订单详情
@ -408,7 +408,8 @@
canReset: false, canReset: false,
cdDia: false, cdDia: false,
menushow: false, menushow: false,
Store:'' Store:'',
userInfo: {}
} }
}, },
/** /**
@ -422,6 +423,7 @@
// //
this.getOrderDetail() this.getOrderDetail()
this.Store=uni.getStorageSync('Store') this.Store=uni.getStorageSync('Store')
this.userInfo = uni.getStorageSync("userInfo")
// : // :
uni.$on('syncRefresh', (val, isCur) => { uni.$on('syncRefresh', (val, isCur) => {
if (!isCur) { if (!isCur) {
@ -472,16 +474,16 @@
8.收件人电话: 8.收件人电话:
9.收件人地址: 9.收件人地址:
*/ */
let goods_no = ""; // let goods_no = "";
if(obj.goods && obj.goods.length > 0){ // if(obj.goods && obj.goods.length > 0){
obj.goods.map(a=>{ // obj.goods.map(a=>{
goods_no+=`商品型号: ${(a.goods_sku_id !=0?a.goods_sku_id:'无')};商品编码: ${a.goods_no?a.goods_no:'无编码'};商品单价: ¥${a.goods_price}元;商品数量: ${a.total_num};商品总价: ¥${a.total_price}` // goods_no+=`: ${(a.goods_sku_id !=0?a.goods_sku_id:'')};: ${a.goods_no?a.goods_no:''};: ${a.goods_price};: ${a.total_num};: ${a.total_price}`
}) // })
} // }
const str =`订单编号:${obj.order_no};${goods_no};收件人名字:${obj.address.name};收件人电话:${obj.address.phone};收件人地址:${obj.address.region.province+obj.address.region.city+obj.address.region.region+obj.address.detail};` // const str =`${obj.order_no};${goods_no};${obj.address.name};${obj.address.phone};${obj.address.region.province+obj.address.region.city+obj.address.region.region+obj.address.detail};`
console.log(str) // console.log(str)
uni.setClipboardData({ uni.setClipboardData({
data: str, data: obj,
success() { success() {
uni.getClipboardData({ uni.getClipboardData({
success() { success() {

@ -24,7 +24,7 @@
<view class="item" v-for="(item,index) in list" v-if="list.length>0"> <view class="item" v-for="(item,index) in list" v-if="list.length>0">
<view class="hd"> <view class="hd">
<view class="a"> <view class="a">
<image class="icon" :src="item.storeInfo.image_url"></image> <image class="icon" v-if="item.storeInfo && item.storeInfo.image_url" :src="item.storeInfo.image_url"></image>
{{item.storeInfo.store_name}} {{item.storeInfo.store_name}}
</view> </view>
<view class="b" <view class="b"

@ -492,7 +492,7 @@
数据统计 数据统计
</view> </view>
</view> </view>
<view class="serveIcon" @click="goManagementHandle('/pages/news/user/vip','会员管理')" <view class="serveIcon" @click="goManagementHandle('/pages/news/user/vip?type=1','会员管理')"
v-if="userInfo.user_type == 40"> v-if="userInfo.user_type == 40">
<image :src="$picUrl+'/static/user/hygl.png'" class="icons"></image> <image :src="$picUrl+'/static/user/hygl.png'" class="icons"></image>
<view class="serveInfo"> <view class="serveInfo">

Loading…
Cancel
Save