From d3d78f3518207457c723cfc5ff64deea013a5d16 Mon Sep 17 00:00:00 2001
From: pengda <1111@qq.com>
Date: Mon, 21 Jul 2025 17:52:18 +0800
Subject: [PATCH 1/5] =?UTF-8?q?switch=E4=BF=AE=E6=94=B9?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
---
src/components/paymentMethod.vue | 5 ++---
src/components/site/serviceSetting/showSet.vue | 15 ++++++---------
src/views/agent/siteAdd.vue | 2 +-
src/views/agent/siteServiceList.vue | 8 ++++----
4 files changed, 13 insertions(+), 17 deletions(-)
diff --git a/src/components/paymentMethod.vue b/src/components/paymentMethod.vue
index 579220e..8ac2009 100644
--- a/src/components/paymentMethod.vue
+++ b/src/components/paymentMethod.vue
@@ -14,7 +14,7 @@
-
+
@@ -46,8 +46,7 @@ export default {
},
},
methods:{
- onSwitchChange(data){
- data.status = data.status === 1 ? 0 : 1;
+ onSwitchChange(){
this.$emit('confirm', this.list)
},
onEnd() {
diff --git a/src/components/site/serviceSetting/showSet.vue b/src/components/site/serviceSetting/showSet.vue
index 4253d10..1bbc807 100644
--- a/src/components/site/serviceSetting/showSet.vue
+++ b/src/components/site/serviceSetting/showSet.vue
@@ -50,8 +50,8 @@
-
+
输入>0的数,越小排序越前;重复则新者优先;0则默认排序
取消
@@ -110,7 +110,7 @@
-
+
@@ -405,7 +405,6 @@ export default {
if(res) row.price_desc = getServicePriceDesc(row.price, row.price_unit, row.price_unit_num);
},
async onSwitchChange(row){
- console.log(row)
let obj = {}
obj.uid = this.uid
obj.type = row.type
@@ -420,8 +419,9 @@ export default {
obj.sort_id = row.sort_id
const res = await this.saveRequest('/agentnew/ajax_update_service_show', obj)
if(res) {
- row.sort_id = row.edit_sort_id;
this.sortServiceList()
+ }else{
+ this.getSiteServiceList()
}
},
sortServiceList() {
From 5821c36429a5cbb1946e2e4b283d60bab3554680 Mon Sep 17 00:00:00 2001
From: pengda <1111@qq.com>
Date: Mon, 21 Jul 2025 18:43:44 +0800
Subject: [PATCH 2/5] =?UTF-8?q?=E7=AB=99=E7=82=B9=E6=B7=BB=E5=8A=A0?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
---
src/components/site/addSiteStep/step1.vue | 5 +-
src/components/site/addSiteStep/step2.vue | 24 +++++++-
src/components/site/addSiteStep/step3.vue | 91 +++++++++++++++++++++++++------
src/views/agent/siteAdd.vue | 2 +-
4 files changed, 101 insertions(+), 21 deletions(-)
diff --git a/src/components/site/addSiteStep/step1.vue b/src/components/site/addSiteStep/step1.vue
index cee02ec..41091bc 100644
--- a/src/components/site/addSiteStep/step1.vue
+++ b/src/components/site/addSiteStep/step1.vue
@@ -43,7 +43,7 @@
销售方向
-
+

@@ -118,6 +118,9 @@ export default {
domain: [
{ required: true, message: '请设置站点域名', trigger: 'blur' }
],
+ site_type: [
+ { required: true, message: '请选择站点类型', trigger: 'blur' }
+ ],
},
channel_options: [
diff --git a/src/components/site/addSiteStep/step2.vue b/src/components/site/addSiteStep/step2.vue
index f1baa7e..fd8b993 100644
--- a/src/components/site/addSiteStep/step2.vue
+++ b/src/components/site/addSiteStep/step2.vue
@@ -276,7 +276,7 @@
- 跳过
+ 去首页
下一步
@@ -332,7 +332,7 @@ export default {
bindWxpayId: 0,
selectWxpay: null,
- bindAlipayId: 10079,
+ bindAlipayId: null,
selectAlipay: null,
bindTaobaoId: 0,
selectTaobao: null,
@@ -365,6 +365,11 @@ export default {
return false;
}
+ if(this.siteInfo.sale_channel === '2'){
+ this.$emit('handelStep', 3)
+ return false;
+ }
+
this.getSitePayIndex()
this.getPayList()
this.getAddablePays()
@@ -536,9 +541,22 @@ export default {
this.getAddablePays()
},
jumpStep(){
- this.$emit('handelStep', 3)
+ this.$router.push('/')
},
nextStep() {
+ if(this.siteInfo.sale_channel === '0' && !this.bindTaobaoId && !this.bindJdId){
+ this.$Message.error('请绑定收款方式');
+ return false
+ }
+ if(this.siteInfo.sale_channel === '1' && !this.bindWxpayId && !this.bindAlipayId){
+ this.$Message.error('请绑定收款方式');
+ return false
+ }
+ if(this.siteInfo.sale_channel === '3' && !this.bindPddId){
+ this.$Message.error('请绑定收款方式');
+ return false
+ }
+
var data = {
uid: this.siteInfo.uid,
open_processs: 4,
diff --git a/src/components/site/addSiteStep/step3.vue b/src/components/site/addSiteStep/step3.vue
index c98df49..f74e292 100644
--- a/src/components/site/addSiteStep/step3.vue
+++ b/src/components/site/addSiteStep/step3.vue
@@ -62,7 +62,7 @@
placement="bottom" trigger="manual" :append-to-body="false" :visible-arrow="true"
popper-class="custom-popover" @show="popshow" >
-
+
输入>0的数,越小排序越前;重复则新者优先;0则默认排序
取消
@@ -102,16 +102,18 @@
-
+
-
- 编辑
- 删除
-
+
+
+ 编辑
+ 删除
+
+
@@ -125,14 +127,19 @@
+
+
+ 确定要移除服务吗?
+
-
@@ -179,6 +186,9 @@ export default {
dialogVisible: false, //是否展示弹框
dialogTitle: "", //弹框标题
editRow:{},
+ //删除二次确认
+ dialogDelConfim: false,
+ delRow:{},
// 服务列表url
serviceAddUrl: '/agent/siteAddFinally',
@@ -202,8 +212,25 @@ export default {
},
nextStep(){
//保存数据
+ var data = {
+ uid: this.siteInfo.uid,
+ }
- this.$emit('handelStep', 4)
+ this.$http('POST', '/agentnew/ajax_add_new_site_complete', data, {
+ headers: {
+ 'Auth': this.token
+ }
+ }).then(response => {
+ this.$nextTick(() => {
+ if (response.status) {
+ this.$emit('handelStep', 4)
+ return true;
+ }
+ this.$Message.error(response.info);
+ })
+ }).catch(error => {
+ console.error(error, 'error')
+ })
},
// 获取服务列表
getSiteServiceList() {
@@ -218,9 +245,11 @@ export default {
}
}).then(response => {
that.tableLoading = false
- that.$nextTick(() => {
- that.serviceList = response.data.service_list
- })
+ if(response.status && response.data.length>0){
+ that.$nextTick(() => {
+ that.serviceList = response.data.service_list
+ })
+ }
}).catch(error => {
console.error(error, 'error')
})
@@ -235,7 +264,38 @@ export default {
serviceAdd(prodid){
this.$router.push(this.serviceAddUrl + '?uid=' + this.siteInfo.uid + '&prodid=' + prodid)
},
-
+ //删除
+ handleDelClick(row, index) {
+ this.dialogDelConfim = true
+ this.delRow.index = index
+ this.delRow.type = row.type
+ },
+ handleDelCancel(){
+ this.dialogDelConfim = false
+ },
+ handleDelConfirm(){
+ const that = this
+ this.dialogDelConfim = false
+ this.$http('POST', '/agentnew/ajax_del_service', {
+ uid: that.siteInfo.uid,
+ type: that.delRow.type
+ },{
+ headers:{
+ 'Auth': this.token
+ }
+ }).then(response => {
+ if(response.status){
+ that.$message.success('删除成功');
+ this.$nextTick(() => {
+ that.serviceList.splice(that.delRow.index, 1);
+ })
+ return true;
+ }
+ that.$message.error(response.info);
+ }).catch(error => {
+ console.error(error, 'error')
+ })
+ },
// 点击价格单元格时触发
handleEditClick(row, index, type) {
// 关闭其他行的弹框
@@ -292,13 +352,11 @@ export default {
if(res) row.price_desc = getServicePriceDesc(row.price, row.price_unit, row.price_unit_num);
},
async onSwitchChange(row){
- console.log(row)
let obj = {}
obj.uid = this.siteInfo.uid
obj.type = row.type
obj.is_index_display = row.is_index_display
const res = await this.saveRequest('/agentnew/ajax_update_service_show', obj)
- console.log(res)
if(!res) row.is_index_display = row.is_index_display === "1" ? "0" : "1"
},
async saveSort(row){
@@ -308,8 +366,9 @@ export default {
obj.sort_id = row.sort_id
const res = await this.saveRequest('/agentnew/ajax_update_service_show', obj)
if(res) {
- row.sort_id = row.edit_sort_id;
this.sortServiceList()
+ }else{
+ this.getSiteServiceList()
}
},
sortServiceList() {
diff --git a/src/views/agent/siteAdd.vue b/src/views/agent/siteAdd.vue
index 86cc94c..518d98f 100644
--- a/src/views/agent/siteAdd.vue
+++ b/src/views/agent/siteAdd.vue
@@ -75,7 +75,7 @@ export default {
token: 'eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJpYXQiOjE3NTI2NDY1NDUsIm5iZiI6MTc1MjY0NjU0NSwiZXhwIjoxNzU1MjM4NTQ1LCJ1c2VyIjoic3VidXNlciIsImxvZ2luX3R5cGUiOjAsImFpZCI6IjEifQ.G-Is-x9qPMiV_urOlDPQVRjfAIozySxL5EK2k82d46k',
siteInfo:{},
showAlert:true,
- activeStep: '',//当前步骤条
+ activeStep: '1',//当前步骤条
process: '', //进度默认为站点开通
prodid: '',//要添加的服务类型
stepDesc: {
From e33e1424273b416263eddebe4f0054fc6daef9a0 Mon Sep 17 00:00:00 2001
From: pengda <1111@qq.com>
Date: Tue, 22 Jul 2025 09:58:52 +0800
Subject: [PATCH 3/5] =?UTF-8?q?=E6=B3=A8=E5=86=8C=E4=BC=98=E5=8C=96?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
---
src/components/site/addSiteStep/step1.vue | 11 ++++---
src/components/site/addSiteStep/step2.vue | 34 +++++++++-----------
src/components/site/addSiteStep/step3.vue | 53 ++++++++++++++++++++++++-------
3 files changed, 63 insertions(+), 35 deletions(-)
diff --git a/src/components/site/addSiteStep/step1.vue b/src/components/site/addSiteStep/step1.vue
index 41091bc..38c2396 100644
--- a/src/components/site/addSiteStep/step1.vue
+++ b/src/components/site/addSiteStep/step1.vue
@@ -240,13 +240,16 @@ export default {
}).then(response => {
if(response.status && response.data.uid){
that.formData.uid = response.data.uid
- this.$emit('handelSiteInfo', that.formData)
+ that.formData.domain_type = that.domainType
+ that.formData.domain_prefix = that.domainPrefix
+ that.formData.domain_name = that.domainName
+ that.$emit('handelSiteInfo', that.formData)
- if(this.formData.sale_channel === '2'){
+ if(that.formData.sale_channel === '2'){
//自用站点无需设置收款方式
- this.$emit('handelStep', 3)
+ that.$emit('handelStep', 3)
}else{
- this.$emit('handelStep', 2)
+ that.$emit('handelStep', 2)
}
return true;
}
diff --git a/src/components/site/addSiteStep/step2.vue b/src/components/site/addSiteStep/step2.vue
index fd8b993..3de312f 100644
--- a/src/components/site/addSiteStep/step2.vue
+++ b/src/components/site/addSiteStep/step2.vue
@@ -544,31 +544,27 @@ export default {
this.$router.push('/')
},
nextStep() {
- if(this.siteInfo.sale_channel === '0' && !this.bindTaobaoId && !this.bindJdId){
- this.$Message.error('请绑定收款方式');
- return false
+ var data = {
+ uid: this.siteInfo.uid,
+ open_processs: 4,
+ pay_config: {},
}
- if(this.siteInfo.sale_channel === '1' && !this.bindWxpayId && !this.bindAlipayId){
- this.$Message.error('请绑定收款方式');
- return false
+ if(this.siteInfo.sale_channel === '0'){
+ if(this.isJd && this.bindJdId) data.pay_config = { 4: this.bindJdId }
+ if(!this.isJd && this.bindTaobaoId) data.pay_config = { 0: this.bindTaobaoId }
}
- if(this.siteInfo.sale_channel === '3' && !this.bindPddId){
+ if(this.siteInfo.sale_channel === '1'){
+ if(this.bindWxpayId) data.pay_config = { 2: this.bindWxpayId }
+ if(this.bindAlipayId) data.pay_config = { 3: this.bindAlipayId }
+ }
+ if(this.siteInfo.sale_channel === '3'){
+ if(this.bindPddId) data.pay_config = { 11: this.bindPddId }
+ }
+ if(Object.keys(data.pay_config).length === 0) {
this.$Message.error('请绑定收款方式');
return false
}
- var data = {
- uid: this.siteInfo.uid,
- open_processs: 4,
- pay_config: {
- 0: this.bindTaobaoId,
- 2: this.bindWxpayId,
- 3: this.bindAlipayId,
- 4: this.bindJdId,
- 11: this.bindPddId,
- },
- }
-
this.$http('POST', '/agentnew/ajax_update_site_pay', data, {
headers: {
'Auth': this.token
diff --git a/src/components/site/addSiteStep/step3.vue b/src/components/site/addSiteStep/step3.vue
index f74e292..388cf24 100644
--- a/src/components/site/addSiteStep/step3.vue
+++ b/src/components/site/addSiteStep/step3.vue
@@ -12,13 +12,13 @@
-
-
+
+
-
{{ scope.row.type == 'a' ? '查重服务' : '写作辅助'
- }}
-
{{ scope.row.name }}
+
+
+
{{ scope.row.type_desc }}
@@ -55,7 +55,6 @@
-
-
+
-
+
编辑
删除
@@ -155,9 +154,15 @@ import {getServicePriceDesc} from "@/utils/common";
import PaymentMethod from "@/components/paymentMethod.vue";
import GuipDialog from "@/components/GuipDialog.vue";
import PromptText from "@/components/PromptText.vue";
+import page from "@/components/Page.vue";
export default {
name: 'domainSet',
+ computed: {
+ page() {
+ return page
+ }
+ },
props: {
siteInfo: {
type: Object,
@@ -176,7 +181,7 @@ export default {
serviceList:[],
tableLoading:false,
currentPage: 1, //当前页
- pageSize: 2, //每页的容量
+ pageSize: 8, //每页的容量
total: 0, //列表总数
//支付方式
payList: [],
@@ -192,6 +197,8 @@ export default {
// 服务列表url
serviceAddUrl: '/agent/siteAddFinally',
+ // 站点设置url
+ serviceEditUrl: '/agent/siteServiceEdit',
}
},
mounted() {
@@ -245,7 +252,7 @@ export default {
}
}).then(response => {
that.tableLoading = false
- if(response.status && response.data.length>0){
+ if(response.status && response.data.service_list.length>0){
that.$nextTick(() => {
that.serviceList = response.data.service_list
})
@@ -254,7 +261,6 @@ export default {
console.error(error, 'error')
})
},
-
handleSizeChange(val) {
this.pageSize = val
},
@@ -452,7 +458,6 @@ export default {
});
obj.info = obj.info.substr(1, obj.info.length-1);
- await this.saveRequest('/agentnew/ajax_payment_switch', obj, this.editRow)
const res = await this.saveRequest('/agentnew/ajax_payment_switch', obj, this.editRow)
if(res && hasClose) {
this.editRow.payment_method_desc = '自定义支付';
@@ -497,4 +502,28 @@ export default {
margin-left: 0 !important;
transform: none !important;
}
+.green,
+.blue {
+ width: 80px;
+ box-sizing: border-box;
+ display: flex;
+ flex-direction: row;
+ justify-content: center;
+ align-items: center;
+ color: #0DAF49 !important;
+ letter-spacing: 0.08em;
+ /* 基本 */
+ width: 80px;
+ border-radius: 4px;
+ background: rgba(239, 255, 224, 0.5);
+ box-sizing: border-box;
+ border: 1px solid rgba(0, 194, 97, 0.6);
+ margin-right: 8px;
+}
+
+.blue {
+ background: #F2F7FF;
+ border: 1px solid #BFDAFF;
+ color: #006AFF !important;
+}
\ No newline at end of file
From d974de2b3025d430fd9cd435844867f2341fa031 Mon Sep 17 00:00:00 2001
From: pengda <1111@qq.com>
Date: Tue, 22 Jul 2025 11:55:57 +0800
Subject: [PATCH 4/5] =?UTF-8?q?=E6=B3=A8=E5=86=8C=E4=BC=98=E5=8C=96?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
---
src/components/site/addSiteStep/step2.vue | 6 +++---
src/views/agent/siteBaseSetting.vue | 2 +-
src/views/agent/siteServiceEdit.vue | 22 ++++++++--------------
3 files changed, 12 insertions(+), 18 deletions(-)
diff --git a/src/components/site/addSiteStep/step2.vue b/src/components/site/addSiteStep/step2.vue
index 3de312f..d4eea0e 100644
--- a/src/components/site/addSiteStep/step2.vue
+++ b/src/components/site/addSiteStep/step2.vue
@@ -415,7 +415,9 @@ export default {
},
// 获取支付列表
getPayList() {
- this.$http('POST', '/agentnew/ajax_get_pay_list', {},{
+ this.$http('POST', '/agentnew/ajax_get_pay_list', {
+ uid: this.siteInfo.uid
+ },{
headers:{
'Auth': this.token
}
@@ -508,10 +510,8 @@ export default {
changeSelectAlipay(item) {
this.bindAlipayId = item.payid;
this.selectAlipay = item;
- console.log(this.bindWxpayId, 'bindWxpayId');
this.selectedItem = { ...item };
- console.log(this.selectedItem, 'this.selectedItem====');
},
changeSelectTaobao(item) {
this.bindTaobaoId = item.payid;
diff --git a/src/views/agent/siteBaseSetting.vue b/src/views/agent/siteBaseSetting.vue
index 528805d..b7cde36 100644
--- a/src/views/agent/siteBaseSetting.vue
+++ b/src/views/agent/siteBaseSetting.vue
@@ -533,7 +533,7 @@ export default {
// 获取支付列表
getPayList() {
this.$http('POST', '/agentnew/ajax_get_pay_list', {
- gid: this.gid,
+ uid: this.$route.query.uid,
},{
headers:{
'Auth': this.token
diff --git a/src/views/agent/siteServiceEdit.vue b/src/views/agent/siteServiceEdit.vue
index c46e042..46c33ed 100644
--- a/src/views/agent/siteServiceEdit.vue
+++ b/src/views/agent/siteServiceEdit.vue
@@ -39,16 +39,6 @@ export default {
token: 'eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJpYXQiOjE3NTI2NDY1NDUsIm5iZiI6MTc1MjY0NjU0NSwiZXhwIjoxNzU1MjM4NTQ1LCJ1c2VyIjoic3VidXNlciIsImxvZ2luX3R5cGUiOjAsImFpZCI6IjEifQ.G-Is-x9qPMiV_urOlDPQVRjfAIozySxL5EK2k82d46k',
siteServiceInfo:{},
tableKey:Date.now(),
- payinfo: [
- {
- type: 'a',
- name: '传递的参数'
- }
- ],
- payType: -1,
- payStatus: -1,
- paySvg: '',
- confirmText: '保存',
}
},
computed: {
@@ -65,13 +55,18 @@ export default {
store.commit('SET_CUSTOMIZE', true);
store.commit('SET_SLIDER_MENU', 'siteServiceSettingData');
+ this.loadPddSDK()
this.getSiteServiceInfo()
- this.getPayList()
},
mounted() {
store.commit('SET_PAGETITLE', '服务设置');
},
methods: {
+ loadPddSDK() {
+ const script = document.createElement('script');
+ script.src = 'https://pfile.pddpic.com/galerie-go/open_sdk/pc.202102201613.js';
+ document.head.appendChild(script);
+ },
handleSaveEvent(payload) {
this.siteServiceInfo = payload
},
@@ -88,10 +83,9 @@ export default {
}).then(response => {
that.$nextTick(() => {
that.siteServiceInfo = response.data.service_info
- that.siteServiceInfo.paylist = []
- this.tableKey = Date.now();
-
store.commit('SET_BREADRIGHTTEXT', response.data.site_short_name);
+
+ that.getPayList()
})
}).catch(error => {
console.error(error, 'error')
From fe8934dcb434f269f0726ab688b140476670ebcc Mon Sep 17 00:00:00 2001
From: pengda <1111@qq.com>
Date: Tue, 22 Jul 2025 11:56:25 +0800
Subject: [PATCH 5/5] =?UTF-8?q?=E5=88=A0=E9=99=A4=E5=BA=9F=E5=BC=83?=
=?UTF-8?q?=E9=A1=B5=E9=9D=A2?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
---
src/views/agent/siteAddFinally.vue | 422 -------------------------------------
1 file changed, 422 deletions(-)
delete mode 100644 src/views/agent/siteAddFinally.vue
diff --git a/src/views/agent/siteAddFinally.vue b/src/views/agent/siteAddFinally.vue
deleted file mode 100644
index 4f93203..0000000
--- a/src/views/agent/siteAddFinally.vue
+++ /dev/null
@@ -1,422 +0,0 @@
-
-
-
-
-
-
-
-
{{ver_row.name}}
-
-
-
-
- {{row.type_name}}
- 已开启
- 关闭服务
-
-
- 设置起售价格
-
-
-
-
-
- 供货价格
- {{row.supply_price}} {{row.supply_price_warning}}
-
-
-
-
-
- 供货价格
- {{row.supply_price}}
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- /
-
-
-
- /
- 篇
-
-
- /
- 页
-
-
-
-
-
-
-
-
- 用户需支付
-
-
-
-
-
- 用户需支付
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- 重置
- 保存
-
-
-
-
-
-
-
-
-
- 添加完成
-
-
-
-
-
\ No newline at end of file