Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
W
weiit-saas-mall-miniapp-dms-init
Overview
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
张伟豪
weiit-saas-mall-miniapp-dms-init
Commits
9b99027a
Commit
9b99027a
authored
Dec 09, 2025
by
MYzhangweihao
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
ad
parent
4ed0db44
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
7 changed files
with
135 additions
and
43 deletions
+135
-43
components/file-footerlogo.vue
+0
-1
components/shop-decorater/com/uni-notice-bar.vue
+0
-0
config/index.js
+4
-2
mixin/UploadMixin.js
+5
-5
mixin/shareAppMessageMixin.js
+3
-3
subPackages/login/wxlogin.vue
+72
-10
subPackages/orders/detail.vue
+51
-22
No files found.
components/file-footerlogo.vue
View file @
9b99027a
...
@@ -2,7 +2,6 @@
...
@@ -2,7 +2,6 @@
<view
class=
"tikcos_logo_box"
>
<view
class=
"tikcos_logo_box"
>
<view
class=
"d-flex just-content-center align-items-center"
>
<view
class=
"d-flex just-content-center align-items-center"
>
<view
class=
"tikcos_name"
>
Weiit提供技术支持
</view>
<view
class=
"tikcos_name"
>
Weiit提供技术支持
</view>
<!--
<view
class=
"tikcos_name"
>
sky企得力提供技术支持
</view>
-->
</view>
</view>
</view>
</view>
</
template
>
</
template
>
...
...
components/shop-decorater/com/uni-notice-bar.vue
View file @
9b99027a
This diff is collapsed.
Click to expand it.
config/index.js
View file @
9b99027a
...
@@ -11,16 +11,16 @@ const envConfigs = {
...
@@ -11,16 +11,16 @@ const envConfigs = {
imgUrl
:
"https://cdn.tikcos.cn/saas/mall/img/"
,
imgUrl
:
"https://cdn.tikcos.cn/saas/mall/img/"
,
},
},
};
};
const
appConfigs
=
{
const
appConfigs
=
{
wx727893371335676b
:
{
wx727893371335676b
:
{
appCode
:
"TC20"
,
appCode
:
"TC20"
,
tenantId
:
'weiit6402646395122f993b96db77e42b0e3a29ea1e3e527d1'
,
tenantId
:
'weiit6402646395122f993b96db77e42b0e3a29ea1e3e527d1'
,
shopId
:
"0000"
,
shopId
:
"0000"
,
appId
:
"wx727893371335676b"
,
appId
:
"wx727893371335676b"
,
appName
:
"51
春水
阁"
,
appName
:
"51
悦享
阁"
,
baseUrl
:
"https://api.wei-it.com"
,
baseUrl
:
"https://api.wei-it.com"
,
contactInfo
:
{
contactInfo
:
{
//QYKF企业客服,WXKF微信客服
contactType
:
'WXKF'
,
contactType
:
'WXKF'
,
contactExtUrl
:
'https://work.weixin.qq.com/kfid/kfc3fdcb835c0f701bc'
,
contactExtUrl
:
'https://work.weixin.qq.com/kfid/kfc3fdcb835c0f701bc'
,
contactCorpId
:
'ww6aaa281b3cd5de13'
contactCorpId
:
'ww6aaa281b3cd5de13'
...
@@ -291,4 +291,5 @@ const appConfigs = {
...
@@ -291,4 +291,5 @@ const appConfigs = {
},
},
};
};
let
config
=
Object
.
assign
({},
envConfigs
[
env
],
appConfigs
[
appId
]);
let
config
=
Object
.
assign
({},
envConfigs
[
env
],
appConfigs
[
appId
]);
console
.
log
(
config
)
export
default
config
;
export
default
config
;
\ No newline at end of file
mixin/UploadMixin.js
View file @
9b99027a
...
@@ -24,11 +24,11 @@ const uploadMixin = {
...
@@ -24,11 +24,11 @@ const uploadMixin = {
uploadObj
[
i
]
=
message
;
uploadObj
[
i
]
=
message
;
if
(
!
success
)
{
if
(
!
success
)
{
uploadObj
[
i
]
=
''
;
uploadObj
[
i
]
=
''
;
uni
.
showToast
({
//
uni.showToast({
title
:
`[
${
i
+
1
}
]上传失败,请重新上传!`
,
//
title: `[${i+1}]上传失败,请重新上传!`,
icon
:
'none'
,
//
icon: 'none',
duration
:
2000
//
duration: 2000
});
//
});
}
}
if
(
uploadNum
==
0
)
{
if
(
uploadNum
==
0
)
{
const
arr
=
Array
.
from
(
uploadObj
);
const
arr
=
Array
.
from
(
uploadObj
);
...
...
mixin/shareAppMessageMixin.js
View file @
9b99027a
...
@@ -21,8 +21,6 @@ const shareMixin = {
...
@@ -21,8 +21,6 @@ const shareMixin = {
?
this
.
shareTitle
?
this
.
shareTitle
:
`欢迎进入
${
this
.
$config
.
appName
}
`
;
:
`欢迎进入
${
this
.
$config
.
appName
}
`
;
if
(
typeof
this
.
onShare
==
"function"
)
this
.
onShare
();
if
(
typeof
this
.
onShare
==
"function"
)
this
.
onShare
();
;
console
.
log
(
pathUrl
)
return
{
return
{
title
:
title
,
// 转发后 所显示的title
title
:
title
,
// 转发后 所显示的title
path
:
pathUrl
,
// 相对的路径
path
:
pathUrl
,
// 相对的路径
...
@@ -31,7 +29,7 @@ const shareMixin = {
...
@@ -31,7 +29,7 @@ const shareMixin = {
},
},
methods
:
{
methods
:
{
...
mapActions
([
"getSceneInfo"
]),
...
mapActions
([
"getSceneInfo"
]),
...
mapMutations
([
"SET_SALES_MANNID"
]),
...
mapMutations
([
"SET_SALES_MANNID"
,
"SET_PARENTID"
]),
async
getQuery
(
callback
)
{
async
getQuery
(
callback
)
{
console
.
log
(
this
.
$mp
)
console
.
log
(
this
.
$mp
)
let
query
=
{};
let
query
=
{};
...
@@ -47,8 +45,10 @@ const shareMixin = {
...
@@ -47,8 +45,10 @@ const shareMixin = {
console
.
log
(
query
,
'query'
)
console
.
log
(
query
,
'query'
)
let
{
salesManId
}
=
query
;
let
{
salesManId
}
=
query
;
if
(
!!
salesManId
)
{
if
(
!!
salesManId
)
{
this
.
SET_PARENTID
(
salesManId
)
this
.
SET_SALES_MANNID
(
salesManId
);
this
.
SET_SALES_MANNID
(
salesManId
);
this
.
clickDMSUrl
(
salesManId
);
this
.
clickDMSUrl
(
salesManId
);
}
}
}
}
...
...
subPackages/login/wxlogin.vue
View file @
9b99027a
<
template
>
<
template
>
<view
class=
"container"
:style=
"globelColor.primaryColor"
>
<view
class=
"container"
:style=
"globelColor.primaryColor"
>
<!-- Mini-program info display -->
<view
class=
"mini-program-info"
>
<view
class=
"logo-box"
>
<image
class=
"logo"
:src=
"miniProgramLogo"
></image>
</view>
<view
class=
"app-name"
>
{{
miniProgramName
}}
</view>
</view>
<!--
<view
class=
"title"
>
基本信息
</view>
-->
<!--
<view
class=
"title"
>
基本信息
</view>
-->
<view
class=
"info-box"
>
<view
class=
"info-box"
>
<view
class=
"info-name-box"
>
<view
class=
"info-name-box"
>
...
@@ -26,11 +34,6 @@
...
@@ -26,11 +34,6 @@
</view>
</view>
</view>
</view>
</view>
</view>
<view>
<button
class=
"save"
lang=
"zh_CN"
open-type=
"getPhoneNumber"
@
getphonenumber=
"handlergetPhoneNumber"
>
手机号授权并登陆
</button>
</view>
<view
class=
"infor"
>
<view
class=
"infor"
>
<checkbox-group
@
change=
"changeChecked"
>
<checkbox-group
@
change=
"changeChecked"
>
<checkbox
:checked=
"checked"
value=
"1"
style=
"transform:scale(0.7)"
/>
<checkbox
:checked=
"checked"
value=
"1"
style=
"transform:scale(0.7)"
/>
...
@@ -42,6 +45,13 @@
...
@@ -42,6 +45,13 @@
<a
href=
"javascript:;"
@
click=
"goStoreAgreement('YFFW')"
>
《会员协议》
</a>
<a
href=
"javascript:;"
@
click=
"goStoreAgreement('YFFW')"
>
《会员协议》
</a>
<a
href=
"javascript:;"
@
click=
"goStoreAgreement('YSXY')"
>
《隐私协议》
</a>
<a
href=
"javascript:;"
@
click=
"goStoreAgreement('YSXY')"
>
《隐私协议》
</a>
</view>
</view>
<view>
<button
class=
"save"
lang=
"zh_CN"
open-type=
"getPhoneNumber"
@
click=
"handleClick"
@
getphonenumber=
"handlergetPhoneNumber"
>
手机号授权并登陆
</button>
</view>
</view>
</view>
</
template
>
</
template
>
<
script
>
<
script
>
...
@@ -59,6 +69,8 @@
...
@@ -59,6 +69,8 @@
import
{
import
{
uploadMixin
uploadMixin
}
from
'@/mixin/UploadMixin.js'
}
from
'@/mixin/UploadMixin.js'
import
config
from
'@/config/index.js'
export
default
{
export
default
{
mixins
:
[
uploadMixin
],
mixins
:
[
uploadMixin
],
data
()
{
data
()
{
...
@@ -80,6 +92,13 @@
...
@@ -80,6 +92,13 @@
computed
:
{
computed
:
{
...
mapGetters
([
"isLogin"
,
"memberId"
]),
...
mapGetters
([
"isLogin"
,
"memberId"
]),
...
mapState
([
"userinfo"
,
"member"
,
"globelColor"
,
"salesManId"
]),
...
mapState
([
"userinfo"
,
"member"
,
"globelColor"
,
"salesManId"
]),
miniProgramName
()
{
return
__wxConfig
.
accountInfo
.
nickname
;
},
miniProgramLogo
()
{
// Using a default logo image, can be replaced with actual logo path
return
__wxConfig
.
accountInfo
.
icon
;
}
},
},
methods
:
{
methods
:
{
...
mapMutations
([
"SET_MEMBER"
,
"SET_USER_INFO"
,
"SET_PHONE_NUMBER"
,
]),
...
mapMutations
([
"SET_MEMBER"
,
"SET_USER_INFO"
,
"SET_PHONE_NUMBER"
,
]),
...
@@ -89,13 +108,23 @@
...
@@ -89,13 +108,23 @@
"getSessionKeyByCode"
,
"getSessionKeyByCode"
,
"getWxLogin"
"getWxLogin"
]),
]),
handleClick
()
{
if
(
!
this
.
checkedList
.
includes
(
'1'
))
{
return
uni
.
showToast
({
title
:
'请勾选并阅读隐私协议!'
,
duration
:
2000
,
icon
:
'none'
})
}
},
async
clickDMSUrl
(
salesManId
)
{
async
clickDMSUrl
(
salesManId
)
{
// if (!this.memberId) return;
// if (!this.memberId) return;
let
data
=
{
let
data
=
{
salesManId
:
salesManId
,
salesManId
:
salesManId
,
userId
:
this
.
memberId
,
userId
:
this
.
memberId
,
};
};
console
.
log
(
data
,
'data'
)
let
{
let
{
success
,
success
,
result
result
...
@@ -105,7 +134,7 @@
...
@@ -105,7 +134,7 @@
this
.
checkedList
=
e
.
detail
.
value
;
this
.
checkedList
=
e
.
detail
.
value
;
},
},
goStoreAgreement
(
sence
)
{
goStoreAgreement
(
sence
)
{
console
.
log
(
sence
,
'sence'
)
uni
.
navigateTo
({
uni
.
navigateTo
({
url
:
`/subPackages/StoreAgreement/StoreAgreement?sence=
${
sence
}
`
url
:
`/subPackages/StoreAgreement/StoreAgreement?sence=
${
sence
}
`
});
});
...
@@ -223,7 +252,7 @@
...
@@ -223,7 +252,7 @@
<
style
lang=
"scss"
scoped
>
<
style
lang=
"scss"
scoped
>
.container
{
.container
{
background
:
#f
1f1f1
;
background
:
#f
ff
;
.title
{
.title
{
height
:
79
rpx
;
height
:
79
rpx
;
...
@@ -237,9 +266,9 @@
...
@@ -237,9 +266,9 @@
justify-content
:
center
;
justify-content
:
center
;
font-size
:
28
rpx
;
font-size
:
28
rpx
;
color
:
#999
;
color
:
#999
;
display
:
flex
;
margin-top
:
20
rpx
;
align-items
:
center
;
align-items
:
center
;
display
:
inline-flex
;
margin
:
28
rpx
0
28
rpx
28
rpx
;
}
}
.infor
a
{
.infor
a
{
...
@@ -296,6 +325,7 @@
...
@@ -296,6 +325,7 @@
.label
{
.label
{
width
:
100
rpx
;
width
:
100
rpx
;
color
:
#000
;
color
:
#000
;
font-size
:
28
rpx
;
text-align
:
center
;
text-align
:
center
;
margin-right
:
100
rpx
;
margin-right
:
100
rpx
;
}
}
...
@@ -337,5 +367,37 @@
...
@@ -337,5 +367,37 @@
border-radius
:
10
rpx
;
border-radius
:
10
rpx
;
background-color
:
var
(
--primaryColor
);
background-color
:
var
(
--primaryColor
);
}
}
/* Mini-program info styles */
.mini-program-info
{
display
:
flex
;
flex-direction
:
column
;
align-items
:
center
;
padding
:
30
rpx
0
;
margin-bottom
:
20
rpx
;
.logo-box
{
width
:
130
rpx
;
height
:
130
rpx
;
border-radius
:
50%
;
border
:
1
rpx
solid
#eee
;
display
:
flex
;
align-items
:
center
;
justify-content
:
center
;
margin-bottom
:
40
rpx
;
.logo
{
width
:
120
rpx
;
height
:
120
rpx
;
border-radius
:
50%
;
}
}
.app-name
{
font-size
:
36
rpx
;
color
:
#333
;
font-weight
:
500
;
}
}
}
}
</
style
>
</
style
>
subPackages/orders/detail.vue
View file @
9b99027a
...
@@ -184,7 +184,7 @@
...
@@ -184,7 +184,7 @@
查看物流
查看物流
</button>
</button>
<button
plain
v-if=
"['待收货', '拼团成功,待收货'].includes(orderState(order))"
<button
plain
v-if=
"['待收货', '拼团成功,待收货'].includes(orderState(order))"
@
tap=
"
c
onfirm(order.orderNum) && order.deliveryNum"
>
@
tap=
"
handleC
onfirm(order.orderNum) && order.deliveryNum"
>
确认收货
确认收货
</button>
</button>
<button
type=
"primary"
@
tap=
"review(order.orderNum)"
v-if=
"['待评价'].includes(orderState(order))"
>
<button
type=
"primary"
@
tap=
"review(order.orderNum)"
v-if=
"['待评价'].includes(orderState(order))"
>
...
@@ -525,28 +525,57 @@
...
@@ -525,28 +525,57 @@
},
},
})
})
},
},
confirm
(
orderNum
)
{
// confirm(orderNum) {
let
self
=
this
;
// let self = this;
uni
.
showModal
({
// uni.showModal({
title
:
"提示"
,
// title: "提示",
content
:
"确定确认收货么?"
,
// content: "确定确认收货么?",
success
:
async
({
// success: async ({
confirm
// confirm
})
=>
{
// }) => {
if
(
confirm
)
{
// if (confirm) {
let
param
=
{
// let param = {
merchant_id
:
self
.
order
.
merchantId
,
// merchant_id: self.order.merchantId,
merchant_trade_no
:
self
.
order
.
merchantTradeNo
,
// merchant_trade_no: self.order.merchantTradeNo,
transaction_id
:
self
.
order
.
transactionId
// transaction_id: self.order.transactionId
}
// }
self
.
$util
.
openBusinessView
(
param
,
()
=>
{
// self.$util.openBusinessView(param, () => {
self
.
orderConfirm
(
orderNum
)
// self.orderConfirm(orderNum)
})
// })
// }
// },
// });
// },
handleConfirm
(
orderNum
)
{
let
self
=
this
;
uni
.
showModal
({
title
:
"提示"
,
content
:
"确定确认收货么?"
,
success
:
async
({
confirm
})
=>
{
if
(
confirm
)
{
if
(
self
.
order
.
merchantId
&&
self
.
order
.
merchantTradeNo
&&
self
.
order
.
transactionId
)
{
let
param
=
{
merchant_id
:
self
.
order
.
merchantId
,
merchant_trade_no
:
self
.
order
.
merchantTradeNo
,
transaction_id
:
self
.
order
.
transactionId
}
self
.
$util
.
openBusinessView
(
param
,
()
=>
{
self
.
orderConfirm
(
orderNum
)
})
}
else
{
self
.
orderConfirm
(
orderNum
)
}
}
},
});
},
}
},
});
},
orderConfirm
(
orderNum
)
{
orderConfirm
(
orderNum
)
{
let
self
=
this
;
let
self
=
this
;
let
data
=
{
let
data
=
{
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment